From 05f284df97538b32b2bdcdd9c11065b47530bf2c Mon Sep 17 00:00:00 2001
From: Mark Parker <11211952+msp1974@users.noreply.github.com>
Date: Mon, 20 May 2024 01:26:23 +0100
Subject: [PATCH 01/11] Update README.md
---
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index 7dee686..7081abd 100755
--- a/README.md
+++ b/README.md
@@ -23,6 +23,11 @@ For more information checkout the AMAZING community thread available on
- Added PowerTagE support
- Climate entity for controlling hot water with external tank temp sensor
+## Installing
+
+Install via HACs
+[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=asantaga&repository=wiserHomeAssistantPlatform&category=integration)
+
## Change log
- v3.4.7
From 1c3837f15c5afe8266325fdfadeeab63a6ac7166 Mon Sep 17 00:00:00 2001
From: Mark Parker <11211952+msp1974@users.noreply.github.com>
Date: Mon, 20 May 2024 01:26:37 +0100
Subject: [PATCH 02/11] Update README.md
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index 7081abd..40cd8a7 100755
--- a/README.md
+++ b/README.md
@@ -25,7 +25,6 @@ For more information checkout the AMAZING community thread available on
## Installing
-Install via HACs
[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=asantaga&repository=wiserHomeAssistantPlatform&category=integration)
## Change log
From 0b2ab58a58ff5188a1252cf461c042dca24e0b8f Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 11:51:31 +0100
Subject: [PATCH 03/11] correct deprecation error
---
custom_components/wiser/__init__.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/custom_components/wiser/__init__.py b/custom_components/wiser/__init__.py
index d344f20..feadd34 100755
--- a/custom_components/wiser/__init__.py
+++ b/custom_components/wiser/__init__.py
@@ -49,10 +49,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry):
}
# Setup platforms
- for platform in WISER_PLATFORMS:
- hass.async_create_task(
- hass.config_entries.async_forward_entry_setup(config_entry, platform)
- )
+ await hass.config_entries.async_forward_entry_setups(config_entry, WISER_PLATFORMS)
# Setup websocket services for frontend cards
await async_register_websockets(hass, coordinator)
From d0c89f3a909d7aee7e528a9ed43463db2b2b2390 Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 11:52:21 +0100
Subject: [PATCH 04/11] add some alarm sensors
---
custom_components/wiser/binary_sensor.py | 153 +++++++++++++++++++++++
custom_components/wiser/const.py | 2 +
custom_components/wiser/sensor.py | 22 +++-
3 files changed, 176 insertions(+), 1 deletion(-)
create mode 100644 custom_components/wiser/binary_sensor.py
diff --git a/custom_components/wiser/binary_sensor.py b/custom_components/wiser/binary_sensor.py
new file mode 100644
index 0000000..5873607
--- /dev/null
+++ b/custom_components/wiser/binary_sensor.py
@@ -0,0 +1,153 @@
+"""Binary sensors."""
+
+import logging
+
+from config.custom_components.wiser.helpers import (
+ get_device_name,
+ get_identifier,
+ get_unique_id,
+)
+from homeassistant.components.binary_sensor import (
+ BinarySensorDeviceClass,
+ BinarySensorEntity,
+)
+from homeassistant.core import HomeAssistant, callback
+from homeassistant.helpers.update_coordinator import CoordinatorEntity
+
+from .const import DATA, DOMAIN, MANUFACTURER
+
+_LOGGER = logging.getLogger(__name__)
+
+
+async def async_setup_entry(hass: HomeAssistant, config_entry, async_add_entities):
+ """Set up Wiser climate device."""
+ data = hass.data[DOMAIN][config_entry.entry_id][DATA] # Get Handler
+
+ binary_sensors = []
+
+ # Smoke alarm sensors
+ for device in data.wiserhub.devices.smokealarms.all:
+ binary_sensors.extend(
+ [
+ WiserSmokeAlarm(data, device.id, "Smoke Alarm"),
+ WiserHeatAlarm(data, device.id, "Heat Alarm"),
+ WiserTamperAlarm(data, device.id, "Tamper Alarm"),
+ WiserFaultWarning(data, device.id, "Fault"),
+ WiserRemoteAlarm(data, device.id, "Remote Alarm"),
+ ]
+ )
+
+ async_add_entities(binary_sensors)
+
+
+class BaseBinarySensor(CoordinatorEntity, BinarySensorEntity):
+ """Base binary sensor class."""
+
+ def __init__(self, coordinator, device_id=0, sensor_type="") -> None:
+ """Initialize the sensor."""
+ super().__init__(coordinator)
+ self._data = coordinator
+ self._device = self._data.wiserhub.devices.get_by_id(device_id)
+ self._device_id = device_id
+ self._device_name = None
+ self._sensor_type = sensor_type
+ self._room = self._data.wiserhub.rooms.get_by_device_id(self._device_id)
+ _LOGGER.debug(
+ f"{self._data.wiserhub.system.name} {self.name} {'in room ' + self._room.name if self._room else ''} initalise" # noqa: E501
+ )
+
+ @callback
+ def _handle_coordinator_update(self) -> None:
+ """Handle updated data from the coordinator."""
+ _LOGGER.debug(f"{self.name} device update requested")
+
+ @property
+ def name(self):
+ """Return the name of the sensor."""
+ return f"{get_device_name(self._data, self._device_id)} {self._sensor_type}"
+
+ @property
+ def unique_id(self):
+ """Return uniqueid."""
+ return get_unique_id(self._data, "sensor", self._sensor_type, self._device_id)
+
+ @property
+ def device_info(self):
+ """Return device specific attributes."""
+ return {
+ "name": get_device_name(self._data, self._device_id),
+ "identifiers": {(DOMAIN, get_identifier(self._data, self._device_id))},
+ "manufacturer": MANUFACTURER,
+ "model": self._data.wiserhub.system.product_type,
+ "sw_version": self._data.wiserhub.system.firmware_version,
+ "via_device": (DOMAIN, self._data.wiserhub.system.name),
+ }
+
+
+class WiserSmokeAlarm(BaseBinarySensor):
+ """Smoke Alarm sensor."""
+
+ _attr_device_class = BinarySensorDeviceClass.SMOKE
+
+ @property
+ def state(self):
+ """Return the state of the sensor."""
+ _LOGGER.debug("%s device state requested", self.name)
+ return self._device.smoke_alarm
+
+ @property
+ def extra_state_attributes(self):
+ """Return the state attributes of the battery."""
+ attrs = {}
+ attrs["led_brightness"] = self._device.led_brightness
+ attrs["alarm_sound_mode"] = self._device.alarm_sound_mode
+ attrs["alarm_sound_level"] = self._device.alarm_sound_level
+ attrs["life_time"] = self._device.life_time
+ attrs["hush_duration"] = self._device.hush_duration
+ return attrs
+
+
+class WiserHeatAlarm(BaseBinarySensor):
+ """Smoke Alarm sensor."""
+
+ _attr_device_class = BinarySensorDeviceClass.HEAT
+
+ @property
+ def state(self):
+ """Return the state of the sensor."""
+ _LOGGER.debug("%s device state requested", self.name)
+ return self._device.heat_alarm
+
+
+class WiserTamperAlarm(BaseBinarySensor):
+ """Smoke Alarm sensor."""
+
+ _attr_device_class = BinarySensorDeviceClass.TAMPER
+
+ @property
+ def state(self):
+ """Return the state of the sensor."""
+ _LOGGER.debug("%s device state requested", self.name)
+ return self._device.tamper_alarm
+
+
+class WiserFaultWarning(BaseBinarySensor):
+ """Smoke Alarm sensor."""
+
+ _attr_device_class = BinarySensorDeviceClass.PROBLEM
+
+ @property
+ def state(self):
+ """Return the state of the sensor."""
+ _LOGGER.debug("%s device state requested", self.name)
+ return self._device.fault_warning
+
+
+class WiserRemoteAlarm(BaseBinarySensor):
+ """Smoke Alarm sensor."""
+
+ @property
+ def state(self):
+ """Return the state of the sensor."""
+ _LOGGER.debug("%s device state requested", self.name)
+ return self._device.remote_alarm
diff --git a/custom_components/wiser/const.py b/custom_components/wiser/const.py
index 41314fa..a87b271 100755
--- a/custom_components/wiser/const.py
+++ b/custom_components/wiser/const.py
@@ -5,6 +5,7 @@
Angelosantagata@gmail.com
"""
+
VERSION = "3.4.7"
DOMAIN = "wiser"
DATA_WISER_CONFIG = "wiser_config"
@@ -24,6 +25,7 @@
]
WISER_PLATFORMS = [
+ "binary_sensor",
"climate",
"sensor",
"switch",
diff --git a/custom_components/wiser/sensor.py b/custom_components/wiser/sensor.py
index 7daac93..90390a0 100755
--- a/custom_components/wiser/sensor.py
+++ b/custom_components/wiser/sensor.py
@@ -149,6 +149,16 @@ async def async_setup_entry(hass: HomeAssistant, config_entry, async_add_entitie
if room.roomstat_id:
wiser_sensors.append(WiserLTSHumiditySensor(data, room.roomstat_id))
+ # Add temp sensors for smoke alarms
+ for device in data.wiserhub.devices.smokealarms.all:
+ wiser_sensors.append(
+ WiserLTSTempSensor(
+ data,
+ device.id,
+ sensor_type="smokealarm_temp",
+ )
+ )
+
# Add LTS sensors - for room Power and Energy for heating actuators
if data.wiserhub.devices.heating_actuators:
_LOGGER.debug("Setting up Heating Actuator LTS sensors")
@@ -825,6 +835,12 @@ def __init__(self, data, device_id, sensor_type="") -> None:
device_id,
f"LTS Floor Temperature {sensor_name}",
)
+ elif sensor_type == "smokealarm_temp":
+ super().__init__(
+ data,
+ device_id,
+ f"{data.wiserhub.devices.get_by_id(device_id).name} Temperature",
+ )
else:
super().__init__(
data,
@@ -844,6 +860,10 @@ def _handle_coordinator_update(self) -> None:
self._state = self._data.wiserhub.devices.get_by_id(
self._device_id
).floor_temperature_sensor.measured_temperature
+ elif self._lts_sensor_type == "smokealarm_temp":
+ self._state = self._data.wiserhub.devices.get_by_id(
+ self._device_id
+ ).current_temperature
else:
if (
self._data.wiserhub.rooms.get_by_id(self._device_id).mode == "Off"
@@ -862,7 +882,7 @@ def _handle_coordinator_update(self) -> None:
@property
def device_info(self):
"""Return device specific attributes."""
- if self._lts_sensor_type == "floor_current_temp":
+ if self._lts_sensor_type in ["floor_current_temp", "smokealarm_temp"]:
return {
"name": get_device_name(self._data, self._device_id),
"identifiers": {(DOMAIN, get_identifier(self._data, self._device_id))},
From 37dcceabea4757843cb1de6c6b0b4522b4cc7dfd Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 11:52:32 +0100
Subject: [PATCH 05/11] fix color mode typo
---
custom_components/wiser/light.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/custom_components/wiser/light.py b/custom_components/wiser/light.py
index 6c2d00b..beb7c1b 100644
--- a/custom_components/wiser/light.py
+++ b/custom_components/wiser/light.py
@@ -68,7 +68,7 @@ def supported_color_modes(self):
@property
def color_mode(self):
"""Return color mode."""
- return {ColorMode.ONOFF}
+ return ColorMode.ONOFF
@property
def is_on(self):
From 9c203d2da3b33ab0e1c31a25157fbbd9f6a2d7ec Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 11:52:54 +0100
Subject: [PATCH 06/11] device triggers
---
custom_components/wiser/device_trigger.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/custom_components/wiser/device_trigger.py b/custom_components/wiser/device_trigger.py
index 7f04a2e..6642222 100644
--- a/custom_components/wiser/device_trigger.py
+++ b/custom_components/wiser/device_trigger.py
@@ -19,9 +19,9 @@
from .events import WISER_EVENTS, WISER_EVENT
DEVICE = "device"
-SUPPORTED_DOMAINS = set(event[CONF_DOMAIN] for event in WISER_EVENTS)
+SUPPORTED_DOMAINS = {event[CONF_DOMAIN] for event in WISER_EVENTS}
-TRIGGER_TYPES = set(event[CONF_TYPE] for event in WISER_EVENTS)
+TRIGGER_TYPES = {event[CONF_TYPE] for event in WISER_EVENTS}
TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
{
From 9e08cf870819c271bbc8cb11f66295760d334cb6 Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 12:19:40 +0100
Subject: [PATCH 07/11] v3.4.8
---
README.md | 6 +++++-
custom_components/wiser/const.py | 2 +-
custom_components/wiser/manifest.json | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 40cd8a7..8659520 100755
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Wiser Home Assistant Integration v3.4.7
+# Wiser Home Assistant Integration v3.4.8
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/hacs/integration)
[![downloads](https://shields.io/github/downloads/asantaga/wiserHomeAssistantPlatform/latest/total?style=for-the-badge)](https://github.com/asantaga/wiserHomeAssistantPlatform)
@@ -29,6 +29,10 @@ For more information checkout the AMAZING community thread available on
## Change log
+- v3.4.8
+ - Fix deprecation warning no waiting on setups
+ - Added smoke alarm sensors
+
- v3.4.7
- Bump api to v1.5.14 to improve handling of hub connection errors
- Fix - improve handling of hub update failures - [#434](https://github.com/asantaga/wiserHomeAssistantPlatform/issues/434)
diff --git a/custom_components/wiser/const.py b/custom_components/wiser/const.py
index a87b271..9ef09a0 100755
--- a/custom_components/wiser/const.py
+++ b/custom_components/wiser/const.py
@@ -6,7 +6,7 @@
"""
-VERSION = "3.4.7"
+VERSION = "3.4.8"
DOMAIN = "wiser"
DATA_WISER_CONFIG = "wiser_config"
URL_BASE = "/wiser"
diff --git a/custom_components/wiser/manifest.json b/custom_components/wiser/manifest.json
index 2b10763..659de0a 100755
--- a/custom_components/wiser/manifest.json
+++ b/custom_components/wiser/manifest.json
@@ -18,7 +18,7 @@
"requirements": [
"aioWiserHeatAPI==1.5.14"
],
- "version": "3.4.7",
+ "version": "3.4.8",
"zeroconf": [
{
"type": "_http._tcp.local.",
From 4579cb096455e079f404a3cbb447fdde46e50a56 Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 12:29:14 +0100
Subject: [PATCH 08/11] update readme
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 8659520..4c2cdd1 100755
--- a/README.md
+++ b/README.md
@@ -30,8 +30,9 @@ For more information checkout the AMAZING community thread available on
## Change log
- v3.4.8
- - Fix deprecation warning no waiting on setups
- - Added smoke alarm sensors
+ - Fix deprecation warning no waiting on setups - [#485](https://github.com/asantaga/wiserHomeAssistantPlatform/issues/485)
+ - Fix color mode issue - [#479](https://github.com/asantaga/wiserHomeAssistantPlatform/issues/479)
+ - Added smoke alarm sensors - [#457](https://github.com/asantaga/wiserHomeAssistantPlatform/issues/457)
- v3.4.7
- Bump api to v1.5.14 to improve handling of hub connection errors
From 81a74f07adf8a0199e133c901a0abb391cdf5de8 Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 12:58:54 +0100
Subject: [PATCH 09/11] fix updating of binary sensors
---
custom_components/wiser/binary_sensor.py | 46 +++++++-----------------
1 file changed, 12 insertions(+), 34 deletions(-)
diff --git a/custom_components/wiser/binary_sensor.py b/custom_components/wiser/binary_sensor.py
index 5873607..6a502a5 100644
--- a/custom_components/wiser/binary_sensor.py
+++ b/custom_components/wiser/binary_sensor.py
@@ -32,12 +32,12 @@ async def async_setup_entry(hass: HomeAssistant, config_entry, async_add_entitie
WiserSmokeAlarm(data, device.id, "Smoke Alarm"),
WiserHeatAlarm(data, device.id, "Heat Alarm"),
WiserTamperAlarm(data, device.id, "Tamper Alarm"),
- WiserFaultWarning(data, device.id, "Fault"),
+ WiserFaultWarning(data, device.id, "Fault Warning"),
WiserRemoteAlarm(data, device.id, "Remote Alarm"),
]
)
- async_add_entities(binary_sensors)
+ async_add_entities(binary_sensors, True)
class BaseBinarySensor(CoordinatorEntity, BinarySensorEntity):
@@ -51,15 +51,23 @@ def __init__(self, coordinator, device_id=0, sensor_type="") -> None:
self._device_id = device_id
self._device_name = None
self._sensor_type = sensor_type
- self._room = self._data.wiserhub.rooms.get_by_device_id(self._device_id)
+ self._state = getattr(self._device, self._sensor_type.replace(" ", "_").lower())
_LOGGER.debug(
- f"{self._data.wiserhub.system.name} {self.name} {'in room ' + self._room.name if self._room else ''} initalise" # noqa: E501
+ f"{self._data.wiserhub.system.name} {self.name} initalise" # noqa: E501
)
@callback
def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator."""
_LOGGER.debug(f"{self.name} device update requested")
+ self._device = self._data.wiserhub.devices.get_by_id(self._device_id)
+ self._state = getattr(self._device, self._sensor_type.replace(" ", "_").lower())
+ self.async_write_ha_state()
+
+ @property
+ def is_on(self):
+ """Return the state of the sensor."""
+ return self._state
@property
def name(self):
@@ -89,12 +97,6 @@ class WiserSmokeAlarm(BaseBinarySensor):
_attr_device_class = BinarySensorDeviceClass.SMOKE
- @property
- def state(self):
- """Return the state of the sensor."""
- _LOGGER.debug("%s device state requested", self.name)
- return self._device.smoke_alarm
-
@property
def extra_state_attributes(self):
"""Return the state attributes of the battery."""
@@ -112,42 +114,18 @@ class WiserHeatAlarm(BaseBinarySensor):
_attr_device_class = BinarySensorDeviceClass.HEAT
- @property
- def state(self):
- """Return the state of the sensor."""
- _LOGGER.debug("%s device state requested", self.name)
- return self._device.heat_alarm
-
class WiserTamperAlarm(BaseBinarySensor):
"""Smoke Alarm sensor."""
_attr_device_class = BinarySensorDeviceClass.TAMPER
- @property
- def state(self):
- """Return the state of the sensor."""
- _LOGGER.debug("%s device state requested", self.name)
- return self._device.tamper_alarm
-
class WiserFaultWarning(BaseBinarySensor):
"""Smoke Alarm sensor."""
_attr_device_class = BinarySensorDeviceClass.PROBLEM
- @property
- def state(self):
- """Return the state of the sensor."""
- _LOGGER.debug("%s device state requested", self.name)
- return self._device.fault_warning
-
class WiserRemoteAlarm(BaseBinarySensor):
"""Smoke Alarm sensor."""
-
- @property
- def state(self):
- """Return the state of the sensor."""
- _LOGGER.debug("%s device state requested", self.name)
- return self._device.remote_alarm
From 48fbe1969d3ce8194c629403113f69ef97d8af3d Mon Sep 17 00:00:00 2001
From: Mark Parker
Date: Sat, 7 Sep 2024 13:32:39 +0100
Subject: [PATCH 10/11] fix missing save layout in zigbee card - Save function
missing on Wiser Zigbee card editor #488
---
custom_components/wiser/const.py | 2 +-
.../wiser/frontend/wiser-zigbee-card.js | 346 ++++++++++--------
2 files changed, 193 insertions(+), 155 deletions(-)
diff --git a/custom_components/wiser/const.py b/custom_components/wiser/const.py
index 9ef09a0..3a6891d 100755
--- a/custom_components/wiser/const.py
+++ b/custom_components/wiser/const.py
@@ -20,7 +20,7 @@
{
"name": "Wiser Zigbee Card",
"filename": "wiser-zigbee-card.js",
- "version": "2.1.1",
+ "version": "2.1.2",
},
]
diff --git a/custom_components/wiser/frontend/wiser-zigbee-card.js b/custom_components/wiser/frontend/wiser-zigbee-card.js
index eb066b6..6d299dc 100644
--- a/custom_components/wiser/frontend/wiser-zigbee-card.js
+++ b/custom_components/wiser/frontend/wiser-zigbee-card.js
@@ -1,78 +1,95 @@
-var wiserzigbeecard=function(t){"use strict";var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},e(t,i)};function i(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function r(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
+var wiserzigbeecard=function(t){"use strict";var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},e(t,i)};function i(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function r(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}"function"==typeof SuppressedError&&SuppressedError;
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const s=window,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),l=new WeakMap;let c=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}};const h=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new c(i,t,d)},u=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=s.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},p=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new c("string"==typeof t?t:t+"",void 0,d))(e)})(t):t
+ */
+const s=window,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),l=new WeakMap;let c=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}};const h=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new c("string"==typeof t?t:t+"",void 0,d))(e)})(t):t
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */;var f;const m=window,v=m.trustedTypes,g=v?v.emptyScript:"",y=m.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},x=(t,e)=>e!==t&&(e==e||t==t),_={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:x};let w=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(p(t))}else void 0!==t&&e.push(p(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=_){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:b).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:b;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||x)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
+ */;var u;const p=window,f=p.trustedTypes,m=f?f.emptyScript:"",v=p.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},y=(t,e)=>e!==t&&(e==e||t==t),b={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:y},x="finalized";let _=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=b){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||b}static finalize(){if(this.hasOwnProperty(x))return!1;this[x]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=s.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=b){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:g).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:g;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||y)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-var E;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:w}),(null!==(f=m.reactiveElementVersions)&&void 0!==f?f:m.reactiveElementVersions=[]).push("1.6.1");const k=window,O=k.trustedTypes,C=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,S="?"+I,A=`<${S}>`,R=document,D=()=>R.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,F="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,B=/>/g,z=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,H=/"/g,$=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),q=new WeakMap,X=R.createTreeWalker(R,129,null,!1),G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===d[0]?(s=null!=o?o:N,l=-1):void 0===d[1]?l=-2:(l=s.lastIndex-d[2].length,a=d[1],s=void 0===d[3]?z:'"'===d[3]?H:j):s===H||s===j?s=z:s===L||s===B?s=N:(s=z,o=void 0);const h=s===z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+A:l>=0?(n.push(a),i.slice(0,l)+T+i.slice(l)+I+h):i+I+(-2===l?(n.push(void 0),e):h)}const a=r+(t[i]||">")+(2===e?" ":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,n]};class Y{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[d,l]=G(t,e);if(this.el=Y.createElement(d,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=X.nextNode())&&a.length0){n.textContent=O?O.emptyScript:"";for(let i=0;iM(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Y.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new Z(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Y(t)),e}T(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new Q(this.k(D()),this.k(D()),this,this.options)):i=e[n],i._$AI(o),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=K(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;st}):void 0,C="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,T="?"+S,I=`<${T}>`,A=document,R=()=>A.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,M="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,B=/>/g,L=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),z=/'/g,j=/"/g,H=/^(?:script|style|textarea|title)$/i,$=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),U=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),V=new WeakMap,q=A.createTreeWalker(A,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==O?O.createHTML(e):e}const Y=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=F;for(let e=0;e"===d[0]?(s=null!=o?o:F,l=-1):void 0===d[1]?l=-2:(l=s.lastIndex-d[2].length,a=d[1],s=void 0===d[3]?L:'"'===d[3]?j:z):s===j||s===z?s=L:s===N||s===B?s=F:(s=L,o=void 0);const h=s===L&&t[e+1].startsWith("/>")?" ":"";r+=s===F?i+I:l>=0?(n.push(a),i.slice(0,l)+C+i.slice(l)+S+h):i+S+(-2===l?(n.push(void 0),e):h)}return[X(t,r+(t[i]||">")+(2===e?" ":"")),n]};class G{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[d,l]=Y(t,e);if(this.el=G.createElement(d,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=q.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;iD(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=G.createElement(X(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new Z(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new G(t)),e}T(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new Q(this.k(R()),this.k(R()),this,this.options)):i=e[n],i._$AI(o),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=K(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new ct(i,t,dt)},ut=at?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new ct("string"==typeof t?t:t+"",void 0,dt))(e)})(t):t
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */;var pt;const ft=window,mt=ft.trustedTypes,vt=mt?mt.emptyScript:"",gt=ft.reactiveElementPolyfillSupport,yt={toAttribute(t,e){switch(e){case Boolean:t=t?vt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},bt=(t,e)=>e!==t&&(e==e||t==t),xt={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:bt},_t="finalized";class wt extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=xt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||xt}static finalize(){if(this.hasOwnProperty(_t))return!1;this[_t]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(ut(t))}else void 0!==t&&e.push(ut(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{at?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=st.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=xt){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:yt).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:yt;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||bt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-var st,at;let dt=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Q(e.insertBefore(D(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}};dt.finalized=!0,dt._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:dt});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:dt}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.3.2");
+var Et,kt;wt[_t]=!0,wt.elementProperties=new Map,wt.elementStyles=[],wt.shadowRootOptions={mode:"open"},null==gt||gt({ReactiveElement:wt}),(null!==(pt=ft.reactiveElementVersions)&&void 0!==pt?pt:ft.reactiveElementVersions=[]).push("1.6.3");let Ot=class extends wt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new Q(e.insertBefore(R(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return U}};Ot.finalized=!0,Ot._$litElement$=!0,null===(Et=globalThis.litElementHydrateSupport)||void 0===Et||Et.call(globalThis,{LitElement:Ot});const Ct=globalThis.litElementPolyfillSupport;null==Ct||Ct({LitElement:Ot}),(null!==(kt=globalThis.litElementVersions)&&void 0!==kt?kt:globalThis.litElementVersions=[]).push("3.3.3");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const ct=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e)
+const St=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e)
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */,ht=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function ut(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ht(t,e)
+ */,Tt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}},It=(t,e,i)=>{e.constructor.createProperty(i,t)};function At(t){return(e,i)=>void 0!==i?It(t,e,i):Tt(t,e)
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */}function pt(t){return ut({...t,state:!0})}
+ */}function Rt(t){return At({...t,state:!0})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const ft=({finisher:t,descriptor:e})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(i.key)}:{...i,key:n};return null!=t&&(r.finisher=function(e){t(e,n)}),r}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,n,e(n)),null==t||t(o,n)}}
+ */const Pt=({finisher:t,descriptor:e})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(i.key)}:{...i,key:n};return null!=t&&(r.finisher=function(e){t(e,n)}),r}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,n,e(n)),null==t||t(o,n)}}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */;function mt(t){return ft({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}
+ */;function Dt(t){return Pt({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */function vt(t,e){return ft({descriptor:i=>{const n={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[e]&&(this[e]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==n?n:null),this[e]}}return n}})}
+ */function Mt(t,e){return Pt({descriptor:e=>{const i={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};return i}})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */function gt(t){return ft({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}
+ */function Ft(t){return Pt({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */var yt;const bt=null!=(null===(yt=window.HTMLSlotElement)||void 0===yt?void 0:yt.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));
+ */var Nt;const Bt=null!=(null===(Nt=window.HTMLSlotElement)||void 0===Nt?void 0:Nt.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-function xt(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return ft({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?bt(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):ft({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}var _t,wt;!function(t){t.language="language",t.system="system",t.comma_decimal="comma_decimal",t.decimal_comma="decimal_comma",t.space_comma="space_comma",t.none="none"}(_t||(_t={})),function(t){t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24"}(wt||(wt={})),new Set(["fan","input_boolean","light","switch","group","automation"]);var Et=function(t,e,i,n){n=n||{},i=null==i?{}:i;var o=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return o.detail=i,t.dispatchEvent(o),o};new Set(["call-service","divider","section","weblink","cast","select"]);const kt="2.1.1",Ot={autoResize:!0,height:"500px",configure:{enabled:!1},edges:{arrows:{to:{enabled:!0,scaleFactor:1},middle:{enabled:!1},from:{enabled:!1}},color:"#03a9f4",smooth:!0,physics:!1,width:2,labelHighlightBold:!1,font:{align:"top",color:"var(--primary-text-color, #fff)",strokeWidth:0,size:14}},groups:{Controller:{color:{background:"#518C43"},shape:"circle",margin:{top:15,right:10,bottom:15,left:10}},RoomStat:{color:{background:"#B1345C"}},iTRV:{color:{background:"#E48629"}},SmartPlug:{color:{background:"#3B808E"}},HeatingActuator:{color:{background:"#5A87FA"}},UnderFloorHeating:{color:{background:"#0D47A1"}},Shutter:{color:{background:"#4A5963"}},OnOffLight:{color:{background:"#E4B62B"}},DimmableLight:{color:{background:"#E4B62B"}}},interaction:{selectable:!1,selectConnectedEdges:!1},layout:{randomSeed:"1:1"},nodes:{shape:"box",size:25,font:{size:14,color:"#fff"},margin:{top:10,bottom:10,left:10,right:10},borderWidth:0,mass:1.3,chosen:!1},physics:{enabled:!1}};var Ct={version:"Version",invalid_configuration:"Invalid configuration"},Tt={actions:{copy:"Copy",files:"Files",add_before:"Add Before",add_after:"Add After"},headings:{schedule_actions:"Schedule Actions",schedule_type:"Schedule Type",schedule_id:"Schedule Id",schedule_name:"Schedule Name",schedule_assignment:"Schedule Assignment",not_assigned:"(Not Assigned)"}},It={common:Ct,wiser:Tt},St={version:"Déclinaison",invalid_configuration:"Configuration Invalide"},At={actions:{copy:"Copie",files:"Fichier",add_before:"Ajouter Avant",add_after:"Ajouter Après"},headings:{schedule_actions:"Schedule Actions",schedule_type:"Schedule Type",schedule_id:"Schedule Id",schedule_name:"Schedule Name",schedule_assignment:"Schedule Assignment",not_assigned:"(Not Assigned)"}},Rt={common:St,wiser:At};const Dt={en:Object.freeze({__proto__:null,common:Ct,default:It,wiser:Tt}),fr:Object.freeze({__proto__:null,common:St,default:Rt,wiser:At})};function Pt(t,e="",i=""){const n=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_");let o;try{o=t.split(".").reduce(((t,e)=>t[e]),Dt[n]),o||(o=t.split(".").reduce(((t,e)=>t[e]),Dt.en))}catch(e){try{o=t.split(".").reduce(((t,e)=>t[e]),Dt.en)}catch(t){o=""}}return void 0===o&&(o=t.split(".").reduce(((t,e)=>t[e]),Dt.en)),""!==e&&""!==i&&(o=o.replace(e,i)),o}
+function Lt(t,e,i){let n;return n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return Pt({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?Bt(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:t,flatten:e,selector:i}):Pt({descriptor:t=>({get(){var t,e;const i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("slot:not([name])");return null!==(e=null==i?void 0:i.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}var zt,jt;!function(t){t.language="language",t.system="system",t.comma_decimal="comma_decimal",t.decimal_comma="decimal_comma",t.space_comma="space_comma",t.none="none"}(zt||(zt={})),function(t){t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24"}(jt||(jt={}));var Ht=function(t,e,i,n){n=n||{},i=null==i?{}:i;var o=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return o.detail=i,t.dispatchEvent(o),o};const $t="2.1.2",Ut={autoResize:!0,height:"500px",configure:{enabled:!1},edges:{arrows:{to:{enabled:!0,scaleFactor:1},middle:{enabled:!1},from:{enabled:!1}},color:"#03a9f4",smooth:!0,physics:!1,width:2,labelHighlightBold:!1,font:{align:"top",color:"var(--primary-text-color, #fff)",strokeWidth:0,size:14}},groups:{Controller:{color:{background:"#518C43"},shape:"circle",margin:{top:15,right:10,bottom:15,left:10}},RoomStat:{color:{background:"#B1345C"}},iTRV:{color:{background:"#E48629"}},SmartPlug:{color:{background:"#3B808E"}},HeatingActuator:{color:{background:"#5A87FA"}},UnderFloorHeating:{color:{background:"#0D47A1"}},Shutter:{color:{background:"#4A5963"}},OnOffLight:{color:{background:"#E4B62B"}},DimmableLight:{color:{background:"#E4B62B"}}},interaction:{selectable:!1,selectConnectedEdges:!1},layout:{randomSeed:"1:1"},nodes:{shape:"box",size:25,font:{size:14,color:"#fff"},margin:{top:10,bottom:10,left:10,right:10},borderWidth:0,mass:1.3,chosen:!1},physics:{enabled:!1}};var Wt={version:"Version",invalid_configuration:"Invalid configuration"},Vt={actions:{copy:"Copy",files:"Files",add_before:"Add Before",add_after:"Add After"},headings:{schedule_actions:"Schedule Actions",schedule_type:"Schedule Type",schedule_id:"Schedule Id",schedule_name:"Schedule Name",schedule_assignment:"Schedule Assignment",not_assigned:"(Not Assigned)"}},qt={common:Wt,wiser:Vt},Xt={version:"Déclinaison",invalid_configuration:"Configuration Invalide"},Yt={actions:{copy:"Copie",files:"Fichier",add_before:"Ajouter Avant",add_after:"Ajouter Après"},headings:{schedule_actions:"Schedule Actions",schedule_type:"Schedule Type",schedule_id:"Schedule Id",schedule_name:"Schedule Name",schedule_assignment:"Schedule Assignment",not_assigned:"(Not Assigned)"}},Gt={common:Xt,wiser:Yt};const Kt={en:Object.freeze({__proto__:null,common:Wt,default:qt,wiser:Vt}),fr:Object.freeze({__proto__:null,common:Xt,default:Gt,wiser:Yt})};function Zt(t,e="",i=""){const n=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_");let o;try{o=t.split(".").reduce(((t,e)=>t[e]),Kt[n]),o||(o=t.split(".").reduce(((t,e)=>t[e]),Kt.en))}catch(e){try{o=t.split(".").reduce(((t,e)=>t[e]),Kt.en)}catch(t){o=""}}return void 0===o&&(o=t.split(".").reduce(((t,e)=>t[e]),Kt.en)),""!==e&&""!==i&&(o=o.replace(e,i)),o}
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */const Qt=globalThis,Jt=Qt.ShadowRoot&&(void 0===Qt.ShadyCSS||Qt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
+function te(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return((t,e)=>{if(Jt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),n=Qt.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}})(o,this.constructor.elementStyles),o}}}
/**
* @license
* Copyright 2016 Google Inc.
@@ -94,8 +111,7 @@ function xt(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */
-var Mt=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),Ft={ROOT:"mdc-form-field"},Nt={LABEL_SELECTOR:".mdc-form-field > label"},Lt=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.click=function(){o.handleClick()},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ft},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Nt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(Mt);
+ */var ee=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),ie={ROOT:"mdc-form-field"},ne={LABEL_SELECTOR:".mdc-form-field > label"},oe=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.click=function(){o.handleClick()},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ie},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ne},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(ee);
/**
* @license
* Copyright 2017 Google Inc.
@@ -123,50 +139,50 @@ var Mt=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-const Bt=t=>t.nodeType===Node.ELEMENT_NODE;function zt(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}const jt=()=>{},Ht={get passive(){return!1}};document.addEventListener("x",jt,Ht),document.removeEventListener("x",jt);const $t=(t=window.document)=>{let e=t.activeElement;const i=[];if(!e)return i;for(;e&&(i.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return i},Wt=t=>{const e=$t();if(!e.length)return!1;const i=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let o=[];const r=t=>{o=t.composedPath()};return document.body.addEventListener("check-if-focused",r),i.dispatchEvent(n),document.body.removeEventListener("check-if-focused",r),-1!==o.indexOf(t)};
+const re=t=>t.nodeType===Node.ELEMENT_NODE;function se(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}const ae=()=>{},de={get passive(){return!1}};document.addEventListener("x",ae,de),document.removeEventListener("x",ae);const le=(t=window.document)=>{let e=t.activeElement;const i=[];if(!e)return i;for(;e&&(i.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return i},ce=t=>{const e=le();if(!e.length)return!1;const i=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let o=[];const r=t=>{o=t.composedPath()};return document.body.addEventListener("check-if-focused",r),i.dispatchEvent(n),document.body.removeEventListener("check-if-focused",r),-1!==o.indexOf(t)};
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-class Vt extends dt{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
+class he extends Ot{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
- */var Ut,qt;const Xt=null!==(qt=null===(Ut=window.ShadyDOM)||void 0===Ut?void 0:Ut.inUse)&&void 0!==qt&&qt;class Gt extends Vt{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||Xt)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}Gt.shadowRootOptions={mode:"open",delegatesFocus:!0},o([ut({type:Boolean})],Gt.prototype,"disabled",void 0);
+ */var ue,pe;const fe=null!==(pe=null===(ue=window.ShadyDOM)||void 0===ue?void 0:ue.inUse)&&void 0!==pe&&pe;class me extends he{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||fe)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}me.shadowRootOptions={mode:"open",delegatesFocus:!0},o([At({type:Boolean})],me.prototype,"disabled",void 0);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-const Yt=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,i)=>e.constructor._observers.set(i,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)}))}}e.constructor._observers.set(i,t)}
+const ve=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,i)=>e.constructor._observers.set(i,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)}))}}e.constructor._observers.set(i,t)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */,Kt=1,Zt=3,Qt=4,Jt=t=>(...e)=>({_$litDirective$:t,values:e});let te=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
+ */,ge=1,ye=3,be=4,xe=t=>(...e)=>({_$litDirective$:t,values:e});let _e=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const ee=Jt(class extends te{constructor(t){var e;if(super(t),t.type!==Kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return V}});
+ */const we=xe(class extends _e{constructor(t){var e;if(super(t),t.type!==ge||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return U}});
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
- */class ie extends Vt{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=Lt}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof Gt){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof Gt){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return W`
-
+ */class Ee extends he{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=oe}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof me){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof me){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return $`
+
${this.label}
-
`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}o([ut({type:Boolean})],ie.prototype,"alignEnd",void 0),o([ut({type:Boolean})],ie.prototype,"spaceBetween",void 0),o([ut({type:Boolean})],ie.prototype,"nowrap",void 0),o([ut({type:String}),Yt((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],ie.prototype,"label",void 0),o([vt(".mdc-form-field")],ie.prototype,"mdcRoot",void 0),o([xt("",!0,"*")],ie.prototype,"slottedInputs",void 0),o([vt("label")],ie.prototype,"labelEl",void 0);
+
`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}o([At({type:Boolean})],Ee.prototype,"alignEnd",void 0),o([At({type:Boolean})],Ee.prototype,"spaceBetween",void 0),o([At({type:Boolean})],Ee.prototype,"nowrap",void 0),o([At({type:String}),ve((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],Ee.prototype,"label",void 0),o([Mt(".mdc-form-field")],Ee.prototype,"mdcRoot",void 0),o([Lt("",!0,"*")],Ee.prototype,"slottedInputs",void 0),o([Mt("label")],Ee.prototype,"labelEl",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
-const ne=h`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`,oe={"mwc-formfield":class extends ie{static get styles(){return ne}}};
+const ke=ht`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`,Oe={"mwc-formfield":class extends Ee{static get styles(){return ke}}};
/**
* @license
* Copyright 2020 Google Inc.
@@ -189,7 +205,7 @@ const ne=h`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smooth
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var re={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},se=new Set;se.add(re.BACKSPACE),se.add(re.ENTER),se.add(re.SPACEBAR),se.add(re.PAGE_UP),se.add(re.PAGE_DOWN),se.add(re.END),se.add(re.HOME),se.add(re.ARROW_LEFT),se.add(re.ARROW_UP),se.add(re.ARROW_RIGHT),se.add(re.ARROW_DOWN),se.add(re.DELETE),se.add(re.ESCAPE),se.add(re.TAB);var ae=8,de=13,le=32,ce=33,he=34,ue=35,pe=36,fe=37,me=38,ve=39,ge=40,ye=46,be=27,xe=9,_e=new Map;_e.set(ae,re.BACKSPACE),_e.set(de,re.ENTER),_e.set(le,re.SPACEBAR),_e.set(ce,re.PAGE_UP),_e.set(he,re.PAGE_DOWN),_e.set(ue,re.END),_e.set(pe,re.HOME),_e.set(fe,re.ARROW_LEFT),_e.set(me,re.ARROW_UP),_e.set(ve,re.ARROW_RIGHT),_e.set(ge,re.ARROW_DOWN),_e.set(ye,re.DELETE),_e.set(be,re.ESCAPE),_e.set(xe,re.TAB);var we,Ee,ke=new Set;function Oe(t){var e=t.key;if(se.has(e))return e;var i=_e.get(t.keyCode);return i||re.UNKNOWN}
+var Ce={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},Se=new Set;Se.add(Ce.BACKSPACE),Se.add(Ce.ENTER),Se.add(Ce.SPACEBAR),Se.add(Ce.PAGE_UP),Se.add(Ce.PAGE_DOWN),Se.add(Ce.END),Se.add(Ce.HOME),Se.add(Ce.ARROW_LEFT),Se.add(Ce.ARROW_UP),Se.add(Ce.ARROW_RIGHT),Se.add(Ce.ARROW_DOWN),Se.add(Ce.DELETE),Se.add(Ce.ESCAPE),Se.add(Ce.TAB);var Te=8,Ie=13,Ae=32,Re=33,Pe=34,De=35,Me=36,Fe=37,Ne=38,Be=39,Le=40,ze=46,je=27,He=9,$e=new Map;$e.set(Te,Ce.BACKSPACE),$e.set(Ie,Ce.ENTER),$e.set(Ae,Ce.SPACEBAR),$e.set(Re,Ce.PAGE_UP),$e.set(Pe,Ce.PAGE_DOWN),$e.set(De,Ce.END),$e.set(Me,Ce.HOME),$e.set(Fe,Ce.ARROW_LEFT),$e.set(Ne,Ce.ARROW_UP),$e.set(Be,Ce.ARROW_RIGHT),$e.set(Le,Ce.ARROW_DOWN),$e.set(ze,Ce.DELETE),$e.set(je,Ce.ESCAPE),$e.set(He,Ce.TAB);var Ue,We,Ve=new Set;function qe(t){var e=t.key;if(Se.has(e))return e;var i=$e.get(t.keyCode);return i||Ce.UNKNOWN}
/**
* @license
* Copyright 2018 Google Inc.
@@ -211,7 +227,7 @@ var re={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */ke.add(re.PAGE_UP),ke.add(re.PAGE_DOWN),ke.add(re.END),ke.add(re.HOME),ke.add(re.ARROW_LEFT),ke.add(re.ARROW_UP),ke.add(re.ARROW_RIGHT),ke.add(re.ARROW_DOWN);var Ce="mdc-list-item--activated",Te="mdc-list-item",Ie="mdc-list-item--disabled",Se="mdc-list-item--selected",Ae="mdc-list-item__text",Re="mdc-list-item__primary-text",De="mdc-list";(we={})[""+Ce]="mdc-list-item--activated",we[""+Te]="mdc-list-item",we[""+Ie]="mdc-list-item--disabled",we[""+Se]="mdc-list-item--selected",we[""+Re]="mdc-list-item__primary-text",we[""+De]="mdc-list";var Pe=((Ee={})[""+Ce]="mdc-deprecated-list-item--activated",Ee[""+Te]="mdc-deprecated-list-item",Ee[""+Ie]="mdc-deprecated-list-item--disabled",Ee[""+Se]="mdc-deprecated-list-item--selected",Ee[""+Ae]="mdc-deprecated-list-item__text",Ee[""+Re]="mdc-deprecated-list-item__primary-text",Ee[""+De]="mdc-deprecated-list",Ee),Me={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+Te+" button:not(:disabled),\n ."+Te+" a,\n ."+Pe[Te]+" button:not(:disabled),\n ."+Pe[Te]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+Te+" button:not(:disabled),\n ."+Te+" a,\n ."+Te+' input[type="radio"]:not(:disabled),\n .'+Te+' input[type="checkbox"]:not(:disabled),\n .'+Pe[Te]+" button:not(:disabled),\n ."+Pe[Te]+" a,\n ."+Pe[Te]+' input[type="radio"]:not(:disabled),\n .'+Pe[Te]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Fe={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},Ne=["input","button","textarea","select"],Le=function(t){var e=t.target;if(e){var i=(""+e.tagName).toLowerCase();-1===Ne.indexOf(i)&&t.preventDefault()}};function Be(t,e){for(var i=new Map,n=0;ne&&!i(r[a].index)){d=a;break}if(-1!==d)return n.sortedIndexCursor=d,r[n.sortedIndexCursor].index;return-1}(r,s,d,e):function(t,e,i){var n=i.typeaheadBuffer[0],o=t.get(n);if(!o)return-1;var r=o[i.sortedIndexCursor];if(0===r.text.lastIndexOf(i.typeaheadBuffer,0)&&!e(r.index))return r.index;var s=(i.sortedIndexCursor+1)%o.length,a=-1;for(;s!==i.sortedIndexCursor;){var d=o[s],l=0===d.text.lastIndexOf(i.typeaheadBuffer,0),c=!e(d.index);if(l&&c){a=s;break}s=(s+1)%o.length}if(-1!==a)return i.sortedIndexCursor=a,o[i.sortedIndexCursor].index;return-1}(r,d,e),-1===i||a||o(i),i}function je(t){return t.typeaheadBuffer.length>0}
+ */Ve.add(Ce.PAGE_UP),Ve.add(Ce.PAGE_DOWN),Ve.add(Ce.END),Ve.add(Ce.HOME),Ve.add(Ce.ARROW_LEFT),Ve.add(Ce.ARROW_UP),Ve.add(Ce.ARROW_RIGHT),Ve.add(Ce.ARROW_DOWN);var Xe="mdc-list-item--activated",Ye="mdc-list-item",Ge="mdc-list-item--disabled",Ke="mdc-list-item--selected",Ze="mdc-list-item__text",Qe="mdc-list-item__primary-text",Je="mdc-list";(Ue={})[""+Xe]="mdc-list-item--activated",Ue[""+Ye]="mdc-list-item",Ue[""+Ge]="mdc-list-item--disabled",Ue[""+Ke]="mdc-list-item--selected",Ue[""+Qe]="mdc-list-item__primary-text",Ue[""+Je]="mdc-list";var ti=((We={})[""+Xe]="mdc-deprecated-list-item--activated",We[""+Ye]="mdc-deprecated-list-item",We[""+Ge]="mdc-deprecated-list-item--disabled",We[""+Ke]="mdc-deprecated-list-item--selected",We[""+Ze]="mdc-deprecated-list-item__text",We[""+Qe]="mdc-deprecated-list-item__primary-text",We[""+Je]="mdc-deprecated-list",We),ei={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+Ye+" button:not(:disabled),\n ."+Ye+" a,\n ."+ti[Ye]+" button:not(:disabled),\n ."+ti[Ye]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+Ye+" button:not(:disabled),\n ."+Ye+" a,\n ."+Ye+' input[type="radio"]:not(:disabled),\n .'+Ye+' input[type="checkbox"]:not(:disabled),\n .'+ti[Ye]+" button:not(:disabled),\n ."+ti[Ye]+" a,\n ."+ti[Ye]+' input[type="radio"]:not(:disabled),\n .'+ti[Ye]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},ii={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},ni=["input","button","textarea","select"],oi=function(t){var e=t.target;if(e){var i=(""+e.tagName).toLowerCase();-1===ni.indexOf(i)&&t.preventDefault()}};function ri(t,e){for(var i=new Map,n=0;ne&&!i(r[a].index)){d=a;break}if(-1!==d)return n.sortedIndexCursor=d,r[n.sortedIndexCursor].index;return-1}(r,s,d,e):function(t,e,i){var n=i.typeaheadBuffer[0],o=t.get(n);if(!o)return-1;var r=o[i.sortedIndexCursor];if(0===r.text.lastIndexOf(i.typeaheadBuffer,0)&&!e(r.index))return r.index;var s=(i.sortedIndexCursor+1)%o.length,a=-1;for(;s!==i.sortedIndexCursor;){var d=o[s],l=0===d.text.lastIndexOf(i.typeaheadBuffer,0),c=!e(d.index);if(l&&c){a=s;break}s=(s+1)%o.length}if(-1!==a)return i.sortedIndexCursor=a,o[i.sortedIndexCursor].index;return-1}(r,d,e),-1===i||a||o(i),i}function ai(t){return t.typeaheadBuffer.length>0}
/**
* @license
* Copyright 2016 Google Inc.
@@ -234,7 +250,7 @@ var re={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var He={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},$e=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.shakeAnimationEndHandler=function(){o.handleShakeAnimationEnd()},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return He},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var i=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.float=function(t){var i=e.cssClasses,n=i.LABEL_FLOAT_ABOVE,o=i.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(o))},e.prototype.setRequired=function(t){var i=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleShakeAnimationEnd=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},e}(Mt);
+var di={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},li=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.shakeAnimationEndHandler=function(){o.handleShakeAnimationEnd()},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return di},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var i=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.float=function(t){var i=e.cssClasses,n=i.LABEL_FLOAT_ABOVE,o=i.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(o))},e.prototype.setRequired=function(t){var i=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleShakeAnimationEnd=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},e}(ee);
/**
* @license
* Copyright 2016 Google Inc.
@@ -256,7 +272,7 @@ var He={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */const We=Jt(class extends te{constructor(t){switch(super(t),this.foundation=null,this.previousPart=null,t.type){case Kt:case Zt:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(t,[e]){if(t!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=t;const e=t.element;e.classList.add("mdc-floating-label");const i=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,i)=>{t.addEventListener(e,i)},deregisterInteractionHandler:(e,i)=>{t.removeEventListener(e,i)}}))(e);this.foundation=new $e(i),this.foundation.init()}return this.render(e)}render(t){return this.foundation}});
+ */const ci=xe(class extends _e{constructor(t){switch(super(t),this.foundation=null,this.previousPart=null,t.type){case ge:case ye:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(t,[e]){if(t!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=t;const e=t.element;e.classList.add("mdc-floating-label");const i=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,i)=>{t.addEventListener(e,i)},deregisterInteractionHandler:(e,i)=>{t.removeEventListener(e,i)}}))(e);this.foundation=new li(i),this.foundation.init()}return this.render(e)}render(t){return this.foundation}});
/**
* @license
* Copyright 2018 Google Inc.
@@ -278,7 +294,7 @@ var He={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */var Ve={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},Ue=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.transitionEndHandler=function(t){o.handleTransitionEnd(t)},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ve},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(Ve.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Ve.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(Ve.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(Ve.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(Ve.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Ve.LINE_RIPPLE_DEACTIVATING))},e}(Mt);
+ */var hi={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},ui=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.transitionEndHandler=function(t){o.handleTransitionEnd(t)},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return hi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(hi.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(hi.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(hi.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(hi.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(hi.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(hi.LINE_RIPPLE_DEACTIVATING))},e}(ee);
/**
* @license
* Copyright 2018 Google Inc.
@@ -300,7 +316,7 @@ var He={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */const qe=Jt(class extends te{constructor(t){switch(super(t),this.previousPart=null,this.foundation=null,t.type){case Kt:case Zt:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(t,e){if(this.previousPart!==t){this.foundation&&this.foundation.destroy(),this.previousPart=t;const e=t.element;e.classList.add("mdc-line-ripple");const i=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),hasClass:e=>t.classList.contains(e),setStyle:(e,i)=>t.style.setProperty(e,i),registerEventHandler:(e,i)=>{t.addEventListener(e,i)},deregisterEventHandler:(e,i)=>{t.removeEventListener(e,i)}}))(e);this.foundation=new Ue(i),this.foundation.init()}return this.render()}render(){return this.foundation}});
+ */const pi=xe(class extends _e{constructor(t){switch(super(t),this.previousPart=null,this.foundation=null,t.type){case ge:case ye:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(t,e){if(this.previousPart!==t){this.foundation&&this.foundation.destroy(),this.previousPart=t;const e=t.element;e.classList.add("mdc-line-ripple");const i=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),hasClass:e=>t.classList.contains(e),setStyle:(e,i)=>t.style.setProperty(e,i),registerEventHandler:(e,i)=>{t.addEventListener(e,i)},deregisterEventHandler:(e,i)=>{t.removeEventListener(e,i)}}))(e);this.foundation=new ui(i),this.foundation.init()}return this.render()}render(){return this.foundation}});
/**
* @license
* Copyright 2018 Google Inc.
@@ -322,7 +338,7 @@ var He={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */var Xe,Ge,Ye={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},Ke={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},Ze={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(Xe||(Xe={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(Ge||(Ge={}));
+ */var fi,mi,vi={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},gi={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},yi={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(fi||(fi={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(mi||(mi={}));
/**
* @license
* Copyright 2016 Google Inc.
@@ -345,20 +361,20 @@ var He={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var Qe={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},Je={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},ti={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},ei=function(t){function e(i,o){void 0===o&&(o={});var r=t.call(this,n(n({},e.defaultAdapter),i))||this;return r.disabled=!1,r.isMenuOpen=!1,r.useDefaultValidation=!0,r.customValidity=!0,r.lastSelectedIndex=ti.UNSET_INDEX,r.clickDebounceTimeout=0,r.recentlyClicked=!1,r.leadingIcon=o.leadingIcon,r.helperText=o.helperText,r}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Qe},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ti},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Je},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),e.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},e.prototype.setSelectedIndex=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),t>=this.adapter.getMenuItemCount()||(t===ti.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),e&&this.adapter.closeMenu(),i||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var i=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(i,!1,e)},e.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),e=this.adapter.getMenuItemValues();return t!==ti.UNSET_INDEX?e[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(Qe.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(Qe.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},e.prototype.openMenu=function(){this.adapter.addClass(Qe.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.layout=function(){if(this.adapter.hasLabel()){var t=this.getValue().length>0,e=this.adapter.hasClass(Qe.FOCUSED),i=t||e,n=this.adapter.hasClass(Qe.REQUIRED);this.notchOutline(i),this.adapter.floatLabel(i),this.adapter.setLabelRequired(n)}},e.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},e.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex(),e=t>=0?t:0;this.adapter.focusMenuItemAtIndex(e)}},e.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},e.prototype.handleMenuClosed=function(){this.adapter.removeClass(Qe.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(Qe.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(Qe.FOCUSED),this.layout(),this.adapter.activateBottomLine()},e.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},e.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(Qe.FOCUSED)){var e=Oe(t)===re.ENTER,i=Oe(t)===re.SPACEBAR,n=Oe(t)===re.ARROW_UP,o=Oe(t)===re.ARROW_DOWN;if(!(t.ctrlKey||t.metaKey)&&(!i&&t.key&&1===t.key.length||i&&this.adapter.isTypeaheadInProgress())){var r=i?" ":t.key,s=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());return s>=0&&this.setSelectedIndex(s),void t.preventDefault()}(e||i||n||o)&&(this.openMenu(),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var e=this.adapter.hasClass(Qe.FOCUSED);if(t){var i=ti.LABEL_SCALE,n=this.adapter.getLabelWidth()*i;this.adapter.notchOutline(n)}else e||this.adapter.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},e.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},e.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(Qe.INVALID),this.adapter.removeMenuClass(Qe.MENU_INVALID)):(this.adapter.addClass(Qe.INVALID),this.adapter.addMenuClass(Qe.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(Qe.REQUIRED)&&!this.adapter.hasClass(Qe.DISABLED)?this.getSelectedIndex()!==ti.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(Qe.REQUIRED):this.adapter.removeClass(Qe.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},e.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},e.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(Ge.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(Qe.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(Qe.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(Qe.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(Qe.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var e=this.helperText.isVisible(),i=this.helperText.getId();e&&i?this.adapter.setSelectAnchorAttr(Je.ARIA_DESCRIBEDBY,i):this.adapter.removeSelectAnchorAttr(Je.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){t.recentlyClicked=!1}),ti.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(Mt),ii=ei;
+var bi={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},xi={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},_i={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},wi=function(t){function e(i,o){void 0===o&&(o={});var r=t.call(this,n(n({},e.defaultAdapter),i))||this;return r.disabled=!1,r.isMenuOpen=!1,r.useDefaultValidation=!0,r.customValidity=!0,r.lastSelectedIndex=_i.UNSET_INDEX,r.clickDebounceTimeout=0,r.recentlyClicked=!1,r.leadingIcon=o.leadingIcon,r.helperText=o.helperText,r}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return bi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return _i},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return xi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),e.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},e.prototype.setSelectedIndex=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),t>=this.adapter.getMenuItemCount()||(t===_i.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),e&&this.adapter.closeMenu(),i||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},e.prototype.setValue=function(t,e){void 0===e&&(e=!1);var i=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(i,!1,e)},e.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),e=this.adapter.getMenuItemValues();return t!==_i.UNSET_INDEX?e[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(bi.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(bi.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},e.prototype.openMenu=function(){this.adapter.addClass(bi.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.layout=function(){if(this.adapter.hasLabel()){var t=this.getValue().length>0,e=this.adapter.hasClass(bi.FOCUSED),i=t||e,n=this.adapter.hasClass(bi.REQUIRED);this.notchOutline(i),this.adapter.floatLabel(i),this.adapter.setLabelRequired(n)}},e.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},e.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex(),e=t>=0?t:0;this.adapter.focusMenuItemAtIndex(e)}},e.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},e.prototype.handleMenuClosed=function(){this.adapter.removeClass(bi.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(bi.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(bi.FOCUSED),this.layout(),this.adapter.activateBottomLine()},e.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},e.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(bi.FOCUSED)){var e=qe(t)===Ce.ENTER,i=qe(t)===Ce.SPACEBAR,n=qe(t)===Ce.ARROW_UP,o=qe(t)===Ce.ARROW_DOWN;if(!(t.ctrlKey||t.metaKey)&&(!i&&t.key&&1===t.key.length||i&&this.adapter.isTypeaheadInProgress())){var r=i?" ":t.key,s=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());return s>=0&&this.setSelectedIndex(s),void t.preventDefault()}(e||i||n||o)&&(this.openMenu(),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var e=this.adapter.hasClass(bi.FOCUSED);if(t){var i=_i.LABEL_SCALE,n=this.adapter.getLabelWidth()*i;this.adapter.notchOutline(n)}else e||this.adapter.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},e.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},e.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(bi.INVALID),this.adapter.removeMenuClass(bi.MENU_INVALID)):(this.adapter.addClass(bi.INVALID),this.adapter.addMenuClass(bi.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(bi.REQUIRED)&&!this.adapter.hasClass(bi.DISABLED)?this.getSelectedIndex()!==_i.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(bi.REQUIRED):this.adapter.removeClass(bi.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},e.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},e.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(mi.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(bi.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(bi.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(bi.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(bi.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var e=this.helperText.isVisible(),i=this.helperText.getId();e&&i?this.adapter.setSelectAnchorAttr(xi.ARIA_DESCRIBEDBY,i):this.adapter.removeSelectAnchorAttr(xi.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){t.recentlyClicked=!1}),_i.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(ee);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const ni=t=>null!=t?t:U
+const Ei=t=>null!=t?t:W
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
- */,oi=(t={})=>{const e={};for(const i in t)e[i]=t[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},e)};class ri extends Gt{constructor(){super(...arguments),this.mdcFoundationClass=ii,this.disabled=!1,this.outlined=!1,this.label="",this.outlineOpen=!1,this.outlineWidth=0,this.value="",this.name="",this.selectedText="",this.icon="",this.menuOpen=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.required=!1,this.naturalMenuWidth=!1,this.isUiValid=!0,this.fixedMenuPosition=!1,this.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},this.sortedIndexByFirstChar=new Map,this.menuElement_=null,this.listeners=[],this.onBodyClickBound=()=>{},this._menuUpdateComplete=null,this.valueSetDirectly=!1,this.validityTransform=null,this._validity=oi()}get items(){return this.menuElement_||(this.menuElement_=this.menuElement),this.menuElement_?this.menuElement_.items:[]}get selected(){const t=this.menuElement;return t?t.selected:null}get index(){const t=this.menuElement;return t?t.index:-1}get shouldRenderHelperText(){return!!this.helper||!!this.validationMessage}get validity(){return this._checkValidity(this.value),this._validity}render(){const t={"mdc-select--disabled":this.disabled,"mdc-select--no-label":!this.label,"mdc-select--filled":!this.outlined,"mdc-select--outlined":this.outlined,"mdc-select--with-leading-icon":!!this.icon,"mdc-select--required":this.required,"mdc-select--invalid":!this.isUiValid},e=this.label?"label":void 0,i=this.shouldRenderHelperText?"helper-text":void 0;return W`
+ */,ki=(t={})=>{const e={};for(const i in t)e[i]=t[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},e)};class Oi extends me{constructor(){super(...arguments),this.mdcFoundationClass=wi,this.disabled=!1,this.outlined=!1,this.label="",this.outlineOpen=!1,this.outlineWidth=0,this.value="",this.name="",this.selectedText="",this.icon="",this.menuOpen=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.required=!1,this.naturalMenuWidth=!1,this.isUiValid=!0,this.fixedMenuPosition=!1,this.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},this.sortedIndexByFirstChar=new Map,this.menuElement_=null,this.listeners=[],this.onBodyClickBound=()=>{},this._menuUpdateComplete=null,this.valueSetDirectly=!1,this.validityTransform=null,this._validity=ki()}get items(){return this.menuElement_||(this.menuElement_=this.menuElement),this.menuElement_?this.menuElement_.items:[]}get selected(){const t=this.menuElement;return t?t.selected:null}get index(){const t=this.menuElement;return t?t.index:-1}get shouldRenderHelperText(){return!!this.helper||!!this.validationMessage}get validity(){return this._checkValidity(this.value),this._validity}render(){const t={"mdc-select--disabled":this.disabled,"mdc-select--no-label":!this.label,"mdc-select--filled":!this.outlined,"mdc-select--outlined":this.outlined,"mdc-select--with-leading-icon":!!this.icon,"mdc-select--required":this.required,"mdc-select--invalid":!this.isUiValid},e=this.label?"label":void 0,i=this.shouldRenderHelperText?"helper-text":void 0;return $`
+ class="mdc-select ${we(t)}">
null!=t?t:U
aria-expanded=${this.menuOpen}
aria-invalid=${!this.isUiValid}
aria-haspopup="listbox"
- aria-labelledby=${ni(e)}
+ aria-labelledby=${Ei(e)}
aria-required=${this.required}
- aria-describedby=${ni(i)}
+ aria-describedby=${Ei(i)}
@click=${this.onClick}
@focus=${this.onFocus}
@blur=${this.onBlur}
@@ -409,11 +425,11 @@ const ni=t=>null!=t?t:U
${this.renderMenu()}
- ${this.renderHelperText()}`}renderMenu(){const t=this.getMenuClasses();return W`
+ ${this.renderHelperText()}`}renderMenu(){const t=this.getMenuClasses();return $`
null!=t?t:U
@items-updated=${this.onItemsUpdated}
@keydown=${this.handleTypeahead}>
${this.renderMenuContent()}
- `}getMenuClasses(){return{"mdc-select__menu":!0,"mdc-menu":!0,"mdc-menu-surface":!0,"mdc-select__menu--invalid":!this.isUiValid}}renderMenuContent(){return W` `}renderRipple(){return this.outlined?U:W`
+ `}getMenuClasses(){return{"mdc-select__menu":!0,"mdc-menu":!0,"mdc-menu-surface":!0,"mdc-select__menu--invalid":!this.isUiValid}}renderMenuContent(){return $` `}renderRipple(){return this.outlined?W:$`
- `}renderOutline(){return this.outlined?W`
+ `}renderOutline(){return this.outlined?$`
${this.renderLabel()}
- `:U}renderLabel(){return this.label?W`
+ `:W}renderLabel(){return this.label?$`
${this.label}
- `:U}renderLeadingIcon(){return this.icon?W`${this.icon}
`:U}renderLineRipple(){return this.outlined?U:W`
-
- `}renderHelperText(){if(!this.shouldRenderHelperText)return U;const t=this.validationMessage&&!this.isUiValid;return W`
+ `:W}renderLeadingIcon(){return this.icon?$`${this.icon}
`:W}renderLineRipple(){return this.outlined?W:$`
+
+ `}renderHelperText(){if(!this.shouldRenderHelperText)return W;const t=this.validationMessage&&!this.isUiValid;return $`
${t?this.validationMessage:this.helper}
`}createAdapter(){return Object.assign(Object.assign({},zt(this.mdcRoot)),{activateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},hasLabel:()=>!!this.label,floatLabel:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.float(t)},getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,setLabelRequired:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(t)},hasOutline:()=>this.outlined,notchOutline:t=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=t,this.outlineOpen=!0)},closeOutline:()=>{this.outlineElement&&(this.outlineOpen=!1)},setRippleCenter:t=>{if(this.lineRippleElement){this.lineRippleElement.lineRippleFoundation.setRippleCenter(t)}},notifyChange:async t=>{if(!this.valueSetDirectly&&t===this.value)return;this.valueSetDirectly=!1,this.value=t,await this.updateComplete;const e=new Event("change",{bubbles:!0});this.dispatchEvent(e)},setSelectedText:t=>this.selectedText=t,isSelectAnchorFocused:()=>{const t=this.anchorElement;if(!t)return!1;return t.getRootNode().activeElement===t},getSelectAnchorAttr:t=>{const e=this.anchorElement;return e?e.getAttribute(t):null},setSelectAnchorAttr:(t,e)=>{const i=this.anchorElement;i&&i.setAttribute(t,e)},removeSelectAnchorAttr:t=>{const e=this.anchorElement;e&&e.removeAttribute(t)},openMenu:()=>{this.menuOpen=!0},closeMenu:()=>{this.menuOpen=!1},addMenuClass:()=>{},removeMenuClass:()=>{},getAnchorElement:()=>this.anchorElement,setMenuAnchorElement:()=>{},setMenuAnchorCorner:()=>{const t=this.menuElement;t&&(t.corner="BOTTOM_START")},setMenuWrapFocus:t=>{const e=this.menuElement;e&&(e.wrapFocus=t)},focusMenuItemAtIndex:t=>{const e=this.menuElement;if(!e)return;const i=e.items[t];i&&i.focus()},getMenuItemCount:()=>{const t=this.menuElement;return t?t.items.length:0},getMenuItemValues:()=>{const t=this.menuElement;if(!t)return[];return t.items.map((t=>t.value))},getMenuItemTextAtIndex:t=>{const e=this.menuElement;if(!e)return"";const i=e.items[t];return i?i.text:""},getSelectedIndex:()=>this.index,setSelectedIndex:()=>{},isTypeaheadInProgress:()=>je(this.typeaheadState),typeaheadMatchItem:(t,e)=>{if(!this.menuElement)return-1;const i={focusItemAtIndex:t=>{this.menuElement.focusItemAtIndex(t)},focusedItemIndex:e||this.menuElement.getFocusedItemIndex(),nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:!1,isItemAtIndexDisabled:t=>this.items[t].disabled},n=ze(i,this.typeaheadState);return-1!==n&&this.select(n),n}})}checkValidity(){const t=this._checkValidity(this.value);if(!t){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return t}reportValidity(){const t=this.checkValidity();return this.isUiValid=t,t}_checkValidity(t){const e=this.formElement.validity;let i=oi(e);if(this.validityTransform){const e=this.validityTransform(t,i);i=Object.assign(Object.assign({},i),e)}return this._validity=i,this._validity.valid}setCustomValidity(t){this.validationMessage=t,this.formElement.setCustomValidity(t)}async getUpdateComplete(){await this._menuUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){const t=this.menuElement;if(t&&(this._menuUpdateComplete=t.updateComplete,await this._menuUpdateComplete),super.firstUpdated(),this.mdcFoundation.isValid=()=>!0,this.mdcFoundation.setValid=()=>{},this.mdcFoundation.setDisabled(this.disabled),this.validateOnInitialRender&&this.reportValidity(),!this.selected){!this.items.length&&this.slotElement&&this.slotElement.assignedNodes({flatten:!0}).length&&(await new Promise((t=>requestAnimationFrame(t))),await this.layout());const t=this.items.length&&""===this.items[0].value;if(!this.value&&t)return void this.select(0);this.selectByValue(this.value)}this.sortedIndexByFirstChar=Be(this.items.length,(t=>this.items[t].text))}onItemsUpdated(){this.sortedIndexByFirstChar=Be(this.items.length,(t=>this.items[t].text))}select(t){const e=this.menuElement;e&&e.select(t)}selectByValue(t){let e=-1;for(let i=0;i0,o=i&&this.index{this.menuElement.focusItemAtIndex(t)},focusedItemIndex:e,isTargetListItem:!!i&&i.hasAttribute("mwc-list-item"),sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:t=>this.items[t].disabled};!function(t,e){var i=t.event,n=t.isTargetListItem,o=t.focusedItemIndex,r=t.focusItemAtIndex,s=t.sortedIndexByFirstChar,a=t.isItemAtIndexDisabled,d="ArrowLeft"===Oe(i),l="ArrowUp"===Oe(i),c="ArrowRight"===Oe(i),h="ArrowDown"===Oe(i),u="Home"===Oe(i),p="End"===Oe(i),f="Enter"===Oe(i),m="Spacebar"===Oe(i);i.altKey||i.ctrlKey||i.metaKey||d||l||c||h||u||p||f||(m||1!==i.key.length?m&&(n&&Le(i),n&&je(e)&&ze({focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},e)):(Le(i),ze({focusItemAtIndex:r,focusedItemIndex:o,nextChar:i.key.toLowerCase(),sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},e)))}(n,this.typeaheadState)}async onSelected(t){this.mdcFoundation||await this.updateComplete,this.mdcFoundation.handleMenuItemAction(t.detail.index);const e=this.items[t.detail.index];e&&(this.value=e.value)}onOpened(){this.mdcFoundation&&(this.menuOpen=!0,this.mdcFoundation.handleMenuOpened())}onClosed(){this.mdcFoundation&&(this.menuOpen=!1,this.mdcFoundation.handleMenuClosed())}setFormData(t){this.name&&null!==this.selected&&t.append(this.name,this.value)}async layout(t=!0){this.mdcFoundation&&this.mdcFoundation.layout(),await this.updateComplete;const e=this.menuElement;e&&e.layout(t);const i=this.labelElement;if(!i)return void(this.outlineOpen=!1);const n=!!this.label&&!!this.value;if(i.floatingLabelFoundation.float(n),!this.outlined)return;this.outlineOpen=n,await this.updateComplete;const o=i.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=o)}async layoutOptions(){this.mdcFoundation&&this.mdcFoundation.layoutOptions()}}o([vt(".mdc-select")],ri.prototype,"mdcRoot",void 0),o([vt(".formElement")],ri.prototype,"formElement",void 0),o([vt("slot")],ri.prototype,"slotElement",void 0),o([vt("select")],ri.prototype,"nativeSelectElement",void 0),o([vt("input")],ri.prototype,"nativeInputElement",void 0),o([vt(".mdc-line-ripple")],ri.prototype,"lineRippleElement",void 0),o([vt(".mdc-floating-label")],ri.prototype,"labelElement",void 0),o([vt("mwc-notched-outline")],ri.prototype,"outlineElement",void 0),o([vt(".mdc-menu")],ri.prototype,"menuElement",void 0),o([vt(".mdc-select__anchor")],ri.prototype,"anchorElement",void 0),o([ut({type:Boolean,attribute:"disabled",reflect:!0}),Yt((function(t){this.mdcFoundation&&this.mdcFoundation.setDisabled(t)}))],ri.prototype,"disabled",void 0),o([ut({type:Boolean}),Yt((function(t,e){void 0!==e&&this.outlined!==e&&this.layout(!1)}))],ri.prototype,"outlined",void 0),o([ut({type:String}),Yt((function(t,e){void 0!==e&&this.label!==e&&this.layout(!1)}))],ri.prototype,"label",void 0),o([pt()],ri.prototype,"outlineOpen",void 0),o([pt()],ri.prototype,"outlineWidth",void 0),o([ut({type:String}),Yt((function(t){if(this.mdcFoundation){const e=null===this.selected&&!!t,i=this.selected&&this.selected.value!==t;(e||i)&&this.selectByValue(t),this.reportValidity()}}))],ri.prototype,"value",void 0),o([ut()],ri.prototype,"name",void 0),o([pt()],ri.prototype,"selectedText",void 0),o([ut({type:String})],ri.prototype,"icon",void 0),o([pt()],ri.prototype,"menuOpen",void 0),o([ut({type:String})],ri.prototype,"helper",void 0),o([ut({type:Boolean})],ri.prototype,"validateOnInitialRender",void 0),o([ut({type:String})],ri.prototype,"validationMessage",void 0),o([ut({type:Boolean})],ri.prototype,"required",void 0),o([ut({type:Boolean})],ri.prototype,"naturalMenuWidth",void 0),o([pt()],ri.prototype,"isUiValid",void 0),o([ut({type:Boolean})],ri.prototype,"fixedMenuPosition",void 0),o([mt({capture:!0})],ri.prototype,"handleTypeahead",null);
+ class="mdc-select-helper-text ${we({"mdc-select-helper-text--validation-msg":t})}"
+ id="helper-text">${t?this.validationMessage:this.helper}
`}createAdapter(){return Object.assign(Object.assign({},se(this.mdcRoot)),{activateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateBottomLine:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},hasLabel:()=>!!this.label,floatLabel:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.float(t)},getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,setLabelRequired:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(t)},hasOutline:()=>this.outlined,notchOutline:t=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=t,this.outlineOpen=!0)},closeOutline:()=>{this.outlineElement&&(this.outlineOpen=!1)},setRippleCenter:t=>{if(this.lineRippleElement){this.lineRippleElement.lineRippleFoundation.setRippleCenter(t)}},notifyChange:async t=>{if(!this.valueSetDirectly&&t===this.value)return;this.valueSetDirectly=!1,this.value=t,await this.updateComplete;const e=new Event("change",{bubbles:!0});this.dispatchEvent(e)},setSelectedText:t=>this.selectedText=t,isSelectAnchorFocused:()=>{const t=this.anchorElement;if(!t)return!1;return t.getRootNode().activeElement===t},getSelectAnchorAttr:t=>{const e=this.anchorElement;return e?e.getAttribute(t):null},setSelectAnchorAttr:(t,e)=>{const i=this.anchorElement;i&&i.setAttribute(t,e)},removeSelectAnchorAttr:t=>{const e=this.anchorElement;e&&e.removeAttribute(t)},openMenu:()=>{this.menuOpen=!0},closeMenu:()=>{this.menuOpen=!1},addMenuClass:()=>{},removeMenuClass:()=>{},getAnchorElement:()=>this.anchorElement,setMenuAnchorElement:()=>{},setMenuAnchorCorner:()=>{const t=this.menuElement;t&&(t.corner="BOTTOM_START")},setMenuWrapFocus:t=>{const e=this.menuElement;e&&(e.wrapFocus=t)},focusMenuItemAtIndex:t=>{const e=this.menuElement;if(!e)return;const i=e.items[t];i&&i.focus()},getMenuItemCount:()=>{const t=this.menuElement;return t?t.items.length:0},getMenuItemValues:()=>{const t=this.menuElement;if(!t)return[];return t.items.map((t=>t.value))},getMenuItemTextAtIndex:t=>{const e=this.menuElement;if(!e)return"";const i=e.items[t];return i?i.text:""},getSelectedIndex:()=>this.index,setSelectedIndex:()=>{},isTypeaheadInProgress:()=>ai(this.typeaheadState),typeaheadMatchItem:(t,e)=>{if(!this.menuElement)return-1;const i={focusItemAtIndex:t=>{this.menuElement.focusItemAtIndex(t)},focusedItemIndex:e||this.menuElement.getFocusedItemIndex(),nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:!1,isItemAtIndexDisabled:t=>this.items[t].disabled},n=si(i,this.typeaheadState);return-1!==n&&this.select(n),n}})}checkValidity(){const t=this._checkValidity(this.value);if(!t){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return t}reportValidity(){const t=this.checkValidity();return this.isUiValid=t,t}_checkValidity(t){const e=this.formElement.validity;let i=ki(e);if(this.validityTransform){const e=this.validityTransform(t,i);i=Object.assign(Object.assign({},i),e)}return this._validity=i,this._validity.valid}setCustomValidity(t){this.validationMessage=t,this.formElement.setCustomValidity(t)}async getUpdateComplete(){await this._menuUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){const t=this.menuElement;if(t&&(this._menuUpdateComplete=t.updateComplete,await this._menuUpdateComplete),super.firstUpdated(),this.mdcFoundation.isValid=()=>!0,this.mdcFoundation.setValid=()=>{},this.mdcFoundation.setDisabled(this.disabled),this.validateOnInitialRender&&this.reportValidity(),!this.selected){!this.items.length&&this.slotElement&&this.slotElement.assignedNodes({flatten:!0}).length&&(await new Promise((t=>requestAnimationFrame(t))),await this.layout());const t=this.items.length&&""===this.items[0].value;if(!this.value&&t)return void this.select(0);this.selectByValue(this.value)}this.sortedIndexByFirstChar=ri(this.items.length,(t=>this.items[t].text))}onItemsUpdated(){this.sortedIndexByFirstChar=ri(this.items.length,(t=>this.items[t].text))}select(t){const e=this.menuElement;e&&e.select(t)}selectByValue(t){let e=-1;for(let i=0;i0,o=i&&this.index{this.menuElement.focusItemAtIndex(t)},focusedItemIndex:e,isTargetListItem:!!i&&i.hasAttribute("mwc-list-item"),sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:t=>this.items[t].disabled};!function(t,e){var i=t.event,n=t.isTargetListItem,o=t.focusedItemIndex,r=t.focusItemAtIndex,s=t.sortedIndexByFirstChar,a=t.isItemAtIndexDisabled,d="ArrowLeft"===qe(i),l="ArrowUp"===qe(i),c="ArrowRight"===qe(i),h="ArrowDown"===qe(i),u="Home"===qe(i),p="End"===qe(i),f="Enter"===qe(i),m="Spacebar"===qe(i);i.altKey||i.ctrlKey||i.metaKey||d||l||c||h||u||p||f||(m||1!==i.key.length?m&&(n&&oi(i),n&&ai(e)&&si({focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},e)):(oi(i),si({focusItemAtIndex:r,focusedItemIndex:o,nextChar:i.key.toLowerCase(),sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:a},e)))}(n,this.typeaheadState)}async onSelected(t){this.mdcFoundation||await this.updateComplete,this.mdcFoundation.handleMenuItemAction(t.detail.index);const e=this.items[t.detail.index];e&&(this.value=e.value)}onOpened(){this.mdcFoundation&&(this.menuOpen=!0,this.mdcFoundation.handleMenuOpened())}onClosed(){this.mdcFoundation&&(this.menuOpen=!1,this.mdcFoundation.handleMenuClosed())}setFormData(t){this.name&&null!==this.selected&&t.append(this.name,this.value)}async layout(t=!0){this.mdcFoundation&&this.mdcFoundation.layout(),await this.updateComplete;const e=this.menuElement;e&&e.layout(t);const i=this.labelElement;if(!i)return void(this.outlineOpen=!1);const n=!!this.label&&!!this.value;if(i.floatingLabelFoundation.float(n),!this.outlined)return;this.outlineOpen=n,await this.updateComplete;const o=i.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=o)}async layoutOptions(){this.mdcFoundation&&this.mdcFoundation.layoutOptions()}}o([Mt(".mdc-select")],Oi.prototype,"mdcRoot",void 0),o([Mt(".formElement")],Oi.prototype,"formElement",void 0),o([Mt("slot")],Oi.prototype,"slotElement",void 0),o([Mt("select")],Oi.prototype,"nativeSelectElement",void 0),o([Mt("input")],Oi.prototype,"nativeInputElement",void 0),o([Mt(".mdc-line-ripple")],Oi.prototype,"lineRippleElement",void 0),o([Mt(".mdc-floating-label")],Oi.prototype,"labelElement",void 0),o([Mt("mwc-notched-outline")],Oi.prototype,"outlineElement",void 0),o([Mt(".mdc-menu")],Oi.prototype,"menuElement",void 0),o([Mt(".mdc-select__anchor")],Oi.prototype,"anchorElement",void 0),o([At({type:Boolean,attribute:"disabled",reflect:!0}),ve((function(t){this.mdcFoundation&&this.mdcFoundation.setDisabled(t)}))],Oi.prototype,"disabled",void 0),o([At({type:Boolean}),ve((function(t,e){void 0!==e&&this.outlined!==e&&this.layout(!1)}))],Oi.prototype,"outlined",void 0),o([At({type:String}),ve((function(t,e){void 0!==e&&this.label!==e&&this.layout(!1)}))],Oi.prototype,"label",void 0),o([Rt()],Oi.prototype,"outlineOpen",void 0),o([Rt()],Oi.prototype,"outlineWidth",void 0),o([At({type:String}),ve((function(t){if(this.mdcFoundation){const e=null===this.selected&&!!t,i=this.selected&&this.selected.value!==t;(e||i)&&this.selectByValue(t),this.reportValidity()}}))],Oi.prototype,"value",void 0),o([At()],Oi.prototype,"name",void 0),o([Rt()],Oi.prototype,"selectedText",void 0),o([At({type:String})],Oi.prototype,"icon",void 0),o([Rt()],Oi.prototype,"menuOpen",void 0),o([At({type:String})],Oi.prototype,"helper",void 0),o([At({type:Boolean})],Oi.prototype,"validateOnInitialRender",void 0),o([At({type:String})],Oi.prototype,"validationMessage",void 0),o([At({type:Boolean})],Oi.prototype,"required",void 0),o([At({type:Boolean})],Oi.prototype,"naturalMenuWidth",void 0),o([Rt()],Oi.prototype,"isUiValid",void 0),o([At({type:Boolean})],Oi.prototype,"fixedMenuPosition",void 0),o([Dt({capture:!0})],Oi.prototype,"handleTypeahead",null);
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-const si=(t,e)=>t-e,ai=["input","button","textarea","select"];function di(t){return t instanceof Set}const li=t=>{const e=t===Fe.UNSET_INDEX?new Set:t;return di(e)?new Set(e):new Set([e])};class ci extends Mt{constructor(t){super(Object.assign(Object.assign({},ci.defaultAdapter),t)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=Fe.UNSET_INDEX,this.focusedItemIndex_=Fe.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return Me}static get numbers(){return Fe}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(t){this.wrapFocus_=t}setMulti(t){this.isMulti_=t;const e=this.selectedIndex_;if(t){if(!di(e)){const t=e===Fe.UNSET_INDEX;this.selectedIndex_=t?new Set:new Set([e])}}else if(di(e))if(e.size){const t=Array.from(e).sort(si);this.selectedIndex_=t[0]}else this.selectedIndex_=Fe.UNSET_INDEX}setVerticalOrientation(t){this.isVertical_=t}setUseActivatedClass(t){this.useActivatedClass_=t}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(t){this.isIndexValid_(t)&&(this.isMulti_?this.setMultiSelectionAtIndex_(li(t)):this.setSingleSelectionAtIndex_(t))}handleFocusIn(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,0)}handleFocusOut(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,-1),setTimeout((()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()}),0)}handleKeydown(t,e,i){const n="ArrowLeft"===Oe(t),o="ArrowUp"===Oe(t),r="ArrowRight"===Oe(t),s="ArrowDown"===Oe(t),a="Home"===Oe(t),d="End"===Oe(t),l="Enter"===Oe(t),c="Spacebar"===Oe(t);if(this.adapter.isRootFocused())return void(o||d?(t.preventDefault(),this.focusLastElement()):(s||a)&&(t.preventDefault(),this.focusFirstElement()));let h,u=this.adapter.getFocusedElementIndex();if(!(-1===u&&(u=i,u<0))){if(this.isVertical_&&s||!this.isVertical_&&r)this.preventDefaultEvent(t),h=this.focusNextElement(u);else if(this.isVertical_&&o||!this.isVertical_&&n)this.preventDefaultEvent(t),h=this.focusPrevElement(u);else if(a)this.preventDefaultEvent(t),h=this.focusFirstElement();else if(d)this.preventDefaultEvent(t),h=this.focusLastElement();else if((l||c)&&e){const e=t.target;if(e&&"A"===e.tagName&&l)return;this.preventDefaultEvent(t),this.setSelectedIndexOnAction_(u,!0)}this.focusedItemIndex_=u,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}handleSingleSelection(t,e,i){t!==Fe.UNSET_INDEX&&(this.setSelectedIndexOnAction_(t,e,i),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)}focusNextElement(t){let e=t+1;if(e>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return t;e=0}return this.adapter.focusItemAtIndex(e),e}focusPrevElement(t){let e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(e),e}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const t=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(t),t}setEnabled(t,e){this.isIndexValid_(t)&&this.adapter.setDisabledStateForElementIndex(t,!e)}preventDefaultEvent(t){const e=`${t.target.tagName}`.toLowerCase();-1===ai.indexOf(e)&&t.preventDefault()}setSingleSelectionAtIndex_(t,e=!0){this.selectedIndex_!==t&&(this.selectedIndex_!==Fe.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t,this.adapter.notifySelected(t))}setMultiSelectionAtIndex_(t,e=!0){const i=((t,e)=>{const i=Array.from(t),n=Array.from(e),o={added:[],removed:[]},r=i.sort(si),s=n.sort(si);let a=0,d=0;for(;a=0&&this.focusedItemIndex_!==t&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(t,0)}setTabindexToFirstSelectedItem_(){let t=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==Fe.UNSET_INDEX?t=this.selectedIndex_:di(this.selectedIndex_)&&this.selectedIndex_.size>0&&(t=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(t)}isIndexValid_(t){if(t instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===t.size)return!0;{let e=!1;for(const i of t)if(e=this.isIndexInRange_(i),e)break;return e}}if("number"==typeof t){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return t===Fe.UNSET_INDEX||this.isIndexInRange_(t)}return!1}isIndexInRange_(t){const e=this.adapter.getListItemCount();return t>=0&&tt-e,Si=["input","button","textarea","select"];function Ti(t){return t instanceof Set}const Ii=t=>{const e=t===ii.UNSET_INDEX?new Set:t;return Ti(e)?new Set(e):new Set([e])};class Ai extends ee{constructor(t){super(Object.assign(Object.assign({},Ai.defaultAdapter),t)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=ii.UNSET_INDEX,this.focusedItemIndex_=ii.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return ei}static get numbers(){return ii}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(t){this.wrapFocus_=t}setMulti(t){this.isMulti_=t;const e=this.selectedIndex_;if(t){if(!Ti(e)){const t=e===ii.UNSET_INDEX;this.selectedIndex_=t?new Set:new Set([e])}}else if(Ti(e))if(e.size){const t=Array.from(e).sort(Ci);this.selectedIndex_=t[0]}else this.selectedIndex_=ii.UNSET_INDEX}setVerticalOrientation(t){this.isVertical_=t}setUseActivatedClass(t){this.useActivatedClass_=t}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(t){this.isIndexValid_(t)&&(this.isMulti_?this.setMultiSelectionAtIndex_(Ii(t)):this.setSingleSelectionAtIndex_(t))}handleFocusIn(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,0)}handleFocusOut(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,-1),setTimeout((()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()}),0)}handleKeydown(t,e,i){const n="ArrowLeft"===qe(t),o="ArrowUp"===qe(t),r="ArrowRight"===qe(t),s="ArrowDown"===qe(t),a="Home"===qe(t),d="End"===qe(t),l="Enter"===qe(t),c="Spacebar"===qe(t);if(this.adapter.isRootFocused())return void(o||d?(t.preventDefault(),this.focusLastElement()):(s||a)&&(t.preventDefault(),this.focusFirstElement()));let h,u=this.adapter.getFocusedElementIndex();if(!(-1===u&&(u=i,u<0))){if(this.isVertical_&&s||!this.isVertical_&&r)this.preventDefaultEvent(t),h=this.focusNextElement(u);else if(this.isVertical_&&o||!this.isVertical_&&n)this.preventDefaultEvent(t),h=this.focusPrevElement(u);else if(a)this.preventDefaultEvent(t),h=this.focusFirstElement();else if(d)this.preventDefaultEvent(t),h=this.focusLastElement();else if((l||c)&&e){const e=t.target;if(e&&"A"===e.tagName&&l)return;this.preventDefaultEvent(t),this.setSelectedIndexOnAction_(u,!0)}this.focusedItemIndex_=u,void 0!==h&&(this.setTabindexAtIndex_(h),this.focusedItemIndex_=h)}}handleSingleSelection(t,e,i){t!==ii.UNSET_INDEX&&(this.setSelectedIndexOnAction_(t,e,i),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)}focusNextElement(t){let e=t+1;if(e>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return t;e=0}return this.adapter.focusItemAtIndex(e),e}focusPrevElement(t){let e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(e),e}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const t=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(t),t}setEnabled(t,e){this.isIndexValid_(t)&&this.adapter.setDisabledStateForElementIndex(t,!e)}preventDefaultEvent(t){const e=`${t.target.tagName}`.toLowerCase();-1===Si.indexOf(e)&&t.preventDefault()}setSingleSelectionAtIndex_(t,e=!0){this.selectedIndex_!==t&&(this.selectedIndex_!==ii.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t,this.adapter.notifySelected(t))}setMultiSelectionAtIndex_(t,e=!0){const i=((t,e)=>{const i=Array.from(t),n=Array.from(e),o={added:[],removed:[]},r=i.sort(Ci),s=n.sort(Ci);let a=0,d=0;for(;a=0&&this.focusedItemIndex_!==t&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(t,0)}setTabindexToFirstSelectedItem_(){let t=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==ii.UNSET_INDEX?t=this.selectedIndex_:Ti(this.selectedIndex_)&&this.selectedIndex_.size>0&&(t=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(t)}isIndexValid_(t){if(t instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===t.size)return!0;{let e=!1;for(const i of t)if(e=this.isIndexInRange_(i),e)break;return e}}if("number"==typeof t){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return t===ii.UNSET_INDEX||this.isIndexInRange_(t)}return!1}isIndexInRange_(t){const e=this.adapter.getListItemCount();return t>=0&&tt.hasAttribute("mwc-list-item");function ui(){const t=this.itemsReadyResolver;this.itemsReady=new Promise((t=>this.itemsReadyResolver=t)),t()}class pi extends Vt{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=ci,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const t=function(t,e=50){let i;return function(n=!0){clearTimeout(i),i=setTimeout((()=>{t(n)}),e)}}(this.layout.bind(this));this.debouncedLayout=(e=!0)=>{ui.call(this),t(e)}}async getUpdateComplete(){const t=await super.getUpdateComplete();return await this.itemsReady,t}get items(){return this.items_}updateItems(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[],i=[];for(const t of e)hi(t)&&(i.push(t),t._managingList=this),t.hasAttribute("divider")&&!t.hasAttribute("role")&&t.setAttribute("role","separator");this.items_=i;const n=new Set;if(this.items_.forEach(((t,e)=>{this.itemRoles?t.setAttribute("role",this.itemRoles):t.removeAttribute("role"),t.selected&&n.add(e)})),this.multi)this.select(n);else{const t=n.size?n.entries().next().value[1]:-1;this.select(t)}const o=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(o)}get selected(){const t=this.index;if(!di(t))return-1===t?null:this.items[t];const e=[];for(const i of t)e.push(this.items[i]);return e}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const t=null===this.innerRole?void 0:this.innerRole,e=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return W`
+ */const Ri=t=>t.hasAttribute("mwc-list-item");function Pi(){const t=this.itemsReadyResolver;this.itemsReady=new Promise((t=>this.itemsReadyResolver=t)),t()}class Di extends he{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=Ai,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const t=function(t,e=50){let i;return function(n=!0){clearTimeout(i),i=setTimeout((()=>{t(n)}),e)}}(this.layout.bind(this));this.debouncedLayout=(e=!0)=>{Pi.call(this),t(e)}}async getUpdateComplete(){const t=await super.getUpdateComplete();return await this.itemsReady,t}get items(){return this.items_}updateItems(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[],i=[];for(const t of e)Ri(t)&&(i.push(t),t._managingList=this),t.hasAttribute("divider")&&!t.hasAttribute("role")&&t.setAttribute("role","separator");this.items_=i;const n=new Set;if(this.items_.forEach(((t,e)=>{this.itemRoles?t.setAttribute("role",this.itemRoles):t.removeAttribute("role"),t.selected&&n.add(e)})),this.multi)this.select(n);else{const t=n.size?n.entries().next().value[1]:-1;this.select(t)}const o=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(o)}get selected(){const t=this.index;if(!Ti(t))return-1===t?null:this.items[t];const e=[];for(const i of t)e.push(this.items[i]);return e}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const t=null===this.innerRole?void 0:this.innerRole,e=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return $`
t-e,ai=["input","button","textarea","select"];function di(t){ret
${this.renderPlaceholder()}
- `}renderPlaceholder(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[];return void 0!==this.emptyMessage&&0===e.length?W`
+ `}renderPlaceholder(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[];return void 0!==this.emptyMessage&&0===e.length?$`
${this.emptyMessage}
- `:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusIn(t,e)}}onFocusOut(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusOut(t,e)}}onKeydown(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t),i=t.target,n=hi(i);this.mdcFoundation.handleKeydown(t,n,e)}}onRequestSelected(t){if(this.mdcFoundation){let e=this.getIndexOfTarget(t);if(-1===e&&(this.layout(),e=this.getIndexOfTarget(t),-1===e))return;if(this.items[e].disabled)return;const i=t.detail.selected,n=t.detail.source;this.mdcFoundation.handleSingleSelection(e,"interaction"===n,i),t.stopPropagation()}}getIndexOfTarget(t){const e=this.items,i=t.composedPath();for(const t of i){let i=-1;if(Bt(t)&&hi(t)&&(i=e.indexOf(t)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(t,e)=>{if(!this.mdcRoot)return"";const i=this.items[t];return i?i.getAttribute(e):""},setAttributeForElementIndex:(t,e,i)=>{if(!this.mdcRoot)return;const n=this.items[t];n&&n.setAttribute(e,i)},focusItemAtIndex:t=>{const e=this.items[t];e&&e.focus()},setTabIndexForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.tabindex=e)},notifyAction:t=>{const e={bubbles:!0,composed:!0};e.detail={index:t};const i=new CustomEvent("action",e);this.dispatchEvent(i)},notifySelected:(t,e)=>{const i={bubbles:!0,composed:!0};i.detail={index:t,diff:e};const n=new CustomEvent("selected",i);this.dispatchEvent(n)},isFocusInsideList:()=>Wt(this),isRootFocused:()=>{const t=this.mdcRoot;return t.getRootNode().activeElement===t},setDisabledStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.disabled=e)},getDisabledStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.disabled},setSelectedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.selected=e)},getSelectedStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.selected},setActivatedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.activated=e)}},this.mdcAdapter}selectUi(t,e=!1){const i=this.items[t];i&&(i.selected=!0,i.activated=e)}deselectUi(t){const e=this.items[t];e&&(e.selected=!1,e.activated=!1)}select(t){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(t)}toggle(t,e){this.multi&&this.mdcFoundation.toggleMultiAtIndex(t,e)}onListItemConnected(t){const e=t.target;this.layout(-1===this.items.indexOf(e))}layout(t=!0){t&&this.updateItems();const e=this.items[0];for(const t of this.items)t.tabindex=-1;e&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=e):e.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const t=$t();if(!t.length)return-1;for(let e=t.length-1;e>=0;e--){const i=t[e];if(hi(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(t){for(const t of this.items)if(0===t.tabindex){t.tabindex=-1;break}this.items[t].tabindex=0,this.items[t].focus()}focus(){const t=this.mdcRoot;t&&t.focus()}blur(){const t=this.mdcRoot;t&&t.blur()}}o([ut({type:String})],pi.prototype,"emptyMessage",void 0),o([vt(".mdc-deprecated-list")],pi.prototype,"mdcRoot",void 0),o([xt("",!0,"*")],pi.prototype,"assignedElements",void 0),o([xt("",!0,'[tabindex="0"]')],pi.prototype,"tabbableElements",void 0),o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(t)}))],pi.prototype,"activatable",void 0),o([ut({type:Boolean}),Yt((function(t,e){this.mdcFoundation&&this.mdcFoundation.setMulti(t),void 0!==e&&this.layout()}))],pi.prototype,"multi",void 0),o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(t)}))],pi.prototype,"wrapFocus",void 0),o([ut({type:String}),Yt((function(t,e){void 0!==e&&this.updateItems()}))],pi.prototype,"itemRoles",void 0),o([ut({type:String})],pi.prototype,"innerRole",void 0),o([ut({type:String})],pi.prototype,"innerAriaLabel",void 0),o([ut({type:Boolean})],pi.prototype,"rootTabbable",void 0),o([ut({type:Boolean,reflect:!0}),Yt((function(t){var e,i;if(t){const t=null!==(i=null===(e=this.tabbableElements)||void 0===e?void 0:e[0])&&void 0!==i?i:null;this.previousTabindex=t,t&&t.setAttribute("tabindex","-1")}else!t&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],pi.prototype,"noninteractive",void 0);
+ `:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusIn(t,e)}}onFocusOut(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusOut(t,e)}}onKeydown(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t),i=t.target,n=Ri(i);this.mdcFoundation.handleKeydown(t,n,e)}}onRequestSelected(t){if(this.mdcFoundation){let e=this.getIndexOfTarget(t);if(-1===e&&(this.layout(),e=this.getIndexOfTarget(t),-1===e))return;if(this.items[e].disabled)return;const i=t.detail.selected,n=t.detail.source;this.mdcFoundation.handleSingleSelection(e,"interaction"===n,i),t.stopPropagation()}}getIndexOfTarget(t){const e=this.items,i=t.composedPath();for(const t of i){let i=-1;if(re(t)&&Ri(t)&&(i=e.indexOf(t)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(t,e)=>{if(!this.mdcRoot)return"";const i=this.items[t];return i?i.getAttribute(e):""},setAttributeForElementIndex:(t,e,i)=>{if(!this.mdcRoot)return;const n=this.items[t];n&&n.setAttribute(e,i)},focusItemAtIndex:t=>{const e=this.items[t];e&&e.focus()},setTabIndexForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.tabindex=e)},notifyAction:t=>{const e={bubbles:!0,composed:!0};e.detail={index:t};const i=new CustomEvent("action",e);this.dispatchEvent(i)},notifySelected:(t,e)=>{const i={bubbles:!0,composed:!0};i.detail={index:t,diff:e};const n=new CustomEvent("selected",i);this.dispatchEvent(n)},isFocusInsideList:()=>ce(this),isRootFocused:()=>{const t=this.mdcRoot;return t.getRootNode().activeElement===t},setDisabledStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.disabled=e)},getDisabledStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.disabled},setSelectedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.selected=e)},getSelectedStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.selected},setActivatedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.activated=e)}},this.mdcAdapter}selectUi(t,e=!1){const i=this.items[t];i&&(i.selected=!0,i.activated=e)}deselectUi(t){const e=this.items[t];e&&(e.selected=!1,e.activated=!1)}select(t){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(t)}toggle(t,e){this.multi&&this.mdcFoundation.toggleMultiAtIndex(t,e)}onListItemConnected(t){const e=t.target;this.layout(-1===this.items.indexOf(e))}layout(t=!0){t&&this.updateItems();const e=this.items[0];for(const t of this.items)t.tabindex=-1;e&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=e):e.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const t=le();if(!t.length)return-1;for(let e=t.length-1;e>=0;e--){const i=t[e];if(Ri(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(t){for(const t of this.items)if(0===t.tabindex){t.tabindex=-1;break}this.items[t].tabindex=0,this.items[t].focus()}focus(){const t=this.mdcRoot;t&&t.focus()}blur(){const t=this.mdcRoot;t&&t.blur()}}o([At({type:String})],Di.prototype,"emptyMessage",void 0),o([Mt(".mdc-deprecated-list")],Di.prototype,"mdcRoot",void 0),o([Lt("",!0,"*")],Di.prototype,"assignedElements",void 0),o([Lt("",!0,'[tabindex="0"]')],Di.prototype,"tabbableElements",void 0),o([At({type:Boolean}),ve((function(t){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(t)}))],Di.prototype,"activatable",void 0),o([At({type:Boolean}),ve((function(t,e){this.mdcFoundation&&this.mdcFoundation.setMulti(t),void 0!==e&&this.layout()}))],Di.prototype,"multi",void 0),o([At({type:Boolean}),ve((function(t){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(t)}))],Di.prototype,"wrapFocus",void 0),o([At({type:String}),ve((function(t,e){void 0!==e&&this.updateItems()}))],Di.prototype,"itemRoles",void 0),o([At({type:String})],Di.prototype,"innerRole",void 0),o([At({type:String})],Di.prototype,"innerAriaLabel",void 0),o([At({type:Boolean})],Di.prototype,"rootTabbable",void 0),o([At({type:Boolean,reflect:!0}),ve((function(t){var e,i;if(t){const t=null!==(i=null===(e=this.tabbableElements)||void 0===e?void 0:e[0])&&void 0!==i?i:null;this.previousTabindex=t,t&&t.setAttribute("tabindex","-1")}else!t&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],Di.prototype,"noninteractive",void 0);
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-class fi{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}
+class Mi{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
- */class mi extends dt{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new fi((()=>(this.shouldRenderRipple=!0,this.ripple))),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:t=>{const e=t.type;this.onDown("mousedown"===e?"mouseup":"touchend",t)}}]}get text(){const t=this.textContent;return t?t.trim():""}render(){const t=this.renderText(),e=this.graphic?this.renderGraphic():W``,i=this.hasMeta?this.renderMeta():W``;return W`
+ */class Fi extends Ot{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new Mi((()=>(this.shouldRenderRipple=!0,this.ripple))),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:t=>{const e=t.type;this.onDown("mousedown"===e?"mouseup":"touchend",t)}}]}get text(){const t=this.textContent;return t?t.trim():""}render(){const t=this.renderText(),e=this.graphic?this.renderGraphic():$``,i=this.hasMeta?this.renderMeta():$``;return $`
${this.renderRipple()}
${e}
${t}
- ${i}`}renderRipple(){return this.shouldRenderRipple?W`
+ ${i}`}renderRipple(){return this.shouldRenderRipple?$`
- `:this.activated?W`
`:""}renderGraphic(){const t={multi:this.multipleGraphics};return W`
-
+ `:this.activated?$`
`:""}renderGraphic(){const t={multi:this.multipleGraphics};return $`
+
- `}renderMeta(){return W`
+ `}renderMeta(){return $`
- `}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return W`
+ `}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return $`
${t}
- `}renderSingleLine(){return W` `}renderTwoline(){return W`
+ `}renderSingleLine(){return $` `}renderTwoline(){return $`
- `}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(t,e){const i=()=>{window.removeEventListener(t,i),this.rippleHandlers.endPress()};window.addEventListener(t,i),this.rippleHandlers.startPress(e)}fireRequestSelected(t,e){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:e,selected:t}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const t of this.listeners)for(const e of t.eventNames)t.target.addEventListener(e,t.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const t of this.listeners)for(const e of t.eventNames)t.target.removeEventListener(e,t.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const t=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(t)}}o([vt("slot")],mi.prototype,"slotElement",void 0),o([gt("mwc-ripple")],mi.prototype,"ripple",void 0),o([ut({type:String})],mi.prototype,"value",void 0),o([ut({type:String,reflect:!0})],mi.prototype,"group",void 0),o([ut({type:Number,reflect:!0})],mi.prototype,"tabindex",void 0),o([ut({type:Boolean,reflect:!0}),Yt((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],mi.prototype,"disabled",void 0),o([ut({type:Boolean,reflect:!0})],mi.prototype,"twoline",void 0),o([ut({type:Boolean,reflect:!0})],mi.prototype,"activated",void 0),o([ut({type:String,reflect:!0})],mi.prototype,"graphic",void 0),o([ut({type:Boolean})],mi.prototype,"multipleGraphics",void 0),o([ut({type:Boolean})],mi.prototype,"hasMeta",void 0),o([ut({type:Boolean,reflect:!0}),Yt((function(t){t?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],mi.prototype,"noninteractive",void 0),o([ut({type:Boolean,reflect:!0}),Yt((function(t){const e=this.getAttribute("role"),i="gridcell"===e||"option"===e||"row"===e||"tab"===e;i&&t?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(t,"property")}))],mi.prototype,"selected",void 0),o([pt()],mi.prototype,"shouldRenderRipple",void 0),o([pt()],mi.prototype,"_managingList",void 0);
+ `}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(t,e){const i=()=>{window.removeEventListener(t,i),this.rippleHandlers.endPress()};window.addEventListener(t,i),this.rippleHandlers.startPress(e)}fireRequestSelected(t,e){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:e,selected:t}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const t of this.listeners)for(const e of t.eventNames)t.target.addEventListener(e,t.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const t of this.listeners)for(const e of t.eventNames)t.target.removeEventListener(e,t.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const t=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(t)}}o([Mt("slot")],Fi.prototype,"slotElement",void 0),o([Ft("mwc-ripple")],Fi.prototype,"ripple",void 0),o([At({type:String})],Fi.prototype,"value",void 0),o([At({type:String,reflect:!0})],Fi.prototype,"group",void 0),o([At({type:Number,reflect:!0})],Fi.prototype,"tabindex",void 0),o([At({type:Boolean,reflect:!0}),ve((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],Fi.prototype,"disabled",void 0),o([At({type:Boolean,reflect:!0})],Fi.prototype,"twoline",void 0),o([At({type:Boolean,reflect:!0})],Fi.prototype,"activated",void 0),o([At({type:String,reflect:!0})],Fi.prototype,"graphic",void 0),o([At({type:Boolean})],Fi.prototype,"multipleGraphics",void 0),o([At({type:Boolean})],Fi.prototype,"hasMeta",void 0),o([At({type:Boolean,reflect:!0}),ve((function(t){t?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],Fi.prototype,"noninteractive",void 0),o([At({type:Boolean,reflect:!0}),ve((function(t){const e=this.getAttribute("role"),i="gridcell"===e||"option"===e||"row"===e||"tab"===e;i&&t?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(t,"property")}))],Fi.prototype,"selected",void 0),o([Rt()],Fi.prototype,"shouldRenderRipple",void 0),o([Rt()],Fi.prototype,"_managingList",void 0);
/**
* @license
* Copyright 2018 Google Inc.
@@ -527,7 +543,30 @@ class fi{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var vi,gi={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},yi={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},bi={FOCUS_ROOT_INDEX:-1};!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(vi||(vi={}));
+var Ni,Bi={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},Li={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},zi={FOCUS_ROOT_INDEX:-1};!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(Ni||(Ni={}));
+/**
+ * @license
+ * Copyright 2018 Google Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+var ji=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.isSurfaceOpen=!1,o.isQuickOpen=!1,o.isHoistedElement=!1,o.isFixedPosition=!1,o.isHorizontallyCenteredOnViewport=!1,o.maxHeight=0,o.openBottomBias=0,o.openAnimationEndTimerId=0,o.closeAnimationEndTimerId=0,o.animationRequestId=0,o.anchorCorner=mi.TOP_START,o.originCorner=mi.TOP_START,o.anchorMargin={top:0,right:0,bottom:0,left:0},o.position={x:0,y:0},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return vi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return gi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return yi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return mi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,i=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(i))throw new Error(i+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},e.prototype.setAnchorCorner=function(t){this.anchorCorner=t},e.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^fi.RIGHT},e.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition=t},e.prototype.isFixed=function(){return this.isFixedPosition},e.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},e.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},e.prototype.setQuickOpen=function(t){this.isQuickOpen=t},e.prototype.setMaxHeight=function(t){this.maxHeight=t},e.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},e.prototype.isOpen=function(){return this.isSurfaceOpen},e.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(e.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(e.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout((function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()}),yi.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},e.prototype.close=function(t){var i=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(e.cssClasses.OPEN),this.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){i.adapter.removeClass(e.cssClasses.OPEN),i.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),i.closeAnimationEndTimerId=setTimeout((function(){i.closeAnimationEndTimerId=0,i.adapter.removeClass(e.cssClasses.ANIMATING_CLOSED),i.adapter.notifyClose()}),yi.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},e.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},e.prototype.handleKeydown=function(t){var e=t.keyCode;("Escape"===t.key||27===e)&&this.close()},e.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var i=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(i),o=this.hasBit(i,fi.BOTTOM)?"bottom":"top",r=this.hasBit(i,fi.RIGHT)?"right":"left",s=this.getHorizontalOriginOffset(i),a=this.getVerticalOriginOffset(i),d=this.measurements,l=d.anchorSize,c=d.surfaceSize,h=((t={})[r]=s,t[o]=a,t);l.width/c.width>yi.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(h),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(i,fi.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),i=this.adapter.getWindowDimensions(),n=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:i.width-t.right,bottom:i.height-t.bottom,left:t.left},viewportSize:i,windowScroll:n}},e.prototype.getoriginCorner=function(){var t,i,n=this.originCorner,o=this.measurements,r=o.viewportDistance,s=o.anchorSize,a=o.surfaceSize,d=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,fi.BOTTOM)?(t=r.top-d+this.anchorMargin.bottom,i=r.bottom-d-this.anchorMargin.bottom):(t=r.top-d+this.anchorMargin.top,i=r.bottom-d+s.height-this.anchorMargin.top),!(i-a.height>0)&&t>i+this.openBottomBias&&(n=this.setBit(n,fi.BOTTOM));var l,c,h=this.adapter.isRtl(),u=this.hasBit(this.anchorCorner,fi.FLIP_RTL),p=this.hasBit(this.anchorCorner,fi.RIGHT)||this.hasBit(n,fi.RIGHT),f=!1;(f=h&&u?!p:p)?(l=r.left+s.width+this.anchorMargin.right,c=r.right-this.anchorMargin.right):(l=r.left+this.anchorMargin.left,c=r.right+s.width-this.anchorMargin.left);var m=l-a.width>0,v=c-a.width>0,g=this.hasBit(n,fi.FLIP_RTL)&&this.hasBit(n,fi.RIGHT);return v&&g&&h||!m&&g?n=this.unsetBit(n,fi.RIGHT):(m&&f&&h||m&&!f&&p||!v&&l>=c)&&(n=this.setBit(n,fi.RIGHT)),n},e.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var i=this.measurements.viewportDistance,n=0,o=this.hasBit(t,fi.BOTTOM),r=this.hasBit(this.anchorCorner,fi.BOTTOM),s=e.numbers.MARGIN_TO_EDGE;return o?(n=i.top+this.anchorMargin.top-s,r||(n+=this.measurements.anchorSize.height)):(n=i.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,r&&(n-=this.measurements.anchorSize.height)),n},e.prototype.getHorizontalOriginOffset=function(t){var e=this.measurements.anchorSize,i=this.hasBit(t,fi.RIGHT),n=this.hasBit(this.anchorCorner,fi.RIGHT);if(i){var o=n?e.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return n?e.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var e=this.measurements.anchorSize,i=this.hasBit(t,fi.BOTTOM),n=this.hasBit(this.anchorCorner,fi.BOTTOM);return i?n?e.height-this.anchorMargin.top:-this.anchorMargin.bottom:n?e.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var e,i,n=this.measurements,o=n.windowScroll,s=n.viewportDistance,a=n.surfaceSize,d=n.viewportSize,l=Object.keys(t);try{for(var c=r(l),h=c.next();!h.done;h=c.next()){var u=h.value,p=t[u]||0;!this.isHorizontallyCenteredOnViewport||"left"!==u&&"right"!==u?(p+=s[u],this.isFixedPosition||("top"===u?p+=o.y:"bottom"===u?p-=o.y:"left"===u?p+=o.x:p-=o.x),t[u]=p):t[u]=(d.width-a.width)/2}}catch(t){e={error:t}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}},e.prototype.maybeRestoreFocus=function(){var t=this,e=this.adapter.isFocused(),i=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,n=i.activeElement&&this.adapter.isElementInContainer(i.activeElement);(e||n)&&setTimeout((function(){t.adapter.restoreFocus()}),yi.TOUCH_EVENT_WAIT_MS)},e.prototype.hasBit=function(t,e){return Boolean(t&e)},e.prototype.setBit=function(t,e){return t|e},e.prototype.unsetBit=function(t,e){return t^e},e.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},e}(ee),Hi=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.closeAnimationEndTimerId=0,o.defaultFocusState=Ni.LIST_ROOT,o.selectedIndex=-1,o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Bi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Li},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return zi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){var e=t.key,i=t.keyCode;("Tab"===e||9===i)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var e=this,i=this.adapter.getElementIndex(t);if(!(i<0)){this.adapter.notifySelected({index:i});var n="true"===this.adapter.getAttributeFromElementAtIndex(i,Li.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(n),this.closeAnimationEndTimerId=setTimeout((function(){var i=e.adapter.getElementIndex(t);i>=0&&e.adapter.isSelectableItemAtIndex(i)&&e.setSelectedIndex(i)}),ji.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case Ni.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case Ni.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case Ni.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter.getSelectedSiblingOfItemAtIndex(t);e>=0&&(this.adapter.removeAttributeFromElementAtIndex(e,Li.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(e,Bi.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,Bi.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,Li.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,e){this.validatedIndex(t),e?(this.adapter.removeClassFromElementAtIndex(t,Ge),this.adapter.addAttributeToElementAtIndex(t,Li.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,Ge),this.adapter.addAttributeToElementAtIndex(t,Li.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var e=this.adapter.getMenuItemCount();if(!(t>=0&&tZe.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(h),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(i,Xe.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),i=this.adapter.getWindowDimensions(),n=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:i.width-t.right,bottom:i.height-t.bottom,left:t.left},viewportSize:i,windowScroll:n}},e.prototype.getoriginCorner=function(){var t,i,n=this.originCorner,o=this.measurements,r=o.viewportDistance,s=o.anchorSize,a=o.surfaceSize,d=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,Xe.BOTTOM)?(t=r.top-d+this.anchorMargin.bottom,i=r.bottom-d-this.anchorMargin.bottom):(t=r.top-d+this.anchorMargin.top,i=r.bottom-d+s.height-this.anchorMargin.top),!(i-a.height>0)&&t>i+this.openBottomBias&&(n=this.setBit(n,Xe.BOTTOM));var l,c,h=this.adapter.isRtl(),u=this.hasBit(this.anchorCorner,Xe.FLIP_RTL),p=this.hasBit(this.anchorCorner,Xe.RIGHT)||this.hasBit(n,Xe.RIGHT),f=!1;(f=h&&u?!p:p)?(l=r.left+s.width+this.anchorMargin.right,c=r.right-this.anchorMargin.right):(l=r.left+this.anchorMargin.left,c=r.right+s.width-this.anchorMargin.left);var m=l-a.width>0,v=c-a.width>0,g=this.hasBit(n,Xe.FLIP_RTL)&&this.hasBit(n,Xe.RIGHT);return v&&g&&h||!m&&g?n=this.unsetBit(n,Xe.RIGHT):(m&&f&&h||m&&!f&&p||!v&&l>=c)&&(n=this.setBit(n,Xe.RIGHT)),n},e.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var i=this.measurements.viewportDistance,n=0,o=this.hasBit(t,Xe.BOTTOM),r=this.hasBit(this.anchorCorner,Xe.BOTTOM),s=e.numbers.MARGIN_TO_EDGE;return o?(n=i.top+this.anchorMargin.top-s,r||(n+=this.measurements.anchorSize.height)):(n=i.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,r&&(n-=this.measurements.anchorSize.height)),n},e.prototype.getHorizontalOriginOffset=function(t){var e=this.measurements.anchorSize,i=this.hasBit(t,Xe.RIGHT),n=this.hasBit(this.anchorCorner,Xe.RIGHT);if(i){var o=n?e.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return n?e.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var e=this.measurements.anchorSize,i=this.hasBit(t,Xe.BOTTOM),n=this.hasBit(this.anchorCorner,Xe.BOTTOM);return i?n?e.height-this.anchorMargin.top:-this.anchorMargin.bottom:n?e.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var e,i,n=this.measurements,o=n.windowScroll,s=n.viewportDistance,a=n.surfaceSize,d=n.viewportSize,l=Object.keys(t);try{for(var c=r(l),h=c.next();!h.done;h=c.next()){var u=h.value,p=t[u]||0;!this.isHorizontallyCenteredOnViewport||"left"!==u&&"right"!==u?(p+=s[u],this.isFixedPosition||("top"===u?p+=o.y:"bottom"===u?p-=o.y:"left"===u?p+=o.x:p-=o.x),t[u]=p):t[u]=(d.width-a.width)/2}}catch(t){e={error:t}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}},e.prototype.maybeRestoreFocus=function(){var t=this,e=this.adapter.isFocused(),i=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,n=i.activeElement&&this.adapter.isElementInContainer(i.activeElement);(e||n)&&setTimeout((function(){t.adapter.restoreFocus()}),Ze.TOUCH_EVENT_WAIT_MS)},e.prototype.hasBit=function(t,e){return Boolean(t&e)},e.prototype.setBit=function(t,e){return t|e},e.prototype.unsetBit=function(t,e){return t^e},e.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},e}(Mt),_i=xi,wi=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.closeAnimationEndTimerId=0,o.defaultFocusState=vi.LIST_ROOT,o.selectedIndex=-1,o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return gi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return yi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return bi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){var e=t.key,i=t.keyCode;("Tab"===e||9===i)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var e=this,i=this.adapter.getElementIndex(t);if(!(i<0)){this.adapter.notifySelected({index:i});var n="true"===this.adapter.getAttributeFromElementAtIndex(i,yi.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(n),this.closeAnimationEndTimerId=setTimeout((function(){var i=e.adapter.getElementIndex(t);i>=0&&e.adapter.isSelectableItemAtIndex(i)&&e.setSelectedIndex(i)}),xi.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case vi.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case vi.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case vi.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var e=this.adapter.getSelectedSiblingOfItemAtIndex(t);e>=0&&(this.adapter.removeAttributeFromElementAtIndex(e,yi.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(e,gi.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,gi.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,yi.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,e){this.validatedIndex(t),e?(this.adapter.removeClassFromElementAtIndex(t,Ie),this.adapter.addAttributeToElementAtIndex(t,yi.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,Ie),this.adapter.addAttributeToElementAtIndex(t,yi.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var e=this.adapter.getMenuItemCount();if(!(t>=0&&t
${this.renderList()}
- `}getSurfaceClasses(){return{"mdc-menu":!0,"mdc-menu-surface":!0}}renderList(){const t="menu"===this.innerRole?"menuitem":"option",e=this.renderListClasses();return W`
+ `}getSurfaceClasses(){return{"mdc-menu":!0,"mdc-menu-surface":!0}}renderList(){const t="menu"===this.innerRole?"menuitem":"option",e=this.renderListClasses();return $`
- `}renderListClasses(){return{"mdc-deprecated-list":!0}}createAdapter(){return{addClassToElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&("mdc-menu-item--selected"===e?this.forceGroupSelection&&!n.selected&&i.toggle(t,!0):n.classList.add(e))},removeClassFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&("mdc-menu-item--selected"===e?n.selected&&i.toggle(t,!1):n.classList.remove(e))},addAttributeToElementAtIndex:(t,e,i)=>{const n=this.listElement;if(!n)return;const o=n.items[t];o&&o.setAttribute(e,i)},removeAttributeFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&n.removeAttribute(e)},getAttributeFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return null;const n=i.items[t];return n?n.getAttribute(e):null},elementContainsClass:(t,e)=>t.classList.contains(e),closeSurface:()=>{this.open=!1},getElementIndex:t=>{const e=this.listElement;return e?e.items.indexOf(t):-1},notifySelected:()=>{},getMenuItemCount:()=>{const t=this.listElement;return t?t.items.length:0},focusItemAtIndex:t=>{const e=this.listElement;if(!e)return;const i=e.items[t];i&&i.focus()},focusListRoot:()=>{this.listElement&&this.listElement.focus()},getSelectedSiblingOfItemAtIndex:t=>{const e=this.listElement;if(!e)return-1;const i=e.items[t];if(!i||!i.group)return-1;for(let n=0;n{const e=this.listElement;if(!e)return!1;const i=e.items[t];return!!i&&i.hasAttribute("group")}}}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onAction(t){const e=this.listElement;if(this.mdcFoundation&&e){const i=t.detail.index,n=e.items[i];n&&this.mdcFoundation.handleItemAction(n)}}onOpened(){this.open=!0,this.mdcFoundation&&this.mdcFoundation.handleMenuSurfaceOpened()}onClosed(){this.open=!1}async getUpdateComplete(){await this._listUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){super.firstUpdated();const t=this.listElement;t&&(this._listUpdateComplete=t.updateComplete,await this._listUpdateComplete)}select(t){const e=this.listElement;e&&e.select(t)}close(){this.open=!1}show(){this.open=!0}getFocusedItemIndex(){const t=this.listElement;return t?t.getFocusedItemIndex():-1}focusItemAtIndex(t){const e=this.listElement;e&&e.focusItemAtIndex(t)}layout(t=!0){const e=this.listElement;e&&e.layout(t)}}o([vt(".mdc-menu")],ki.prototype,"mdcRoot",void 0),o([vt("slot")],ki.prototype,"slotElement",void 0),o([ut({type:Object})],ki.prototype,"anchor",void 0),o([ut({type:Boolean,reflect:!0})],ki.prototype,"open",void 0),o([ut({type:Boolean})],ki.prototype,"quick",void 0),o([ut({type:Boolean})],ki.prototype,"wrapFocus",void 0),o([ut({type:String})],ki.prototype,"innerRole",void 0),o([ut({type:String})],ki.prototype,"innerAriaLabel",void 0),o([ut({type:String})],ki.prototype,"corner",void 0),o([ut({type:Number})],ki.prototype,"x",void 0),o([ut({type:Number})],ki.prototype,"y",void 0),o([ut({type:Boolean})],ki.prototype,"absolute",void 0),o([ut({type:Boolean})],ki.prototype,"multi",void 0),o([ut({type:Boolean})],ki.prototype,"activatable",void 0),o([ut({type:Boolean})],ki.prototype,"fixed",void 0),o([ut({type:Boolean})],ki.prototype,"forceGroupSelection",void 0),o([ut({type:Boolean})],ki.prototype,"fullwidth",void 0),o([ut({type:String})],ki.prototype,"menuCorner",void 0),o([ut({type:Boolean})],ki.prototype,"stayOpenOnBodyClick",void 0),o([ut({type:String}),Yt((function(t){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState(vi[t])}))],ki.prototype,"defaultFocus",void 0);
+ `}renderListClasses(){return{"mdc-deprecated-list":!0}}createAdapter(){return{addClassToElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&("mdc-menu-item--selected"===e?this.forceGroupSelection&&!n.selected&&i.toggle(t,!0):n.classList.add(e))},removeClassFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&("mdc-menu-item--selected"===e?n.selected&&i.toggle(t,!1):n.classList.remove(e))},addAttributeToElementAtIndex:(t,e,i)=>{const n=this.listElement;if(!n)return;const o=n.items[t];o&&o.setAttribute(e,i)},removeAttributeFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return;const n=i.items[t];n&&n.removeAttribute(e)},getAttributeFromElementAtIndex:(t,e)=>{const i=this.listElement;if(!i)return null;const n=i.items[t];return n?n.getAttribute(e):null},elementContainsClass:(t,e)=>t.classList.contains(e),closeSurface:()=>{this.open=!1},getElementIndex:t=>{const e=this.listElement;return e?e.items.indexOf(t):-1},notifySelected:()=>{},getMenuItemCount:()=>{const t=this.listElement;return t?t.items.length:0},focusItemAtIndex:t=>{const e=this.listElement;if(!e)return;const i=e.items[t];i&&i.focus()},focusListRoot:()=>{this.listElement&&this.listElement.focus()},getSelectedSiblingOfItemAtIndex:t=>{const e=this.listElement;if(!e)return-1;const i=e.items[t];if(!i||!i.group)return-1;for(let n=0;n{const e=this.listElement;if(!e)return!1;const i=e.items[t];return!!i&&i.hasAttribute("group")}}}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onAction(t){const e=this.listElement;if(this.mdcFoundation&&e){const i=t.detail.index,n=e.items[i];n&&this.mdcFoundation.handleItemAction(n)}}onOpened(){this.open=!0,this.mdcFoundation&&this.mdcFoundation.handleMenuSurfaceOpened()}onClosed(){this.open=!1}async getUpdateComplete(){await this._listUpdateComplete;return await super.getUpdateComplete()}async firstUpdated(){super.firstUpdated();const t=this.listElement;t&&(this._listUpdateComplete=t.updateComplete,await this._listUpdateComplete)}select(t){const e=this.listElement;e&&e.select(t)}close(){this.open=!1}show(){this.open=!0}getFocusedItemIndex(){const t=this.listElement;return t?t.getFocusedItemIndex():-1}focusItemAtIndex(t){const e=this.listElement;e&&e.focusItemAtIndex(t)}layout(t=!0){const e=this.listElement;e&&e.layout(t)}}o([Mt(".mdc-menu")],$i.prototype,"mdcRoot",void 0),o([Mt("slot")],$i.prototype,"slotElement",void 0),o([At({type:Object})],$i.prototype,"anchor",void 0),o([At({type:Boolean,reflect:!0})],$i.prototype,"open",void 0),o([At({type:Boolean})],$i.prototype,"quick",void 0),o([At({type:Boolean})],$i.prototype,"wrapFocus",void 0),o([At({type:String})],$i.prototype,"innerRole",void 0),o([At({type:String})],$i.prototype,"innerAriaLabel",void 0),o([At({type:String})],$i.prototype,"corner",void 0),o([At({type:Number})],$i.prototype,"x",void 0),o([At({type:Number})],$i.prototype,"y",void 0),o([At({type:Boolean})],$i.prototype,"absolute",void 0),o([At({type:Boolean})],$i.prototype,"multi",void 0),o([At({type:Boolean})],$i.prototype,"activatable",void 0),o([At({type:Boolean})],$i.prototype,"fixed",void 0),o([At({type:Boolean})],$i.prototype,"forceGroupSelection",void 0),o([At({type:Boolean})],$i.prototype,"fullwidth",void 0),o([At({type:String})],$i.prototype,"menuCorner",void 0),o([At({type:Boolean})],$i.prototype,"stayOpenOnBodyClick",void 0),o([At({type:String}),ve((function(t){this.mdcFoundation&&this.mdcFoundation.setDefaultFocusState(Ni[t])}))],$i.prototype,"defaultFocus",void 0);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const Oi="important",Ci=" !"+Oi,Ti=Jt(class extends te{constructor(t){var e;if(super(t),t.type!==Kt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const n=t[i];return null==n?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const n=e[t];if(null!=n){this.ut.add(t);const e="string"==typeof n&&n.endsWith(Ci);t.includes("-")||e?i.setProperty(t,e?n.slice(0,-11):n,e?Oi:""):i[t]=n}}return V}}),Ii={TOP_LEFT:Ge.TOP_LEFT,TOP_RIGHT:Ge.TOP_RIGHT,BOTTOM_LEFT:Ge.BOTTOM_LEFT,BOTTOM_RIGHT:Ge.BOTTOM_RIGHT,TOP_START:Ge.TOP_START,TOP_END:Ge.TOP_END,BOTTOM_START:Ge.BOTTOM_START,BOTTOM_END:Ge.BOTTOM_END};
+const Ui="important",Wi=" !"+Ui,Vi=xe(class extends _e{constructor(t){var e;if(super(t),t.type!==ge||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const n=t[i];return null==n?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const n=e[t];if(null!=n){this.ht.add(t);const e="string"==typeof n&&n.endsWith(Wi);t.includes("-")||e?i.setProperty(t,e?n.slice(0,-11):n,e?Ui:""):i[t]=n}}return U}}),qi={TOP_LEFT:mi.TOP_LEFT,TOP_RIGHT:mi.TOP_RIGHT,BOTTOM_LEFT:mi.BOTTOM_LEFT,BOTTOM_RIGHT:mi.BOTTOM_RIGHT,TOP_START:mi.TOP_START,TOP_END:mi.TOP_END,BOTTOM_START:mi.BOTTOM_START,BOTTOM_END:mi.BOTTOM_END};
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
- */class Si extends Vt{constructor(){super(...arguments),this.mdcFoundationClass=_i,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.stayOpenOnBodyClick=!1,this.bitwiseCorner=Ge.TOP_START,this.previousMenuCorner=null,this.menuCorner="START",this.corner="TOP_START",this.styleTop="",this.styleLeft="",this.styleRight="",this.styleBottom="",this.styleMaxHeight="",this.styleTransformOrigin="",this.anchor=null,this.previouslyFocused=null,this.previousAnchor=null,this.onBodyClickBound=()=>{}}render(){return this.renderSurface()}renderSurface(){const t=this.getRootClasses(),e=this.getRootStyles();return W`
+ */class Xi extends he{constructor(){super(...arguments),this.mdcFoundationClass=ji,this.absolute=!1,this.fullwidth=!1,this.fixed=!1,this.x=null,this.y=null,this.quick=!1,this.open=!1,this.stayOpenOnBodyClick=!1,this.bitwiseCorner=mi.TOP_START,this.previousMenuCorner=null,this.menuCorner="START",this.corner="TOP_START",this.styleTop="",this.styleLeft="",this.styleRight="",this.styleBottom="",this.styleMaxHeight="",this.styleTransformOrigin="",this.anchor=null,this.previouslyFocused=null,this.previousAnchor=null,this.onBodyClickBound=()=>{}}render(){return this.renderSurface()}renderSurface(){const t=this.getRootClasses(),e=this.getRootStyles();return $`
${this.renderContent()}
-
`}getRootClasses(){return{"mdc-menu-surface":!0,"mdc-menu-surface--fixed":this.fixed,"mdc-menu-surface--fullwidth":this.fullwidth}}getRootStyles(){return{top:this.styleTop,left:this.styleLeft,right:this.styleRight,bottom:this.styleBottom,"max-height":this.styleMaxHeight,"transform-origin":this.styleTransformOrigin}}renderContent(){return W` `}createAdapter(){return Object.assign(Object.assign({},zt(this.mdcRoot)),{hasAnchor:()=>!!this.anchor,notifyClose:()=>{const t=new CustomEvent("closed",{bubbles:!0,composed:!0});this.open=!1,this.mdcRoot.dispatchEvent(t)},notifyClosing:()=>{const t=new CustomEvent("closing",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(t)},notifyOpen:()=>{const t=new CustomEvent("opened",{bubbles:!0,composed:!0});this.open=!0,this.mdcRoot.dispatchEvent(t)},notifyOpening:()=>{const t=new CustomEvent("opening",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(t)},isElementInContainer:()=>!1,isRtl:()=>!!this.mdcRoot&&"rtl"===getComputedStyle(this.mdcRoot).direction,setTransformOrigin:t=>{this.mdcRoot&&(this.styleTransformOrigin=t)},isFocused:()=>Wt(this),saveFocus:()=>{const t=$t(),e=t.length;e||(this.previouslyFocused=null),this.previouslyFocused=t[e-1]},restoreFocus:()=>{this.previouslyFocused&&"focus"in this.previouslyFocused&&this.previouslyFocused.focus()},getInnerDimensions:()=>{const t=this.mdcRoot;return t?{width:t.offsetWidth,height:t.offsetHeight}:{width:0,height:0}},getAnchorDimensions:()=>{const t=this.anchor;return t?t.getBoundingClientRect():null},getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{this.mdcRoot&&(this.styleLeft="left"in t?`${t.left}px`:"",this.styleRight="right"in t?`${t.right}px`:"",this.styleTop="top"in t?`${t.top}px`:"",this.styleBottom="bottom"in t?`${t.bottom}px`:"")},setMaxHeight:async t=>{this.mdcRoot&&(this.styleMaxHeight=t,await this.updateComplete,this.styleMaxHeight=`var(--mdc-menu-max-height, ${t})`)}})}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onBodyClick(t){if(this.stayOpenOnBodyClick)return;-1===t.composedPath().indexOf(this)&&this.close()}registerBodyClick(){this.onBodyClickBound=this.onBodyClick.bind(this),document.body.addEventListener("click",this.onBodyClickBound,{passive:!0,capture:!0})}deregisterBodyClick(){document.body.removeEventListener("click",this.onBodyClickBound,{capture:!0})}onOpenChanged(t,e){this.mdcFoundation&&(t?this.mdcFoundation.open():void 0!==e&&this.mdcFoundation.close())}close(){this.open=!1}show(){this.open=!0}}o([vt(".mdc-menu-surface")],Si.prototype,"mdcRoot",void 0),o([vt("slot")],Si.prototype,"slotElement",void 0),o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(t)}))],Si.prototype,"absolute",void 0),o([ut({type:Boolean})],Si.prototype,"fullwidth",void 0),o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setFixedPosition(t)}))],Si.prototype,"fixed",void 0),o([ut({type:Number}),Yt((function(t){this.mdcFoundation&&null!==this.y&&null!==t&&(this.mdcFoundation.setAbsolutePosition(t,this.y),this.mdcFoundation.setAnchorMargin({left:t,top:this.y,right:-t,bottom:this.y}))}))],Si.prototype,"x",void 0),o([ut({type:Number}),Yt((function(t){this.mdcFoundation&&null!==this.x&&null!==t&&(this.mdcFoundation.setAbsolutePosition(this.x,t),this.mdcFoundation.setAnchorMargin({left:this.x,top:t,right:-this.x,bottom:t}))}))],Si.prototype,"y",void 0),o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(t)}))],Si.prototype,"quick",void 0),o([ut({type:Boolean,reflect:!0}),Yt((function(t,e){this.onOpenChanged(t,e)}))],Si.prototype,"open",void 0),o([ut({type:Boolean})],Si.prototype,"stayOpenOnBodyClick",void 0),o([pt(),Yt((function(t){this.mdcFoundation&&this.mdcFoundation.setAnchorCorner(t)}))],Si.prototype,"bitwiseCorner",void 0),o([ut({type:String}),Yt((function(t){if(this.mdcFoundation){const e="START"===t||"END"===t,i=null===this.previousMenuCorner,n=!i&&t!==this.previousMenuCorner;e&&(n||i&&"END"===t)&&(this.bitwiseCorner=this.bitwiseCorner^Xe.RIGHT,this.mdcFoundation.flipCornerHorizontally(),this.previousMenuCorner=t)}}))],Si.prototype,"menuCorner",void 0),o([ut({type:String}),Yt((function(t){if(this.mdcFoundation&&t){let e=Ii[t];"END"===this.menuCorner&&(e^=Xe.RIGHT),this.bitwiseCorner=e}}))],Si.prototype,"corner",void 0),o([pt()],Si.prototype,"styleTop",void 0),o([pt()],Si.prototype,"styleLeft",void 0),o([pt()],Si.prototype,"styleRight",void 0),o([pt()],Si.prototype,"styleBottom",void 0),o([pt()],Si.prototype,"styleMaxHeight",void 0),o([pt()],Si.prototype,"styleTransformOrigin",void 0);
+ `}getRootClasses(){return{"mdc-menu-surface":!0,"mdc-menu-surface--fixed":this.fixed,"mdc-menu-surface--fullwidth":this.fullwidth}}getRootStyles(){return{top:this.styleTop,left:this.styleLeft,right:this.styleRight,bottom:this.styleBottom,"max-height":this.styleMaxHeight,"transform-origin":this.styleTransformOrigin}}renderContent(){return $` `}createAdapter(){return Object.assign(Object.assign({},se(this.mdcRoot)),{hasAnchor:()=>!!this.anchor,notifyClose:()=>{const t=new CustomEvent("closed",{bubbles:!0,composed:!0});this.open=!1,this.mdcRoot.dispatchEvent(t)},notifyClosing:()=>{const t=new CustomEvent("closing",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(t)},notifyOpen:()=>{const t=new CustomEvent("opened",{bubbles:!0,composed:!0});this.open=!0,this.mdcRoot.dispatchEvent(t)},notifyOpening:()=>{const t=new CustomEvent("opening",{bubbles:!0,composed:!0});this.mdcRoot.dispatchEvent(t)},isElementInContainer:()=>!1,isRtl:()=>!!this.mdcRoot&&"rtl"===getComputedStyle(this.mdcRoot).direction,setTransformOrigin:t=>{this.mdcRoot&&(this.styleTransformOrigin=t)},isFocused:()=>ce(this),saveFocus:()=>{const t=le(),e=t.length;e||(this.previouslyFocused=null),this.previouslyFocused=t[e-1]},restoreFocus:()=>{this.previouslyFocused&&"focus"in this.previouslyFocused&&this.previouslyFocused.focus()},getInnerDimensions:()=>{const t=this.mdcRoot;return t?{width:t.offsetWidth,height:t.offsetHeight}:{width:0,height:0}},getAnchorDimensions:()=>{const t=this.anchor;return t?t.getBoundingClientRect():null},getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{this.mdcRoot&&(this.styleLeft="left"in t?`${t.left}px`:"",this.styleRight="right"in t?`${t.right}px`:"",this.styleTop="top"in t?`${t.top}px`:"",this.styleBottom="bottom"in t?`${t.bottom}px`:"")},setMaxHeight:async t=>{this.mdcRoot&&(this.styleMaxHeight=t,await this.updateComplete,this.styleMaxHeight=`var(--mdc-menu-max-height, ${t})`)}})}onKeydown(t){this.mdcFoundation&&this.mdcFoundation.handleKeydown(t)}onBodyClick(t){if(this.stayOpenOnBodyClick)return;-1===t.composedPath().indexOf(this)&&this.close()}registerBodyClick(){this.onBodyClickBound=this.onBodyClick.bind(this),document.body.addEventListener("click",this.onBodyClickBound,{passive:!0,capture:!0})}deregisterBodyClick(){document.body.removeEventListener("click",this.onBodyClickBound,{capture:!0})}onOpenChanged(t,e){this.mdcFoundation&&(t?this.mdcFoundation.open():void 0!==e&&this.mdcFoundation.close())}close(){this.open=!1}show(){this.open=!0}}o([Mt(".mdc-menu-surface")],Xi.prototype,"mdcRoot",void 0),o([Mt("slot")],Xi.prototype,"slotElement",void 0),o([At({type:Boolean}),ve((function(t){this.mdcFoundation&&!this.fixed&&this.mdcFoundation.setIsHoisted(t)}))],Xi.prototype,"absolute",void 0),o([At({type:Boolean})],Xi.prototype,"fullwidth",void 0),o([At({type:Boolean}),ve((function(t){this.mdcFoundation&&!this.absolute&&this.mdcFoundation.setFixedPosition(t)}))],Xi.prototype,"fixed",void 0),o([At({type:Number}),ve((function(t){this.mdcFoundation&&null!==this.y&&null!==t&&(this.mdcFoundation.setAbsolutePosition(t,this.y),this.mdcFoundation.setAnchorMargin({left:t,top:this.y,right:-t,bottom:this.y}))}))],Xi.prototype,"x",void 0),o([At({type:Number}),ve((function(t){this.mdcFoundation&&null!==this.x&&null!==t&&(this.mdcFoundation.setAbsolutePosition(this.x,t),this.mdcFoundation.setAnchorMargin({left:this.x,top:t,right:-this.x,bottom:t}))}))],Xi.prototype,"y",void 0),o([At({type:Boolean}),ve((function(t){this.mdcFoundation&&this.mdcFoundation.setQuickOpen(t)}))],Xi.prototype,"quick",void 0),o([At({type:Boolean,reflect:!0}),ve((function(t,e){this.onOpenChanged(t,e)}))],Xi.prototype,"open",void 0),o([At({type:Boolean})],Xi.prototype,"stayOpenOnBodyClick",void 0),o([Rt(),ve((function(t){this.mdcFoundation&&this.mdcFoundation.setAnchorCorner(t)}))],Xi.prototype,"bitwiseCorner",void 0),o([At({type:String}),ve((function(t){if(this.mdcFoundation){const e="START"===t||"END"===t,i=null===this.previousMenuCorner,n=!i&&t!==this.previousMenuCorner;e&&(n||i&&"END"===t)&&(this.bitwiseCorner=this.bitwiseCorner^fi.RIGHT,this.mdcFoundation.flipCornerHorizontally(),this.previousMenuCorner=t)}}))],Xi.prototype,"menuCorner",void 0),o([At({type:String}),ve((function(t){if(this.mdcFoundation&&t){let e=qi[t];"END"===this.menuCorner&&(e^=fi.RIGHT),this.bitwiseCorner=e}}))],Xi.prototype,"corner",void 0),o([Rt()],Xi.prototype,"styleTop",void 0),o([Rt()],Xi.prototype,"styleLeft",void 0),o([Rt()],Xi.prototype,"styleRight",void 0),o([Rt()],Xi.prototype,"styleBottom",void 0),o([Rt()],Xi.prototype,"styleMaxHeight",void 0),o([Rt()],Xi.prototype,"styleTransformOrigin",void 0);
/**
* @license
* Copyright 2016 Google Inc.
@@ -629,7 +667,7 @@ const Oi="important",Ci=" !"+Oi,Ti=Jt(class extends te{constructor(t){var e;if(s
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var Ai={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Ri={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Di={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
+var Yi={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Gi={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ki={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
/**
* @license
* Copyright 2016 Google Inc.
@@ -652,13 +690,13 @@ var Ai={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var Pi=["touchstart","pointerdown","mousedown","keydown"],Mi=["touchend","pointerup","mouseup","contextmenu"],Fi=[],Ni=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(t){o.activateImpl(t)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Ai},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Ri},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Di},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var n=e.cssClasses,o=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,n=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(n),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var n=r(Pi),o=n.next();!o.done;o=n.next()){var s=o.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=r(Mi),o=n.next();!o.done;o=n.next()){var s=o.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=r(Pi),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=r(Mi),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;if(!(n&&void 0!==t&&n.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&Fi.length>0&&Fi.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(Fi.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Fi=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,n=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,r=e.cssClasses,s=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,d=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",c="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),u=h.startPoint,p=h.endPoint;l=u.x+"px, "+u.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(o,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),d)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var n,o,r=e.x,s=e.y,a=r+i.left,d=s+i.top;if("touchstart"===t.type){var l=t;n=l.changedTouches[0].pageX-a,o=l.changedTouches[0].pageY-d}else{var c=t;n=c.pageX-a,o=c.pageY-d}return{x:n,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,n=this.activationState,o=n.hasDeactivationUXRun,r=n.isActivated;(o||!r)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),Di.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=n({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var n=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize=n-1:this.initialSize=n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,n=t.VAR_LEFT,o=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(r,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(Mt),Li=Ni;
+var Zi=["touchstart","pointerdown","mousedown","keydown"],Qi=["touchend","pointerup","mouseup","contextmenu"],Ji=[],tn=function(t){function e(i){var o=t.call(this,n(n({},e.defaultAdapter),i))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(t){o.activateImpl(t)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Yi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Gi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Ki},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var n=e.cssClasses,o=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,n=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(n),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var n=r(Zi),o=n.next();!o.done;o=n.next()){var s=o.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=r(Qi),o=n.next();!o.done;o=n.next()){var s=o.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=r(Zi),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=r(Qi),n=i.next();!n.done;n=i.next()){var o=n.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;if(!(n&&void 0!==t&&n.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&Ji.length>0&&Ji.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(Ji.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Ji=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,n=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,r=e.cssClasses,s=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,d=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",c="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),u=h.startPoint,p=h.endPoint;l=u.x+"px, "+u.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(o,c),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),d)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var n,o,r=e.x,s=e.y,a=r+i.left,d=s+i.top;if("touchstart"===t.type){var l=t;n=l.changedTouches[0].pageX-a,o=l.changedTouches[0].pageY-d}else{var c=t;n=c.pageX-a,o=c.pageY-d}return{x:n,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,n=this.activationState,o=n.hasDeactivationUXRun,r=n.isActivated;(o||!r)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),Ki.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=n({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var n=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize=n-1:this.initialSize=n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,n=t.VAR_LEFT,o=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(r,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(ee);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-class Bi extends Vt{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Li}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);
+class en extends he{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=tn}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);
/**
* @license
* Copyright 2018 Google Inc.
@@ -681,9 +719,9 @@ class Bi extends Vt{constructor(){super(...arguments),this.primary=!1,this.accen
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return W`
-
`}}o([vt(".mdc-ripple-surface")],Bi.prototype,"mdcRoot",void 0),o([ut({type:Boolean})],Bi.prototype,"primary",void 0),o([ut({type:Boolean})],Bi.prototype,"accent",void 0),o([ut({type:Boolean})],Bi.prototype,"unbounded",void 0),o([ut({type:Boolean})],Bi.prototype,"disabled",void 0),o([ut({type:Boolean})],Bi.prototype,"activated",void 0),o([ut({type:Boolean})],Bi.prototype,"selected",void 0),o([ut({type:Boolean})],Bi.prototype,"internalUseStateLayerCustomProperties",void 0),o([pt()],Bi.prototype,"hovering",void 0),o([pt()],Bi.prototype,"bgFocused",void 0),o([pt()],Bi.prototype,"fgActivation",void 0),o([pt()],Bi.prototype,"fgDeactivation",void 0),o([pt()],Bi.prototype,"fgScale",void 0),o([pt()],Bi.prototype,"fgSize",void 0),o([pt()],Bi.prototype,"translateStart",void 0),o([pt()],Bi.prototype,"translateEnd",void 0),o([pt()],Bi.prototype,"leftPos",void 0),o([pt()],Bi.prototype,"topPos",void 0);
+var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return $`
+
`}}o([Mt(".mdc-ripple-surface")],en.prototype,"mdcRoot",void 0),o([At({type:Boolean})],en.prototype,"primary",void 0),o([At({type:Boolean})],en.prototype,"accent",void 0),o([At({type:Boolean})],en.prototype,"unbounded",void 0),o([At({type:Boolean})],en.prototype,"disabled",void 0),o([At({type:Boolean})],en.prototype,"activated",void 0),o([At({type:Boolean})],en.prototype,"selected",void 0),o([At({type:Boolean})],en.prototype,"internalUseStateLayerCustomProperties",void 0),o([Rt()],en.prototype,"hovering",void 0),o([Rt()],en.prototype,"bgFocused",void 0),o([Rt()],en.prototype,"fgActivation",void 0),o([Rt()],en.prototype,"fgDeactivation",void 0),o([Rt()],en.prototype,"fgScale",void 0),o([Rt()],en.prototype,"fgSize",void 0),o([Rt()],en.prototype,"translateStart",void 0),o([Rt()],en.prototype,"translateEnd",void 0),o([Rt()],en.prototype,"leftPos",void 0),o([Rt()],en.prototype,"topPos",void 0);
/**
* @license
* Copyright 2018 Google Inc.
@@ -706,56 +744,56 @@ var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>thi
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var zi={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},ji={NOTCH_ELEMENT_PADDING:8},Hi={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},$i=function(t){function e(i){return t.call(this,n(n({},e.defaultAdapter),i))||this}return i(e,t),Object.defineProperty(e,"strings",{get:function(){return zi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Hi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ji},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(t){var i=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=ji.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(i)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},e}(Mt);
+var nn={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},on={NOTCH_ELEMENT_PADDING:8},rn={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},sn=function(t){function e(i){return t.call(this,n(n({},e.defaultAdapter),i))||this}return i(e,t),Object.defineProperty(e,"strings",{get:function(){return nn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return rn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return on},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(t){var i=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=on.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(i)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},e}(ee);
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-class Wi extends Vt{constructor(){super(...arguments),this.mdcFoundationClass=$i,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:t=>this.mdcRoot.classList.add(t),removeClass:t=>this.mdcRoot.classList.remove(t),setNotchWidthProperty:t=>this.notchElement.style.setProperty("width",`${t}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(t,e){this.mdcFoundation&&(t&&void 0!==e?this.mdcFoundation.notch(e):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const t=ee({"mdc-notched-outline--notched":this.open});return W`
+class an extends he{constructor(){super(...arguments),this.mdcFoundationClass=sn,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:t=>this.mdcRoot.classList.add(t),removeClass:t=>this.mdcRoot.classList.remove(t),setNotchWidthProperty:t=>this.notchElement.style.setProperty("width",`${t}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(t,e){this.mdcFoundation&&(t&&void 0!==e?this.mdcFoundation.notch(e):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const t=we({"mdc-notched-outline--notched":this.open});return $`
- `}}o([vt(".mdc-notched-outline")],Wi.prototype,"mdcRoot",void 0),o([ut({type:Number})],Wi.prototype,"width",void 0),o([ut({type:Boolean,reflect:!0})],Wi.prototype,"open",void 0),o([vt(".mdc-notched-outline__notch")],Wi.prototype,"notchElement",void 0);
+ `}}o([Mt(".mdc-notched-outline")],an.prototype,"mdcRoot",void 0),o([At({type:Number})],an.prototype,"width",void 0),o([At({type:Boolean,reflect:!0})],an.prototype,"open",void 0),o([Mt(".mdc-notched-outline__notch")],an.prototype,"notchElement",void 0);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
-const Vi=h`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87)}.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-select.mdc-select--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#6200ee;fill:var(--mdc-theme-primary, #6200ee)}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled)+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:rgba(0, 0, 0, 0.54)}.mdc-select.mdc-select--disabled .mdc-select__icon{color:rgba(0, 0, 0, 0.38)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:red}.mdc-select.mdc-select--disabled .mdc-floating-label{color:GrayText}.mdc-select.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-select.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing{border-color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__icon{color:GrayText}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:GrayText}}.mdc-select .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-select .mdc-select__anchor{padding-left:16px;padding-right:0}[dir=rtl] .mdc-select .mdc-select__anchor,.mdc-select .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:16px}.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor{padding-left:0;padding-right:0}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor,.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:0}.mdc-select .mdc-select__icon{width:24px;height:24px;font-size:24px}.mdc-select .mdc-select__dropdown-icon{width:24px;height:24px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item,.mdc-select .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:12px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic,.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:12px;margin-right:0}.mdc-select__dropdown-icon{margin-left:12px;margin-right:12px;display:inline-flex;position:relative;align-self:center;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{position:absolute;top:0;left:0}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic{width:41.6666666667%;height:20.8333333333%}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:1;transition:opacity 75ms linear 75ms}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:0;transition:opacity 49.5ms linear}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:1;transition:opacity 100.5ms linear 49.5ms}.mdc-select__anchor{width:200px;min-width:0;flex:1 1 auto;position:relative;box-sizing:border-box;overflow:hidden;outline:none;cursor:pointer}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-select__selected-text-container{display:flex;appearance:none;pointer-events:none;box-sizing:border-box;width:auto;min-width:0;flex-grow:1;height:28px;border:none;outline:none;padding:0;background-color:transparent;color:inherit}.mdc-select__selected-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;width:100%;text-align:left}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{text-align:right}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item,.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:12px;padding-right:12px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select__menu::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}}@media screen and (forced-colors: active)and (forced-colors: active),screen and (-ms-high-contrast: active)and (forced-colors: active){.mdc-select__menu::before{border-color:CanvasText}}.mdc-select__menu .mdc-deprecated-list .mdc-select__icon,.mdc-select__menu .mdc-list .mdc-select__icon{margin-left:0;margin-right:0}[dir=rtl] .mdc-select__menu .mdc-deprecated-list .mdc-select__icon,[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon,.mdc-select__menu .mdc-deprecated-list .mdc-select__icon[dir=rtl],.mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl]{margin-left:0;margin-right:0}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-list-item__start{display:inline-flex;align-items:center}.mdc-select__option{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select__option,.mdc-select__option[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select__one-line-option.mdc-list-item--with-one-line{height:48px}.mdc-select__two-line-option.mdc-list-item--with-two-lines{height:64px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__start{margin-top:20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-select__option-with-leading-content{padding-left:0;padding-right:12px}.mdc-select__option-with-leading-content.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-select__option-with-leading-content.mdc-list-item,.mdc-select__option-with-leading-content.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-select__option-with-leading-content .mdc-list-item__start{margin-left:12px;margin-right:0}[dir=rtl] .mdc-select__option-with-leading-content .mdc-list-item__start,.mdc-select__option-with-leading-content .mdc-list-item__start[dir=rtl]{margin-left:0;margin-right:12px}.mdc-select__option-with-leading-content .mdc-list-item__start{width:36px;height:24px}[dir=rtl] .mdc-select__option-with-leading-content,.mdc-select__option-with-leading-content[dir=rtl]{padding-left:12px;padding-right:0}.mdc-select__option-with-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-select__option-with-meta.mdc-list-item,.mdc-select__option-with-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-select__option-with-meta .mdc-list-item__end{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select__option-with-meta .mdc-list-item__end,.mdc-select__option-with-meta .mdc-list-item__end[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--filled .mdc-select__anchor{height:56px;display:flex;align-items:baseline}.mdc-select--filled .mdc-select__anchor::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before{display:none}.mdc-select--filled .mdc-select__anchor{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke}.mdc-select--filled.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-select--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-select--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-select--filled .mdc-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after{transform:scale(1, 2);opacity:1}.mdc-select--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-select--filled .mdc-floating-label,.mdc-select--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined{border:none}.mdc-select--outlined .mdc-select__anchor{height:56px}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-56px{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-select--outlined .mdc-select__anchor{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-select--outlined+.mdc-select-helper-text{margin-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-select--outlined .mdc-select__anchor{display:flex;align-items:baseline;overflow:visible}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--outlined .mdc-select__anchor::before{display:none}.mdc-select--outlined .mdc-select__selected-text-container{display:flex;border:none;z-index:1;background-color:transparent}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;left:4px;right:initial}[dir=rtl] .mdc-select--outlined .mdc-floating-label,.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 96px)}.mdc-select--outlined .mdc-menu-surface{margin-bottom:8px}.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,.mdc-select--outlined .mdc-menu-surface--is-open-below{margin-bottom:0}.mdc-select__anchor{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor .mdc-select__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-select__anchor .mdc-select__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-select__anchor:hover .mdc-select__ripple::before,.mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__anchor .mdc-select__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select-helper-text{margin:0;margin-left:16px;margin-right:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal}[dir=rtl] .mdc-select-helper-text,.mdc-select-helper-text[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--validation-msg{opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-select--invalid+.mdc-select-helper-text--validation-msg,.mdc-select-helper-text--validation-msg-persistent{opacity:1}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;box-sizing:border-box;border:none;text-decoration:none;cursor:pointer;user-select:none;flex-shrink:0;align-self:center;background-color:transparent;fill:currentColor}.mdc-select--with-leading-icon .mdc-select__icon{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-block;vertical-align:top;outline:none}.mdc-select{width:100%}[hidden]{display:none}.mdc-select__icon{z-index:2}.mdc-select--with-leading-icon{--mdc-list-item-graphic-margin: calc( 48px - var(--mdc-list-item-graphic-size, 24px) - var(--mdc-list-side-padding, 16px) )}.mdc-select .mdc-select__anchor .mdc-select__selected-text{overflow:hidden}.mdc-select .mdc-select__anchor *{display:inline-flex}.mdc-select .mdc-select__anchor .mdc-floating-label{display:inline-block}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-idle-border-color, rgba(0, 0, 0, 0.38) );--mdc-notched-outline-notch-offset: 1px}:host(:not([disabled]):hover) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87);color:var(--mdc-select-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-select-idle-line-color, rgba(0, 0, 0, 0.42))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-select-hover-line-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--outlined):not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke;background-color:var(--mdc-select-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-select__dropdown-icon{fill:var(--mdc-select-error-dropdown-icon-color, var(--mdc-select-error-color, var(--mdc-theme-error, #b00020)))}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label,:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label::after{color:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}.mdc-select__menu--invalid{--mdc-theme-primary: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.6);color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54);fill:var(--mdc-select-dropdown-icon-color, rgba(0, 0, 0, 0.54))}:host(:not([disabled])) .mdc-select.mdc-select--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px;--mdc-notched-outline-notch-offset: 2px}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-select__dropdown-icon{fill:rgba(98,0,238,.87);fill:var(--mdc-select-focused-dropdown-icon-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label::after{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-select:not(.mdc-select--outlined).mdc-select--disabled .mdc-select__anchor{background-color:#fafafa;background-color:var(--mdc-select-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-select.mdc-select--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-select .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38);fill:var(--mdc-select-disabled-dropdown-icon-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select-helper-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}`
+const dn=ht`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87)}.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-select.mdc-select--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#6200ee;fill:var(--mdc-theme-primary, #6200ee)}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled)+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:rgba(0, 0, 0, 0.54)}.mdc-select.mdc-select--disabled .mdc-select__icon{color:rgba(0, 0, 0, 0.38)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:red}.mdc-select.mdc-select--disabled .mdc-floating-label{color:GrayText}.mdc-select.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-select.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing{border-color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__icon{color:GrayText}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:GrayText}}.mdc-select .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-select .mdc-select__anchor{padding-left:16px;padding-right:0}[dir=rtl] .mdc-select .mdc-select__anchor,.mdc-select .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:16px}.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor{padding-left:0;padding-right:0}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor,.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:0}.mdc-select .mdc-select__icon{width:24px;height:24px;font-size:24px}.mdc-select .mdc-select__dropdown-icon{width:24px;height:24px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item,.mdc-select .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:12px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic,.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:12px;margin-right:0}.mdc-select__dropdown-icon{margin-left:12px;margin-right:12px;display:inline-flex;position:relative;align-self:center;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{position:absolute;top:0;left:0}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic{width:41.6666666667%;height:20.8333333333%}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:1;transition:opacity 75ms linear 75ms}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:0;transition:opacity 49.5ms linear}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:1;transition:opacity 100.5ms linear 49.5ms}.mdc-select__anchor{width:200px;min-width:0;flex:1 1 auto;position:relative;box-sizing:border-box;overflow:hidden;outline:none;cursor:pointer}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-select__selected-text-container{display:flex;appearance:none;pointer-events:none;box-sizing:border-box;width:auto;min-width:0;flex-grow:1;height:28px;border:none;outline:none;padding:0;background-color:transparent;color:inherit}.mdc-select__selected-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;width:100%;text-align:left}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{text-align:right}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item,.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:12px;padding-right:12px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-select__menu::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}}@media screen and (forced-colors: active)and (forced-colors: active),screen and (-ms-high-contrast: active)and (forced-colors: active){.mdc-select__menu::before{border-color:CanvasText}}.mdc-select__menu .mdc-deprecated-list .mdc-select__icon,.mdc-select__menu .mdc-list .mdc-select__icon{margin-left:0;margin-right:0}[dir=rtl] .mdc-select__menu .mdc-deprecated-list .mdc-select__icon,[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon,.mdc-select__menu .mdc-deprecated-list .mdc-select__icon[dir=rtl],.mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl]{margin-left:0;margin-right:0}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-list-item__start{display:inline-flex;align-items:center}.mdc-select__option{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select__option,.mdc-select__option[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-select__one-line-option.mdc-list-item--with-one-line{height:48px}.mdc-select__two-line-option.mdc-list-item--with-two-lines{height:64px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__start{margin-top:20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-select__option-with-leading-content{padding-left:0;padding-right:12px}.mdc-select__option-with-leading-content.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-select__option-with-leading-content.mdc-list-item,.mdc-select__option-with-leading-content.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-select__option-with-leading-content .mdc-list-item__start{margin-left:12px;margin-right:0}[dir=rtl] .mdc-select__option-with-leading-content .mdc-list-item__start,.mdc-select__option-with-leading-content .mdc-list-item__start[dir=rtl]{margin-left:0;margin-right:12px}.mdc-select__option-with-leading-content .mdc-list-item__start{width:36px;height:24px}[dir=rtl] .mdc-select__option-with-leading-content,.mdc-select__option-with-leading-content[dir=rtl]{padding-left:12px;padding-right:0}.mdc-select__option-with-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-select__option-with-meta.mdc-list-item,.mdc-select__option-with-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-select__option-with-meta .mdc-list-item__end{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select__option-with-meta .mdc-list-item__end,.mdc-select__option-with-meta .mdc-list-item__end[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select--filled .mdc-select__anchor{height:56px;display:flex;align-items:baseline}.mdc-select--filled .mdc-select__anchor::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before{display:none}.mdc-select--filled .mdc-select__anchor{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke}.mdc-select--filled.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-select--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-select--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-select--filled .mdc-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after{transform:scale(1, 2);opacity:1}.mdc-select--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-select--filled .mdc-floating-label,.mdc-select--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined{border:none}.mdc-select--outlined .mdc-select__anchor{height:56px}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-56px{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-select--outlined .mdc-select__anchor{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-select--outlined+.mdc-select-helper-text{margin-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-select--outlined .mdc-select__anchor{display:flex;align-items:baseline;overflow:visible}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--outlined .mdc-select__anchor::before{display:none}.mdc-select--outlined .mdc-select__selected-text-container{display:flex;border:none;z-index:1;background-color:transparent}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;left:4px;right:initial}[dir=rtl] .mdc-select--outlined .mdc-floating-label,.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{font-size:.75rem}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 96px)}.mdc-select--outlined .mdc-menu-surface{margin-bottom:8px}.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,.mdc-select--outlined .mdc-menu-surface--is-open-below{margin-bottom:0}.mdc-select__anchor{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor .mdc-select__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-select__anchor .mdc-select__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-select__anchor:hover .mdc-select__ripple::before,.mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__anchor .mdc-select__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select-helper-text{margin:0;margin-left:16px;margin-right:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal}[dir=rtl] .mdc-select-helper-text,.mdc-select-helper-text[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--validation-msg{opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-select--invalid+.mdc-select-helper-text--validation-msg,.mdc-select-helper-text--validation-msg-persistent{opacity:1}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;box-sizing:border-box;border:none;text-decoration:none;cursor:pointer;user-select:none;flex-shrink:0;align-self:center;background-color:transparent;fill:currentColor}.mdc-select--with-leading-icon .mdc-select__icon{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{margin-left:12px;margin-right:12px}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-block;vertical-align:top;outline:none}.mdc-select{width:100%}[hidden]{display:none}.mdc-select__icon{z-index:2}.mdc-select--with-leading-icon{--mdc-list-item-graphic-margin: calc( 48px - var(--mdc-list-item-graphic-size, 24px) - var(--mdc-list-side-padding, 16px) )}.mdc-select .mdc-select__anchor .mdc-select__selected-text{overflow:hidden}.mdc-select .mdc-select__anchor *{display:inline-flex}.mdc-select .mdc-select__anchor .mdc-floating-label{display:inline-block}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-idle-border-color, rgba(0, 0, 0, 0.38) );--mdc-notched-outline-notch-offset: 1px}:host(:not([disabled]):hover) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87);color:var(--mdc-select-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-select-idle-line-color, rgba(0, 0, 0, 0.42))}:host(:not([disabled])) .mdc-select:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-select-hover-line-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-select:not(.mdc-select--outlined):not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke;background-color:var(--mdc-select-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-select__dropdown-icon{fill:var(--mdc-select-error-dropdown-icon-color, var(--mdc-select-error-color, var(--mdc-theme-error, #b00020)))}:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label,:host(:not([disabled])) .mdc-select.mdc-select--invalid .mdc-floating-label::after{color:var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select.mdc-select--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}.mdc-select__menu--invalid{--mdc-theme-primary: var(--mdc-select-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.6);color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54);fill:var(--mdc-select-dropdown-icon-color, rgba(0, 0, 0, 0.54))}:host(:not([disabled])) .mdc-select.mdc-select--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px;--mdc-notched-outline-notch-offset: 2px}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-select__dropdown-icon{fill:rgba(98,0,238,.87);fill:var(--mdc-select-focused-dropdown-icon-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)))}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select.mdc-select--focused:not(.mdc-select--invalid) .mdc-floating-label::after{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-select-helper-text:not(.mdc-select-helper-text--validation-msg){color:var(--mdc-select-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-select:not(.mdc-select--outlined).mdc-select--disabled .mdc-select__anchor{background-color:#fafafa;background-color:var(--mdc-select-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-select.mdc-select--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-select-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-select .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38);fill:var(--mdc-select-disabled-dropdown-icon-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label,:host([disabled]) .mdc-select:not(.mdc-select--invalid):not(.mdc-select--focused) .mdc-floating-label::after{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select-helper-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38);color:var(--mdc-select-disabled-ink-color, rgba(0, 0, 0, 0.38))}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
- */,Ui=h`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`
+ */,ln=ht`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
- */,qi=h`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`
+ */,cn=ht`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
- */,Xi=h`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
+ */,hn=ht`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
- */,Gi=h`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`
+ */,un=ht`mwc-list ::slotted([mwc-list-item]:not([twoline])),mwc-list ::slotted([noninteractive]:not([twoline])){height:var(--mdc-menu-item-height, 48px)}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
- */,Yi=h`.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}:host(:not([open])){display:none}.mdc-menu-surface{z-index:8;z-index:var(--mdc-menu-z-index, 8);min-width:112px;min-width:var(--mdc-menu-min-width, 112px)}`
+ */,pn=ht`.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);color:#000;color:var(--mdc-theme-on-surface, #000);border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}:host(:not([open])){display:none}.mdc-menu-surface{z-index:8;z-index:var(--mdc-menu-z-index, 8);min-width:112px;min-width:var(--mdc-menu-min-width, 112px)}`
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
- */,Ki=h`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`,Zi={"mwc-select":class extends ri{static get styles(){return Vi}},"mwc-list":class extends pi{static get styles(){return Ui}},"mwc-list-item":class extends mi{static get styles(){return qi}},"mwc-ripple":class extends Bi{static get styles(){return Xi}},"mwc-menu":class extends ki{static get styles(){return Gi}},"mwc-menu-surface":class extends Si{static get styles(){return Yi}},"mwc-notched-outline":class extends Wi{static get styles(){return Ki}}};function Qi(t,e,i){if(void 0!==e)
+ */,fn=ht`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`,mn={"mwc-select":class extends Oi{static get styles(){return dn}},"mwc-list":class extends Di{static get styles(){return ln}},"mwc-list-item":class extends Fi{static get styles(){return cn}},"mwc-ripple":class extends en{static get styles(){return hn}},"mwc-menu":class extends $i{static get styles(){return un}},"mwc-menu-surface":class extends Xi{static get styles(){return pn}},"mwc-notched-outline":class extends an{static get styles(){return fn}}};function vn(t,e,i){if(void 0!==e)
/**
* @license
* Copyright 2021 Google LLC
@@ -783,18 +821,18 @@ return function(t,e,i){const n=t.constructor;if(!i){const t=`__${e}`;if(!(i=n.ge
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- */var Ji={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},tn={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},en=function(t){function e(i){return t.call(this,n(n({},e.defaultAdapter),i))||this}return i(e,t),Object.defineProperty(e,"strings",{get:function(){return tn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Ji},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setChecked=function(t){this.adapter.setNativeControlChecked(t),this.updateAriaChecked(t),this.updateCheckedStyling(t)},e.prototype.setDisabled=function(t){this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(Ji.DISABLED):this.adapter.removeClass(Ji.DISABLED)},e.prototype.handleChange=function(t){var e=t.target;this.updateAriaChecked(e.checked),this.updateCheckedStyling(e.checked)},e.prototype.updateCheckedStyling=function(t){t?this.adapter.addClass(Ji.CHECKED):this.adapter.removeClass(Ji.CHECKED)},e.prototype.updateAriaChecked=function(t){this.adapter.setNativeControlAttr(tn.ARIA_CHECKED_ATTR,""+!!t)},e}(Mt);
+ */var gn={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},yn={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},bn=function(t){function e(i){return t.call(this,n(n({},e.defaultAdapter),i))||this}return i(e,t),Object.defineProperty(e,"strings",{get:function(){return yn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return gn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setChecked=function(t){this.adapter.setNativeControlChecked(t),this.updateAriaChecked(t),this.updateCheckedStyling(t)},e.prototype.setDisabled=function(t){this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(gn.DISABLED):this.adapter.removeClass(gn.DISABLED)},e.prototype.handleChange=function(t){var e=t.target;this.updateAriaChecked(e.checked),this.updateCheckedStyling(e.checked)},e.prototype.updateCheckedStyling=function(t){t?this.adapter.addClass(gn.CHECKED):this.adapter.removeClass(gn.CHECKED)},e.prototype.updateAriaChecked=function(t){this.adapter.setNativeControlAttr(yn.ARIA_CHECKED_ATTR,""+!!t)},e}(ee);
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
-class nn extends Vt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.shouldRenderRipple=!1,this.mdcFoundationClass=en,this.rippleHandlers=new fi((()=>(this.shouldRenderRipple=!0,this.ripple)))}changeHandler(t){this.mdcFoundation.handleChange(t),this.checked=this.formElement.checked}createAdapter(){return Object.assign(Object.assign({},zt(this.mdcRoot)),{setNativeControlChecked:t=>{this.formElement.checked=t},setNativeControlDisabled:t=>{this.formElement.disabled=t},setNativeControlAttr:(t,e)=>{this.formElement.setAttribute(t,e)}})}renderRipple(){return this.shouldRenderRipple?W`
+class xn extends he{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.shouldRenderRipple=!1,this.mdcFoundationClass=bn,this.rippleHandlers=new Mi((()=>(this.shouldRenderRipple=!0,this.ripple)))}changeHandler(t){this.mdcFoundation.handleChange(t),this.checked=this.formElement.checked}createAdapter(){return Object.assign(Object.assign({},se(this.mdcRoot)),{setNativeControlChecked:t=>{this.formElement.checked=t},setNativeControlDisabled:t=>{this.formElement.disabled=t},setNativeControlAttr:(t,e)=>{this.formElement.setAttribute(t,e)}})}renderRipple(){return this.shouldRenderRipple?$`
- `:""}focus(){const t=this.formElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.formElement;t&&(this.rippleHandlers.endFocus(),t.blur())}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}render(){return W`
+ `:""}focus(){const t=this.formElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.formElement;t&&(this.rippleHandlers.endFocus(),t.blur())}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}render(){return $`
@@ -805,8 +843,8 @@ class nn extends Vt{constructor(){super(...arguments),this.checked=!1,this.disab
id="basic-switch"
class="mdc-switch__native-control"
role="switch"
- aria-label="${ni(this.ariaLabel)}"
- aria-labelledby="${ni(this.ariaLabelledBy)}"
+ aria-label="${Ei(this.ariaLabel)}"
+ aria-labelledby="${Ei(this.ariaLabelledBy)}"
@change="${this.changeHandler}"
@focus="${this.handleRippleFocus}"
@blur="${this.handleRippleBlur}"
@@ -818,13 +856,13 @@ class nn extends Vt{constructor(){super(...arguments),this.checked=!1,this.disab
@touchcancel="${this.handleRippleDeactivate}">
- `}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation.setChecked(t)}))],nn.prototype,"checked",void 0),o([ut({type:Boolean}),Yt((function(t){this.mdcFoundation.setDisabled(t)}))],nn.prototype,"disabled",void 0),o([Qi,ut({attribute:"aria-label"})],nn.prototype,"ariaLabel",void 0),o([Qi,ut({attribute:"aria-labelledby"})],nn.prototype,"ariaLabelledBy",void 0),o([vt(".mdc-switch")],nn.prototype,"mdcRoot",void 0),o([vt("input")],nn.prototype,"formElement",void 0),o([gt("mwc-ripple")],nn.prototype,"ripple",void 0),o([pt()],nn.prototype,"shouldRenderRipple",void 0),o([mt({passive:!0})],nn.prototype,"handleRippleMouseDown",null),o([mt({passive:!0})],nn.prototype,"handleRippleTouchStart",null);
+ `}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}o([At({type:Boolean}),ve((function(t){this.mdcFoundation.setChecked(t)}))],xn.prototype,"checked",void 0),o([At({type:Boolean}),ve((function(t){this.mdcFoundation.setDisabled(t)}))],xn.prototype,"disabled",void 0),o([vn,At({attribute:"aria-label"})],xn.prototype,"ariaLabel",void 0),o([vn,At({attribute:"aria-labelledby"})],xn.prototype,"ariaLabelledBy",void 0),o([Mt(".mdc-switch")],xn.prototype,"mdcRoot",void 0),o([Mt("input")],xn.prototype,"formElement",void 0),o([Ft("mwc-ripple")],xn.prototype,"ripple",void 0),o([Rt()],xn.prototype,"shouldRenderRipple",void 0),o([Dt({passive:!0})],xn.prototype,"handleRippleMouseDown",null),o([Dt({passive:!0})],xn.prototype,"handleRippleTouchStart",null);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
-const on=h`.mdc-switch__thumb-underlay{left:-14px;right:initial;top:-17px;width:48px;height:48px}[dir=rtl] .mdc-switch__thumb-underlay,.mdc-switch__thumb-underlay[dir=rtl]{left:initial;right:-14px}.mdc-switch__native-control{width:64px;height:48px}.mdc-switch{display:inline-block;position:relative;outline:none;user-select:none}.mdc-switch.mdc-switch--checked .mdc-switch__track{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-switch.mdc-switch--checked .mdc-switch__thumb{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786);border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{background-color:#000;background-color:var(--mdc-theme-on-surface, #000)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb{background-color:#fff;background-color:var(--mdc-theme-surface, #fff);border-color:#fff;border-color:var(--mdc-theme-surface, #fff)}.mdc-switch__native-control{left:0;right:initial;position:absolute;top:0;margin:0;opacity:0;cursor:pointer;pointer-events:auto;transition:transform 90ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-switch__native-control,.mdc-switch__native-control[dir=rtl]{left:initial;right:0}.mdc-switch__track{box-sizing:border-box;width:36px;height:14px;border:1px solid transparent;border-radius:7px;opacity:.38;transition:opacity 90ms cubic-bezier(0.4, 0, 0.2, 1),background-color 90ms cubic-bezier(0.4, 0, 0.2, 1),border-color 90ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch__thumb-underlay{display:flex;position:absolute;align-items:center;justify-content:center;transform:translateX(0);transition:transform 90ms cubic-bezier(0.4, 0, 0.2, 1),background-color 90ms cubic-bezier(0.4, 0, 0.2, 1),border-color 90ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch__thumb{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);box-sizing:border-box;width:20px;height:20px;border:10px solid;border-radius:50%;pointer-events:none;z-index:1}.mdc-switch--checked .mdc-switch__track{opacity:.54}.mdc-switch--checked .mdc-switch__thumb-underlay{transform:translateX(16px)}[dir=rtl] .mdc-switch--checked .mdc-switch__thumb-underlay,.mdc-switch--checked .mdc-switch__thumb-underlay[dir=rtl]{transform:translateX(-16px)}.mdc-switch--checked .mdc-switch__native-control{transform:translateX(-16px)}[dir=rtl] .mdc-switch--checked .mdc-switch__native-control,.mdc-switch--checked .mdc-switch__native-control[dir=rtl]{transform:translateX(16px)}.mdc-switch--disabled{opacity:.38;pointer-events:none}.mdc-switch--disabled .mdc-switch__thumb{border-width:1px}.mdc-switch--disabled .mdc-switch__native-control{cursor:default;pointer-events:none}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent}`,rn={"mwc-switch":class extends nn{static get styles(){return on}},"mwc-ripple":class extends Bi{static get styles(){return Xi}}};
+const _n=ht`.mdc-switch__thumb-underlay{left:-14px;right:initial;top:-17px;width:48px;height:48px}[dir=rtl] .mdc-switch__thumb-underlay,.mdc-switch__thumb-underlay[dir=rtl]{left:initial;right:-14px}.mdc-switch__native-control{width:64px;height:48px}.mdc-switch{display:inline-block;position:relative;outline:none;user-select:none}.mdc-switch.mdc-switch--checked .mdc-switch__track{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-switch.mdc-switch--checked .mdc-switch__thumb{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786);border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{background-color:#000;background-color:var(--mdc-theme-on-surface, #000)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb{background-color:#fff;background-color:var(--mdc-theme-surface, #fff);border-color:#fff;border-color:var(--mdc-theme-surface, #fff)}.mdc-switch__native-control{left:0;right:initial;position:absolute;top:0;margin:0;opacity:0;cursor:pointer;pointer-events:auto;transition:transform 90ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-switch__native-control,.mdc-switch__native-control[dir=rtl]{left:initial;right:0}.mdc-switch__track{box-sizing:border-box;width:36px;height:14px;border:1px solid transparent;border-radius:7px;opacity:.38;transition:opacity 90ms cubic-bezier(0.4, 0, 0.2, 1),background-color 90ms cubic-bezier(0.4, 0, 0.2, 1),border-color 90ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch__thumb-underlay{display:flex;position:absolute;align-items:center;justify-content:center;transform:translateX(0);transition:transform 90ms cubic-bezier(0.4, 0, 0.2, 1),background-color 90ms cubic-bezier(0.4, 0, 0.2, 1),border-color 90ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch__thumb{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);box-sizing:border-box;width:20px;height:20px;border:10px solid;border-radius:50%;pointer-events:none;z-index:1}.mdc-switch--checked .mdc-switch__track{opacity:.54}.mdc-switch--checked .mdc-switch__thumb-underlay{transform:translateX(16px)}[dir=rtl] .mdc-switch--checked .mdc-switch__thumb-underlay,.mdc-switch--checked .mdc-switch__thumb-underlay[dir=rtl]{transform:translateX(-16px)}.mdc-switch--checked .mdc-switch__native-control{transform:translateX(-16px)}[dir=rtl] .mdc-switch--checked .mdc-switch__native-control,.mdc-switch--checked .mdc-switch__native-control[dir=rtl]{transform:translateX(16px)}.mdc-switch--disabled{opacity:.38;pointer-events:none}.mdc-switch--disabled .mdc-switch__thumb{border-width:1px}.mdc-switch--disabled .mdc-switch__native-control{cursor:default;pointer-events:none}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent}`,wn={"mwc-switch":class extends xn{static get styles(){return _n}},"mwc-ripple":class extends en{static get styles(){return hn}}};
/**
* @license
* Copyright 2016 Google Inc.
@@ -847,19 +885,19 @@ const on=h`.mdc-switch__thumb-underlay{left:-14px;right:initial;top:-17px;width:
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-var sn={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},an={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},dn={LABEL_SCALE:.75},ln=["pattern","min","max","required","step","minlength","maxlength"],cn=["color","date","datetime-local","month","range","time","week"],hn=["mousedown","touchstart"],un=["click","keydown"],pn=function(t){function e(i,o){void 0===o&&(o={});var r=t.call(this,n(n({},e.defaultAdapter),i))||this;return r.isFocused=!1,r.receivedUserInput=!1,r.valid=!0,r.useNativeValidation=!0,r.validateOnValueChange=!0,r.helperText=o.helperText,r.characterCounter=o.characterCounter,r.leadingIcon=o.leadingIcon,r.trailingIcon=o.trailingIcon,r.inputFocusHandler=function(){r.activateFocus()},r.inputBlurHandler=function(){r.deactivateFocus()},r.inputInputHandler=function(){r.handleInput()},r.setPointerXOffset=function(t){r.setTransformOrigin(t)},r.textFieldInteractionHandler=function(){r.handleTextFieldInteraction()},r.validationAttributeChangeHandler=function(t){r.handleValidationAttributeChange(t)},r}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return an},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return sn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return dn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return cn.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,e,i,n;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var o=r(hn),s=o.next();!s.done;s=o.next()){var a=s.value;this.adapter.registerInputInteractionHandler(a,this.setPointerXOffset)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}try{for(var d=r(un),l=d.next();!l.done;l=d.next()){a=l.value;this.adapter.registerTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},e.prototype.destroy=function(){var t,e,i,n;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var o=r(hn),s=o.next();!s.done;s=o.next()){var a=s.value;this.adapter.deregisterInputInteractionHandler(a,this.setPointerXOffset)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}try{for(var d=r(un),l=d.next();!l.done;l=d.next()){a=l.value;this.adapter.deregisterTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},e.prototype.handleValidationAttributeChange=function(t){var e=this;t.some((function(t){return ln.indexOf(t)>-1&&(e.styleValidity(!0),e.adapter.setLabelRequired(e.getNativeInput().required),!0)})),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(t){var e=this.adapter.getLabelWidth()*dn.LABEL_SCALE;this.adapter.notchOutline(e)}else this.adapter.closeOutline()},e.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},e.prototype.setTransformOrigin=function(t){if(!this.isDisabled()&&!this.adapter.hasOutline()){var e=t.touches,i=e?e[0]:t,n=i.target.getBoundingClientRect(),o=i.clientX-n.left;this.adapter.setLineRippleTransformOrigin(o)}},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},e.prototype.getValue=function(){return this.getNativeInput().value},e.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var e=this.isValid();this.styleValidity(e)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},e.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var e=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(e)},e.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},e.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},e.prototype.isDisabled=function(){return this.getNativeInput().disabled},e.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},e.prototype.setcharacterCounter=function(t){if(this.characterCounter){var e=this.getNativeInput().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,e)}},e.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},e.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},e.prototype.styleValidity=function(t){var i=e.cssClasses.INVALID;if(t?this.adapter.removeClass(i):this.adapter.addClass(i),this.helperText){if(this.helperText.setValidity(t),!this.helperText.isValidation())return;var n=this.helperText.isVisible(),o=this.helperText.getId();n&&o?this.adapter.setInputAttr(sn.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(sn.ARIA_DESCRIBEDBY)}},e.prototype.styleFocused=function(t){var i=e.cssClasses.FOCUSED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.styleDisabled=function(t){var i=e.cssClasses,n=i.DISABLED,o=i.INVALID;t?(this.adapter.addClass(n),this.adapter.removeClass(o)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},e.prototype.styleFloating=function(t){var i=e.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(Mt),fn=pn;
+var En={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},kn={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},On={LABEL_SCALE:.75},Cn=["pattern","min","max","required","step","minlength","maxlength"],Sn=["color","date","datetime-local","month","range","time","week"],Tn=["mousedown","touchstart"],In=["click","keydown"],An=function(t){function e(i,o){void 0===o&&(o={});var r=t.call(this,n(n({},e.defaultAdapter),i))||this;return r.isFocused=!1,r.receivedUserInput=!1,r.valid=!0,r.useNativeValidation=!0,r.validateOnValueChange=!0,r.helperText=o.helperText,r.characterCounter=o.characterCounter,r.leadingIcon=o.leadingIcon,r.trailingIcon=o.trailingIcon,r.inputFocusHandler=function(){r.activateFocus()},r.inputBlurHandler=function(){r.deactivateFocus()},r.inputInputHandler=function(){r.handleInput()},r.setPointerXOffset=function(t){r.setTransformOrigin(t)},r.textFieldInteractionHandler=function(){r.handleTextFieldInteraction()},r.validationAttributeChangeHandler=function(t){r.handleValidationAttributeChange(t)},r}return i(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return kn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return En},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return On},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return Sn.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,e,i,n;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var o=r(Tn),s=o.next();!s.done;s=o.next()){var a=s.value;this.adapter.registerInputInteractionHandler(a,this.setPointerXOffset)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}try{for(var d=r(In),l=d.next();!l.done;l=d.next()){a=l.value;this.adapter.registerTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},e.prototype.destroy=function(){var t,e,i,n;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var o=r(Tn),s=o.next();!s.done;s=o.next()){var a=s.value;this.adapter.deregisterInputInteractionHandler(a,this.setPointerXOffset)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}try{for(var d=r(In),l=d.next();!l.done;l=d.next()){a=l.value;this.adapter.deregisterTextFieldInteractionHandler(a,this.textFieldInteractionHandler)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},e.prototype.handleValidationAttributeChange=function(t){var e=this;t.some((function(t){return Cn.indexOf(t)>-1&&(e.styleValidity(!0),e.adapter.setLabelRequired(e.getNativeInput().required),!0)})),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(t){var e=this.adapter.getLabelWidth()*On.LABEL_SCALE;this.adapter.notchOutline(e)}else this.adapter.closeOutline()},e.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},e.prototype.setTransformOrigin=function(t){if(!this.isDisabled()&&!this.adapter.hasOutline()){var e=t.touches,i=e?e[0]:t,n=i.target.getBoundingClientRect(),o=i.clientX-n.left;this.adapter.setLineRippleTransformOrigin(o)}},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},e.prototype.getValue=function(){return this.getNativeInput().value},e.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var e=this.isValid();this.styleValidity(e)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},e.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var e=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(e)},e.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},e.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},e.prototype.isDisabled=function(){return this.getNativeInput().disabled},e.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},e.prototype.setcharacterCounter=function(t){if(this.characterCounter){var e=this.getNativeInput().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,e)}},e.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},e.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},e.prototype.styleValidity=function(t){var i=e.cssClasses.INVALID;if(t?this.adapter.removeClass(i):this.adapter.addClass(i),this.helperText){if(this.helperText.setValidity(t),!this.helperText.isValidation())return;var n=this.helperText.isVisible(),o=this.helperText.getId();n&&o?this.adapter.setInputAttr(En.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(En.ARIA_DESCRIBEDBY)}},e.prototype.styleFocused=function(t){var i=e.cssClasses.FOCUSED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.styleDisabled=function(t){var i=e.cssClasses,n=i.DISABLED,o=i.INVALID;t?(this.adapter.addClass(n),this.adapter.removeClass(o)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},e.prototype.styleFloating=function(t){var i=e.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(ee);
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const mn={},vn=Jt(class extends te{constructor(t){if(super(t),t.type!==Zt&&t.type!==Kt&&t.type!==Qt)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===V||e===U)return e;const i=t.element,n=t.name;if(t.type===Zt){if(e===i[n])return V}else if(t.type===Qt){if(!!e===i.hasAttribute(n))return V}else if(t.type===Kt&&i.getAttribute(n)===e+"")return V;return((t,e=mn)=>{t._$AH=e;
+const Rn={},Pn=xe(class extends _e{constructor(t){if(super(t),t.type!==ye&&t.type!==ge&&t.type!==be)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===U||e===W)return e;const i=t.element,n=t.name;if(t.type===ye){if(e===i[n])return U}else if(t.type===be){if(!!e===i.hasAttribute(n))return U}else if(t.type===ge&&i.getAttribute(n)===e+"")return U;return((t,e=Rn)=>{t._$AH=e;
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */})(t),e}}),gn=["touchstart","touchmove","scroll","mousewheel"],yn=(t={})=>{const e={};for(const i in t)e[i]=t[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},e)};class bn extends Gt{constructor(){super(...arguments),this.mdcFoundationClass=fn,this.value="",this.type="text",this.placeholder="",this.label="",this.icon="",this.iconTrailing="",this.disabled=!1,this.required=!1,this.minLength=-1,this.maxLength=-1,this.outlined=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.autoValidate=!1,this.pattern="",this.min="",this.max="",this.step=null,this.size=null,this.helperPersistent=!1,this.charCounter=!1,this.endAligned=!1,this.prefix="",this.suffix="",this.name="",this.readOnly=!1,this.autocapitalize="",this.outlineOpen=!1,this.outlineWidth=0,this.isUiValid=!0,this.focused=!1,this._validity=yn(),this.validityTransform=null}get validity(){return this._checkValidity(this.value),this._validity}get willValidate(){return this.formElement.willValidate}get selectionStart(){return this.formElement.selectionStart}get selectionEnd(){return this.formElement.selectionEnd}focus(){const t=new CustomEvent("focus");this.formElement.dispatchEvent(t),this.formElement.focus()}blur(){const t=new CustomEvent("blur");this.formElement.dispatchEvent(t),this.formElement.blur()}select(){this.formElement.select()}setSelectionRange(t,e,i){this.formElement.setSelectionRange(t,e,i)}update(t){t.has("autoValidate")&&this.mdcFoundation&&this.mdcFoundation.setValidateOnValueChange(this.autoValidate),t.has("value")&&"string"!=typeof this.value&&(this.value=`${this.value}`),super.update(t)}setFormData(t){this.name&&t.append(this.name,this.value)}render(){const t=this.charCounter&&-1!==this.maxLength,e=!!this.helper||!!this.validationMessage||t,i={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--with-leading-icon":this.icon,"mdc-text-field--with-trailing-icon":this.iconTrailing,"mdc-text-field--end-aligned":this.endAligned};return W`
-
+ */})(t),e}}),Dn=["touchstart","touchmove","scroll","mousewheel"],Mn=(t={})=>{const e={};for(const i in t)e[i]=t[i];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},e)};class Fn extends me{constructor(){super(...arguments),this.mdcFoundationClass=An,this.value="",this.type="text",this.placeholder="",this.label="",this.icon="",this.iconTrailing="",this.disabled=!1,this.required=!1,this.minLength=-1,this.maxLength=-1,this.outlined=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.autoValidate=!1,this.pattern="",this.min="",this.max="",this.step=null,this.size=null,this.helperPersistent=!1,this.charCounter=!1,this.endAligned=!1,this.prefix="",this.suffix="",this.name="",this.readOnly=!1,this.autocapitalize="",this.outlineOpen=!1,this.outlineWidth=0,this.isUiValid=!0,this.focused=!1,this._validity=Mn(),this.validityTransform=null}get validity(){return this._checkValidity(this.value),this._validity}get willValidate(){return this.formElement.willValidate}get selectionStart(){return this.formElement.selectionStart}get selectionEnd(){return this.formElement.selectionEnd}focus(){const t=new CustomEvent("focus");this.formElement.dispatchEvent(t),this.formElement.focus()}blur(){const t=new CustomEvent("blur");this.formElement.dispatchEvent(t),this.formElement.blur()}select(){this.formElement.select()}setSelectionRange(t,e,i){this.formElement.setSelectionRange(t,e,i)}update(t){t.has("autoValidate")&&this.mdcFoundation&&this.mdcFoundation.setValidateOnValueChange(this.autoValidate),t.has("value")&&"string"!=typeof this.value&&(this.value=`${this.value}`),super.update(t)}setFormData(t){this.name&&t.append(this.name,this.value)}render(){const t=this.charCounter&&-1!==this.maxLength,e=!!this.helper||!!this.validationMessage||t,i={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--with-leading-icon":this.icon,"mdc-text-field--with-trailing-icon":this.iconTrailing,"mdc-text-field--end-aligned":this.endAligned};return $`
+
${this.renderRipple()}
${this.outlined?this.renderOutline():this.renderLabel()}
${this.renderLeadingIcon()}
@@ -870,61 +908,61 @@ const mn={},vn=Jt(class extends te{constructor(t){if(super(t),t.type!==Zt&&t.typ
${this.renderLineRipple()}
${this.renderHelperText(e,t)}
- `}updated(t){t.has("value")&&void 0!==t.get("value")&&(this.mdcFoundation.setValue(this.value),this.autoValidate&&this.reportValidity())}renderRipple(){return this.outlined?"":W`
+ `}updated(t){t.has("value")&&void 0!==t.get("value")&&(this.mdcFoundation.setValue(this.value),this.autoValidate&&this.reportValidity())}renderRipple(){return this.outlined?"":$`
- `}renderOutline(){return this.outlined?W`
+ `}renderOutline(){return this.outlined?$`
${this.renderLabel()}
- `:""}renderLabel(){return this.label?W`
+ `:""}renderLabel(){return this.label?$`
${this.label}
- `:""}renderLeadingIcon(){return this.icon?this.renderIcon(this.icon):""}renderTrailingIcon(){return this.iconTrailing?this.renderIcon(this.iconTrailing,!0):""}renderIcon(t,e=!1){return W`${t} `}renderPrefix(){return this.prefix?this.renderAffix(this.prefix):""}renderSuffix(){return this.suffix?this.renderAffix(this.suffix,!0):""}renderAffix(t,e=!1){return W`
- ${t} `}renderInput(t){const e=-1===this.minLength?void 0:this.minLength,i=-1===this.maxLength?void 0:this.maxLength,n=this.autocapitalize?this.autocapitalize:void 0,o=this.validationMessage&&!this.isUiValid,r=this.label?"label":void 0,s=t?"helper-text":void 0,a=this.focused||this.helperPersistent||o?"helper-text":void 0;return W`
+ `:""}renderLeadingIcon(){return this.icon?this.renderIcon(this.icon):""}renderTrailingIcon(){return this.iconTrailing?this.renderIcon(this.iconTrailing,!0):""}renderIcon(t,e=!1){return $`${t} `}renderPrefix(){return this.prefix?this.renderAffix(this.prefix):""}renderSuffix(){return this.suffix?this.renderAffix(this.suffix,!0):""}renderAffix(t,e=!1){return $`
+ ${t} `}renderInput(t){const e=-1===this.minLength?void 0:this.minLength,i=-1===this.maxLength?void 0:this.maxLength,n=this.autocapitalize?this.autocapitalize:void 0,o=this.validationMessage&&!this.isUiValid,r=this.label?"label":void 0,s=t?"helper-text":void 0,a=this.focused||this.helperPersistent||o?"helper-text":void 0;return $`
`}renderLineRipple(){return this.outlined?"":W`
-
- `}renderHelperText(t,e){const i=this.validationMessage&&!this.isUiValid,n={"mdc-text-field-helper-text--persistent":this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},o=this.focused||this.helperPersistent||i?void 0:"true",r=i?this.validationMessage:this.helper;return t?W`
+ @blur="${this.onInputBlur}">`}renderLineRipple(){return this.outlined?"":$`
+
+ `}renderHelperText(t,e){const i=this.validationMessage&&!this.isUiValid,n={"mdc-text-field-helper-text--persistent":this.helperPersistent,"mdc-text-field-helper-text--validation-msg":i},o=this.focused||this.helperPersistent||i?void 0:"true",r=i?this.validationMessage:this.helper;return t?$`
${r}
${this.renderCharCounter(e)}
-
`:""}renderCharCounter(t){const e=Math.min(this.value.length,this.maxLength);return t?W`
+ `:""}renderCharCounter(t){const e=Math.min(this.value.length,this.maxLength);return t?$`
${e} / ${this.maxLength} `:""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){const t=this._checkValidity(this.value);if(!t){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return t}reportValidity(){const t=this.checkValidity();return this.mdcFoundation.setValid(t),this.isUiValid=t,t}_checkValidity(t){const e=this.formElement.validity;let i=yn(e);if(this.validityTransform){const e=this.validityTransform(t,i);i=Object.assign(Object.assign({},i),e),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=i,this._validity.valid}setCustomValidity(t){this.validationMessage=t,this.formElement.setCustomValidity(t)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(t,e)=>this.addEventListener(t,e),deregisterTextFieldInteractionHandler:(t,e)=>this.removeEventListener(t,e),registerValidationAttributeChangeHandler:t=>{const e=new MutationObserver((e=>{t((t=>t.map((t=>t.attributeName)).filter((t=>t)))(e))}));return e.observe(this.formElement,{attributes:!0}),e},deregisterValidationAttributeChangeHandler:t=>t.disconnect()},zt(this.mdcRoot))}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>!!this.shadowRoot&&this.shadowRoot.activeElement===this.formElement,registerInputInteractionHandler:(t,e)=>this.formElement.addEventListener(t,e,{passive:t in gn}),deregisterInputInteractionHandler:(t,e)=>this.formElement.removeEventListener(t,e)}}getLabelAdapterMethods(){return{floatLabel:t=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(t),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>Boolean(this.labelElement),shakeLabel:t=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(t),setLabelRequired:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(t)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:t=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(t)}}}async getUpdateComplete(){var t;const e=await super.getUpdateComplete();return await(null===(t=this.outlineElement)||void 0===t?void 0:t.updateComplete),e}firstUpdated(){var t;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),null===(t=this.outlineElement)||void 0===t||t.updateComplete.then((()=>{var t;this.outlineWidth=(null===(t=this.labelElement)||void 0===t?void 0:t.floatingLabelFoundation.getWidth())||0}))}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>Boolean(this.outlineElement),notchOutline:t=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=t,this.outlineOpen=!0)}}}async layout(){await this.updateComplete;const t=this.labelElement;if(!t)return void(this.outlineOpen=!1);const e=!!this.label&&!!this.value;if(t.floatingLabelFoundation.float(e),!this.outlined)return;this.outlineOpen=e,await this.updateComplete;const i=t.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=i,await this.updateComplete)}}o([vt(".mdc-text-field")],bn.prototype,"mdcRoot",void 0),o([vt("input")],bn.prototype,"formElement",void 0),o([vt(".mdc-floating-label")],bn.prototype,"labelElement",void 0),o([vt(".mdc-line-ripple")],bn.prototype,"lineRippleElement",void 0),o([vt("mwc-notched-outline")],bn.prototype,"outlineElement",void 0),o([vt(".mdc-notched-outline__notch")],bn.prototype,"notchElement",void 0),o([ut({type:String})],bn.prototype,"value",void 0),o([ut({type:String})],bn.prototype,"type",void 0),o([ut({type:String})],bn.prototype,"placeholder",void 0),o([ut({type:String}),Yt((function(t,e){void 0!==e&&this.label!==e&&this.layout()}))],bn.prototype,"label",void 0),o([ut({type:String})],bn.prototype,"icon",void 0),o([ut({type:String})],bn.prototype,"iconTrailing",void 0),o([ut({type:Boolean,reflect:!0})],bn.prototype,"disabled",void 0),o([ut({type:Boolean})],bn.prototype,"required",void 0),o([ut({type:Number})],bn.prototype,"minLength",void 0),o([ut({type:Number})],bn.prototype,"maxLength",void 0),o([ut({type:Boolean,reflect:!0}),Yt((function(t,e){void 0!==e&&this.outlined!==e&&this.layout()}))],bn.prototype,"outlined",void 0),o([ut({type:String})],bn.prototype,"helper",void 0),o([ut({type:Boolean})],bn.prototype,"validateOnInitialRender",void 0),o([ut({type:String})],bn.prototype,"validationMessage",void 0),o([ut({type:Boolean})],bn.prototype,"autoValidate",void 0),o([ut({type:String})],bn.prototype,"pattern",void 0),o([ut({type:String})],bn.prototype,"min",void 0),o([ut({type:String})],bn.prototype,"max",void 0),o([ut({type:String})],bn.prototype,"step",void 0),o([ut({type:Number})],bn.prototype,"size",void 0),o([ut({type:Boolean})],bn.prototype,"helperPersistent",void 0),o([ut({type:Boolean})],bn.prototype,"charCounter",void 0),o([ut({type:Boolean})],bn.prototype,"endAligned",void 0),o([ut({type:String})],bn.prototype,"prefix",void 0),o([ut({type:String})],bn.prototype,"suffix",void 0),o([ut({type:String})],bn.prototype,"name",void 0),o([ut({type:String})],bn.prototype,"inputMode",void 0),o([ut({type:Boolean})],bn.prototype,"readOnly",void 0),o([ut({type:String})],bn.prototype,"autocapitalize",void 0),o([pt()],bn.prototype,"outlineOpen",void 0),o([pt()],bn.prototype,"outlineWidth",void 0),o([pt()],bn.prototype,"isUiValid",void 0),o([pt()],bn.prototype,"focused",void 0),o([mt({passive:!0})],bn.prototype,"handleInputChange",null);
+ >${e} / ${this.maxLength}`:""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){const t=this._checkValidity(this.value);if(!t){const t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return t}reportValidity(){const t=this.checkValidity();return this.mdcFoundation.setValid(t),this.isUiValid=t,t}_checkValidity(t){const e=this.formElement.validity;let i=Mn(e);if(this.validityTransform){const e=this.validityTransform(t,i);i=Object.assign(Object.assign({},i),e),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=i,this._validity.valid}setCustomValidity(t){this.validationMessage=t,this.formElement.setCustomValidity(t)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(t,e)=>this.addEventListener(t,e),deregisterTextFieldInteractionHandler:(t,e)=>this.removeEventListener(t,e),registerValidationAttributeChangeHandler:t=>{const e=new MutationObserver((e=>{t((t=>t.map((t=>t.attributeName)).filter((t=>t)))(e))}));return e.observe(this.formElement,{attributes:!0}),e},deregisterValidationAttributeChangeHandler:t=>t.disconnect()},se(this.mdcRoot))}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>!!this.shadowRoot&&this.shadowRoot.activeElement===this.formElement,registerInputInteractionHandler:(t,e)=>this.formElement.addEventListener(t,e,{passive:t in Dn}),deregisterInputInteractionHandler:(t,e)=>this.formElement.removeEventListener(t,e)}}getLabelAdapterMethods(){return{floatLabel:t=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(t),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>Boolean(this.labelElement),shakeLabel:t=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(t),setLabelRequired:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(t)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:t=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(t)}}}async getUpdateComplete(){var t;const e=await super.getUpdateComplete();return await(null===(t=this.outlineElement)||void 0===t?void 0:t.updateComplete),e}firstUpdated(){var t;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),null===(t=this.outlineElement)||void 0===t||t.updateComplete.then((()=>{var t;this.outlineWidth=(null===(t=this.labelElement)||void 0===t?void 0:t.floatingLabelFoundation.getWidth())||0}))}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>Boolean(this.outlineElement),notchOutline:t=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=t,this.outlineOpen=!0)}}}async layout(){await this.updateComplete;const t=this.labelElement;if(!t)return void(this.outlineOpen=!1);const e=!!this.label&&!!this.value;if(t.floatingLabelFoundation.float(e),!this.outlined)return;this.outlineOpen=e,await this.updateComplete;const i=t.floatingLabelFoundation.getWidth();this.outlineOpen&&(this.outlineWidth=i,await this.updateComplete)}}o([Mt(".mdc-text-field")],Fn.prototype,"mdcRoot",void 0),o([Mt("input")],Fn.prototype,"formElement",void 0),o([Mt(".mdc-floating-label")],Fn.prototype,"labelElement",void 0),o([Mt(".mdc-line-ripple")],Fn.prototype,"lineRippleElement",void 0),o([Mt("mwc-notched-outline")],Fn.prototype,"outlineElement",void 0),o([Mt(".mdc-notched-outline__notch")],Fn.prototype,"notchElement",void 0),o([At({type:String})],Fn.prototype,"value",void 0),o([At({type:String})],Fn.prototype,"type",void 0),o([At({type:String})],Fn.prototype,"placeholder",void 0),o([At({type:String}),ve((function(t,e){void 0!==e&&this.label!==e&&this.layout()}))],Fn.prototype,"label",void 0),o([At({type:String})],Fn.prototype,"icon",void 0),o([At({type:String})],Fn.prototype,"iconTrailing",void 0),o([At({type:Boolean,reflect:!0})],Fn.prototype,"disabled",void 0),o([At({type:Boolean})],Fn.prototype,"required",void 0),o([At({type:Number})],Fn.prototype,"minLength",void 0),o([At({type:Number})],Fn.prototype,"maxLength",void 0),o([At({type:Boolean,reflect:!0}),ve((function(t,e){void 0!==e&&this.outlined!==e&&this.layout()}))],Fn.prototype,"outlined",void 0),o([At({type:String})],Fn.prototype,"helper",void 0),o([At({type:Boolean})],Fn.prototype,"validateOnInitialRender",void 0),o([At({type:String})],Fn.prototype,"validationMessage",void 0),o([At({type:Boolean})],Fn.prototype,"autoValidate",void 0),o([At({type:String})],Fn.prototype,"pattern",void 0),o([At({type:String})],Fn.prototype,"min",void 0),o([At({type:String})],Fn.prototype,"max",void 0),o([At({type:String})],Fn.prototype,"step",void 0),o([At({type:Number})],Fn.prototype,"size",void 0),o([At({type:Boolean})],Fn.prototype,"helperPersistent",void 0),o([At({type:Boolean})],Fn.prototype,"charCounter",void 0),o([At({type:Boolean})],Fn.prototype,"endAligned",void 0),o([At({type:String})],Fn.prototype,"prefix",void 0),o([At({type:String})],Fn.prototype,"suffix",void 0),o([At({type:String})],Fn.prototype,"name",void 0),o([At({type:String})],Fn.prototype,"inputMode",void 0),o([At({type:Boolean})],Fn.prototype,"readOnly",void 0),o([At({type:String})],Fn.prototype,"autocapitalize",void 0),o([Rt()],Fn.prototype,"outlineOpen",void 0),o([Rt()],Fn.prototype,"outlineWidth",void 0),o([Rt()],Fn.prototype,"isUiValid",void 0),o([Rt()],Fn.prototype,"focused",void 0),o([Dt({passive:!0})],Fn.prototype,"handleInputChange",null);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-LIcense-Identifier: Apache-2.0
*/
-const xn=h`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:transparent;background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-left:auto;margin-right:0;padding-left:16px;padding-right:0;white-space:nowrap}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-flex;flex-direction:column;outline:none}.mdc-text-field{width:100%}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-text-field-idle-line-color, rgba(0, 0, 0, 0.42))}.mdc-text-field:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-text-field-hover-line-color, rgba(0, 0, 0, 0.87))}.mdc-text-field.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06);border-bottom-color:var(--mdc-text-field-disabled-line-color, rgba(0, 0, 0, 0.06))}.mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field__input{direction:inherit}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-idle-border-color, rgba(0, 0, 0, 0.38) )}:host(:not([disabled]):hover) :not(.mdc-text-field--invalid):not(.mdc-text-field--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-error-color, var(--mdc-theme-error, #b00020) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-character-counter,:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid .mdc-text-field__icon{color:var(--mdc-text-field-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input{color:var(--mdc-text-field-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg),:host(:not([disabled])) .mdc-text-field-helper-line:not(.mdc-text-field--invalid) .mdc-text-field-character-counter{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-text-field.mdc-text-field--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field .mdc-text-field__input,:host([disabled]) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-helper-text,:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-character-counter{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}`,_n={"mwc-textfield":class extends bn{static get styles(){return xn}},"mwc-notched-outline":class extends Wi{static get styles(){return Ki}}};let wn=class extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return u(o,this.constructor.elementStyles),o}}}(dt)){constructor(){super(...arguments),this._initialized=!1}setConfig(t){this._config=t,null==this._config.auto_update&&(this._config=Object.assign(Object.assign({},this._config),{auto_update:!0})),this.loadCardHelpers()}connectedCallback(){super.connectedCallback();const t=this.save_layout.bind(this);window.addEventListener("wiser-zigbee-save-layout",t)}disconnectedCallback(){window.removeEventListener("wiser-zigbee-save-layout",this.save_layout),super.disconnectedCallback()}shouldUpdate(){return this._initialized||this._initialize(),!0}get _name(){var t;return(null===(t=this._config)||void 0===t?void 0:t.name)||""}get _hub(){var t;return(null===(t=this._config)||void 0===t?void 0:t.hub)||""}get _auto_update(){var t;return(null===(t=this._config)||void 0===t?void 0:t.auto_update)||!1}async loadData(){var t;this.hass&&(this._hubs=await(t=this.hass,t.callWS({type:"wiser/hubs"})))}render(){return this.hass&&this._helpers&&this._config&&this._hubs?W`
+const Nn=ht`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:transparent;background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-left:auto;margin-right:0;padding-left:16px;padding-right:0;white-space:nowrap}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-flex;flex-direction:column;outline:none}.mdc-text-field{width:100%}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-text-field-idle-line-color, rgba(0, 0, 0, 0.42))}.mdc-text-field:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-text-field-hover-line-color, rgba(0, 0, 0, 0.87))}.mdc-text-field.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06);border-bottom-color:var(--mdc-text-field-disabled-line-color, rgba(0, 0, 0, 0.06))}.mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field__input{direction:inherit}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-idle-border-color, rgba(0, 0, 0, 0.38) )}:host(:not([disabled]):hover) :not(.mdc-text-field--invalid):not(.mdc-text-field--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-error-color, var(--mdc-theme-error, #b00020) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-character-counter,:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid .mdc-text-field__icon{color:var(--mdc-text-field-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input{color:var(--mdc-text-field-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg),:host(:not([disabled])) .mdc-text-field-helper-line:not(.mdc-text-field--invalid) .mdc-text-field-character-counter{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-text-field.mdc-text-field--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field .mdc-text-field__input,:host([disabled]) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-helper-text,:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-character-counter{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}`,Bn={"mwc-textfield":class extends Fn{static get styles(){return Nn}},"mwc-notched-outline":class extends an{static get styles(){return fn}}};let Ln=class extends(te(Ot)){constructor(){super(...arguments),this._initialized=!1}setConfig(t){this._config=t,null==this._config.auto_update&&(this._config=Object.assign(Object.assign({},this._config),{auto_update:!0})),this.loadCardHelpers()}connectedCallback(){super.connectedCallback();const t=this.save_layout.bind(this);window.addEventListener("wiser-zigbee-save-layout",t)}disconnectedCallback(){window.removeEventListener("wiser-zigbee-save-layout",this.save_layout),super.disconnectedCallback()}shouldUpdate(){return this._initialized||this._initialize(),!0}get _name(){var t;return(null===(t=this._config)||void 0===t?void 0:t.name)||""}get _hub(){var t;return(null===(t=this._config)||void 0===t?void 0:t.hub)||""}get _auto_update(){var t;return(null===(t=this._config)||void 0===t?void 0:t.auto_update)||!1}async loadData(){var t;this.hass&&(this._hubs=await(t=this.hass,t.callWS({type:"wiser/hubs"})))}render(){return this.hass&&this._helpers&&this._config&&this._hubs?$`
${this.hubSelector()}
- Version: ${kt}
- `:W``}hubSelector(){var t;const e=this._hubs?this._hubs:[];return e.length>1?W`
+ Version: ${$t}
+ `:$``}hubSelector(){var t;const e=this._hubs?this._hubs:[];return e.length>1?$`
t.stopPropagation()}
>
- ${null===(t=this._hubs)||void 0===t?void 0:t.map((t=>W`${t} `))}
+ ${null===(t=this._hubs)||void 0===t?void 0:t.map((t=>$`${t} `))}
- `:W``}_initialize(){void 0!==this.hass&&void 0!==this._config&&void 0!==this._helpers&&(this._initialized=!0)}async loadCardHelpers(){this._helpers=await window.loadCardHelpers(),await this.loadData()}save_layout(t){this._config&&(this._config=Object.assign(Object.assign({},this._config),{layout_data:t.detail.layout_data}),Et(this,"config-changed",{config:this._config}))}_valueChanged(t){if(!this._config||!this.hass)return;const e=t.target;if(this[`_${e.configValue}`]!==e.value){if(e.configValue)if("hub"==e.configValue&&(this._config=Object.assign(Object.assign({},this._config),{layout_data:""})),""===e.value){const t=Object.assign({},this._config);delete t[e.configValue],this._config=t}else this._config=Object.assign(Object.assign({},this._config),{[e.configValue]:void 0!==e.checked?e.checked:e.value});Et(this,"config-changed",{config:this._config})}}};
+ `:$``}_initialize(){void 0!==this.hass&&void 0!==this._config&&void 0!==this._helpers&&(this._initialized=!0)}async loadCardHelpers(){this._helpers=await window.loadCardHelpers(),await this.loadData()}save_layout(t){this._config&&(this._config=Object.assign(Object.assign({},this._config),{layout_data:t.detail.layout_data}),Ht(this,"config-changed",{config:this._config}))}_valueChanged(t){if(!this._config||!this.hass)return;const e=t.target;if(this[`_${e.configValue}`]!==e.value){if(e.configValue)if("hub"==e.configValue&&(this._config=Object.assign(Object.assign({},this._config),{layout_data:""})),""===e.value){const t=Object.assign({},this._config);delete t[e.configValue],this._config=t}else this._config=Object.assign(Object.assign({},this._config),{[e.configValue]:void 0!==e.checked?e.checked:e.value});Ht(this,"config-changed",{config:this._config})}}};
/**
* vis-data
* http://visjs.org/
*
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
*
- * @version 7.1.6
- * @date 2023-03-22T11:39:37.256Z
+ * @version 7.1.9
+ * @date 2023-11-24T17:53:34.179Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -979,7 +1017,7 @@ const xn=h`.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-sm
*
* vis.js may be distributed under either license.
*/
-function En(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}wn.elementDefinitions=Object.assign(Object.assign(Object.assign(Object.assign({},_n),Zi),rn),oe),wn.styles=h`
+function zn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Ln.elementDefinitions=Object.assign(Object.assign(Object.assign(Object.assign({},Bn),mn),wn),Oe),Ln.styles=ht`
mwc-select,
mwc-textfield {
margin-bottom: 16px;
@@ -992,21 +1030,22 @@ function En(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class a
mwc-switch {
--mdc-theme-secondary: var(--switch-checked-color);
}
- `,o([ut({attribute:!1})],wn.prototype,"hass",void 0),o([pt()],wn.prototype,"_config",void 0),o([pt()],wn.prototype,"_helpers",void 0),o([pt()],wn.prototype,"_hubs",void 0),wn=o([ct("wiser-zigbee-card-editor")],wn);var kn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function On(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cn={},Tn={get exports(){return Cn},set exports(t){Cn=t}},In={},Sn={get exports(){return In},set exports(t){In=t}},An={},Rn={get exports(){return An},set exports(t){An=t}},Dn=function(t){return t&&t.Math==Math&&t},Pn=Dn("object"==typeof globalThis&&globalThis)||Dn("object"==typeof window&&window)||Dn("object"==typeof self&&self)||Dn("object"==typeof kn&&kn)||function(){return this}()||Function("return this")(),Mn=function(t){try{return!!t()}catch(t){return!0}},Fn=!Mn((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),Nn=Fn,Ln=Function.prototype,Bn=Ln.apply,zn=Ln.call,jn="object"==typeof Reflect&&Reflect.apply||(Nn?zn.bind(Bn):function(){return zn.apply(Bn,arguments)}),Hn=Fn,$n=Function.prototype,Wn=$n.call,Vn=Hn&&$n.bind.bind(Wn,Wn),Un=Hn?Vn:function(t){return function(){return Wn.apply(t,arguments)}},qn=Un,Xn=qn({}.toString),Gn=qn("".slice),Yn=function(t){return Gn(Xn(t),8,-1)},Kn=Yn,Zn=Un,Qn=function(t){if("Function"===Kn(t))return Zn(t)},Jn="object"==typeof document&&document.all,to={all:Jn,IS_HTMLDDA:void 0===Jn&&void 0!==Jn},eo=to.all,io=to.IS_HTMLDDA?function(t){return"function"==typeof t||t===eo}:function(t){return"function"==typeof t},no={},oo=!Mn((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ro=Fn,so=Function.prototype.call,ao=ro?so.bind(so):function(){return so.apply(so,arguments)},lo={},co={}.propertyIsEnumerable,ho=Object.getOwnPropertyDescriptor,uo=ho&&!co.call({1:2},1);lo.f=uo?function(t){var e=ho(this,t);return!!e&&e.enumerable}:co;var po,fo,mo=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},vo=Mn,go=Yn,yo=Object,bo=Un("".split),xo=vo((function(){return!yo("z").propertyIsEnumerable(0)}))?function(t){return"String"==go(t)?bo(t,""):yo(t)}:yo,_o=function(t){return null==t},wo=_o,Eo=TypeError,ko=function(t){if(wo(t))throw Eo("Can't call method on "+t);return t},Oo=xo,Co=ko,To=function(t){return Oo(Co(t))},Io=io,So=to.all,Ao=to.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Io(t)||t===So}:function(t){return"object"==typeof t?null!==t:Io(t)},Ro={},Do=Ro,Po=Pn,Mo=io,Fo=function(t){return Mo(t)?t:void 0},No=function(t,e){return arguments.length<2?Fo(Do[t])||Fo(Po[t]):Do[t]&&Do[t][e]||Po[t]&&Po[t][e]},Lo=Un({}.isPrototypeOf),Bo="undefined"!=typeof navigator&&String(navigator.userAgent)||"",zo=Pn,jo=Bo,Ho=zo.process,$o=zo.Deno,Wo=Ho&&Ho.versions||$o&&$o.version,Vo=Wo&&Wo.v8;Vo&&(fo=(po=Vo.split("."))[0]>0&&po[0]<4?1:+(po[0]+po[1])),!fo&&jo&&(!(po=jo.match(/Edge\/(\d+)/))||po[1]>=74)&&(po=jo.match(/Chrome\/(\d+)/))&&(fo=+po[1]);var Uo=fo,qo=Uo,Xo=Mn,Go=!!Object.getOwnPropertySymbols&&!Xo((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&qo&&qo<41})),Yo=Go&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ko=No,Zo=io,Qo=Lo,Jo=Object,tr=Yo?function(t){return"symbol"==typeof t}:function(t){var e=Ko("Symbol");return Zo(e)&&Qo(e.prototype,Jo(t))},er=String,ir=function(t){try{return er(t)}catch(t){return"Object"}},nr=io,or=ir,rr=TypeError,sr=function(t){if(nr(t))return t;throw rr(or(t)+" is not a function")},ar=sr,dr=_o,lr=function(t,e){var i=t[e];return dr(i)?void 0:ar(i)},cr=ao,hr=io,ur=Ao,pr=TypeError,fr={},mr={get exports(){return fr},set exports(t){fr=t}},vr=Pn,gr=Object.defineProperty,yr=function(t,e){try{gr(vr,t,{value:e,configurable:!0,writable:!0})}catch(i){vr[t]=e}return e},br="__core-js_shared__",xr=Pn[br]||yr(br,{}),_r=xr;(mr.exports=function(t,e){return _r[t]||(_r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var wr=ko,Er=Object,kr=function(t){return Er(wr(t))},Or=kr,Cr=Un({}.hasOwnProperty),Tr=Object.hasOwn||function(t,e){return Cr(Or(t),e)},Ir=Un,Sr=0,Ar=Math.random(),Rr=Ir(1..toString),Dr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Rr(++Sr+Ar,36)},Pr=fr,Mr=Tr,Fr=Dr,Nr=Go,Lr=Yo,Br=Pn.Symbol,zr=Pr("wks"),jr=Lr?Br.for||Br:Br&&Br.withoutSetter||Fr,Hr=function(t){return Mr(zr,t)||(zr[t]=Nr&&Mr(Br,t)?Br[t]:jr("Symbol."+t)),zr[t]},$r=ao,Wr=Ao,Vr=tr,Ur=lr,qr=function(t,e){var i,n;if("string"===e&&hr(i=t.toString)&&!ur(n=cr(i,t)))return n;if(hr(i=t.valueOf)&&!ur(n=cr(i,t)))return n;if("string"!==e&&hr(i=t.toString)&&!ur(n=cr(i,t)))return n;throw pr("Can't convert object to primitive value")},Xr=TypeError,Gr=Hr("toPrimitive"),Yr=function(t,e){if(!Wr(t)||Vr(t))return t;var i,n=Ur(t,Gr);if(n){if(void 0===e&&(e="default"),i=$r(n,t,e),!Wr(i)||Vr(i))return i;throw Xr("Can't convert object to primitive value")}return void 0===e&&(e="number"),qr(t,e)},Kr=tr,Zr=function(t){var e=Yr(t,"string");return Kr(e)?e:e+""},Qr=Ao,Jr=Pn.document,ts=Qr(Jr)&&Qr(Jr.createElement),es=function(t){return ts?Jr.createElement(t):{}},is=es,ns=!oo&&!Mn((function(){return 7!=Object.defineProperty(is("div"),"a",{get:function(){return 7}}).a})),os=oo,rs=ao,ss=lo,as=mo,ds=To,ls=Zr,cs=Tr,hs=ns,us=Object.getOwnPropertyDescriptor;no.f=os?us:function(t,e){if(t=ds(t),e=ls(e),hs)try{return us(t,e)}catch(t){}if(cs(t,e))return as(!rs(ss.f,t,e),t[e])};var ps=Mn,fs=io,ms=/#|\.prototype\./,vs=function(t,e){var i=ys[gs(t)];return i==xs||i!=bs&&(fs(e)?ps(e):!!e)},gs=vs.normalize=function(t){return String(t).replace(ms,".").toLowerCase()},ys=vs.data={},bs=vs.NATIVE="N",xs=vs.POLYFILL="P",_s=vs,ws=sr,Es=Fn,ks=Qn(Qn.bind),Os=function(t,e){return ws(t),void 0===e?t:Es?ks(t,e):function(){return t.apply(e,arguments)}},Cs={},Ts=oo&&Mn((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Is=Ao,Ss=String,As=TypeError,Rs=function(t){if(Is(t))return t;throw As(Ss(t)+" is not an object")},Ds=oo,Ps=ns,Ms=Ts,Fs=Rs,Ns=Zr,Ls=TypeError,Bs=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,js="enumerable",Hs="configurable",$s="writable";Cs.f=Ds?Ms?function(t,e,i){if(Fs(t),e=Ns(e),Fs(i),"function"==typeof t&&"prototype"===e&&"value"in i&&$s in i&&!i[$s]){var n=zs(t,e);n&&n[$s]&&(t[e]=i.value,i={configurable:Hs in i?i[Hs]:n[Hs],enumerable:js in i?i[js]:n[js],writable:!1})}return Bs(t,e,i)}:Bs:function(t,e,i){if(Fs(t),e=Ns(e),Fs(i),Ps)try{return Bs(t,e,i)}catch(t){}if("get"in i||"set"in i)throw Ls("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var Ws=Cs,Vs=mo,Us=oo?function(t,e,i){return Ws.f(t,e,Vs(1,i))}:function(t,e,i){return t[e]=i,t},qs=Pn,Xs=jn,Gs=Qn,Ys=io,Ks=no.f,Zs=_s,Qs=Ro,Js=Os,ta=Us,ea=Tr,ia=function(t){var e=function(i,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,o)}return Xs(t,this,arguments)};return e.prototype=t.prototype,e},na=function(t,e){var i,n,o,r,s,a,d,l,c,h=t.target,u=t.global,p=t.stat,f=t.proto,m=u?qs:p?qs[h]:(qs[h]||{}).prototype,v=u?Qs:Qs[h]||ta(Qs,h,{})[h],g=v.prototype;for(r in e)n=!(i=Zs(u?r:h+(p?".":"#")+r,t.forced))&&m&&ea(m,r),a=v[r],n&&(d=t.dontCallGetSet?(c=Ks(m,r))&&c.value:m[r]),s=n&&d?d:e[r],n&&typeof a==typeof s||(l=t.bind&&n?Js(s,qs):t.wrap&&n?ia(s):f&&Ys(s)?Gs(s):s,(t.sham||s&&s.sham||a&&a.sham)&&ta(l,"sham",!0),ta(v,r,l),f&&(ea(Qs,o=h+"Prototype")||ta(Qs,o,{}),ta(Qs[o],r,s),t.real&&g&&(i||!g[r])&&ta(g,r,s)))},oa=na,ra=oo,sa=Cs.f;oa({target:"Object",stat:!0,forced:Object.defineProperty!==sa,sham:!ra},{defineProperty:sa});var aa=Ro.Object,da=Rn.exports=function(t,e,i){return aa.defineProperty(t,e,i)};aa.defineProperty.sham&&(da.sham=!0);var la=An,ca=la;Sn.exports=ca,function(t){t.exports=In}(Tn);var ha=On(Cn),ua={},pa={get exports(){return ua},set exports(t){ua=t}},fa={},ma={get exports(){return fa},set exports(t){fa=t}},va=Yn,ga=Array.isArray||function(t){return"Array"==va(t)},ya=Math.ceil,ba=Math.floor,xa=Math.trunc||function(t){var e=+t;return(e>0?ba:ya)(e)},_a=xa,wa=function(t){var e=+t;return e!=e||0===e?0:_a(e)},Ea=wa,ka=Math.min,Oa=function(t){return t>0?ka(Ea(t),9007199254740991):0},Ca=function(t){return Oa(t.length)},Ta=TypeError,Ia=function(t){if(t>9007199254740991)throw Ta("Maximum allowed index exceeded");return t},Sa=Zr,Aa=Cs,Ra=mo,Da=function(t,e,i){var n=Sa(e);n in t?Aa.f(t,n,Ra(0,i)):t[n]=i},Pa={};Pa[Hr("toStringTag")]="z";var Ma="[object z]"===String(Pa),Fa=Ma,Na=io,La=Yn,Ba=Hr("toStringTag"),za=Object,ja="Arguments"==La(function(){return arguments}()),Ha=Fa?La:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=za(t),Ba))?i:ja?La(e):"Object"==(n=La(e))&&Na(e.callee)?"Arguments":n},$a=io,Wa=xr,Va=Un(Function.toString);$a(Wa.inspectSource)||(Wa.inspectSource=function(t){return Va(t)});var Ua=Wa.inspectSource,qa=Un,Xa=Mn,Ga=io,Ya=Ha,Ka=Ua,Za=function(){},Qa=[],Ja=No("Reflect","construct"),td=/^\s*(?:class|function)\b/,ed=qa(td.exec),id=!td.exec(Za),nd=function(t){if(!Ga(t))return!1;try{return Ja(Za,Qa,t),!0}catch(t){return!1}},od=function(t){if(!Ga(t))return!1;switch(Ya(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return id||!!ed(td,Ka(t))}catch(t){return!0}};od.sham=!0;var rd=!Ja||Xa((function(){var t;return nd(nd.call)||!nd(Object)||!nd((function(){t=!0}))||t}))?od:nd,sd=ga,ad=rd,dd=Ao,ld=Hr("species"),cd=Array,hd=function(t){var e;return sd(t)&&(e=t.constructor,(ad(e)&&(e===cd||sd(e.prototype))||dd(e)&&null===(e=e[ld]))&&(e=void 0)),void 0===e?cd:e},ud=function(t,e){return new(hd(t))(0===e?0:e)},pd=Mn,fd=Uo,md=Hr("species"),vd=function(t){return fd>=51||!pd((function(){var e=[];return(e.constructor={})[md]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gd=na,yd=Mn,bd=ga,xd=Ao,_d=kr,wd=Ca,Ed=Ia,kd=Da,Od=ud,Cd=vd,Td=Uo,Id=Hr("isConcatSpreadable"),Sd=Td>=51||!yd((function(){var t=[];return t[Id]=!1,t.concat()[0]!==t})),Ad=function(t){if(!xd(t))return!1;var e=t[Id];return void 0!==e?!!e:bd(t)};gd({target:"Array",proto:!0,arity:1,forced:!Sd||!Cd("concat")},{concat:function(t){var e,i,n,o,r,s=_d(this),a=Od(s,0),d=0;for(e=-1,n=arguments.length;ea;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},Wd={includes:$d(!0),indexOf:$d(!1)},Vd={},Ud=Tr,qd=To,Xd=Wd.indexOf,Gd=Vd,Yd=Un([].push),Kd=function(t,e){var i,n=qd(t),o=0,r=[];for(i in n)!Ud(Gd,i)&&Ud(n,i)&&Yd(r,i);for(;e.length>o;)Ud(n,i=e[o++])&&(~Xd(r,i)||Yd(r,i));return r},Zd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qd=Kd,Jd=Zd,tl=Object.keys||function(t){return Qd(t,Jd)},el=oo,il=Ts,nl=Cs,ol=Rs,rl=To,sl=tl;Md.f=el&&!il?Object.defineProperties:function(t,e){ol(t);for(var i,n=rl(e),o=sl(e),r=o.length,s=0;r>s;)nl.f(t,i=o[s++],n[i]);return t};var al,dl=No("document","documentElement"),ll=Dr,cl=fr("keys"),hl=function(t){return cl[t]||(cl[t]=ll(t))},ul=Rs,pl=Md,fl=Zd,ml=Vd,vl=dl,gl=es,yl="prototype",bl="script",xl=hl("IE_PROTO"),_l=function(){},wl=function(t){return"<"+bl+">"+t+""+bl+">"},El=function(t){t.write(wl("")),t.close();var e=t.parentWindow.Object;return t=null,e},kl=function(){try{al=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;kl="undefined"!=typeof document?document.domain&&al?El(al):(e=gl("iframe"),i="java"+bl+":",e.style.display="none",vl.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(wl("document.F=Object")),t.close(),t.F):El(al);for(var n=fl.length;n--;)delete kl[yl][fl[n]];return kl()};ml[xl]=!0;var Ol=Object.create||function(t,e){var i;return null!==t?(_l[yl]=ul(t),i=new _l,_l[yl]=null,i[xl]=t):i=kl(),void 0===e?i:pl.f(i,e)},Cl={},Tl=Kd,Il=Zd.concat("length","prototype");Cl.f=Object.getOwnPropertyNames||function(t){return Tl(t,Il)};var Sl={},Al=Bd,Rl=Ca,Dl=Da,Pl=Array,Ml=Math.max,Fl=function(t,e,i){for(var n=Rl(t),o=Al(e,n),r=Al(void 0===i?n:i,n),s=Pl(Ml(r-o,0)),a=0;oy;y++)if((a||y in m)&&(p=v(u=m[y],y,f),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return u;case 6:return y;case 2:Lc(x,u)}else switch(t){case 4:return!1;case 7:Lc(x,u)}return r?-1:n||o?o:x}},zc={forEach:Bc(0),map:Bc(1),filter:Bc(2),some:Bc(3),every:Bc(4),find:Bc(5),findIndex:Bc(6),filterReject:Bc(7)},jc=na,Hc=Pn,$c=ao,Wc=Un,Vc=oo,Uc=Go,qc=Mn,Xc=Tr,Gc=Lo,Yc=Rs,Kc=To,Zc=Zr,Qc=Pd,Jc=mo,th=Ol,eh=tl,ih=Cl,nh=Sl,oh=Hl,rh=no,sh=Cs,ah=Md,dh=lo,lh=Wl,ch=Ul,hh=fr,uh=Vd,ph=Dr,fh=Hr,mh=ql,vh=ec,gh=sc,yh=mc,bh=Rc,xh=zc.forEach,_h=hl("hidden"),wh="Symbol",Eh="prototype",kh=bh.set,Oh=bh.getterFor(wh),Ch=Object[Eh],Th=Hc.Symbol,Ih=Th&&Th[Eh],Sh=Hc.TypeError,Ah=Hc.QObject,Rh=rh.f,Dh=sh.f,Ph=nh.f,Mh=dh.f,Fh=Wc([].push),Nh=hh("symbols"),Lh=hh("op-symbols"),Bh=hh("wks"),zh=!Ah||!Ah[Eh]||!Ah[Eh].findChild,jh=Vc&&qc((function(){return 7!=th(Dh({},"a",{get:function(){return Dh(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Rh(Ch,e);n&&delete Ch[e],Dh(t,e,i),n&&t!==Ch&&Dh(Ch,e,n)}:Dh,Hh=function(t,e){var i=Nh[t]=th(Ih);return kh(i,{type:wh,tag:t,description:e}),Vc||(i.description=e),i},$h=function(t,e,i){t===Ch&&$h(Lh,e,i),Yc(t);var n=Zc(e);return Yc(i),Xc(Nh,n)?(i.enumerable?(Xc(t,_h)&&t[_h][n]&&(t[_h][n]=!1),i=th(i,{enumerable:Jc(0,!1)})):(Xc(t,_h)||Dh(t,_h,Jc(1,{})),t[_h][n]=!0),jh(t,n,i)):Dh(t,n,i)},Wh=function(t,e){Yc(t);var i=Kc(e),n=eh(i).concat(Xh(i));return xh(n,(function(e){Vc&&!$c(Vh,i,e)||$h(t,e,i[e])})),t},Vh=function(t){var e=Zc(t),i=$c(Mh,this,e);return!(this===Ch&&Xc(Nh,e)&&!Xc(Lh,e))&&(!(i||!Xc(this,e)||!Xc(Nh,e)||Xc(this,_h)&&this[_h][e])||i)},Uh=function(t,e){var i=Kc(t),n=Zc(e);if(i!==Ch||!Xc(Nh,n)||Xc(Lh,n)){var o=Rh(i,n);return!o||!Xc(Nh,n)||Xc(i,_h)&&i[_h][n]||(o.enumerable=!0),o}},qh=function(t){var e=Ph(Kc(t)),i=[];return xh(e,(function(t){Xc(Nh,t)||Xc(uh,t)||Fh(i,t)})),i},Xh=function(t){var e=t===Ch,i=Ph(e?Lh:Kc(t)),n=[];return xh(i,(function(t){!Xc(Nh,t)||e&&!Xc(Ch,t)||Fh(n,Nh[t])})),n};Uc||(Th=function(){if(Gc(Ih,this))throw Sh("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Qc(arguments[0]):void 0,e=ph(t),i=function(t){this===Ch&&$c(i,Lh,t),Xc(this,_h)&&Xc(this[_h],e)&&(this[_h][e]=!1),jh(this,e,Jc(1,t))};return Vc&&zh&&jh(Ch,e,{configurable:!0,set:i}),Hh(e,t)},lh(Ih=Th[Eh],"toString",(function(){return Oh(this).tag})),lh(Th,"withoutSetter",(function(t){return Hh(ph(t),t)})),dh.f=Vh,sh.f=$h,ah.f=Wh,rh.f=Uh,ih.f=nh.f=qh,oh.f=Xh,mh.f=function(t){return Hh(fh(t),t)},Vc&&ch(Ih,"description",{configurable:!0,get:function(){return Oh(this).description}})),jc({global:!0,constructor:!0,wrap:!0,forced:!Uc,sham:!Uc},{Symbol:Th}),xh(eh(Bh),(function(t){vh(t)})),jc({target:wh,stat:!0,forced:!Uc},{useSetter:function(){zh=!0},useSimple:function(){zh=!1}}),jc({target:"Object",stat:!0,forced:!Uc,sham:!Vc},{create:function(t,e){return void 0===e?th(t):Wh(th(t),e)},defineProperty:$h,defineProperties:Wh,getOwnPropertyDescriptor:Uh}),jc({target:"Object",stat:!0,forced:!Uc},{getOwnPropertyNames:qh}),gh(),yh(Th,wh),uh[_h]=!0;var Gh=Go&&!!Symbol.for&&!!Symbol.keyFor,Yh=na,Kh=No,Zh=Tr,Qh=Pd,Jh=fr,tu=Gh,eu=Jh("string-to-symbol-registry"),iu=Jh("symbol-to-string-registry");Yh({target:"Symbol",stat:!0,forced:!tu},{for:function(t){var e=Qh(t);if(Zh(eu,e))return eu[e];var i=Kh("Symbol")(e);return eu[e]=i,iu[i]=e,i}});var nu=na,ou=Tr,ru=tr,su=ir,au=Gh,du=fr("symbol-to-string-registry");nu({target:"Symbol",stat:!0,forced:!au},{keyFor:function(t){if(!ru(t))throw TypeError(su(t)+" is not a symbol");if(ou(du,t))return du[t]}});var lu=Un([].slice),cu=ga,hu=io,uu=Yn,pu=Pd,fu=Un([].push),mu=na,vu=No,gu=jn,yu=ao,bu=Un,xu=Mn,_u=io,wu=tr,Eu=lu,ku=function(t){if(hu(t))return t;if(cu(t)){for(var e=t.length,i=[],n=0;n=e.length?(t.target=void 0,nf(void 0,!0)):nf("keys"==i?n:"values"==i?e[n]:[n,e[n]],!1)}),"values"),Jp.Arguments=Jp.Array;var af={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},df=Pn,lf=Ha,cf=Us,hf=Yu,uf=Hr("toStringTag");for(var pf in af){var ff=df[pf],mf=ff&&ff.prototype;mf&&lf(mf)!==uf&&cf(mf,uf,pf),hf[pf]=hf.Array}var vf=Gu;ec("dispose");var gf=vf;ec("asyncDispose");var yf=na,bf=Un,xf=No("Symbol"),_f=xf.keyFor,wf=bf(xf.prototype.valueOf);yf({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==_f(wf(t))}catch(t){return!1}}});for(var Ef=na,kf=fr,Of=No,Cf=Un,Tf=tr,If=Hr,Sf=Of("Symbol"),Af=Sf.isWellKnown,Rf=Of("Object","getOwnPropertyNames"),Df=Cf(Sf.prototype.valueOf),Pf=kf("wks"),Mf=0,Ff=Rf(Sf),Nf=Ff.length;Mf=a?t?"":void 0:(n=Yf(r,s))<55296||n>56319||s+1===a||(o=Yf(r,s+1))<56320||o>57343?t?Gf(r,s):n:t?Kf(r,s,s+2):o-56320+(n-55296<<10)+65536}},Qf={codeAt:Zf(!1),charAt:Zf(!0)}.charAt,Jf=Pd,tm=Rc,em=Kp,im=Zp,nm="String Iterator",om=tm.set,rm=tm.getterFor(nm);em(String,"String",(function(t){om(this,{type:nm,string:Jf(t),index:0})}),(function(){var t,e=rm(this),i=e.string,n=e.index;return n>=i.length?im(void 0,!0):(t=Qf(i,n),e.index+=t.length,im(t,!1))}));var sm=ql.f("iterator"),am=sm;!function(t){t.exports=am}(Wf),function(t){t.exports=$f}(Hf);var dm=On(jf);function lm(t){return lm="function"==typeof zf&&"symbol"==typeof dm?function(t){return typeof t}:function(t){return t&&"function"==typeof zf&&t.constructor===zf&&t!==zf.prototype?"symbol":typeof t},lm(t)}var cm={},hm={get exports(){return cm},set exports(t){cm=t}},um={},pm={get exports(){return um},set exports(t){um=t}},fm=ql.f("toPrimitive");!function(t){t.exports=fm}(pm),function(t){t.exports=um}(hm);var mm=On(cm);function vm(t){var e=function(t,e){if("object"!==lm(t)||null===t)return t;var i=t[mm];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==lm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===lm(e)?e:String(e)}function gm(t,e){for(var i=0;i=0:a>d;d+=l)d in s&&(o=i(o,s[d],d,r));return o}},Zm={left:Km(!1),right:Km(!0)},Qm=Mn,Jm=function(t,e){var i=[][t];return!!i&&Qm((function(){i.call(null,e||function(){return 1},1)}))},tv="undefined"!=typeof process&&"process"==Yn(process),ev=Zm.left;na({target:"Array",proto:!0,forced:!tv&&Uo>79&&Uo<83||!Jm("reduce")},{reduce:function(t){var e=arguments.length;return ev(this,t,e,e>1?arguments[1]:void 0)}});var iv=Fm("Array").reduce,nv=Lo,ov=iv,rv=Array.prototype,sv=function(t){var e=t.reduce;return t===rv||nv(rv,t)&&e===rv.reduce?ov:e},av=sv;!function(t){t.exports=av}(Vm);var dv=On(Wm),lv={},cv={get exports(){return lv},set exports(t){lv=t}},hv=zc.filter;na({target:"Array",proto:!0,forced:!vd("filter")},{filter:function(t){return hv(this,t,arguments.length>1?arguments[1]:void 0)}});var uv=Fm("Array").filter,pv=Lo,fv=uv,mv=Array.prototype,vv=function(t){var e=t.filter;return t===mv||pv(mv,t)&&e===mv.filter?fv:e},gv=vv;!function(t){t.exports=gv}(cv);var yv=On(lv),bv={},xv={get exports(){return bv},set exports(t){bv=t}},_v=zc.map;na({target:"Array",proto:!0,forced:!vd("map")},{map:function(t){return _v(this,t,arguments.length>1?arguments[1]:void 0)}});var wv=Fm("Array").map,Ev=Lo,kv=wv,Ov=Array.prototype,Cv=function(t){var e=t.map;return t===Ov||Ev(Ov,t)&&e===Ov.map?kv:e},Tv=Cv;!function(t){t.exports=Tv}(xv);var Iv=On(bv),Sv={},Av={get exports(){return Sv},set exports(t){Sv=t}},Rv=ga,Dv=Ca,Pv=Ia,Mv=Os,Fv=function(t,e,i,n,o,r,s,a){for(var d,l,c=o,h=0,u=!!s&&Mv(s,a);h0&&Rv(d)?(l=Dv(d),c=Fv(t,e,d,l,c,r-1)-1):(Pv(c+1),t[c]=d),c++),h++;return c},Nv=Fv,Lv=sr,Bv=kr,zv=Ca,jv=ud;na({target:"Array",proto:!0},{flatMap:function(t){var e,i=Bv(this),n=zv(i);return Lv(t),(e=jv(i,0)).length=Nv(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var Hv=Fm("Array").flatMap,$v=Lo,Wv=Hv,Vv=Array.prototype,Uv=function(t){var e=t.flatMap;return t===Vv||$v(Vv,t)&&e===Vv.flatMap?Wv:e},qv=Uv;!function(t){t.exports=qv}(Av);var Xv={},Gv={get exports(){return Xv},set exports(t){Xv=t}},Yv=ao,Kv=Rs,Zv=lr,Qv=function(t,e,i){var n,o;Kv(t);try{if(!(n=Zv(t,"return"))){if("throw"===e)throw i;return i}n=Yv(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw i;if(o)throw n;return Kv(n),i},Jv=Rs,tg=Qv,eg=Yu,ig=Hr("iterator"),ng=Array.prototype,og=function(t){return void 0!==t&&(eg.Array===t||ng[ig]===t)},rg=Ha,sg=lr,ag=_o,dg=Yu,lg=Hr("iterator"),cg=function(t){if(!ag(t))return sg(t,lg)||sg(t,"@@iterator")||dg[rg(t)]},hg=ao,ug=sr,pg=Rs,fg=ir,mg=cg,vg=TypeError,gg=function(t,e){var i=arguments.length<2?mg(t):e;if(ug(i))return pg(hg(i,t));throw vg(fg(t)+" is not iterable")},yg=Os,bg=ao,xg=kr,_g=function(t,e,i,n){try{return n?e(Jv(i)[0],i[1]):e(i)}catch(e){tg(t,"throw",e)}},wg=og,Eg=rd,kg=Ca,Og=Da,Cg=gg,Tg=cg,Ig=Array,Sg=Hr("iterator"),Ag=!1;try{var Rg=0,Dg={next:function(){return{done:!!Rg++}},return:function(){Ag=!0}};Dg[Sg]=function(){return this},Array.from(Dg,(function(){throw 2}))}catch(t){}var Pg=function(t,e){if(!e&&!Ag)return!1;var i=!1;try{var n={};n[Sg]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i},Mg=function(t){var e=xg(t),i=Eg(this),n=arguments.length,o=n>1?arguments[1]:void 0,r=void 0!==o;r&&(o=yg(o,n>2?arguments[2]:void 0));var s,a,d,l,c,h,u=Tg(e),p=0;if(!u||this===Ig&&wg(u))for(s=kg(e),a=i?new this(s):Ig(s);s>p;p++)h=r?o(e[p],p):e[p],Og(a,p,h);else for(c=(l=Cg(e,u)).next,a=i?new this:[];!(d=bg(c,l)).done;p++)h=r?_g(l,o,[d.value,p],!0):d.value,Og(a,p,h);return a.length=p,a};na({target:"Array",stat:!0,forced:!Pg((function(t){Array.from(t)}))},{from:Mg});var Fg=Ro.Array.from;!function(t){t.exports=Fg}(Gv);var Ng=On(Xv),Lg={},Bg={get exports(){return Lg},set exports(t){Lg=t}},zg={},jg={get exports(){return zg},set exports(t){zg=t}},Hg=cg;!function(t){t.exports=Hg}(jg),function(t){t.exports=zg}(Bg);var $g=On(Lg),Wg={},Vg={get exports(){return Wg},set exports(t){Wg=t}},Ug=Ro.Object.getOwnPropertySymbols;!function(t){t.exports=Ug}(Vg);var qg=On(Wg),Xg={},Gg={get exports(){return Xg},set exports(t){Xg=t}},Yg={},Kg={get exports(){return Yg},set exports(t){Yg=t}},Zg=na,Qg=Mn,Jg=To,ty=no.f,ey=oo;Zg({target:"Object",stat:!0,forced:!ey||Qg((function(){ty(1)})),sham:!ey},{getOwnPropertyDescriptor:function(t,e){return ty(Jg(t),e)}});var iy=Ro.Object,ny=Kg.exports=function(t,e){return iy.getOwnPropertyDescriptor(t,e)};iy.getOwnPropertyDescriptor.sham&&(ny.sham=!0);var oy=Yg;!function(t){t.exports=oy}(Gg);var ry=On(Xg),sy={},ay={get exports(){return sy},set exports(t){sy=t}},dy=No,ly=Cl,cy=Hl,hy=Rs,uy=Un([].concat),py=dy("Reflect","ownKeys")||function(t){var e=ly.f(hy(t)),i=cy.f;return i?uy(e,i(t)):e},fy=py,my=To,vy=no,gy=Da;na({target:"Object",stat:!0,sham:!oo},{getOwnPropertyDescriptors:function(t){for(var e,i,n=my(t),o=vy.f,r=fy(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&gy(s,e,i);return s}});var yy=Ro.Object.getOwnPropertyDescriptors;!function(t){t.exports=yy}(ay);var by=On(sy),xy={},_y={get exports(){return xy},set exports(t){xy=t}},wy={},Ey={get exports(){return wy},set exports(t){wy=t}},ky=na,Oy=oo,Cy=Md.f;ky({target:"Object",stat:!0,forced:Object.defineProperties!==Cy,sham:!Oy},{defineProperties:Cy});var Ty=Ro.Object,Iy=Ey.exports=function(t,e){return Ty.defineProperties(t,e)};Ty.defineProperties.sham&&(Iy.sham=!0);var Sy=wy;!function(t){t.exports=Sy}(_y);var Ay=On(xy),Ry={},Dy={get exports(){return Ry},set exports(t){Ry=t}};!function(t){t.exports=la}(Dy);var Py=On(Ry),My={},Fy={get exports(){return My},set exports(t){My=t}},Ny={},Ly={get exports(){return Ny},set exports(t){Ny=t}};na({target:"Array",stat:!0},{isArray:ga});var By=Ro.Array.isArray,zy=By;!function(t){t.exports=zy}(Ly),function(t){t.exports=Ny}(Fy);var jy=On(My);var Hy={},$y={get exports(){return Hy},set exports(t){Hy=t}},Wy={},Vy={get exports(){return Wy},set exports(t){Wy=t}},Uy=na,qy=ga,Xy=rd,Gy=Ao,Yy=Bd,Ky=Ca,Zy=To,Qy=Da,Jy=Hr,tb=lu,eb=vd("slice"),ib=Jy("species"),nb=Array,ob=Math.max;Uy({target:"Array",proto:!0,forced:!eb},{slice:function(t,e){var i,n,o,r=Zy(this),s=Ky(r),a=Yy(t,s),d=Yy(void 0===e?s:e,s);if(qy(r)&&(i=r.constructor,(Xy(i)&&(i===nb||qy(i.prototype))||Gy(i)&&null===(i=i[ib]))&&(i=void 0),i===nb||void 0===i))return tb(r,a,d);for(n=new(void 0===i?nb:i)(ob(d-a,0)),o=0;at.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?arguments[1]:void 0)};na({target:"Array",proto:!0,forced:[].forEach!=sx},{forEach:sx});var ax=Fm("Array").forEach,dx=Ha,lx=Tr,cx=Lo,hx=ax,ux=Array.prototype,px={DOMTokenList:!0,NodeList:!0},fx=function(t){var e=t.forEach;return t===ux||cx(ux,t)&&e===ux.forEach||lx(px,dx(t))?hx:e};!function(t){t.exports=fx}(ox);var mx=On(nx),vx={},gx={get exports(){return vx},set exports(t){vx=t}},yx=na,bx=ga,xx=Un([].reverse),_x=[1,2];yx({target:"Array",proto:!0,forced:String(_x)===String(_x.reverse())},{reverse:function(){return bx(this)&&(this.length=this.length),xx(this)}});var wx=Fm("Array").reverse,Ex=Lo,kx=wx,Ox=Array.prototype,Cx=function(t){var e=t.reverse;return t===Ox||Ex(Ox,t)&&e===Ox.reverse?kx:e},Tx=Cx;!function(t){t.exports=Tx}(gx);var Ix=On(vx),Sx={},Ax={get exports(){return Sx},set exports(t){Sx=t}},Rx=oo,Dx=ga,Px=TypeError,Mx=Object.getOwnPropertyDescriptor,Fx=Rx&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Nx=ir,Lx=TypeError,Bx=function(t,e){if(!delete t[e])throw Lx("Cannot delete property "+Nx(e)+" of "+Nx(t))},zx=na,jx=kr,Hx=Bd,$x=wa,Wx=Ca,Vx=Fx?function(t,e){if(Dx(t)&&!Mx(t,"length").writable)throw Px("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Ux=Ia,qx=ud,Xx=Da,Gx=Bx,Yx=vd("splice"),Kx=Math.max,Zx=Math.min;zx({target:"Array",proto:!0,forced:!Yx},{splice:function(t,e){var i,n,o,r,s,a,d=jx(this),l=Wx(d),c=Hx(t,l),h=arguments.length;for(0===h?i=n=0:1===h?(i=0,n=l-c):(i=h-2,n=Zx(Kx($x(e),0),l-c)),Ux(l+i-n),o=qx(d,n),r=0;rl-n+i;r--)Gx(d,r-1)}else if(i>n)for(r=l-n;r>c;r--)a=r+i-1,(s=r+n-1)in d?d[a]=d[s]:Gx(d,a);for(r=0;ro;)for(var a,d=m_(arguments[o++]),l=r?y_(h_(d),r(d)):h_(d),c=l.length,h=0;c>h;)a=l[h++],a_&&!l_(s,d,a)||(i[a]=d[a]);return i}:v_,x_=b_;na({target:"Object",stat:!0,arity:2,forced:Object.assign!==x_},{assign:x_});var __=Ro.Object.assign;!function(t){t.exports=__}(s_);var w_=On(r_),E_={},k_={get exports(){return E_},set exports(t){E_=t}},O_=Wd.includes;na({target:"Array",proto:!0,forced:Mn((function(){return!Array(1).includes()}))},{includes:function(t){return O_(this,t,arguments.length>1?arguments[1]:void 0)}});var C_=Fm("Array").includes,T_=Ao,I_=Yn,S_=Hr("match"),A_=function(t){var e;return T_(t)&&(void 0!==(e=t[S_])?!!e:"RegExp"==I_(t))},R_=TypeError,D_=Hr("match"),P_=na,M_=function(t){if(A_(t))throw R_("The method doesn't accept regular expressions");return t},F_=ko,N_=Pd,L_=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[D_]=!1,"/./"[t](e)}catch(t){}}return!1},B_=Un("".indexOf);P_({target:"String",proto:!0,forced:!L_("includes")},{includes:function(t){return!!~B_(N_(F_(this)),N_(M_(t)),arguments.length>1?arguments[1]:void 0)}});var z_=Fm("String").includes,j_=Lo,H_=C_,$_=z_,W_=Array.prototype,V_=String.prototype,U_=function(t){var e=t.includes;return t===W_||j_(W_,t)&&e===W_.includes?H_:"string"==typeof t||t===V_||j_(V_,t)&&e===V_.includes?$_:e},q_=U_;!function(t){t.exports=q_}(k_);var X_={},G_={get exports(){return X_},set exports(t){X_=t}},Y_=kr,K_=cp,Z_=ip;na({target:"Object",stat:!0,forced:Mn((function(){K_(1)})),sham:!Z_},{getPrototypeOf:function(t){return K_(Y_(t))}});var Q_=Ro.Object.getPrototypeOf;!function(t){t.exports=Q_}(G_);var J_={},tw={get exports(){return J_},set exports(t){J_=t}},ew=oo,iw=Un,nw=tl,ow=To,rw=iw(lo.f),sw=iw([].push),aw=function(t){return function(e){for(var i,n=ow(e),o=nw(n),r=o.length,s=0,a=[];r>s;)i=o[s++],ew&&!rw(n,i)||sw(a,t?[i,n[i]]:n[i]);return a}},dw={entries:aw(!0),values:aw(!1)}.values;na({target:"Object",stat:!0},{values:function(t){return dw(t)}});var lw=Ro.Object.values;!function(t){t.exports=lw}(tw);var cw={},hw={get exports(){return cw},set exports(t){cw=t}},uw="\t\n\v\f\r \u2028\u2029\ufeff",pw=ko,fw=Pd,mw=uw,vw=Un("".replace),gw=RegExp("^["+mw+"]+"),yw=RegExp("(^|[^"+mw+"])["+mw+"]+$"),bw=function(t){return function(e){var i=fw(pw(e));return 1&t&&(i=vw(i,gw,"")),2&t&&(i=vw(i,yw,"$1")),i}},xw={start:bw(1),end:bw(2),trim:bw(3)},_w=Pn,ww=Mn,Ew=Un,kw=Pd,Ow=xw.trim,Cw=uw,Tw=_w.parseInt,Iw=_w.Symbol,Sw=Iw&&Iw.iterator,Aw=/^[+-]?0x/i,Rw=Ew(Aw.exec),Dw=8!==Tw(Cw+"08")||22!==Tw(Cw+"0x16")||Sw&&!ww((function(){Tw(Object(Sw))}))?function(t,e){var i=Ow(kw(t));return Tw(i,e>>>0||(Rw(Aw,i)?16:10))}:Tw;na({global:!0,forced:parseInt!=Dw},{parseInt:Dw});var Pw=Ro.parseInt;!function(t){t.exports=Pw}(hw);var Mw={},Fw={get exports(){return Mw},set exports(t){Mw=t}},Nw=na,Lw=Wd.indexOf,Bw=Jm,zw=Qn([].indexOf),jw=!!zw&&1/zw([1],1,-0)<0;Nw({target:"Array",proto:!0,forced:jw||!Bw("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return jw?zw(this,t,e)||0:Lw(this,t,e)}});var Hw=Fm("Array").indexOf,$w=Lo,Ww=Hw,Vw=Array.prototype,Uw=function(t){var e=t.indexOf;return t===Vw||$w(Vw,t)&&e===Vw.indexOf?Ww:e},qw=Uw;!function(t){t.exports=qw}(Fw);var Xw={},Gw={get exports(){return Xw},set exports(t){Xw=t}},Yw=ep.PROPER,Kw=Mn,Zw=uw,Qw=xw.trim;na({target:"String",proto:!0,forced:function(t){return Kw((function(){return!!Zw[t]()||"
"!=="
"[t]()||Yw&&Zw[t].name!==t}))}("trim")},{trim:function(){return Qw(this)}});var Jw=Fm("String").trim,tE=Lo,eE=Jw,iE=String.prototype,nE=function(t){var e=t.trim;return"string"==typeof t||t===iE||tE(iE,t)&&e===iE.trim?eE:e},oE=nE;!function(t){t.exports=oE}(Gw);var rE={},sE={get exports(){return rE},set exports(t){rE=t}};na({target:"Object",stat:!0,sham:!oo},{create:Ol});var aE=Ro.Object,dE=function(t,e){return aE.create(t,e)},lE=dE;!function(t){t.exports=lE}(sE);var cE=On(rE),hE={},uE={get exports(){return hE},set exports(t){hE=t}},pE=Ro,fE=jn;pE.JSON||(pE.JSON={stringify:JSON.stringify});var mE=function(t,e,i){return fE(pE.JSON.stringify,null,arguments)},vE=mE;!function(t){t.exports=vE}(uE);var gE=On(hE),yE={},bE={get exports(){return yE},set exports(t){yE=t}},xE="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,_E=TypeError,wE=function(t,e){if(ti,s=OE(n)?n:AE(n),a=r?IE(arguments,i):[],d=r?function(){kE(s,this,a)}:s;return e?t(d,o):t(d)}:t},PE=na,ME=Pn,FE=DE(ME.setInterval,!0);PE({global:!0,bind:!0,forced:ME.setInterval!==FE},{setInterval:FE});var NE=na,LE=Pn,BE=DE(LE.setTimeout,!0);NE({global:!0,bind:!0,forced:LE.setTimeout!==BE},{setTimeout:BE});var zE=Ro.setTimeout;!function(t){t.exports=zE}(bE);var jE=On(yE),HE={},$E={get exports(){return HE},set exports(t){HE=t}},WE=kr,VE=Bd,UE=Ca,qE=function(t){for(var e=WE(this),i=UE(e),n=arguments.length,o=VE(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:VE(r,i);s>o;)e[o++]=t;return e};na({target:"Array",proto:!0},{fill:qE});var XE=Fm("Array").fill,GE=Lo,YE=XE,KE=Array.prototype,ZE=function(t){var e=t.fill;return t===KE||GE(KE,t)&&e===KE.fill?YE:e},QE=ZE;!function(t){t.exports=QE}($E);var JE={},tk={get exports(){return JE},set exports(t){JE=t}};!function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o0&&ko[0]<4?1:+(ko[0]+ko[1])),!Oo&&Zo&&(!(ko=Zo.match(/Edge\/(\d+)/))||ko[1]>=74)&&(ko=Zo.match(/Chrome\/(\d+)/))&&(Oo=+ko[1]);var ir=Oo,nr=ir,or=Vn,rr=Wn.String,sr=!!Object.getOwnPropertySymbols&&!or((function(){var t=Symbol("symbol detection");return!rr(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nr&&nr<41})),ar=sr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dr=Xo,lr=fo,cr=Yo,hr=Object,ur=ar?function(t){return"symbol"==typeof t}:function(t){var e=dr("Symbol");return lr(e)&&cr(e.prototype,hr(t))},pr=String,fr=function(t){try{return pr(t)}catch(t){return"Object"}},mr=fo,vr=fr,gr=TypeError,yr=function(t){if(mr(t))return t;throw new gr(vr(t)+" is not a function")},br=yr,xr=Po,_r=function(t,e){var i=t[e];return xr(i)?void 0:br(i)},wr=bo,Er=fo,kr=Ho,Or=TypeError,Cr={exports:{}},Sr=Wn,Tr=Object.defineProperty,Ir=function(t,e){try{Tr(Sr,t,{value:e,configurable:!0,writable:!0})}catch(i){Sr[t]=e}return e},Ar="__core-js_shared__",Rr=Wn[Ar]||Ir(Ar,{}),Pr=Rr;(Cr.exports=function(t,e){return Pr[t]||(Pr[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Dr=Cr.exports,Mr=Fo,Fr=Object,Nr=function(t){return Fr(Mr(t))},Br=Nr,Lr=io({}.hasOwnProperty),zr=Object.hasOwn||function(t,e){return Lr(Br(t),e)},jr=io,Hr=0,$r=Math.random(),Ur=jr(1..toString),Wr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ur(++Hr+$r,36)},Vr=Dr,qr=zr,Xr=Wr,Yr=sr,Gr=ar,Kr=Wn.Symbol,Zr=Vr("wks"),Qr=Gr?Kr.for||Kr:Kr&&Kr.withoutSetter||Xr,Jr=function(t){return qr(Zr,t)||(Zr[t]=Yr&&qr(Kr,t)?Kr[t]:Qr("Symbol."+t)),Zr[t]},ts=bo,es=Ho,is=ur,ns=_r,os=function(t,e){var i,n;if("string"===e&&Er(i=t.toString)&&!kr(n=wr(i,t)))return n;if(Er(i=t.valueOf)&&!kr(n=wr(i,t)))return n;if("string"!==e&&Er(i=t.toString)&&!kr(n=wr(i,t)))return n;throw new Or("Can't convert object to primitive value")},rs=TypeError,ss=Jr("toPrimitive"),as=function(t,e){if(!es(t)||is(t))return t;var i,n=ns(t,ss);if(n){if(void 0===e&&(e="default"),i=ts(n,t,e),!es(i)||is(i))return i;throw new rs("Can't convert object to primitive value")}return void 0===e&&(e="number"),os(t,e)},ds=ur,ls=function(t){var e=as(t,"string");return ds(e)?e:e+""},cs=Ho,hs=Wn.document,us=cs(hs)&&cs(hs.createElement),ps=function(t){return us?hs.createElement(t):{}},fs=ps,ms=!vo&&!Vn((function(){return 7!==Object.defineProperty(fs("div"),"a",{get:function(){return 7}}).a})),vs=vo,gs=bo,ys=xo,bs=Co,xs=Lo,_s=ls,ws=zr,Es=ms,ks=Object.getOwnPropertyDescriptor;mo.f=vs?ks:function(t,e){if(t=xs(t),e=_s(e),Es)try{return ks(t,e)}catch(t){}if(ws(t,e))return bs(!gs(ys.f,t,e),t[e])};var Os=Vn,Cs=fo,Ss=/#|\.prototype\./,Ts=function(t,e){var i=As[Is(t)];return i===Ps||i!==Rs&&(Cs(e)?Os(e):!!e)},Is=Ts.normalize=function(t){return String(t).replace(Ss,".").toLowerCase()},As=Ts.data={},Rs=Ts.NATIVE="N",Ps=Ts.POLYFILL="P",Ds=Ts,Ms=yr,Fs=qn,Ns=co(co.bind),Bs=function(t,e){return Ms(t),void 0===e?t:Fs?Ns(t,e):function(){return t.apply(e,arguments)}},Ls={},zs=vo&&Vn((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),js=Ho,Hs=String,$s=TypeError,Us=function(t){if(js(t))return t;throw new $s(Hs(t)+" is not an object")},Ws=vo,Vs=ms,qs=zs,Xs=Us,Ys=ls,Gs=TypeError,Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Qs="enumerable",Js="configurable",ta="writable";Ls.f=Ws?qs?function(t,e,i){if(Xs(t),e=Ys(e),Xs(i),"function"==typeof t&&"prototype"===e&&"value"in i&&ta in i&&!i[ta]){var n=Zs(t,e);n&&n[ta]&&(t[e]=i.value,i={configurable:Js in i?i[Js]:n[Js],enumerable:Qs in i?i[Qs]:n[Qs],writable:!1})}return Ks(t,e,i)}:Ks:function(t,e,i){if(Xs(t),e=Ys(e),Xs(i),Vs)try{return Ks(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new Gs("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var ea=Ls,ia=Co,na=vo?function(t,e,i){return ea.f(t,e,ia(1,i))}:function(t,e,i){return t[e]=i,t},oa=Wn,ra=Zn,sa=co,aa=fo,da=mo.f,la=Ds,ca=$o,ha=Bs,ua=na,pa=zr,fa=function(t){var e=function(i,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,o)}return ra(t,this,arguments)};return e.prototype=t.prototype,e},ma=function(t,e){var i,n,o,r,s,a,d,l,c,h=t.target,u=t.global,p=t.stat,f=t.proto,m=u?oa:p?oa[h]:(oa[h]||{}).prototype,v=u?ca:ca[h]||ua(ca,h,{})[h],g=v.prototype;for(r in e)n=!(i=la(u?r:h+(p?".":"#")+r,t.forced))&&m&&pa(m,r),a=v[r],n&&(d=t.dontCallGetSet?(c=da(m,r))&&c.value:m[r]),s=n&&d?d:e[r],n&&typeof a==typeof s||(l=t.bind&&n?ha(s,oa):t.wrap&&n?fa(s):f&&aa(s)?sa(s):s,(t.sham||s&&s.sham||a&&a.sham)&&ua(l,"sham",!0),ua(v,r,l),f&&(pa(ca,o=h+"Prototype")||ua(ca,o,{}),ua(ca[o],r,s),t.real&&g&&(i||!g[r])&&ua(g,r,s)))},va=ma,ga=vo,ya=Ls.f;va({target:"Object",stat:!0,forced:Object.defineProperty!==ya,sham:!ga},{defineProperty:ya});var ba=$o.Object,xa=$n.exports=function(t,e,i){return ba.defineProperty(t,e,i)};ba.defineProperty.sham&&(xa.sham=!0);var _a=$n.exports,wa=_a,Ea=Hn(wa),ka=so,Oa=Array.isArray||function(t){return"Array"===ka(t)},Ca=Math.ceil,Sa=Math.floor,Ta=Math.trunc||function(t){var e=+t;return(e>0?Sa:Ca)(e)},Ia=Ta,Aa=function(t){var e=+t;return e!=e||0===e?0:Ia(e)},Ra=Aa,Pa=Math.min,Da=function(t){return t>0?Pa(Ra(t),9007199254740991):0},Ma=function(t){return Da(t.length)},Fa=TypeError,Na=function(t){if(t>9007199254740991)throw Fa("Maximum allowed index exceeded");return t},Ba=ls,La=Ls,za=Co,ja=function(t,e,i){var n=Ba(e);n in t?La.f(t,n,za(0,i)):t[n]=i},Ha={};Ha[Jr("toStringTag")]="z";var $a="[object z]"===String(Ha),Ua=$a,Wa=fo,Va=so,qa=Jr("toStringTag"),Xa=Object,Ya="Arguments"===Va(function(){return arguments}()),Ga=Ua?Va:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Xa(t),qa))?i:Ya?Va(e):"Object"===(n=Va(e))&&Wa(e.callee)?"Arguments":n},Ka=fo,Za=Rr,Qa=io(Function.toString);Ka(Za.inspectSource)||(Za.inspectSource=function(t){return Qa(t)});var Ja=Za.inspectSource,td=io,ed=Vn,id=fo,nd=Ga,od=Ja,rd=function(){},sd=[],ad=Xo("Reflect","construct"),dd=/^\s*(?:class|function)\b/,ld=td(dd.exec),cd=!dd.test(rd),hd=function(t){if(!id(t))return!1;try{return ad(rd,sd,t),!0}catch(t){return!1}},ud=function(t){if(!id(t))return!1;switch(nd(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return cd||!!ld(dd,od(t))}catch(t){return!0}};ud.sham=!0;var pd=!ad||ed((function(){var t;return hd(hd.call)||!hd(Object)||!hd((function(){t=!0}))||t}))?ud:hd,fd=Oa,md=pd,vd=Ho,gd=Jr("species"),yd=Array,bd=function(t){var e;return fd(t)&&(e=t.constructor,(md(e)&&(e===yd||fd(e.prototype))||vd(e)&&null===(e=e[gd]))&&(e=void 0)),void 0===e?yd:e},xd=function(t,e){return new(bd(t))(0===e?0:e)},_d=Vn,wd=ir,Ed=Jr("species"),kd=function(t){return wd>=51||!_d((function(){var e=[];return(e.constructor={})[Ed]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Od=ma,Cd=Vn,Sd=Oa,Td=Ho,Id=Nr,Ad=Ma,Rd=Na,Pd=ja,Dd=xd,Md=kd,Fd=ir,Nd=Jr("isConcatSpreadable"),Bd=Fd>=51||!Cd((function(){var t=[];return t[Nd]=!1,t.concat()[0]!==t})),Ld=function(t){if(!Td(t))return!1;var e=t[Nd];return void 0!==e?!!e:Sd(t)};Od({target:"Array",proto:!0,arity:1,forced:!Bd||!Md("concat")},{concat:function(t){var e,i,n,o,r,s=Id(this),a=Dd(s,0),d=0;for(e=-1,n=arguments.length;ea;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},Zd={includes:Kd(!0),indexOf:Kd(!1)},Qd={},Jd=zr,tl=Lo,el=Zd.indexOf,il=Qd,nl=io([].push),ol=function(t,e){var i,n=tl(t),o=0,r=[];for(i in n)!Jd(il,i)&&Jd(n,i)&&nl(r,i);for(;e.length>o;)Jd(n,i=e[o++])&&(~el(r,i)||nl(r,i));return r},rl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sl=ol,al=rl,dl=Object.keys||function(t){return sl(t,al)},ll=vo,cl=zs,hl=Ls,ul=Us,pl=Lo,fl=dl;$d.f=ll&&!cl?Object.defineProperties:function(t,e){ul(t);for(var i,n=pl(e),o=fl(e),r=o.length,s=0;r>s;)hl.f(t,i=o[s++],n[i]);return t};var ml,vl=Xo("document","documentElement"),gl=Wr,yl=Dr("keys"),bl=function(t){return yl[t]||(yl[t]=gl(t))},xl=Us,_l=$d,wl=rl,El=Qd,kl=vl,Ol=ps,Cl="prototype",Sl="script",Tl=bl("IE_PROTO"),Il=function(){},Al=function(t){return"<"+Sl+">"+t+""+Sl+">"},Rl=function(t){t.write(Al("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pl=function(){try{ml=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;Pl="undefined"!=typeof document?document.domain&&ml?Rl(ml):(e=Ol("iframe"),i="java"+Sl+":",e.style.display="none",kl.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(Al("document.F=Object")),t.close(),t.F):Rl(ml);for(var n=wl.length;n--;)delete Pl[Cl][wl[n]];return Pl()};El[Tl]=!0;var Dl=Object.create||function(t,e){var i;return null!==t?(Il[Cl]=xl(t),i=new Il,Il[Cl]=null,i[Tl]=t):i=Pl(),void 0===e?i:_l.f(i,e)},Ml={},Fl=ol,Nl=rl.concat("length","prototype");Ml.f=Object.getOwnPropertyNames||function(t){return Fl(t,Nl)};var Bl={},Ll=qd,zl=Ma,jl=ja,Hl=Array,$l=Math.max,Ul=function(t,e,i){for(var n=zl(t),o=Ll(e,n),r=Ll(void 0===i?n:i,n),s=Hl($l(r-o,0)),a=0;oy;y++)if((a||y in m)&&(p=v(u=m[y],y,f),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return u;case 6:return y;case 2:Vc(x,u)}else switch(t){case 4:return!1;case 7:Vc(x,u)}return r?-1:n||o?o:x}},Xc={forEach:qc(0),map:qc(1),filter:qc(2),some:qc(3),every:qc(4),find:qc(5),findIndex:qc(6),filterReject:qc(7)},Yc=ma,Gc=Wn,Kc=bo,Zc=io,Qc=vo,Jc=sr,th=Vn,eh=zr,ih=Yo,nh=Us,oh=Lo,rh=ls,sh=Hd,ah=Co,dh=Dl,lh=dl,ch=Ml,hh=Bl,uh=Gl,ph=mo,fh=Ls,mh=$d,vh=xo,gh=Zl,yh=Jl,bh=Dr,xh=Qd,_h=Wr,wh=Jr,Eh=tc,kh=lc,Oh=fc,Ch=Ec,Sh=zc,Th=Xc.forEach,Ih=bl("hidden"),Ah="Symbol",Rh="prototype",Ph=Sh.set,Dh=Sh.getterFor(Ah),Mh=Object[Rh],Fh=Gc.Symbol,Nh=Fh&&Fh[Rh],Bh=Gc.RangeError,Lh=Gc.TypeError,zh=Gc.QObject,jh=ph.f,Hh=fh.f,$h=hh.f,Uh=vh.f,Wh=Zc([].push),Vh=bh("symbols"),qh=bh("op-symbols"),Xh=bh("wks"),Yh=!zh||!zh[Rh]||!zh[Rh].findChild,Gh=function(t,e,i){var n=jh(Mh,e);n&&delete Mh[e],Hh(t,e,i),n&&t!==Mh&&Hh(Mh,e,n)},Kh=Qc&&th((function(){return 7!==dh(Hh({},"a",{get:function(){return Hh(this,"a",{value:7}).a}})).a}))?Gh:Hh,Zh=function(t,e){var i=Vh[t]=dh(Nh);return Ph(i,{type:Ah,tag:t,description:e}),Qc||(i.description=e),i},Qh=function(t,e,i){t===Mh&&Qh(qh,e,i),nh(t);var n=rh(e);return nh(i),eh(Vh,n)?(i.enumerable?(eh(t,Ih)&&t[Ih][n]&&(t[Ih][n]=!1),i=dh(i,{enumerable:ah(0,!1)})):(eh(t,Ih)||Hh(t,Ih,ah(1,{})),t[Ih][n]=!0),Kh(t,n,i)):Hh(t,n,i)},Jh=function(t,e){nh(t);var i=oh(e),n=lh(i).concat(nu(i));return Th(n,(function(e){Qc&&!Kc(tu,i,e)||Qh(t,e,i[e])})),t},tu=function(t){var e=rh(t),i=Kc(Uh,this,e);return!(this===Mh&&eh(Vh,e)&&!eh(qh,e))&&(!(i||!eh(this,e)||!eh(Vh,e)||eh(this,Ih)&&this[Ih][e])||i)},eu=function(t,e){var i=oh(t),n=rh(e);if(i!==Mh||!eh(Vh,n)||eh(qh,n)){var o=jh(i,n);return!o||!eh(Vh,n)||eh(i,Ih)&&i[Ih][n]||(o.enumerable=!0),o}},iu=function(t){var e=$h(oh(t)),i=[];return Th(e,(function(t){eh(Vh,t)||eh(xh,t)||Wh(i,t)})),i},nu=function(t){var e=t===Mh,i=$h(e?qh:oh(t)),n=[];return Th(i,(function(t){!eh(Vh,t)||e&&!eh(Mh,t)||Wh(n,Vh[t])})),n};Jc||(Fh=function(){if(ih(Nh,this))throw new Lh("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?sh(arguments[0]):void 0,e=_h(t),i=function(t){var n=void 0===this?Gc:this;n===Mh&&Kc(i,qh,t),eh(n,Ih)&&eh(n[Ih],e)&&(n[Ih][e]=!1);var o=ah(1,t);try{Kh(n,e,o)}catch(t){if(!(t instanceof Bh))throw t;Gh(n,e,o)}};return Qc&&Yh&&Kh(Mh,e,{configurable:!0,set:i}),Zh(e,t)},gh(Nh=Fh[Rh],"toString",(function(){return Dh(this).tag})),gh(Fh,"withoutSetter",(function(t){return Zh(_h(t),t)})),vh.f=tu,fh.f=Qh,mh.f=Jh,ph.f=eu,ch.f=hh.f=iu,uh.f=nu,Eh.f=function(t){return Zh(wh(t),t)},Qc&&yh(Nh,"description",{configurable:!0,get:function(){return Dh(this).description}})),Yc({global:!0,constructor:!0,wrap:!0,forced:!Jc,sham:!Jc},{Symbol:Fh}),Th(lh(Xh),(function(t){kh(t)})),Yc({target:Ah,stat:!0,forced:!Jc},{useSetter:function(){Yh=!0},useSimple:function(){Yh=!1}}),Yc({target:"Object",stat:!0,forced:!Jc,sham:!Qc},{create:function(t,e){return void 0===e?dh(t):Jh(dh(t),e)},defineProperty:Qh,defineProperties:Jh,getOwnPropertyDescriptor:eu}),Yc({target:"Object",stat:!0,forced:!Jc},{getOwnPropertyNames:iu}),Oh(),Ch(Fh,Ah),xh[Ih]=!0;var ou=sr&&!!Symbol.for&&!!Symbol.keyFor,ru=ma,su=Xo,au=zr,du=Hd,lu=Dr,cu=ou,hu=lu("string-to-symbol-registry"),uu=lu("symbol-to-string-registry");ru({target:"Symbol",stat:!0,forced:!cu},{for:function(t){var e=du(t);if(au(hu,e))return hu[e];var i=su("Symbol")(e);return hu[e]=i,uu[i]=e,i}});var pu=ma,fu=zr,mu=ur,vu=fr,gu=ou,yu=Dr("symbol-to-string-registry");pu({target:"Symbol",stat:!0,forced:!gu},{keyFor:function(t){if(!mu(t))throw new TypeError(vu(t)+" is not a symbol");if(fu(yu,t))return yu[t]}});var bu=io([].slice),xu=Oa,_u=fo,wu=so,Eu=Hd,ku=io([].push),Ou=ma,Cu=Xo,Su=Zn,Tu=bo,Iu=io,Au=Vn,Ru=fo,Pu=ur,Du=bu,Mu=function(t){if(_u(t))return t;if(xu(t)){for(var e=t.length,i=[],n=0;n=e.length)return t.target=void 0,pf(void 0,!0);switch(t.kind){case"keys":return pf(i,!1);case"values":return pf(e[i],!1)}return pf([i,e[i]],!1)}),"values"),cf.Arguments=cf.Array;var gf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yf=Wn,bf=Ga,xf=na,_f=rp,wf=Jr("toStringTag");for(var Ef in gf){var kf=yf[Ef],Of=kf&&kf.prototype;Of&&bf(Of)!==wf&&xf(Of,wf,Ef),_f[Ef]=_f.Array}var Cf=op,Sf=Jr,Tf=Ls.f,If=Sf("metadata"),Af=Function.prototype;void 0===Af[If]&&Tf(Af,If,{value:null}),lc("asyncDispose"),lc("dispose"),lc("metadata");var Rf=Cf,Pf=io,Df=Xo("Symbol"),Mf=Df.keyFor,Ff=Pf(Df.prototype.valueOf),Nf=Df.isRegisteredSymbol||function(t){try{return void 0!==Mf(Ff(t))}catch(t){return!1}};ma({target:"Symbol",stat:!0},{isRegisteredSymbol:Nf});for(var Bf=Dr,Lf=Xo,zf=io,jf=ur,Hf=Jr,$f=Lf("Symbol"),Uf=$f.isWellKnownSymbol,Wf=Lf("Object","getOwnPropertyNames"),Vf=zf($f.prototype.valueOf),qf=Bf("wks"),Xf=0,Yf=Wf($f),Gf=Yf.length;Xf=a?t?"":void 0:(n=rm(r,s))<55296||n>56319||s+1===a||(o=rm(r,s+1))<56320||o>57343?t?om(r,s):n:t?sm(r,s,s+2):o-56320+(n-55296<<10)+65536}},dm={codeAt:am(!1),charAt:am(!0)}.charAt,lm=Hd,cm=zc,hm=af,um=df,pm="String Iterator",fm=cm.set,mm=cm.getterFor(pm);hm(String,"String",(function(t){fm(this,{type:pm,string:lm(t),index:0})}),(function(){var t,e=mm(this),i=e.string,n=e.index;return n>=i.length?um(void 0,!0):(t=dm(i,n),e.index+=t.length,um(t,!1))}));var vm=tc.f("iterator"),gm=vm,ym=Hn(gm);function bm(t){return bm="function"==typeof Jf&&"symbol"==typeof ym?function(t){return typeof t}:function(t){return t&&"function"==typeof Jf&&t.constructor===Jf&&t!==Jf.prototype?"symbol":typeof t},bm(t)}var xm=Hn(tc.f("toPrimitive"));function _m(t){var e=function(t,e){if("object"!==bm(t)||null===t)return t;var i=t[xm];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==bm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bm(e)?e:String(e)}function wm(t,e){for(var i=0;i=0:a>d;d+=l)d in s&&(o=i(o,s[d],d,r));return o}},Jm={left:Qm(!1),right:Qm(!0)},tv=Vn,ev=function(t,e){var i=[][t];return!!i&&tv((function(){i.call(null,e||function(){return 1},1)}))},iv="process"===so(Wn.process),nv=Jm.left;ma({target:"Array",proto:!0,forced:!iv&&ir>79&&ir<83||!ev("reduce")},{reduce:function(t){var e=arguments.length;return nv(this,t,e,e>1?arguments[1]:void 0)}});var ov=zm("Array","reduce"),rv=Yo,sv=ov,av=Array.prototype,dv=function(t){var e=t.reduce;return t===av||rv(av,t)&&e===av.reduce?sv:e},lv=Hn(dv),cv=Xc.filter;ma({target:"Array",proto:!0,forced:!kd("filter")},{filter:function(t){return cv(this,t,arguments.length>1?arguments[1]:void 0)}});var hv=zm("Array","filter"),uv=Yo,pv=hv,fv=Array.prototype,mv=function(t){var e=t.filter;return t===fv||uv(fv,t)&&e===fv.filter?pv:e},vv=Hn(mv),gv=Xc.map;ma({target:"Array",proto:!0,forced:!kd("map")},{map:function(t){return gv(this,t,arguments.length>1?arguments[1]:void 0)}});var yv=zm("Array","map"),bv=Yo,xv=yv,_v=Array.prototype,wv=function(t){var e=t.map;return t===_v||bv(_v,t)&&e===_v.map?xv:e},Ev=Hn(wv),kv=Oa,Ov=Ma,Cv=Na,Sv=Bs,Tv=function(t,e,i,n,o,r,s,a){for(var d,l,c=o,h=0,u=!!s&&Sv(s,a);h0&&kv(d)?(l=Ov(d),c=Tv(t,e,d,l,c,r-1)-1):(Cv(c+1),t[c]=d),c++),h++;return c},Iv=Tv,Av=yr,Rv=Nr,Pv=Ma,Dv=xd;ma({target:"Array",proto:!0},{flatMap:function(t){var e,i=Rv(this),n=Pv(i);return Av(t),(e=Dv(i,0)).length=Iv(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),zm("Array","flatMap");var Mv=bo,Fv=Us,Nv=_r,Bv=function(t,e,i){var n,o;Fv(t);try{if(!(n=Nv(t,"return"))){if("throw"===e)throw i;return i}n=Mv(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw i;if(o)throw n;return Fv(n),i},Lv=Us,zv=Bv,jv=rp,Hv=Jr("iterator"),$v=Array.prototype,Uv=function(t){return void 0!==t&&(jv.Array===t||$v[Hv]===t)},Wv=Ga,Vv=_r,qv=Po,Xv=rp,Yv=Jr("iterator"),Gv=function(t){if(!qv(t))return Vv(t,Yv)||Vv(t,"@@iterator")||Xv[Wv(t)]},Kv=bo,Zv=yr,Qv=Us,Jv=fr,tg=Gv,eg=TypeError,ig=function(t,e){var i=arguments.length<2?tg(t):e;if(Zv(i))return Qv(Kv(i,t));throw new eg(Jv(t)+" is not iterable")},ng=Bs,og=bo,rg=Nr,sg=function(t,e,i,n){try{return n?e(Lv(i)[0],i[1]):e(i)}catch(e){zv(t,"throw",e)}},ag=Uv,dg=pd,lg=Ma,cg=ja,hg=ig,ug=Gv,pg=Array,fg=Jr("iterator"),mg=!1;try{var vg=0,gg={next:function(){return{done:!!vg++}},return:function(){mg=!0}};gg[fg]=function(){return this},Array.from(gg,(function(){throw 2}))}catch(t){}var yg=function(t,e){try{if(!e&&!mg)return!1}catch(t){return!1}var i=!1;try{var n={};n[fg]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i},bg=function(t){var e=rg(t),i=dg(this),n=arguments.length,o=n>1?arguments[1]:void 0,r=void 0!==o;r&&(o=ng(o,n>2?arguments[2]:void 0));var s,a,d,l,c,h,u=ug(e),p=0;if(!u||this===pg&&ag(u))for(s=lg(e),a=i?new this(s):pg(s);s>p;p++)h=r?o(e[p],p):e[p],cg(a,p,h);else for(c=(l=hg(e,u)).next,a=i?new this:[];!(d=og(c,l)).done;p++)h=r?sg(l,o,[d.value,p],!0):d.value,cg(a,p,h);return a.length=p,a};ma({target:"Array",stat:!0,forced:!yg((function(t){Array.from(t)}))},{from:bg});var xg=$o.Array.from,_g=Hn(xg),wg=Gv,Eg=Hn(wg),kg=Hn(wg);ma({target:"Array",stat:!0},{isArray:Oa});var Og=$o.Array.isArray,Cg=Hn(Og);var Sg=vo,Tg=Oa,Ig=TypeError,Ag=Object.getOwnPropertyDescriptor,Rg=Sg&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Tg(t)&&!Ag(t,"length").writable)throw new Ig("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Pg=Nr,Dg=Ma,Mg=Rg,Fg=Na;ma({target:"Array",proto:!0,arity:1,forced:Vn((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Pg(this),i=Dg(e),n=arguments.length;Fg(i+n);for(var o=0;ot.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?arguments[1]:void 0)};ma({target:"Array",proto:!0,forced:[].forEach!==Ny},{forEach:Ny});var By=zm("Array","forEach"),Ly=Ga,zy=zr,jy=Yo,Hy=By,$y=Array.prototype,Uy={DOMTokenList:!0,NodeList:!0},Wy=function(t){var e=t.forEach;return t===$y||jy($y,t)&&e===$y.forEach||zy(Uy,Ly(t))?Hy:e},Vy=Hn(Wy),qy=ma,Xy=Oa,Yy=io([].reverse),Gy=[1,2];qy({target:"Array",proto:!0,forced:String(Gy)===String(Gy.reverse())},{reverse:function(){return Xy(this)&&(this.length=this.length),Yy(this)}});var Ky=zm("Array","reverse"),Zy=Yo,Qy=Ky,Jy=Array.prototype,tb=function(t){var e=t.reverse;return t===Jy||Zy(Jy,t)&&e===Jy.reverse?Qy:e},eb=tb,ib=Hn(eb),nb=fr,ob=TypeError,rb=function(t,e){if(!delete t[e])throw new ob("Cannot delete property "+nb(e)+" of "+nb(t))},sb=ma,ab=Nr,db=qd,lb=Aa,cb=Ma,hb=Rg,ub=Na,pb=xd,fb=ja,mb=rb,vb=kd("splice"),gb=Math.max,yb=Math.min;sb({target:"Array",proto:!0,forced:!vb},{splice:function(t,e){var i,n,o,r,s,a,d=ab(this),l=cb(d),c=db(t,l),h=arguments.length;for(0===h?i=n=0:1===h?(i=0,n=l-c):(i=h-2,n=yb(gb(lb(e),0),l-c)),ub(l+i-n),o=pb(d,n),r=0;rl-n+i;r--)mb(d,r-1)}else if(i>n)for(r=l-n;r>c;r--)a=r+i-1,(s=r+n-1)in d?d[a]=d[s]:mb(d,a);for(r=0;ro;)for(var a,d=Db(arguments[o++]),l=r?Nb(Ib(d),r(d)):Ib(d),c=l.length,h=0;c>h;)a=l[h++],Ob&&!Sb(s,d,a)||(i[a]=d[a]);return i}:Mb,Lb=Bb;ma({target:"Object",stat:!0,arity:2,forced:Object.assign!==Lb},{assign:Lb});var zb=Hn($o.Object.assign),jb=Nr,Hb=xp,$b=up;ma({target:"Object",stat:!0,forced:Vn((function(){Hb(1)})),sham:!$b},{getPrototypeOf:function(t){return Hb(jb(t))}});var Ub=$o.Object.getPrototypeOf;ma({target:"Object",stat:!0,sham:!vo},{create:Dl});var Wb=$o.Object,Vb=function(t,e){return Wb.create(t,e)},qb=Vb,Xb=Hn(qb),Yb=$o,Gb=Zn;Yb.JSON||(Yb.JSON={stringify:JSON.stringify});var Kb=function(t,e,i){return Gb(Yb.JSON.stringify,null,arguments)},Zb=Hn(Kb),Qb="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Jb=TypeError,tx=function(t,e){if(ti,s=nx(n)?n:dx(n),a=r?sx(arguments,i):[],d=r?function(){ix(s,this,a)}:s;return e?t(d,o):t(d)}:t},hx=ma,ux=Wn,px=cx(ux.setInterval,!0);hx({global:!0,bind:!0,forced:ux.setInterval!==px},{setInterval:px});var fx=ma,mx=Wn,vx=cx(mx.setTimeout,!0);fx({global:!0,bind:!0,forced:mx.setTimeout!==vx},{setTimeout:vx});var gx=Hn($o.setTimeout),yx={exports:{}};!function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const i=this._callbacks.get(t)??[];return i.push(e),this._callbacks.set(t,i),this},e.prototype.once=function(t,e){const i=(...n)=>{this.off(t,i),e.apply(this,n)};return i.fn=e,this.on(t,i),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const i=this._callbacks.get(t);if(i){for(const[t,n]of i.entries())if(n===e||n.fn===e){i.splice(t,1);break}0===i.length?this._callbacks.delete(t):this._callbacks.set(t,i)}return this},e.prototype.emit=function(t,...e){const i=this._callbacks.get(t);if(i){const t=[...i];for(const i of t)i.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(yx);var bx,xx=Hn(yx.exports);
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
- * Licensed under the MIT license */function nk(){return nk=Object.assign||function(t){for(var e=1;e-1}var Uk=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===vk&&(t=this.compute()),mk&&this.manager.element.style&&wk[t]&&(this.manager.element.style[fk]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return $k(this.manager.recognizers,(function(e){Wk(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Vk(t,bk))return bk;var e=Vk(t,xk),i=Vk(t,_k);return e&&i?bk:e||i?e?xk:_k:Vk(t,yk)?yk:gk}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=Vk(n,bk)&&!wk[bk],r=Vk(n,_k)&&!wk[_k],s=Vk(n,xk)&&!wk[xk];if(o){var a=1===t.pointers.length,d=t.distance<2,l=t.deltaTime<250;if(a&&d&&l)return}if(!s||!r)return o||r&&i&Lk||s&&i&Bk?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function qk(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Xk(t){var e=t.length;if(1===e)return{x:ck(t[0].clientX),y:ck(t[0].clientY)};for(var i=0,n=0,o=0;o=hk(e)?t<0?Pk:Mk:e<0?Fk:Nk}function Qk(t,e,i){return{x:e/t||0,y:i/t||0}}function Jk(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Gk(e)),o>1&&!i.firstMultiple?i.firstMultiple=Gk(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,d=e.center=Xk(n);e.timeStamp=uk(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=Kk(a,d),e.distance=Yk(a,d),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==Sk&&r.eventType!==Ak||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=Zk(e.deltaX,e.deltaY);var l,c,h=Qk(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=hk(h.x)>hk(h.y)?h.x:h.y,e.scale=s?(l=s.pointers,Yk((c=n)[0],c[1],Hk)/Yk(l[0],l[1],Hk)):1,e.rotation=s?function(t,e){return Kk(e[1],e[0],Hk)+Kk(t[1],t[0],Hk)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==Rk&&(a>Ik||void 0===s.velocity)){var d=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,c=Qk(a,d,l);n=c.x,o=c.y,i=hk(c.x)>hk(c.y)?c.x:c.y,r=Zk(d,l),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var u,p=t.element,f=e.srcEvent;qk(u=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=u),e.target=p}function tO(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=e&Sk&&n-o==0,s=e&(Ak|Rk)&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,Jk(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function eO(t){return t.trim().split(/\s+/g)}function iO(t,e,i){$k(eO(e),(function(e){t.addEventListener(e,i,!1)}))}function nO(t,e,i){$k(eO(e),(function(e){t.removeEventListener(e,i,!1)}))}function oO(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var rO=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Wk(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&iO(this.element,this.evEl,this.domHandler),this.evTarget&&iO(this.target,this.evTarget,this.domHandler),this.evWin&&iO(oO(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&nO(this.element,this.evEl,this.domHandler),this.evTarget&&nO(this.target,this.evTarget,this.domHandler),this.evWin&&nO(oO(this.element),this.evWin,this.domHandler)},t}();function sO(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]})):n.sort()),n}var fO={touchstart:Sk,touchmove:2,touchend:Ak,touchcancel:Rk},mO=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return ok(e,t),e.prototype.handler=function(t){var e=fO[t.type],i=vO.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Ck,srcEvent:t})},e}(rO);function vO(t,e){var i,n,o=uO(t.touches),r=this.targetIds;if(e&(2|Sk)&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=uO(t.changedTouches),a=[],d=this.target;if(n=o.filter((function(t){return qk(t.target,d)})),e===Sk)for(i=0;i-1&&n.splice(t,1)}),bO)}}function _O(t,e){t&Sk?(this.primaryTouch=e.changedPointers[0].identifier,xO.call(this,e)):t&(Ak|Rk)&&xO.call(this,e)}function wO(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+IO(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+IO(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=OO},e.canEmit=function(){for(var t=0;te.threshold&&o&e.direction},i.attrTest=function(t){return RO.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=DO(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(RO),MO=function(t){function e(e){return void 0===e&&(e={}),t.call(this,nk({event:"swipe",threshold:10,velocity:.3,direction:Lk|Bk,pointers:1},e))||this}ok(e,t);var i=e.prototype;return i.getTouchAction=function(){return PO.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return n&(Lk|Bk)?i=e.overallVelocity:n&Lk?i=e.overallVelocityX:n&Bk&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&hk(i)>this.options.velocity&&e.eventType&Ak},i.emit=function(t){var e=DO(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(RO),FO=function(t){function e(e){return void 0===e&&(e={}),t.call(this,nk({event:"pinch",threshold:0,pointers:2},e))||this}ok(e,t);var i=e.prototype;return i.getTouchAction=function(){return[bk]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(RO),NO=function(t){function e(e){return void 0===e&&(e={}),t.call(this,nk({event:"rotate",threshold:0,pointers:2},e))||this}ok(e,t);var i=e.prototype;return i.getTouchAction=function(){return[bk]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(RO),LO=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,nk({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}ok(e,t);var i=e.prototype;return i.getTouchAction=function(){return[gk]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distancei.time;if(this._input=t,!o||!n||t.eventType&(Ak|Rk)&&!r)this.reset();else if(t.eventType&Sk)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(t.eventType&Ak)return 8;return OO},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&t.eventType&Ak?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=uk(),this.manager.emit(this.options.event,this._input)))},e}(SO),BO={domEvents:!1,touchAction:vk,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},zO=[[NO,{enable:!1}],[FO,{enable:!1},["rotate"]],[MO,{direction:Lk}],[PO,{direction:Lk},["swipe"]],[AO],[AO,{event:"doubletap",taps:2},["tap"]],[LO]];function jO(t,e){var i,n=t.element;n.style&&($k(t.options.cssProps,(function(o,r){i=pk(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var HO=function(){function t(t,e){var i,n=this;this.options=ak({},BO,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(kk?hO:Ok?mO:Ek?EO:yO))(i,tO),this.touchAction=new Uk(this,this.options.touchAction),jO(this,!0),$k(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return ak(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var qO=UO((function(t,e,i){for(var n=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function JO(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2)return iC.apply(void 0,Mb(n=[eC(e[0],e[1])]).call(n,wb(Lb(e).call(e,2))));var o,r=e[0],s=e[1],a=QO(Hb(s));try{for(a.s();!(o=a.n()).done;){var d=o.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===tC?delete r[d]:null===r[d]||null===s[d]||"object"!==lm(r[d])||"object"!==lm(s[d])||Vb(r[d])||Vb(s[d])?r[d]=nC(s[d]):r[d]=iC(r[d],s[d]))}}catch(t){a.e(t)}finally{a.f()}return r}function nC(t){return Vb(t)?Iv(t).call(t,(function(t){return nC(t)})):"object"===lm(t)&&null!==t?iC({},t):t}function oC(t){for(var e=0,i=Kb(t);er;r++)if((a=g(t[r]))&&BT(VT,a))return a;return new WT(!1)}n=zT(t,o)}for(d=u?t.next:n.next;!(l=PT(d,n)).done;){try{a=g(l.value)}catch(t){HT(n,"throw",t)}if("object"==typeof a&&a&&BT(VT,a))return a}return new WT(!1)},qT=Pd,XT=na,GT=Lo,YT=cp,KT=Fp,ZT=function(t,e,i){for(var n=vT(e),o=yT.f,r=gT.f,s=0;s2&&eI(i,arguments[2]);var o=[];return nI(t,aI,{that:o}),JT(i,"errors",o),i};KT?KT(dI,sI):ZT(dI,sI,{name:!0});var lI=dI.prototype=QT(sI.prototype,{constructor:tI(1,dI),message:tI(1,""),name:tI(1,"AggregateError")});XT({global:!0,constructor:!0,arity:2},{AggregateError:dI});var cI,hI,uI,pI,fI=No,mI=Ul,vI=oo,gI=Hr("species"),yI=function(t){var e=fI(t);vI&&e&&!e[gI]&&mI(e,gI,{configurable:!0,get:function(){return this}})},bI=Lo,xI=TypeError,_I=function(t,e){if(bI(e,t))return t;throw xI("Incorrect invocation")},wI=Rs,EI=uC,kI=_o,OI=Hr("species"),CI=function(t,e){var i,n=wI(t).constructor;return void 0===n||kI(i=wI(n)[OI])?e:EI(i)},TI=/(?:ipad|iphone|ipod).*applewebkit/i.test(Bo),II=Pn,SI=jn,AI=Os,RI=io,DI=Tr,PI=Mn,MI=dl,FI=lu,NI=es,LI=wE,BI=TI,zI=tv,jI=II.setImmediate,HI=II.clearImmediate,$I=II.process,WI=II.Dispatch,VI=II.Function,UI=II.MessageChannel,qI=II.String,XI=0,GI={},YI="onreadystatechange";PI((function(){cI=II.location}));var KI=function(t){if(DI(GI,t)){var e=GI[t];delete GI[t],e()}},ZI=function(t){return function(){KI(t)}},QI=function(t){KI(t.data)},JI=function(t){II.postMessage(qI(t),cI.protocol+"//"+cI.host)};jI&&HI||(jI=function(t){LI(arguments.length,1);var e=RI(t)?t:VI(t),i=FI(arguments,1);return GI[++XI]=function(){SI(e,void 0,i)},hI(XI),XI},HI=function(t){delete GI[t]},zI?hI=function(t){$I.nextTick(ZI(t))}:WI&&WI.now?hI=function(t){WI.now(ZI(t))}:UI&&!BI?(pI=(uI=new UI).port2,uI.port1.onmessage=QI,hI=AI(pI.postMessage,pI)):II.addEventListener&&RI(II.postMessage)&&!II.importScripts&&cI&&"file:"!==cI.protocol&&!PI(JI)?(hI=JI,II.addEventListener("message",QI,!1)):hI=YI in NI("script")?function(t){MI.appendChild(NI("script"))[YI]=function(){MI.removeChild(this),KI(t)}}:function(t){setTimeout(ZI(t),0)});var tS={set:jI,clear:HI},eS=function(){this.head=null,this.tail=null};eS.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var iS,nS,oS,rS,sS,aS=eS,dS=/ipad|iphone|ipod/i.test(Bo)&&"undefined"!=typeof Pebble,lS=/web0s(?!.*chrome)/i.test(Bo),cS=Pn,hS=Os,uS=no.f,pS=tS.set,fS=aS,mS=TI,vS=dS,gS=lS,yS=tv,bS=cS.MutationObserver||cS.WebKitMutationObserver,xS=cS.document,_S=cS.process,wS=cS.Promise,ES=uS(cS,"queueMicrotask"),kS=ES&&ES.value;if(!kS){var OS=new fS,CS=function(){var t,e;for(yS&&(t=_S.domain)&&t.exit();e=OS.get();)try{e()}catch(t){throw OS.head&&iS(),t}t&&t.enter()};mS||yS||gS||!bS||!xS?!vS&&wS&&wS.resolve?((rS=wS.resolve(void 0)).constructor=wS,sS=hS(rS.then,rS),iS=function(){sS(CS)}):yS?iS=function(){_S.nextTick(CS)}:(pS=hS(pS,cS),iS=function(){pS(CS)}):(nS=!0,oS=xS.createTextNode(""),new bS(CS).observe(oS,{characterData:!0}),iS=function(){oS.data=nS=!nS}),kS=function(t){OS.head||iS(),OS.add(t)}}var TS=kS,IS=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},SS=Pn.Promise,AS="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,RS=!AS&&!tv&&"object"==typeof window&&"object"==typeof document,DS=Pn,PS=SS,MS=io,FS=_s,NS=Ua,LS=Hr,BS=RS,zS=AS,jS=Uo,HS=PS&&PS.prototype,$S=LS("species"),WS=!1,VS=MS(DS.PromiseRejectionEvent),US=FS("Promise",(function(){var t=NS(PS),e=t!==String(PS);if(!e&&66===jS)return!0;if(!HS.catch||!HS.finally)return!0;if(!jS||jS<51||!/native code/.test(t)){var i=new PS((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((i.constructor={})[$S]=n,!(WS=i.then((function(){}))instanceof n))return!0}return!e&&(BS||zS)&&!VS})),qS={CONSTRUCTOR:US,REJECTION_EVENT:VS,SUBCLASSING:WS},XS={},GS=sr,YS=TypeError,KS=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw YS("Bad Promise constructor");e=t,i=n})),this.resolve=GS(e),this.reject=GS(i)};XS.f=function(t){return new KS(t)};var ZS,QS,JS=na,tA=tv,eA=Pn,iA=ao,nA=Wl,oA=mc,rA=yI,sA=sr,aA=io,dA=Ao,lA=_I,cA=CI,hA=tS.set,uA=TS,pA=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}},fA=IS,mA=aS,vA=Rc,gA=SS,yA=XS,bA="Promise",xA=qS.CONSTRUCTOR,_A=qS.REJECTION_EVENT,wA=vA.getterFor(bA),EA=vA.set,kA=gA&&gA.prototype,OA=gA,CA=kA,TA=eA.TypeError,IA=eA.document,SA=eA.process,AA=yA.f,RA=AA,DA=!!(IA&&IA.createEvent&&eA.dispatchEvent),PA="unhandledrejection",MA=function(t){var e;return!(!dA(t)||!aA(e=t.then))&&e},FA=function(t,e){var i,n,o,r=e.value,s=1==e.state,a=s?t.ok:t.fail,d=t.resolve,l=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&jA(e),e.rejection=1),!0===a?i=r:(c&&c.enter(),i=a(r),c&&(c.exit(),o=!0)),i===t.promise?l(TA("Promise-chain cycle")):(n=MA(i))?iA(n,i,d,l):d(i)):l(r)}catch(t){c&&!o&&c.exit(),l(t)}},NA=function(t,e){t.notified||(t.notified=!0,uA((function(){for(var i,n=t.reactions;i=n.get();)FA(i,t);t.notified=!1,e&&!t.rejection&&BA(t)})))},LA=function(t,e,i){var n,o;DA?((n=IA.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),eA.dispatchEvent(n)):n={promise:e,reason:i},!_A&&(o=eA["on"+t])?o(n):t===PA&&pA("Unhandled promise rejection",i)},BA=function(t){iA(hA,eA,(function(){var e,i=t.facade,n=t.value;if(zA(t)&&(e=fA((function(){tA?SA.emit("unhandledRejection",n,i):LA(PA,i,n)})),t.rejection=tA||zA(t)?2:1,e.error))throw e.value}))},zA=function(t){return 1!==t.rejection&&!t.parent},jA=function(t){iA(hA,eA,(function(){var e=t.facade;tA?SA.emit("rejectionHandled",e):LA("rejectionhandled",e,t.value)}))},HA=function(t,e,i){return function(n){t(e,n,i)}},$A=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,NA(t,!0))},WA=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw TA("Promise can't be resolved itself");var n=MA(e);n?uA((function(){var i={done:!1};try{iA(n,e,HA(WA,i,t),HA($A,i,t))}catch(e){$A(i,e,t)}})):(t.value=e,t.state=1,NA(t,!1))}catch(e){$A({done:!1},e,t)}}};xA&&(CA=(OA=function(t){lA(this,CA),sA(t),iA(ZS,this);var e=wA(this);try{t(HA(WA,e),HA($A,e))}catch(t){$A(e,t)}}).prototype,(ZS=function(t){EA(this,{type:bA,done:!1,notified:!1,parent:!1,reactions:new mA,rejection:!1,state:0,value:void 0})}).prototype=nA(CA,"then",(function(t,e){var i=wA(this),n=AA(cA(this,OA));return i.parent=!0,n.ok=!aA(t)||t,n.fail=aA(e)&&e,n.domain=tA?SA.domain:void 0,0==i.state?i.reactions.add(n):uA((function(){FA(n,i)})),n.promise})),QS=function(){var t=new ZS,e=wA(t);this.promise=t,this.resolve=HA(WA,e),this.reject=HA($A,e)},yA.f=AA=function(t){return t===OA||undefined===t?new QS(t):RA(t)}),JS({global:!0,constructor:!0,wrap:!0,forced:xA},{Promise:OA}),oA(OA,bA,!1,!0),rA(bA);var VA=SS,UA=qS.CONSTRUCTOR||!Pg((function(t){VA.all(t).then(void 0,(function(){}))})),qA=ao,XA=sr,GA=XS,YA=IS,KA=UT;na({target:"Promise",stat:!0,forced:UA},{all:function(t){var e=this,i=GA.f(e),n=i.resolve,o=i.reject,r=YA((function(){var i=XA(e.resolve),r=[],s=0,a=1;KA(t,(function(t){var d=s++,l=!1;a++,qA(i,e,t).then((function(t){l||(l=!0,r[d]=t,--a||n(r))}),o)})),--a||n(r)}));return r.error&&o(r.value),i.promise}});var ZA=na,QA=qS.CONSTRUCTOR;SS&&SS.prototype,ZA({target:"Promise",proto:!0,forced:QA,real:!0},{catch:function(t){return this.then(void 0,t)}});var JA=ao,tR=sr,eR=XS,iR=IS,nR=UT;na({target:"Promise",stat:!0,forced:UA},{race:function(t){var e=this,i=eR.f(e),n=i.reject,o=iR((function(){var o=tR(e.resolve);nR(t,(function(t){JA(o,e,t).then(i.resolve,n)}))}));return o.error&&n(o.value),i.promise}});var oR=ao,rR=XS;na({target:"Promise",stat:!0,forced:qS.CONSTRUCTOR},{reject:function(t){var e=rR.f(this);return oR(e.reject,void 0,t),e.promise}});var sR=Rs,aR=Ao,dR=XS,lR=function(t,e){if(sR(t),aR(e)&&e.constructor===t)return e;var i=dR.f(t);return(0,i.resolve)(e),i.promise},cR=na,hR=SS,uR=qS.CONSTRUCTOR,pR=lR,fR=No("Promise"),mR=!uR;cR({target:"Promise",stat:!0,forced:true},{resolve:function(t){return pR(mR&&this===fR?hR:this,t)}});var vR=ao,gR=sr,yR=XS,bR=IS,xR=UT;na({target:"Promise",stat:!0,forced:UA},{allSettled:function(t){var e=this,i=yR.f(e),n=i.resolve,o=i.reject,r=bR((function(){var i=gR(e.resolve),o=[],r=0,s=1;xR(t,(function(t){var a=r++,d=!1;s++,vR(i,e,t).then((function(t){d||(d=!0,o[a]={status:"fulfilled",value:t},--s||n(o))}),(function(t){d||(d=!0,o[a]={status:"rejected",reason:t},--s||n(o))}))})),--s||n(o)}));return r.error&&o(r.value),i.promise}});var _R=ao,wR=sr,ER=No,kR=XS,OR=IS,CR=UT,TR="No one promise resolved";na({target:"Promise",stat:!0,forced:UA},{any:function(t){var e=this,i=ER("AggregateError"),n=kR.f(e),o=n.resolve,r=n.reject,s=OR((function(){var n=wR(e.resolve),s=[],a=0,d=1,l=!1;CR(t,(function(t){var c=a++,h=!1;d++,_R(n,e,t).then((function(t){h||l||(l=!0,o(t))}),(function(t){h||l||(h=!0,s[c]=t,--d||r(new i(s,TR)))}))})),--d||r(new i(s,TR))}));return s.error&&r(s.value),n.promise}});var IR=na,SR=SS,AR=Mn,RR=No,DR=io,PR=CI,MR=lR,FR=SR&&SR.prototype;IR({target:"Promise",proto:!0,real:!0,forced:!!SR&&AR((function(){FR.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=PR(this,RR("Promise")),i=DR(t);return this.then(i?function(i){return MR(e,t()).then((function(){return i}))}:t,i?function(i){return MR(e,t()).then((function(){throw i}))}:t)}});var NR=Ro.Promise,LR=XS,BR=IS;na({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=LR.f(this),i=BR(t);return(i.error?e.reject:e.resolve)(i.value),e.promise}});var zR=NR;!function(t){t.exports=zR}(fT),function(t){t.exports=pT}(uT);var jR={},HR={get exports(){return jR},set exports(t){jR=t}},$R={},WR={get exports(){return $R},set exports(t){$R=t}},VR=Tx;!function(t){t.exports=VR}(WR),function(t){t.exports=$R}(HR),function(t){var e=oT.default,i=Cn,n=ua,o=AC,r=YC,s=sT,a=NC,d=hT,l=jR,c=Hy;function h(){t.exports=h=function(){return u},t.exports.__esModule=!0,t.exports.default=t.exports;var u={},p=Object.prototype,f=p.hasOwnProperty,m=i||function(t,e,i){t[e]=i.value},v="function"==typeof n?n:{},g=v.iterator||"@@iterator",y=v.asyncIterator||"@@asyncIterator",b=v.toStringTag||"@@toStringTag";function x(t,e,n){return i(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{x({},"")}catch(t){x=function(t,e,i){return t[e]=i}}function _(t,e,i,n){var r=e&&e.prototype instanceof k?e:k,s=o(r.prototype),a=new N(n||[]);return m(s,"_invoke",{value:D(t,i,a)}),s}function w(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}u.wrap=_;var E={};function k(){}function O(){}function C(){}var T={};x(T,g,(function(){return this}));var I=r&&r(r(L([])));I&&I!==p&&f.call(I,g)&&(T=I);var S=C.prototype=k.prototype=o(T);function A(t){var e;s(e=["next","throw","return"]).call(e,(function(e){x(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,i){function n(o,r,s,a){var d=w(t[o],t,r);if("throw"!==d.type){var l=d.arg,c=l.value;return c&&"object"==e(c)&&f.call(c,"__await")?i.resolve(c.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):i.resolve(c).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(d.arg)}var o;m(this,"_invoke",{value:function(t,e){function r(){return new i((function(i,o){n(t,e,i,o)}))}return o=o?o.then(r,r):r()}})}function D(t,e,i){var n="suspendedStart";return function(o,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw r;return B()}for(i.method=o,i.arg=r;;){var s=i.delegate;if(s){var a=P(s,i);if(a){if(a===E)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var d=w(t,e,i);if("normal"===d.type){if(n=i.done?"completed":"suspendedYield",d.arg===E)continue;return{value:d.arg,done:i.done}}"throw"===d.type&&(n="completed",i.method="throw",i.arg=d.arg)}}}function P(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),E;var o=w(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,E;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,E):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,M,this),this.reset(!0)}function L(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=f.call(o,"catchLoc"),a=f.call(o,"finallyLoc");if(s&&a){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&f.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),F(i),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;F(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:L(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),E}},u}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports}(nT);var UR=iT(),qR=UR;try{regeneratorRuntime=UR}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=UR:Function("r","regeneratorRuntime = r")(UR)}var XR={},GR={get exports(){return XR},set exports(t){XR=t}},YR={},KR={get exports(){return YR},set exports(t){YR=t}},ZR=Mn((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),QR=Mn,JR=Ao,tD=Yn,eD=ZR,iD=Object.isExtensible,nD=QR((function(){iD(1)}))||eD?function(t){return!!JR(t)&&((!eD||"ArrayBuffer"!=tD(t))&&(!iD||iD(t)))}:iD,oD=!Mn((function(){return Object.isExtensible(Object.preventExtensions({}))})),rD=na,sD=Un,aD=Vd,dD=Ao,lD=Tr,cD=Cs.f,hD=Cl,uD=Sl,pD=nD,fD=oD,mD=!1,vD=Dr("meta"),gD=0,yD=function(t){cD(t,vD,{value:{objectID:"O"+gD++,weakData:{}}})},bD=KR.exports={enable:function(){bD.enable=function(){},mD=!0;var t=hD.f,e=sD([].splice),i={};i[vD]=1,t(i).length&&(hD.f=function(i){for(var n=t(i),o=0,r=n.length;o1?arguments[1]:void 0);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!d(this,t)}}),zD(r,i?{get:function(t){var e=d(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),XD&&BD(r,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,i){var n=e+" Iterator",o=KD(e),r=KD(n);VD(t,e,(function(t,e){YD(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?UD("keys"==e?i.key:"values"==e?i.value:[i.key,i.value],!1):(t.target=void 0,UD(void 0,!0))}),i?"entries":"values",!i,!0),qD(e)}};FD("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ZD);var QD=Ro.Map;!function(t){t.exports=QD}(GR);var JD=On(XR),tP={},eP={get exports(){return tP},set exports(t){tP=t}},iP=zc.some;na({target:"Array",proto:!0,forced:!Jm("some")},{some:function(t){return iP(this,t,arguments.length>1?arguments[1]:void 0)}});var nP=Fm("Array").some,oP=Lo,rP=nP,sP=Array.prototype,aP=function(t){var e=t.some;return t===sP||oP(sP,t)&&e===sP.some?rP:e},dP=aP;!function(t){t.exports=dP}(eP);var lP=On(tP),cP={},hP={get exports(){return cP},set exports(t){cP=t}},uP=Fm("Array").keys,pP=Ha,fP=Tr,mP=Lo,vP=uP,gP=Array.prototype,yP={DOMTokenList:!0,NodeList:!0},bP=function(t){var e=t.keys;return t===gP||mP(gP,t)&&e===gP.keys||fP(yP,pP(t))?vP:e};!function(t){t.exports=bP}(hP);var xP=On(cP),_P={},wP={get exports(){return _P},set exports(t){_P=t}},EP=Fl,kP=Math.floor,OP=function(t,e){var i=t.length,n=kP(i/2);return i<8?CP(t,e):TP(t,OP(EP(t,0,n),e),OP(EP(t,n),e),e)},CP=function(t,e){for(var i,n,o=t.length,r=1;r0;)t[n]=t[--n];n!==r++&&(t[n]=i)}return t},TP=function(t,e,i,n){for(var o=e.length,r=i.length,s=0,a=0;s3)){if(UP)return!0;if(XP)return XP<603;var t,e,i,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)GP.push({k:e+n,v:i})}for(GP.sort((function(t,e){return e.v-t.v})),n=0;njP(i)?1:-1}}(t)),i=BP(o),n=0;nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=jE((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;mx(t=o_(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(i&&i.replace)for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function tF(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);io&&(o=d,n=a)}return n}},{key:"min",value:function(t){var e=QM(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=_b(i.value,2),s=r[0],a=r[1],d=t(a,s);d=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function rF(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?i-1:0),o=1;oo?1:no)&&(n=s,o=a)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:"min",value:function(t){var e,i,n=null,o=null,r=oF(yM(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,a=s[t];"number"==typeof a&&(null==o||a-1}var l_=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Mx&&(t=this.compute()),Dx&&this.manager.element.style&&jx[t]&&(this.manager.element.style[Px]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return s_(this.manager.recognizers,(function(e){a_(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(d_(t,Bx))return Bx;var e=d_(t,Lx),i=d_(t,zx);return e&&i?Bx:e||i?e?Lx:zx:d_(t,Nx)?Nx:Fx}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=d_(n,Bx)&&!jx[Bx],r=d_(n,zx)&&!jx[zx],s=d_(n,Lx)&&!jx[Lx];if(o){var a=1===t.pointers.length,d=t.distance<2,l=t.deltaTime<250;if(a&&d&&l)return}if(!s||!r)return o||r&&i&e_||s&&i&i_?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function c_(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function h_(t){var e=t.length;if(1===e)return{x:Tx(t[0].clientX),y:Tx(t[0].clientY)};for(var i=0,n=0,o=0;o=Ix(e)?t<0?Zx:Qx:e<0?Jx:t_}function v_(t,e,i){return{x:e/t||0,y:i/t||0}}function g_(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=u_(e)),o>1&&!i.firstMultiple?i.firstMultiple=u_(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,d=e.center=h_(n);e.timeStamp=Ax(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=f_(a,d),e.distance=p_(a,d),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==Xx&&r.eventType!==Yx||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=m_(e.deltaX,e.deltaY);var l,c,h=v_(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Ix(h.x)>Ix(h.y)?h.x:h.y,e.scale=s?(l=s.pointers,p_((c=n)[0],c[1],r_)/p_(l[0],l[1],r_)):1,e.rotation=s?function(t,e){return f_(e[1],e[0],r_)+f_(t[1],t[0],r_)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==Gx&&(a>qx||void 0===s.velocity)){var d=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,c=v_(a,d,l);n=c.x,o=c.y,i=Ix(c.x)>Ix(c.y)?c.x:c.y,r=m_(d,l),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var u,p=t.element,f=e.srcEvent;c_(u=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=u),e.target=p}function y_(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=e&Xx&&n-o==0,s=e&(Yx|Gx)&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,g_(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function b_(t){return t.trim().split(/\s+/g)}function x_(t,e,i){s_(b_(e),(function(e){t.addEventListener(e,i,!1)}))}function __(t,e,i){s_(b_(e),(function(e){t.removeEventListener(e,i,!1)}))}function w_(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var E_=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){a_(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&x_(this.element,this.evEl,this.domHandler),this.evTarget&&x_(this.target,this.evTarget,this.domHandler),this.evWin&&x_(w_(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&__(this.element,this.evEl,this.domHandler),this.evTarget&&__(this.target,this.evTarget,this.domHandler),this.evWin&&__(w_(this.element),this.evWin,this.domHandler)},t}();function k_(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]})):n.sort()),n}var P_={touchstart:Xx,touchmove:2,touchend:Yx,touchcancel:Gx},D_=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return wx(e,t),e.prototype.handler=function(t){var e=P_[t.type],i=M_.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Wx,srcEvent:t})},e}(E_);function M_(t,e){var i,n,o=A_(t.touches),r=this.targetIds;if(e&(2|Xx)&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=A_(t.changedTouches),a=[],d=this.target;if(n=o.filter((function(t){return c_(t.target,d)})),e===Xx)for(i=0;i-1&&n.splice(t,1)}),B_)}}function z_(t,e){t&Xx?(this.primaryTouch=e.changedPointers[0].identifier,L_.call(this,e)):t&(Yx|Gx)&&L_.call(this,e)}function j_(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+q_(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+q_(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=U_},e.canEmit=function(){for(var t=0;te.threshold&&o&e.direction},i.attrTest=function(t){return G_.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=K_(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(G_),Q_=function(t){function e(e){return void 0===e&&(e={}),t.call(this,_x({event:"swipe",threshold:10,velocity:.3,direction:e_|i_,pointers:1},e))||this}wx(e,t);var i=e.prototype;return i.getTouchAction=function(){return Z_.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return n&(e_|i_)?i=e.overallVelocity:n&e_?i=e.overallVelocityX:n&i_&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Ix(i)>this.options.velocity&&e.eventType&Yx},i.emit=function(t){var e=K_(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(G_),J_=function(t){function e(e){return void 0===e&&(e={}),t.call(this,_x({event:"pinch",threshold:0,pointers:2},e))||this}wx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Bx]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(G_),tw=function(t){function e(e){return void 0===e&&(e={}),t.call(this,_x({event:"rotate",threshold:0,pointers:2},e))||this}wx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Bx]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(G_),ew=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,_x({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}wx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Fx]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distancei.time;if(this._input=t,!o||!n||t.eventType&(Yx|Gx)&&!r)this.reset();else if(t.eventType&Xx)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(t.eventType&Yx)return 8;return U_},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&t.eventType&Yx?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Ax(),this.manager.emit(this.options.event,this._input)))},e}(X_),iw={domEvents:!1,touchAction:Mx,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},nw=[[tw,{enable:!1}],[J_,{enable:!1},["rotate"]],[Q_,{direction:e_}],[Z_,{direction:e_},["swipe"]],[Y_],[Y_,{event:"doubletap",taps:2},["tap"]],[ew]];function ow(t,e){var i,n=t.element;n.style&&(s_(t.options.cssProps,(function(o,r){i=Rx(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var rw=function(){function t(t,e){var i,n=this;this.options=Ox({},iw,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||($x?I_:Ux?D_:Hx?H_:N_))(i,y_),this.touchAction=new l_(this,this.options.touchAction),ow(this,!0),s_(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Ox(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var cw=lw((function(t,e,i){for(var n=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function gw(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2)return xw.apply(void 0,wy(n=[bw(e[0],e[1])]).call(n,my(Ey(e).call(e,2))));var o=e[0],r=e[1];if(o instanceof Date&&r instanceof Date)return o.setTime(r.getTime()),o;var s,a=vw(Ay(r));try{for(a.s();!(s=a.n()).done;){var d=s.value;Object.prototype.propertyIsEnumerable.call(r,d)&&(r[d]===yw?delete o[d]:null===o[d]||null===r[d]||"object"!=typeof o[d]||"object"!=typeof r[d]||Ry(o[d])||Ry(r[d])?o[d]=_w(r[d]):o[d]=xw(o[d],r[d]))}}catch(t){a.e(t)}finally{a.f()}return o}function _w(t){return Ry(t)?Ev(t).call(t,(function(t){return _w(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):xw({},t):t}function ww(t){for(var e=0,i=My(t);e({set:t})}}()};function kw(t){var e,i=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){i._dom.overlay.parentNode.removeChild(i._dom.overlay)}));var n=Ew(this._dom.overlay);n.on("tap",qm(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Vy(o).call(o,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||i.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",i._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&i.deactivate()}}xx(kw.prototype),kw.current=null,kw.prototype.destroy=function(){var t,e;this.deactivate();var i,n=vw(ib(t=kb(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(i=n.n()).done;){(0,i.value)()}}catch(t){n.e(t)}finally{n.f()}},kw.prototype.activate=function(){kw.current&&kw.current.deactivate(),kw.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},kw.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},kw.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Ow=pd,Cw=fr,Sw=TypeError,Tw=function(t){if(Ow(t))return t;throw new Sw(Cw(t)+" is not a constructor")},Iw=ma,Aw=Zn,Rw=Fm,Pw=Tw,Dw=Us,Mw=Ho,Fw=Dl,Nw=Vn,Bw=Xo("Reflect","construct"),Lw=Object.prototype,zw=[].push,jw=Nw((function(){function t(){}return!(Bw((function(){}),[],t)instanceof t)})),Hw=!Nw((function(){Bw((function(){}))})),$w=jw||Hw;Iw({target:"Reflect",stat:!0,forced:$w,sham:$w},{construct:function(t,e){Pw(t),Dw(e);var i=arguments.length<3?t:Pw(arguments[2]);if(Hw&&!jw)return Bw(t,e,i);if(t===i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return Aw(zw,n,e),new(Aw(Rw,t,n))}var o=i.prototype,r=Fw(Mw(o)?o:Lw),s=Aw(t,r,e);return Mw(s)?s:r}});var Uw=Hn($o.Reflect.construct),Ww=Hn($o.Object.getOwnPropertySymbols),Vw={exports:{}},qw=ma,Xw=Vn,Yw=Lo,Gw=mo.f,Kw=vo;qw({target:"Object",stat:!0,forced:!Kw||Xw((function(){Gw(1)})),sham:!Kw},{getOwnPropertyDescriptor:function(t,e){return Gw(Yw(t),e)}});var Zw=$o.Object,Qw=Vw.exports=function(t,e){return Zw.getOwnPropertyDescriptor(t,e)};Zw.getOwnPropertyDescriptor.sham&&(Qw.sham=!0);var Jw=Hn(Vw.exports),tE=Iy,eE=Lo,iE=mo,nE=ja;ma({target:"Object",stat:!0,sham:!vo},{getOwnPropertyDescriptors:function(t){for(var e,i,n=eE(t),o=iE.f,r=tE(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&nE(s,e,i);return s}});var oE=Hn($o.Object.getOwnPropertyDescriptors),rE={exports:{}},sE=ma,aE=vo,dE=$d.f;sE({target:"Object",stat:!0,forced:Object.defineProperties!==dE,sham:!aE},{defineProperties:dE});var lE=$o.Object,cE=rE.exports=function(t,e){return lE.defineProperties(t,e)};lE.defineProperties.sham&&(cE.sham=!0);var hE=Hn(rE.exports),uE=Hn(_a);function pE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var fE=qb,mE=Hn(fE);ma({target:"Object",stat:!0},{setPrototypeOf:Vp});var vE=$o.Object.setPrototypeOf,gE=Hn(vE),yE=Hn(Vm);function bE(t,e){var i;return bE=gE?yE(i=gE).call(i):function(t,e){return t.__proto__=e,t},bE(t,e)}var xE=Ub,_E=Hn(xE);function wE(t){var e;return wE=gE?yE(e=_E).call(e):function(t){return t.__proto__||_E(t)},wE(t)}var EE={exports:{}},kE={exports:{}};!function(t){var e=Qf,i=gm;function n(o){return t.exports=n="function"==typeof e&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(kE);var OE=kE.exports,CE=Wy,SE=zr,TE=Iy,IE=mo,AE=Ls,RE=Ho,PE=na,DE=Error,ME=io("".replace),FE=String(new DE("zxcasd").stack),NE=/\n\s*at [^:]*:[^\n]*/,BE=NE.test(FE),LE=Co,zE=!Vn((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",LE(1,7)),7!==t.stack)})),jE=na,HE=function(t,e){if(BE&&"string"==typeof t&&!DE.prepareStackTrace)for(;e--;)t=ME(t,NE,"");return t},$E=zE,UE=Error.captureStackTrace,WE=Bs,VE=bo,qE=Us,XE=fr,YE=Uv,GE=Ma,KE=Yo,ZE=ig,QE=Gv,JE=Bv,tk=TypeError,ek=function(t,e){this.stopped=t,this.result=e},ik=ek.prototype,nk=function(t,e,i){var n,o,r,s,a,d,l,c=i&&i.that,h=!(!i||!i.AS_ENTRIES),u=!(!i||!i.IS_RECORD),p=!(!i||!i.IS_ITERATOR),f=!(!i||!i.INTERRUPTED),m=WE(e,c),v=function(t){return n&&JE(n,"normal",t),new ek(!0,t)},g=function(t){return h?(qE(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(u)n=t.iterator;else if(p)n=t;else{if(!(o=QE(t)))throw new tk(XE(t)+" is not iterable");if(YE(o)){for(r=0,s=GE(t);s>r;r++)if((a=g(t[r]))&&KE(ik,a))return a;return new ek(!1)}n=ZE(t,o)}for(d=u?t.next:n.next;!(l=VE(d,n)).done;){try{a=g(l.value)}catch(t){JE(n,"throw",t)}if("object"==typeof a&&a&&KE(ik,a))return a}return new ek(!1)},ok=Hd,rk=ma,sk=Yo,ak=xp,dk=Vp,lk=function(t,e,i){for(var n=TE(e),o=AE.f,r=IE.f,s=0;s2&&pk(i,arguments[2]);var o=[];return mk(t,bk,{that:o}),hk(i,"errors",o),i};dk?dk(xk,yk):lk(xk,yk,{name:!0});var _k=xk.prototype=ck(yk.prototype,{constructor:uk(1,xk),message:uk(1,""),name:uk(1,"AggregateError")});rk({global:!0,constructor:!0,arity:2},{AggregateError:xk});var wk,Ek,kk,Ok,Ck=Xo,Sk=Jl,Tk=vo,Ik=Jr("species"),Ak=function(t){var e=Ck(t);Tk&&e&&!e[Ik]&&Sk(e,Ik,{configurable:!0,get:function(){return this}})},Rk=Yo,Pk=TypeError,Dk=function(t,e){if(Rk(e,t))return t;throw new Pk("Incorrect invocation")},Mk=Us,Fk=Tw,Nk=Po,Bk=Jr("species"),Lk=function(t,e){var i,n=Mk(t).constructor;return void 0===n||Nk(i=Mk(n)[Bk])?e:Fk(i)},zk=/(?:ipad|iphone|ipod).*applewebkit/i.test(Go),jk=Wn,Hk=Zn,$k=Bs,Uk=fo,Wk=zr,Vk=Vn,qk=vl,Xk=bu,Yk=ps,Gk=tx,Kk=zk,Zk=iv,Qk=jk.setImmediate,Jk=jk.clearImmediate,tO=jk.process,eO=jk.Dispatch,iO=jk.Function,nO=jk.MessageChannel,oO=jk.String,rO=0,sO={},aO="onreadystatechange";Vk((function(){wk=jk.location}));var dO=function(t){if(Wk(sO,t)){var e=sO[t];delete sO[t],e()}},lO=function(t){return function(){dO(t)}},cO=function(t){dO(t.data)},hO=function(t){jk.postMessage(oO(t),wk.protocol+"//"+wk.host)};Qk&&Jk||(Qk=function(t){Gk(arguments.length,1);var e=Uk(t)?t:iO(t),i=Xk(arguments,1);return sO[++rO]=function(){Hk(e,void 0,i)},Ek(rO),rO},Jk=function(t){delete sO[t]},Zk?Ek=function(t){tO.nextTick(lO(t))}:eO&&eO.now?Ek=function(t){eO.now(lO(t))}:nO&&!Kk?(Ok=(kk=new nO).port2,kk.port1.onmessage=cO,Ek=$k(Ok.postMessage,Ok)):jk.addEventListener&&Uk(jk.postMessage)&&!jk.importScripts&&wk&&"file:"!==wk.protocol&&!Vk(hO)?(Ek=hO,jk.addEventListener("message",cO,!1)):Ek=aO in Yk("script")?function(t){qk.appendChild(Yk("script"))[aO]=function(){qk.removeChild(this),dO(t)}}:function(t){setTimeout(lO(t),0)});var uO={set:Qk,clear:Jk},pO=function(){this.head=null,this.tail=null};pO.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var fO,mO,vO,gO,yO,bO=pO,xO=/ipad|iphone|ipod/i.test(Go)&&"undefined"!=typeof Pebble,_O=/web0s(?!.*chrome)/i.test(Go),wO=Wn,EO=Bs,kO=mo.f,OO=uO.set,CO=bO,SO=zk,TO=xO,IO=_O,AO=iv,RO=wO.MutationObserver||wO.WebKitMutationObserver,PO=wO.document,DO=wO.process,MO=wO.Promise,FO=kO(wO,"queueMicrotask"),NO=FO&&FO.value;if(!NO){var BO=new CO,LO=function(){var t,e;for(AO&&(t=DO.domain)&&t.exit();e=BO.get();)try{e()}catch(t){throw BO.head&&fO(),t}t&&t.enter()};SO||AO||IO||!RO||!PO?!TO&&MO&&MO.resolve?((gO=MO.resolve(void 0)).constructor=MO,yO=EO(gO.then,gO),fO=function(){yO(LO)}):AO?fO=function(){DO.nextTick(LO)}:(OO=EO(OO,wO),fO=function(){OO(LO)}):(mO=!0,vO=PO.createTextNode(""),new RO(LO).observe(vO,{characterData:!0}),fO=function(){vO.data=mO=!mO}),NO=function(t){BO.head||fO(),BO.add(t)}}var zO=NO,jO=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},HO=Wn.Promise,$O="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,UO=!$O&&!iv&&"object"==typeof window&&"object"==typeof document,WO=Wn,VO=HO,qO=fo,XO=Ds,YO=Ja,GO=Jr,KO=UO,ZO=$O,QO=ir,JO=VO&&VO.prototype,tC=GO("species"),eC=!1,iC=qO(WO.PromiseRejectionEvent),nC=XO("Promise",(function(){var t=YO(VO),e=t!==String(VO);if(!e&&66===QO)return!0;if(!JO.catch||!JO.finally)return!0;if(!QO||QO<51||!/native code/.test(t)){var i=new VO((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((i.constructor={})[tC]=n,!(eC=i.then((function(){}))instanceof n))return!0}return!e&&(KO||ZO)&&!iC})),oC={CONSTRUCTOR:nC,REJECTION_EVENT:iC,SUBCLASSING:eC},rC={},sC=yr,aC=TypeError,dC=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw new aC("Bad Promise constructor");e=t,i=n})),this.resolve=sC(e),this.reject=sC(i)};rC.f=function(t){return new dC(t)};var lC,cC,hC=ma,uC=iv,pC=Wn,fC=bo,mC=Zl,vC=Ec,gC=Ak,yC=yr,bC=fo,xC=Ho,_C=Dk,wC=Lk,EC=uO.set,kC=zO,OC=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},CC=jO,SC=bO,TC=zc,IC=HO,AC=rC,RC="Promise",PC=oC.CONSTRUCTOR,DC=oC.REJECTION_EVENT,MC=TC.getterFor(RC),FC=TC.set,NC=IC&&IC.prototype,BC=IC,LC=NC,zC=pC.TypeError,jC=pC.document,HC=pC.process,$C=AC.f,UC=$C,WC=!!(jC&&jC.createEvent&&pC.dispatchEvent),VC="unhandledrejection",qC=function(t){var e;return!(!xC(t)||!bC(e=t.then))&&e},XC=function(t,e){var i,n,o,r=e.value,s=1===e.state,a=s?t.ok:t.fail,d=t.resolve,l=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&QC(e),e.rejection=1),!0===a?i=r:(c&&c.enter(),i=a(r),c&&(c.exit(),o=!0)),i===t.promise?l(new zC("Promise-chain cycle")):(n=qC(i))?fC(n,i,d,l):d(i)):l(r)}catch(t){c&&!o&&c.exit(),l(t)}},YC=function(t,e){t.notified||(t.notified=!0,kC((function(){for(var i,n=t.reactions;i=n.get();)XC(i,t);t.notified=!1,e&&!t.rejection&&KC(t)})))},GC=function(t,e,i){var n,o;WC?((n=jC.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),pC.dispatchEvent(n)):n={promise:e,reason:i},!DC&&(o=pC["on"+t])?o(n):t===VC&&OC("Unhandled promise rejection",i)},KC=function(t){fC(EC,pC,(function(){var e,i=t.facade,n=t.value;if(ZC(t)&&(e=CC((function(){uC?HC.emit("unhandledRejection",n,i):GC(VC,i,n)})),t.rejection=uC||ZC(t)?2:1,e.error))throw e.value}))},ZC=function(t){return 1!==t.rejection&&!t.parent},QC=function(t){fC(EC,pC,(function(){var e=t.facade;uC?HC.emit("rejectionHandled",e):GC("rejectionhandled",e,t.value)}))},JC=function(t,e,i){return function(n){t(e,n,i)}},tS=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,YC(t,!0))},eS=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new zC("Promise can't be resolved itself");var n=qC(e);n?kC((function(){var i={done:!1};try{fC(n,e,JC(eS,i,t),JC(tS,i,t))}catch(e){tS(i,e,t)}})):(t.value=e,t.state=1,YC(t,!1))}catch(e){tS({done:!1},e,t)}}};PC&&(LC=(BC=function(t){_C(this,LC),yC(t),fC(lC,this);var e=MC(this);try{t(JC(eS,e),JC(tS,e))}catch(t){tS(e,t)}}).prototype,(lC=function(t){FC(this,{type:RC,done:!1,notified:!1,parent:!1,reactions:new SC,rejection:!1,state:0,value:void 0})}).prototype=mC(LC,"then",(function(t,e){var i=MC(this),n=$C(wC(this,BC));return i.parent=!0,n.ok=!bC(t)||t,n.fail=bC(e)&&e,n.domain=uC?HC.domain:void 0,0===i.state?i.reactions.add(n):kC((function(){XC(n,i)})),n.promise})),cC=function(){var t=new lC,e=MC(t);this.promise=t,this.resolve=JC(eS,e),this.reject=JC(tS,e)},AC.f=$C=function(t){return t===BC||undefined===t?new cC(t):UC(t)}),hC({global:!0,constructor:!0,wrap:!0,forced:PC},{Promise:BC}),vC(BC,RC,!1,!0),gC(RC);var iS=HO,nS=oC.CONSTRUCTOR||!yg((function(t){iS.all(t).then(void 0,(function(){}))})),oS=bo,rS=yr,sS=rC,aS=jO,dS=nk;ma({target:"Promise",stat:!0,forced:nS},{all:function(t){var e=this,i=sS.f(e),n=i.resolve,o=i.reject,r=aS((function(){var i=rS(e.resolve),r=[],s=0,a=1;dS(t,(function(t){var d=s++,l=!1;a++,oS(i,e,t).then((function(t){l||(l=!0,r[d]=t,--a||n(r))}),o)})),--a||n(r)}));return r.error&&o(r.value),i.promise}});var lS=ma,cS=oC.CONSTRUCTOR;HO&&HO.prototype,lS({target:"Promise",proto:!0,forced:cS,real:!0},{catch:function(t){return this.then(void 0,t)}});var hS=bo,uS=yr,pS=rC,fS=jO,mS=nk;ma({target:"Promise",stat:!0,forced:nS},{race:function(t){var e=this,i=pS.f(e),n=i.reject,o=fS((function(){var o=uS(e.resolve);mS(t,(function(t){hS(o,e,t).then(i.resolve,n)}))}));return o.error&&n(o.value),i.promise}});var vS=bo,gS=rC;ma({target:"Promise",stat:!0,forced:oC.CONSTRUCTOR},{reject:function(t){var e=gS.f(this);return vS(e.reject,void 0,t),e.promise}});var yS=Us,bS=Ho,xS=rC,_S=function(t,e){if(yS(t),bS(e)&&e.constructor===t)return e;var i=xS.f(t);return(0,i.resolve)(e),i.promise},wS=ma,ES=HO,kS=oC.CONSTRUCTOR,OS=_S,CS=Xo("Promise"),SS=!kS;wS({target:"Promise",stat:!0,forced:true},{resolve:function(t){return OS(SS&&this===CS?ES:this,t)}});var TS=bo,IS=yr,AS=rC,RS=jO,PS=nk;ma({target:"Promise",stat:!0,forced:nS},{allSettled:function(t){var e=this,i=AS.f(e),n=i.resolve,o=i.reject,r=RS((function(){var i=IS(e.resolve),o=[],r=0,s=1;PS(t,(function(t){var a=r++,d=!1;s++,TS(i,e,t).then((function(t){d||(d=!0,o[a]={status:"fulfilled",value:t},--s||n(o))}),(function(t){d||(d=!0,o[a]={status:"rejected",reason:t},--s||n(o))}))})),--s||n(o)}));return r.error&&o(r.value),i.promise}});var DS=bo,MS=yr,FS=Xo,NS=rC,BS=jO,LS=nk,zS="No one promise resolved";ma({target:"Promise",stat:!0,forced:nS},{any:function(t){var e=this,i=FS("AggregateError"),n=NS.f(e),o=n.resolve,r=n.reject,s=BS((function(){var n=MS(e.resolve),s=[],a=0,d=1,l=!1;LS(t,(function(t){var c=a++,h=!1;d++,DS(n,e,t).then((function(t){h||l||(l=!0,o(t))}),(function(t){h||l||(h=!0,s[c]=t,--d||r(new i(s,zS)))}))})),--d||r(new i(s,zS))}));return s.error&&r(s.value),n.promise}});var jS=ma,HS=HO,$S=Vn,US=Xo,WS=fo,VS=Lk,qS=_S,XS=HS&&HS.prototype;jS({target:"Promise",proto:!0,real:!0,forced:!!HS&&$S((function(){XS.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=VS(this,US("Promise")),i=WS(t);return this.then(i?function(i){return qS(e,t()).then((function(){return i}))}:t,i?function(i){return qS(e,t()).then((function(){throw i}))}:t)}});var YS=$o.Promise,GS=rC;ma({target:"Promise",stat:!0},{withResolvers:function(){var t=GS.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var KS=YS,ZS=rC,QS=jO;ma({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=ZS.f(this),i=QS(t);return(i.error?e.reject:e.resolve)(i.value),e.promise}});var JS=KS,tT=eb;!function(t){var e=OE.default,i=wa,n=Qf,o=fE,r=xE,s=CE,a=Hg,d=vE,l=JS,c=tT,h=ly;function u(){t.exports=u=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=i||function(t,e,i){t[e]=i.value},y="function"==typeof n?n:{},b=y.iterator||"@@iterator",x=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";function w(t,e,n){return i(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{w({},"")}catch(p){w=function(t,e,i){return t[e]=i}}function E(t,e,i,n){var r=e&&e.prototype instanceof A?e:A,s=o(r.prototype),a=new $(n||[]);return g(s,"_invoke",{value:L(t,i,a)}),s}function k(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}f.wrap=E;var O="suspendedStart",C="suspendedYield",S="executing",T="completed",I={};function A(){}function R(){}function P(){}var D={};w(D,b,(function(){return this}));var M=r&&r(r(U([])));M&&M!==m&&v.call(M,b)&&(D=M);var F=P.prototype=A.prototype=o(D);function N(t){var e;s(e=["next","throw","return"]).call(e,(function(e){w(t,e,(function(t){return this._invoke(e,t)}))}))}function B(t,i){function n(o,r,s,a){var d=k(t[o],t,r);if("throw"!==d.type){var l=d.arg,c=l.value;return c&&"object"==e(c)&&v.call(c,"__await")?i.resolve(c.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):i.resolve(c).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(d.arg)}var o;g(this,"_invoke",{value:function(t,e){function r(){return new i((function(i,o){n(t,e,i,o)}))}return o=o?o.then(r,r):r()}})}function L(t,e,i){var n=O;return function(o,r){if(n===S)throw new Error("Generator is already running");if(n===T){if("throw"===o)throw r;return{value:p,done:!0}}for(i.method=o,i.arg=r;;){var s=i.delegate;if(s){var a=z(s,i);if(a){if(a===I)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===O)throw n=T,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=S;var d=k(t,e,i);if("normal"===d.type){if(n=i.done?T:C,d.arg===I)continue;return{value:d.arg,done:i.done}}"throw"===d.type&&(n=T,i.method="throw",i.arg=d.arg)}}}function z(t,e){var i=e.method,n=t.iterator[i];if(n===p)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=p,z(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),I;var o=k(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,I;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=p),e.delegate=null,I):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,I)}function j(t){var e,i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),a(e=this.tryEntries).call(e,i)}function H(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,j,this),this.reset(!0)}function U(t){if(t||""===t){var i=t[b];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=v.call(o,"catchLoc"),a=v.call(o,"finallyLoc");if(s&&a){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),H(i),I}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;H(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:U(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=p),I}},f}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports}(EE);var eT=(0,EE.exports)(),iT=eT;try{regeneratorRuntime=eT}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=eT:Function("r","regeneratorRuntime = r")(eT)}var nT=Hn(iT),oT={exports:{}},rT=Vn((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),sT=Vn,aT=Ho,dT=so,lT=rT,cT=Object.isExtensible,hT=sT((function(){cT(1)}))||lT?function(t){return!!aT(t)&&((!lT||"ArrayBuffer"!==dT(t))&&(!cT||cT(t)))}:cT,uT=!Vn((function(){return Object.isExtensible(Object.preventExtensions({}))})),pT=ma,fT=io,mT=Qd,vT=Ho,gT=zr,yT=Ls.f,bT=Ml,xT=Bl,_T=hT,wT=uT,ET=!1,kT=Wr("meta"),OT=0,CT=function(t){yT(t,kT,{value:{objectID:"O"+OT++,weakData:{}}})},ST=oT.exports={enable:function(){ST.enable=function(){},ET=!0;var t=bT.f,e=fT([].splice),i={};i[kT]=1,t(i).length&&(bT.f=function(i){for(var n=t(i),o=0,r=n.length;o1?arguments[1]:void 0);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!d(this,t)}}),GT(r,i?{get:function(t){var e=d(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),nI&&YT(r,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,i){var n=e+" Iterator",o=sI(e),r=sI(n);tI(t,e,(function(t,e){rI(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?eI("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=void 0,eI(void 0,!0))}),i?"entries":"values",!i,!0),iI(e)}};VT("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),aI);var dI=Hn($o.Map),lI=Xc.some;ma({target:"Array",proto:!0,forced:!ev("some")},{some:function(t){return lI(this,t,arguments.length>1?arguments[1]:void 0)}});var cI=zm("Array","some"),hI=Yo,uI=cI,pI=Array.prototype,fI=function(t){var e=t.some;return t===pI||hI(pI,t)&&e===pI.some?uI:e},mI=Hn(fI),vI=zm("Array","keys"),gI=Ga,yI=zr,bI=Yo,xI=vI,_I=Array.prototype,wI={DOMTokenList:!0,NodeList:!0},EI=function(t){var e=t.keys;return t===_I||bI(_I,t)&&e===_I.keys||yI(wI,gI(t))?xI:e},kI=Hn(EI),OI=Ul,CI=Math.floor,SI=function(t,e){var i=t.length,n=CI(i/2);return i<8?TI(t,e):II(t,SI(OI(t,0,n),e),SI(OI(t,n),e),e)},TI=function(t,e){for(var i,n,o=t.length,r=1;r0;)t[n]=t[--n];n!==r++&&(t[n]=i)}return t},II=function(t,e,i,n){for(var o=e.length,r=i.length,s=0,a=0;s3)){if(XI)return!0;if(GI)return GI<603;var t,e,i,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)KI.push({k:e+n,v:i})}for(KI.sort((function(t,e){return e.v-t.v})),n=0;n$I(i)?1:-1}}(t)),i=jI(o),n=0;nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=gx((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;Vy(t=kb(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(i&&i.replace)for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function jA(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);inT.mark((function e(){var n,o,r,s,a;return nT.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=zA(i),e.prev=1,n.s();case 3:if((o=n.n()).done){e.next=10;break}if(r=fy(o.value,2),s=r[0],a=r[1],!t(a,s)){e.next=8;break}return e.next=8,[s,a];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))()})}},{key:"forEach",value:function(t){var e,i=zA(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=fy(e.value,2),o=n[0];t(n[1],o)}}catch(t){i.e(t)}finally{i.f()}}},{key:"map",value:function(t){var i=this._pairs;return new e({[yA]:()=>nT.mark((function e(){var n,o,r,s,a;return nT.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=zA(i),e.prev=1,n.s();case 3:if((o=n.n()).done){e.next=9;break}return r=fy(o.value,2),s=r[0],a=r[1],e.next=7,[s,t(a,s)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))()})}},{key:"max",value:function(t){var e=LA(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=fy(i.value,2),s=r[0],a=r[1],d=t(a,s);d>o&&(o=d,n=a)}return n}},{key:"min",value:function(t){var e=LA(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=fy(i.value,2),s=r[0],a=r[1],d=t(a,s);d=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function VA(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?i-1:0),o=1;oo?1:no)&&(n=s,o=a)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:"min",value:function(t){var e,i,n=null,o=null,r=WA(gA(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,a=s[t];"number"==typeof a&&(null==o||anT.mark((function i(){var n,o,r,s;return nT.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=WA(t),i.prev=1,n.s();case 3:if((o=n.n()).done){i.next=11;break}if(r=o.value,null==(s=e.get(r))){i.next=9;break}return i.next=9,[r,s];case 9:i.next=3;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(1),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:case"end":return i.stop()}}),i,null,[[1,13,16,19]])}))()})}var i;return new HA({[yA]:qm(i=SA(this._data)).call(i,this._data)})}}]),i}(NA);function YA(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof Vy(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Ev(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&function(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof Vy(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Ev(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}(t,e.getDataSet())}
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
- * @version 9.1.6
- * @date 2023-03-23T21:31:19.223Z
+ * @version 9.1.9
+ * @date 2023-11-03T01:42:27.418Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -1023,13 +1062,14 @@ function En(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class a
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
- */var lF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cF(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hF={},uF={get exports(){return hF},set exports(t){hF=t}},pF=function(t){return t&&t.Math==Math&&t},fF=pF("object"==typeof globalThis&&globalThis)||pF("object"==typeof window&&window)||pF("object"==typeof self&&self)||pF("object"==typeof lF&&lF)||function(){return this}()||Function("return this")(),mF=function(t){try{return!!t()}catch(t){return!0}},vF=!mF((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),gF=vF,yF=Function.prototype,bF=yF.apply,xF=yF.call,_F="object"==typeof Reflect&&Reflect.apply||(gF?xF.bind(bF):function(){return xF.apply(bF,arguments)}),wF=vF,EF=Function.prototype,kF=EF.call,OF=wF&&EF.bind.bind(kF,kF),CF=wF?OF:function(t){return function(){return kF.apply(t,arguments)}},TF=CF,IF=TF({}.toString),SF=TF("".slice),AF=function(t){return SF(IF(t),8,-1)},RF=AF,DF=CF,PF=function(t){if("Function"===RF(t))return DF(t)},MF="object"==typeof document&&document.all,FF={all:MF,IS_HTMLDDA:void 0===MF&&void 0!==MF},NF=FF.all,LF=FF.IS_HTMLDDA?function(t){return"function"==typeof t||t===NF}:function(t){return"function"==typeof t},BF={},zF=!mF((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jF=vF,HF=Function.prototype.call,$F=jF?HF.bind(HF):function(){return HF.apply(HF,arguments)},WF={},VF={}.propertyIsEnumerable,UF=Object.getOwnPropertyDescriptor,qF=UF&&!VF.call({1:2},1);WF.f=qF?function(t){var e=UF(this,t);return!!e&&e.enumerable}:VF;var XF,GF,YF=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},KF=mF,ZF=AF,QF=Object,JF=CF("".split),tN=KF((function(){return!QF("z").propertyIsEnumerable(0)}))?function(t){return"String"==ZF(t)?JF(t,""):QF(t)}:QF,eN=function(t){return null==t},iN=eN,nN=TypeError,oN=function(t){if(iN(t))throw nN("Can't call method on "+t);return t},rN=tN,sN=oN,aN=function(t){return rN(sN(t))},dN=LF,lN=FF.all,cN=FF.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:dN(t)||t===lN}:function(t){return"object"==typeof t?null!==t:dN(t)},hN={},uN=hN,pN=fF,fN=LF,mN=function(t){return fN(t)?t:void 0},vN=function(t,e){return arguments.length<2?mN(uN[t])||mN(pN[t]):uN[t]&&uN[t][e]||pN[t]&&pN[t][e]},gN=CF({}.isPrototypeOf),yN="undefined"!=typeof navigator&&String(navigator.userAgent)||"",bN=fF,xN=yN,_N=bN.process,wN=bN.Deno,EN=_N&&_N.versions||wN&&wN.version,kN=EN&&EN.v8;kN&&(GF=(XF=kN.split("."))[0]>0&&XF[0]<4?1:+(XF[0]+XF[1])),!GF&&xN&&(!(XF=xN.match(/Edge\/(\d+)/))||XF[1]>=74)&&(XF=xN.match(/Chrome\/(\d+)/))&&(GF=+XF[1]);var ON=GF,CN=ON,TN=mF,IN=!!Object.getOwnPropertySymbols&&!TN((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&CN&&CN<41})),SN=IN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,AN=vN,RN=LF,DN=gN,PN=Object,MN=SN?function(t){return"symbol"==typeof t}:function(t){var e=AN("Symbol");return RN(e)&&DN(e.prototype,PN(t))},FN=String,NN=function(t){try{return FN(t)}catch(t){return"Object"}},LN=LF,BN=NN,zN=TypeError,jN=function(t){if(LN(t))return t;throw zN(BN(t)+" is not a function")},HN=jN,$N=eN,WN=function(t,e){var i=t[e];return $N(i)?void 0:HN(i)},VN=$F,UN=LF,qN=cN,XN=TypeError,GN={},YN={get exports(){return GN},set exports(t){GN=t}},KN=fF,ZN=Object.defineProperty,QN=function(t,e){try{ZN(KN,t,{value:e,configurable:!0,writable:!0})}catch(i){KN[t]=e}return e},JN="__core-js_shared__",tL=fF[JN]||QN(JN,{}),eL=tL;(YN.exports=function(t,e){return eL[t]||(eL[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var iL=oN,nL=Object,oL=function(t){return nL(iL(t))},rL=oL,sL=CF({}.hasOwnProperty),aL=Object.hasOwn||function(t,e){return sL(rL(t),e)},dL=CF,lL=0,cL=Math.random(),hL=dL(1..toString),uL=function(t){return"Symbol("+(void 0===t?"":t)+")_"+hL(++lL+cL,36)},pL=GN,fL=aL,mL=uL,vL=IN,gL=SN,yL=fF.Symbol,bL=pL("wks"),xL=gL?yL.for||yL:yL&&yL.withoutSetter||mL,_L=function(t){return fL(bL,t)||(bL[t]=vL&&fL(yL,t)?yL[t]:xL("Symbol."+t)),bL[t]},wL=$F,EL=cN,kL=MN,OL=WN,CL=function(t,e){var i,n;if("string"===e&&UN(i=t.toString)&&!qN(n=VN(i,t)))return n;if(UN(i=t.valueOf)&&!qN(n=VN(i,t)))return n;if("string"!==e&&UN(i=t.toString)&&!qN(n=VN(i,t)))return n;throw XN("Can't convert object to primitive value")},TL=TypeError,IL=_L("toPrimitive"),SL=function(t,e){if(!EL(t)||kL(t))return t;var i,n=OL(t,IL);if(n){if(void 0===e&&(e="default"),i=wL(n,t,e),!EL(i)||kL(i))return i;throw TL("Can't convert object to primitive value")}return void 0===e&&(e="number"),CL(t,e)},AL=MN,RL=function(t){var e=SL(t,"string");return AL(e)?e:e+""},DL=cN,PL=fF.document,ML=DL(PL)&&DL(PL.createElement),FL=function(t){return ML?PL.createElement(t):{}},NL=FL,LL=!zF&&!mF((function(){return 7!=Object.defineProperty(NL("div"),"a",{get:function(){return 7}}).a})),BL=zF,zL=$F,jL=WF,HL=YF,$L=aN,WL=RL,VL=aL,UL=LL,qL=Object.getOwnPropertyDescriptor;BF.f=BL?qL:function(t,e){if(t=$L(t),e=WL(e),UL)try{return qL(t,e)}catch(t){}if(VL(t,e))return HL(!zL(jL.f,t,e),t[e])};var XL=mF,GL=LF,YL=/#|\.prototype\./,KL=function(t,e){var i=QL[ZL(t)];return i==tB||i!=JL&&(GL(e)?XL(e):!!e)},ZL=KL.normalize=function(t){return String(t).replace(YL,".").toLowerCase()},QL=KL.data={},JL=KL.NATIVE="N",tB=KL.POLYFILL="P",eB=KL,iB=jN,nB=vF,oB=PF(PF.bind),rB=function(t,e){return iB(t),void 0===e?t:nB?oB(t,e):function(){return t.apply(e,arguments)}},sB={},aB=zF&&mF((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),dB=cN,lB=String,cB=TypeError,hB=function(t){if(dB(t))return t;throw cB(lB(t)+" is not an object")},uB=zF,pB=LL,fB=aB,mB=hB,vB=RL,gB=TypeError,yB=Object.defineProperty,bB=Object.getOwnPropertyDescriptor,xB="enumerable",_B="configurable",wB="writable";sB.f=uB?fB?function(t,e,i){if(mB(t),e=vB(e),mB(i),"function"==typeof t&&"prototype"===e&&"value"in i&&wB in i&&!i[wB]){var n=bB(t,e);n&&n[wB]&&(t[e]=i.value,i={configurable:_B in i?i[_B]:n[_B],enumerable:xB in i?i[xB]:n[xB],writable:!1})}return yB(t,e,i)}:yB:function(t,e,i){if(mB(t),e=vB(e),mB(i),pB)try{return yB(t,e,i)}catch(t){}if("get"in i||"set"in i)throw gB("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var EB=sB,kB=YF,OB=zF?function(t,e,i){return EB.f(t,e,kB(1,i))}:function(t,e,i){return t[e]=i,t},CB=fF,TB=_F,IB=PF,SB=LF,AB=BF.f,RB=eB,DB=hN,PB=rB,MB=OB,FB=aL,NB=function(t){var e=function(i,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,o)}return TB(t,this,arguments)};return e.prototype=t.prototype,e},LB=function(t,e){var i,n,o,r,s,a,d,l,c,h=t.target,u=t.global,p=t.stat,f=t.proto,m=u?CB:p?CB[h]:(CB[h]||{}).prototype,v=u?DB:DB[h]||MB(DB,h,{})[h],g=v.prototype;for(r in e)n=!(i=RB(u?r:h+(p?".":"#")+r,t.forced))&&m&&FB(m,r),a=v[r],n&&(d=t.dontCallGetSet?(c=AB(m,r))&&c.value:m[r]),s=n&&d?d:e[r],n&&typeof a==typeof s||(l=t.bind&&n?PB(s,CB):t.wrap&&n?NB(s):f&&SB(s)?IB(s):s,(t.sham||s&&s.sham||a&&a.sham)&&MB(l,"sham",!0),MB(v,r,l),f&&(FB(DB,o=h+"Prototype")||MB(DB,o,{}),MB(DB[o],r,s),t.real&&g&&(i||!g[r])&&MB(g,r,s)))},BB=Math.ceil,zB=Math.floor,jB=Math.trunc||function(t){var e=+t;return(e>0?zB:BB)(e)},HB=jB,$B=function(t){var e=+t;return e!=e||0===e?0:HB(e)},WB=$B,VB=Math.max,UB=Math.min,qB=function(t,e){var i=WB(t);return i<0?VB(i+e,0):UB(i,e)},XB=$B,GB=Math.min,YB=function(t){return t>0?GB(XB(t),9007199254740991):0},KB=function(t){return YB(t.length)},ZB=aN,QB=qB,JB=KB,tz=function(t){return function(e,i,n){var o,r=ZB(e),s=JB(r),a=QB(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},ez={includes:tz(!0),indexOf:tz(!1)},iz={},nz=aL,oz=aN,rz=ez.indexOf,sz=iz,az=CF([].push),dz=function(t,e){var i,n=oz(t),o=0,r=[];for(i in n)!nz(sz,i)&&nz(n,i)&&az(r,i);for(;e.length>o;)nz(n,i=e[o++])&&(~rz(r,i)||az(r,i));return r},lz=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cz=dz,hz=lz,uz=Object.keys||function(t){return cz(t,hz)},pz={};pz.f=Object.getOwnPropertySymbols;var fz=zF,mz=CF,vz=$F,gz=mF,yz=uz,bz=pz,xz=WF,_z=oL,wz=tN,Ez=Object.assign,kz=Object.defineProperty,Oz=mz([].concat),Cz=!Ez||gz((function(){if(fz&&1!==Ez({b:1},Ez(kz({},"a",{enumerable:!0,get:function(){kz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=Ez({},t)[i]||yz(Ez({},e)).join("")!=n}))?function(t,e){for(var i=_z(t),n=arguments.length,o=1,r=bz.f,s=xz.f;n>o;)for(var a,d=wz(arguments[o++]),l=r?Oz(yz(d),r(d)):yz(d),c=l.length,h=0;c>h;)a=l[h++],fz&&!vz(s,d,a)||(i[a]=d[a]);return i}:Ez,Tz=Cz;LB({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tz},{assign:Tz});var Iz=hN.Object.assign;!function(t){t.exports=Iz}(uF);var Sz=cF(hF),Az={},Rz={get exports(){return Az},set exports(t){Az=t}},Dz=CF([].slice),Pz=CF,Mz=jN,Fz=cN,Nz=aL,Lz=Dz,Bz=vF,zz=Function,jz=Pz([].concat),Hz=Pz([].join),$z={},Wz=Bz?zz.bind:function(t){var e=Mz(this),i=e.prototype,n=Lz(arguments,1),o=function(){var i=jz(n,Lz(arguments));return this instanceof o?function(t,e,i){if(!Nz($z,e)){for(var n=[],o=0;o=.1;)(f=+r[h++%s])>c&&(f=c),p=Math.sqrt(f*f/(1+l*l)),e+=p=a<0?-p:p,i+=l*p,!0===u?t.lineTo(e,i):t.moveTo(e,i),c-=f,u=!u}var rj={circle:tj,dashedLine:oj,database:nj,diamond:function(t,e,i,n){t.beginPath(),t.lineTo(e,i+n),t.lineTo(e+n,i),t.lineTo(e,i-n),t.lineTo(e-n,i),t.closePath()},ellipse:ij,ellipse_vis:ij,hexagon:function(t,e,i,n){t.beginPath();var o=2*Math.PI/6;t.moveTo(e+n,i);for(var r=1;r<6;r++)t.lineTo(e+n*Math.cos(o*r),i+n*Math.sin(o*r));t.closePath()},roundRect:ej,square:function(t,e,i,n){t.beginPath(),t.rect(e-n,i-n,2*n,2*n),t.closePath()},star:function(t,e,i,n){t.beginPath(),i+=.1*(n*=.82);for(var o=0;o<10;o++){var r=o%2==0?1.3*n:.5*n;t.lineTo(e+r*Math.sin(2*o*Math.PI/10),i-r*Math.cos(2*o*Math.PI/10))}t.closePath()},triangle:function(t,e,i,n){t.beginPath(),i+=.275*(n*=1.15);var o=2*n,r=o/2,s=Math.sqrt(3)/6*o,a=Math.sqrt(o*o-r*r);t.moveTo(e,i-(a-s)),t.lineTo(e+r,i+s),t.lineTo(e-r,i+s),t.lineTo(e,i-(a-s)),t.closePath()},triangleDown:function(t,e,i,n){t.beginPath(),i-=.275*(n*=1.15);var o=2*n,r=o/2,s=Math.sqrt(3)/6*o,a=Math.sqrt(o*o-r*r);t.moveTo(e,i+(a-s)),t.lineTo(e+r,i-s),t.lineTo(e-r,i-s),t.lineTo(e,i+(a-s)),t.closePath()}};var sj={},aj={get exports(){return sj},set exports(t){sj=t}};!function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o=a?t?"":void 0:(n=Rj(r,s))<55296||n>56319||s+1===a||(o=Rj(r,s+1))<56320||o>57343?t?Aj(r,s):n:t?Dj(r,s,s+2):o-56320+(n-55296<<10)+65536}},Mj={codeAt:Pj(!1),charAt:Pj(!0)},Fj=LF,Nj=fF.WeakMap,Lj=Fj(Nj)&&/native code/.test(String(Nj)),Bj=uL,zj=GN("keys"),jj=function(t){return zj[t]||(zj[t]=Bj(t))},Hj=Lj,$j=fF,Wj=cN,Vj=OB,Uj=aL,qj=tL,Xj=jj,Gj=iz,Yj="Object already initialized",Kj=$j.TypeError,Zj=$j.WeakMap;if(Hj||qj.state){var Qj=qj.state||(qj.state=new Zj);Qj.get=Qj.get,Qj.has=Qj.has,Qj.set=Qj.set,uj=function(t,e){if(Qj.has(t))throw Kj(Yj);return e.facade=t,Qj.set(t,e),e},pj=function(t){return Qj.get(t)||{}},fj=function(t){return Qj.has(t)}}else{var Jj=Xj("state");Gj[Jj]=!0,uj=function(t,e){if(Uj(t,Jj))throw Kj(Yj);return e.facade=t,Vj(t,Jj,e),e},pj=function(t){return Uj(t,Jj)?t[Jj]:{}},fj=function(t){return Uj(t,Jj)}}var tH={set:uj,get:pj,has:fj,enforce:function(t){return fj(t)?pj(t):uj(t,{})},getterFor:function(t){return function(e){var i;if(!Wj(e)||(i=pj(e)).type!==t)throw Kj("Incompatible receiver, "+t+" required");return i}}},eH=zF,iH=aL,nH=Function.prototype,oH=eH&&Object.getOwnPropertyDescriptor,rH=iH(nH,"name"),sH={EXISTS:rH,PROPER:rH&&"something"===function(){}.name,CONFIGURABLE:rH&&(!eH||eH&&oH(nH,"name").configurable)},aH={},dH=zF,lH=aB,cH=sB,hH=hB,uH=aN,pH=uz;aH.f=dH&&!lH?Object.defineProperties:function(t,e){hH(t);for(var i,n=uH(e),o=pH(e),r=o.length,s=0;r>s;)cH.f(t,i=o[s++],n[i]);return t};var fH,mH=vN("document","documentElement"),vH=hB,gH=aH,yH=lz,bH=iz,xH=mH,_H=FL,wH="prototype",EH="script",kH=jj("IE_PROTO"),OH=function(){},CH=function(t){return"<"+EH+">"+t+""+EH+">"},TH=function(t){t.write(CH("")),t.close();var e=t.parentWindow.Object;return t=null,e},IH=function(){try{fH=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;IH="undefined"!=typeof document?document.domain&&fH?TH(fH):(e=_H("iframe"),i="java"+EH+":",e.style.display="none",xH.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(CH("document.F=Object")),t.close(),t.F):TH(fH);for(var n=yH.length;n--;)delete IH[wH][yH[n]];return IH()};bH[kH]=!0;var SH,AH,RH,DH=Object.create||function(t,e){var i;return null!==t?(OH[wH]=vH(t),i=new OH,OH[wH]=null,i[kH]=t):i=IH(),void 0===e?i:gH.f(i,e)},PH=!mF((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),MH=aL,FH=LF,NH=oL,LH=PH,BH=jj("IE_PROTO"),zH=Object,jH=zH.prototype,HH=LH?zH.getPrototypeOf:function(t){var e=NH(t);if(MH(e,BH))return e[BH];var i=e.constructor;return FH(i)&&e instanceof i?i.prototype:e instanceof zH?jH:null},$H=OB,WH=function(t,e,i,n){return n&&n.enumerable?t[e]=i:$H(t,e,i),t},VH=mF,UH=LF,qH=cN,XH=DH,GH=HH,YH=WH,KH=_L("iterator"),ZH=!1;[].keys&&("next"in(RH=[].keys())?(AH=GH(GH(RH)))!==Object.prototype&&(SH=AH):ZH=!0);var QH=!qH(SH)||VH((function(){var t={};return SH[KH].call(t)!==t}));UH((SH=QH?{}:XH(SH))[KH])||YH(SH,KH,(function(){return this}));var JH={IteratorPrototype:SH,BUGGY_SAFARI_ITERATORS:ZH},t$=wj,e$=mj?{}.toString:function(){return"[object "+t$(this)+"]"},i$=mj,n$=sB.f,o$=OB,r$=aL,s$=e$,a$=_L("toStringTag"),d$=function(t,e,i,n){if(t){var o=i?t:t.prototype;r$(o,a$)||n$(o,a$,{configurable:!0,value:e}),n&&!i$&&o$(o,"toString",s$)}},l$={},c$=JH.IteratorPrototype,h$=DH,u$=YF,p$=d$,f$=l$,m$=function(){return this},v$=CF,g$=jN,y$=LF,b$=String,x$=TypeError,_$=function(t,e,i){try{return v$(g$(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}},w$=hB,E$=function(t){if("object"==typeof t||y$(t))return t;throw x$("Can't set "+b$(t)+" as a prototype")},k$=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=_$(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return w$(i),E$(n),e?t(i,n):i.__proto__=n,i}}():void 0),O$=LB,C$=$F,T$=function(t,e,i,n){var o=e+" Iterator";return t.prototype=h$(c$,{next:u$(+!n,i)}),p$(t,o,!1,!0),f$[o]=m$,t},I$=HH,S$=d$,A$=WH,R$=l$,D$=sH.PROPER,P$=JH.BUGGY_SAFARI_ITERATORS,M$=_L("iterator"),F$="keys",N$="values",L$="entries",B$=function(){return this},z$=function(t,e,i,n,o,r,s){T$(i,e,n);var a,d,l,c=function(t){if(t===o&&m)return m;if(!P$&&t in p)return p[t];switch(t){case F$:case N$:case L$:return function(){return new i(this,t)}}return function(){return new i(this)}},h=e+" Iterator",u=!1,p=t.prototype,f=p[M$]||p["@@iterator"]||o&&p[o],m=!P$&&f||c(o),v="Array"==e&&p.entries||f;if(v&&(a=I$(v.call(new t)))!==Object.prototype&&a.next&&(S$(a,h,!0,!0),R$[h]=B$),D$&&o==N$&&f&&f.name!==N$&&(u=!0,m=function(){return C$(f,this)}),o)if(d={values:c(N$),keys:r?m:c(F$),entries:c(L$)},s)for(l in d)(P$||u||!(l in p))&&A$(p,l,d[l]);else O$({target:e,proto:!0,forced:P$||u},d);return s&&p[M$]!==m&&A$(p,M$,m,{name:o}),R$[e]=m,d},j$=function(t,e){return{value:t,done:e}},H$=Mj.charAt,$$=Oj,W$=tH,V$=z$,U$=j$,q$="String Iterator",X$=W$.set,G$=W$.getterFor(q$);V$(String,"String",(function(t){X$(this,{type:q$,string:$$(t),index:0})}),(function(){var t,e=G$(this),i=e.string,n=e.index;return n>=i.length?U$(void 0,!0):(t=H$(i,n),e.index+=t.length,U$(t,!1))}));var Y$=$F,K$=hB,Z$=WN,Q$=function(t,e,i){var n,o;K$(t);try{if(!(n=Z$(t,"return"))){if("throw"===e)throw i;return i}n=Y$(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw i;if(o)throw n;return K$(n),i},J$=hB,tW=Q$,eW=l$,iW=_L("iterator"),nW=Array.prototype,oW=function(t){return void 0!==t&&(eW.Array===t||nW[iW]===t)},rW=LF,sW=tL,aW=CF(Function.toString);rW(sW.inspectSource)||(sW.inspectSource=function(t){return aW(t)});var dW=sW.inspectSource,lW=CF,cW=mF,hW=LF,uW=wj,pW=dW,fW=function(){},mW=[],vW=vN("Reflect","construct"),gW=/^\s*(?:class|function)\b/,yW=lW(gW.exec),bW=!gW.exec(fW),xW=function(t){if(!hW(t))return!1;try{return vW(fW,mW,t),!0}catch(t){return!1}},_W=function(t){if(!hW(t))return!1;switch(uW(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bW||!!yW(gW,pW(t))}catch(t){return!0}};_W.sham=!0;var wW=!vW||cW((function(){var t;return xW(xW.call)||!xW(Object)||!xW((function(){t=!0}))||t}))?_W:xW,EW=RL,kW=sB,OW=YF,CW=function(t,e,i){var n=EW(e);n in t?kW.f(t,n,OW(0,i)):t[n]=i},TW=wj,IW=WN,SW=eN,AW=l$,RW=_L("iterator"),DW=function(t){if(!SW(t))return IW(t,RW)||IW(t,"@@iterator")||AW[TW(t)]},PW=$F,MW=jN,FW=hB,NW=NN,LW=DW,BW=TypeError,zW=function(t,e){var i=arguments.length<2?LW(t):e;if(MW(i))return FW(PW(i,t));throw BW(NW(t)+" is not iterable")},jW=rB,HW=$F,$W=oL,WW=function(t,e,i,n){try{return n?e(J$(i)[0],i[1]):e(i)}catch(e){tW(t,"throw",e)}},VW=oW,UW=wW,qW=KB,XW=CW,GW=zW,YW=DW,KW=Array,ZW=_L("iterator"),QW=!1;try{var JW=0,tV={next:function(){return{done:!!JW++}},return:function(){QW=!0}};tV[ZW]=function(){return this},Array.from(tV,(function(){throw 2}))}catch(t){}var eV=function(t){var e=$W(t),i=UW(this),n=arguments.length,o=n>1?arguments[1]:void 0,r=void 0!==o;r&&(o=jW(o,n>2?arguments[2]:void 0));var s,a,d,l,c,h,u=YW(e),p=0;if(!u||this===KW&&VW(u))for(s=qW(e),a=i?new this(s):KW(s);s>p;p++)h=r?o(e[p],p):e[p],XW(a,p,h);else for(c=(l=GW(e,u)).next,a=i?new this:[];!(d=HW(c,l)).done;p++)h=r?WW(l,o,[d.value,p],!0):d.value,XW(a,p,h);return a.length=p,a},iV=function(t,e){if(!e&&!QW)return!1;var i=!1;try{var n={};n[ZW]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i};LB({target:"Array",stat:!0,forced:!iV((function(t){Array.from(t)}))},{from:eV});var nV=hN.Array.from;!function(t){t.exports=nV}(cj);var oV=cF(lj),rV={},sV={get exports(){return rV},set exports(t){rV=t}},aV={},dV={get exports(){return aV},set exports(t){aV=t}},lV=aN,cV=l$,hV=tH;sB.f;var uV=z$,pV=j$,fV="Array Iterator",mV=hV.set,vV=hV.getterFor(fV);uV(Array,"Array",(function(t,e){mV(this,{type:fV,target:lV(t),index:0,kind:e})}),(function(){var t=vV(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,pV(void 0,!0)):pV("keys"==i?n:"values"==i?e[n]:[n,e[n]],!1)}),"values"),cV.Arguments=cV.Array;var gV=DW,yV={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bV=fF,xV=wj,_V=OB,wV=l$,EV=_L("toStringTag");for(var kV in yV){var OV=bV[kV],CV=OV&&OV.prototype;CV&&xV(CV)!==EV&&_V(CV,EV,kV),wV[kV]=wV.Array}var TV=gV;!function(t){t.exports=TV}(dV),function(t){t.exports=aV}(sV);var IV=cF(rV),SV={},AV={get exports(){return SV},set exports(t){SV=t}},RV={},DV=dz,PV=lz.concat("length","prototype");RV.f=Object.getOwnPropertyNames||function(t){return DV(t,PV)};var MV={},FV=qB,NV=KB,LV=CW,BV=Array,zV=Math.max,jV=function(t,e,i){for(var n=NV(t),o=FV(e,n),r=FV(void 0===i?n:i,n),s=BV(zV(r-o,0)),a=0;oy;y++)if((a||y in m)&&(p=v(u=m[y],y,f),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return u;case 6:return y;case 2:xU(x,u)}else switch(t){case 4:return!1;case 7:xU(x,u)}return r?-1:n||o?o:x}},wU={forEach:_U(0),map:_U(1),filter:_U(2),some:_U(3),every:_U(4),find:_U(5),findIndex:_U(6),filterReject:_U(7)},EU=LB,kU=fF,OU=$F,CU=CF,TU=zF,IU=IN,SU=mF,AU=aL,RU=gN,DU=hB,PU=aN,MU=RL,FU=Oj,NU=YF,LU=DH,BU=uz,zU=RV,jU=MV,HU=pz,$U=BF,WU=sB,VU=aH,UU=WF,qU=WH,XU=XV,GU=GN,YU=iz,KU=uL,ZU=_L,QU=GV,JU=tU,tq=rU,eq=d$,iq=tH,nq=wU.forEach,oq=jj("hidden"),rq="Symbol",sq="prototype",aq=iq.set,dq=iq.getterFor(rq),lq=Object[sq],cq=kU.Symbol,hq=cq&&cq[sq],uq=kU.TypeError,pq=kU.QObject,fq=$U.f,mq=WU.f,vq=jU.f,gq=UU.f,yq=CU([].push),bq=GU("symbols"),xq=GU("op-symbols"),_q=GU("wks"),wq=!pq||!pq[sq]||!pq[sq].findChild,Eq=TU&&SU((function(){return 7!=LU(mq({},"a",{get:function(){return mq(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=fq(lq,e);n&&delete lq[e],mq(t,e,i),n&&t!==lq&&mq(lq,e,n)}:mq,kq=function(t,e){var i=bq[t]=LU(hq);return aq(i,{type:rq,tag:t,description:e}),TU||(i.description=e),i},Oq=function(t,e,i){t===lq&&Oq(xq,e,i),DU(t);var n=MU(e);return DU(i),AU(bq,n)?(i.enumerable?(AU(t,oq)&&t[oq][n]&&(t[oq][n]=!1),i=LU(i,{enumerable:NU(0,!1)})):(AU(t,oq)||mq(t,oq,NU(1,{})),t[oq][n]=!0),Eq(t,n,i)):mq(t,n,i)},Cq=function(t,e){DU(t);var i=PU(e),n=BU(i).concat(Aq(i));return nq(n,(function(e){TU&&!OU(Tq,i,e)||Oq(t,e,i[e])})),t},Tq=function(t){var e=MU(t),i=OU(gq,this,e);return!(this===lq&&AU(bq,e)&&!AU(xq,e))&&(!(i||!AU(this,e)||!AU(bq,e)||AU(this,oq)&&this[oq][e])||i)},Iq=function(t,e){var i=PU(t),n=MU(e);if(i!==lq||!AU(bq,n)||AU(xq,n)){var o=fq(i,n);return!o||!AU(bq,n)||AU(i,oq)&&i[oq][n]||(o.enumerable=!0),o}},Sq=function(t){var e=vq(PU(t)),i=[];return nq(e,(function(t){AU(bq,t)||AU(YU,t)||yq(i,t)})),i},Aq=function(t){var e=t===lq,i=vq(e?xq:PU(t)),n=[];return nq(i,(function(t){!AU(bq,t)||e&&!AU(lq,t)||yq(n,bq[t])})),n};IU||(cq=function(){if(RU(hq,this))throw uq("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?FU(arguments[0]):void 0,e=KU(t),i=function(t){this===lq&&OU(i,xq,t),AU(this,oq)&&AU(this[oq],e)&&(this[oq][e]=!1),Eq(this,e,NU(1,t))};return TU&&wq&&Eq(lq,e,{configurable:!0,set:i}),kq(e,t)},qU(hq=cq[sq],"toString",(function(){return dq(this).tag})),qU(cq,"withoutSetter",(function(t){return kq(KU(t),t)})),UU.f=Tq,WU.f=Oq,VU.f=Cq,$U.f=Iq,zU.f=jU.f=Sq,HU.f=Aq,QU.f=function(t){return kq(ZU(t),t)},TU&&XU(hq,"description",{configurable:!0,get:function(){return dq(this).description}})),EU({global:!0,constructor:!0,wrap:!0,forced:!IU,sham:!IU},{Symbol:cq}),nq(BU(_q),(function(t){JU(t)})),EU({target:rq,stat:!0,forced:!IU},{useSetter:function(){wq=!0},useSimple:function(){wq=!1}}),EU({target:"Object",stat:!0,forced:!IU,sham:!TU},{create:function(t,e){return void 0===e?LU(t):Cq(LU(t),e)},defineProperty:Oq,defineProperties:Cq,getOwnPropertyDescriptor:Iq}),EU({target:"Object",stat:!0,forced:!IU},{getOwnPropertyNames:Sq}),tq(),eq(cq,rq),YU[oq]=!0;var Rq=IN&&!!Symbol.for&&!!Symbol.keyFor,Dq=LB,Pq=vN,Mq=aL,Fq=Oj,Nq=GN,Lq=Rq,Bq=Nq("string-to-symbol-registry"),zq=Nq("symbol-to-string-registry");Dq({target:"Symbol",stat:!0,forced:!Lq},{for:function(t){var e=Fq(t);if(Mq(Bq,e))return Bq[e];var i=Pq("Symbol")(e);return Bq[e]=i,zq[i]=e,i}});var jq=LB,Hq=aL,$q=MN,Wq=NN,Vq=Rq,Uq=GN("symbol-to-string-registry");jq({target:"Symbol",stat:!0,forced:!Vq},{keyFor:function(t){if(!$q(t))throw TypeError(Wq(t)+" is not a symbol");if(Hq(Uq,t))return Uq[t]}});var qq=aU,Xq=LF,Gq=AF,Yq=Oj,Kq=CF([].push),Zq=LB,Qq=vN,Jq=_F,tX=$F,eX=CF,iX=mF,nX=LF,oX=MN,rX=Dz,sX=function(t){if(Xq(t))return t;if(qq(t)){for(var e=t.length,i=[],n=0;na;)void 0!==(i=o(n,e=r[a++]))&&KX(s,e,i);return s}});var ZX=hN.Object.getOwnPropertyDescriptors;!function(t){t.exports=ZX}(jX);var QX=cF(zX),JX={},tG={get exports(){return JX},set exports(t){JX=t}},eG={},iG={get exports(){return eG},set exports(t){eG=t}},nG=LB,oG=zF,rG=aH.f;nG({target:"Object",stat:!0,forced:Object.defineProperties!==rG,sham:!oG},{defineProperties:rG});var sG=hN.Object,aG=iG.exports=function(t,e){return sG.defineProperties(t,e)};sG.defineProperties.sham&&(aG.sham=!0);var dG=eG;!function(t){t.exports=dG}(tG);var lG=cF(JX),cG={},hG={get exports(){return cG},set exports(t){cG=t}},uG={},pG={get exports(){return uG},set exports(t){uG=t}},fG=LB,mG=zF,vG=sB.f;fG({target:"Object",stat:!0,forced:Object.defineProperty!==vG,sham:!mG},{defineProperty:vG});var gG=hN.Object,yG=pG.exports=function(t,e,i){return gG.defineProperty(t,e,i)};gG.defineProperty.sham&&(yG.sham=!0);var bG=uG;!function(t){t.exports=bG}(hG);var xG=cF(cG);function _G(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var wG={},EG={get exports(){return wG},set exports(t){wG=t}},kG={},OG={get exports(){return kG},set exports(t){kG=t}},CG=bG;!function(t){t.exports=CG}(OG),function(t){t.exports=kG}(EG);var TG=cF(wG),IG={},SG={get exports(){return IG},set exports(t){IG=t}},AG={},RG={get exports(){return AG},set exports(t){AG=t}},DG=TypeError,PG=function(t){if(t>9007199254740991)throw DG("Maximum allowed index exceeded");return t},MG=mF,FG=ON,NG=_L("species"),LG=function(t){return FG>=51||!MG((function(){var e=[];return(e.constructor={})[NG]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},BG=LB,zG=mF,jG=aU,HG=cN,$G=oL,WG=KB,VG=PG,UG=CW,qG=fU,XG=LG,GG=ON,YG=_L("isConcatSpreadable"),KG=GG>=51||!zG((function(){var t=[];return t[YG]=!1,t.concat()[0]!==t})),ZG=function(t){if(!HG(t))return!1;var e=t[YG];return void 0!==e?!!e:jG(t)};BG({target:"Array",proto:!0,arity:1,forced:!KG||!XG("concat")},{concat:function(t){var e,i,n,o,r,s=$G(this),a=qG(s,0),d=0;for(e=-1,n=arguments.length;et.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?arguments[1]:void 0)}});var eZ=qz("Array").map,iZ=gN,nZ=eZ,oZ=Array.prototype,rZ=function(t){var e=t.map;return t===oZ||iZ(oZ,t)&&e===oZ.map?nZ:e},sZ=rZ;!function(t){t.exports=sZ}(JK);var aZ=cF(QK),dZ={},lZ={get exports(){return dZ},set exports(t){dZ=t}},cZ=oL,hZ=uz;LB({target:"Object",stat:!0,forced:mF((function(){hZ(1)}))},{keys:function(t){return hZ(cZ(t))}});var uZ=hN.Object.keys;!function(t){t.exports=uZ}(lZ);var pZ=cF(dZ),fZ={},mZ={get exports(){return fZ},set exports(t){fZ=t}},vZ=LB,gZ=Date,yZ=CF(gZ.prototype.getTime);vZ({target:"Date",stat:!0},{now:function(){return yZ(new gZ)}});var bZ=hN.Date.now;!function(t){t.exports=bZ}(mZ);var xZ=cF(fZ),_Z={},wZ={get exports(){return _Z},set exports(t){_Z=t}},EZ=mF,kZ=function(t,e){var i=[][t];return!!i&&EZ((function(){i.call(null,e||function(){return 1},1)}))},OZ=wU.forEach,CZ=kZ("forEach")?[].forEach:function(t){return OZ(this,t,arguments.length>1?arguments[1]:void 0)};LB({target:"Array",proto:!0,forced:[].forEach!=CZ},{forEach:CZ});var TZ=qz("Array").forEach,IZ=wj,SZ=aL,AZ=gN,RZ=TZ,DZ=Array.prototype,PZ={DOMTokenList:!0,NodeList:!0},MZ=function(t){var e=t.forEach;return t===DZ||AZ(DZ,t)&&e===DZ.forEach||SZ(PZ,IZ(t))?RZ:e};!function(t){t.exports=MZ}(wZ);var FZ=cF(_Z),NZ={},LZ={get exports(){return NZ},set exports(t){NZ=t}},BZ=LB,zZ=aU,jZ=CF([].reverse),HZ=[1,2];BZ({target:"Array",proto:!0,forced:String(HZ)===String(HZ.reverse())},{reverse:function(){return zZ(this)&&(this.length=this.length),jZ(this)}});var $Z=qz("Array").reverse,WZ=gN,VZ=$Z,UZ=Array.prototype,qZ=function(t){var e=t.reverse;return t===UZ||WZ(UZ,t)&&e===UZ.reverse?VZ:e},XZ=qZ;!function(t){t.exports=XZ}(LZ);var GZ=cF(NZ),YZ={},KZ={get exports(){return YZ},set exports(t){YZ=t}},ZZ=zF,QZ=aU,JZ=TypeError,tQ=Object.getOwnPropertyDescriptor,eQ=ZZ&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),iQ=NN,nQ=TypeError,oQ=function(t,e){if(!delete t[e])throw nQ("Cannot delete property "+iQ(e)+" of "+iQ(t))},rQ=LB,sQ=oL,aQ=qB,dQ=$B,lQ=KB,cQ=eQ?function(t,e){if(QZ(t)&&!tQ(t,"length").writable)throw JZ("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},hQ=PG,uQ=fU,pQ=CW,fQ=oQ,mQ=LG("splice"),vQ=Math.max,gQ=Math.min;rQ({target:"Array",proto:!0,forced:!mQ},{splice:function(t,e){var i,n,o,r,s,a,d=sQ(this),l=lQ(d),c=aQ(t,l),h=arguments.length;for(0===h?i=n=0:1===h?(i=0,n=l-c):(i=h-2,n=gQ(vQ(dQ(e),0),l-c)),hQ(l+i-n),o=uQ(d,n),r=0;rl-n+i;r--)fQ(d,r-1)}else if(i>n)for(r=l-n;r>c;r--)a=r+i-1,(s=r+n-1)in d?d[a]=d[s]:fQ(d,a);for(r=0;r1?arguments[1]:void 0)}});var IQ=qz("Array").includes,SQ=cN,AQ=AF,RQ=_L("match"),DQ=function(t){var e;return SQ(t)&&(void 0!==(e=t[RQ])?!!e:"RegExp"==AQ(t))},PQ=TypeError,MQ=_L("match"),FQ=LB,NQ=function(t){if(DQ(t))throw PQ("The method doesn't accept regular expressions");return t},LQ=oN,BQ=Oj,zQ=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[MQ]=!1,"/./"[t](e)}catch(t){}}return!1},jQ=CF("".indexOf);FQ({target:"String",proto:!0,forced:!zQ("includes")},{includes:function(t){return!!~jQ(BQ(LQ(this)),BQ(NQ(t)),arguments.length>1?arguments[1]:void 0)}});var HQ=qz("String").includes,$Q=gN,WQ=IQ,VQ=HQ,UQ=Array.prototype,qQ=String.prototype,XQ=function(t){var e=t.includes;return t===UQ||$Q(UQ,t)&&e===UQ.includes?WQ:"string"==typeof t||t===qQ||$Q(qQ,t)&&e===qQ.includes?VQ:e},GQ=XQ;!function(t){t.exports=GQ}(CQ);var YQ=cF(OQ),KQ={},ZQ={get exports(){return KQ},set exports(t){KQ=t}},QQ=oL,JQ=HH,tJ=PH;LB({target:"Object",stat:!0,forced:mF((function(){JQ(1)})),sham:!tJ},{getPrototypeOf:function(t){return JQ(QQ(t))}});var eJ=hN.Object.getPrototypeOf;!function(t){t.exports=eJ}(ZQ);var iJ=cF(KQ),nJ={},oJ={get exports(){return nJ},set exports(t){nJ=t}},rJ=wU.filter;LB({target:"Array",proto:!0,forced:!LG("filter")},{filter:function(t){return rJ(this,t,arguments.length>1?arguments[1]:void 0)}});var sJ=qz("Array").filter,aJ=gN,dJ=sJ,lJ=Array.prototype,cJ=function(t){var e=t.filter;return t===lJ||aJ(lJ,t)&&e===lJ.filter?dJ:e},hJ=cJ;!function(t){t.exports=hJ}(oJ);var uJ=cF(nJ),pJ={},fJ={get exports(){return pJ},set exports(t){pJ=t}},mJ=zF,vJ=CF,gJ=uz,yJ=aN,bJ=vJ(WF.f),xJ=vJ([].push),_J=function(t){return function(e){for(var i,n=yJ(e),o=gJ(n),r=o.length,s=0,a=[];r>s;)i=o[s++],mJ&&!bJ(n,i)||xJ(a,t?[i,n[i]]:n[i]);return a}},wJ={entries:_J(!0),values:_J(!1)}.values;LB({target:"Object",stat:!0},{values:function(t){return wJ(t)}});var EJ=hN.Object.values;!function(t){t.exports=EJ}(fJ);var kJ={},OJ={get exports(){return kJ},set exports(t){kJ=t}},CJ="\t\n\v\f\r \u2028\u2029\ufeff",TJ=oN,IJ=Oj,SJ=CJ,AJ=CF("".replace),RJ=RegExp("^["+SJ+"]+"),DJ=RegExp("(^|[^"+SJ+"])["+SJ+"]+$"),PJ=function(t){return function(e){var i=IJ(TJ(e));return 1&t&&(i=AJ(i,RJ,"")),2&t&&(i=AJ(i,DJ,"$1")),i}},MJ={start:PJ(1),end:PJ(2),trim:PJ(3)},FJ=fF,NJ=mF,LJ=CF,BJ=Oj,zJ=MJ.trim,jJ=CJ,HJ=FJ.parseInt,$J=FJ.Symbol,WJ=$J&&$J.iterator,VJ=/^[+-]?0x/i,UJ=LJ(VJ.exec),qJ=8!==HJ(jJ+"08")||22!==HJ(jJ+"0x16")||WJ&&!NJ((function(){HJ(Object(WJ))}))?function(t,e){var i=zJ(BJ(t));return HJ(i,e>>>0||(UJ(VJ,i)?16:10))}:HJ;LB({global:!0,forced:parseInt!=qJ},{parseInt:qJ});var XJ=hN.parseInt;!function(t){t.exports=XJ}(OJ);var GJ=cF(kJ),YJ={},KJ={get exports(){return YJ},set exports(t){YJ=t}},ZJ=LB,QJ=ez.indexOf,JJ=kZ,t0=PF([].indexOf),e0=!!t0&&1/t0([1],1,-0)<0;ZJ({target:"Array",proto:!0,forced:e0||!JJ("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return e0?t0(this,t,e)||0:QJ(this,t,e)}});var i0=qz("Array").indexOf,n0=gN,o0=i0,r0=Array.prototype,s0=function(t){var e=t.indexOf;return t===r0||n0(r0,t)&&e===r0.indexOf?o0:e},a0=s0;!function(t){t.exports=a0}(KJ);var d0=cF(YJ),l0={},c0={get exports(){return l0},set exports(t){l0=t}},h0=sH.PROPER,u0=mF,p0=CJ,f0=MJ.trim;LB({target:"String",proto:!0,forced:function(t){return u0((function(){return!!p0[t]()||"
"!=="
"[t]()||h0&&p0[t].name!==t}))}("trim")},{trim:function(){return f0(this)}});var m0=qz("String").trim,v0=gN,g0=m0,y0=String.prototype,b0=function(t){var e=t.trim;return"string"==typeof t||t===y0||v0(y0,t)&&e===y0.trim?g0:e},x0=b0;!function(t){t.exports=x0}(c0);var _0={},w0={get exports(){return _0},set exports(t){_0=t}};LB({target:"Object",stat:!0,sham:!zF},{create:DH});var E0=hN.Object,k0=function(t,e){return E0.create(t,e)},O0=k0;!function(t){t.exports=O0}(w0);var C0=cF(_0),T0={},I0={get exports(){return T0},set exports(t){T0=t}},S0=hN,A0=_F;S0.JSON||(S0.JSON={stringify:JSON.stringify});var R0=function(t,e,i){return A0(S0.JSON.stringify,null,arguments)},D0=R0;!function(t){t.exports=D0}(I0);var P0=cF(T0),M0={},F0={get exports(){return M0},set exports(t){M0=t}},N0="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,L0=TypeError,B0=fF,z0=_F,j0=LF,H0=N0,$0=yN,W0=Dz,V0=function(t,e){if(ti,s=j0(n)?n:U0(n),a=r?W0(arguments,i):[],d=r?function(){z0(s,this,a)}:s;return e?t(d,o):t(d)}:t},G0=LB,Y0=fF,K0=X0(Y0.setInterval,!0);G0({global:!0,bind:!0,forced:Y0.setInterval!==K0},{setInterval:K0});var Z0=LB,Q0=fF,J0=X0(Q0.setTimeout,!0);Z0({global:!0,bind:!0,forced:Q0.setTimeout!==J0},{setTimeout:J0});var t1=hN.setTimeout;!function(t){t.exports=t1}(F0);var e1=cF(M0),i1={},n1={get exports(){return i1},set exports(t){i1=t}},o1=oL,r1=qB,s1=KB,a1=function(t){for(var e=o1(this),i=s1(e),n=arguments.length,o=r1(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:r1(r,i);s>o;)e[o++]=t;return e};LB({target:"Array",proto:!0},{fill:a1});var d1=qz("Array").fill,l1=gN,c1=d1,h1=Array.prototype,u1=function(t){var e=t.fill;return t===h1||l1(h1,t)&&e===h1.fill?c1:e},p1=u1;!function(t){t.exports=p1}(n1);var f1,m1=cF(i1);
+ */var GA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function KA(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ZA=function(t){return t&&t.Math===Math&&t},QA=ZA("object"==typeof globalThis&&globalThis)||ZA("object"==typeof window&&window)||ZA("object"==typeof self&&self)||ZA("object"==typeof GA&&GA)||function(){return this}()||GA||Function("return this")(),JA=function(t){try{return!!t()}catch(t){return!0}},tR=!JA((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),eR=tR,iR=Function.prototype,nR=iR.apply,oR=iR.call,rR="object"==typeof Reflect&&Reflect.apply||(eR?oR.bind(nR):function(){return oR.apply(nR,arguments)}),sR=tR,aR=Function.prototype,dR=aR.call,lR=sR&&aR.bind.bind(dR,dR),cR=sR?lR:function(t){return function(){return dR.apply(t,arguments)}},hR=cR,uR=hR({}.toString),pR=hR("".slice),fR=function(t){return pR(uR(t),8,-1)},mR=fR,vR=cR,gR=function(t){if("Function"===mR(t))return vR(t)},yR="object"==typeof document&&document.all,bR={all:yR,IS_HTMLDDA:void 0===yR&&void 0!==yR},xR=bR.all,_R=bR.IS_HTMLDDA?function(t){return"function"==typeof t||t===xR}:function(t){return"function"==typeof t},wR={},ER=!JA((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),kR=tR,OR=Function.prototype.call,CR=kR?OR.bind(OR):function(){return OR.apply(OR,arguments)},SR={},TR={}.propertyIsEnumerable,IR=Object.getOwnPropertyDescriptor,AR=IR&&!TR.call({1:2},1);SR.f=AR?function(t){var e=IR(this,t);return!!e&&e.enumerable}:TR;var RR,PR,DR=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},MR=JA,FR=fR,NR=Object,BR=cR("".split),LR=MR((function(){return!NR("z").propertyIsEnumerable(0)}))?function(t){return"String"===FR(t)?BR(t,""):NR(t)}:NR,zR=function(t){return null==t},jR=zR,HR=TypeError,$R=function(t){if(jR(t))throw new HR("Can't call method on "+t);return t},UR=LR,WR=$R,VR=function(t){return UR(WR(t))},qR=_R,XR=bR.all,YR=bR.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:qR(t)||t===XR}:function(t){return"object"==typeof t?null!==t:qR(t)},GR={},KR=GR,ZR=QA,QR=_R,JR=function(t){return QR(t)?t:void 0},tP=function(t,e){return arguments.length<2?JR(KR[t])||JR(ZR[t]):KR[t]&&KR[t][e]||ZR[t]&&ZR[t][e]},eP=cR({}.isPrototypeOf),iP="undefined"!=typeof navigator&&String(navigator.userAgent)||"",nP=QA,oP=iP,rP=nP.process,sP=nP.Deno,aP=rP&&rP.versions||sP&&sP.version,dP=aP&&aP.v8;dP&&(PR=(RR=dP.split("."))[0]>0&&RR[0]<4?1:+(RR[0]+RR[1])),!PR&&oP&&(!(RR=oP.match(/Edge\/(\d+)/))||RR[1]>=74)&&(RR=oP.match(/Chrome\/(\d+)/))&&(PR=+RR[1]);var lP=PR,cP=lP,hP=JA,uP=QA.String,pP=!!Object.getOwnPropertySymbols&&!hP((function(){var t=Symbol("symbol detection");return!uP(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&cP&&cP<41})),fP=pP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mP=tP,vP=_R,gP=eP,yP=Object,bP=fP?function(t){return"symbol"==typeof t}:function(t){var e=mP("Symbol");return vP(e)&&gP(e.prototype,yP(t))},xP=String,_P=function(t){try{return xP(t)}catch(t){return"Object"}},wP=_R,EP=_P,kP=TypeError,OP=function(t){if(wP(t))return t;throw new kP(EP(t)+" is not a function")},CP=OP,SP=zR,TP=function(t,e){var i=t[e];return SP(i)?void 0:CP(i)},IP=CR,AP=_R,RP=YR,PP=TypeError,DP={exports:{}},MP=QA,FP=Object.defineProperty,NP=function(t,e){try{FP(MP,t,{value:e,configurable:!0,writable:!0})}catch(i){MP[t]=e}return e},BP="__core-js_shared__",LP=QA[BP]||NP(BP,{}),zP=LP;(DP.exports=function(t,e){return zP[t]||(zP[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jP=DP.exports,HP=$R,$P=Object,UP=function(t){return $P(HP(t))},WP=UP,VP=cR({}.hasOwnProperty),qP=Object.hasOwn||function(t,e){return VP(WP(t),e)},XP=cR,YP=0,GP=Math.random(),KP=XP(1..toString),ZP=function(t){return"Symbol("+(void 0===t?"":t)+")_"+KP(++YP+GP,36)},QP=jP,JP=qP,tD=ZP,eD=pP,iD=fP,nD=QA.Symbol,oD=QP("wks"),rD=iD?nD.for||nD:nD&&nD.withoutSetter||tD,sD=function(t){return JP(oD,t)||(oD[t]=eD&&JP(nD,t)?nD[t]:rD("Symbol."+t)),oD[t]},aD=CR,dD=YR,lD=bP,cD=TP,hD=function(t,e){var i,n;if("string"===e&&AP(i=t.toString)&&!RP(n=IP(i,t)))return n;if(AP(i=t.valueOf)&&!RP(n=IP(i,t)))return n;if("string"!==e&&AP(i=t.toString)&&!RP(n=IP(i,t)))return n;throw new PP("Can't convert object to primitive value")},uD=TypeError,pD=sD("toPrimitive"),fD=function(t,e){if(!dD(t)||lD(t))return t;var i,n=cD(t,pD);if(n){if(void 0===e&&(e="default"),i=aD(n,t,e),!dD(i)||lD(i))return i;throw new uD("Can't convert object to primitive value")}return void 0===e&&(e="number"),hD(t,e)},mD=bP,vD=function(t){var e=fD(t,"string");return mD(e)?e:e+""},gD=YR,yD=QA.document,bD=gD(yD)&&gD(yD.createElement),xD=function(t){return bD?yD.createElement(t):{}},_D=xD,wD=!ER&&!JA((function(){return 7!==Object.defineProperty(_D("div"),"a",{get:function(){return 7}}).a})),ED=ER,kD=CR,OD=SR,CD=DR,SD=VR,TD=vD,ID=qP,AD=wD,RD=Object.getOwnPropertyDescriptor;wR.f=ED?RD:function(t,e){if(t=SD(t),e=TD(e),AD)try{return RD(t,e)}catch(t){}if(ID(t,e))return CD(!kD(OD.f,t,e),t[e])};var PD=JA,DD=_R,MD=/#|\.prototype\./,FD=function(t,e){var i=BD[ND(t)];return i===zD||i!==LD&&(DD(e)?PD(e):!!e)},ND=FD.normalize=function(t){return String(t).replace(MD,".").toLowerCase()},BD=FD.data={},LD=FD.NATIVE="N",zD=FD.POLYFILL="P",jD=FD,HD=OP,$D=tR,UD=gR(gR.bind),WD=function(t,e){return HD(t),void 0===e?t:$D?UD(t,e):function(){return t.apply(e,arguments)}},VD={},qD=ER&&JA((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),XD=YR,YD=String,GD=TypeError,KD=function(t){if(XD(t))return t;throw new GD(YD(t)+" is not an object")},ZD=ER,QD=wD,JD=qD,tM=KD,eM=vD,iM=TypeError,nM=Object.defineProperty,oM=Object.getOwnPropertyDescriptor,rM="enumerable",sM="configurable",aM="writable";VD.f=ZD?JD?function(t,e,i){if(tM(t),e=eM(e),tM(i),"function"==typeof t&&"prototype"===e&&"value"in i&&aM in i&&!i[aM]){var n=oM(t,e);n&&n[aM]&&(t[e]=i.value,i={configurable:sM in i?i[sM]:n[sM],enumerable:rM in i?i[rM]:n[rM],writable:!1})}return nM(t,e,i)}:nM:function(t,e,i){if(tM(t),e=eM(e),tM(i),QD)try{return nM(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new iM("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var dM=VD,lM=DR,cM=ER?function(t,e,i){return dM.f(t,e,lM(1,i))}:function(t,e,i){return t[e]=i,t},hM=QA,uM=rR,pM=gR,fM=_R,mM=wR.f,vM=jD,gM=GR,yM=WD,bM=cM,xM=qP,_M=function(t){var e=function(i,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,o)}return uM(t,this,arguments)};return e.prototype=t.prototype,e},wM=function(t,e){var i,n,o,r,s,a,d,l,c,h=t.target,u=t.global,p=t.stat,f=t.proto,m=u?hM:p?hM[h]:(hM[h]||{}).prototype,v=u?gM:gM[h]||bM(gM,h,{})[h],g=v.prototype;for(r in e)n=!(i=vM(u?r:h+(p?".":"#")+r,t.forced))&&m&&xM(m,r),a=v[r],n&&(d=t.dontCallGetSet?(c=mM(m,r))&&c.value:m[r]),s=n&&d?d:e[r],n&&typeof a==typeof s||(l=t.bind&&n?yM(s,hM):t.wrap&&n?_M(s):f&&fM(s)?pM(s):s,(t.sham||s&&s.sham||a&&a.sham)&&bM(l,"sham",!0),bM(v,r,l),f&&(xM(gM,o=h+"Prototype")||bM(gM,o,{}),bM(gM[o],r,s),t.real&&g&&(i||!g[r])&&bM(g,r,s)))},EM=Math.ceil,kM=Math.floor,OM=Math.trunc||function(t){var e=+t;return(e>0?kM:EM)(e)},CM=OM,SM=function(t){var e=+t;return e!=e||0===e?0:CM(e)},TM=SM,IM=Math.max,AM=Math.min,RM=function(t,e){var i=TM(t);return i<0?IM(i+e,0):AM(i,e)},PM=SM,DM=Math.min,MM=function(t){return t>0?DM(PM(t),9007199254740991):0},FM=function(t){return MM(t.length)},NM=VR,BM=RM,LM=FM,zM=function(t){return function(e,i,n){var o,r=NM(e),s=LM(r),a=BM(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},jM={includes:zM(!0),indexOf:zM(!1)},HM={},$M=qP,UM=VR,WM=jM.indexOf,VM=HM,qM=cR([].push),XM=function(t,e){var i,n=UM(t),o=0,r=[];for(i in n)!$M(VM,i)&&$M(n,i)&&qM(r,i);for(;e.length>o;)$M(n,i=e[o++])&&(~WM(r,i)||qM(r,i));return r},YM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],GM=XM,KM=YM,ZM=Object.keys||function(t){return GM(t,KM)},QM={};QM.f=Object.getOwnPropertySymbols;var JM=ER,tF=cR,eF=CR,iF=JA,nF=ZM,oF=QM,rF=SR,sF=UP,aF=LR,dF=Object.assign,lF=Object.defineProperty,cF=tF([].concat),hF=!dF||iF((function(){if(JM&&1!==dF({b:1},dF(lF({},"a",{enumerable:!0,get:function(){lF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!==dF({},t)[i]||nF(dF({},e)).join("")!==n}))?function(t,e){for(var i=sF(t),n=arguments.length,o=1,r=oF.f,s=rF.f;n>o;)for(var a,d=aF(arguments[o++]),l=r?cF(nF(d),r(d)):nF(d),c=l.length,h=0;c>h;)a=l[h++],JM&&!eF(s,d,a)||(i[a]=d[a]);return i}:dF,uF=hF;wM({target:"Object",stat:!0,arity:2,forced:Object.assign!==uF},{assign:uF});var pF=KA(GR.Object.assign),fF=cR([].slice),mF=cR,vF=OP,gF=YR,yF=qP,bF=fF,xF=tR,_F=Function,wF=mF([].concat),EF=mF([].join),kF={},OF=xF?_F.bind:function(t){var e=vF(this),i=e.prototype,n=bF(arguments,1),o=function(){var i=wF(n,bF(arguments));return this instanceof o?function(t,e,i){if(!yF(kF,e)){for(var n=[],o=0;o=.1;)(f=+r[h++%s])>c&&(f=c),p=Math.sqrt(f*f/(1+l*l)),e+=p=a<0?-p:p,i+=l*p,!0===u?t.lineTo(e,i):t.moveTo(e,i),c-=f,u=!u}var HF={circle:NF,dashedLine:jF,database:zF,diamond:function(t,e,i,n){t.beginPath(),t.lineTo(e,i+n),t.lineTo(e+n,i),t.lineTo(e,i-n),t.lineTo(e-n,i),t.closePath()},ellipse:LF,ellipse_vis:LF,hexagon:function(t,e,i,n){t.beginPath();var o=2*Math.PI/6;t.moveTo(e+n,i);for(var r=1;r<6;r++)t.lineTo(e+n*Math.cos(o*r),i+n*Math.sin(o*r));t.closePath()},roundRect:BF,square:function(t,e,i,n){t.beginPath(),t.rect(e-n,i-n,2*n,2*n),t.closePath()},star:function(t,e,i,n){t.beginPath(),i+=.1*(n*=.82);for(var o=0;o<10;o++){var r=o%2==0?1.3*n:.5*n;t.lineTo(e+r*Math.sin(2*o*Math.PI/10),i-r*Math.cos(2*o*Math.PI/10))}t.closePath()},triangle:function(t,e,i,n){t.beginPath(),i+=.275*(n*=1.15);var o=2*n,r=o/2,s=Math.sqrt(3)/6*o,a=Math.sqrt(o*o-r*r);t.moveTo(e,i-(a-s)),t.lineTo(e+r,i+s),t.lineTo(e-r,i+s),t.lineTo(e,i-(a-s)),t.closePath()},triangleDown:function(t,e,i,n){t.beginPath(),i-=.275*(n*=1.15);var o=2*n,r=o/2,s=Math.sqrt(3)/6*o,a=Math.sqrt(o*o-r*r);t.moveTo(e,i+(a-s)),t.lineTo(e+r,i-s),t.lineTo(e-r,i-s),t.lineTo(e,i+(a-s)),t.closePath()}};var $F={exports:{}};!function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o=a?t?"":void 0:(n=cN(r,s))<55296||n>56319||s+1===a||(o=cN(r,s+1))<56320||o>57343?t?lN(r,s):n:t?hN(r,s,s+2):o-56320+(n-55296<<10)+65536}},pN={codeAt:uN(!1),charAt:uN(!0)},fN=_R,mN=QA.WeakMap,vN=fN(mN)&&/native code/.test(String(mN)),gN=ZP,yN=jP("keys"),bN=function(t){return yN[t]||(yN[t]=gN(t))},xN=vN,_N=QA,wN=YR,EN=cM,kN=qP,ON=LP,CN=bN,SN=HM,TN="Object already initialized",IN=_N.TypeError,AN=_N.WeakMap;if(xN||ON.state){var RN=ON.state||(ON.state=new AN);RN.get=RN.get,RN.has=RN.has,RN.set=RN.set,VF=function(t,e){if(RN.has(t))throw new IN(TN);return e.facade=t,RN.set(t,e),e},qF=function(t){return RN.get(t)||{}},XF=function(t){return RN.has(t)}}else{var PN=CN("state");SN[PN]=!0,VF=function(t,e){if(kN(t,PN))throw new IN(TN);return e.facade=t,EN(t,PN,e),e},qF=function(t){return kN(t,PN)?t[PN]:{}},XF=function(t){return kN(t,PN)}}var DN={set:VF,get:qF,has:XF,enforce:function(t){return XF(t)?qF(t):VF(t,{})},getterFor:function(t){return function(e){var i;if(!wN(e)||(i=qF(e)).type!==t)throw new IN("Incompatible receiver, "+t+" required");return i}}},MN=ER,FN=qP,NN=Function.prototype,BN=MN&&Object.getOwnPropertyDescriptor,LN=FN(NN,"name"),zN={EXISTS:LN,PROPER:LN&&"something"===function(){}.name,CONFIGURABLE:LN&&(!MN||MN&&BN(NN,"name").configurable)},jN={},HN=ER,$N=qD,UN=VD,WN=KD,VN=VR,qN=ZM;jN.f=HN&&!$N?Object.defineProperties:function(t,e){WN(t);for(var i,n=VN(e),o=qN(e),r=o.length,s=0;r>s;)UN.f(t,i=o[s++],n[i]);return t};var XN,YN=tP("document","documentElement"),GN=KD,KN=jN,ZN=YM,QN=HM,JN=YN,tB=xD,eB="prototype",iB="script",nB=bN("IE_PROTO"),oB=function(){},rB=function(t){return"<"+iB+">"+t+""+iB+">"},sB=function(t){t.write(rB("")),t.close();var e=t.parentWindow.Object;return t=null,e},aB=function(){try{XN=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;aB="undefined"!=typeof document?document.domain&&XN?sB(XN):(e=tB("iframe"),i="java"+iB+":",e.style.display="none",JN.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(rB("document.F=Object")),t.close(),t.F):sB(XN);for(var n=ZN.length;n--;)delete aB[eB][ZN[n]];return aB()};QN[nB]=!0;var dB,lB,cB,hB=Object.create||function(t,e){var i;return null!==t?(oB[eB]=GN(t),i=new oB,oB[eB]=null,i[nB]=t):i=aB(),void 0===e?i:KN.f(i,e)},uB=!JA((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),pB=qP,fB=_R,mB=UP,vB=uB,gB=bN("IE_PROTO"),yB=Object,bB=yB.prototype,xB=vB?yB.getPrototypeOf:function(t){var e=mB(t);if(pB(e,gB))return e[gB];var i=e.constructor;return fB(i)&&e instanceof i?i.prototype:e instanceof yB?bB:null},_B=cM,wB=function(t,e,i,n){return n&&n.enumerable?t[e]=i:_B(t,e,i),t},EB=JA,kB=_R,OB=YR,CB=hB,SB=xB,TB=wB,IB=sD("iterator"),AB=!1;[].keys&&("next"in(cB=[].keys())?(lB=SB(SB(cB)))!==Object.prototype&&(dB=lB):AB=!0);var RB=!OB(dB)||EB((function(){var t={};return dB[IB].call(t)!==t}));kB((dB=RB?{}:CB(dB))[IB])||TB(dB,IB,(function(){return this}));var PB={IteratorPrototype:dB,BUGGY_SAFARI_ITERATORS:AB},DB=eN,MB=YF?{}.toString:function(){return"[object "+DB(this)+"]"},FB=YF,NB=VD.f,BB=cM,LB=qP,zB=MB,jB=sD("toStringTag"),HB=function(t,e,i,n){if(t){var o=i?t:t.prototype;LB(o,jB)||NB(o,jB,{configurable:!0,value:e}),n&&!FB&&BB(o,"toString",zB)}},$B={},UB=PB.IteratorPrototype,WB=hB,VB=DR,qB=HB,XB=$B,YB=function(){return this},GB=cR,KB=OP,ZB=_R,QB=String,JB=TypeError,tL=function(t,e,i){try{return GB(KB(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}},eL=KD,iL=function(t){if("object"==typeof t||ZB(t))return t;throw new JB("Can't set "+QB(t)+" as a prototype")},nL=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=tL(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return eL(i),iL(n),e?t(i,n):i.__proto__=n,i}}():void 0),oL=wM,rL=CR,sL=function(t,e,i,n){var o=e+" Iterator";return t.prototype=WB(UB,{next:VB(+!n,i)}),qB(t,o,!1,!0),XB[o]=YB,t},aL=xB,dL=HB,lL=wB,cL=$B,hL=zN.PROPER,uL=PB.BUGGY_SAFARI_ITERATORS,pL=sD("iterator"),fL="keys",mL="values",vL="entries",gL=function(){return this},yL=function(t,e,i,n,o,r,s){sL(i,e,n);var a,d,l,c=function(t){if(t===o&&m)return m;if(!uL&&t&&t in p)return p[t];switch(t){case fL:case mL:case vL:return function(){return new i(this,t)}}return function(){return new i(this)}},h=e+" Iterator",u=!1,p=t.prototype,f=p[pL]||p["@@iterator"]||o&&p[o],m=!uL&&f||c(o),v="Array"===e&&p.entries||f;if(v&&(a=aL(v.call(new t)))!==Object.prototype&&a.next&&(dL(a,h,!0,!0),cL[h]=gL),hL&&o===mL&&f&&f.name!==mL&&(u=!0,m=function(){return rL(f,this)}),o)if(d={values:c(mL),keys:r?m:c(fL),entries:c(vL)},s)for(l in d)(uL||u||!(l in p))&&lL(p,l,d[l]);else oL({target:e,proto:!0,forced:uL||u},d);return s&&p[pL]!==m&&lL(p,pL,m,{name:o}),cL[e]=m,d},bL=function(t,e){return{value:t,done:e}},xL=pN.charAt,_L=oN,wL=DN,EL=yL,kL=bL,OL="String Iterator",CL=wL.set,SL=wL.getterFor(OL);EL(String,"String",(function(t){CL(this,{type:OL,string:_L(t),index:0})}),(function(){var t,e=SL(this),i=e.string,n=e.index;return n>=i.length?kL(void 0,!0):(t=xL(i,n),e.index+=t.length,kL(t,!1))}));var TL=CR,IL=KD,AL=TP,RL=function(t,e,i){var n,o;IL(t);try{if(!(n=AL(t,"return"))){if("throw"===e)throw i;return i}n=TL(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw i;if(o)throw n;return IL(n),i},PL=KD,DL=RL,ML=$B,FL=sD("iterator"),NL=Array.prototype,BL=function(t){return void 0!==t&&(ML.Array===t||NL[FL]===t)},LL=_R,zL=LP,jL=cR(Function.toString);LL(zL.inspectSource)||(zL.inspectSource=function(t){return jL(t)});var HL=zL.inspectSource,$L=cR,UL=JA,WL=_R,VL=eN,qL=HL,XL=function(){},YL=[],GL=tP("Reflect","construct"),KL=/^\s*(?:class|function)\b/,ZL=$L(KL.exec),QL=!KL.test(XL),JL=function(t){if(!WL(t))return!1;try{return GL(XL,YL,t),!0}catch(t){return!1}},tz=function(t){if(!WL(t))return!1;switch(VL(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return QL||!!ZL(KL,qL(t))}catch(t){return!0}};tz.sham=!0;var ez=!GL||UL((function(){var t;return JL(JL.call)||!JL(Object)||!JL((function(){t=!0}))||t}))?tz:JL,iz=vD,nz=VD,oz=DR,rz=function(t,e,i){var n=iz(e);n in t?nz.f(t,n,oz(0,i)):t[n]=i},sz=eN,az=TP,dz=zR,lz=$B,cz=sD("iterator"),hz=function(t){if(!dz(t))return az(t,cz)||az(t,"@@iterator")||lz[sz(t)]},uz=CR,pz=OP,fz=KD,mz=_P,vz=hz,gz=TypeError,yz=function(t,e){var i=arguments.length<2?vz(t):e;if(pz(i))return fz(uz(i,t));throw new gz(mz(t)+" is not iterable")},bz=WD,xz=CR,_z=UP,wz=function(t,e,i,n){try{return n?e(PL(i)[0],i[1]):e(i)}catch(e){DL(t,"throw",e)}},Ez=BL,kz=ez,Oz=FM,Cz=rz,Sz=yz,Tz=hz,Iz=Array,Az=sD("iterator"),Rz=!1;try{var Pz=0,Dz={next:function(){return{done:!!Pz++}},return:function(){Rz=!0}};Dz[Az]=function(){return this},Array.from(Dz,(function(){throw 2}))}catch(t){}var Mz=function(t){var e=_z(t),i=kz(this),n=arguments.length,o=n>1?arguments[1]:void 0,r=void 0!==o;r&&(o=bz(o,n>2?arguments[2]:void 0));var s,a,d,l,c,h,u=Tz(e),p=0;if(!u||this===Iz&&Ez(u))for(s=Oz(e),a=i?new this(s):Iz(s);s>p;p++)h=r?o(e[p],p):e[p],Cz(a,p,h);else for(c=(l=Sz(e,u)).next,a=i?new this:[];!(d=xz(c,l)).done;p++)h=r?wz(l,o,[d.value,p],!0):d.value,Cz(a,p,h);return a.length=p,a},Fz=function(t,e){try{if(!e&&!Rz)return!1}catch(t){return!1}var i=!1;try{var n={};n[Az]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i};wM({target:"Array",stat:!0,forced:!Fz((function(t){Array.from(t)}))},{from:Mz});var Nz=GR.Array.from,Bz=KA(Nz),Lz=VR,zz=$B,jz=DN;VD.f;var Hz=yL,$z=bL,Uz="Array Iterator",Wz=jz.set,Vz=jz.getterFor(Uz);Hz(Array,"Array",(function(t,e){Wz(this,{type:Uz,target:Lz(t),index:0,kind:e})}),(function(){var t=Vz(this),e=t.target,i=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,$z(void 0,!0);switch(i){case"keys":return $z(n,!1);case"values":return $z(e[n],!1)}return $z([n,e[n]],!1)}),"values"),zz.Arguments=zz.Array;var qz=hz,Xz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Yz=QA,Gz=eN,Kz=cM,Zz=$B,Qz=sD("toStringTag");for(var Jz in Xz){var tj=Yz[Jz],ej=tj&&tj.prototype;ej&&Gz(ej)!==Qz&&Kz(ej,Qz,Jz),Zz[Jz]=Zz.Array}var ij=qz,nj=KA(ij),oj=KA(ij);function rj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var sj={exports:{}},aj=wM,dj=ER,lj=VD.f;aj({target:"Object",stat:!0,forced:Object.defineProperty!==lj,sham:!dj},{defineProperty:lj});var cj=GR.Object,hj=sj.exports=function(t,e,i){return cj.defineProperty(t,e,i)};cj.defineProperty.sham&&(hj.sham=!0);var uj=sj.exports,pj=KA(uj),fj=fR,mj=Array.isArray||function(t){return"Array"===fj(t)},vj=TypeError,gj=function(t){if(t>9007199254740991)throw vj("Maximum allowed index exceeded");return t},yj=mj,bj=ez,xj=YR,_j=sD("species"),wj=Array,Ej=function(t){var e;return yj(t)&&(e=t.constructor,(bj(e)&&(e===wj||yj(e.prototype))||xj(e)&&null===(e=e[_j]))&&(e=void 0)),void 0===e?wj:e},kj=function(t,e){return new(Ej(t))(0===e?0:e)},Oj=JA,Cj=lP,Sj=sD("species"),Tj=function(t){return Cj>=51||!Oj((function(){var e=[];return(e.constructor={})[Sj]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ij=wM,Aj=JA,Rj=mj,Pj=YR,Dj=UP,Mj=FM,Fj=gj,Nj=rz,Bj=kj,Lj=Tj,zj=lP,jj=sD("isConcatSpreadable"),Hj=zj>=51||!Aj((function(){var t=[];return t[jj]=!1,t.concat()[0]!==t})),$j=function(t){if(!Pj(t))return!1;var e=t[jj];return void 0!==e?!!e:Rj(t)};Ij({target:"Array",proto:!0,arity:1,forced:!Hj||!Lj("concat")},{concat:function(t){var e,i,n,o,r,s=Dj(this),a=Bj(s,0),d=0;for(e=-1,n=arguments.length;ey;y++)if((a||y in m)&&(p=v(u=m[y],y,f),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return u;case 6:return y;case 2:EH(x,u)}else switch(t){case 4:return!1;case 7:EH(x,u)}return r?-1:n||o?o:x}},OH={forEach:kH(0),map:kH(1),filter:kH(2),some:kH(3),every:kH(4),find:kH(5),findIndex:kH(6),filterReject:kH(7)},CH=wM,SH=QA,TH=CR,IH=cR,AH=ER,RH=pP,PH=JA,DH=qP,MH=eP,FH=KD,NH=VR,BH=vD,LH=oN,zH=DR,jH=hB,HH=ZM,$H=Uj,UH=qj,WH=QM,VH=wR,qH=VD,XH=jN,YH=SR,GH=wB,KH=rH,ZH=jP,QH=HM,JH=ZP,t$=sD,e$=sH,i$=uH,n$=gH,o$=HB,r$=DN,s$=OH.forEach,a$=bN("hidden"),d$="Symbol",l$="prototype",c$=r$.set,h$=r$.getterFor(d$),u$=Object[l$],p$=SH.Symbol,f$=p$&&p$[l$],m$=SH.RangeError,v$=SH.TypeError,g$=SH.QObject,y$=VH.f,b$=qH.f,x$=UH.f,_$=YH.f,w$=IH([].push),E$=ZH("symbols"),k$=ZH("op-symbols"),O$=ZH("wks"),C$=!g$||!g$[l$]||!g$[l$].findChild,S$=function(t,e,i){var n=y$(u$,e);n&&delete u$[e],b$(t,e,i),n&&t!==u$&&b$(u$,e,n)},T$=AH&&PH((function(){return 7!==jH(b$({},"a",{get:function(){return b$(this,"a",{value:7}).a}})).a}))?S$:b$,I$=function(t,e){var i=E$[t]=jH(f$);return c$(i,{type:d$,tag:t,description:e}),AH||(i.description=e),i},A$=function(t,e,i){t===u$&&A$(k$,e,i),FH(t);var n=BH(e);return FH(i),DH(E$,n)?(i.enumerable?(DH(t,a$)&&t[a$][n]&&(t[a$][n]=!1),i=jH(i,{enumerable:zH(0,!1)})):(DH(t,a$)||b$(t,a$,zH(1,{})),t[a$][n]=!0),T$(t,n,i)):b$(t,n,i)},R$=function(t,e){FH(t);var i=NH(e),n=HH(i).concat(F$(i));return s$(n,(function(e){AH&&!TH(P$,i,e)||A$(t,e,i[e])})),t},P$=function(t){var e=BH(t),i=TH(_$,this,e);return!(this===u$&&DH(E$,e)&&!DH(k$,e))&&(!(i||!DH(this,e)||!DH(E$,e)||DH(this,a$)&&this[a$][e])||i)},D$=function(t,e){var i=NH(t),n=BH(e);if(i!==u$||!DH(E$,n)||DH(k$,n)){var o=y$(i,n);return!o||!DH(E$,n)||DH(i,a$)&&i[a$][n]||(o.enumerable=!0),o}},M$=function(t){var e=x$(NH(t)),i=[];return s$(e,(function(t){DH(E$,t)||DH(QH,t)||w$(i,t)})),i},F$=function(t){var e=t===u$,i=x$(e?k$:NH(t)),n=[];return s$(i,(function(t){!DH(E$,t)||e&&!DH(u$,t)||w$(n,E$[t])})),n};RH||(p$=function(){if(MH(f$,this))throw new v$("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?LH(arguments[0]):void 0,e=JH(t),i=function(t){this===u$&&TH(i,k$,t),DH(this,a$)&&DH(this[a$],e)&&(this[a$][e]=!1);var n=zH(1,t);try{T$(this,e,n)}catch(t){if(!(t instanceof m$))throw t;S$(this,e,n)}};return AH&&C$&&T$(u$,e,{configurable:!0,set:i}),I$(e,t)},GH(f$=p$[l$],"toString",(function(){return h$(this).tag})),GH(p$,"withoutSetter",(function(t){return I$(JH(t),t)})),YH.f=P$,qH.f=A$,XH.f=R$,VH.f=D$,$H.f=UH.f=M$,WH.f=F$,e$.f=function(t){return I$(t$(t),t)},AH&&KH(f$,"description",{configurable:!0,get:function(){return h$(this).description}})),CH({global:!0,constructor:!0,wrap:!0,forced:!RH,sham:!RH},{Symbol:p$}),s$(HH(O$),(function(t){i$(t)})),CH({target:d$,stat:!0,forced:!RH},{useSetter:function(){C$=!0},useSimple:function(){C$=!1}}),CH({target:"Object",stat:!0,forced:!RH,sham:!AH},{create:function(t,e){return void 0===e?jH(t):R$(jH(t),e)},defineProperty:A$,defineProperties:R$,getOwnPropertyDescriptor:D$}),CH({target:"Object",stat:!0,forced:!RH},{getOwnPropertyNames:M$}),n$(),o$(p$,d$),QH[a$]=!0;var N$=pP&&!!Symbol.for&&!!Symbol.keyFor,B$=wM,L$=tP,z$=qP,j$=oN,H$=jP,$$=N$,U$=H$("string-to-symbol-registry"),W$=H$("symbol-to-string-registry");B$({target:"Symbol",stat:!0,forced:!$$},{for:function(t){var e=j$(t);if(z$(U$,e))return U$[e];var i=L$("Symbol")(e);return U$[e]=i,W$[i]=e,i}});var V$=wM,q$=qP,X$=bP,Y$=_P,G$=N$,K$=jP("symbol-to-string-registry");V$({target:"Symbol",stat:!0,forced:!G$},{keyFor:function(t){if(!X$(t))throw new TypeError(Y$(t)+" is not a symbol");if(q$(K$,t))return K$[t]}});var Z$=mj,Q$=_R,J$=fR,tU=oN,eU=cR([].push),iU=wM,nU=tP,oU=rR,rU=CR,sU=cR,aU=JA,dU=_R,lU=bP,cU=fF,hU=function(t){if(Q$(t))return t;if(Z$(t)){for(var e=t.length,i=[],n=0;nt.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?arguments[1]:void 0)}});var vV=TF("Array").map,gV=eP,yV=vV,bV=Array.prototype,xV=function(t){var e=t.map;return t===bV||gV(bV,t)&&e===bV.map?yV:e},_V=KA(xV),wV=UP,EV=ZM;wM({target:"Object",stat:!0,forced:JA((function(){EV(1)}))},{keys:function(t){return EV(wV(t))}});var kV=KA(GR.Object.keys),OV=wM,CV=Date,SV=cR(CV.prototype.getTime);OV({target:"Date",stat:!0},{now:function(){return SV(new CV)}});var TV=KA(GR.Date.now),IV=JA,AV=function(t,e){var i=[][t];return!!i&&IV((function(){i.call(null,e||function(){return 1},1)}))},RV=OH.forEach,PV=AV("forEach")?[].forEach:function(t){return RV(this,t,arguments.length>1?arguments[1]:void 0)};wM({target:"Array",proto:!0,forced:[].forEach!==PV},{forEach:PV});var DV=TF("Array").forEach,MV=eN,FV=qP,NV=eP,BV=DV,LV=Array.prototype,zV={DOMTokenList:!0,NodeList:!0},jV=function(t){var e=t.forEach;return t===LV||NV(LV,t)&&e===LV.forEach||FV(zV,MV(t))?BV:e},HV=KA(jV),$V=wM,UV=mj,WV=cR([].reverse),VV=[1,2];$V({target:"Array",proto:!0,forced:String(VV)===String(VV.reverse())},{reverse:function(){return UV(this)&&(this.length=this.length),WV(this)}});var qV=TF("Array").reverse,XV=eP,YV=qV,GV=Array.prototype,KV=function(t){var e=t.reverse;return t===GV||XV(GV,t)&&e===GV.reverse?YV:e},ZV=KA(KV),QV=_P,JV=TypeError,tq=function(t,e){if(!delete t[e])throw new JV("Cannot delete property "+QV(e)+" of "+QV(t))},eq=wM,iq=UP,nq=RM,oq=SM,rq=FM,sq=gW,aq=gj,dq=kj,lq=rz,cq=tq,hq=Tj("splice"),uq=Math.max,pq=Math.min;eq({target:"Array",proto:!0,forced:!hq},{splice:function(t,e){var i,n,o,r,s,a,d=iq(this),l=rq(d),c=nq(t,l),h=arguments.length;for(0===h?i=n=0:1===h?(i=0,n=l-c):(i=h-2,n=pq(uq(oq(e),0),l-c)),aq(l+i-n),o=dq(d,n),r=0;rl-n+i;r--)cq(d,r-1)}else if(i>n)for(r=l-n;r>c;r--)a=r+i-1,(s=r+n-1)in d?d[a]=d[s]:cq(d,a);for(r=0;r1?arguments[1]:void 0)}});var _q=TF("Array").includes,wq=YR,Eq=fR,kq=sD("match"),Oq=function(t){var e;return wq(t)&&(void 0!==(e=t[kq])?!!e:"RegExp"===Eq(t))},Cq=TypeError,Sq=sD("match"),Tq=wM,Iq=function(t){if(Oq(t))throw new Cq("The method doesn't accept regular expressions");return t},Aq=$R,Rq=oN,Pq=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[Sq]=!1,"/./"[t](e)}catch(t){}}return!1},Dq=cR("".indexOf);Tq({target:"String",proto:!0,forced:!Pq("includes")},{includes:function(t){return!!~Dq(Rq(Aq(this)),Rq(Iq(t)),arguments.length>1?arguments[1]:void 0)}});var Mq=TF("String").includes,Fq=eP,Nq=_q,Bq=Mq,Lq=Array.prototype,zq=String.prototype,jq=function(t){var e=t.includes;return t===Lq||Fq(Lq,t)&&e===Lq.includes?Nq:"string"==typeof t||t===zq||Fq(zq,t)&&e===zq.includes?Bq:e},Hq=KA(jq),$q=UP,Uq=xB,Wq=uB;wM({target:"Object",stat:!0,forced:JA((function(){Uq(1)})),sham:!Wq},{getPrototypeOf:function(t){return Uq($q(t))}});var Vq=GR.Object.getPrototypeOf,qq=KA(Vq),Xq=OH.filter;wM({target:"Array",proto:!0,forced:!Tj("filter")},{filter:function(t){return Xq(this,t,arguments.length>1?arguments[1]:void 0)}});var Yq=TF("Array").filter,Gq=eP,Kq=Yq,Zq=Array.prototype,Qq=function(t){var e=t.filter;return t===Zq||Gq(Zq,t)&&e===Zq.filter?Kq:e},Jq=KA(Qq),tX="\t\n\v\f\r \u2028\u2029\ufeff",eX=$R,iX=oN,nX=tX,oX=cR("".replace),rX=RegExp("^["+nX+"]+"),sX=RegExp("(^|[^"+nX+"])["+nX+"]+$"),aX=function(t){return function(e){var i=iX(eX(e));return 1&t&&(i=oX(i,rX,"")),2&t&&(i=oX(i,sX,"$1")),i}},dX={start:aX(1),end:aX(2),trim:aX(3)},lX=QA,cX=JA,hX=cR,uX=oN,pX=dX.trim,fX=tX,mX=lX.parseInt,vX=lX.Symbol,gX=vX&&vX.iterator,yX=/^[+-]?0x/i,bX=hX(yX.exec),xX=8!==mX(fX+"08")||22!==mX(fX+"0x16")||gX&&!cX((function(){mX(Object(gX))}))?function(t,e){var i=pX(uX(t));return mX(i,e>>>0||(bX(yX,i)?16:10))}:mX;wM({global:!0,forced:parseInt!==xX},{parseInt:xX});var _X=KA(GR.parseInt),wX=wM,EX=jM.indexOf,kX=AV,OX=gR([].indexOf),CX=!!OX&&1/OX([1],1,-0)<0;wX({target:"Array",proto:!0,forced:CX||!kX("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return CX?OX(this,t,e)||0:EX(this,t,e)}});var SX=TF("Array").indexOf,TX=eP,IX=SX,AX=Array.prototype,RX=function(t){var e=t.indexOf;return t===AX||TX(AX,t)&&e===AX.indexOf?IX:e},PX=KA(RX);wM({target:"Object",stat:!0,sham:!ER},{create:hB});var DX=GR.Object,MX=function(t,e){return DX.create(t,e)},FX=MX,NX=KA(FX),BX=GR,LX=rR;BX.JSON||(BX.JSON={stringify:JSON.stringify});var zX=function(t,e,i){return LX(BX.JSON.stringify,null,arguments)},jX=KA(zX),HX="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,$X=TypeError,UX=QA,WX=rR,VX=_R,qX=HX,XX=iP,YX=fF,GX=function(t,e){if(ti,s=VX(n)?n:KX(n),a=r?YX(arguments,i):[],d=r?function(){WX(s,this,a)}:s;return e?t(d,o):t(d)}:t},JX=wM,tY=QA,eY=QX(tY.setInterval,!0);JX({global:!0,bind:!0,forced:tY.setInterval!==eY},{setInterval:eY});var iY=wM,nY=QA,oY=QX(nY.setTimeout,!0);iY({global:!0,bind:!0,forced:nY.setTimeout!==oY},{setTimeout:oY});var rY=KA(GR.setTimeout),sY=UP,aY=RM,dY=FM,lY=function(t){for(var e=sY(this),i=dY(e),n=arguments.length,o=aY(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:aY(r,i);s>o;)e[o++]=t;return e};wM({target:"Array",proto:!0},{fill:lY});var cY,hY=TF("Array").fill,uY=eP,pY=hY,fY=Array.prototype,mY=function(t){var e=t.fill;return t===fY||uY(fY,t)&&e===fY.fill?pY:e},vY=KA(mY);
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
- * Licensed under the MIT license */function v1(){return v1=Object.assign||function(t){for(var e=1;e-1}var o2=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===S1&&(t=this.compute()),I1&&this.manager.element.style&&F1[t]&&(this.manager.element.style[T1]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return e2(this.manager.recognizers,(function(e){i2(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(n2(t,D1))return D1;var e=n2(t,P1),i=n2(t,M1);return e&&i?D1:e||i?e?P1:M1:n2(t,R1)?R1:A1}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=n2(n,D1)&&!F1[D1],r=n2(n,M1)&&!F1[M1],s=n2(n,P1)&&!F1[P1];if(o){var a=1===t.pointers.length,d=t.distance<2,l=t.deltaTime<250;if(a&&d&&l)return}if(!s||!r)return o||r&&i&K1||s&&i&Z1?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function r2(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function s2(t){var e=t.length;if(1===e)return{x:E1(t[0].clientX),y:E1(t[0].clientY)};for(var i=0,n=0,o=0;o=k1(e)?t<0?q1:X1:e<0?G1:Y1}function h2(t,e,i){return{x:e/t||0,y:i/t||0}}function u2(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=a2(e)),o>1&&!i.firstMultiple?i.firstMultiple=a2(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,d=e.center=s2(n);e.timeStamp=O1(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=l2(a,d),e.distance=d2(a,d),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==$1&&r.eventType!==W1||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=c2(e.deltaX,e.deltaY);var l,c,h=h2(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=k1(h.x)>k1(h.y)?h.x:h.y,e.scale=s?(l=s.pointers,d2((c=n)[0],c[1],t2)/d2(l[0],l[1],t2)):1,e.rotation=s?function(t,e){return l2(e[1],e[0],t2)+l2(t[1],t[0],t2)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==V1&&(a>H1||void 0===s.velocity)){var d=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,c=h2(a,d,l);n=c.x,o=c.y,i=k1(c.x)>k1(c.y)?c.x:c.y,r=c2(d,l),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var u,p=t.element,f=e.srcEvent;r2(u=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=u),e.target=p}function p2(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=e&$1&&n-o==0,s=e&(W1|V1)&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,u2(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function f2(t){return t.trim().split(/\s+/g)}function m2(t,e,i){e2(f2(e),(function(e){t.addEventListener(e,i,!1)}))}function v2(t,e,i){e2(f2(e),(function(e){t.removeEventListener(e,i,!1)}))}function g2(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var y2=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){i2(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&m2(this.element,this.evEl,this.domHandler),this.evTarget&&m2(this.target,this.evTarget,this.domHandler),this.evWin&&m2(g2(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&v2(this.element,this.evEl,this.domHandler),this.evTarget&&v2(this.target,this.evTarget,this.domHandler),this.evWin&&v2(g2(this.element),this.evWin,this.domHandler)},t}();function b2(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]})):n.sort()),n}var T2={touchstart:$1,touchmove:2,touchend:W1,touchcancel:V1},I2=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return g1(e,t),e.prototype.handler=function(t){var e=T2[t.type],i=S2.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:z1,srcEvent:t})},e}(y2);function S2(t,e){var i,n,o=O2(t.touches),r=this.targetIds;if(e&(2|$1)&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=O2(t.changedTouches),a=[],d=this.target;if(n=o.filter((function(t){return r2(t.target,d)})),e===$1)for(i=0;i-1&&n.splice(t,1)}),D2)}}function M2(t,e){t&$1?(this.primaryTouch=e.changedPointers[0].identifier,P2.call(this,e)):t&(W1|V1)&&P2.call(this,e)}function F2(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+H2(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+H2(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=B2},e.canEmit=function(){for(var t=0;te.threshold&&o&e.direction},i.attrTest=function(t){return V2.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=U2(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(V2),X2=function(t){function e(e){return void 0===e&&(e={}),t.call(this,v1({event:"swipe",threshold:10,velocity:.3,direction:K1|Z1,pointers:1},e))||this}g1(e,t);var i=e.prototype;return i.getTouchAction=function(){return q2.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return n&(K1|Z1)?i=e.overallVelocity:n&K1?i=e.overallVelocityX:n&Z1&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&k1(i)>this.options.velocity&&e.eventType&W1},i.emit=function(t){var e=U2(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(V2),G2=function(t){function e(e){return void 0===e&&(e={}),t.call(this,v1({event:"pinch",threshold:0,pointers:2},e))||this}g1(e,t);var i=e.prototype;return i.getTouchAction=function(){return[D1]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(V2),Y2=function(t){function e(e){return void 0===e&&(e={}),t.call(this,v1({event:"rotate",threshold:0,pointers:2},e))||this}g1(e,t);var i=e.prototype;return i.getTouchAction=function(){return[D1]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(V2),K2=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,v1({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}g1(e,t);var i=e.prototype;return i.getTouchAction=function(){return[A1]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distancei.time;if(this._input=t,!o||!n||t.eventType&(W1|V1)&&!r)this.reset();else if(t.eventType&$1)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(t.eventType&W1)return 8;return B2},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&t.eventType&W1?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=O1(),this.manager.emit(this.options.event,this._input)))},e}($2),Z2={domEvents:!1,touchAction:S1,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Q2=[[Y2,{enable:!1}],[G2,{enable:!1},["rotate"]],[X2,{direction:K1}],[q2,{direction:K1},["swipe"]],[W2],[W2,{event:"doubletap",taps:2},["tap"]],[K2]];function J2(t,e){var i,n=t.element;n.style&&(e2(t.options.cssProps,(function(o,r){i=C1(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var t5=function(){function t(t,e){var i,n=this;this.options=x1({},Z2,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(L1?k2:B1?I2:N1?N2:R2))(i,p2),this.touchAction=new o2(this,this.options.touchAction),J2(this,!0),e2(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return x1(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var r5=o5((function(t,e,i){for(var n=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function u5(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),i=t(" "),n=t(" "),o=0;o2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==RY(e[n]))E5(t,e,n,i);else{var o=t[n],r=e[n];w5(o)&&w5(r)&&k5(o,r,i)}}function O5(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ZK(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o3&&void 0!==arguments[3]&&arguments[3];if(ZK(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&!YQ(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?T5(e[o],i[o]):E5(e,i,o,n);else if(ZK(i[o])){e[o]=[];for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===i)if("object"===RY(e[o])&&null!==e[o]&&iJ(e[o])===Object.prototype)void 0===t[o]?t[o]=T5({},e[o],i):"object"===RY(t[o])&&null!==t[o]&&iJ(t[o])===Object.prototype?T5(t[o],e[o],i):E5(t,e,o,n);else if(ZK(e[o])){var r;t[o]=UK(r=e[o]).call(r)}else E5(t,e,o,n);return t}function I5(t,e){var i;return $K(i=[]).call(i,AK(t),[e])}function S5(t){return t.getBoundingClientRect().top}function A5(t,e){if(ZK(t))for(var i=t.length,n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},r=function(t){return null!==t&&"object"===RY(t)};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var s=e[i],a=r(n)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(n),d=a?n[i]:void 0,l=d?d.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return r(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!r(t[i])){if(!o(d))return;t[i]=C0(d)}if(r(s)){var c=!0;void 0!==s.enabled?c=s.enabled:void 0!==l&&(c=d.enabled),function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}(t,e,i),t[i].enabled=c}}}var $5={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function W5(t,e){var i;ZK(e)||(e=[e]);var n,o=h5(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r){i=r[e[0]];for(var s=1;s0&&void 0!==arguments[0]?arguments[0]:1;_G(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return jY(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return V5[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===_5(t)){if(!0===z5(t)){var o=t.substr(4).substr(0,t.length-5).split(",");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===function(t){return b5.test(t)}(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===B5(t)){var s=R5(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+P0(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Sz({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",e1((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Sz({},t)),this.color=t;var e=F5(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),r=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=F5(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=N5(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=F5(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),m1(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var o=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var r=document.createElement("DIV");r.style.color="red",r.style.fontWeight="bold",r.style.padding="10px",r.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(r)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Jz(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Jz(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Jz(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Jz(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new f5(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,o,r=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,s),this.centerCoordinates={x:.5*r,y:.5*s},this.r=.49*r;var a,d=2*Math.PI/360,l=1/this.r;for(n=0;n<360;n++)for(o=0;o3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};_G(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.hideOption=r,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Sz(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new U5(o),this.wrapper=void 0}return jY(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(ZK(t))this.options.filter=t.join();else if("object"===RY(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==uJ(t)&&(this.options.filter=uJ(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===uJ(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=uJ(this.options),e=0,i=!1;for(var n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===d0(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?i-1:0),o=1;o2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===i){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(q5("i","b",t))}else n.innerText=t+":";return n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var o=0;void 0!==e&&-1!==d0(t).call(t,e)&&(o=d0(t).call(t,e));for(var r=0;rr&&1!==r&&(a.max=Math.ceil(e*c),l=a.max,d="range increased"),a.value=e}else a.value=n;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=a.value;var u=this;a.onchange=function(){h.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){h.value=this.value};var p=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,p,a,h);""!==d&&this.popupHistory[f]!==l&&(this.popupHistory[f]=l,this._setupPopup(d,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=uJ(this.options),r=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){n=!0;var a=t[s],d=I5(e,s);if("function"==typeof o&&!1===(n=o(s,e))&&!ZK(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,d,!0),this.allowCreation=!1===i),!1!==n){r=!0;var l=this._getValue(d);if(ZK(a))this._handleArray(a,l,d);else if("string"==typeof a)this._makeTextInput(a,l,d);else if("boolean"==typeof a)this._makeCheckbox(a,l,d);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var c=I5(d,"enabled"),h=this._getValue(c);if(!0===h){var u=this._makeLabel(s,d,!0);this._makeItem(d,u),r=this._handleObject(a,d)||r}else this._makeCheckbox(a,h,d)}else{var p=this._makeLabel(s,d,!0);this._makeItem(d,p),r=this._handleObject(a,d)||r}}else console.error("dont know how to handle",a,s,d)}}return r}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var o=0;oo-this.padding&&(a=!0),r=a?this.x-i:this.x,s=d?this.y-e:this.y}else(s=this.y-e)+e+this.padding>n&&(s=n-e-this.padding),so&&(r=o-i-this.padding),rs.distance?" in "+t.printLocation(r.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):r.distance<=8?'. Did you mean "'+r.closestMatch+'"?'+t.printLocation(r.path,e):". Did you mean one of these: "+t.print(pZ(i))+t.printLocation(n,e),console.error('%cUnknown option detected: "'+e+'"'+o,Z5),K5=!0}},{key:"findInOptions",value:function(e,i,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,a="",d=[],l=e.toLowerCase(),c=void 0;for(var h in i){var u=void 0;if(void 0!==i[h].__type__&&!0===r){var p=t.findInOptions(e,i[h],I5(n,h));s>p.distance&&(a=p.closestMatch,d=p.path,s=p.distance,c=p.indexMatch)}else{var f;-1!==d0(f=h.toLowerCase()).call(f,l)&&(c=h),s>(u=t.levenshteinDistance(e,h))&&(a=h,d=UK(o=n).call(o),s=u)}}return{closestMatch:a,path:d,distance:s,indexMatch:c}}},{key:"printLocation",value:function(t,e){for(var i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",n=0;n":!0,"--":!0},c3="",h3=0,u3="",p3="",f3=d3.NULL;function m3(){h3++,u3=c3.charAt(h3)}function v3(){return c3.charAt(h3+1)}function g3(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function y3(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function b3(t,e,i){for(var n=e.split("."),o=t;n.length;){var r=n.shift();n.length?(o[r]||(o[r]={}),o=o[r]):o[r]=i}}function x3(t,e){for(var i,n,o=null,r=[t],s=t;s.parent;)r.push(s.parent),s=s.parent;if(s.nodes)for(i=0,n=s.nodes.length;i=0;i--){var a,d=r[i];d.nodes||(d.nodes=[]),-1===d0(a=d.nodes).call(a,o)&&d.nodes.push(o)}e.attr&&(o.attr=y3(o.attr,e.attr))}function _3(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=y3({},t.edge);e.attr=y3(i,e.attr)}}function w3(t,e,i,n,o){var r={from:e,to:i,type:n};return t.edge&&(r.attr=y3({},t.edge)),r.attr=y3(r.attr||{},o),null!=o&&o.hasOwnProperty("arrows")&&null!=o.arrows&&(r.arrows={to:{enabled:!0,type:o.arrows.type}},o.arrows=null),r}function E3(){for(f3=d3.NULL,p3="";" "===u3||"\t"===u3||"\n"===u3||"\r"===u3;)m3();do{var t=!1;if("#"===u3){for(var e=h3-1;" "===c3.charAt(e)||"\t"===c3.charAt(e);)e--;if("\n"===c3.charAt(e)||""===c3.charAt(e)){for(;""!=u3&&"\n"!=u3;)m3();t=!0}}if("/"===u3&&"/"===v3()){for(;""!=u3&&"\n"!=u3;)m3();t=!0}if("/"===u3&&"*"===v3()){for(;""!=u3;){if("*"===u3&&"/"===v3()){m3(),m3();break}m3()}t=!0}for(;" "===u3||"\t"===u3||"\n"===u3||"\r"===u3;)m3()}while(t);if(""!==u3){var i=u3+v3();if(l3[i])return f3=d3.DELIMITER,p3=i,m3(),void m3();if(l3[u3])return f3=d3.DELIMITER,p3=u3,void m3();if(g3(u3)||"-"===u3){for(p3+=u3,m3();g3(u3);)p3+=u3,m3();return"false"===p3?p3=!1:"true"===p3?p3=!0:isNaN(Number(p3))||(p3=Number(p3)),void(f3=d3.IDENTIFIER)}if('"'===u3){for(m3();""!=u3&&('"'!=u3||'"'===u3&&'"'===v3());)'"'===u3?(p3+=u3,m3()):"\\"===u3&&"n"===v3()?(p3+="\n",m3()):p3+=u3,m3();if('"'!=u3)throw S3('End of string " expected');return m3(),void(f3=d3.IDENTIFIER)}for(f3=d3.UNKNOWN;""!=u3;)p3+=u3,m3();throw new SyntaxError('Syntax error in part "'+A3(p3,30)+'"')}f3=d3.DELIMITER}function k3(t){for(;""!==p3&&"}"!=p3;)O3(t),";"===p3&&E3()}function O3(t){var e=C3(t);if(e)T3(t,e);else{var i=function(t){if("node"===p3)return E3(),t.node=I3(),"node";if("edge"===p3)return E3(),t.edge=I3(),"edge";if("graph"===p3)return E3(),t.graph=I3(),"graph";return null}(t);if(!i){if(f3!=d3.IDENTIFIER)throw S3("Identifier expected");var n=p3;if(E3(),"="===p3){if(E3(),f3!=d3.IDENTIFIER)throw S3("Identifier expected");t[n]=p3,E3()}else!function(t,e){var i={id:e},n=I3();n&&(i.attr=n);x3(t,i),T3(t,e)}(t,n)}}}function C3(t){var e=null;if("subgraph"===p3&&((e={}).type="subgraph",E3(),f3===d3.IDENTIFIER&&(e.id=p3,E3())),"{"===p3){if(E3(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,k3(e),"}"!=p3)throw S3("Angle bracket } expected");E3(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function T3(t,e){for(;"->"===p3||"--"===p3;){var i,n=p3;E3();var o=C3(t);if(o)i=o;else{if(f3!=d3.IDENTIFIER)throw S3("Identifier or subgraph expected");x3(t,{id:i=p3}),E3()}_3(t,w3(t,e,i,n,I3())),e=i}}function I3(){for(var t,e,i=null,n={dashed:!0,solid:!1,dotted:[1,5]},o={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},r=new Array,s=new Array;"["===p3;){for(E3(),i={};""!==p3&&"]"!=p3;){if(f3!=d3.IDENTIFIER)throw S3("Attribute name expected");var a=p3;if(E3(),"="!=p3)throw S3("Equal sign = expected");if(E3(),f3!=d3.IDENTIFIER)throw S3("Attribute value expected");var d=p3;"style"===a&&(d=n[d]),"arrowhead"===a&&(a="arrows",d={to:{enabled:!0,type:o[d]}}),"arrowtail"===a&&(a="arrows",d={from:{enabled:!0,type:o[d]}}),r.push({attr:i,name:a,value:d}),s.push(a),E3(),","==p3&&E3()}if("]"!=p3)throw S3("Bracket ] expected");E3()}if(YQ(s).call(s,"dir")){var l={arrows:{}};for(t=0;t"===t.type&&(e.arrows="to"),e};FZ(o=i.edges).call(o,(function(t){var e,i,o,s;(e=t.from instanceof Object?t.from.nodes:{id:t.from},i=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges)&&FZ(o=t.from.edges).call(o,(function(t){var e=r(t);n.edges.push(e)}));(function(t,e,i){ZK(t)?FZ(t).call(t,(function(t){ZK(e)?FZ(e).call(e,(function(e){i(t,e)})):i(t,e)})):ZK(e)?FZ(e).call(e,(function(e){i(t,e)})):i(t,e)}(e,i,(function(e,i){var o=w3(n,e.id,i.id,t.type,t.attr),s=r(o);n.edges.push(s)})),t.to instanceof Object&&t.to.edges)&&FZ(s=t.to.edges).call(s,(function(t){var e=r(t);n.edges.push(e)}))}))}return i.attr&&(n.options=i.attr),n}var M3=Object.freeze({__proto__:null,cn:{addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},cs:{addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},de:{addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},en:{addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},es:{addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},fr:{addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},it:{addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nl:{addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},pt:{addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},ru:{addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},uk:{addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"}});var F3=function(){function t(){_G(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return jY(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var i=Math.floor(e/2),n=Math.floor(e/4),o=Math.floor(e/8),r=Math.floor(e/16),s=Math.floor(t/2),a=Math.floor(t/4),d=Math.floor(t/8),l=Math.floor(t/16);this.canvas.width=3*a,this.canvas.height=i,this.coordinates=[[0,0,s,i],[s,0,a,n],[s,n,d,o],[5*d,n,l,r]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var i=1;i2){e*=.5;for(var s=0;e>2&&s=this.NUM_ITERATIONS&&(s=this.NUM_ITERATIONS-1);var a=this.coordinates[s];t.drawImage(this.canvas,a[0],a[1],a[2],a[3],i,n,o,r)}else t.drawImage(this.image,i,n,o,r)}}]),t}(),N3=function(){function t(e){_G(this,t),this.images={},this.imageBroken={},this.callback=e}return jY(t,[{key:"_tryloadBrokenUrl",value:function(t,e,i){void 0!==t&&void 0!==i&&(void 0!==e?(i.image.onerror=function(){console.error("Could not load brokenImage:",e)},i.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var i=this,n=this.images[t];if(n)return n;var o=new F3;return this.images[t]=o,o.image.onload=function(){i._fixImageCoordinates(o.image),o.init(),i._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",t),i._tryloadBrokenUrl(t,e,o)},o.image.src=t,o}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),L3={},B3={get exports(){return L3},set exports(t){L3=t}},z3={},j3={get exports(){return z3},set exports(t){z3=t}},H3=mF((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),$3=mF,W3=cN,V3=AF,U3=H3,q3=Object.isExtensible,X3=$3((function(){q3(1)}))||U3?function(t){return!!W3(t)&&((!U3||"ArrayBuffer"!=V3(t))&&(!q3||q3(t)))}:q3,G3=!mF((function(){return Object.isExtensible(Object.preventExtensions({}))})),Y3=LB,K3=CF,Z3=iz,Q3=cN,J3=aL,t4=sB.f,e4=RV,i4=MV,n4=X3,o4=G3,r4=!1,s4=uL("meta"),a4=0,d4=function(t){t4(t,s4,{value:{objectID:"O"+a4++,weakData:{}}})},l4=j3.exports={enable:function(){l4.enable=function(){},r4=!0;var t=e4.f,e=K3([].splice),i={};i[s4]=1,t(i).length&&(e4.f=function(i){for(var n=t(i),o=0,r=n.length;or;r++)if((a=g(t[r]))&&v4(w4,a))return a;return new _4(!1)}n=g4(t,o)}for(d=u?t.next:n.next;!(l=h4(d,n)).done;){try{a=g(l.value)}catch(t){b4(n,"throw",t)}if("object"==typeof a&&a&&v4(w4,a))return a}return new _4(!1)},k4=gN,O4=TypeError,C4=function(t,e){if(k4(e,t))return t;throw O4("Incorrect invocation")},T4=LB,I4=fF,S4=z3,A4=mF,R4=OB,D4=E4,P4=C4,M4=LF,F4=cN,N4=d$,L4=sB.f,B4=wU.forEach,z4=zF,j4=tH.set,H4=tH.getterFor,$4=function(t,e,i){var n,o=-1!==t.indexOf("Map"),r=-1!==t.indexOf("Weak"),s=o?"set":"add",a=I4[t],d=a&&a.prototype,l={};if(z4&&M4(a)&&(r||d.forEach&&!A4((function(){(new a).entries().next()})))){var c=(n=e((function(e,i){j4(P4(e,c),{type:t,collection:new a}),null!=i&&D4(i,e[s],{that:e,AS_ENTRIES:o})}))).prototype,h=H4(t);B4(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in d)||r&&"clear"==t||R4(c,t,(function(i,n){var o=h(this).collection;if(!e&&r&&!F4(i))return"get"==t&&void 0;var s=o[t](0===i?0:i,n);return e?this:s}))})),r||L4(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else n=i.getConstructor(e,t,o,s),S4.enable();return N4(n,t,!1,!0),l[t]=n,T4({global:!0,forced:!0},l),r||i.setStrong(n,t,o),n},W4=WH,V4=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:W4(t,n,e[n],i);return t},U4=vN,q4=XV,X4=zF,G4=_L("species"),Y4=DH,K4=XV,Z4=V4,Q4=rB,J4=C4,t6=eN,e6=E4,i6=z$,n6=j$,o6=function(t){var e=U4(t);X4&&e&&!e[G4]&&q4(e,G4,{configurable:!0,get:function(){return this}})},r6=zF,s6=z3.fastKey,a6=tH.set,d6=tH.getterFor,l6={getConstructor:function(t,e,i,n){var o=t((function(t,o){J4(t,r),a6(t,{type:e,index:Y4(null),first:void 0,last:void 0,size:0}),r6||(t.size=0),t6(o)||e6(o,t[n],{that:t,AS_ENTRIES:i})})),r=o.prototype,s=d6(e),a=function(t,e,i){var n,o,r=s(t),a=d(t,e);return a?a.value=i:(r.last=a={index:o=s6(e,!0),key:e,value:i,previous:n=r.last,next:void 0,removed:!1},r.first||(r.first=a),n&&(n.next=a),r6?r.size++:t.size++,"F"!==o&&(r.index[o]=a)),t},d=function(t,e){var i,n=s(t),o=s6(e);if("F"!==o)return n.index[o];for(i=n.first;i;i=i.next)if(i.key==e)return i};return Z4(r,{clear:function(){for(var t=s(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,r6?t.size=0:this.size=0},delete:function(t){var e=this,i=s(e),n=d(e,t);if(n){var o=n.next,r=n.previous;delete i.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),i.first==n&&(i.first=o),i.last==n&&(i.last=r),r6?i.size--:e.size--}return!!n},forEach:function(t){for(var e,i=s(this),n=Q4(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!d(this,t)}}),Z4(r,i?{get:function(t){var e=d(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),r6&&K4(r,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,i){var n=e+" Iterator",o=d6(e),r=d6(n);i6(t,e,(function(t,e){a6(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?n6("keys"==e?i.key:"values"==e?i.value:[i.key,i.value],!1):(t.target=void 0,n6(void 0,!0))}),i?"entries":"values",!i,!0),o6(e)}};$4("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),l6);var c6=hN.Map;!function(t){t.exports=c6}(B3);var h6=cF(L3),u6=function(){function t(){_G(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Sz(this.options,this.defaultOptions)}return jY(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&-1===d0(e).call(e,i)){var n=t[i];this.add(i,n)}}},{key:"clear",value:function(){this._groups=new h6,this._groupNames=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._groups.get(t);if(void 0===i&&e)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){var n=this._groupIndex%this._groupNames.length;++this._groupIndex,(i={}).color=this._groups.get(this._groupNames[n]),this._groups.set(t,i)}else{var o=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,(i={}).color=this._defaultGroups[o],this._groups.set(t,i)}return i}},{key:"add",value:function(t,e){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,e),e}}]),t}(),p6={},f6={get exports(){return p6},set exports(t){p6=t}};LB({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var m6=hN.Number.isNaN;!function(t){t.exports=m6}(f6);var v6=cF(p6),g6={},y6={get exports(){return g6},set exports(t){g6=t}},b6=fF.isFinite,x6=Number.isFinite||function(t){return"number"==typeof t&&b6(t)};LB({target:"Number",stat:!0},{isFinite:x6});var _6=hN.Number.isFinite;!function(t){t.exports=_6}(y6);var w6=cF(g6),E6={},k6={get exports(){return E6},set exports(t){E6=t}},O6=wU.some;LB({target:"Array",proto:!0,forced:!kZ("some")},{some:function(t){return O6(this,t,arguments.length>1?arguments[1]:void 0)}});var C6=qz("Array").some,T6=gN,I6=C6,S6=Array.prototype,A6=function(t){var e=t.some;return t===S6||T6(S6,t)&&e===S6.some?I6:e},R6=A6;!function(t){t.exports=R6}(k6);var D6=cF(E6),P6={},M6={get exports(){return P6},set exports(t){P6=t}},F6=fF,N6=mF,L6=Oj,B6=MJ.trim,z6=CJ,j6=CF("".charAt),H6=F6.parseFloat,$6=F6.Symbol,W6=$6&&$6.iterator,V6=1/H6(z6+"-0")!=-1/0||W6&&!N6((function(){H6(Object(W6))}))?function(t){var e=B6(L6(t)),i=H6(e);return 0===i&&"-"==j6(e,0)?-0:i}:H6;LB({global:!0,forced:parseFloat!=V6},{parseFloat:V6});var U6=hN.parseFloat;!function(t){t.exports=U6}(M6);var q6=cF(P6),X6={},G6={get exports(){return X6},set exports(t){X6=t}},Y6=LB,K6=mF,Z6=MV.f;Y6({target:"Object",stat:!0,forced:K6((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:Z6});var Q6=hN.Object,J6=function(t){return Q6.getOwnPropertyNames(t)},t7=J6;!function(t){t.exports=t7}(G6);var e7=cF(X6);function i7(t,e){var i=["node","edge","label"],n=!0,o=W5(e,"chosen");if("boolean"==typeof o)n=o;else if("object"===RY(o)){if(-1===d0(i).call(i,t))throw new Error("choosify: subOption '"+t+"' should be one of '"+i.join("', '")+"'");var r=W5(e,["chosen",t]);"boolean"!=typeof r&&"function"!=typeof r||(n=r)}return n}function n7(t,e,i){if(t.width<=0||t.height<=0)return!1;if(void 0!==i){var n={x:e.x-i.x,y:e.y-i.y};if(0!==i.angle){var o=-i.angle;e={x:Math.cos(o)*n.x-Math.sin(o)*n.y,y:Math.sin(o)*n.x+Math.cos(o)*n.y}}else e=n}var r=t.x+t.width,s=t.y+t.width;return t.lefte.x&&t.tope.y}function o7(t){return"string"==typeof t&&""!==t}function r7(t,e,i,n){var o=n.x,r=n.y;if("function"==typeof n.distanceToBorder){var s=n.distanceToBorder(t,e),a=Math.sin(e)*s,d=Math.cos(e)*s;d===s?(o+=s,r=n.y):a===s?(o=n.x,r-=s):(o+=d,r-=a)}else n.shape.width>n.shape.height?(o=n.x+.5*n.shape.width,r=n.y-i):(o=n.x+i,r=n.y-.5*n.shape.height);return{x:o,y:r}}var s7={},a7={get exports(){return s7},set exports(t){s7=t}},d7=qz("Array").values,l7=wj,c7=aL,h7=gN,u7=d7,p7=Array.prototype,f7={DOMTokenList:!0,NodeList:!0},m7=function(t){var e=t.values;return t===p7||h7(p7,t)&&e===p7.values||c7(f7,l7(t))?u7:e};!function(t){t.exports=m7}(a7);var v7=cF(s7),g7=function(){function t(e){_G(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return jY(t,[{key:"_add",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var n=e;void 0!==e&&""!==e||(n=" ");var o=this.measureText(n,i),r=Sz({},v7(o));r.text=e,r.width=o.width,r.mod=i,void 0!==e&&""!==e||(r.width=0),this.lines[t].blocks.push(r),this.lines[t].width+=r.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;tt&&(t=n.width),e+=n.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e"://,""://,""://,"
":/<\/b>/," ":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},b7=function(){function t(e){_G(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return jY(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e))&&(this.setTag(t),!0)}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=SK(this.prepareRegExp(t),2),n=i[0],o=i[1],r=n.test(this.text.substr(this.position,o));return r&&e&&(this.position+=o-1),r}},{key:"parseEndTag",value:function(t,e,i){var n=this.mod()===t;return!(!(n="mono"===t?n&&this.mono:n&&!this.mono)||!this.match(e))&&(void 0!==i?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(t):this.unsetTag(t),!0)}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,i;if(t instanceof RegExp)i=t,e=1;else{var n=y7[t];i=void 0!==n?n:new RegExp(t),e=t.length}return[i,e]}}]),t}(),x7=function(){function t(e,i,n,o){var r=this;_G(this,t),this.ctx=e,this.parent=i,this.selected=n,this.hover=o;this.lines=new g7((function(t,i){if(void 0===t)return 0;var s=r.parent.getFormattingValues(e,n,o,i),a=0;""!==t&&(a=r.ctx.measureText(t).width);return{width:a,values:s}}))}return jY(t,[{key:"process",value:function(t){if(!o7(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var i=String(t).split("\n"),n=i.length;if(e.multi)for(var o=0;o0)for(var s=0;s0)for(var u=0;u")||e.parseStartTag("ital","")||e.parseStartTag("mono","")||e.parseEndTag("bold","")||e.parseEndTag("ital","
")||e.parseEndTag("mono",""))||i(n)||e.add(n),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,i=new b7(t),n=!0,o=function(t){return!!/\\/.test(t)&&(i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",i=0;i1&&void 0!==arguments[1]?arguments[1]:"normal",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var n=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");n.length>0;){var o=this.getLongestFit(n);if(0===o){var r=n[0],s=this.getLongestFitWord(r);this.lines.newLine(UK(r).call(r,0,s),e),n[0]=UK(r).call(r,s)}else{var a=o;" "===n[o-1]?o--:" "===n[a]&&a++;var d=UK(n).call(n,0,o).join("");o==n.length&&i?this.lines.append(d,e):this.lines.newLine(d,e),n=UK(n).call(n,a)}}}}]),t}(),_7=["bold","ital","boldital","mono"],w7=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_G(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(i),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return jY(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),o7(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===RY(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var i=this;A5(_7,(function(t){i.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:A5(e,(function(t,e){null!=t&&"object"!==RY(t)&&(i.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=W5(t,"widthConstraint");if("number"==typeof i)e.maxWdt=Number(i),e.minWdt=Number(i);else if("object"===RY(i)){var n=W5(t,["widthConstraint","maximum"]);"number"==typeof n&&(e.maxWdt=Number(n));var o=W5(t,["widthConstraint","minimum"]);"number"==typeof o&&(e.minWdt=Number(o))}var r=W5(t,"heightConstraint");if("number"==typeof r)e.minHgt=Number(r);else if("object"===RY(r)){var s=W5(t,["heightConstraint","minimum"]);"number"==typeof s&&(e.minHgt=Number(s));var a=W5(t,["heightConstraint","valign"]);"string"==typeof a&&("top"!==a&&"bottom"!==a||(e.valign=a))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),T5(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=i7("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var i=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(t,e){for(var i=0;i5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var s=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&s=this.elementOptions.scaling.label.maxVisible&&(s=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,n,o,e,i,r),this._drawBackground(t),this._drawText(t,e,this.size.yLine,r,s))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",o=arguments.length>4?arguments[4]:void 0,r=SK(this._setAlignment(t,e,i,n),2);e=r[0],i=r[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(i-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(i+=(this.size.height-this.size.labelHeight)/2));for(var s=0;s0&&(t.lineWidth=c.strokeWidth,t.strokeStyle=p,t.lineJoin="round"),t.fillStyle=u,c.strokeWidth>0&&t.strokeText(c.text,e+d,i+c.vadjust),t.fillText(c.text,e+d,i+c.vadjust),d+=c.width}i+=a.height}}}},{key:"_setAlignment",value:function(t,e,i,n){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf){e=0,i=0;"top"===this.fontOptions.align?(t.textBaseline="alphabetic",i-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",i+=4):t.textBaseline="middle"}else t.textBaseline=n;return[e,i]}},{key:"_getColor",value:function(t,e,i){var n=t||"#000000",o=i||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var r=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));n=D5(n,r),o=D5(o,r)}return[n,o]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var i=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=i,e=.5*-this.size.height;break;case"top":t=i,e=-(this.size.height+2);break;case"bottom":t=i,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,i),this.size.left=n-.5*this.size.width,this.size.top=o-.5*this.size.height,this.size.yLine=o+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===r&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,i,n){var o=function(t,e,i){return"normal"===e?"mod"===i?"":t[i]:void 0!==t[e][i]?t[e][i]:t[i]},r={color:o(this.fontOptions,n,"color"),size:o(this.fontOptions,n,"size"),face:o(this.fontOptions,n,"face"),mod:o(this.fontOptions,n,"mod"),vadjust:o(this.fontOptions,n,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||i)&&("normal"===n&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?r.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(r,this.elementOptions.id,e,i));var s="";return void 0!==r.mod&&""!==r.mod&&(s+=r.mod+" "),s+=r.size+"px "+r.face,t.font=s.replace(/"/g,""),r.font=t.font,r.height=r.size,r}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,i,n){return new x7(t,this,e,i).process(n)}},{key:"_processLabel",value:function(t,e,i){if(!1!==this.labelDirty||this.differentState(e,i)){var n=this._processLabelText(t,e,i,this.elementOptions.label);this.fontOptions.minWdt>0&&n.width0&&n.height0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),m1(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,i,n,o){void 0!==i&&this.resize(i,n,o),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,i,n,o){this._updateBoundingBox(t,e,i,n,o)}},{key:"getDimensionsFromLabel",value:function(t,e,i){this.textSize=this.labelModule.getTextSize(t,e,i);var n=this.textSize.width,o=this.textSize.height;return 0===n&&(n=14,o=14),{width:n,height:o}}}]),t}();function b8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var x8=function(t){l8(i,t);var e=b8(i);function i(t,n,o){var r;return _G(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return jY(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i);this.width=n.width+this.margin.right+this.margin.left,this.height=n.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,r),ej(t,this.left,this.top,this.width,this.height,r.borderRadius),this.performFill(t,r),this.updateBoundingBox(e,i,t,n,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,o)}},{key:"updateBoundingBox",value:function(t,e,i,n,o){this._updateBoundingBox(t,e,i,n,o);var r=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(r)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}}]),i}(y8);function _8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var w8=function(t){l8(i,t);var e=_8(i);function i(t,n,o){var r;return _G(this,i),(r=e.call(this,t,n,o)).labelOffset=0,r.selected=!1,r}return jY(i,[{key:"setOptions",value:function(t,e,i){this.options=t,void 0===e&&void 0===i||this.setImages(e,i)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==RY(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var i=1,n=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:n=this.imageObj.height/this.imageObj.width),t=2*this.options.size*i,e=2*this.options.size*n}else{var o=this._getImagePadding();t=this.imageObj.width+o.left+o.right,e=this.imageObj.height+o.top+o.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,i,n){this.initContextForDraw(t,n),tj(t,e,i,n.size),this.performFill(t,n)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var i=1;!0===this.options.shapeProperties.interpolation&&(i=this.imageObj.width/this.width/this.body.view.scale);var n=this._getImagePadding(),o=this.left+n.left,r=this.top+n.top,s=this.width-n.left-n.right,a=this.height-n.top-n.bottom;this.imageObj.drawImageAtPosition(t,i,o,r,s,a),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,i,n,o){var r=0;if(void 0!==this.height){r=.5*this.height;var s=this.labelModule.getTextSize(t,n,o);s.lineCount>=1&&(r+=s.height/2)}var a=i+r;this.options.label&&(this.labelOffset=r),this.labelModule.draw(t,e,a,n,o,"hanging")}}]),i}(y8);function E8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var k8=function(t){l8(i,t);var e=E8(i);function i(t,n,o){var r;return _G(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return jY(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i),o=Math.max(n.width+this.margin.right+this.margin.left,n.height+this.margin.top+this.margin.bottom);this.options.size=o/2,this.width=o,this.height=o,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,r),this.updateBoundingBox(e,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,i,n,o)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(w8);function O8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var C8=function(t){l8(i,t);var e=O8(i);function i(t,n,o,r,s){var a;return _G(this,i),(a=e.call(this,t,n,o)).setImages(r,s),a}return jY(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var n=2*this.options.size;return this.width=n,this.height=n,void(this.radius=.5*this.width)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,n,o,r){this.switchImages(n),this.resize();var s=e,a=i;"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=i,s+=this.width/2,a+=this.height/2):(this.left=e-this.width/2,this.top=i-this.height/2),this._drawRawCircle(t,s,a,r),t.save(),t.clip(),this._drawImageAtPosition(t,r),t.restore(),this._drawImageLabel(t,s,a,n,o),this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){"top-left"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=e,this.boundingBox.left=t,this.boundingBox.right=t+2*this.options.size,this.boundingBox.bottom=e+2*this.options.size):(this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(w8);function T8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var I8=function(t){l8(i,t);var e=T8(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,i)){var o,r;this.labelModule.getTextSize(t,e,i);var s=2*n.size;this.width=null!==(o=this.customSizeWidth)&&void 0!==o?o:s,this.height=null!==(r=this.customSizeHeight)&&void 0!==r?r:s,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,i,n,o,r,s,a){var d,l=this;return this.resize(t,r,s,a),this.left=n-this.width/2,this.top=o-this.height/2,this.initContextForDraw(t,a),(d=e,Object.prototype.hasOwnProperty.call(rj,d)?rj[d]:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),i}(y8);function S8(t,e){var i=pZ(t);if(OX){var n=OX(t);e&&(n=uJ(n).call(n,(function(e){return BX(t,e).enumerable}))),i.push.apply(i,n)}return i}function A8(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i);this.height=2*n.height,this.width=n.width+n.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-.5*this.width,this.top=i-.5*this.height,this.initContextForDraw(t,r),ij(t,this.left,this.top,this.width,this.height),this.performFill(t,r),this.updateBoundingBox(e,i,t,n,o),this.labelModule.draw(t,e,i,n,o)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var i=.5*this.width,n=.5*this.height,o=Math.sin(e)*i,r=Math.cos(e)*n;return i*n/Math.sqrt(o*o+r*r)}}]),i}(y8);function H8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var $8=function(t){l8(i,t);var e=H8(i);function i(t,n,o){var r;return _G(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return jY(i,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,n,o,r){var s=this;return this.resize(t,n,o),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=i-this.height/2,this._icon(t,e,i,n,o,r),{drawExternalLabel:function(){if(void 0!==s.options.label){s.labelModule.draw(t,s.left+s.iconSize.width/2+s.margin.left,i+s.height/2+5,n)}s.updateBoundingBox(e,i)}}}},{key:"updateBoundingBox",value:function(t,e){if(this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5)}}},{key:"_icon",value:function(t,e,i,n,o,r){var s=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:n?"bold":"",(null!=this.options.icon.weight&&n?5:0)+s+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,r),t.fillText(this.options.icon.code,e,i),this.disableShadow(t,r)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(y8);function W8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var V8=function(t){l8(i,t);var e=W8(i);function i(t,n,o,r,s){var a;return _G(this,i),(a=e.call(this,t,n,o)).setImages(r,s),a}return jY(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var n=2*this.options.size;return this.width=n,void(this.height=n)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,n,o,r){t.save(),this.switchImages(n),this.resize();var s=e,a=i;if("top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=i,s+=this.width/2,a+=this.height/2):(this.left=e-this.width/2,this.top=i-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){var d=this.options.borderWidth,l=this.options.borderWidthSelected||2*this.options.borderWidth,c=(n?l:d)/this.body.view.scale;t.lineWidth=Math.min(this.width,c),t.beginPath();var h=n?this.options.color.highlight.border:o?this.options.color.hover.border:this.options.color.border,u=n?this.options.color.highlight.background:o?this.options.color.hover.background:this.options.color.background;void 0!==r.opacity&&(h=D5(h,r.opacity),u=D5(u,r.opacity)),t.strokeStyle=h,t.fillStyle=u,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),m1(t).call(t),this.performStroke(t,r),t.closePath()}this._drawImageAtPosition(t,r),this._drawImageLabel(t,s,a,n,o),this.updateBoundingBox(e,i),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=e):(this.left=t-this.width/2,this.top=e-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(w8);function U8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var q8=function(t){l8(i,t);var e=U8(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"draw",value:function(t,e,i,n,o,r){return this._drawShape(t,"square",2,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(I8);function X8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var G8=function(t){l8(i,t);var e=X8(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"draw",value:function(t,e,i,n,o,r){return this._drawShape(t,"hexagon",4,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(I8);function Y8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var K8=function(t){l8(i,t);var e=Y8(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"draw",value:function(t,e,i,n,o,r){return this._drawShape(t,"star",4,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(I8);function Z8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var Q8=function(t){l8(i,t);var e=Z8(i);function i(t,n,o){var r;return _G(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return jY(i,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.textSize=this.labelModule.getTextSize(t,e,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this.enableShadow(t,r),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,o),this.disableShadow(t,r),this.updateBoundingBox(e,i,t,n,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(y8);function J8(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var t9=function(t){l8(i,t);var e=J8(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"draw",value:function(t,e,i,n,o,r){return this._drawShape(t,"triangle",3,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(I8);function e9(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var i9=function(t){l8(i,t);var e=e9(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"draw",value:function(t,e,i,n,o,r){return this._drawShape(t,"triangleDown",3,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(I8);function n9(t,e){var i=pZ(t);if(OX){var n=OX(t);e&&(n=uJ(n).call(n,(function(e){return BX(t,e).enumerable}))),i.push.apply(i,n)}return i}function o9(t){for(var e=1;et.left&&this.shape.topt.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.leftt.left&&this.shape.boundingBox.topt.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"checkCoordinateOrigin",value:function(t){return void 0===t||"center"===t||"top-left"===t}},{key:"updateGroupOptions",value:function(e,i,n){var o;if(void 0!==n){var r=e.group;if(void 0!==i&&void 0!==i.group&&r!==i.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof r||"string"==typeof r&&""!=r){var s=n.get(r);void 0!==s.opacity&&void 0===i.opacity&&(t.checkOpacity(s.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+s.opacity),s.opacity=void 0));var a=uJ(o=e7(i)).call(o,(function(t){return null!=i[t]}));a.push("font"),C5(a,e,s),e.color=M5(e.color)}}}},{key:"parseOptions",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0;if(C5(["color","fixed","shadow"],e,i,n),t.checkMass(i),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==i.opacity&&(t.checkOpacity(i.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+i.opacity),i.opacity=void 0)),i.shapeProperties&&!t.checkCoordinateOrigin(i.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+i.shapeProperties.coordinateOrigin),H5(e,i,"shadow",o),void 0!==i.color&&null!==i.color){var s=M5(i.color);k5(e.color,s)}else!0===n&&null===i.color&&(e.color=j5(o.color));void 0!==i.fixed&&null!==i.fixed&&("boolean"==typeof i.fixed?(e.fixed.x=i.fixed,e.fixed.y=i.fixed):(void 0!==i.fixed.x&&"boolean"==typeof i.fixed.x&&(e.fixed.x=i.fixed.x),void 0!==i.fixed.y&&"boolean"==typeof i.fixed.y&&(e.fixed.y=i.fixed.y))),!0===n&&null===i.font&&(e.font=j5(o.font)),t.updateGroupOptions(e,i,r),void 0!==i.scaling&&H5(e.scaling,i.scaling,"label",o.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var i="";void 0!==e&&(i=" in node id: "+e),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",n3),t.mass=1}}}]),t}();function s9(t,e){var i=void 0!==PK&&IV(t)||t["@@iterator"];if(!i){if(ZK(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return a9(t,e);var n=UK(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return oV(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a9(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function a9(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var i=0,n=pZ(this.body.nodes);i1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.nodes;if(dF("id",t))this.body.data.nodes=t;else if(ZK(t))this.body.data.nodes=new aF,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new aF}if(i&&A5(this.nodesListeners,(function(t,e){i.off(e,t)})),this.body.nodes={},this.body.data.nodes){var n=this;A5(this.nodesListeners,(function(t,e){n.body.data.nodes.on(e,t)}));var o=this.body.data.nodes.getIds();this.add(o,!0)}!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:r9)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A5(this.body.nodes,(function(i,n){var o=t.body.data.nodes.get(n);void 0!==o&&(!0===e&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(o))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===ZK(t)){for(var i=0;i0?(n=i/a)*n:i;return a===1/0?1/0:a*M9(o)}});var F9=hN.Math.hypot;!function(t){t.exports=F9}(A9);var N9=cF(S9);function L9(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var B9=function(){function t(){_G(this,t)}return jY(t,null,[{key:"transform",value:function(t,e){ZK(t)||(t=[t]);for(var i=e.point.x,n=e.point.y,o=e.angle,r=e.length,s=0;s4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,o):this._drawLine(t,e,o)}},{key:"_drawLine",value:function(t,e,i,n,o){if(this.from!=this.to)this._line(t,e,i,n,o);else{var r=SK(this._getCircleData(t),3),s=r[0],a=r[1],d=r[2];this._circle(t,e,s,a,d)}}},{key:"_drawDashedLine",value:function(t,e,i,n,o){t.lineCap="round";var r=ZK(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(r),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,i);else{var s=SK(this._getCircleData(t),3),a=s[0],d=s[1],l=s[2];this._circle(t,e,a,d,l)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)oj(t,this.from.x,this.from.y,this.to.x,this.to.y,r);else{var c=SK(this._getCircleData(t),3),h=c[0],u=c[1],p=c[2];this._circle(t,e,h,u,p)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,i){return this.from!=this.to?this._findBorderPosition(t,e,i):this._findBorderPositionCircle(t,e,i)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,i=SK(UK(e=this._getCircleData(t)).call(e,0,2),2),n=i[0],o=i[1];return{from:this._findBorderPositionCircle(this.from,t,{x:n,y:o,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:n,y:o,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var i=r7(t,this.options.selfReference.angle,e,this.from);return[i.x,i.y,e]}},{key:"_pointOnCircle",value:function(t,e,i,n){var o=2*n*Math.PI;return{x:t+i*Math.cos(o),y:e-i*Math.sin(o)}}},{key:"_findBorderPositionCircle",value:function(t,e,i){var n,o=i.x,r=i.y,s=i.low,a=i.high,d=i.direction,l=this.options.selfReference.size,c=.5*(s+a),h=0;!0===this.options.arrowStrikethrough&&(-1===d?h=this.options.endPointOffset.from:1===d&&(h=this.options.endPointOffset.to));var u=0;do{c=.5*(s+a),n=this._pointOnCircle(o,r,l,c);var p=Math.atan2(t.y-n.y,t.x-n.x),f=t.distanceToBorder(e,p)+h-Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2));if(Math.abs(f)<.05)break;f>0?d>0?s=c:a=c:d>0?a=c:s=c,++u}while(s<=a&&u<10);return J9(J9({},n),{},{t:c})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var i=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),n=this.from.options.color.highlight.border,o=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(n=D5(this.from.options.color.border,e.opacity),o=D5(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?o=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(n=this.from.options.color.border),i.addColorStop(0,n),i.addColorStop(1,o),i}return"to"===e.inheritsColor?D5(this.to.options.color.border,e.opacity):D5(this.from.options.color.border,e.opacity)}return D5(e.color,e.opacity)}},{key:"_circle",value:function(t,e,i,n,o){this.enableShadow(t,e);var r=0,s=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var a=this.options.selfReference.angle,d=this.options.selfReference.angle+Math.PI,l=this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:a,high:d,direction:-1}),c=this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:a,high:d,direction:1});r=Math.atan2(l.y-n,l.x-i),s=Math.atan2(c.y-n,c.x-i)}t.beginPath(),t.arc(i,n,o,r,s,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,i,n,o,r){if(this.from!=this.to)return this._getDistanceToEdge(t,e,i,n,o,r);var s=SK(this._getCircleData(void 0),3),a=s[0],d=s[1],l=s[2],c=a-o,h=d-r;return Math.abs(Math.sqrt(c*c+h*h)-l)}},{key:"_getDistanceToLine",value:function(t,e,i,n,o,r){var s=i-t,a=n-e,d=((o-t)*s+(r-e)*a)/(s*s+a*a);d>1?d=1:d<0&&(d=0);var l=t+d*s-o,c=e+d*a-r;return Math.sqrt(l*l+c*c)}},{key:"getArrowData",value:function(t,e,i,n,o,r){var s,a,d,l,c,h,u,p=r.width;"from"===e?(d=this.from,l=this.to,c=r.fromArrowScale<0,h=Math.abs(r.fromArrowScale),u=r.fromArrowType):"to"===e?(d=this.to,l=this.from,c=r.toArrowScale<0,h=Math.abs(r.toArrowScale),u=r.toArrowType):(d=this.to,l=this.from,c=r.middleArrowScale<0,h=Math.abs(r.middleArrowScale),u=r.middleArrowType);var f=15*h+3*p;if(d!=l){var m=f/N9(d.x-l.x,d.y-l.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var v=this._findBorderPosition(d,t,{via:i}),g=this.getPoint(v.t+m*("from"===e?1:-1),i);s=Math.atan2(v.y-g.y,v.x-g.x),a=v}else s=Math.atan2(d.y-l.y,d.x-l.x),a=this._findBorderPosition(d,t);else{var y=(c?-m:m)/2,b=this.getPoint(.5+y,i),x=this.getPoint(.5-y,i);s=Math.atan2(b.y-x.y,b.x-x.x),a=this.getPoint(.5,i)}}else{var _=SK(this._getCircleData(t),3),w=_[0],E=_[1],k=_[2];if("from"===e){var O=this.options.selfReference.angle,C=this.options.selfReference.angle+Math.PI,T=this._findBorderPositionCircle(this.from,t,{x:w,y:E,low:O,high:C,direction:-1});s=-2*T.t*Math.PI+1.5*Math.PI+.1*Math.PI,a=T}else if("to"===e){var I=this.options.selfReference.angle,S=this.options.selfReference.angle+Math.PI,A=this._findBorderPositionCircle(this.from,t,{x:w,y:E,low:I,high:S,direction:1});s=-2*A.t*Math.PI+1.5*Math.PI-1.1*Math.PI,a=A}else{var R=this.options.selfReference.angle/(2*Math.PI);a=this._pointOnCircle(w,E,k,R),s=-2*R*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:a,core:{x:a.x-.9*f*Math.cos(s),y:a.y-.9*f*Math.sin(s)},angle:s,length:f,type:u}}},{key:"drawArrowHead",value:function(t,e,i,n,o){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,Z9.draw(t,o)&&(this.enableShadow(t,e),m1(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var i={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.dashes=i.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var i=ZK(e)?e:[5,5];t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function ett(t,e){var i=pZ(t);if(OX){var n=OX(t);e&&(n=uJ(n).call(n,(function(e){return BX(t,e).enumerable}))),i.push.apply(i,n)}return i}function itt(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),r=!1,s=1,a=0,d=this.to,l=this.options.endPointOffset?this.options.endPointOffset.to:0;t.id===this.from.id&&(d=this.from,r=!0,l=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(l=0);var c=0;do{n=.5*(a+s),i=this.getPoint(n,o);var h=Math.atan2(d.y-i.y,d.x-i.x),u=d.distanceToBorder(e,h)+l-Math.sqrt(Math.pow(i.x-d.x,2)+Math.pow(i.y-d.y,2));if(Math.abs(u)<.2)break;u<0?!1===r?a=n:s=n:!1===r?s=n:a=n,++c}while(a<=s&&c<10);return itt(itt({},i),{},{t:n})}},{key:"_getDistanceToBezierEdge",value:function(t,e,i,n,o,r,s){var a,d,l,c,h,u=1e9,p=t,f=e;for(d=1;d<10;d++)l=.1*d,c=Math.pow(1-l,2)*t+2*l*(1-l)*s.x+Math.pow(l,2)*i,h=Math.pow(1-l,2)*e+2*l*(1-l)*s.y+Math.pow(l,2)*n,d>0&&(u=(a=this._getDistanceToLine(p,f,c,h,o,r))1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var i=SK(this._getCircleData(),3),n=i[0],o=i[1],r=i[2],s=2*Math.PI*(1-t);return{x:n+r*Math.sin(s),y:o+r-r*(1-Math.cos(s))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){return this._getDistanceToBezierEdge(t,e,i,n,o,r,this.via)}}]),i}(ott);function att(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var dtt=function(t){l8(i,t);var e=att(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"_line",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,i=this.options.smooth.roundness,n=this.options.smooth.type,o=Math.abs(this.from.x-this.to.x),r=Math.abs(this.from.y-this.to.y);if("discrete"===n||"diagonalCross"===n){var s,a;s=a=o<=r?i*r:i*o,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(a=-a);var d=this.from.x+s,l=this.from.y+a;return"discrete"===n&&(o<=r?d=othis.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var x=this.from.x+t,_=this.from.y+e;return o<=r?x=this.from.x<=this.to.x?this.to.xx?this.to.x:x:_=this.from.y>=this.to.y?this.to.y>_?this.to.y:_:this.to.y<_?this.to.y:_,{x:x,y:_}}},{key:"_findBorderPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,i.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,i,n,o,r,s)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=t;return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*e.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*e.y+Math.pow(i,2)*this.toPoint.y}}}]),i}(ott);function ltt(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var ctt=function(t){l8(i,t);var e=ltt(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"_getDistanceToBezierEdge2",value:function(t,e,i,n,o,r,s,a){for(var d=1e9,l=t,c=e,h=[0,0,0,0],u=1;u<10;u++){var p=.1*u;h[0]=Math.pow(1-p,3),h[1]=3*p*Math.pow(1-p,2),h[2]=3*Math.pow(p,2)*(1-p),h[3]=Math.pow(p,3);var f=h[0]*t+h[1]*s.x+h[2]*a.x+h[3]*i,m=h[0]*e+h[1]*s.y+h[2]*a.y+h[3]*n;if(u>0){var v=this._getDistanceToLine(l,c,f,m,o,r);d=vMath.abs(r)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,n=this.to.y,t=this.from.x-s*o,i=this.to.x+s*o):(e=this.from.y-s*r,n=this.to.y+s*r,t=this.from.x,i=this.to.x),[{x:t,y:e},{x:i,y:n}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){var s=SK(arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),2),a=s[0],d=s[1];return this._getDistanceToBezierEdge2(t,e,i,n,o,r,a,d)}},{key:"getPoint",value:function(t){var e=SK(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),2),i=e[0],n=e[1],o=t,r=[Math.pow(1-o,3),3*o*Math.pow(1-o,2),3*Math.pow(o,2)*(1-o),Math.pow(o,3)];return{x:r[0]*this.fromPoint.x+r[1]*i.x+r[2]*n.x+r[3]*this.toPoint.x,y:r[0]*this.fromPoint.y+r[1]*i.y+r[2]*n.y+r[3]*this.toPoint.y}}}]),i}(ctt);function ptt(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var ftt=function(t){l8(i,t);var e=ptt(i);function i(t,n,o){return _G(this,i),e.call(this,t,n,o)}return jY(i,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var i=this.to,n=this.from;t.id===this.from.id&&(i=this.from,n=this.to);var o=Math.atan2(i.y-n.y,i.x-n.x),r=i.x-n.x,s=i.y-n.y,a=Math.sqrt(r*r+s*s),d=(a-t.distanceToBorder(e,o))/a;return{x:(1-d)*n.x+d*i.x,y:(1-d)*n.y+d*i.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){return this._getDistanceToLine(t,e,i,n,o,r)}}]),i}(ttt),mtt=function(){function t(e,i,n,o,r){if(_G(this,t),void 0===i)throw new Error("No body provided");this.options=j5(o),this.globalOptions=o,this.defaultOptions=r,this.body=i,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new w7(this.body,this.options,!0),this.setOptions(e)}return jY(t,[{key:"setOptions",value:function(e){if(e){var i=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=q6(e.value));var n=[e,this.options,this.defaultOptions];return this.chooser=i7("edge",n),this.updateLabelModule(e),i=this.updateEdgeType()||i,this._setInteractionWidths(),this.connect(),i}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,i=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,n=this.options.color.inherit,o={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var r=this.options.selectionWidth;"function"==typeof r?o.width=r(o.width):"number"==typeof r&&(o.width+=r),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.highlight,o.shadow=this.options.shadow.enabled}else if(this.hover){var s=this.options.hoverWidth;"function"==typeof s?o.width=s(o.width):"number"==typeof s&&(o.width+=s),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.hover,o.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(o,this.options.id,this.selected,this.hover),void 0!==o.color&&(o.inheritsColor=!1),!1===o.shadow&&(o.shadowColor===this.options.shadow.color&&o.shadowSize===this.options.shadow.size&&o.shadowX===this.options.shadow.x&&o.shadowY===this.options.shadow.y||(o.shadow=!0)));else o.shadow=this.options.shadow.enabled,o.width=Math.max(o.width,.3/this.body.view.scale);return o}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,i=!0;return void 0!==this.edgeType&&((this.edgeType instanceof stt&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof utt&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof dtt&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof ftt&&!1===t.type.enabled)&&(i=!1),!0===i&&(e=this.cleanup())),!0===i?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new stt(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new utt(this.options,this.body,this.labelModule):this.edgeType=new dtt(this.options,this.body,this.labelModule):this.edgeType=new ftt(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,i){if(void 0!==this.options.value){var n=this.options.scaling.customScalingFunction(t,e,i,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var r=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*r}this.options.width=this.options.scaling.min+n*o}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(t,e,this.selected,this.hover,i),this.drawLabel(t,i)}}},{key:"drawArrows",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode(),n={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(n.from=this.edgeType.getArrowData(t,"from",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=n.from.core),e.fromArrowSrc&&(n.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(n.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(n.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(n.to=this.edgeType.getArrowData(t,"to",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=n.to.core),e.toArrowSrc&&(n.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(n.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(n.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(n.middle=this.edgeType.getArrowData(t,"middle",i,this.selected,this.hover,e),e.middleArrowSrc&&(n.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(n.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(n.middle.imageHeight=e.middleArrowImageHeight)),e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,n.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,n.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,n.to)}}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var i,n=this.from,o=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),n.id!=o.id){this.labelModule.pointToSelf=!1,i=this.edgeType.getPoint(.5,e),t.save();var r=this._getRotation(t);0!=r.angle&&(t.translate(r.x,r.y),t.rotate(r.angle)),this.labelModule.draw(t,i.x,i.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var s=r7(t,this.options.selfReference.angle,this.options.selfReference.size,n);i=this._pointOnCircle(s.x,s.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,i.x,i.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var i=this._getRotation();n7(this.labelModule.getSize(),t,i)&&e.push({edgeId:this.id,labelId:0})}var n={left:t.x,top:t.y};return this.isOverlappingWith(n)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,i=this.from.y,n=this.to.x,o=this.to.y,r=t.left,s=t.top;return this.edgeType.getDistanceToEdge(e,i,n,o,r,s)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,i.x,i.y);var n={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return n;if("horizontal"===this.options.font.align)return n;var o=this.from.y-this.to.y,r=this.from.x-this.to.x,s=Math.atan2(o,r);return(s<-1&&r<0||s>0&&r<0)&&(s+=Math.PI),n.angle=s,n}},{key:"_pointOnCircle",value:function(t,e,i,n){return{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(O5(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],t,e,i),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.from&&(w6(e.endPointOffset.from)?t.endPointOffset.from=e.endPointOffset.from:(t.endPointOffset.from=void 0!==n.endPointOffset.from?n.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.to&&(w6(e.endPointOffset.to)?t.endPointOffset.to=e.endPointOffset.to:(t.endPointOffset.to=void 0!==n.endPointOffset.to?n.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),o7(e.label)?t.label=e.label:o7(t.label)||(t.label=void 0),H5(t,e,"smooth",n),H5(t,e,"shadow",n),H5(t,e,"background",n),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===i&&null===e.dashes&&(t.dashes=C0(n.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),H5(t.scaling,e.scaling,"label",n.scaling)):!0===i&&null===e.scaling&&(t.scaling=C0(n.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var r=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=d0(r).call(r,"to"),t.arrows.middle.enabled=-1!=d0(r).call(r,"middle"),t.arrows.from.enabled=-1!=d0(r).call(r,"from")}else{if("object"!==RY(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+P0(e.arrows));H5(t.arrows,e.arrows,"to",n.arrows),H5(t.arrows,e.arrows,"middle",n.arrows),H5(t.arrows,e.arrows,"from",n.arrows)}else!0===i&&null===e.arrows&&(t.arrows=C0(n.arrows));if(void 0!==e.color&&null!==e.color){var s=_5(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,a=t.color;if(o)T5(a,n.color,!1,i);else for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&delete a[d];if(_5(a))a.color=a,a.highlight=a,a.hover=a,a.inherit=!1,void 0===s.opacity&&(a.opacity=1);else{var l=!1;void 0!==s.color&&(a.color=s.color,l=!0),void 0!==s.highlight&&(a.highlight=s.highlight,l=!0),void 0!==s.hover&&(a.hover=s.hover,l=!0),void 0!==s.inherit&&(a.inherit=s.inherit),void 0!==s.opacity&&(a.opacity=Math.min(1,Math.max(0,s.opacity))),!0===l?a.inherit=!1:void 0===a.inherit&&(a.inherit="from")}}else!0===i&&null===e.color&&(t.color=j5(n.color));!0===i&&null===e.font&&(t.font=j5(n.font)),Object.prototype.hasOwnProperty.call(e,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),vtt=function(){function t(e,i,n){var o,r=this;_G(this,t),this.body=e,this.images=i,this.groups=n,this.body.functions.createEdge=Jz(o=this.create).call(o,this),this.edgesListeners={add:function(t,e){r.add(e.items)},update:function(t,e){r.update(e.items)},remove:function(t,e){r.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,n){if(e===t)return.5;var o=1/(e-t);return Math.max(0,(n-t)*o)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},T5(this.options,this.defaultOptions),this.bindEventListeners()}return jY(t,[{key:"bindEventListeners",value:function(){var t,e,i=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var n=!1;for(var o in i.body.edges)if(Object.prototype.hasOwnProperty.call(i.body.edges,o)){var r=i.body.edges[o],s=i.body.data.edges.get(o);if(null!=s){var a=s.smooth;void 0!==a&&!0===a.enabled&&"dynamic"===a.type&&(void 0===t?r.setOptions({smooth:!1}):r.setOptions({smooth:{type:t}}),n=!0)}}!0===e&&!0===n&&i.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){i.reconnectEdges()})),this.body.emitter.on("refreshEdges",Jz(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",Jz(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){A5(i.edgesListeners,(function(t,e){i.body.data.edges&&i.body.data.edges.off(e,t)})),delete i.body.functions.createEdge,delete i.edgesListeners.add,delete i.edgesListeners.update,delete i.edgesListeners.remove,delete i.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){mtt.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(e=this.body.edges[i].updateEdgeType()||e);if(void 0!==t.font)for(var n in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,n)&&this.body.edges[n].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.edges;if(dF("id",t))this.body.data.edges=t;else if(ZK(t))this.body.data.edges=new aF,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new aF}if(n&&A5(this.edgesListeners,(function(t,e){n.off(e,t)})),this.body.edges={},this.body.data.edges){A5(this.edgesListeners,(function(t,i){e.body.data.edges.on(i,t)}));var o=this.body.data.edges.getIds();this.add(o,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.edges,n=this.body.data.edges,o=0;o1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var i=this.body.edges;A5(t,(function(t){var e=i[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;A5(this.body.edges,(function(e,i){var n=t.body.data.edges.get(i);void 0!==n&&e.setOptions(n)}))}},{key:"create",value:function(t){return new mtt(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,i=this.body.edges;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].edges=[]);for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var n=i[t];n.from=null,n.to=null,n.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var i=this.body.edges[t];void 0!==i.fromId&&e.push(i.fromId),void 0!==i.toId&&e.push(i.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];A5(this.body.edges,(function(i,n){var o=t.body.nodes[i.toId],r=t.body.nodes[i.fromId];void 0!==o&&!0===o.isCluster||void 0!==r&&!0===r.isCluster||void 0!==o&&void 0!==r||e.push(n)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,i=[];FZ(t).call(t,(function(t,n){void 0===e[n]&&i.push(n)})),this.add(i,!0)}}}]),t}(),gtt=function(){function t(e,i,n){_G(this,t),this.body=e,this.physicsBody=i,this.barnesHutTree,this.setOptions(n),this._rng=p5("BARNES HUT SOLVER")}return jY(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,i=this.physicsBody.physicsNodeIndices,n=i.length,o=this._formBarnesHutTree(e,i);this.barnesHutTree=o;for(var r=0;r0&&this._getForceContributions(o.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){if(t.childrenCount>0){var i=t.centerOfMass.x-e.x,n=t.centerOfMass.y-e.y,o=Math.sqrt(i*i+n*n);o*t.calcSize>this.thetaInversed?this._calculateForces(o,i,n,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(o,i,n,e,t)}}},{key:"_calculateForces",value:function(t,e,i,n,o){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&n.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,t-n.shape.radius));var r=this.options.gravitationalConstant*o.mass*n.options.mass/Math.pow(t,3),s=e*r,a=i*r;this.physicsBody.forces[n.id].x+=s,this.physicsBody.forces[n.id].y+=a}},{key:"_formBarnesHutTree",value:function(t,e){for(var i,n=e.length,o=t[e[0]].x,r=t[e[0]].y,s=t[e[0]].x,a=t[e[0]].y,d=1;d0&&(cs&&(s=c),ha&&(a=h))}var u=Math.abs(s-o)-Math.abs(a-r);u>0?(r-=.5*u,a+=.5*u):(o+=.5*u,s-=.5*u);var p=Math.max(1e-5,Math.abs(s-o)),f=.5*p,m=.5*(o+s),v=.5*(r+a),g={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:m-f,maxX:m+f,minY:v-f,maxY:v+f},size:p,calcSize:1/p,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(g.root);for(var y=0;y0&&this._placeInTree(g.root,i);return g}},{key:"_updateBranchMass",value:function(t,e){var i=t.centerOfMass,n=t.mass+e.options.mass,o=1/n;i.x=i.x*t.mass+e.x*e.options.mass,i.x*=o,i.y=i.y*t.mass+e.y*e.options.mass,i.y*=o,t.mass=n;var r=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidthe.x?o.maxY>e.y?"NW":"SW":o.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,n)}},{key:"_placeInRegion",value:function(t,e,i){var n=t.children[i];switch(n.childrenCount){case 0:n.children.data=e,n.childrenCount=1,this._updateBranchMass(n,e);break;case 1:n.children.data.x===e.x&&n.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(n),this._placeInTree(n,e));break;case 4:this._placeInTree(n,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var i,n,o,r,s=.5*t.size;switch(e){case"NW":i=t.range.minX,n=t.range.minX+s,o=t.range.minY,r=t.range.minY+s;break;case"NE":i=t.range.minX+s,n=t.range.maxX,o=t.range.minY,r=t.range.minY+s;break;case"SW":i=t.range.minX,n=t.range.minX+s,o=t.range.minY+s,r=t.range.maxY;break;case"SE":i=t.range.minX+s,n=t.range.maxX,o=t.range.minY+s,r=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:n,minY:o,maxY:r},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,i){void 0===i&&(i="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=i,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),ytt=function(){function t(e,i,n){_G(this,t),this._rng=p5("REPULSION SOLVER"),this.body=e,this.physicsBody=i,this.setOptions(n)}return jY(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,o,r,s,a,d=this.body.nodes,l=this.physicsBody.physicsNodeIndices,c=this.physicsBody.forces,h=this.options.nodeDistance,u=-2/3/h,p=0;p0){var r=o.edges.length+1,s=this.options.centralGravity*r*o.options.mass;n[o.id].x=e*s,n[o.id].y=i*s}}}]),i}(wtt),Ttt=function(){function t(e){_G(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Sz(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return jY(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,C5(["stabilization"],this.options,t),H5(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||v6(e.x))&&(e.x=0),("number"!=typeof e.y||v6(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new ktt(this.body,this.physicsBody,t),this.edgesSolver=new xtt(this.body,this.physicsBody,t),this.gravitySolver=new Ctt(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new ytt(this.body,this.physicsBody,t),this.edgesSolver=new xtt(this.body,this.physicsBody,t),this.gravitySolver=new wtt(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new btt(this.body,this.physicsBody,t),this.edgesSolver=new _tt(this.body,this.physicsBody,t),this.gravitySolver=new wtt(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new gtt(this.body,this.physicsBody,t),this.edgesSolver=new xtt(this.body,this.physicsBody,t),this.gravitySolver=new wtt(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=Jz(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=xZ();this.physicsTick(),(xZ()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&e1((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,i=0,n=0;nn&&(t=t>0?n:-n),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],i=this.physicsBody.forces[t];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var n=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:n.x,vy:n.y},!1===e.options.fixed.x?(n.x=this.calculateComponentVelocity(n.x,i.x,e.options.mass),e.x+=n.x*this.timestep):(i.x=0,n.x=0),!1===e.options.fixed.y?(n.y=this.calculateComponentVelocity(n.y,i.y,e.options.mass),e.y+=n.y*this.timestep):(i.y=0,n.y=0),Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].x&&t[e].y){var i=t[e].options.fixed;this.freezeCache[e]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,e1((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations1&&void 0!==arguments[1]?arguments[1]:[],n=1e9,o=-1e9,r=1e9,s=-1e9;if(i.length>0)for(var a=0;a(e=t[i[a]]).shape.boundingBox.left&&(r=e.shape.boundingBox.left),se.shape.boundingBox.top&&(n=e.shape.boundingBox.top),o1&&void 0!==arguments[1]?arguments[1]:[],n=1e9,o=-1e9,r=1e9,s=-1e9;if(i.length>0)for(var a=0;a(e=t[i[a]]).x&&(r=e.x),se.y&&(n=e.y),o=t&&i.push(o.id)}for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var n={},o={};A5(this.body.nodes,(function(i,r){i.options&&!0===e.joinCondition(i.options)&&(n[r]=i,A5(i.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(o[e.id]=e)})))})),this._cluster(n,o,e,i)}},{key:"clusterByEdgeCount",value:function(t,e){var i=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var o,r,s,a=[],d={},l=function(){var n={},l={},h=i.body.nodeIndices[c],u=i.body.nodes[h];if(void 0===d[h]){s=0,r=[];for(var p=0;p0&&pZ(l).length>0&&!0===m){var y=function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var o=this.body.nodes[t];void 0===(e=this._checkOptions(e,o)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=o.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=o.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=o.options.fixed.x,e.clusterNodeProperties.fixed.y=o.options.fixed.y);var r={},s={},a=o.id,d=Mtt.cloneOptions(o);r[a]=o;for(var l=0;l-1&&(s[g.id]=g)}this._cluster(r,s,e,n)}},{key:"_createClusterEdges",value:function(t,e,i,n){for(var o,r,s,a,d,l,c=pZ(t),h=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&void 0!==this.clusteredNodes[r]&&o.push(r);for(var s=0;so?e.x:o,r=e.ys?e.y:s;return{x:.5*(n+o),y:.5*(r+s)}}},{key:"openCluster",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var n=this.body.nodes[t];if(void 0===n)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==n.isCluster||void 0===n.containedNodes||void 0===n.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var o=this.findNode(t),r=d0(o).call(o,t)-1;if(r>=0){var s=o[r];return this.body.nodes[s]._openChildCluster(t),delete this.body.nodes[t],void(!0===i&&this.body.emitter.emit("_dataChanged"))}var a=n.containedNodes,d=n.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var l={},c={x:n.x,y:n.y};for(var h in a)if(Object.prototype.hasOwnProperty.call(a,h)){var u=this.body.nodes[h];l[h]={x:u.x,y:u.y}}var p=e.releaseFunction(c,l);for(var f in a)if(Object.prototype.hasOwnProperty.call(a,f)){var m=this.body.nodes[f];void 0!==p[f]&&(m.x=void 0===p[f].x?n.x:p[f].x,m.y=void 0===p[f].y?n.y:p[f].y)}}else A5(a,(function(t){!1===t.options.fixed.x&&(t.x=n.x),!1===t.options.fixed.y&&(t.y=n.y)}));for(var v in a)if(Object.prototype.hasOwnProperty.call(a,v)){var g=this.body.nodes[v];g.vx=n.vx,g.vy=n.vy,g.setOptions({physics:!0}),delete this.clusteredNodes[v]}for(var y=[],b=0;b0&&o<100;){var r=e.pop();if(void 0!==r){var s=this.body.edges[r];if(void 0!==s){o++;var a=s.clusteringEdgeReplacingIds;if(void 0===a)n.push(r);else for(var d=0;dn&&(n=r.edges.length),t+=r.edges.length,e+=Math.pow(r.edges.length,2),i+=1}t/=i;var s=(e/=i)-Math.pow(t,2),a=Math.sqrt(s),d=Math.floor(t+2*a);return d>n&&(d=n),d}},{key:"_createClusteredEdge",value:function(t,e,i,n,o){var r=Mtt.cloneOptions(i,"edge");T5(r,n),r.from=t,r.to=e,r.id="clusterEdge:"+Ptt(),void 0!==o&&T5(r,o);var s=this.body.functions.createEdge(r);return s.clusteringEdgeReplacingIds=[i.id],s.connect(),this.body.edges[s.id]=s,s}},{key:"_clusterEdges",value:function(t,e,i,n){if(e instanceof mtt){var o=e,r={};r[o.id]=o,e=r}if(t instanceof r9){var s=t,a={};a[s.id]=s,t=a}if(null==i)throw new Error("_clusterEdges: parameter clusterNode required");for(var d in void 0===n&&(n=i.clusterEdgeProperties),this._createClusterEdges(t,e,i,n),e)if(Object.prototype.hasOwnProperty.call(e,d)&&void 0!==this.body.edges[d]){var l=this.body.edges[d];this._backupEdgeOptions(l),l.setOptions({physics:!1})}for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(this.clusteredNodes[c]={clusterId:i.id,node:this.body.nodes[c]},this.body.nodes[c].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var i=e.clusterId;if(void 0!==i)return this.body.nodes[i]}}}},{key:"_filter",value:function(t,e){var i=[];return A5(t,(function(t){e(t)&&i.push(t)})),i}},{key:"_updateState",value:function(){var t,e=this,i=[],n={},o=function(t){A5(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes){if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,t))void 0===this.body.nodes[t]&&i.push(t)}o((function(t){for(var e=0;e0}t.endPointsValid()&&o||(n[i]=i)})),o((function(t){A5(n,(function(i){delete t.containedEdges[i],A5(t.edges,(function(o,r){o.id!==i?o.clusteringEdgeReplacingIds=e._filter(o.clusteringEdgeReplacingIds,(function(t){return!n[t]})):t.edges[r]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),A5(n,(function(t){delete e.clusteredEdges[t]})),A5(n,(function(t){delete e.body.edges[t]})),A5(pZ(this.body.edges),(function(t){var i=e.body.edges[t],n=e._isClusteredNode(i.fromId)||e._isClusteredNode(i.toId);if(n!==e._isClusteredEdge(i.id))if(n){var o=e._getClusterNodeForNode(i.fromId);void 0!==o&&e._clusterEdges(e.body.nodes[i.fromId],i,o);var r=e._getClusterNodeForNode(i.toId);void 0!==r&&e._clusterEdges(e.body.nodes[i.toId],i,r)}else delete e._clusterEdges[t],e._restoreEdge(i)}));for(var s=!1,a=!0,d=function(){var t=[];o((function(e){var i=pZ(e.containedNodes).length,n=!0===e.options.allowSingleNodeCluster;(n&&i<1||!n&&i<2)&&t.push(e.id)}));for(var i=0;i0,s=s||a};a;)d();s&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}();var Btt=function(){function t(e,i){var n;_G(this,t),void 0!==window&&(n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===n?function(t){t()}:n,this.body=e,this.canvas=i,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Sz(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return jY(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=e1((function(){var t;e.zooming=!1,Jz(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",Jz(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){if(void 0!==t){O5(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var i,n=window;return!0===this.requiresTimeout?i=e1(t,e):n.requestAnimationFrame&&(i=n.requestAnimationFrame(t)),i}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&(void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(Jz(t=this._renderStep).call(t,this),this.simulationInterval)))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var e={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),n=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,n,o),0===this.canvas.frame.clientWidth)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(i),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){var r=this._drawNodes(i,t).drawExternalLabels;e.drawExternalLabels=r}!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(i),null!=e.drawExternalLabels&&e.drawExternalLabels(),!1===t&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),!0===t&&i.clearRect(0,0,n,o)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,i=this.body.nodes;for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&((e=i[n]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,i,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.body.nodes,r=this.body.nodeIndices,s=[],a=[],d=this.canvas.DOMtoCanvas({x:-20,y:-20}),l=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),c={top:d.y,left:d.x,bottom:l.y,right:l.x},h=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;1!=t&&1!=e?i=.5*this.cameraState.scale*(t+e):1!=t?i=this.cameraState.scale*t:1!=e&&(i=this.cameraState.scale*e),this.body.view.scale=i;var n=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),o={x:n.x-this.cameraState.position.x,y:n.y-this.cameraState.position.y};this.body.view.translation.x+=o.x*this.body.view.scale,this.body.view.translation.y+=o.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==d0(t).call(t,"%")||-1!==d0(t).call(t,"px"))return t;if(-1===d0(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new e3(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:e3.DIRECTION_ALL}),Wtt(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new e3(this.frame),Vtt(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var i=!1,n=this.frame.canvas.width,o=this.frame.canvas.height,r=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(r),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var s=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),a=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===s&&this.frame.canvas.height===a||this._getCameraState(r),this.frame.canvas.width!==s&&(this.frame.canvas.width=s,i=!0),this.frame.canvas.height!==a&&(this.frame.canvas.height=a,i=!0)}return!0===i&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(n/this.pixelRatio),oldHeight:Math.round(o/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}();var qtt=function(){function t(e,i){var n,o,r=this;_G(this,t),this.body=e,this.canvas=i,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",Jz(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",(function(){r.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",Jz(o=this.releaseNode).call(o,this))}return jY(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=function(t,e){var i=Sz({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=t?t:{});if(!ZK(i.nodes))throw new TypeError("Nodes has to be an array of ids.");if(0===i.nodes.length&&(i.nodes=e),!("number"==typeof i.minZoomLevel&&i.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!("number"==typeof i.maxZoomLevel&&i.minZoomLevel<=i.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return i}(t,this.body.nodeIndices);var i,n,o=this.canvas.frame.canvas.clientWidth,r=this.canvas.frame.canvas.clientHeight;if(0===o||0===r)n=1,i=Mtt.getRange(this.body.nodes,t.nodes);else if(!0===e){var s=0;for(var a in this.body.nodes){if(Object.prototype.hasOwnProperty.call(this.body.nodes,a))!0===this.body.nodes[a].predefinedPosition&&(s+=1)}if(s>.5*this.body.nodeIndices.length)return void this.fit(t,!1);i=Mtt.getRange(this.body.nodes,t.nodes),n=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,n*=Math.min(o/600,r/600)}else{this.body.emitter.emit("_resizeNodes"),i=Mtt.getRange(this.body.nodes,t.nodes);var d=o/(1.1*Math.abs(i.maxX-i.minX)),l=r/(1.1*Math.abs(i.maxY-i.minY));n=d<=l?d:l}n>t.maxZoomLevel?n=t.maxZoomLevel:n1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var i={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=i,e.lockedOnNode=t,this.moveTo(e)}else console.error("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!w6(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!w6(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!w6(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!w6(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,i,n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),o=n.x-t.position.x,r=n.y-t.position.y;if(this.targetTranslation={x:this.sourceTranslation.x+o*this.targetScale+t.offset.x,y:this.sourceTranslation.y+r*this.targetScale+t.offset.y},0===t.animation.duration)if(null!=this.lockedOnNodeId)this.viewFunction=Jz(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction);else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=Jz(i=this._transitionRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,i=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n=i.x-t,o=i.y-e,r=this.body.view.translation,s={x:r.x+n*this.body.view.scale+this.lockedOnNodeOffset.x,y:r.y+o*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=s}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e=$5[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*e,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*e,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*e},this.easingTime>=1){var i;if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId)this.viewFunction=Jz(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction);this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function Xtt(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,o={},r={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){l(t,"keydown")},d=function(t){l(t,"keyup")},l=function(t,e){if(void 0!==r[e][t.keyCode]){for(var n=r[e][t.keyCode],o=0;o700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=e/t,o=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,r=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=e,this.body.view.translation={x:o,y:r},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=e/t,o=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,r=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=e,this.body.view.translation={x:o,y:r},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,i,n,o,r,s,a,d,l,c,h,u,p,f,m,v,g,y,b,x,_,w,E,k=this;(void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled)&&(!0===this.options.keyboard.bindToWindow?this.keycharm=Xtt({container:window,preventDefault:!0}):this.keycharm=Xtt({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(Jz(t=this.keycharm).call(t,"up",(function(){k.bindToRedraw("_moveUp")}),"keydown"),Jz(e=this.keycharm).call(e,"down",(function(){k.bindToRedraw("_moveDown")}),"keydown"),Jz(i=this.keycharm).call(i,"left",(function(){k.bindToRedraw("_moveLeft")}),"keydown"),Jz(n=this.keycharm).call(n,"right",(function(){k.bindToRedraw("_moveRight")}),"keydown"),Jz(o=this.keycharm).call(o,"=",(function(){k.bindToRedraw("_zoomIn")}),"keydown"),Jz(r=this.keycharm).call(r,"num+",(function(){k.bindToRedraw("_zoomIn")}),"keydown"),Jz(s=this.keycharm).call(s,"num-",(function(){k.bindToRedraw("_zoomOut")}),"keydown"),Jz(a=this.keycharm).call(a,"-",(function(){k.bindToRedraw("_zoomOut")}),"keydown"),Jz(d=this.keycharm).call(d,"[",(function(){k.bindToRedraw("_zoomOut")}),"keydown"),Jz(l=this.keycharm).call(l,"]",(function(){k.bindToRedraw("_zoomIn")}),"keydown"),Jz(c=this.keycharm).call(c,"pageup",(function(){k.bindToRedraw("_zoomIn")}),"keydown"),Jz(h=this.keycharm).call(h,"pagedown",(function(){k.bindToRedraw("_zoomOut")}),"keydown"),Jz(u=this.keycharm).call(u,"up",(function(){k.unbindFromRedraw("_moveUp")}),"keyup"),Jz(p=this.keycharm).call(p,"down",(function(){k.unbindFromRedraw("_moveDown")}),"keyup"),Jz(f=this.keycharm).call(f,"left",(function(){k.unbindFromRedraw("_moveLeft")}),"keyup"),Jz(m=this.keycharm).call(m,"right",(function(){k.unbindFromRedraw("_moveRight")}),"keyup"),Jz(v=this.keycharm).call(v,"=",(function(){k.unbindFromRedraw("_zoomIn")}),"keyup"),Jz(g=this.keycharm).call(g,"num+",(function(){k.unbindFromRedraw("_zoomIn")}),"keyup"),Jz(y=this.keycharm).call(y,"num-",(function(){k.unbindFromRedraw("_zoomOut")}),"keyup"),Jz(b=this.keycharm).call(b,"-",(function(){k.unbindFromRedraw("_zoomOut")}),"keyup"),Jz(x=this.keycharm).call(x,"[",(function(){k.unbindFromRedraw("_zoomOut")}),"keyup"),Jz(_=this.keycharm).call(_,"]",(function(){k.unbindFromRedraw("_zoomIn")}),"keyup"),Jz(w=this.keycharm).call(w,"pageup",(function(){k.unbindFromRedraw("_zoomIn")}),"keyup"),Jz(E=this.keycharm).call(E,"pagedown",(function(){k.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();function Ytt(t,e){var i=void 0!==PK&&IV(t)||t["@@iterator"];if(!i){if(ZK(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return Ktt(t,e);var n=UK(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return oV(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ktt(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function Ktt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,i),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,i),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e),this.selectionHandler.generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:"_determineDifference",value:function(t,e){var i=function(t,e){for(var i=[],n=0;n=o.minX&&i.x<=o.maxX&&i.y>=o.minY&&i.y<=o.maxY}));FZ(r).call(r,(function(t){return e.selectionHandler.selectObject(e.body.nodes[t])}));var s=this.getPointer(t.center);this.selectionHandler.commitAndEmit(s,t),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var a=this.drag.selection;a&&a.length?(FZ(a).call(a,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var i=this.pinch.scale*t.scale;this.zoom(i,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var i=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var n=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(n=this.canvas.DOMtoCanvas(this.drag.pointer));var o=this.body.view.translation,r=t/i,s=(1-r)*e.x+o.x*r,a=(1-r)*e.y+o.y*r;if(this.body.view.scale=t,this.body.view.translation={x:s,y:a},null!=n){var d=this.canvas.canvasToDOM(n);this.drag.pointer.x=d.x,this.drag.pointer.y=d.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=l[c[c.length-1]],r=!0)}if(void 0===this.popupObj&&!1===r){for(var u,p=this.body.edgeIndices,f=this.body.edges,m=[],v=0;v0&&(this.popupObj=f[m[m.length-1]],s="edge")}void 0!==this.popupObj?this.popupObj.id!==o&&(void 0===this.popup&&(this.popup=new i3(this.canvas.frame)),this.popup.popupTargetType=s,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),i=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var n=this.selectionHandler.getNodeAt(t);i=void 0!==n&&n.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===i&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Qtt={},Jtt={get exports(){return Qtt},set exports(t){Qtt=t}};$4("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),l6);var tet=hN.Set;!function(t){t.exports=tet}(Jtt);var eet=cF(Qtt),iet={},net={get exports(){return iet},set exports(t){iet=t}},oet=CF,ret=V4,set=z3.getWeakData,aet=C4,det=hB,cet=eN,het=cN,uet=E4,pet=aL,fet=tH.set,met=tH.getterFor,vet=wU.find,get=wU.findIndex,yet=oet([].splice),bet=0,xet=function(t){return t.frozen||(t.frozen=new _et)},_et=function(){this.entries=[]},wet=function(t,e){return vet(t.entries,(function(t){return t[0]===e}))};_et.prototype={get:function(t){var e=wet(this,t);if(e)return e[1]},has:function(t){return!!wet(this,t)},set:function(t,e){var i=wet(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(t){var e=get(this.entries,(function(e){return e[0]===t}));return~e&&yet(this.entries,e,1),!!~e}};var Eet,ket={getConstructor:function(t,e,i,n){var o=t((function(t,o){aet(t,r),fet(t,{type:e,id:bet++,frozen:void 0}),cet(o)||uet(o,t[n],{that:t,AS_ENTRIES:i})})),r=o.prototype,s=met(e),a=function(t,e,i){var n=s(t),o=set(det(e),!0);return!0===o?xet(n).set(e,i):o[n.id]=i,t};return ret(r,{delete:function(t){var e=s(this);if(!het(t))return!1;var i=set(t);return!0===i?xet(e).delete(t):i&&pet(i,e.id)&&delete i[e.id]},has:function(t){var e=s(this);if(!het(t))return!1;var i=set(t);return!0===i?xet(e).has(t):i&&pet(i,e.id)}}),ret(r,i?{get:function(t){var e=s(this);if(het(t)){var i=set(t);return!0===i?xet(e).get(t):i?i[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Oet=G3,Cet=fF,Tet=CF,Iet=V4,Aet=z3,Ret=$4,Det=ket,Pet=cN,Met=tH.enforce,Fet=mF,Net=Lj,Let=Object,Bet=Array.isArray,zet=Let.isExtensible,jet=Let.isFrozen,Het=Let.isSealed,$et=Let.freeze,Wet=Let.seal,Vet={},Uet={},qet=!Cet.ActiveXObject&&"ActiveXObject"in Cet,Xet=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Get=Ret("WeakMap",Xet,Det),Yet=Get.prototype,Ket=Tet(Yet.set);if(Net)if(qet){Eet=Det.getConstructor(Xet,"WeakMap",!0),Aet.enable();var Zet=Tet(Yet.delete),Qet=Tet(Yet.has),Jet=Tet(Yet.get);Iet(Yet,{delete:function(t){if(Pet(t)&&!zet(t)){var e=Met(this);return e.frozen||(e.frozen=new Eet),Zet(this,t)||e.frozen.delete(t)}return Zet(this,t)},has:function(t){if(Pet(t)&&!zet(t)){var e=Met(this);return e.frozen||(e.frozen=new Eet),Qet(this,t)||e.frozen.has(t)}return Qet(this,t)},get:function(t){if(Pet(t)&&!zet(t)){var e=Met(this);return e.frozen||(e.frozen=new Eet),Qet(this,t)?Jet(this,t):e.frozen.get(t)}return Jet(this,t)},set:function(t,e){if(Pet(t)&&!zet(t)){var i=Met(this);i.frozen||(i.frozen=new Eet),Qet(this,t)?Ket(this,t,e):i.frozen.set(t,e)}else Ket(this,t,e);return this}})}else Oet&&Fet((function(){var t=$et([]);return Ket(new Get,t,1),!jet(t)}))&&Iet(Yet,{set:function(t,e){var i;return Bet(t)&&(jet(t)?i=Vet:Het(t)&&(i=Uet)),Ket(this,t,e),i==Vet&&$et(t),i==Uet&&Wet(t),this}});var tit=hN.WeakMap;!function(t){t.exports=tit}(net);var eit,iit,nit,oit,rit,sit=cF(iet);function ait(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)}function dit(t,e,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,i):o?o.value=i:e.set(t,i),i}function lit(t,e){var i=void 0!==PK&&IV(t)||t["@@iterator"];if(!i){if(ZK(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return cit(t,e);var n=UK(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return oV(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cit(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function cit(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:function(){};_G(this,t),nit.set(this,new uit),oit.set(this,new uit),rit.set(this,void 0),dit(this,rit,e,"f")}return jY(t,[{key:"sizeNodes",get:function(){return ait(this,nit,"f").size}},{key:"sizeEdges",get:function(){return ait(this,oit,"f").size}},{key:"getNodes",value:function(){return ait(this,nit,"f").getSelection()}},{key:"getEdges",value:function(){return ait(this,oit,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=ait(this,nit,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=ait(this,oit,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){ait(this,nit,"f").delete(t)}},{key:"deleteEdges",value:function(t){ait(this,oit,"f").delete(t)}},{key:"clear",value:function(){ait(this,nit,"f").clear(),ait(this,oit,"f").clear()}},{key:"commit",value:function(){for(var t,e,i={nodes:ait(this,nit,"f").commit(),edges:ait(this,oit,"f").commit()},n=arguments.length,o=new Array(n),r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function mit(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i4&&void 0!==arguments[4]&&arguments[4],r=this._initBaseEvent(e,i);if(!0===o)r.nodes=[],r.edges=[];else{var s=this.getSelection();r.nodes=s.nodes,r.edges=s.edges}void 0!==n&&(r.previousSelection=n),"click"==t&&(r.items=this.getClickedItems(i)),void 0!==e.controlEdge&&(r.controlEdge=e.controlEdge),this.body.emitter.emit(t,r)}},{key:"selectObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;if(void 0!==t){if(t instanceof r9){var i;if(!0===e)(i=this._selectionAccumulator).addEdges.apply(i,AK(t.edges));this._selectionAccumulator.addNodes(t)}else this._selectionAccumulator.addEdges(t);return!0}return!1}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],i=this.body.nodes,n=0;n1&&void 0!==arguments[1])||arguments[1],i=this._pointerToPositionObject(t),n=this._getAllNodesOverlappingWith(i);return n.length>0?!0===e?this.body.nodes[n[n.length-1]]:n[n.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var i=this.body.edges,n=0;n1&&void 0!==arguments[1])||arguments[1],i=this.canvas.DOMtoCanvas(t),n=10,o=null,r=this.body.edges,s=0;s0&&(this.generateClickEvent("deselectEdge",e,t,o),i=!0),n.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",e,t,o),i=!0),n.nodes.added.length>0&&(this.generateClickEvent("selectNode",e,t),i=!0),n.edges.added.length>0&&(this.generateClickEvent("selectEdge",e,t),i=!0),!0===i&&this.generateClickEvent("select",e,t)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var t;return aZ(t=this._selectionAccumulator.getNodes()).call(t,(function(t){return t.id}))}},{key:"getSelectedEdgeIds",value:function(){var t;return aZ(t=this._selectionAccumulator.getEdges()).call(t,(function(t){return t.id}))}},{key:"setSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes){var i,n=fit(t.nodes);try{for(n.s();!(i=n.n()).done;){var o=i.value,r=this.body.nodes[o];if(!r)throw new RangeError('Node with id "'+o+'" not found');this.selectObject(r,e.highlightEdges)}}catch(t){n.e(t)}finally{n.f()}}if(t.edges){var s,a=fit(t.edges);try{for(a.s();!(s=a.n()).done;){var d=s.value,l=this.body.edges[d];if(!l)throw new RangeError('Edge with id "'+d+'" not found');this.selectObject(l)}}catch(t){a.e(t)}finally{a.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),i=[],n=this.body.nodeIndices,o=this.body.nodes,r=n.length-1;r>=0;r--){var s=o[n[r]].getItemsOnPoint(e);i.push.apply(i,s)}for(var a=this.body.edgeIndices,d=this.body.edges,l=a.length-1;l>=0;l--){var c=d[a[l]].getItemsOnPoint(e);i.push.apply(i,c)}return i}}]),t}(),git={},yit={get exports(){return git},set exports(t){git=t}},bit=jV,xit=Math.floor,_it=function(t,e){var i=t.length,n=xit(i/2);return i<8?wit(t,e):Eit(t,_it(bit(t,0,n),e),_it(bit(t,n),e),e)},wit=function(t,e){for(var i,n,o=t.length,r=1;r0;)t[n]=t[--n];n!==r++&&(t[n]=i)}return t},Eit=function(t,e,i,n){for(var o=e.length,r=i.length,s=0,a=0;s3)){if(Hit)return!0;if(Wit)return Wit<603;var t,e,i,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)Vit.push({k:e+n,v:i})}for(Vit.sort((function(t,e){return e.v-t.v})),n=0;nNit(i)?1:-1}}(t)),i=Mit(o),n=0;n=0:a>d;d+=l)d in s&&(o=i(o,s[d],d,r));return o}},unt={left:hnt(!1),right:hnt(!0)},pnt="undefined"!=typeof process&&"process"==AF(process),fnt=unt.left;LB({target:"Array",proto:!0,forced:!pnt&&ON>79&&ON<83||!kZ("reduce")},{reduce:function(t){var e=arguments.length;return fnt(this,t,e,e>1?arguments[1]:void 0)}});var mnt=qz("Array").reduce,vnt=gN,gnt=mnt,ynt=Array.prototype,bnt=function(t){var e=t.reduce;return t===ynt||vnt(ynt,t)&&e===ynt.reduce?gnt:e},xnt=bnt;!function(t){t.exports=xnt}(rnt);var _nt=cF(ont),wnt={},Ent={get exports(){return wnt},set exports(t){wnt=t}},knt={};!function(t){!function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.sort=m;var i=32,n=7,o=256,r=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function s(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function a(t,e){if(t===e)return 0;if(~~t===t&&~~e===e){if(0===t||0===e)return t=0)return-1;if(t>=0)return 1;t=-t,e=-e}var i=s(t),n=s(e),o=0;return in&&(e*=r[i-n-1],t/=10,o=1),t===e?o:t=i;)e|=1&t,t>>=1;return t+e}function l(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o=0;)o++;return o-e}function c(t,e,i){for(i--;e>>1;o(r,t[d])<0?a=d:s=d+1}var l=n-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=r}}function u(t,e,i,n,o,r){var s=0,a=0,d=1;if(r(t,e[i+o])>0){for(a=n-o;d0;)s=d,(d=1+(d<<1))<=0&&(d=a);d>a&&(d=a),s+=o,d+=o}else{for(a=o+1;d a&&(d=a);var l=s;s=o-d,d=o-l}for(s++;s>>1);r(t,e[i+c])>0?s=c+1:d=c}return d}function p(t,e,i,n,o,r){var s=0,a=0,d=1;if(r(t,e[i+o])<0){for(a=o+1;da&&(d=a);var l=s;s=o-d,d=o-l}else{for(a=n-o;d =0;)s=d,(d=1+(d<<1))<=0&&(d=a);d>a&&(d=a),s+=o,d+=o}for(s++;s>>1);r(t,e[i+c])<0?d=c:s=c+1}return d}var f=function(){function t(i,r){e(this,t),this.array=null,this.compare=null,this.minGallop=n,this.length=0,this.tmpStorageLength=o,this.stackLength=0,this.runStart=null,this.runLength=null,this.stackSize=0,this.array=i,this.compare=r,this.length=i.length,this.length<2*o&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength)}return t.prototype.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},t.prototype.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]this.runLength[t+1])break;this.mergeAt(t)}},t.prototype.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]=n||v>=n);if(g)break;f<0&&(f=0),f+=2}if(this.minGallop=f,f<1&&(this.minGallop=1),1===e){for(d=0;d=0;d--)s[m+d]=s[f+d];if(0===e){b=!0;break}}if(s[h--]=a[c--],1==--o){b=!0;break}if(0!=(y=o-u(s[l],a,0,o,o-1,r))){for(o-=y,m=1+(h-=y),f=1+(c-=y),d=0;d=n||y>=n);if(b)break;v<0&&(v=0),v+=2}if(this.minGallop=v,v<1&&(this.minGallop=1),1===o){for(m=1+(h-=e),f=1+(l-=e),d=e-1;d>=0;d--)s[m+d]=s[f+d];s[h]=a[c]}else{if(0===o)throw new Error("mergeHigh preconditions were not respected");for(f=h-(o-1),d=0;d=0;d--)s[m+d]=s[f+d];s[h]=a[c]}else for(f=h-(o-1),d=0;du&&(p=u),h(t,n,n+p,n+s,e),s=p}c.pushRun(n,s),c.mergeRuns(),r-=s,n+=s}while(0!==r);c.forceMergeRuns()}}}}(t)}(knt),function(t){t.exports=knt}(Ent);var Ont=cF(wnt);function Cnt(t){var e=function(){if("undefined"==typeof Reflect||!W7)return!1;if(W7.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W7(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=g8(t);if(e){var o=g8(this).constructor;i=W7(n,arguments,o)}else i=n.apply(this,arguments);return c8(this,i)}}var Tnt=function(){function t(){_G(this,t)}return jY(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,i),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),Int=function(t){l8(i,t);var e=Cnt(i);function i(t){var n;return _G(this,i),(n=e.call(this)).layout=t,n}return jY(i,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){wnt.sort(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),i}(Tnt),Snt=function(t){l8(i,t);var e=Cnt(i);function i(t){var n;return _G(this,i),(n=e.call(this)).layout=t,n}return jY(i,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){wnt.sort(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),i}(Tnt),Ant={},Rnt={get exports(){return Ant},set exports(t){Ant=t}},Dnt=wU.every;LB({target:"Array",proto:!0,forced:!kZ("every")},{every:function(t){return Dnt(this,t,arguments.length>1?arguments[1]:void 0)}});var Pnt=qz("Array").every,Mnt=gN,Fnt=Pnt,Nnt=Array.prototype,Lnt=function(t){var e=t.every;return t===Nnt||Mnt(Nnt,t)&&e===Nnt.every?Fnt:e},Bnt=Lnt;!function(t){t.exports=Bnt}(Rnt);var znt=cF(Ant);function jnt(t,e){var i=void 0!==PK&&IV(t)||t["@@iterator"];if(!i){if(ZK(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return Hnt(t,e);var n=UK(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return oV(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hnt(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function Hnt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=e[n])&&(e[n]=e[i]+1)})),e}function Wnt(t,e,i,n){var o,r,s=C0(null),a=_nt(o=AK(v7(n).call(n))).call(o,(function(t,e){return t+1+e.edges.length}),0),d=i+"Id",l="to"===i?1:-1,c=jnt(n);try{var h=function(){var o=SK(r.value,2),c=o[0],h=o[1];if(!n.has(c)||!t(h))return"continue";s[c]=0;for(var u,p=[h],f=0,m=function(){var t,o;if(!n.has(c))return"continue";var r=s[u.id]+l;if(FZ(t=uJ(o=u.edges).call(o,(function(t){return t.connected&&t.to!==t.from&&t[i]!==u&&n.has(t.toId)&&n.has(t.fromId)}))).call(t,(function(t){var n=t[d],o=s[n];(null==o||e(r,o))&&(s[n]=r,p.push(t[i]))})),f>a)return{v:{v:$nt(n,s)}};++f};u=p.pop();){var v=m();if("continue"!==v&&"object"===RY(v))return v.v}};for(c.s();!(r=c.n()).done;){var u=h();if("continue"!==u&&"object"===RY(u))return u.v}}catch(t){c.e(t)}finally{c.f()}return s}var Vnt=function(){function t(){_G(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return jY(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,i={};return function t(n){if(void 0!==i[n])return i[n];var o=e.levels[n];if(e.childrenReference[n]){var r=e.childrenReference[n];if(r.length>0)for(var s=0;s0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===n)return this.body.emitter.emit("refresh"),T5(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=p5(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===RY(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:i};else{var n=t.edges.smooth;void 0!==n.type&&"dynamic"!==n.type&&(i=n.type),this.optionsBackup.edges={smooth:{enabled:void 0===n.enabled||n.enabled,type:void 0===n.type?"dynamic":n.type,roundness:void 0===n.roundness?.5:n.roundness,forceDirection:void 0!==n.forceDirection&&n.forceDirection}},t.edges.smooth={enabled:void 0===n.enabled||n.enabled,type:i,roundness:void 0===n.roundness?.5:n.roundness,forceDirection:void 0!==n.forceDirection&&n.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,i=0;io){for(var s=t.length;t.length>o&&n<=10;){n+=1;var a=t.length;if(n%3==0?this.body.modules.clustering.clusterBridges(r):this.body.modules.clustering.clusterOutliers(r),a==t.length&&n%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*s)})}n>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var d=0;d0){var t,e,i=!1,n=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new Vnt,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&(void 0!==(t=this.body.nodes[e]).options.level?(i=!0,this.hierarchical.levels[e]=t.options.level):n=!0);if(!0===n&&!0===i)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===n){var o=this.options.hierarchical.sortMethod;"hubsize"===o?this._determineLevelsByHubsize():"directed"===o?this._determineLevelsDirected():"custom"===o&&this._determineLevelsCustomCallback()}for(var r in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,r)&&this.hierarchical.ensureLevel(r);var s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,i={},n=function(e,i){var n=t.hierarchical.trees;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&n[o]===e&&t.direction.shift(o,i)},o=function(){for(var e=[],i=0;i0)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1e9,n=1e9,o=1e9,r=1e9,s=-1e9;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var d=t.body.nodes[a],l=t.hierarchical.levels[d.id],c=t.direction.getPosition(d),h=SK(t._getSpaceAroundNode(d,e),2),u=h[0],p=h[1];n=Math.min(u,n),o=Math.min(p,o),l<=i&&(r=Math.min(c,r),s=Math.max(c,s))}return[r,s,n,o]},a=function(e,i,n){for(var o=t.hierarchical,r=0;r1)for(var d=0;d2&&void 0!==arguments[2]&&arguments[2],a=t.direction.getPosition(i),d=t.direction.getPosition(n),l=Math.abs(d-a),c=t.options.hierarchical.nodeSpacing;if(l>c){var h={},u={};r(i,h),r(n,u);var p=function(e,i){var n=t.hierarchical.getMaxLevel(e.id),o=t.hierarchical.getMaxLevel(i.id);return Math.min(n,o)}(i,n),f=s(h,p),m=s(u,p),v=f[1],g=m[0],y=m[2];if(Math.abs(v-g)>c){var b=v-g+c;b<-y+c&&(b=-y+c),b<0&&(t._shiftBlock(n.id,b),e=!0,!0===o&&t._centerParent(n))}}},l=function(n,o){for(var a=o.id,d=o.edges,l=t.hierarchical.levels[o.id],c=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,h={},u=[],p=0;p0?p=Math.min(u,h-t.options.hierarchical.nodeSpacing):u<0&&(p=-Math.min(-u,c-t.options.hierarchical.nodeSpacing)),0!=p&&(t._shiftBlock(o.id,p),e=!0)}(b),function(i){var n=t.direction.getPosition(o),r=SK(t._getSpaceAroundNode(o),2),s=r[0],a=r[1],d=i-n,l=n;d>0?l=Math.min(n+(a-t.options.hierarchical.nodeSpacing),i):d<0&&(l=Math.max(n-(s-t.options.hierarchical.nodeSpacing),i)),l!==n&&(t.direction.setPosition(o,l),e=!0)}(b=y(n,d))};!0===this.options.hierarchical.blockShifting&&(function(i){var n=t.hierarchical.getLevels();n=GZ(n).call(n);for(var o=0;o0&&Math.abs(h)0&&(d=this.direction.getPosition(n[r-1])+a),this.direction.setPosition(s,d,e),this._validatePositionAndContinue(s,e,d),o++}}}}},{key:"_placeBranchNodes",value:function(t,e){var i,n=this.hierarchical.childrenReference[t];if(void 0!==n){for(var o=[],r=0;re&&void 0===this.positionedNodes[a.id]))return;var l=this.options.hierarchical.nodeSpacing,c=void 0;c=0===s?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(o[s-1])+l,this.direction.setPosition(a,c,d),this._validatePositionAndContinue(a,d,c)}var h=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[t],h,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,i){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var n=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(i-nt}),"from",t)}(i),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,i){t.hierarchical.levels[i.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,i.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,n={},o=function i(o,r){if(void 0===n[o.id]){var s;t.hierarchical.setTreeIndex(o,r),n[o.id]=!0;for(var a=t._getActiveEdges(o),d=0;d=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function Xnt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&!1!==this.options.deleteNode||0===i&&!1!==this.options.deleteEdge)&&(!0===s&&this._createSeperator(4),this._createDeleteButton(r)),this._bindElementEvents(this.closeDiv,Jz(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",Jz(e=this.showManipulatorToolbar).call(e,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var e,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Jz(e=this.toggleEditMode).call(e,this))}this._temporaryBindEvent("click",Jz(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler.getSelectedNodes()[0];if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){var i=T5({},e.options,!1);if(i.x=e.x,i.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(i,(function(e){null!=e&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var t,e,i,n,o;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var r,s=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(s),this._createSeperator(),this._createDescription(s.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Jz(r=this.toggleEditMode).call(r,this))}this._temporaryBindUI("onTouch",Jz(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",Jz(e=this._finishConnect).call(e,this)),this._temporaryBindUI("onDrag",Jz(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",Jz(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDragStart",Jz(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",(function(){}))}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==RY(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Jz(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0!==this.edgeBeingEditedId){var i,n,o,r,s=this.body.edges[this.edgeBeingEditedId],a=this._getNewTargetNode(s.from.x,s.from.y),d=this._getNewTargetNode(s.to.x,s.to.y);this.temporaryIds.nodes.push(a.id),this.temporaryIds.nodes.push(d.id),this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id),this.body.nodes[d.id]=d,this.body.nodeIndices.push(d.id),this._temporaryBindUI("onTouch",Jz(i=this._controlNodeTouch).call(i,this)),this._temporaryBindUI("onTap",(function(){})),this._temporaryBindUI("onHold",(function(){})),this._temporaryBindUI("onDragStart",Jz(n=this._controlNodeDragStart).call(n,this)),this._temporaryBindUI("onDrag",Jz(o=this._controlNodeDrag).call(o,this)),this._temporaryBindUI("onDragEnd",Jz(r=this._controlNodeDragEnd).call(r,this)),this._temporaryBindUI("onMouseMove",(function(){})),this._temporaryBindEvent("beforeDrawing",(function(t){var e=s.edgeType.findBorderPositions(t);!1===a.selected&&(a.x=e.from.x,a.y=e.from.y),!1===d.selected&&(d.x=e.to.x,d.y=e.to.y)})),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var l=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(l.from.id,l.to.id)}}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var e=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),n=void 0;if(e.length>0){for(var o=0;o0&&"function"==typeof this.options.deleteEdge&&(n=this.options.deleteEdge);if("function"==typeof n){var r={nodes:e,edges:i};if(2!==n.length)throw new Error("The function for delete does not support two arguments (data, callback)");n(r,(function(e){null!=e&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){var t,e;(void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv)&&(this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",null!==(t=null===(e=this.options.locales[this.options.locale])||void 0===e?void 0:e.close)&&void 0!==t?t:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,e){var i=T5({},this.options.controlNodeStyle);i.id="targetNode"+Ptt(),i.hidden=!1,i.physics=!1,i.x=t,i.y=e;var n=this.body.functions.createNode(i);return n.shape.boundingBox={left:t,right:t,top:e,bottom:e},n}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},x5(this.editModeDiv);var e=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,Jz(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(x5(this.editModeDiv),x5(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var t,e,i=qnt(kQ(t=this._domEventListenerCleanupQueue).call(t,0));try{for(i.s();!(e=i.n()).done;){(0,e.value)()}}catch(t){i.e(t)}finally{i.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),x5(this.manipulationDiv),x5(this.editModeDiv),x5(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var e,i=this._createButton("addNode","vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Jz(e=this.addNodeMode).call(e,this))}},{key:"_createAddEdgeButton",value:function(t){var e,i=this._createButton("addEdge","vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Jz(e=this.addEdgeMode).call(e,this))}},{key:"_createEditNodeButton",value:function(t){var e,i=this._createButton("editNode","vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Jz(e=this.editNode).call(e,this))}},{key:"_createEditEdgeButton",value:function(t){var e,i=this._createButton("editEdge","vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Jz(e=this.editEdgeMode).call(e,this))}},{key:"_createDeleteButton",value:function(t){var e,i;i=this.options.rtl?"vis-delete-rtl":"vis-delete";var n=this._createButton("delete",i,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,Jz(e=this.deleteSelected).call(e,this))}},{key:"_createBackButton",value:function(t){var e,i=this._createButton("back","vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Jz(e=this.showManipulatorToolbar).call(e,this))}},{key:"_createButton",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("button"),this.manipulationDOM[t+"Div"].className="vis-button "+e,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=n,this.manipulationDOM[t+"Label"].innerText=i,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=t,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:"_temporaryBindUI",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+P0(pZ(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t=0;s--)if(o[s]!==this.selectedControlNode.id){r=this.body.nodes[o[s]];break}if(void 0!==r&&void 0!==this.selectedControlNode)if(!0===r.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var a=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===a.id?this._performEditEdge(r.id,n.to.id):this._performEditEdge(n.from.id,r.id)}else n.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=Sz({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var e=this.lastTouch,i=this.selectionHandler.getNodeAt(e);if(void 0!==i)if(!0===i.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var n=this._getNewTargetNode(i.x,i.y);this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id);var o=this.body.functions.createEdge({id:"connectionEdge"+Ptt(),from:i.id,to:n.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(n.id),this.temporaryIds.edges.push(o.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=void 0;void 0!==this.temporaryIds.edges[0]&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,s=o.length-1;s>=0;s--){var a;if(-1===d0(a=this.temporaryIds.nodes).call(a,o[s])){r=this.body.nodes[o[s]];break}}if(t.controlEdge={from:n,to:r?r.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",t,e),void 0!==this.temporaryIds.nodes[0]){var d=this.body.nodes[this.temporaryIds.nodes[0]];d.x=this.canvas._XconvertDOMtoCanvas(e.x),d.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=void 0;void 0!==this.temporaryIds.edges[0]&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,s=o.length-1;s>=0;s--){var a;if(-1===d0(a=this.temporaryIds.nodes).call(a,o[s])){r=this.body.nodes[o[s]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==r&&(!0===r.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[n]&&void 0!==this.body.nodes[r.id]&&this._performAddEdge(n,r.id)),t.controlEdge={from:n,to:r?r.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",t,e),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var e=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",t,e,void 0,!0)}},{key:"_performAddNode",value:function(t){var e=this,i={id:Ptt(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(i,(function(t){null!=t&&"addNode"===e.inMode&&e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,e){var i=this,n={from:t,to:e};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(n,(function(t){null!=t&&"addEdge"===i.inMode&&(i.body.data.edges.getDataSet().add(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,e){var i=this,n={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if("object"===RY(o)&&(o=o.editWithoutDrag),"function"==typeof o){if(2!==o.length)throw new Error("The function for edit does not support two arguments (data, callback)");o(n,(function(t){null==t||"editEdge"!==i.inMode?(i.body.edges[n.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),Ynt="string",Knt="boolean",Znt="number",Qnt="array",Jnt="object",tot=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],eot={borderWidth:{number:Znt},borderWidthSelected:{number:Znt,undefined:"undefined"},brokenImage:{string:Ynt,undefined:"undefined"},chosen:{label:{boolean:Knt,function:"function"},node:{boolean:Knt,function:"function"},__type__:{object:Jnt,boolean:Knt}},color:{border:{string:Ynt},background:{string:Ynt},highlight:{border:{string:Ynt},background:{string:Ynt},__type__:{object:Jnt,string:Ynt}},hover:{border:{string:Ynt},background:{string:Ynt},__type__:{object:Jnt,string:Ynt}},__type__:{object:Jnt,string:Ynt}},opacity:{number:Znt,undefined:"undefined"},fixed:{x:{boolean:Knt},y:{boolean:Knt},__type__:{object:Jnt,boolean:Knt}},font:{align:{string:Ynt},color:{string:Ynt},size:{number:Znt},face:{string:Ynt},background:{string:Ynt},strokeWidth:{number:Znt},strokeColor:{string:Ynt},vadjust:{number:Znt},multi:{boolean:Knt,string:Ynt},bold:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},boldital:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},ital:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},mono:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},__type__:{object:Jnt,string:Ynt}},group:{string:Ynt,number:Znt,undefined:"undefined"},heightConstraint:{minimum:{number:Znt},valign:{string:Ynt},__type__:{object:Jnt,boolean:Knt,number:Znt}},hidden:{boolean:Knt},icon:{face:{string:Ynt},code:{string:Ynt},size:{number:Znt},color:{string:Ynt},weight:{string:Ynt,number:Znt},__type__:{object:Jnt}},id:{string:Ynt,number:Znt},image:{selected:{string:Ynt,undefined:"undefined"},unselected:{string:Ynt,undefined:"undefined"},__type__:{object:Jnt,string:Ynt}},imagePadding:{top:{number:Znt},right:{number:Znt},bottom:{number:Znt},left:{number:Znt},__type__:{object:Jnt,number:Znt}},label:{string:Ynt,undefined:"undefined"},labelHighlightBold:{boolean:Knt},level:{number:Znt,undefined:"undefined"},margin:{top:{number:Znt},right:{number:Znt},bottom:{number:Znt},left:{number:Znt},__type__:{object:Jnt,number:Znt}},mass:{number:Znt},physics:{boolean:Knt},scaling:{min:{number:Znt},max:{number:Znt},label:{enabled:{boolean:Knt},min:{number:Znt},max:{number:Znt},maxVisible:{number:Znt},drawThreshold:{number:Znt},__type__:{object:Jnt,boolean:Knt}},customScalingFunction:{function:"function"},__type__:{object:Jnt}},shadow:{enabled:{boolean:Knt},color:{string:Ynt},size:{number:Znt},x:{number:Znt},y:{number:Znt},__type__:{object:Jnt,boolean:Knt}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Knt,array:Qnt},borderRadius:{number:Znt},interpolation:{boolean:Knt},useImageSize:{boolean:Knt},useBorderWithImage:{boolean:Knt},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Jnt}},size:{number:Znt},title:{string:Ynt,dom:"dom",undefined:"undefined"},value:{number:Znt,undefined:"undefined"},widthConstraint:{minimum:{number:Znt},maximum:{number:Znt},__type__:{object:Jnt,boolean:Knt,number:Znt}},x:{number:Znt},y:{number:Znt},__type__:{object:Jnt}},iot={configure:{enabled:{boolean:Knt},filter:{boolean:Knt,string:Ynt,array:Qnt,function:"function"},container:{dom:"dom"},showButton:{boolean:Knt},__type__:{object:Jnt,boolean:Knt,string:Ynt,array:Qnt,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Knt},scaleFactor:{number:Znt},type:{string:tot},imageHeight:{number:Znt},imageWidth:{number:Znt},src:{string:Ynt},__type__:{object:Jnt,boolean:Knt}},middle:{enabled:{boolean:Knt},scaleFactor:{number:Znt},type:{string:tot},imageWidth:{number:Znt},imageHeight:{number:Znt},src:{string:Ynt},__type__:{object:Jnt,boolean:Knt}},from:{enabled:{boolean:Knt},scaleFactor:{number:Znt},type:{string:tot},imageWidth:{number:Znt},imageHeight:{number:Znt},src:{string:Ynt},__type__:{object:Jnt,boolean:Knt}},__type__:{string:["from","to","middle"],object:Jnt}},endPointOffset:{from:{number:Znt},to:{number:Znt},__type__:{object:Jnt,number:Znt}},arrowStrikethrough:{boolean:Knt},background:{enabled:{boolean:Knt},color:{string:Ynt},size:{number:Znt},dashes:{boolean:Knt,array:Qnt},__type__:{object:Jnt,boolean:Knt}},chosen:{label:{boolean:Knt,function:"function"},edge:{boolean:Knt,function:"function"},__type__:{object:Jnt,boolean:Knt}},color:{color:{string:Ynt},highlight:{string:Ynt},hover:{string:Ynt},inherit:{string:["from","to","both"],boolean:Knt},opacity:{number:Znt},__type__:{object:Jnt,string:Ynt}},dashes:{boolean:Knt,array:Qnt},font:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},background:{string:Ynt},strokeWidth:{number:Znt},strokeColor:{string:Ynt},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:Znt},multi:{boolean:Knt,string:Ynt},bold:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},boldital:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},ital:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},mono:{color:{string:Ynt},size:{number:Znt},face:{string:Ynt},mod:{string:Ynt},vadjust:{number:Znt},__type__:{object:Jnt,string:Ynt}},__type__:{object:Jnt,string:Ynt}},hidden:{boolean:Knt},hoverWidth:{function:"function",number:Znt},label:{string:Ynt,undefined:"undefined"},labelHighlightBold:{boolean:Knt},length:{number:Znt,undefined:"undefined"},physics:{boolean:Knt},scaling:{min:{number:Znt},max:{number:Znt},label:{enabled:{boolean:Knt},min:{number:Znt},max:{number:Znt},maxVisible:{number:Znt},drawThreshold:{number:Znt},__type__:{object:Jnt,boolean:Knt}},customScalingFunction:{function:"function"},__type__:{object:Jnt}},selectionWidth:{function:"function",number:Znt},selfReferenceSize:{number:Znt},selfReference:{size:{number:Znt},angle:{number:Znt},renderBehindTheNode:{boolean:Knt},__type__:{object:Jnt}},shadow:{enabled:{boolean:Knt},color:{string:Ynt},size:{number:Znt},x:{number:Znt},y:{number:Znt},__type__:{object:Jnt,boolean:Knt}},smooth:{enabled:{boolean:Knt},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:Znt},forceDirection:{string:["horizontal","vertical","none"],boolean:Knt},__type__:{object:Jnt,boolean:Knt}},title:{string:Ynt,undefined:"undefined"},width:{number:Znt},widthConstraint:{maximum:{number:Znt},__type__:{object:Jnt,boolean:Knt,number:Znt}},value:{number:Znt,undefined:"undefined"},__type__:{object:Jnt}},groups:{useDefaultGroups:{boolean:Knt},__any__:eot,__type__:{object:Jnt}},interaction:{dragNodes:{boolean:Knt},dragView:{boolean:Knt},hideEdgesOnDrag:{boolean:Knt},hideEdgesOnZoom:{boolean:Knt},hideNodesOnDrag:{boolean:Knt},hover:{boolean:Knt},keyboard:{enabled:{boolean:Knt},speed:{x:{number:Znt},y:{number:Znt},zoom:{number:Znt},__type__:{object:Jnt}},bindToWindow:{boolean:Knt},autoFocus:{boolean:Knt},__type__:{object:Jnt,boolean:Knt}},multiselect:{boolean:Knt},navigationButtons:{boolean:Knt},selectable:{boolean:Knt},selectConnectedEdges:{boolean:Knt},hoverConnectedEdges:{boolean:Knt},tooltipDelay:{number:Znt},zoomView:{boolean:Knt},zoomSpeed:{number:Znt},__type__:{object:Jnt}},layout:{randomSeed:{undefined:"undefined",number:Znt,string:Ynt},improvedLayout:{boolean:Knt},clusterThreshold:{number:Znt},hierarchical:{enabled:{boolean:Knt},levelSeparation:{number:Znt},nodeSpacing:{number:Znt},treeSpacing:{number:Znt},blockShifting:{boolean:Knt},edgeMinimization:{boolean:Knt},parentCentralization:{boolean:Knt},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Jnt,boolean:Knt}},__type__:{object:Jnt}},manipulation:{enabled:{boolean:Knt},initiallyActive:{boolean:Knt},addNode:{boolean:Knt,function:"function"},addEdge:{boolean:Knt,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Jnt,boolean:Knt,function:"function"}},deleteNode:{boolean:Knt,function:"function"},deleteEdge:{boolean:Knt,function:"function"},controlNodeStyle:eot,__type__:{object:Jnt,boolean:Knt}},nodes:eot,physics:{enabled:{boolean:Knt},barnesHut:{theta:{number:Znt},gravitationalConstant:{number:Znt},centralGravity:{number:Znt},springLength:{number:Znt},springConstant:{number:Znt},damping:{number:Znt},avoidOverlap:{number:Znt},__type__:{object:Jnt}},forceAtlas2Based:{theta:{number:Znt},gravitationalConstant:{number:Znt},centralGravity:{number:Znt},springLength:{number:Znt},springConstant:{number:Znt},damping:{number:Znt},avoidOverlap:{number:Znt},__type__:{object:Jnt}},repulsion:{centralGravity:{number:Znt},springLength:{number:Znt},springConstant:{number:Znt},nodeDistance:{number:Znt},damping:{number:Znt},__type__:{object:Jnt}},hierarchicalRepulsion:{centralGravity:{number:Znt},springLength:{number:Znt},springConstant:{number:Znt},nodeDistance:{number:Znt},damping:{number:Znt},avoidOverlap:{number:Znt},__type__:{object:Jnt}},maxVelocity:{number:Znt},minVelocity:{number:Znt},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Knt},iterations:{number:Znt},updateInterval:{number:Znt},onlyDynamicEdges:{boolean:Knt},fit:{boolean:Knt},__type__:{object:Jnt,boolean:Knt}},timestep:{number:Znt},adaptiveTimestep:{boolean:Knt},wind:{x:{number:Znt},y:{number:Znt},__type__:{object:Jnt}},__type__:{object:Jnt,boolean:Knt}},autoResize:{boolean:Knt},clickToUse:{boolean:Knt},locale:{string:Ynt},locales:{__any__:{any:"any"},__type__:{object:Jnt}},height:{string:Ynt},width:{string:Ynt},__type__:{object:Jnt}},not={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},oot=function(t,e,i){var n;return!(!YQ(t).call(t,"physics")||!YQ(n=not.physics.solver).call(n,e)||i.physics.solver===e||"wind"===e)},rot=function(){function t(){_G(this,t)}return jY(t,[{key:"getDistances",value:function(t,e,i){for(var n={},o=t.edges,r=0;r2&&void 0!==arguments[2]&&arguments[2],n=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(n),this._createK_matrix(n),this._createE_matrix();for(var o=0,r=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),s=1e9,a=0,d=0,l=0,c=0,h=0;s>.01&&o1&&h<5;){h+=1,this._moveNode(a,d,l);var p=SK(this._getEnergy(a),3);c=p[0],d=p[1],l=p[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,n=0,o=e[0],r=0,s=0,a=0;a{class e extends t{connectedCallback(){super.connectedCallback(),this.__checkSubscribed()}disconnectedCallback(){if(super.disconnectedCallback(),this.__unsubs){for(;this.__unsubs.length;){const t=this.__unsubs.pop();t instanceof Promise?t.then((t=>t())):null!=t&&t()}this.__unsubs=void 0}}updated(t){super.updated(t),t.has("hass")&&this.__checkSubscribed()}hassSubscribe(){return[]}__checkSubscribed(){void 0===this.__unsubs&&this.isConnected&&void 0!==this.hass&&(this.__unsubs=this.hassSubscribe())}}return o([ut({attribute:!1})],e.prototype,"hass",void 0),e};return console.info(`%c WISER-ZIGBEE-NETWORK-CARD \n%c ${Pt("common.version")} ${kt} `,"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),window.customCards=window.customCards||[],window.customCards.push({type:"wiser-zigbee-card",name:"Wiser Zigbee Card",description:"A card to display Wiser Zigbee network between devices"}),t.WiserZigbeeCard=class extends(dot(dt)){constructor(){super(...arguments),this.options=Ot,this.current_theme="",this.need_render=!1,this.is_initialised=!1,this.is_preview=!1}static async getConfigElement(){return document.createElement("wiser-zigbee-card-editor")}static getStubConfig(){return{}}setConfig(t){if(!t)throw new Error(Pt("common.invalid_configuration"));this.config=Object.assign({name:"Wiser Zigbee Network"},t),this.loadCardHelpers(),this.initialise()}async loadCardHelpers(){this._helpers=await window.loadCardHelpers()}async isComponentLoaded(){for(;!this.hass||!this.hass.config.components.includes("wiser");)await new Promise((t=>setTimeout(t,100)));return!0}async initialise(){var t;await this.isComponentLoaded()&&(null===(t=this.config)||void 0===t?void 0:t.layout_data)&&(this.layoutData=this.config.layout_data);const e=this._dialog_close.bind(this);return window.addEventListener("dialog-closed",e),this.loadData(),!0}hassSubscribe(){return[this.hass.connection.subscribeMessage((t=>this.handleUpdate(t)),{type:"wiser_updated"})]}_dialog_close(t){this.is_preview&&"hui-dialog-edit-card"==t.detail.dialog&&(this.is_preview=!1,this.need_render=!0)}async handleUpdate(t){"wiser_updated"==t.event&&this.config.auto_update&&!this.is_preview&&this.is_initialised&&await this.loadData()}async loadData(){const t=await(e=this.hass,i=this.config.hub,e.callWS({type:"wiser/zigbee",hub:i}));var e,i;this.layoutData?this.zigbeeData=await this.addLayout(t):this.zigbeeData=t,this.need_render=!0}async addLayout(t){for(let e=0;e{let t=document.querySelector("home-assistant");return t=t&&t.shadowRoot,t=t&&t.querySelector("hui-dialog-edit-card"),t=t&&t.shadowRoot,t=t&&t.querySelector("ha-dialog"),t=t&&t.querySelector("hui-card-preview"),!!t})(),!this.hass||!this.config)return!1;if(1==this.need_render)return!0;if(this.is_preview&&this.is_initialised)return!1;if((null===(e=this.hass)||void 0===e?void 0:e.selectedTheme)&&this.current_theme!=(null===(i=this.hass)||void 0===i?void 0:i.selectedTheme)){this.current_theme=this.hass.selectedTheme;const t=getComputedStyle(document.documentElement).getPropertyValue("--primary-text-color");return this.options.edges.font.color=t,null===(n=this.network)||void 0===n||n.setOptions(this.options),!0}return function(t,e,i){if(e.has("config")||i)return!0;if(t.config.entity){var n=e.get("hass");return!n||n.states[t.config.entity]!==t.hass.states[t.config.entity]}return!1}(this,t,!1)}async _initialise_network(){var t;await this.loadData(),this.container=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("zigbee-network"),this.network=new aot(this.container,this.zigbeeData,this.options)}firstUpdated(){this._initialise_network(),this.is_initialised=!0}render(){var t;return this.need_render=!1,this.zigbeeData&&this.network&&(null===(t=this.network)||void 0===t||t.setData(this.zigbeeData)),W`
+ * Licensed under the MIT license */
+function gY(){return gY=Object.assign||function(t){for(var e=1;e-1}var rG=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===AY&&(t=this.compute()),IY&&this.manager.element.style&&NY[t]&&(this.manager.element.style[TY]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return iG(this.manager.recognizers,(function(e){nG(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(oG(t,DY))return DY;var e=oG(t,MY),i=oG(t,FY);return e&&i?DY:e||i?e?MY:FY:oG(t,PY)?PY:RY}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=oG(n,DY)&&!NY[DY],r=oG(n,FY)&&!NY[FY],s=oG(n,MY)&&!NY[MY];if(o){var a=1===t.pointers.length,d=t.distance<2,l=t.deltaTime<250;if(a&&d&&l)return}if(!s||!r)return o||r&&i&ZY||s&&i&QY?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function sG(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function aG(t){var e=t.length;if(1===e)return{x:kY(t[0].clientX),y:kY(t[0].clientY)};for(var i=0,n=0,o=0;o=OY(e)?t<0?XY:YY:e<0?GY:KY}function uG(t,e,i){return{x:e/t||0,y:i/t||0}}function pG(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=dG(e)),o>1&&!i.firstMultiple?i.firstMultiple=dG(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,d=e.center=aG(n);e.timeStamp=CY(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=cG(a,d),e.distance=lG(a,d),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==UY&&r.eventType!==WY||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=hG(e.deltaX,e.deltaY);var l,c,h=uG(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=OY(h.x)>OY(h.y)?h.x:h.y,e.scale=s?(l=s.pointers,lG((c=n)[0],c[1],eG)/lG(l[0],l[1],eG)):1,e.rotation=s?function(t,e){return cG(e[1],e[0],eG)+cG(t[1],t[0],eG)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==VY&&(a>$Y||void 0===s.velocity)){var d=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,c=uG(a,d,l);n=c.x,o=c.y,i=OY(c.x)>OY(c.y)?c.x:c.y,r=hG(d,l),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var u,p=t.element,f=e.srcEvent;sG(u=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=u),e.target=p}function fG(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=e&UY&&n-o==0,s=e&(WY|VY)&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,pG(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function mG(t){return t.trim().split(/\s+/g)}function vG(t,e,i){iG(mG(e),(function(e){t.addEventListener(e,i,!1)}))}function gG(t,e,i){iG(mG(e),(function(e){t.removeEventListener(e,i,!1)}))}function yG(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var bG=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){nG(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&vG(this.element,this.evEl,this.domHandler),this.evTarget&&vG(this.target,this.evTarget,this.domHandler),this.evWin&&vG(yG(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&gG(this.element,this.evEl,this.domHandler),this.evTarget&&gG(this.target,this.evTarget,this.domHandler),this.evWin&&gG(yG(this.element),this.evWin,this.domHandler)},t}();function xG(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]})):n.sort()),n}var TG={touchstart:UY,touchmove:2,touchend:WY,touchcancel:VY},IG=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return yY(e,t),e.prototype.handler=function(t){var e=TG[t.type],i=AG.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:jY,srcEvent:t})},e}(bG);function AG(t,e){var i,n,o=CG(t.touches),r=this.targetIds;if(e&(2|UY)&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=CG(t.changedTouches),a=[],d=this.target;if(n=o.filter((function(t){return sG(t.target,d)})),e===UY)for(i=0;i-1&&n.splice(t,1)}),DG)}}function FG(t,e){t&UY?(this.primaryTouch=e.changedPointers[0].identifier,MG.call(this,e)):t&(WY|VY)&&MG.call(this,e)}function NG(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+$G(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+$G(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=zG},e.canEmit=function(){for(var t=0;te.threshold&&o&e.direction},i.attrTest=function(t){return VG.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=qG(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(VG),YG=function(t){function e(e){return void 0===e&&(e={}),t.call(this,gY({event:"swipe",threshold:10,velocity:.3,direction:ZY|QY,pointers:1},e))||this}yY(e,t);var i=e.prototype;return i.getTouchAction=function(){return XG.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return n&(ZY|QY)?i=e.overallVelocity:n&ZY?i=e.overallVelocityX:n&QY&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&OY(i)>this.options.velocity&&e.eventType&WY},i.emit=function(t){var e=qG(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(VG),GG=function(t){function e(e){return void 0===e&&(e={}),t.call(this,gY({event:"pinch",threshold:0,pointers:2},e))||this}yY(e,t);var i=e.prototype;return i.getTouchAction=function(){return[DY]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(VG),KG=function(t){function e(e){return void 0===e&&(e={}),t.call(this,gY({event:"rotate",threshold:0,pointers:2},e))||this}yY(e,t);var i=e.prototype;return i.getTouchAction=function(){return[DY]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(VG),ZG=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,gY({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}yY(e,t);var i=e.prototype;return i.getTouchAction=function(){return[RY]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distancei.time;if(this._input=t,!o||!n||t.eventType&(WY|VY)&&!r)this.reset();else if(t.eventType&UY)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(t.eventType&WY)return 8;return zG},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&t.eventType&WY?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=CY(),this.manager.emit(this.options.event,this._input)))},e}(UG),QG={domEvents:!1,touchAction:AY,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},JG=[[KG,{enable:!1}],[GG,{enable:!1},["rotate"]],[YG,{direction:ZY}],[XG,{direction:ZY},["swipe"]],[WG],[WG,{event:"doubletap",taps:2},["tap"]],[ZG]];function tK(t,e){var i,n=t.element;n.style&&(iG(t.options.cssProps,(function(o,r){i=SY(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var eK=function(){function t(t,e){var i,n=this;this.options=_Y({},QG,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(LY?OG:zY?IG:BY?BG:PG))(i,fG),this.touchAction=new rG(this,this.options.touchAction),tK(this,!0),iG(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return _Y(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var sK=rK((function(t,e,i){for(var n=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function pK(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),i=t(" "),n=t(" "),o=0;o2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==sW(e[n]))kK(t,e,n,i);else{var o=t[n],r=e[n];EK(o)&&EK(r)&&OK(o,r,i)}}function CK(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(fV(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o3&&void 0!==arguments[3]&&arguments[3];if(fV(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&!Hq(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?TK(e[o],i[o]):kK(e,i,o,n);else if(fV(i[o])){e[o]=[];for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===i)if("object"===sW(e[o])&&null!==e[o]&&qq(e[o])===Object.prototype)void 0===t[o]?t[o]=TK({},e[o],i):"object"===sW(t[o])&&null!==t[o]&&qq(t[o])===Object.prototype?TK(t[o],e[o],i):kK(t,e,o,n);else if(fV(e[o])){var r;t[o]=aV(r=e[o]).call(r)}else kK(t,e,o,n);return t}function IK(t,e){var i;return sV(i=[]).call(i,JW(t),[e])}function AK(t){return t.getBoundingClientRect().top}function RK(t,e){if(fV(t))for(var i=t.length,n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},r=function(t){return null!==t&&"object"===sW(t)};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var s=e[i],a=r(n)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(n),d=a?n[i]:void 0,l=d?d.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return r(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!r(t[i])){if(!o(d))return;t[i]=NX(d)}if(r(s)){var c=!0;void 0!==s.enabled?c=s.enabled:void 0!==l&&(c=d.enabled),function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}(t,e,i),t[i].enabled=c}}}var UK={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function WK(t,e){var i;fV(e)||(e=[e]);var n,o=uK(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r){i=r[e[0]];for(var s=1;s0&&void 0!==arguments[0]?arguments[0]:1;rj(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return cW(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return VK[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===wK(t)){if(!0===jK(t)){var o=t.substr(4).substr(0,t.length-5).split(",");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===function(t){return xK.test(t)}(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===zK(t)){var s=PK(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+jX(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=pF({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",rY((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=pF({},t)),this.color=t;var e=NK(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),r=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=NK(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=BK(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=NK(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),vY(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var o=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var r=document.createElement("DIV");r.style.color="red",r.style.fontWeight="bold",r.style.padding="10px",r.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(r)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=FF(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=FF(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=FF(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=FF(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new mK(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,o,r=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,s),this.centerCoordinates={x:.5*r,y:.5*s},this.r=.49*r;var a,d=2*Math.PI/360,l=1/360,c=1/this.r;for(n=0;n<360;n++)for(o=0;o3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};rj(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.hideOption=r,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},pF(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new qK(o),this.wrapper=void 0}return cW(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(fV(t))this.options.filter=t.join();else if("object"===sW(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Jq(t)&&(this.options.filter=Jq(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Jq(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Jq(this.options),e=0,i=!1;for(var n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===PX(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?i-1:0),o=1;o2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===i){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(XK("i","b",t))}else n.innerText=t+":";return n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var o=0;void 0!==e&&-1!==PX(t).call(t,e)&&(o=PX(t).call(t,e));for(var r=0;rr&&1!==r&&(a.max=Math.ceil(e*c),l=a.max,d="range increased"),a.value=e}else a.value=n;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=a.value;var u=this;a.onchange=function(){h.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){h.value=this.value};var p=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,p,a,h);""!==d&&this.popupHistory[f]!==l&&(this.popupHistory[f]=l,this._setupPopup(d,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=Jq(this.options),r=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){n=!0;var a=t[s],d=IK(e,s);if("function"==typeof o&&!1===(n=o(s,e))&&!fV(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,d,!0),this.allowCreation=!1===i),!1!==n){r=!0;var l=this._getValue(d);if(fV(a))this._handleArray(a,l,d);else if("string"==typeof a)this._makeTextInput(a,l,d);else if("boolean"==typeof a)this._makeCheckbox(a,l,d);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var c=IK(d,"enabled"),h=this._getValue(c);if(!0===h){var u=this._makeLabel(s,d,!0);this._makeItem(d,u),r=this._handleObject(a,d)||r}else this._makeCheckbox(a,h,d)}else{var p=this._makeLabel(s,d,!0);this._makeItem(d,p),r=this._handleObject(a,d)||r}}else console.error("dont know how to handle",a,s,d)}}return r}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var o=0;oo-this.padding&&(a=!0),r=a?this.x-i:this.x,s=d?this.y-e:this.y}else(s=this.y-e)+e+this.padding>n&&(s=n-e-this.padding),so&&(r=o-i-this.padding),rs.distance?" in "+t.printLocation(r.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):r.distance<=8?'. Did you mean "'+r.closestMatch+'"?'+t.printLocation(r.path,e):". Did you mean one of these: "+t.print(kV(i))+t.printLocation(n,e),console.error('%cUnknown option detected: "'+e+'"'+o,QK),ZK=!0}},{key:"findInOptions",value:function(e,i,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,a="",d=[],l=e.toLowerCase(),c=void 0;for(var h in i){var u=void 0;if(void 0!==i[h].__type__&&!0===r){var p=t.findInOptions(e,i[h],IK(n,h));s>p.distance&&(a=p.closestMatch,d=p.path,s=p.distance,c=p.indexMatch)}else{var f;-1!==PX(f=h.toLowerCase()).call(f,l)&&(c=h),s>(u=t.levenshteinDistance(e,h))&&(a=h,d=aV(o=n).call(o),s=u)}}return{closestMatch:a,path:d,distance:s,indexMatch:c}}},{key:"printLocation",value:function(t,e){for(var i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",n=0;n":!0,"--":!0},hZ="",uZ=0,pZ="",fZ="",mZ=lZ.NULL;function vZ(){uZ++,pZ=hZ.charAt(uZ)}function gZ(){return hZ.charAt(uZ+1)}function yZ(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function bZ(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function xZ(t,e,i){for(var n=e.split("."),o=t;n.length;){var r=n.shift();n.length?(o[r]||(o[r]={}),o=o[r]):o[r]=i}}function _Z(t,e){for(var i,n,o=null,r=[t],s=t;s.parent;)r.push(s.parent),s=s.parent;if(s.nodes)for(i=0,n=s.nodes.length;i