updating configuration
No files matched your search
@@ -1 +1 @@
|
||||
2026.7.2
|
||||
2026.8.0
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 24 KiB |
@@ -1 +1 @@
|
||||
{"pid": 71, "version": 1, "ha_version": "2026.7.2", "start_ts": 1784057808.5709116}
|
||||
{"pid": 71, "version": 1, "ha_version": "2026.8.0", "start_ts": 1786366403.9299605}
|
||||
@@ -24,8 +24,9 @@
|
||||
- 37e299b4ee90a2e39ae7e04328439ff4
|
||||
- 8883de9fc71bef0b663c61faa4fbefb4
|
||||
- f6dbda8398f290149bc8cb48a858452c
|
||||
- service: notify.telegram
|
||||
- service: telegram_bot.send_message
|
||||
data:
|
||||
entity_id: notify.home_assistant_fonvizina_fonvizina_18_1001567589226
|
||||
message: Звонок в дверь!
|
||||
mode: single
|
||||
- id: '1694942205257'
|
||||
@@ -35,11 +36,11 @@
|
||||
path: gmlupatelli/unavailable_entities_notification.yaml
|
||||
input:
|
||||
actions:
|
||||
- service: notify.telegram
|
||||
- service: telegram_bot.send_message
|
||||
data:
|
||||
entity_id: notify.home_assistant_fonvizina_fonvizina_18_1001567589226
|
||||
message: 'У вас есть недоступные устройства: {{entities}}'
|
||||
data:
|
||||
parse_mode: html
|
||||
parse_mode: html
|
||||
exclude:
|
||||
device_id:
|
||||
- fd4ed129390c68716ee6b5ca4ee6abe5
|
||||
@@ -272,14 +273,14 @@
|
||||
include_persistent_notification: disabled_persistent_notification
|
||||
include_custom_actions: enable_custom_actions
|
||||
custom_actions:
|
||||
- action: notify.telegram_monster
|
||||
- action: telegram_bot.send_message
|
||||
data:
|
||||
entity_id: notify.home_assistant_fonvizina_monster_123622180
|
||||
message: '<b>Садится батарея в датчиках:</b>
|
||||
|
||||
|
||||
{{all_sensors}}'
|
||||
data:
|
||||
parse_mode: html
|
||||
parse_mode: html
|
||||
- id: '1767036452762'
|
||||
alias: Дверь в гостиную - закрыта
|
||||
description: ''
|
||||
|
||||
@@ -6,14 +6,7 @@ homeassistant:
|
||||
external_url: "https://home-fnv.yandex5.ru"
|
||||
internal_url: "http://192.168.1.6:8123"
|
||||
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
ip_ban_enabled: true
|
||||
login_attempts_threshold: 15
|
||||
trusted_proxies:
|
||||
- 172.19.0.0/24
|
||||
- 172.18.0.0/24
|
||||
- 192.168.1.0/24
|
||||
# http config moved to .storage/http (UI-managed) in HA 2026.x: trusted_proxies, use_x_forwarded_for etc.
|
||||
|
||||
# Text to speech
|
||||
tts:
|
||||
|
||||
@@ -34,7 +34,9 @@ yandex_smart_home:
|
||||
- light.light_childroom_bed
|
||||
- light.light_childroom_main
|
||||
- light.light_childroom_spotlights
|
||||
- light.light_cloakroom
|
||||
- light.light_hall_long
|
||||
- light.light_hall_small
|
||||
- light.light_kitchen_bar_lamp
|
||||
- light.light_kitchen_set
|
||||
- light.light_kitchen_spotlights
|
||||
@@ -60,4 +62,170 @@ yandex_smart_home:
|
||||
#exclude_entities:
|
||||
# - light.highlight
|
||||
#exclude_entity_globs:
|
||||
# - sensor.weather_*
|
||||
# - sensor.weather_*
|
||||
entity_config:
|
||||
light.light_balcony_spotlight:
|
||||
name: 'Светильники'
|
||||
room: 'Балкон'
|
||||
sensor.temperature_balcony_temperature:
|
||||
room: 'Балкон'
|
||||
fan.ventilation_bath:
|
||||
name: 'Вытяжка'
|
||||
room: 'Ванная'
|
||||
light.light_bath:
|
||||
room: 'Ванная'
|
||||
light.light_bath_shelf:
|
||||
name: 'Подсветка'
|
||||
room: 'Ванная'
|
||||
sensor.temperature_bath_temperature:
|
||||
room: 'Ванная'
|
||||
switch.light_bath_mirror:
|
||||
name: 'Зеркало'
|
||||
room: 'Ванная'
|
||||
climate.ac_mainroom:
|
||||
name: 'Кондиционер'
|
||||
room: 'Гостиная'
|
||||
climate.radiator_mainroom:
|
||||
room: 'Гостиная'
|
||||
cover.curtain_mainroom:
|
||||
room: 'Гостиная'
|
||||
cover.curtain_mainroom_bobbinet:
|
||||
name: 'Тюль'
|
||||
room: 'Гостиная'
|
||||
light.light_mainroom_pc_spotlight:
|
||||
name: 'Над столом'
|
||||
room: 'Гостиная'
|
||||
light.plug_yolka:
|
||||
room: 'Гостиная'
|
||||
media_player.mainroom_tv:
|
||||
room: 'Гостиная'
|
||||
sensor.temperature_mainroom_temperature:
|
||||
room: 'Гостиная'
|
||||
switch.light_mainroom_mainlamp:
|
||||
name: 'Люстра'
|
||||
room: 'Гостиная'
|
||||
switch.light_mainroom_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Гостиная'
|
||||
climate.ac_childroom:
|
||||
name: 'Кондиционер'
|
||||
room: 'Детская'
|
||||
climate.radiator_childroom:
|
||||
room: 'Детская'
|
||||
light.light_childroom_bed:
|
||||
name: 'Кровать'
|
||||
room: 'Детская'
|
||||
light.light_childroom_main:
|
||||
name: 'Люстра'
|
||||
room: 'Детская'
|
||||
light.light_childroom_spotlights:
|
||||
name: 'Над Столом'
|
||||
room: 'Детская'
|
||||
sensor.temperature_childroom_temperature:
|
||||
room: 'Детская'
|
||||
script.away_mode:
|
||||
name: 'Сценарий я ушел'
|
||||
room: 'Дом'
|
||||
switch.water_valve:
|
||||
room: 'Дом'
|
||||
fan.ventilation_shower:
|
||||
name: 'Вытяжка'
|
||||
room: 'Душевая'
|
||||
light.light_shower_main_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Душевая'
|
||||
light.light_shower_shelf_light:
|
||||
name: 'Подсветка'
|
||||
room: 'Душевая'
|
||||
light.light_shower_shower_spotlights:
|
||||
name: 'Светильники Душ'
|
||||
room: 'Душевая'
|
||||
sensor.temperature_shower_temperature:
|
||||
name: 'Температура'
|
||||
room: 'Душевая'
|
||||
switch.shower_mirror:
|
||||
name: 'Зеркало'
|
||||
room: 'Душевая'
|
||||
light.light_cloakroom:
|
||||
room: 'Кладовка'
|
||||
light.light_hall_long:
|
||||
name: 'Светильники'
|
||||
room: 'Коридор'
|
||||
light.light_hall_small:
|
||||
name: 'Светильники Маленькие'
|
||||
room: 'Коридор'
|
||||
vacuum.dreame_p2027_6b1e_robot_cleaner:
|
||||
room: 'Коридор'
|
||||
climate.ac_kitchen:
|
||||
name: 'Кондиционер'
|
||||
room: 'Кухня'
|
||||
climate.radiator_kitchen:
|
||||
room: 'Кухня'
|
||||
cover.curtain_kitchen:
|
||||
room: 'Кухня'
|
||||
cover.curtain_kitchen_bobbinet:
|
||||
name: 'Тюль'
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_bar_lamp:
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_set:
|
||||
name: 'Подсветка'
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_table_lamp:
|
||||
name: 'Люстра'
|
||||
room: 'Кухня'
|
||||
media_player.kitchen_tv:
|
||||
room: 'Кухня'
|
||||
sensor.temperature_kitchen_temperature:
|
||||
room: 'Кухня'
|
||||
sensor.temperature_winecooler_temperature:
|
||||
room: 'Кухня'
|
||||
climate.ac_bedroom:
|
||||
name: 'Кондиционер'
|
||||
room: 'Спальня'
|
||||
climate.radiator_bedroom:
|
||||
room: 'Спальня'
|
||||
climate.radiator_bedroom_balcony:
|
||||
room: 'Спальня'
|
||||
cover.curtain_bedroom:
|
||||
room: 'Спальня'
|
||||
cover.curtain_bedroom_balcony:
|
||||
room: 'Спальня'
|
||||
cover.curtain_bedroom_bobbinet_balcony:
|
||||
name: 'Тюль'
|
||||
room: 'Спальня'
|
||||
fan.ventiliatsionnaia_sistema:
|
||||
room: 'Спальня'
|
||||
light.danil_bedside_lamp_rgbww_light:
|
||||
name: 'Ночник Данил'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_mainlight:
|
||||
name: 'Люстра'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_nightlight_left:
|
||||
name: 'Бра левый'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_nightlight_right:
|
||||
name: 'Бра правый'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_pc_nightlight:
|
||||
name: 'Над столом бра'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_pc_spotlight:
|
||||
name: 'Над столом'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Спальня'
|
||||
light.svetlana_bedside_lamp_rgbww_light:
|
||||
name: 'Ночник Света'
|
||||
room: 'Спальня'
|
||||
media_player.bedroom_tv:
|
||||
room: 'Спальня'
|
||||
sensor.temperature_bedroom_temperature:
|
||||
room: 'Спальня'
|
||||
sensor.temperature_outside_bedroom_temperature:
|
||||
room: 'Спальня'
|
||||
@@ -0,0 +1,63 @@
|
||||
yandex_smart_home:
|
||||
filter:
|
||||
include_domains:
|
||||
- cover
|
||||
- fan
|
||||
- vacuum
|
||||
include_entities:
|
||||
# радиаторы
|
||||
- climate.radiator_bedroom
|
||||
- climate.radiator_bedroom_balcony
|
||||
- climate.radiator_childroom
|
||||
- climate.radiator_kitchen
|
||||
- climate.radiator_mainroom
|
||||
# кондиционеры
|
||||
- climate.ac_mainroom
|
||||
- climate.ac_kitchen
|
||||
- climate.ac_childroom
|
||||
- climate.ac_bedroom
|
||||
# вентиляторы
|
||||
- fan.ventilation_bath
|
||||
- fan.ventilation_shower
|
||||
- fan.ventiliatsionnaia_sistema
|
||||
# свет
|
||||
- light.danil_bedside_lamp_rgbww_light
|
||||
- light.light_balcony_spotlight
|
||||
- light.light_bath
|
||||
- light.light_bath_shelf
|
||||
- light.light_bedroom_mainlight
|
||||
- light.light_bedroom_nightlight_left
|
||||
- light.light_bedroom_nightlight_right
|
||||
- light.light_bedroom_pc_nightlight
|
||||
- light.light_bedroom_pc_spotlight
|
||||
- light.light_bedroom_spotlights
|
||||
- light.light_childroom_bed
|
||||
- light.light_childroom_main
|
||||
- light.light_childroom_spotlights
|
||||
- light.light_hall_long
|
||||
- light.light_kitchen_bar_lamp
|
||||
- light.light_kitchen_set
|
||||
- light.light_kitchen_spotlights
|
||||
- light.light_kitchen_table_lamp
|
||||
- light.light_mainroom_pc_spotlight
|
||||
- light.light_shower_main_spotlights
|
||||
- light.light_shower_shelf_light
|
||||
- light.light_shower_shower_spotlights
|
||||
- light.svetlana_bedside_lamp_rgbww_light
|
||||
- media_player.bedroom_tv
|
||||
- media_player.kitchen_tv
|
||||
- media_player.mainroom_tv
|
||||
- script.away_mode
|
||||
- switch.light_bath_mirror
|
||||
- switch.light_mainroom_mainlamp
|
||||
- switch.light_mainroom_spotlights
|
||||
- switch.shower_mirror
|
||||
- switch.water_valve
|
||||
- vacuum.dreame_p2027_6b1e_robot_cleaner
|
||||
- light.plug_yolka
|
||||
include_entity_globs:
|
||||
- sensor.temperature_*_temperature
|
||||
#exclude_entities:
|
||||
# - light.highlight
|
||||
#exclude_entity_globs:
|
||||
# - sensor.weather_*
|
||||
@@ -0,0 +1,65 @@
|
||||
yandex_smart_home:
|
||||
filter:
|
||||
include_domains:
|
||||
- cover
|
||||
- fan
|
||||
- vacuum
|
||||
include_entities:
|
||||
# радиаторы
|
||||
- climate.radiator_bedroom
|
||||
- climate.radiator_bedroom_balcony
|
||||
- climate.radiator_childroom
|
||||
- climate.radiator_kitchen
|
||||
- climate.radiator_mainroom
|
||||
# кондиционеры
|
||||
- climate.ac_mainroom
|
||||
- climate.ac_kitchen
|
||||
- climate.ac_childroom
|
||||
- climate.ac_bedroom
|
||||
# вентиляторы
|
||||
- fan.ventilation_bath
|
||||
- fan.ventilation_shower
|
||||
- fan.ventiliatsionnaia_sistema
|
||||
# свет
|
||||
- light.danil_bedside_lamp_rgbww_light
|
||||
- light.light_balcony_spotlight
|
||||
- light.light_bath
|
||||
- light.light_bath_shelf
|
||||
- light.light_bedroom_mainlight
|
||||
- light.light_bedroom_nightlight_left
|
||||
- light.light_bedroom_nightlight_right
|
||||
- light.light_bedroom_pc_nightlight
|
||||
- light.light_bedroom_pc_spotlight
|
||||
- light.light_bedroom_spotlights
|
||||
- light.light_childroom_bed
|
||||
- light.light_childroom_main
|
||||
- light.light_childroom_spotlights
|
||||
- light.light_cloakroom
|
||||
- light.light_hall_long
|
||||
- light.light_hall_small
|
||||
- light.light_kitchen_bar_lamp
|
||||
- light.light_kitchen_set
|
||||
- light.light_kitchen_spotlights
|
||||
- light.light_kitchen_table_lamp
|
||||
- light.light_mainroom_pc_spotlight
|
||||
- light.light_shower_main_spotlights
|
||||
- light.light_shower_shelf_light
|
||||
- light.light_shower_shower_spotlights
|
||||
- light.svetlana_bedside_lamp_rgbww_light
|
||||
- media_player.bedroom_tv
|
||||
- media_player.kitchen_tv
|
||||
- media_player.mainroom_tv
|
||||
- script.away_mode
|
||||
- switch.light_bath_mirror
|
||||
- switch.light_mainroom_mainlamp
|
||||
- switch.light_mainroom_spotlights
|
||||
- switch.shower_mirror
|
||||
- switch.water_valve
|
||||
- vacuum.dreame_p2027_6b1e_robot_cleaner
|
||||
- light.plug_yolka
|
||||
include_entity_globs:
|
||||
- sensor.temperature_*_temperature
|
||||
#exclude_entities:
|
||||
# - light.highlight
|
||||
#exclude_entity_globs:
|
||||
# - sensor.weather_*
|
||||
@@ -3,5 +3,5 @@ mqtt:
|
||||
- name: door_lock_mqtt_action
|
||||
unique_id: door_lock_mqtt_action
|
||||
state_topic: "z2m-tcp/lock_door"
|
||||
value_template: "{{ value_json.action }}"
|
||||
value_template: "{{ value_json.get('action', '') }}"
|
||||
json_attributes_topic: "z2m-tcp/lock_door"
|
||||
@@ -1,6 +1,6 @@
|
||||
recorder:
|
||||
db_url: !secret recorder_db_url
|
||||
purge_keep_days: 365
|
||||
purge_keep_days: 180
|
||||
include:
|
||||
domains:
|
||||
- alarm_control_panel
|
||||
|
||||
@@ -3,16 +3,24 @@ template:
|
||||
- name: heat_total
|
||||
unit_of_measurement: gKal
|
||||
default_entity_id: sensor.heat_total
|
||||
state: '{{ states(''sensor.saures_teploschetchik_fonvizina'') | float + 32.7600 | round(4) }}'
|
||||
state: >-
|
||||
{% set v = states('sensor.saures_teploschetchik_fonvizina') %}
|
||||
{{ ((v | float + 32.7600) | round(4)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
- name: heat_hourly_cost
|
||||
unit_of_measurement: '₽'
|
||||
state: "{{ states('sensor.heat_hourly') | float * 3035 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.heat_hourly') %}
|
||||
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
- name: heat_daily_cost
|
||||
unit_of_measurement: '₽'
|
||||
state: "{{ states('sensor.heat_daily') | float * 3035 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.heat_daily') %}
|
||||
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
- name: heat_monthly_cost
|
||||
unit_of_measurement: '₽'
|
||||
state: "{{ states('sensor.heat_monthly') | float * 3035 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.heat_monthly') %}
|
||||
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
|
||||
utility_meter:
|
||||
heat_hourly:
|
||||
@@ -29,7 +37,7 @@ homeassistant:
|
||||
customize:
|
||||
sensor.heat_hourly:
|
||||
friendly_name: Тепло в час
|
||||
sensor.heat_hourly:
|
||||
sensor.heat_daily:
|
||||
friendly_name: Тепло в день
|
||||
sensor.heat_hourly:
|
||||
sensor.heat_monthly:
|
||||
friendly_name: Тепло в месяц
|
||||
@@ -1,22 +1,35 @@
|
||||
template:
|
||||
- sensor:
|
||||
- unit_of_measurement: kWh
|
||||
state: "{{ states('sensor.power_total') | float - 7072.7 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_total') %}
|
||||
{{ ((v | float - 7072.7) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_main_total
|
||||
# 7072.7 - разница показаний.
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ states('sensor.power_monthly_t1') | float * 8.23 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_monthly_t1') %}
|
||||
{{ ((v | float * 8.23) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_monthly_cost_t1
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ states('sensor.power_monthly_t2') | float * 2.62 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_monthly_t2') %}
|
||||
{{ ((v | float * 2.62) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_monthly_cost_t2
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ states('sensor.power_monthly_t3') | float * 5.66 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_monthly_t3') %}
|
||||
{{ ((v | float * 5.66) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_monthly_cost_t3
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ (states('sensor.power_monthly_cost_t1') | float) + (states('sensor.power_monthly_cost_t2') | float) + (states('sensor.power_monthly_cost_t3') | float) | round(2) }}"
|
||||
state: >-
|
||||
{% set t1 = states('sensor.power_monthly_cost_t1') %}
|
||||
{% set t2 = states('sensor.power_monthly_cost_t2') %}
|
||||
{% set t3 = states('sensor.power_monthly_cost_t3') %}
|
||||
{% set bad = ['unavailable', 'unknown', ''] %}
|
||||
{{ ((t1 | float + t2 | float + t3 | float) | round(2)) if not (t1 in bad or t2 in bad or t3 in bad) else 'unavailable' }}
|
||||
name: power_monthly_cost_total
|
||||
@@ -11,12 +11,16 @@ template:
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_hot') | float + 88.97 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.counter_hot') %}
|
||||
{{ ((v | float + 88.97) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
- name: counter_cold_outer
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_cold') | float + 144.7 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.counter_cold') %}
|
||||
{{ ((v | float + 144.7) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
|
||||
binary_sensor:
|
||||
- name: dryer_running
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/*! For license information please see multiple-entity-row.js.LICENSE.txt */
|
||||
(()=>{"use strict";const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),i=new WeakMap;class o{constructor(t,e,i){if(this._$cssResult$=!0,i!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const n=this.t;if(e&&void 0===t){const e=void 0!==n&&1===n.length;e&&(t=i.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(n,t))}return t}toString(){return this.cssText}}const r=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,n,i)=>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.")})(n)+t[i+1],t[0]);return new o(i,t,n)},a=(n,i)=>{if(e)n.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,n.appendChild(i)}},s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:c,defineProperty:l,getOwnPropertyDescriptor:u,getOwnPropertyNames:d,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,p=globalThis,m=p.trustedTypes,v=m?m.emptyScript:"",y=p.reactiveElementPolyfillSupport,b=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},g=(t,e)=>!c(t,e),w={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:g};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:o}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);o?.call(this,e),this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...d(t),...f(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return a(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(void 0!==i&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:_).toAttribute(e,n.type);this._$Em=t,null==o?thiLine truncated
|
||||
(()=>{"use strict";const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),i=new WeakMap;class r{constructor(t,e,i){if(this._$cssResult$=!0,i!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const n=this.t;if(e&&void 0===t){const e=void 0!==n&&1===n.length;e&&(t=i.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(n,t))}return t}toString(){return this.cssText}}const o=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,n,i)=>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.")})(n)+t[i+1],t[0]);return new r(i,t,n)},a=(n,i)=>{if(e)n.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of i){const i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,n.appendChild(i)}},s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new r("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:c,defineProperty:l,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:d,getPrototypeOf:h}=Object,p=globalThis,m=p.trustedTypes,v=m?m.emptyScript:"",y=p.reactiveElementPolyfillSupport,b=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},g=(t,e)=>!c(t,e),w={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:g};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class O extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...d(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return a(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(void 0!==i&&!0===n.reflect){const r=(void 0!==n.converter?.toAttribute?n.converter:_).toAttribute(e,n.type);this._$Em=t,null==r?thiLine truncated
|
||||