From b1623572f7191bde450afb8eb3962dc2856622a1 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 19:42:21 -0400 Subject: [PATCH 01/25] use static get styles to set styles, set touchpad height in html style attribute --- dist/android-tv-card.js | 162 +++++++++++++++++++------------------ package.json | 2 +- src/android-tv-card.ts | 172 ++++++++++++++++++++-------------------- 3 files changed, 168 insertions(+), 168 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index febcc9d0..85a594e8 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>_,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>k,formatDateTimeNumeric:()=>M,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>y,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>Mt,handleAction:()=>bt,handleActionConfig:()=>yt,handleClick:()=>Lt,hasAction:()=>kt,hasConfigOrEntityChanged:()=>wt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>_t});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),k(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return k(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},_t=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return _t(t,e,i)},yt=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),yt(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function kt(t){return void 0!==t&&"none"!==t.action}function wt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},Mt=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},St={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in St)return St[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green"),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"});let u=class extends s.LitElement{constructor(){super(),this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{_hass:{},_config:{},_apps:{}}}static getStubConfig(){return{}}getCardSize(){let t=this._config.rows.length;return"title"in this._config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){this._config=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this._config.alt_volume_icons&&this.useAltVolumeIcons(),this._config.adb_id&&!this._config.keyboard_id&&(this._config.keyboard_id=this._config.adb_id),this.convertToRowsArray(),yield window.loadCardHelpers(),(null===(e=this._config.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider())}))}isButtonEnabled(t,e){return t.includes("_row")&&this._config[t].includes(e)}set hass(t){this._hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this._hass}fireHapticEvent(t){(void 0===this._config.enable_button_feedback||this._config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this._config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this._config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this._config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this._config.enable_slider_feedback||this._config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this._config.enable_slider_feedback||this._config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this._hass}))}useAltVolumeIcons(){this.defaultKeys.volume_up.icon="mdi:volume-high",this.defaultKeys.volume_down.icon="mdi:volume-medium",this.defaultKeys.volume_mute.icon="mdi:volume-variant-off"}convertToRowsArray(){if(!this._config.rows||!this._config.rows.length){const t=[],e=Object.keys(this._config).filter((t=>t.includes("_row")));for(const i of e){let e=this._config[i];"string"==typeof e&&(e=[e]),"volume_row"==i?e=["volume_"+e[0]]:"navigation_row"==i&&(e=["navigation_"+e[0]]),t.push(e)}this._config.rows=t}}sendKey(t,e=!1){const i={entity_id:this._config.remote_id,command:t};e&&(i.hold_secs=.5),this._hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this._hass.callService(n,o,t)}}changeSource(t){this._hass.callService("remote","turn_on",{activity:t,entity_id:this._config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this._config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this._config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this._config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this._config.double_click_keycode||!this._config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:n,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+n+'"'},this._hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this._hass.callService("kodi","call_method",{entity_id:this._config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this._config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:r,done:!0},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this._hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this._config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:i,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+i+'"'},this._hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:n,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+n+'"'},this._hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>_,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>k,formatDateTimeNumeric:()=>M,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>y,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>Mt,handleAction:()=>bt,handleActionConfig:()=>yt,handleClick:()=>Lt,hasAction:()=>kt,hasConfigOrEntityChanged:()=>wt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>_t});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),k(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return k(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},_t=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return _t(t,e,i)},yt=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),yt(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function kt(t){return void 0!==t&&"none"!==t.action}function wt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},Mt=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},St={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in St)return St[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green"),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"});let u=class extends s.LitElement{constructor(){super(),this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{_hass:{},_config:{},_apps:{}}}static getStubConfig(){return{}}getCardSize(){let t=this._config.rows.length;return"title"in this._config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){this._config=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this._config.alt_volume_icons&&this.useAltVolumeIcons(),this._config.adb_id&&!this._config.keyboard_id&&(this._config.keyboard_id=this._config.adb_id),this.convertToRowsArray(),yield window.loadCardHelpers(),(null===(e=this._config.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider())}))}isButtonEnabled(t,e){return t.includes("_row")&&this._config[t].includes(e)}set hass(t){this._hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this._hass}fireHapticEvent(t){(void 0===this._config.enable_button_feedback||this._config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this._config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this._config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this._config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this._config.enable_slider_feedback||this._config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this._config.enable_slider_feedback||this._config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this._hass}))}useAltVolumeIcons(){this.defaultKeys.volume_up.icon="mdi:volume-high",this.defaultKeys.volume_down.icon="mdi:volume-medium",this.defaultKeys.volume_mute.icon="mdi:volume-variant-off"}convertToRowsArray(){if(!this._config.rows||!this._config.rows.length){const t=[],e=Object.keys(this._config).filter((t=>t.includes("_row")));for(const i of e){let e=this._config[i];"string"==typeof e&&(e=[e]),"volume_row"==i?e=["volume_"+e[0]]:"navigation_row"==i&&(e=["navigation_"+e[0]]),t.push(e)}this._config.rows=t}}sendKey(t,e=!1){const i={entity_id:this._config.remote_id,command:t};e&&(i.hold_secs=.5),this._hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this._hass.callService(n,o,t)}}changeSource(t){this._hass.callService("remote","turn_on",{activity:t,entity_id:this._config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this._config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this._config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this._config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this._config.double_click_keycode||!this._config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:n,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+n+'"'},this._hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this._hass.callService("kodi","call_method",{entity_id:this._config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this._config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:r,done:!0},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this._hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this._config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:i,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+i+'"'},this._hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:n,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+n+'"'},this._hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` ${u} - `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),s.html`
`,this.buildIconButton("center"),s.html`
`,this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{const t=s.html` + `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`height: ${this._config.touchpad_height}`);const e=s.html` - `;i.push(t);break}default:i.push(this.buildIconButton(n))}return e?this.buildColumn(i):this.buildRow(i)}render(){if(!this._config||!this._hass)return s.html``;const t=[];for(const e of this._config.rows){const i=this.buildButtons(e);t.push(i)}const e=s.html` - ${this.renderStyle()} - ${t} - `;return s.html`${e}`}renderStyle(){return s.html` - - `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}};n([(0,a.property)({attribute:!1})],u.prototype,"_hass",void 0),n([(0,a.property)({attribute:!1})],u.prototype,"_config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),u=n([(0,a.customElement)("android-tv-card")],u)},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>C,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const p=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function C(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?p(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?C({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>pt,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>_,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,p=m.trustedTypes,C=p?p.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?C: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}},_=(t,e)=>e!==t&&(e==e||t==t),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:_},y="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(y))return!1;this[y]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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||_)(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 L;b[y]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const k=window,w=k.trustedTypes,A=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,E=`<${S}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+M+d):i+M+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=w?w.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class pt extends b{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=ut(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 z}}pt.finalized=!0,pt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:pt});const Ct=globalThis.litElementPolyfillSupport;null==Ct||Ct({LitElement:pt});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.1.3","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file + `;i.push(e);break}default:i.push(this.buildIconButton(n))}return e?this.buildColumn(i):this.buildRow(i)}render(){if(!this._config||!this._hass)return s.html``;const t=[];for(const e of this._config.rows){const i=this.buildButtons(e);t.push(i)}const e=s.html`${t}`;return s.html`${e}`}static get styles(){return s.css` + img, + ha-icon-button { + width: 48px; + height: 48px; + cursor: pointer; + --mdc-icon-size: 100%; + position: relative; + display: inline-flex; + flex-direction: column; + align-content: center; + justify-content: center; + text-align: center; + align-items: center; + } + .empty-button { + width: 48px; + height: 48px; + position: relative; + } + input { + opacity: 0; + filter: alpha(opacity=0); + top: 0; + left: 0; + position: absolute; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + height: -moz-available; + height: -webkit-fill-available; + height: fill-available; + } + .row { + display: flex; + flex-wrap: nowrap; + flex-direction: row; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + flex: 1; + padding: 8px; + justify-content: space-evenly; + align-items: center; + } + .column { + display: flex; + flex-wrap: nowrap; + flex-direction: column; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + flex: 1; + padding: 8px; + justify-content: space-evenly; + align-items: center; + } + .dpad-spacer { + width: 36px; + } + .diagonal { + background-color: var(--light-primary-color); + } + toucharea { + border-radius: 32px; + flex-grow: 1; + height: '250px'; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + background: #6d767e; + touch-action: none; + text-align: center; + } + `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}};n([(0,a.property)({attribute:!1})],u.prototype,"_hass",void 0),n([(0,a.property)({attribute:!1})],u.prototype,"_config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),u=n([(0,a.customElement)("android-tv-card")],u)},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>p,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const C=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?C(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?p({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>Ct,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>_,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,C=m.trustedTypes,p=C?C.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?p: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}},_=(t,e)=>e!==t&&(e==e||t==t),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:_},y="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(y))return!1;this[y]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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||_)(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 L;b[y]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const k=window,w=k.trustedTypes,A=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,E=`<${S}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+M+d):i+M+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=w?w.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class Ct extends b{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=ut(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 z}}Ct.finalized=!0,Ct._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:Ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:Ct});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file diff --git a/package.json b/package.json index c1d439d0..aa9ca90d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "android-tv-card", - "version": "2.1.3", + "version": "2.2.0", "description": "Android TV Remote Card", "main": "./dist/android-tv-card.js", "scripts": { diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index abf1403c..18816ae4 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -1,5 +1,5 @@ import { version } from '../package.json'; -import { LitElement, TemplateResult, html } from 'lit'; +import { LitElement, TemplateResult, html, css } from 'lit'; import { customElement, property, eventOptions } from 'lit/decorators.js'; import { HomeAssistant, @@ -60,7 +60,7 @@ class AndroidTVCard extends LitElement { @property({ attribute: false }) _hass!: HomeAssistant; @property({ attribute: false }) - private _config!: IConfig; + _config!: IConfig; constructor() { super(); @@ -824,9 +824,9 @@ class AndroidTVCard extends LitElement { navigation_buttons.push( this.buildRow([ this.buildIconButton('left'), - html`
`, + // html`
`, this.buildIconButton('center'), - html`
`, + // html`
`, this.buildIconButton('right'), ]), ); @@ -838,6 +838,10 @@ class AndroidTVCard extends LitElement { } case 'navigation_touchpad': { + let style = ``; + if (this._config['touchpad_height']) { + style = `height: ${this._config['touchpad_height']}`; + } const touchpad = html` `; @@ -876,91 +881,88 @@ class AndroidTVCard extends LitElement { content.push(row_content); } - const output = html` - ${this.renderStyle()} - ${content} - `; + const output = html`${content}`; return html`${output}`; } - renderStyle() { - return html` - + static get styles() { + return css` + img, + ha-icon-button { + width: 48px; + height: 48px; + cursor: pointer; + --mdc-icon-size: 100%; + position: relative; + display: inline-flex; + flex-direction: column; + align-content: center; + justify-content: center; + text-align: center; + align-items: center; + } + .empty-button { + width: 48px; + height: 48px; + position: relative; + } + input { + opacity: 0; + filter: alpha(opacity=0); + top: 0; + left: 0; + position: absolute; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + height: -moz-available; + height: -webkit-fill-available; + height: fill-available; + } + .row { + display: flex; + flex-wrap: nowrap; + flex-direction: row; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + flex: 1; + padding: 8px; + justify-content: space-evenly; + align-items: center; + } + .column { + display: flex; + flex-wrap: nowrap; + flex-direction: column; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + flex: 1; + padding: 8px; + justify-content: space-evenly; + align-items: center; + } + .dpad-spacer { + width: 36px; + } + .diagonal { + background-color: var(--light-primary-color); + } + toucharea { + border-radius: 32px; + flex-grow: 1; + height: '250px'; + width: -moz-available; + width: -webkit-fill-available; + width: fill-available; + background: #6d767e; + touch-action: none; + text-align: center; + } `; } From 6210d8bae7f5b7cd527f7be0037324ae4dcfbe99 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 19:47:24 -0400 Subject: [PATCH 02/25] wrap entire touchpad style attribute in conditional, style with no value seems to overwrite css --- dist/android-tv-card.js | 4 ++-- src/android-tv-card.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 85a594e8..e00cb5b5 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -25,14 +25,14 @@ ${u} - `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`height: ${this._config.touchpad_height}`);const e=s.html` + `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`style="height: ${this._config.touchpad_height}"`);const e=s.html` `;i.push(e);break}default:i.push(this.buildIconButton(n))}return e?this.buildColumn(i):this.buildRow(i)}render(){if(!this._config||!this._hass)return s.html``;const t=[];for(const e of this._config.rows){const i=this.buildButtons(e);t.push(i)}const e=s.html` `; From 342b966eac4e9435dbdcedfb4d34b406ff24a786 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 19:58:34 -0400 Subject: [PATCH 03/25] remove quotes around touchpad default height --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index e00cb5b5..9e535d4b 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -103,7 +103,7 @@ toucharea { border-radius: 32px; flex-grow: 1; - height: '250px'; + height: 250px; width: -moz-available; width: -webkit-fill-available; width: fill-available; diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index 72dcaac2..d9d1b736 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -955,7 +955,7 @@ class AndroidTVCard extends LitElement { toucharea { border-radius: 32px; flex-grow: 1; - height: '250px'; + height: 250px; width: -moz-available; width: -webkit-fill-available; width: fill-available; From 77f3d3ab889e0d95f5065f733e41e4a44f7817eb Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:05:26 -0400 Subject: [PATCH 04/25] rearrange toucharea attributes, why is this not working anymore? --- dist/android-tv-card.js | 5 ++--- src/android-tv-card.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 9e535d4b..a264a31d 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -25,14 +25,13 @@ ${u} - `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`style="height: ${this._config.touchpad_height}"`);const e=s.html` + `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`style="height:${this._config.touchpad_height}"`);const e=s.html` `;i.push(e);break}default:i.push(this.buildIconButton(n))}return e?this.buildColumn(i):this.buildRow(i)}render(){if(!this._config||!this._hass)return s.html``;const t=[];for(const e of this._config.rows){const i=this.buildButtons(e);t.push(i)}const e=s.html` `; From f15fca37674067b1995b55968d2b75faa85a092c Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:06:03 -0400 Subject: [PATCH 05/25] set style attribute height to important --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index a264a31d..1626ec73 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -25,7 +25,7 @@ ${u} - `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`style="height:${this._config.touchpad_height}"`);const e=s.html` + `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`style="height: ${this._config.touchpad_height} !important"`);const e=s.html` Date: Mon, 9 Oct 2023 20:09:07 -0400 Subject: [PATCH 06/25] move style= out of conditional and back into default toucharea html --- dist/android-tv-card.js | 4 ++-- src/android-tv-card.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 1626ec73..e09bd8aa 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -25,9 +25,9 @@ ${u} - `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`style="height: ${this._config.touchpad_height} !important"`);const e=s.html` + `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`height: ${this._config.touchpad_height}`);const e=s.html` Date: Mon, 9 Oct 2023 20:14:08 -0400 Subject: [PATCH 07/25] reduce padding to 4px and gap between row/column elements to 8px --- dist/android-tv-card.js | 9 ++++----- src/android-tv-card.ts | 6 ++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index e09bd8aa..342d5632 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -77,7 +77,8 @@ width: -webkit-fill-available; width: fill-available; flex: 1; - padding: 8px; + padding: 4px; + gap: 8px; justify-content: space-evenly; align-items: center; } @@ -89,13 +90,11 @@ width: -webkit-fill-available; width: fill-available; flex: 1; - padding: 8px; + padding: 4px; + gap: 8px; justify-content: space-evenly; align-items: center; } - .dpad-spacer { - width: 36px; - } .diagonal { background-color: var(--light-primary-color); } diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index e57918fd..c92e02f2 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -941,13 +941,11 @@ class AndroidTVCard extends LitElement { width: -webkit-fill-available; width: fill-available; flex: 1; - padding: 8px; + padding: 4px; + gap: 8px; justify-content: space-evenly; align-items: center; } - .dpad-spacer { - width: 36px; - } .diagonal { background-color: var(--light-primary-color); } From 7592219d99c8f17fd7ca136ffb4be760ad73aa1e Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:14:28 -0400 Subject: [PATCH 08/25] reduce padding to 4px and gap between row/column elements to 8px --- src/android-tv-card.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index c92e02f2..4cafc7ad 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -929,7 +929,8 @@ class AndroidTVCard extends LitElement { width: -webkit-fill-available; width: fill-available; flex: 1; - padding: 8px; + padding: 4px; + gap: 8px; justify-content: space-evenly; align-items: center; } From 153743d04c73755280f8f08e31f939a630ab4018 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:20:41 -0400 Subject: [PATCH 09/25] remove gap from columns --- dist/android-tv-card.js | 1 - src/android-tv-card.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 342d5632..a4a6a461 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -91,7 +91,6 @@ width: fill-available; flex: 1; padding: 4px; - gap: 8px; justify-content: space-evenly; align-items: center; } diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index 4cafc7ad..01c656b4 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -943,7 +943,6 @@ class AndroidTVCard extends LitElement { width: fill-available; flex: 1; padding: 4px; - gap: 8px; justify-content: space-evenly; align-items: center; } From c033317223f7e8f757f5e2cf9ff911113bf4c258 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:23:50 -0400 Subject: [PATCH 10/25] remove dpad spacer code --- src/android-tv-card.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index 01c656b4..083a7bd7 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -824,9 +824,7 @@ class AndroidTVCard extends LitElement { navigation_buttons.push( this.buildRow([ this.buildIconButton('left'), - // html`
`, this.buildIconButton('center'), - // html`
`, this.buildIconButton('right'), ]), ); From 92b6733f5ce12f34ba60f6730725713ae9658f8a Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:25:52 -0400 Subject: [PATCH 11/25] remove unused .diagonal css --- dist/android-tv-card.js | 3 --- src/android-tv-card.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index a4a6a461..cc64afbd 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -94,9 +94,6 @@ justify-content: space-evenly; align-items: center; } - .diagonal { - background-color: var(--light-primary-color); - } toucharea { border-radius: 32px; flex-grow: 1; diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index 083a7bd7..3edfd60b 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -944,9 +944,6 @@ class AndroidTVCard extends LitElement { justify-content: space-evenly; align-items: center; } - .diagonal { - background-color: var(--light-primary-color); - } toucharea { border-radius: 32px; flex-grow: 1; From 64db8b315da34ff828cd00ccc6d52146250373df Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:48:55 -0400 Subject: [PATCH 12/25] remove underscores before hass and config, use non decorator custom element definition --- dist/android-tv-card.js | 10 +-- src/android-tv-card.ts | 174 ++++++++++++++++++++-------------------- 2 files changed, 94 insertions(+), 90 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index cc64afbd..6177801e 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>_,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>k,formatDateTimeNumeric:()=>M,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>y,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>Mt,handleAction:()=>bt,handleActionConfig:()=>yt,handleClick:()=>Lt,hasAction:()=>kt,hasConfigOrEntityChanged:()=>wt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>_t});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),k(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return k(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},_t=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return _t(t,e,i)},yt=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),yt(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function kt(t){return void 0!==t&&"none"!==t.action}function wt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},Mt=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},St={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in St)return St[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green"),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"});let u=class extends s.LitElement{constructor(){super(),this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{_hass:{},_config:{},_apps:{}}}static getStubConfig(){return{}}getCardSize(){let t=this._config.rows.length;return"title"in this._config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){this._config=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this._config.alt_volume_icons&&this.useAltVolumeIcons(),this._config.adb_id&&!this._config.keyboard_id&&(this._config.keyboard_id=this._config.adb_id),this.convertToRowsArray(),yield window.loadCardHelpers(),(null===(e=this._config.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider())}))}isButtonEnabled(t,e){return t.includes("_row")&&this._config[t].includes(e)}set hass(t){this._hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this._hass}fireHapticEvent(t){(void 0===this._config.enable_button_feedback||this._config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this._config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this._config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this._config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this._config.enable_slider_feedback||this._config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this._config.enable_slider_feedback||this._config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this._hass}))}useAltVolumeIcons(){this.defaultKeys.volume_up.icon="mdi:volume-high",this.defaultKeys.volume_down.icon="mdi:volume-medium",this.defaultKeys.volume_mute.icon="mdi:volume-variant-off"}convertToRowsArray(){if(!this._config.rows||!this._config.rows.length){const t=[],e=Object.keys(this._config).filter((t=>t.includes("_row")));for(const i of e){let e=this._config[i];"string"==typeof e&&(e=[e]),"volume_row"==i?e=["volume_"+e[0]]:"navigation_row"==i&&(e=["navigation_"+e[0]]),t.push(e)}this._config.rows=t}}sendKey(t,e=!1){const i={entity_id:this._config.remote_id,command:t};e&&(i.hold_secs=.5),this._hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this._hass.callService(n,o,t)}}changeSource(t){this._hass.callService("remote","turn_on",{activity:t,entity_id:this._config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this._config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this._config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this._config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this._config.double_click_keycode||!this._config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:n,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+n+'"'},this._hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this._hass.callService("kodi","call_method",{entity_id:this._config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this._config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:r,done:!0},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this._hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this._config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:i,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+i+'"'},this._hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this._config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this._config.keyboard_id,method:"Input.SendText",text:n,done:!1},this._hass.callService("kodi","call_method",t)):(t={entity_id:this._config.keyboard_id,command:'input text "'+n+'"'},this._hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>g,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>M,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>Mt,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>yt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>gt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},gt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},yt=function(t,e){var i=nt.includes(t.states[e].state);return gt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(yt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(yt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},Mt=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},St={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in St)return St[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t.alt_volume_icons&&this.useAltVolumeIcons(),this.config.adb_id&&!this.config.keyboard_id&&(this.config.keyboard_id=this.config.adb_id),this.convertToRowsArray(),yield window.loadCardHelpers(),(null===(e=this.config.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider()),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this.hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this.config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this.config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this.config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(){this.defaultKeys.volume_up.icon="mdi:volume-high",this.defaultKeys.volume_down.icon="mdi:volume-medium",this.defaultKeys.volume_mute.icon="mdi:volume-variant-off"}convertToRowsArray(){if(!this.config.rows||!this.config.rows.length){const t=[],e=Object.keys(this.config).filter((t=>t.includes("_row")));for(const i of e){let e=this.config[i];"string"==typeof e&&(e=[e]),"volume_row"==i?e=["volume_"+e[0]]:"navigation_row"==i&&(e=["navigation_"+e[0]]),t.push(e)}this.config.rows=t}}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` ${u} - `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this._config.touchpad_height&&(t=`height: ${this._config.touchpad_height}`);const e=s.html` + `}buildRow(t){return s.html`
${t}
`}buildColumn(t){return s.html`
${t}
`}buildButtons(t,e=!1){"string"==typeof t&&(t=[t]);const i=[];for(const n of t)if("object"==typeof n&&null!=n)i.push(this.buildButtons(n,!e));else switch(n){case"volume_buttons":i.push(this.buildIconButton("volume_down"),this.buildIconButton("volume_mute"),this.buildIconButton("volume_up"));break;case"volume_slider":i.push(this.volume_slider);break;case"navigation_buttons":{const t=[];t.push(this.buildRow([this.buildIconButton("up")])),t.push(this.buildRow([this.buildIconButton("left"),this.buildIconButton("center"),this.buildIconButton("right")])),t.push(this.buildRow([this.buildIconButton("down")])),i.push(this.buildColumn(t));break}case"navigation_touchpad":{let t="";this.config.touchpad_height&&(t=`height: ${this.config.touchpad_height}`);const e=s.html` - `;i.push(e);break}default:i.push(this.buildIconButton(n))}return e?this.buildColumn(i):this.buildRow(i)}render(){if(!this._config||!this._hass)return s.html``;const t=[];for(const e of this._config.rows){const i=this.buildButtons(e);t.push(i)}const e=s.html`${t}`;return s.html`${e}`}static get styles(){return s.css` + >`}static get styles(){return s.css` img, ha-icon-button { width: 48px; @@ -105,4 +105,4 @@ touch-action: none; text-align: center; } - `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}};n([(0,a.property)({attribute:!1})],u.prototype,"_hass",void 0),n([(0,a.property)({attribute:!1})],u.prototype,"_config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),u=n([(0,a.customElement)("android-tv-card")],u)},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>p,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const C=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?C(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?p({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>Ct,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>_,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,C=m.trustedTypes,p=C?C.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?p: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}},_=(t,e)=>e!==t&&(e==e||t==t),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:_},y="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(y))return!1;this[y]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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||_)(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 L;b[y]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const k=window,w=k.trustedTypes,A=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,E=`<${S}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+M+d):i+M+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=w?w.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class Ct extends b{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=ut(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 z}}Ct.finalized=!0,Ct._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:Ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:Ct});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file + `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}}n([(0,a.property)({attribute:!1})],u.prototype,"config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),customElements.define("android-tv-card",u),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"})},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>p,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const C=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?C(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?p({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>Ct,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>g,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,C=m.trustedTypes,p=C?C.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?p: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}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:g},_="finalized";class b 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=y){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)||y}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=y){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:v).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:v;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||g)(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 L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,E=`<${S}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+M+d):i+M+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class Ct extends b{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=ut(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 z}}Ct.finalized=!0,Ct._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:Ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:Ct});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index 3edfd60b..f5df3a9f 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -1,6 +1,6 @@ import { version } from '../package.json'; import { LitElement, TemplateResult, html, css } from 'lit'; -import { customElement, property, eventOptions } from 'lit/decorators.js'; +import { property, eventOptions } from 'lit/decorators.js'; import { HomeAssistant, createThing, @@ -25,15 +25,6 @@ console.info( 'color: white; font-weight: bold; background: green', ); -window.customCards = window.customCards || []; -window.customCards.push({ - type: 'android-tv-card', - name: 'Android TV Card', - description: 'Remote for Android TV', -}); - -@customElement('android-tv-card') -// eslint-disable-next-line @typescript-eslint/no-unused-vars class AndroidTVCard extends LitElement { defaultKeys: IKeys; defaultSources: ISources; @@ -58,9 +49,7 @@ class AndroidTVCard extends LitElement { volume_slider?: ReturnType; @property({ attribute: false }) - _hass!: HomeAssistant; - @property({ attribute: false }) - _config!: IConfig; + config!: IConfig; constructor() { super(); @@ -88,26 +77,32 @@ class AndroidTVCard extends LitElement { static get properties() { return { - _hass: {}, - _config: {}, - _apps: {}, + hass: {}, + config: {}, }; } static getStubConfig() { - return {}; + return { + type: 'custom:android-tv-card', + rows: [], + }; } getCardSize() { - let numRows = this._config.rows!.length; - if ('title' in this._config) { + let numRows = this.config.rows!.length; + if ('title' in this.config) { numRows += 1; } return numRows; } async setConfig(config: IConfig) { - this._config = { theme: 'default', ...config }; + if (!config) { + throw new Error('Invalid configuration'); + } + config = JSON.parse(JSON.stringify(config)); + config = { theme: 'default', ...config }; this.customKeys = config.custom_keys || {}; this.customSources = config.custom_sources || {}; @@ -115,50 +110,52 @@ class AndroidTVCard extends LitElement { this.defaultKeys = defaultKeys; this.defaultSources = defaultSources; - if (this._config.alt_volume_icons) { + if (config.alt_volume_icons) { this.useAltVolumeIcons(); } // Legacy config upgrades if ( - (this._config as Record).adb_id && - !this._config.keyboard_id + (this.config as Record).adb_id && + !this.config.keyboard_id ) { - this._config.keyboard_id = ( - this._config as Record + this.config.keyboard_id = ( + this.config as Record ).adb_id; } this.convertToRowsArray(); await window.loadCardHelpers(); - if (this._config.rows?.toString().includes('volume_slider')) { + if (this.config.rows?.toString().includes('volume_slider')) { await this.renderVolumeSlider(); } + + this.config = config; } isButtonEnabled(row: string, button: string) { return ( row.includes('_row') && - (this._config as Record)[row].includes(button) + (this.config as Record)[row].includes(button) ); } set hass(hass) { - this._hass = hass; + this.hass = hass; if (this.volume_slider) { (this.volume_slider as VolumeSlider).hass = hass; } } - get hass() { - return this._hass; + get hass(): HomeAssistant { + return this.hass; } fireHapticEvent(haptic: HapticType) { if ( - this._config.enable_button_feedback === undefined || - this._config.enable_button_feedback + this.config.enable_button_feedback === undefined || + this.config.enable_button_feedback ) { forwardHaptic(haptic); } @@ -167,7 +164,7 @@ class AndroidTVCard extends LitElement { async renderVolumeSlider() { let slider_config = { type: 'custom:my-slider', - entity: this._config.media_player_id, + entity: this.config.media_player_id, height: '50px', mainSliderColor: 'white', secondarySliderColor: 'rgb(60, 60, 60)', @@ -178,8 +175,8 @@ class AndroidTVCard extends LitElement { radius: '25px', }; - if (this._config.slider_config instanceof Object) { - slider_config = { ...slider_config, ...this._config.slider_config }; + if (this.config.slider_config instanceof Object) { + slider_config = { ...slider_config, ...this.config.slider_config }; } // Retry due to slider intermittently not rendering @@ -197,8 +194,8 @@ class AndroidTVCard extends LitElement { (e: Event) => { e.stopImmediatePropagation(); if ( - this._config.enable_slider_feedback == undefined || - this._config.enable_slider_feedback + this.config.enable_slider_feedback == undefined || + this.config.enable_slider_feedback ) { forwardHaptic('selection'); } @@ -209,8 +206,8 @@ class AndroidTVCard extends LitElement { 'input', (_e: Event) => { if ( - this._config.enable_slider_feedback == undefined || - this._config.enable_slider_feedback + this.config.enable_slider_feedback == undefined || + this.config.enable_slider_feedback ) { forwardHaptic('light'); } @@ -218,7 +215,7 @@ class AndroidTVCard extends LitElement { true, ); - (this.volume_slider as VolumeSlider).hass = this._hass; + (this.volume_slider as VolumeSlider).hass = this.hass; } useAltVolumeIcons() { @@ -228,13 +225,13 @@ class AndroidTVCard extends LitElement { } convertToRowsArray() { - if (!this._config.rows || !this._config.rows.length) { + if (!this.config.rows || !this.config.rows.length) { const rows: string[][] = []; - const rowNames = Object.keys(this._config).filter((row) => + const rowNames = Object.keys(this.config).filter((row) => row.includes('_row'), ); for (const name of rowNames) { - let row = (this._config as Record)[name]; + let row = (this.config as Record)[name]; if (typeof row == 'string') { row = [row]; } @@ -245,7 +242,7 @@ class AndroidTVCard extends LitElement { } rows.push(row); } - this._config.rows = rows; + this.config.rows = rows; } } @@ -255,13 +252,13 @@ class AndroidTVCard extends LitElement { */ sendKey(key: string, longPress: boolean = false) { const data: IServiceData = { - entity_id: this._config.remote_id!, + entity_id: this.config.remote_id!, command: key, }; if (longPress) { data.hold_secs = 0.5; } - this._hass.callService('remote', 'send_command', data); + this.hass.callService('remote', 'send_command', data); } getInfo(action: string): IKey | ISource | ICustomAction { @@ -294,7 +291,7 @@ class AndroidTVCard extends LitElement { service_data.hold_secs = 0.5; } const [domain, service] = info.service.split('.', 2); - this._hass.callService(domain, service, service_data); + this.hass.callService(domain, service, service_data); } } @@ -303,9 +300,9 @@ class AndroidTVCard extends LitElement { * @param {string} source Android TV deep link for an app */ changeSource(source: string) { - this._hass.callService('remote', 'turn_on', { + this.hass.callService('remote', 'turn_on', { activity: source, - entity_id: this._config.remote_id, + entity_id: this.config.remote_id, }); } @@ -324,7 +321,7 @@ class AndroidTVCard extends LitElement { if (e.detail && e.detail > this.clickCount) { this.clickCount++; } - if (this._config.enable_double_click) { + if (this.config.enable_double_click) { if (this.clickCount == 2) { this.onTouchDoubleClick(e); } else { @@ -344,7 +341,7 @@ class AndroidTVCard extends LitElement { this.clickTimer = null; this.clickCount = 0; - const action = this._config.double_click_keycode ?? 'back'; + const action = this.config.double_click_keycode ?? 'back'; this.onButtonClick(e, action, false); } @@ -365,7 +362,7 @@ class AndroidTVCard extends LitElement { } else { this.onButtonClick( e, - this._config.long_click_keycode ?? 'center', + this.config.long_click_keycode ?? 'center', true, ); } @@ -439,8 +436,8 @@ class AndroidTVCard extends LitElement { if (['up', 'down', 'left', 'right'].includes(action)) { haptic = 'selection'; } else if ( - action == this._config.double_click_keycode || - (!this._config.double_click_keycode && action == 'back') + action == this.config.double_click_keycode || + (!this.config.double_click_keycode && action == 'back') ) { haptic = 'success'; } @@ -527,7 +524,7 @@ class AndroidTVCard extends LitElement { (e.currentTarget as HTMLInputElement).focus(); } - switch ((this._config.keyboard_mode ?? '').toUpperCase()) { + switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': break; case 'ANDROID TV': @@ -549,23 +546,23 @@ class AndroidTVCard extends LitElement { const text = prompt('Text Input: '); if (text) { let data: IServiceData; - switch ((this._config.keyboard_mode ?? '').toUpperCase()) { + switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, method: 'Input.SendText', text: text, done: false, }; - this._hass.callService('kodi', 'call_method', data); + this.hass.callService('kodi', 'call_method', data); break; case 'ANDROID TV': default: data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, command: 'input text "' + text + '"', }; - this._hass.callService('androidtv', 'adb_command', data); + this.hass.callService('androidtv', 'adb_command', data); break; } } @@ -580,11 +577,11 @@ class AndroidTVCard extends LitElement { e.stopImmediatePropagation(); let promptText: string; - switch ((this._config.keyboard_mode ?? '').toUpperCase()) { + switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': promptText = 'Global Search: '; - this._hass.callService('kodi', 'call_method', { - entity_id: this._config.keyboard_id!, + this.hass.callService('kodi', 'call_method', { + entity_id: this.config.keyboard_id!, method: 'Addons.ExecuteAddon', addonid: 'script.globalsearch', }); @@ -598,26 +595,26 @@ class AndroidTVCard extends LitElement { const text = prompt(promptText); if (text) { let data: IServiceData; - switch ((this._config.keyboard_mode ?? '').toUpperCase()) { + switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, method: 'Input.SendText', text: text, done: true, }; - this._hass.callService('kodi', 'call_method', data); + this.hass.callService('kodi', 'call_method', data); break; case 'ANDROID TV': default: data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, command: 'am start -a "android.search.action.GLOBAL_SEARCH" --es query "' + text + '"', }; - this._hass.callService('androidtv', 'adb_command', data); + this.hass.callService('androidtv', 'adb_command', data); break; } } @@ -633,23 +630,23 @@ class AndroidTVCard extends LitElement { const text = e.data; if (text) { let data: IServiceData; - switch ((this._config.keyboard_mode ?? '').toUpperCase()) { + switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, method: 'Input.SendText', text: text, done: false, }; - this._hass.callService('kodi', 'call_method', data); + this.hass.callService('kodi', 'call_method', data); break; case 'ANDROID TV': default: data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, command: 'input text "' + text + '"', }; - this._hass.callService('androidtv', 'adb_command', data); + this.hass.callService('androidtv', 'adb_command', data); break; } } @@ -666,23 +663,23 @@ class AndroidTVCard extends LitElement { const text = e.clipboardData?.getData('Text'); if (text) { let data: IServiceData; - switch ((this._config.keyboard_mode ?? '').toUpperCase()) { + switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, method: 'Input.SendText', text: text, done: false, }; - this._hass.callService('kodi', 'call_method', data); + this.hass.callService('kodi', 'call_method', data); break; case 'ANDROID TV': default: data = { - entity_id: this._config.keyboard_id!, + entity_id: this.config.keyboard_id!, command: 'input text "' + text + '"', }; - this._hass.callService('androidtv', 'adb_command', data); + this.hass.callService('androidtv', 'adb_command', data); break; } } @@ -837,8 +834,8 @@ class AndroidTVCard extends LitElement { case 'navigation_touchpad': { let style = ``; - if (this._config['touchpad_height']) { - style = `height: ${this._config['touchpad_height']}`; + if (this.config['touchpad_height']) { + style = `height: ${this.config['touchpad_height']}`; } const touchpad = html` ${content}
`; - - return html`${output}`; } static get styles() { @@ -962,3 +957,12 @@ class AndroidTVCard extends LitElement { applyThemesOnElement(element, themes, localTheme); } } + +customElements.define('android-tv-card', AndroidTVCard); + +window.customCards = window.customCards || []; +window.customCards.push({ + type: 'android-tv-card', + name: 'Android TV Card', + description: 'Remote for Android TV', +}); From 6947fbbe0b810d0bbf875cf6795270fee631a241 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 20:58:25 -0400 Subject: [PATCH 13/25] fix setConfig functions, set this.config at end of function --- dist/android-tv-card.js | 4 ++-- src/android-tv-card.ts | 52 ++++++++++++++++++++++------------------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 6177801e..4bdcab36 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>g,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>M,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>Mt,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>yt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>gt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},gt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},yt=function(t,e){var i=nt.includes(t.states[e].state);return gt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(yt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(yt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},Mt=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},St={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in St)return St[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t.alt_volume_icons&&this.useAltVolumeIcons(),this.config.adb_id&&!this.config.keyboard_id&&(this.config.keyboard_id=this.config.adb_id),this.convertToRowsArray(),yield window.loadCardHelpers(),(null===(e=this.config.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider()),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this.hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this.config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this.config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this.config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(){this.defaultKeys.volume_up.icon="mdi:volume-high",this.defaultKeys.volume_down.icon="mdi:volume-medium",this.defaultKeys.volume_mute.icon="mdi:volume-variant-off"}convertToRowsArray(){if(!this.config.rows||!this.config.rows.length){const t=[],e=Object.keys(this.config).filter((t=>t.includes("_row")));for(const i of e){let e=this.config[i];"string"==typeof e&&(e=[e]),"volume_row"==i?e=["volume_"+e[0]]:"navigation_row"==i&&(e=["navigation_"+e[0]]),t.push(e)}this.config.rows=t}}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider()),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this.hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this.config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this.config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this.config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` {Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>p,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const C=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?C(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?p({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>Ct,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>g,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,C=m.trustedTypes,p=C?C.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?p: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}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:g},_="finalized";class b 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=y){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)||y}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=y){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:v).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:v;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||g)(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 L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,S="?"+M,E=`<${S}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+M+d):i+M+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class Ct extends b{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=ut(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 z}}Ct.finalized=!0,Ct._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:Ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:Ct});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file + `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}}n([(0,a.property)({attribute:!1})],u.prototype,"config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),customElements.define("android-tv-card",u),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"})},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>p,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const C=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?C(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?p({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>Ct,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>y,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,C=m.trustedTypes,p=C?C.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?p: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),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},_="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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){}}var L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,E=`<${M}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+S+d):i+S+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class Ct extends b{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=ut(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 z}}Ct.finalized=!0,Ct._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:Ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:Ct});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index f5df3a9f..cb22dd4c 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -54,8 +54,8 @@ class AndroidTVCard extends LitElement { constructor() { super(); - this.defaultKeys = defaultKeys; - this.defaultSources = defaultSources; + this.defaultKeys = {}; + this.defaultSources = {}; this.customKeys = {}; this.customSources = {}; @@ -108,26 +108,20 @@ class AndroidTVCard extends LitElement { this.customSources = config.custom_sources || {}; this.customIcons = config.custom_icons || {}; - this.defaultKeys = defaultKeys; - this.defaultSources = defaultSources; if (config.alt_volume_icons) { - this.useAltVolumeIcons(); + this.defaultKeys = this.useAltVolumeIcons(defaultKeys); + } else { + this.defaultKeys = defaultKeys; } + this.defaultSources = defaultSources; // Legacy config upgrades - if ( - (this.config as Record).adb_id && - !this.config.keyboard_id - ) { - this.config.keyboard_id = ( - this.config as Record - ).adb_id; - } - this.convertToRowsArray(); + config = this.updateDeprecatedKeys(config); + config = this.convertToRowsArray(config); await window.loadCardHelpers(); - if (this.config.rows?.toString().includes('volume_slider')) { + if (config.rows?.toString().includes('volume_slider')) { await this.renderVolumeSlider(); } @@ -218,20 +212,29 @@ class AndroidTVCard extends LitElement { (this.volume_slider as VolumeSlider).hass = this.hass; } - useAltVolumeIcons() { - this.defaultKeys.volume_up.icon = 'mdi:volume-high'; - this.defaultKeys.volume_down.icon = 'mdi:volume-medium'; - this.defaultKeys.volume_mute.icon = 'mdi:volume-variant-off'; + useAltVolumeIcons(defaultKeys: IKeys) { + defaultKeys = JSON.parse(JSON.stringify(defaultKeys)); + defaultKeys.volume_up.icon = 'mdi:volume-high'; + defaultKeys.volume_down.icon = 'mdi:volume-medium'; + defaultKeys.volume_mute.icon = 'mdi:volume-variant-off'; + return defaultKeys; + } + + updateDeprecatedKeys(config: IConfig) { + if ('adb_id' in config && !('keyboard_id' in config)) { + config.keyboard_id = (config as Record).adb_id; + } + return config; } - convertToRowsArray() { - if (!this.config.rows || !this.config.rows.length) { + convertToRowsArray(config: IConfig) { + if (!('rows' in config) || !(config.rows || []).length) { const rows: string[][] = []; - const rowNames = Object.keys(this.config).filter((row) => + const rowNames = Object.keys(config).filter((row) => row.includes('_row'), ); for (const name of rowNames) { - let row = (this.config as Record)[name]; + let row = (config as Record)[name]; if (typeof row == 'string') { row = [row]; } @@ -242,8 +245,9 @@ class AndroidTVCard extends LitElement { } rows.push(row); } - this.config.rows = rows; + config.rows = rows; } + return config; } /** From 6796b690cafd678618f5a9c022c1d7a57eb70231 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 21:01:58 -0400 Subject: [PATCH 14/25] fix media_player_id check before rendering volume slider --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 4bdcab36..70f4f675 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&(yield this.renderVolumeSlider()),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this.hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(){return o(this,void 0,void 0,(function*(){let t={type:"custom:my-slider",entity:this.config.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};this.config.slider_config instanceof Object&&(t=Object.assign(Object.assign({},t),this.config.slider_config));for(let e=0;e<10;e++)try{this.volume_slider=(0,c.createThing)(t,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(t=>{t.stopImmediatePropagation(),(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(t=>{(null==this.config.enable_slider_feedback||this.config.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this.hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` { e.stopImmediatePropagation(); if ( - this.config.enable_slider_feedback == undefined || - this.config.enable_slider_feedback + config.enable_slider_feedback == undefined || + config.enable_slider_feedback ) { forwardHaptic('selection'); } @@ -200,8 +203,8 @@ class AndroidTVCard extends LitElement { 'input', (_e: Event) => { if ( - this.config.enable_slider_feedback == undefined || - this.config.enable_slider_feedback + config.enable_slider_feedback == undefined || + config.enable_slider_feedback ) { forwardHaptic('light'); } From 420deb072b71592f757909ef41c7d80d2d5c38e4 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 21:08:02 -0400 Subject: [PATCH 15/25] remove redundant get hass --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 70f4f675..859a0a28 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.hass=t,this.volume_slider&&(this.volume_slider.hass=t)}get hass(){return this.hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this.hass=t}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` Date: Mon, 9 Oct 2023 21:10:01 -0400 Subject: [PATCH 16/25] remove this.hass = hass from set hass, not in example so may not be required --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 859a0a28..db7ec6fa 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this.hass=t}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t)}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` Date: Mon, 9 Oct 2023 21:14:13 -0400 Subject: [PATCH 17/25] restore _hass, set hass, and get hass --- dist/android-tv-card.js | 4 ++-- src/android-tv-card.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index db7ec6fa..73929ab1 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>Ct,evaluateFilter:()=>pt,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>C,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var C=o/604800;return{value:Math.round(C),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Ct(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var pt=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Ct("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":Ct("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Ct("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):Ct(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t)}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` {Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>p,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const C=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?C(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?p({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>Ct,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>y,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,C=m.trustedTypes,p=C?C.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?p: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),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},_="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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){}}var L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,E=`<${M}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+S+d):i+S+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class Ct extends b{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=ut(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 z}}Ct.finalized=!0,Ct._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:Ct});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:Ct});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file + `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}}n([(0,a.property)({attribute:!1})],u.prototype,"_hass",void 0),n([(0,a.property)({attribute:!1})],u.prototype,"config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),customElements.define("android-tv-card",u),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"})},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>C,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const p=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function C(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?p(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?C({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>pt,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>y,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,p=m.trustedTypes,C=p?p.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?C: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),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},_="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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){}}var L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,E=`<${M}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+S+d):i+S+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class pt extends b{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=ut(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 z}}pt.finalized=!0,pt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:pt});const Ct=globalThis.litElementPolyfillSupport;null==Ct||Ct({LitElement:pt});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index d4d3f23d..a0dc857c 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -48,6 +48,9 @@ class AndroidTVCard extends LitElement { volume_slider?: ReturnType; + @property({ attribute: false }) + _hass!: HomeAssistant; + @property({ attribute: false }) config!: IConfig; @@ -142,6 +145,11 @@ class AndroidTVCard extends LitElement { if (this.volume_slider) { (this.volume_slider as VolumeSlider).hass = hass; } + this._hass = hass; + } + + get hass(): HomeAssistant { + return this._hass; } fireHapticEvent(haptic: HapticType) { From befc78096cfd1df4b415dfebe10ec086d01abd8e Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 22:24:59 -0400 Subject: [PATCH 18/25] combine data, service_data, and target on setConfig --- dist/android-tv-card.js | 4 +- src/android-tv-card.ts | 75 ++++++++++++++++++-------- src/models/defaultKeys.ts | 4 +- src/models/defaultSources.ts | 4 +- src/models/interfaces/IConfig.ts | 14 +++-- src/models/interfaces/ICustomAction.ts | 15 ++++-- src/models/interfaces/IKey.ts | 4 -- src/models/interfaces/IServiceData.ts | 4 -- src/models/interfaces/ISource.ts | 4 -- src/models/interfaces/index.ts | 1 - 10 files changed, 77 insertions(+), 52 deletions(-) delete mode 100644 src/models/interfaces/IServiceData.ts diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 73929ab1..90113263 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),t=Object.assign({theme:"default"},t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},t.alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.service_data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i in e)if(i in t){const e=t[i];for(const t in e){const i=e[t];"service"in i&&(console.log("here!"),i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target))}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` {Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(353),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>C,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const p=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function C(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?p(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?C({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>pt,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>y,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,p=m.trustedTypes,C=p?p.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?C: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),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},_="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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){}}var L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,E=`<${M}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+S+d):i+S+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class pt extends b{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=ut(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 z}}pt.finalized=!0,pt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:pt});const Ct=globalThis.litElementPolyfillSupport;null==Ct||Ct({LitElement:pt});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file + `}applyThemesOnElement(t,e,i){(0,c.applyThemesOnElement)(t,e,i)}}n([(0,a.property)({attribute:!1})],u.prototype,"_hass",void 0),n([(0,a.property)({attribute:!1})],u.prototype,"config",void 0),n([(0,a.eventOptions)({passive:!0})],u.prototype,"onTouchStart",null),customElements.define("android-tv-card",u),window.customCards=window.customCards||[],window.customCards.push({type:"android-tv-card",name:"Android TV Card",description:"Remote for Android TV"})},561:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultKeys=void 0,e.defaultKeys={power:{key:"POWER",icon:"mdi:power"},volume_up:{key:"VOLUME_UP",icon:"mdi:volume-plus"},volume_down:{key:"VOLUME_DOWN",icon:"mdi:volume-minus"},volume_mute:{key:"MUTE",icon:"mdi:volume-mute"},back:{key:"BACK",icon:"mdi:keyboard-backspace"},home:{key:"HOME",icon:"mdi:home"},up:{key:"DPAD_UP",icon:"mdi:chevron-up"},left:{key:"DPAD_LEFT",icon:"mdi:chevron-left"},center:{key:"DPAD_CENTER",icon:"mdi:checkbox-blank-circle"},right:{key:"DPAD_RIGHT",icon:"mdi:chevron-right"},down:{key:"DPAD_DOWN",icon:"mdi:chevron-down"},play:{key:"MEDIA_PLAY",icon:"mdi:play"},pause:{key:"MEDIA_PAUSE",icon:"mdi:pause"},play_pause:{key:"MEDIA_PLAY_PAUSE",icon:"mdi:play-pause"},stop:{key:"MEDIA_STOP",icon:"mdi:stop"},rewind:{key:"MEDIA_REWIND",icon:"mdi:rewind"},fast_forward:{key:"MEDIA_FAST_FORWARD",icon:"mdi:fast-forward"},previous:{key:"MEDIA_PREVIOUS",icon:"mdi:skip-previous"},record:{key:"MEDIA_RECORD",icon:"mdi:record"},next:{key:"MEDIA_NEXT",icon:"mdi:skip-next"},menu:{key:"MENU",icon:"mdi:menu"},a:{key:"BUTTON_A",icon:"mdi:alpha-a-circle"},b:{key:"BUTTON_B",icon:"mdi:alpha-b-circle"},x:{key:"BUTTON_X",icon:"mdi:alpha-x-circle"},y:{key:"BUTTON_Y",icon:"mdi:alpha-y-circle"},n0:{key:"0",icon:"mdi:numeric-0"},n1:{key:"1",icon:"mdi:numeric-1"},n2:{key:"2",icon:"mdi:numeric-2"},n3:{key:"3",icon:"mdi:numeric-3"},n4:{key:"4",icon:"mdi:numeric-4"},n5:{key:"5",icon:"mdi:numeric-5"},n6:{key:"6",icon:"mdi:numeric-6"},n7:{key:"7",icon:"mdi:numeric-7"},n8:{key:"8",icon:"mdi:numeric-8"},n9:{key:"9",icon:"mdi:numeric-9"},channel_up:{key:"CHANNEL_UP",icon:"mdi:arrow-up-circle"},channel_down:{key:"CHANNEL_DOWN",icon:"mdi:arrow-down-circle"},f1:{key:"F1",icon:"mdi:keyboard-f1"},f2:{key:"F2",icon:"mdi:keyboard-f2"},f3:{key:"F3",icon:"mdi:keyboard-f3"},f4:{key:"F4",icon:"mdi:keyboard-f4"},f5:{key:"F5",icon:"mdi:keyboard-f5"},f6:{key:"F6",icon:"mdi:keyboard-f6"},f7:{key:"F7",icon:"mdi:keyboard-f7"},f8:{key:"F8",icon:"mdi:keyboard-f8"},f9:{key:"F9",icon:"mdi:keyboard-f9"},f10:{key:"F10",icon:"mdi:keyboard-f10"},f11:{key:"F11",icon:"mdi:keyboard-f11"},f12:{key:"F12",icon:"mdi:keyboard-f12"},tv:{key:"TV",icon:"mdi:television-box"},red:{key:"PROG_RED",icon:"mdi:alpha-r-box"},green:{key:"PROG_GREEN",icon:"mdi:alpha-g-box"},yellow:{key:"PROG_YELLOW",icon:"mdi:alpha-y-box"},blue:{key:"PROG_BLUE",icon:"mdi:alpha-b-box"},button_mode:{key:"BUTTON_MODE",icon:"mdi:gesture-tap-buton"},explorer:{key:"EXPLORER",icon:"mdi:folder-multiple"},info:{key:"INFO",icon:"mdi:information"},guide:{key:"GUIDE",icon:"mdi:television-guide"},teletext:{key:"TV_TELETEXT",icon:"mdi:card-text"},captions:{key:"CAPTIONS",icon:"mdi:closed-caption"},dvr:{key:"DVR",icon:"mdi:audio-video"},audio_track:{key:"MEDIA_AUDIO_TRACK",icon:"mdi:waveform"},settings:{key:"SETTINGS",icon:"mdi:cog"},delete:{key:"DEL",icon:"mdi:backspace"},forward_delete:{key:"FOWARD_DEL",icon:"mdi:backspace-reverse"},enter:{key:"ENTER",icon:"mdi:magnify"},keyboard:{key:"KEYBOARD",icon:"mdi:keyboard"},search:{key:"SEARCH",icon:"mdi:google-assistant"},textbox:{key:"TEXTBOX",icon:"mdi:text-box"}}},442:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSources=void 0;const n=i(554);e.defaultSources={appletv:{source:"https://tv.apple.com",svg_path:n.svg.APPLETV},crunchyroll:{source:"crunchyroll://",svg_path:n.svg.CRUNCHYROLL},disney:{source:"https://www.disneyplus.com",svg_path:n.svg.DISNEY},emby:{source:"embyatv://tv.emby.embyatv/startapp",icon:"mdi:emby"},foxsports:{source:"foxsports://live",svg_path:n.svg.FOXSPORTS},hulu:{source:"hulu://",icon:"mdi:hulu"},max:{source:"https://play.max.com",svg_path:n.svg.MAX},mlbtv:{source:"mlbatbat://",svg_path:n.svg.MLBTV},nba:{source:"gametime://",svg_path:n.svg.NBA},netflix:{source:"netflix://",icon:"mdi:netflix"},plex:{source:"plex://",icon:"mdi:plex"},primevideo:{source:"https://app.primevideo.com",svg_path:n.svg.PRIMEVIDEO},pia:{source:"piavpn://",svg_path:n.svg.PIA},spotify:{source:"spotify://",icon:"mdi:spotify"},surfshark:{source:"https://surfshark.com/locations-ul",svg_path:n.svg.SURFSHARK},vudu:{source:"vuduapp://",svg_path:n.svg.VUDU},youtube:{source:"vnd.youtube://",icon:"mdi:youtube"},youtubetv:{source:"https://tv.youtube.com",icon:"mdi:youtube-tv"}}},54:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(355),e)},355:(t,e)=>{var i;Object.defineProperty(e,"__esModule",{value:!0}),e.svg=void 0,function(t){t.APPLETV="M 6.820312 8.246094 C 7.179688 7.824219 7.398438 7.273438 7.398438 6.675781 C 7.398438 6.613281 7.398438 6.550781 7.394531 6.492188 L 7.394531 6.5 C 6.746094 6.566406 6.183594 6.871094 5.785156 7.324219 L 5.78125 7.328125 C 5.417969 7.726562 5.195312 8.261719 5.195312 8.851562 C 5.195312 8.910156 5.199219 8.96875 5.203125 9.023438 L 5.203125 9.015625 C 5.207031 9.015625 5.214844 9.015625 5.222656 9.015625 C 5.867188 9.015625 6.445312 8.71875 6.820312 8.25 Z M 8.195312 12.304688 C 8.203125 13.292969 8.796875 14.140625 9.648438 14.511719 L 9.664062 14.519531 C 9.46875 15.109375 9.214844 15.625 8.894531 16.09375 L 8.90625 16.070312 C 8.449219 16.734375 7.980469 17.398438 7.230469 17.414062 C 6.5 17.429688 6.269531 16.980469 5.425781 16.980469 C 4.589844 16.980469 4.328125 17.398438 3.632812 17.429688 C 2.925781 17.453125 2.375 16.703125 1.914062 16.039062 C 1.226562 15.109375 0.8125 13.941406 0.8125 12.671875 C 0.8125 11.902344 0.964844 11.167969 1.242188 10.5 L 1.226562 10.535156 C 1.679688 9.734375 2.519531 9.195312 3.484375 9.171875 L 3.488281 9.171875 C 4.191406 9.15625 4.863281 9.648438 5.296875 9.648438 C 5.726562 9.648438 6.535156 9.0625 7.386719 9.148438 C 8.210938 9.179688 8.933594 9.59375 9.378906 10.21875 L 9.386719 10.226562 C 8.675781 10.664062 8.210938 11.429688 8.195312 12.304688 Z M 15.019531 17.304688 C 14.589844 17.429688 14.097656 17.5 13.585938 17.5 C 13.582031 17.5 13.574219 17.5 13.566406 17.5 C 12.417969 17.5 11.847656 16.851562 11.847656 15.546875 L 11.847656 9.796875 L 10.851562 9.796875 L 10.851562 8.753906 L 11.898438 8.753906 L 11.898438 7.398438 L 13.28125 6.832031 L 13.28125 8.761719 L 14.878906 8.761719 L 14.878906 9.804688 L 13.289062 9.804688 L 13.289062 15.238281 C 13.285156 15.277344 13.285156 15.320312 13.285156 15.367188 C 13.285156 15.640625 13.359375 15.898438 13.492188 16.117188 L 13.492188 16.109375 C 13.644531 16.265625 13.855469 16.363281 14.089844 16.363281 C 14.128906 16.363281 14.160156 16.359375 14.195312 16.355469 L 14.191406 16.355469 C 14.492188 16.34375 14.777344 16.304688 15.050781 16.242188 L 15.019531 16.25 Z M 20.019531 17.367188 L 18.324219 17.367188 L 15.195312 8.753906 L 16.726562 8.753906 L 18.617188 14.355469 C 18.6875 14.574219 18.871094 15.199219 19.164062 16.242188 L 19.441406 15.308594 L 19.75 14.367188 L 21.710938 8.746094 L 23.230469 8.746094 Z M 20.019531 17.367188 ",t.CRUNCHYROLL="M 2.933594 13.46875 C 2.707031 10.601562 3.65625 7.769531 5.566406 5.621094 C 7.476562 3.476562 10.179688 2.199219 13.050781 2.089844 C 15.921875 1.984375 18.710938 3.050781 20.777344 5.046875 C 22.847656 7.042969 24.007812 9.792969 24 12.667969 L 24 12 C 24 5.371094 18.628906 0 12 0 C 5.371094 0 0 5.371094 0 12 C 0 18.628906 5.371094 24 12 24 L 12.800781 24 C 7.261719 23.609375 2.964844 19.015625 2.933594 13.46875 Z M 19.199219 14 C 14.886719 14.015625 13.8125 8.011719 17.867188 6.53125 C 16.679688 5.898438 15.347656 5.574219 14 5.601562 C 10.601562 5.601562 7.539062 7.648438 6.238281 10.785156 C 4.9375 13.925781 5.65625 17.539062 8.058594 19.941406 C 10.460938 22.34375 14.074219 23.0625 17.214844 21.761719 C 20.351562 20.460938 22.398438 17.398438 22.398438 14 C 22.421875 13.464844 22.378906 12.925781 22.265625 12.398438 C 21.609375 13.449219 20.4375 14.0625 19.199219 14 Z M 19.199219 14 ",t.DISNEY="M 22.152344 9.085938 C 19.335938 5.117188 13.601562 2.890625 10.4375 2.363281 C 6.941406 1.78125 4.8125 2.003906 3.039062 2.328125 C 2.382812 2.449219 0.390625 2.816406 0.078125 4.324219 C -0.199219 5.683594 1.136719 6.652344 1.40625 6.832031 C 1.941406 7.1875 2.660156 7.042969 3.019531 6.511719 C 3.378906 5.980469 3.242188 5.253906 2.710938 4.890625 C 2.6875 4.875 2.664062 4.855469 2.640625 4.835938 C 2.824219 4.773438 3.089844 4.699219 3.460938 4.628906 C 4.921875 4.359375 6.753906 4.121094 10.054688 4.671875 C 12.726562 5.117188 17.859375 7.078125 20.246094 10.4375 C 21.273438 11.882812 21.652344 13.425781 21.378906 15.019531 C 21.113281 16.558594 20.4375 17.601562 19.3125 18.214844 C 17.285156 19.316406 14.074219 18.84375 11.707031 18.195312 L 11.707031 13.195312 C 12.476562 13.195312 13.199219 13.269531 14.128906 13.441406 C 14.742188 13.558594 15.105469 13.882812 15.222656 14.074219 C 15.199219 14.085938 15.171875 14.097656 15.140625 14.105469 C 14.527344 14.3125 14.195312 14.972656 14.402344 15.585938 C 14.605469 16.199219 15.265625 16.53125 15.882812 16.328125 C 17.234375 15.875 17.65625 14.835938 17.597656 14.007812 C 17.507812 12.660156 16.226562 11.453125 14.554688 11.140625 C 13.476562 10.941406 12.621094 10.855469 11.707031 10.855469 L 11.707031 8.78125 C 11.707031 8.136719 11.183594 7.613281 10.539062 7.613281 C 9.894531 7.613281 9.367188 8.136719 9.367188 8.78125 L 9.367188 10.957031 C 5.082031 11.28125 3.0625 12.171875 2.722656 13.847656 C 2.214844 16.363281 6.445312 18.636719 8.324219 19.511719 C 8.386719 19.539062 8.769531 19.699219 9.367188 19.910156 L 9.367188 21.066406 C 9.367188 21.714844 9.894531 22.238281 10.539062 22.238281 C 11.183594 22.238281 11.707031 21.714844 11.707031 21.066406 L 11.707031 20.613281 C 13.027344 20.941406 14.59375 21.214844 16.160156 21.214844 C 17.65625 21.214844 19.15625 20.964844 20.429688 20.273438 C 22.199219 19.308594 23.292969 17.675781 23.683594 15.417969 C 24.066406 13.1875 23.554688 11.054688 22.152344 9.085938 Z M 9.277344 17.375 C 7.226562 16.417969 5.214844 14.964844 5.03125 14.324219 C 5.179688 14.167969 5.96875 13.582031 9.367188 13.304688 L 9.367188 17.410156 C 9.339844 17.398438 9.304688 17.386719 9.277344 17.375 Z M 9.277344 17.375 ",t.FOXSPORTS="M 0.2305 15.125 L 0.2305 5 L 6.2148 5 L 6.3984 7.7695 L 3.0469 7.7695 L 3.0469 9.0898 L 5.7773 9.0898 L 5.7773 11.8516 L 3.0273 11.8516 L 3.0273 15.125 L 0.2305 15.125 M 23.2813 15.0938 L 20.2852 9.8398 L 23.0078 5 L 20.0117 5 L 18.7695 7.1797 L 17.5469 5 L 14.4453 5 L 17.2188 9.875 L 14.2813 15.1016 L 17.293 15.0977 L 18.7305 12.5391 L 20.1836 15.0938 L 23.2813 15.0938 M 11.9102 12.0977 L 11.9102 8.0508 C 11.9102 7.5898 11.5156 7.1758 11.0703 7.1758 C 10.6289 7.1758 10.2695 7.5898 10.2695 8.0508 L 10.2695 12.082 C 10.2695 12.5469 10.6289 12.918 11.0703 12.918 C 11.5156 12.918 11.9102 12.5586 11.9102 12.0977 Z M 6.3242 10.0742 C 6.3242 7.3594 8.4414 5.1523 11.0586 5.1523 C 13.6758 5.1523 15.7969 7.3594 15.7969 10.0742 C 15.7969 12.793 13.6758 14.9961 11.0586 14.9961 C 8.4414 14.9961 6.3242 12.793 6.3242 10.0742 Z M 0 19.5195 L 0 18.9961 L 0.2617 18.7344 L 2.3867 18.7344 L 2.4648 18.6563 L 2.4648 18.1016 L 2.4102 18.0391 L 0.4375 18.0391 L 0 17.5938 L 0 16.3203 L 0.5039 15.8086 L 3.3633 15.8086 L 3.3633 16.3711 L 3.1563 16.5859 L 1.082 16.5859 L 1.0039 16.668 L 1.0039 17.207 L 1.0625 17.2656 L 3.0273 17.2656 L 3.4648 17.7148 L 3.4648 19.0039 L 2.9609 19.5195 L 0 19.5195 M 6.4609 17.6055 L 6.6094 17.4531 L 6.6094 16.7422 L 6.4609 16.5938 L 5.0938 16.5938 L 5.0938 17.6055 Z M 4.0898 15.8086 L 7.0547 15.8086 L 7.6172 16.3789 L 7.6172 17.7539 L 7.0547 18.3281 L 5.0938 18.3281 L 5.0938 19.5195 L 4.0898 19.5195 Z M 10.5156 18.6484 L 10.7227 18.4414 L 10.7227 16.8203 L 10.5156 16.6133 L 9.3477 16.6133 L 9.1406 16.8203 L 9.1406 18.4414 L 9.3477 18.6484 Z M 8.1445 18.9492 L 8.1445 16.3789 L 8.6992 15.8086 L 11.1602 15.8086 L 11.7227 16.3789 L 11.7227 18.9492 L 11.1602 19.5195 L 8.6992 19.5195 Z M 14.7344 17.3984 L 14.875 17.2539 L 14.875 16.7109 L 14.7344 16.5664 L 13.3828 16.5664 L 13.3828 17.3984 Z M 12.3789 15.8086 L 15.375 15.8086 L 15.8789 16.3203 L 15.8789 17.5039 L 15.3984 17.9961 L 16.0313 19.5195 L 14.9141 19.5195 L 14.4453 18.1719 L 13.3828 18.1719 L 13.3828 19.5195 L 12.3789 19.5195 Z M 17.3789 16.668 L 16.2188 16.668 L 16.2188 15.8086 L 19.5391 15.8086 L 19.5391 16.668 L 18.3828 16.668 L 18.3828 19.5195 L 17.3789 19.5195 L 17.3789 16.668 M 20.082 19.6211 L 20.082 19.0977 L 20.3438 18.8359 L 22.4688 18.8359 L 22.5469 18.7578 L 22.5469 18.2031 L 22.4922 18.1406 L 20.5195 18.1406 L 20.082 17.6953 L 20.082 16.4219 L 20.5859 15.9102 L 23.4453 15.9102 L 23.4453 16.4727 L 23.2383 16.6875 L 21.168 16.6875 L 21.0859 16.7695 L 21.0859 17.3086 L 21.1445 17.3672 L 23.1133 17.3672 L 23.5469 17.8164 L 23.5469 19.1055 L 23.043 19.6211 L 20.082 19.6211",t.MAX="M 3.7443 8 C 3.0949 8 2.4381 8.2932 1.5957 8.9574 L 1.5957 8.167 L 0 8.167 L 0 14.4756 L 1.6959 14.4756 L 1.6959 10.5531 C 2.4381 9.9557 2.7758 9.7664 3.0541 9.7664 C 3.3844 9.7664 3.5996 9.9742 3.5996 10.5012 L 3.5996 14.4756 L 5.2955 14.4756 L 5.2955 10.542 C 6.0377 9.9557 6.368 9.7664 6.6537 9.7664 C 6.984 9.7664 7.1992 9.9742 7.1992 10.5012 L 7.1992 14.4756 L 8.8951 14.4756 L 8.8951 9.8926 C 8.8951 8.4713 8.1047 8 7.3439 8 C 6.6945 8 6.0377 8.2746 5.173 8.9463 C 4.8947 8.2412 4.2898 8 3.7443 8 Z M 12.3426 8 C 10.6578 8 9.2588 9.4807 9.2588 11.3213 C 9.2588 13.1619 10.6578 14.6426 12.3426 14.6426 C 13.1775 14.6426 13.8975 14.3271 14.4504 13.6443 L 14.4504 14.4756 L 16.0684 14.4756 L 16.0684 8.167 L 14.4504 8.167 L 14.4504 8.9982 C 13.8975 8.3154 13.1775 8 12.3426 8 Z M 16.3652 8.167 C 17.0629 9.284 17.857 10.2822 18.7811 11.2805 C 17.857 12.3195 17.0629 13.4031 16.3652 14.4756 L 18.41 14.4756 C 18.8961 13.674 19.4416 12.9504 20.0687 12.2676 C 20.6848 12.9504 21.2006 13.674 21.683 14.4756 L 23.75 14.4756 C 23.0412 13.3697 22.2693 12.3195 21.3416 11.2805 C 22.2582 10.2822 23.0412 9.2506 23.75 8.167 L 21.7238 8.167 C 21.2191 8.9686 20.6736 9.6402 20.0687 10.3008 C 19.449 9.6402 18.9072 8.9686 18.41 8.167 Z M 12.5986 9.4621 C 13.608 9.4621 14.4207 10.2896 14.4207 11.3213 C 14.4207 12.3529 13.608 13.1805 12.5986 13.1805 C 11.593 13.1805 10.7803 12.3529 10.7803 11.3213 C 10.7803 10.2896 11.593 9.4621 12.5986 9.4621 Z M 12.5986 9.8814 C 11.8268 9.8814 11.1996 10.5234 11.1996 11.3213 C 11.1996 12.1191 11.8268 12.7611 12.5986 12.7611 C 13.3705 12.7611 13.9977 12.1191 13.9977 11.3213 C 13.9977 10.5234 13.3705 9.8814 12.5986 9.8814 Z M 12.5986 9.8814",t.MLBTV="M 23.2539 7.0039 C 23.2656 6.293 22.6953 5.7109 21.9883 5.7031 C 21.9805 5.7031 21.9727 5.7031 21.9648 5.7031 L 16.3828 5.7031 L 19.5859 11.0625 L 19.8789 11.1016 L 20.0664 11.3438 L 20.0664 11.5742 L 20.2695 11.6172 L 20.457 11.8711 L 20.457 12.0898 L 20.6641 12.1289 L 20.875 12.3594 L 20.875 12.8672 C 21.1289 13.0977 21.4102 13.2852 21.7188 13.4297 C 22 13.5391 22.0313 13.9922 22.2031 14.2344 C 22.4141 14.5859 22.707 14.7266 22.6445 14.9258 C 22.5039 15.4492 21.9648 16.3398 21.4648 16.3789 L 19.4805 16.3789 L 19.4805 17.2305 L 21.9648 17.2305 C 22.6836 17.2266 23.2617 16.6445 23.2578 15.9258 L 23.2578 7.0039 M 9.6016 16.3945 L 8.6445 16.3945 C 8.6445 13.9922 9.4531 12.6641 10.4258 12.3984 C 10.5586 12.375 10.4922 11.7188 10.3242 11.5195 L 9.7656 11.5195 C 9.6758 11.5195 9.7266 11.3477 9.7266 11.3477 L 10.1797 10.3789 L 10.1211 10.1094 L 8.4414 10.1094 L 9.8203 9.1445 C 9.8828 6.5938 12.4961 6.3945 14.0664 7.457 C 15.0039 8.0781 15.0742 9.3086 15.0039 10.1563 C 14.9922 10.2109 14.7578 10.1758 14.7578 10.1758 C 14.7578 10.1758 14.6016 11.1133 15.0156 11.1133 L 16.8516 11.1133 C 17.5977 11.082 18.3203 11.5898 18.3203 11.5898 L 18.4961 10.9453 L 14.4766 5.7031 L 1.9961 5.7031 C 1.6523 5.6992 1.3203 5.8359 1.0742 6.0781 C 0.832 6.3242 0.6953 6.6563 0.6992 7.0039 L 0.6992 15.9297 C 0.6953 16.2734 0.8281 16.6094 1.0742 16.8516 C 1.3203 17.0977 1.6523 17.2344 1.9961 17.2344 L 10.0977 17.2344 C 9.9023 16.8945 9.6758 16.5078 9.6055 16.3945 M 2.5 14.5 C 2.5 14.0078 2.8945 13.6094 3.3867 13.6094 C 3.875 13.6094 4.2734 14.0078 4.2734 14.5 C 4.2734 14.9883 3.875 15.3867 3.3867 15.3867 L 3.3789 15.3867 C 2.8945 15.3867 2.5 14.9961 2.5 14.5117 C 2.5 14.5078 2.5 14.5039 2.5 14.5",t.NBA="M 7.8555 21.1602 C 7.5547 20.8906 7.7539 20.7734 7.7383 20.6563 C 7.5391 19.8203 6.8672 19.3203 7.2188 19.0547 C 7.1484 18.8438 7.0664 18.6367 6.9688 18.4336 C 5.9336 17.8477 5.0625 16.8789 4.9141 16.7461 C 4.7617 16.6133 4.4297 16.3438 4.3633 16.1953 C 4.2969 16.043 2.9063 14.2383 2.625 13.6211 L 2.1406 13.5547 C 1.9219 12.6367 1.1719 11.8672 1.1523 10.9648 C 1.1758 10.543 1.25 10.1289 1.3711 9.7266 C 1.4688 9.5781 1.5859 9.4414 1.7227 9.3242 L 1.7227 9.0742 C 0.6523 9.1094 0.9531 8.9922 0.7695 8.5742 C 0.5859 8.1563 0.7344 8.2227 0.7852 8.0234 C 0.9375 7.4375 1.4023 6.5195 1.6055 6.1016 C 1.8047 5.6836 1.8711 5.3828 1.8711 5.3828 C 2.6758 3.7617 2.9766 3.8789 3.9258 3.7773 L 3.9766 3.7109 C 4.9297 3.6758 4.7813 3.5938 4.9141 2.6758 C 4.7813 2.7422 4.7305 2.3906 4.7305 2.3906 C 4.6445 1.8711 4.8789 1.9727 4.9805 1.957 C 4.9961 1.1016 5.0977 0.8203 5.7148 0.5859 L 2.4922 0.5859 C 1.4375 0.5859 0.5859 1.4375 0.5859 2.4883 L 0.5859 21.5078 C 0.5859 22.5625 1.4375 23.4141 2.4922 23.4141 L 8.1055 23.4141 C 7.4531 23.0625 7.8398 22.4141 7.8555 21.1602 M 21.5078 0.5859 L 6.2852 0.5859 C 6.5156 0.6484 6.7148 0.7969 6.8359 1.0039 C 7.0703 1.0195 7.3555 1.5547 6.918 2.3242 C 7.1211 2.457 6.9688 2.6406 6.8203 2.8594 C 6.668 3.0742 6.7344 3.0586 6.6172 3.043 C 6.4531 3.3945 6.25 3.7266 6.1016 3.7422 C 6.0352 3.8203 6.0273 3.9297 6.082 4.0117 C 6.3086 4.1016 6.5156 4.2266 6.7031 4.3789 L 6.7031 4.4609 C 6.8672 4.5625 6.9531 4.6445 7.1367 4.7461 C 7.5859 5.0313 8.1563 5.5469 8.0898 7.3203 C 8.2227 7.7031 8.2734 8.457 8.3906 8.707 C 8.5078 8.957 8.793 9.4922 8.8594 9.9258 C 8.8594 9.9258 8.9258 10.5781 9.0078 10.6641 L 9.0586 10.6641 C 9.4414 10.7461 9.375 10.7969 9.4102 10.8633 L 9.5078 10.9453 C 9.6094 10.9961 9.7773 11.0469 9.7773 11.2305 L 9.8594 11.3633 C 9.9102 11.4453 9.957 11.5273 9.9961 11.6172 C 10.1289 11.9922 10.1289 12.4063 9.9961 12.7852 L 9.9961 12.8359 C 9.8477 13.2031 9.5742 13.5039 9.2266 13.6875 L 9.1914 13.6875 L 9.1406 13.7227 C 8.918 13.8281 8.6719 13.8867 8.4219 13.8867 C 7.4883 13.7656 6.832 12.9063 6.957 11.9727 C 7.0391 11.3594 7.4453 10.8398 8.0234 10.6133 C 7.8203 10.1289 7.4219 9.3438 7.3047 9.0938 C 7.1875 8.8398 6.9023 7.2188 6.8516 6.9023 C 6.8008 6.5859 6.1172 7.3203 6.1172 7.3555 C 6.1172 7.3867 5.582 8.6914 5.5664 8.7578 C 5.5547 8.8281 5.5469 8.9023 5.5469 8.9766 C 5.5469 8.9766 5.8008 9.0078 5.9336 9.4258 C 6.0664 9.8438 6.5 11.3984 6.5 11.3984 L 6.3828 11.5156 C 6.918 13.3047 6.7344 14.0742 6.9688 14.6055 C 7.2031 15.1406 7.3555 15.2422 7.6055 15.8789 C 7.8555 16.5117 7.9883 18.1172 8.0742 18.1836 C 8.3555 18.5508 8.5234 18.8359 8.5234 19.0352 C 8.5234 19.2383 8.2734 19.8555 8.375 20.2227 C 8.4727 20.5898 8.457 20.9063 8.5586 20.9922 C 8.6563 21.0742 8.6406 21.1758 8.6055 21.2422 C 8.5898 21.2734 8.5781 21.3086 8.5742 21.3438 C 8.7227 21.9102 9.2422 22.8633 8.4219 23.3633 L 8.375 23.3984 L 21.543 23.3984 C 22.582 23.3906 23.4219 22.5508 23.4336 21.5117 L 23.4336 2.4922 C 23.4219 1.4336 22.5664 0.5859 21.5078 0.5859 Z M 21.5078 0.5859 M 15.793 5.1133 L 19.2383 5.1133 L 18.5352 16.6289 L 17.7813 5.1133 L 21.1406 5.1133 L 19.6563 18.9023 L 17.2461 18.9023 Z M 15.3438 6.8359 L 13.8867 6.8359 L 13.8867 18.8867 L 12.0352 18.8867 L 12.0352 6.8359 L 10.6133 6.8359 L 10.6133 5.0977 L 15.3438 5.0977 Z M 3.543 22.2266 L 3.543 18.7852 L 4.2109 18.7852 C 4.5977 18.7852 4.8281 18.9844 4.8281 19.4727 L 4.8281 19.9883 C 4.8281 20.3047 4.7305 20.457 4.5977 20.5391 C 4.7539 20.6563 4.8438 20.8438 4.8281 21.043 L 4.8281 21.543 C 4.8281 22.0117 4.5781 22.2266 4.2109 22.2266 Z M 4.0117 20.7227 L 4.0117 21.793 L 4.1953 21.793 C 4.3438 21.793 4.3945 21.7109 4.3945 21.543 L 4.3945 20.957 C 4.3945 20.793 4.3438 20.7227 4.1953 20.7227 Z M 4.0117 19.2188 L 4.0117 20.3555 L 4.1797 20.3555 C 4.3438 20.3555 4.3789 20.3047 4.3789 20.1055 L 4.3789 19.4375 C 4.3789 19.2695 4.3281 19.2031 4.1797 19.2031 L 4.0117 19.2031 Z M 5.9336 21.5273 L 5.5156 21.5273 L 5.4648 22.2266 L 4.9961 22.2266 L 5.4141 18.7852 L 6.0664 18.7852 L 6.4688 22.2266 L 5.9844 22.2266 Z M 5.7148 19.168 L 5.6992 19.168 C 5.6641 19.5859 5.6172 20.3047 5.5977 20.5391 L 5.5469 21.1406 L 5.8984 21.1406 L 5.8477 20.5391 C 5.832 20.3047 5.7656 19.5859 5.7148 19.168 M 2.1875 22.2266 L 1.7891 22.2266 L 1.7891 18.7852 L 2.4219 18.7852 L 2.9414 21.6094 C 2.8906 20.9414 2.8398 20.1211 2.8398 19.4219 L 2.8398 18.7852 L 3.2422 18.7852 L 3.2422 22.2266 L 2.6563 22.2266 L 2.1406 19.4727 C 2.1719 20.1055 2.1875 20.625 2.1875 21.1406 Z M 2.1875 22.2266",t.PRIMEVIDEO="M 1.160156 2.453125 Z M 1.160156 2.453125 Z M 10.246094 0.414062 C 9.792969 0.414062 9.523438 0.636719 9.488281 1.042969 C 9.46875 1.453125 9.703125 1.691406 10.027344 1.75 C 10.15625 1.777344 10.285156 1.777344 10.414062 1.75 C 10.710938 1.710938 10.933594 1.46875 10.953125 1.171875 C 10.980469 0.824219 10.824219 0.554688 10.515625 0.453125 C 10.425781 0.425781 10.339844 0.40625 10.246094 0.414062 Z M 3.496094 2.324219 C 3.046875 2.316406 2.636719 2.472656 2.253906 2.757812 C 2.21875 2.789062 2.179688 2.816406 2.128906 2.84375 C 2.117188 2.835938 2.109375 2.832031 2.109375 2.824219 C 2.089844 2.769531 2.078125 2.707031 2.0625 2.65625 C 2.015625 2.507812 1.960938 2.460938 1.808594 2.460938 C 1.636719 2.460938 1.457031 2.464844 1.285156 2.460938 C 1.160156 2.453125 1.039062 2.472656 0.941406 2.574219 C 0.941406 4.566406 0.949219 6.570312 0.949219 8.554688 C 1.023438 8.675781 1.136719 8.695312 1.273438 8.695312 C 1.476562 8.691406 1.683594 8.695312 1.886719 8.695312 C 2.246094 8.695312 2.246094 8.695312 2.246094 8.339844 L 2.246094 6.71875 C 2.246094 6.679688 2.226562 6.628906 2.265625 6.597656 C 2.554688 6.820312 2.898438 6.953125 3.257812 6.988281 C 3.765625 7.042969 4.214844 6.914062 4.601562 6.578125 C 4.878906 6.320312 5.085938 5.988281 5.195312 5.625 C 5.34375 5.160156 5.355469 4.679688 5.316406 4.207031 C 5.296875 3.910156 5.214844 3.613281 5.09375 3.351562 C 4.859375 2.859375 4.5 2.5 3.953125 2.371094 C 3.796875 2.335938 3.644531 2.324219 3.496094 2.324219 Z M 14.660156 2.324219 C 14.515625 2.324219 14.375 2.335938 14.234375 2.371094 C 13.863281 2.4375 13.53125 2.601562 13.214844 2.796875 C 13.179688 2.816406 13.140625 2.859375 13.085938 2.859375 C 13.058594 2.769531 13.039062 2.695312 13.011719 2.621094 C 12.976562 2.519531 12.917969 2.460938 12.808594 2.460938 L 12.101562 2.460938 C 12.03125 2.460938 11.964844 2.5 11.9375 2.566406 C 11.933594 2.613281 11.925781 2.660156 11.925781 2.707031 L 11.925781 6.65625 C 11.925781 6.851562 11.972656 6.914062 12.175781 6.914062 L 12.9375 6.914062 C 13.148438 6.914062 13.195312 6.867188 13.195312 6.65625 L 13.195312 3.613281 C 13.179688 3.574219 13.214844 3.519531 13.253906 3.503906 C 13.566406 3.355469 13.917969 3.289062 14.253906 3.316406 C 14.449219 3.324219 14.613281 3.457031 14.652344 3.652344 C 14.679688 3.75 14.6875 3.855469 14.6875 3.949219 L 14.6875 6.644531 C 14.6875 6.859375 14.726562 6.90625 14.941406 6.90625 L 15.542969 6.90625 C 15.628906 6.90625 15.71875 6.90625 15.804688 6.902344 C 15.886719 6.902344 15.949219 6.847656 15.949219 6.765625 C 15.960938 6.710938 15.960938 6.65625 15.960938 6.605469 L 15.960938 3.605469 C 15.953125 3.558594 15.980469 3.511719 16.027344 3.5 C 16.332031 3.355469 16.671875 3.289062 17.007812 3.316406 C 17.191406 3.324219 17.351562 3.453125 17.390625 3.625 C 17.425781 3.726562 17.433594 3.828125 17.425781 3.9375 L 17.425781 6.578125 C 17.425781 6.644531 17.425781 6.707031 17.441406 6.765625 C 17.453125 6.832031 17.507812 6.894531 17.574219 6.902344 C 17.621094 6.90625 17.667969 6.90625 17.714844 6.90625 L 18.410156 6.90625 C 18.667969 6.90625 18.703125 6.875 18.703125 6.617188 L 18.703125 3.660156 C 18.703125 3.59375 18.703125 3.53125 18.695312 3.472656 C 18.667969 3.175781 18.585938 2.898438 18.371094 2.675781 C 18.148438 2.4375 17.851562 2.34375 17.527344 2.332031 C 17.074219 2.304688 16.628906 2.40625 16.230469 2.613281 C 16.078125 2.695312 15.925781 2.78125 15.785156 2.871094 C 15.777344 2.859375 15.773438 2.859375 15.777344 2.851562 C 15.773438 2.84375 15.757812 2.832031 15.746094 2.808594 C 15.597656 2.585938 15.355469 2.425781 15.085938 2.371094 C 14.941406 2.335938 14.800781 2.324219 14.660156 2.324219 Z M 21.894531 2.363281 C 21.707031 2.34375 21.511719 2.351562 21.320312 2.371094 C 20.421875 2.480469 19.835938 2.972656 19.566406 3.835938 C 19.375 4.421875 19.402344 5.015625 19.550781 5.613281 C 19.753906 6.367188 20.253906 6.820312 21.015625 6.980469 C 21.449219 7.078125 21.882812 7.054688 22.320312 6.988281 C 22.550781 6.949219 22.777344 6.894531 22.996094 6.804688 C 23.125 6.757812 23.191406 6.679688 23.183594 6.53125 C 23.183594 6.394531 23.183594 6.253906 23.183594 6.109375 C 23.183594 5.933594 23.117188 5.882812 22.953125 5.921875 C 22.785156 5.960938 22.628906 5.996094 22.460938 6.03125 C 22.109375 6.105469 21.746094 6.105469 21.386719 6.042969 C 20.902344 5.949219 20.59375 5.53125 20.617188 5.015625 C 20.671875 5.023438 20.726562 5.03125 20.78125 5.042969 C 21.207031 5.117188 21.644531 5.125 22.078125 5.058594 C 22.328125 5.023438 22.5625 4.949219 22.785156 4.828125 C 23.042969 4.679688 23.230469 4.476562 23.3125 4.195312 C 23.507812 3.472656 23.203125 2.75 22.453125 2.480469 C 22.273438 2.425781 22.082031 2.386719 21.894531 2.363281 Z M 8.820312 2.410156 C 8.449219 2.386719 8.085938 2.5 7.789062 2.730469 C 7.671875 2.816406 7.566406 2.917969 7.457031 3.019531 C 7.4375 3.054688 7.402344 3.074219 7.363281 3.085938 C 7.328125 2.933594 7.292969 2.789062 7.253906 2.648438 C 7.214844 2.507812 7.144531 2.453125 6.996094 2.453125 L 6.449219 2.453125 C 6.1875 2.453125 6.160156 2.484375 6.160156 2.75 L 6.160156 6.625 C 6.160156 6.664062 6.160156 6.710938 6.167969 6.757812 C 6.175781 6.832031 6.226562 6.894531 6.300781 6.902344 C 6.34375 6.90625 6.390625 6.90625 6.429688 6.90625 L 7.171875 6.90625 C 7.207031 6.90625 7.253906 6.90625 7.292969 6.902344 C 7.367188 6.902344 7.429688 6.847656 7.429688 6.773438 C 7.4375 6.71875 7.4375 6.671875 7.4375 6.625 L 7.4375 3.882812 C 7.4375 3.824219 7.4375 3.769531 7.515625 3.734375 C 7.875 3.621094 8.246094 3.546875 8.632812 3.578125 C 8.707031 3.585938 8.785156 3.585938 8.859375 3.585938 C 8.960938 3.574219 9.003906 3.53125 9.027344 3.429688 C 9.042969 3.351562 9.042969 3.277344 9.035156 3.195312 C 9.035156 3 9.042969 2.804688 9.035156 2.609375 C 9.023438 2.464844 8.96875 2.417969 8.820312 2.410156 Z M 9.777344 2.453125 C 9.644531 2.460938 9.589844 2.511719 9.582031 2.648438 L 9.582031 4.671875 C 9.582031 5.320312 9.582031 5.96875 9.582031 6.605469 C 9.582031 6.644531 9.582031 6.691406 9.582031 6.738281 C 9.589844 6.820312 9.65625 6.878906 9.738281 6.886719 C 9.765625 6.894531 9.792969 6.894531 9.820312 6.894531 L 10.617188 6.894531 C 10.648438 6.894531 10.675781 6.894531 10.710938 6.886719 C 10.785156 6.878906 10.839844 6.832031 10.84375 6.757812 C 10.851562 6.691406 10.859375 6.628906 10.859375 6.570312 L 10.859375 2.777344 C 10.859375 2.722656 10.859375 2.675781 10.851562 2.628906 C 10.839844 2.492188 10.796875 2.453125 10.667969 2.453125 C 10.371094 2.445312 10.074219 2.445312 9.777344 2.453125 Z M 21.636719 3.242188 C 21.746094 3.25 21.847656 3.269531 21.941406 3.308594 C 22.089844 3.371094 22.183594 3.503906 22.207031 3.667969 C 22.226562 3.761719 22.21875 3.871094 22.183594 3.964844 C 22.117188 4.167969 21.957031 4.253906 21.753906 4.296875 C 21.636719 4.324219 21.511719 4.335938 21.382812 4.324219 C 21.160156 4.324219 20.9375 4.308594 20.714844 4.273438 C 20.625 4.261719 20.625 4.261719 20.640625 4.167969 C 20.652344 4.03125 20.691406 3.902344 20.746094 3.777344 C 20.914062 3.355469 21.273438 3.214844 21.636719 3.242188 Z M 3.082031 3.289062 C 3.164062 3.289062 3.25 3.296875 3.332031 3.316406 C 3.574219 3.351562 3.777344 3.503906 3.871094 3.722656 C 3.960938 3.910156 4.015625 4.105469 4.019531 4.308594 C 4.054688 4.671875 4.054688 5.039062 3.953125 5.382812 C 3.914062 5.558594 3.824219 5.71875 3.691406 5.839844 C 3.542969 5.960938 3.359375 6.035156 3.171875 6.035156 C 2.878906 6.058594 2.589844 5.996094 2.332031 5.855469 C 2.273438 5.828125 2.230469 5.765625 2.238281 5.699219 L 2.238281 4.667969 C 2.238281 4.324219 2.246094 3.984375 2.238281 3.640625 C 2.230469 3.558594 2.277344 3.492188 2.351562 3.464844 C 2.589844 3.351562 2.824219 3.289062 3.082031 3.289062 Z M 6.59375 8.832031 C 6.550781 8.824219 6.511719 8.832031 6.464844 8.839844 C 6.105469 8.863281 5.84375 9.113281 5.808594 9.453125 C 5.777344 9.878906 5.972656 10.167969 6.347656 10.261719 C 6.417969 10.269531 6.484375 10.28125 6.550781 10.28125 C 7.042969 10.296875 7.414062 10.019531 7.367188 9.457031 C 7.355469 9.203125 7.191406 8.980469 6.957031 8.890625 C 6.835938 8.84375 6.714844 8.816406 6.59375 8.832031 Z M 11.707031 8.871094 C 11.472656 8.871094 11.433594 8.914062 11.433594 9.148438 L 11.433594 11.125 C 11.433594 11.171875 11.445312 11.214844 11.417969 11.253906 C 11.363281 11.253906 11.332031 11.214844 11.289062 11.1875 C 10.65625 10.816406 9.988281 10.75 9.3125 11.058594 C 8.839844 11.28125 8.550781 11.679688 8.359375 12.152344 C 8.179688 12.605469 8.132812 13.078125 8.144531 13.5625 C 8.144531 14.015625 8.246094 14.460938 8.449219 14.867188 C 8.683594 15.3125 9.023438 15.65625 9.507812 15.796875 C 10.175781 16.007812 10.796875 15.90625 11.371094 15.480469 C 11.410156 15.460938 11.433594 15.414062 11.492188 15.40625 C 11.519531 15.472656 11.546875 15.546875 11.558594 15.613281 C 11.582031 15.714844 11.667969 15.785156 11.769531 15.785156 L 11.917969 15.785156 C 12.140625 15.785156 12.351562 15.789062 12.566406 15.785156 C 12.742188 15.785156 12.789062 15.730469 12.796875 15.546875 L 12.796875 9.109375 C 12.789062 8.914062 12.742188 8.871094 12.558594 8.871094 Z M 21.050781 10.871094 C 20.855469 10.863281 20.660156 10.871094 20.464844 10.902344 C 19.640625 11.023438 19.046875 11.464844 18.757812 12.246094 C 18.480469 12.996094 18.484375 13.8125 18.761719 14.5625 C 19.003906 15.238281 19.5 15.667969 20.199219 15.84375 C 20.570312 15.9375 20.964844 15.960938 21.347656 15.90625 C 22.628906 15.75 23.164062 14.777344 23.25 13.933594 C 23.25 13.933594 23.285156 13.683594 23.285156 13.5625 L 23.277344 13.058594 C 23.277344 12.984375 23.257812 12.839844 23.257812 12.835938 C 23.246094 12.71875 23.222656 12.605469 23.191406 12.488281 C 22.96875 11.6875 22.453125 11.152344 21.632812 10.945312 C 21.4375 10.898438 21.246094 10.875 21.050781 10.871094 Z M 15.976562 10.921875 C 14.949219 10.945312 14.164062 11.464844 13.847656 12.488281 C 13.632812 13.171875 13.660156 13.859375 13.867188 14.542969 C 14.085938 15.238281 14.578125 15.664062 15.273438 15.851562 C 15.570312 15.925781 15.878906 15.953125 16.191406 15.945312 C 16.636719 15.9375 17.082031 15.851562 17.5 15.6875 C 17.683594 15.621094 17.722656 15.5625 17.722656 15.371094 L 17.722656 14.933594 C 17.714844 14.757812 17.640625 14.695312 17.46875 14.738281 C 17.332031 14.769531 17.203125 14.804688 17.070312 14.839844 C 16.65625 14.933594 16.230469 14.953125 15.8125 14.878906 C 15.402344 14.796875 15.117188 14.5625 15.007812 14.144531 C 14.976562 14.023438 14.949219 13.902344 14.941406 13.773438 C 14.96875 13.773438 15.003906 13.773438 15.023438 13.785156 C 15.429688 13.851562 15.839844 13.886719 16.25 13.851562 C 16.601562 13.832031 16.960938 13.765625 17.277344 13.597656 C 17.601562 13.433594 17.824219 13.132812 17.890625 12.78125 C 17.9375 12.558594 17.9375 12.328125 17.890625 12.105469 C 17.765625 11.558594 17.414062 11.214844 16.886719 11.039062 C 16.597656 10.945312 16.277344 10.910156 15.976562 10.921875 Z M 0.6875 11.019531 C 0.566406 11.019531 0.515625 11.078125 0.539062 11.199219 C 0.558594 11.28125 0.585938 11.371094 0.617188 11.445312 C 0.984375 12.410156 1.359375 13.367188 1.726562 14.324219 C 1.875 14.730469 2.035156 15.140625 2.191406 15.546875 C 2.257812 15.714844 2.367188 15.796875 2.554688 15.789062 C 2.824219 15.789062 3.097656 15.789062 3.367188 15.789062 C 3.5 15.804688 3.621094 15.722656 3.667969 15.59375 C 3.683594 15.554688 3.703125 15.519531 3.710938 15.480469 C 4.121094 14.421875 4.535156 13.347656 4.945312 12.289062 L 5.308594 11.316406 C 5.390625 11.09375 5.335938 11.023438 5.109375 11.023438 L 4.175781 11.023438 C 4.066406 11.023438 3.960938 11.09375 3.933594 11.199219 L 3.890625 11.316406 C 3.617188 12.261719 3.332031 13.199219 3.046875 14.148438 C 3.015625 14.273438 2.980469 14.386719 2.941406 14.507812 C 2.925781 14.507812 2.921875 14.507812 2.925781 14.5 C 2.675781 13.652344 2.433594 12.800781 2.183594 11.949219 C 2.109375 11.714844 2.042969 11.476562 1.976562 11.246094 C 1.933594 11.121094 1.875 11.019531 1.726562 11.019531 C 1.382812 11.019531 1.03125 11.011719 0.6875 11.019531 Z M 6.148438 11.023438 C 5.957031 11.023438 5.902344 11.078125 5.902344 11.269531 L 5.902344 15.5 C 5.902344 15.535156 5.902344 15.582031 5.910156 15.613281 C 5.917969 15.738281 5.976562 15.789062 6.101562 15.789062 C 6.429688 15.796875 6.753906 15.796875 7.085938 15.789062 C 7.207031 15.789062 7.261719 15.730469 7.273438 15.609375 L 7.273438 11.269531 C 7.273438 11.078125 7.21875 11.023438 7.023438 11.023438 Z M 15.851562 11.863281 C 15.933594 11.847656 16.023438 11.855469 16.109375 11.863281 C 16.136719 11.863281 16.164062 11.875 16.191406 11.875 C 16.625 11.941406 16.722656 12.28125 16.648438 12.609375 C 16.582031 12.859375 16.386719 12.949219 16.15625 12.996094 C 16.035156 13.015625 15.90625 13.03125 15.777344 13.023438 C 15.53125 13.015625 15.28125 12.996094 15.035156 12.960938 C 14.984375 12.957031 14.960938 12.933594 14.96875 12.875 C 15.015625 12.636719 15.070312 12.410156 15.21875 12.214844 C 15.386719 11.984375 15.605469 11.882812 15.851562 11.863281 Z M 10.394531 11.910156 C 10.71875 11.882812 11.039062 11.941406 11.332031 12.078125 C 11.40625 12.097656 11.445312 12.171875 11.4375 12.253906 C 11.433594 12.632812 11.4375 13.003906 11.4375 13.375 L 11.4375 14.488281 C 11.453125 14.554688 11.40625 14.628906 11.335938 14.65625 C 11.046875 14.820312 10.710938 14.886719 10.378906 14.839844 C 10.09375 14.8125 9.851562 14.636719 9.722656 14.386719 C 9.628906 14.191406 9.570312 13.980469 9.554688 13.765625 C 9.5 13.378906 9.535156 12.988281 9.625 12.617188 C 9.65625 12.515625 9.691406 12.414062 9.75 12.320312 C 9.878906 12.085938 10.121094 11.929688 10.394531 11.910156 Z M 20.808594 11.941406 C 20.921875 11.929688 21.039062 11.929688 21.152344 11.949219 C 21.402344 12.003906 21.605469 12.160156 21.710938 12.386719 C 21.8125 12.597656 21.875 12.839844 21.886719 13.078125 C 21.894531 13.191406 21.902344 13.300781 21.894531 13.40625 C 21.914062 13.675781 21.882812 13.941406 21.808594 14.191406 C 21.773438 14.320312 21.71875 14.433594 21.636719 14.546875 C 21.503906 14.738281 21.289062 14.859375 21.058594 14.878906 C 20.941406 14.886719 20.828125 14.886719 20.707031 14.867188 C 20.449219 14.8125 20.242188 14.644531 20.132812 14.40625 C 20.046875 14.21875 19.984375 14.007812 19.972656 13.800781 C 19.9375 13.441406 19.929688 13.078125 20.019531 12.726562 C 20.050781 12.585938 20.113281 12.441406 20.179688 12.320312 C 20.316406 12.097656 20.550781 11.957031 20.808594 11.941406 Z M 20.808594 17.726562 C 20.457031 17.742188 20.121094 17.773438 19.78125 17.84375 C 19.34375 17.949219 18.929688 18.105469 18.558594 18.367188 C 18.507812 18.402344 18.453125 18.457031 18.410156 18.511719 C 18.378906 18.566406 18.363281 18.625 18.398438 18.6875 C 18.433594 18.746094 18.492188 18.753906 18.558594 18.746094 L 19.160156 18.671875 C 19.605469 18.613281 20.066406 18.589844 20.523438 18.613281 C 20.6875 18.625 20.847656 18.652344 20.996094 18.699219 C 21.164062 18.753906 21.273438 18.894531 21.28125 19.0625 C 21.289062 19.164062 21.28125 19.261719 21.273438 19.359375 C 21.238281 19.636719 21.1875 19.90625 21.105469 20.164062 C 20.96875 20.652344 20.800781 21.109375 20.625 21.574219 C 20.605469 21.628906 20.597656 21.675781 20.59375 21.722656 C 20.597656 21.816406 20.660156 21.871094 20.753906 21.84375 C 20.816406 21.824219 20.867188 21.792969 20.910156 21.742188 C 21.132812 21.542969 21.328125 21.296875 21.484375 21.035156 C 21.921875 20.304688 22.183594 19.488281 22.253906 18.640625 C 22.257812 18.496094 22.253906 18.347656 22.238281 18.214844 C 22.21875 18.09375 22.144531 17.984375 22.035156 17.9375 C 21.949219 17.898438 21.867188 17.871094 21.773438 17.84375 C 21.457031 17.761719 21.132812 17.742188 20.808594 17.726562 Z M 1.785156 17.984375 C 1.753906 17.992188 1.71875 18.011719 1.699219 18.039062 C 1.644531 18.09375 1.632812 18.167969 1.664062 18.234375 C 1.679688 18.289062 1.71875 18.335938 1.753906 18.367188 C 1.929688 18.53125 2.089844 18.6875 2.265625 18.839844 C 4.128906 20.496094 6.269531 21.628906 8.707031 22.195312 C 9.414062 22.359375 10.128906 22.472656 10.859375 22.527344 C 11.128906 22.546875 11.40625 22.554688 11.675781 22.566406 C 11.878906 22.566406 12.074219 22.566406 12.277344 22.566406 C 13.058594 22.539062 13.847656 22.453125 14.625 22.316406 C 15.976562 22.0625 17.285156 21.621094 18.511719 21 C 19.160156 20.671875 19.773438 20.277344 20.347656 19.832031 C 20.417969 19.785156 20.46875 19.71875 20.511719 19.644531 C 20.523438 19.625 20.53125 19.605469 20.539062 19.585938 C 20.578125 19.414062 20.476562 19.246094 20.316406 19.207031 C 20.214844 19.1875 20.105469 19.199219 20.019531 19.246094 C 19.417969 19.523438 18.804688 19.765625 18.167969 19.976562 C 16.972656 20.375 15.738281 20.652344 14.484375 20.8125 C 13.949219 20.878906 13.410156 20.933594 12.871094 20.949219 C 11.871094 20.980469 10.859375 20.933594 9.867188 20.8125 C 9.171875 20.726562 8.476562 20.597656 7.792969 20.441406 C 5.753906 19.960938 3.804688 19.160156 2.023438 18.058594 C 1.980469 18.03125 1.933594 18.011719 1.894531 17.992188 C 1.859375 17.976562 1.820312 17.976562 1.785156 17.984375 Z M 1.785156 17.984375 ",t.PIA="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12 M 11.40625 8.695312 C 11.40625 8.332031 10.96875 8.152344 10.710938 8.40625 C 10.457031 8.664062 10.636719 9.101562 11 9.101562 C 11.222656 9.101562 11.40625 8.917969 11.402344 8.695312 M 13.003906 8.289062 C 12.640625 8.289062 12.457031 8.726562 12.714844 8.984375 C 12.972656 9.238281 13.40625 9.058594 13.40625 8.695312 C 13.40625 8.472656 13.226562 8.289062 13.003906 8.289062 M 12.566406 9.363281 C 12.242188 9.652344 11.757812 9.652344 11.4375 9.363281 C 11.332031 9.277344 11.199219 9.425781 11.292969 9.519531 C 11.691406 9.894531 12.3125 9.894531 12.707031 9.519531 C 12.75 9.480469 12.75 9.414062 12.710938 9.375 C 12.671875 9.332031 12.609375 9.328125 12.566406 9.363281 M 16.304688 10.933594 L 16.304688 10.929688 C 16.304688 10.550781 16.054688 10.21875 15.691406 10.117188 L 15.691406 9.390625 C 15.691406 7.414062 14.089844 5.8125 12.113281 5.8125 L 11.976562 5.8125 C 10 5.8125 8.394531 7.414062 8.394531 9.390625 L 8.394531 10.097656 C 7.996094 10.171875 7.707031 10.515625 7.703125 10.921875 C 7.59375 11.105469 7.535156 11.316406 7.535156 11.53125 L 7.535156 16.121094 C 7.535156 16.667969 7.902344 17.144531 8.429688 17.289062 C 8.570312 17.605469 8.886719 17.8125 9.234375 17.8125 L 10.238281 17.8125 C 10.570312 17.8125 10.875 17.625 11.027344 17.328125 L 12.871094 17.328125 C 13.019531 17.625 13.324219 17.8125 13.65625 17.8125 L 14.660156 17.8125 C 15 17.8125 15.308594 17.617188 15.457031 17.3125 C 16.039062 17.214844 16.464844 16.710938 16.464844 16.121094 L 16.464844 11.53125 C 16.464844 11.324219 16.410156 11.117188 16.304688 10.933594 Z M 13.113281 15.382812 C 13.136719 15.539062 13.089844 15.695312 12.988281 15.816406 C 12.886719 15.933594 12.738281 16.003906 12.578125 16.003906 L 11.421875 16.003906 C 11.265625 16.003906 11.113281 15.933594 11.011719 15.816406 C 10.910156 15.695312 10.863281 15.539062 10.886719 15.382812 L 11.109375 13.871094 C 10.691406 13.515625 10.527344 12.949219 10.6875 12.421875 C 10.847656 11.898438 11.300781 11.519531 11.84375 11.460938 C 12.445312 11.390625 13.019531 11.722656 13.261719 12.277344 C 13.5 12.832031 13.351562 13.480469 12.890625 13.871094 Z M 13.246094 10.324219 L 10.761719 10.324219 C 10.605469 10.167969 10.390625 10.082031 10.171875 10.082031 L 9.75 10.082031 L 9.75 9.332031 C 9.75 8.09375 10.753906 7.089844 11.992188 7.089844 L 12.101562 7.089844 C 13.339844 7.089844 14.339844 8.09375 14.339844 9.332031 L 14.339844 10.082031 L 13.835938 10.082031 C 13.613281 10.082031 13.402344 10.167969 13.246094 10.324219 Z M 12.730469 15.457031 C 12.742188 15.496094 12.734375 15.535156 12.707031 15.570312 C 12.683594 15.601562 12.644531 15.617188 12.605469 15.617188 L 11.402344 15.617188 C 11.363281 15.617188 11.324219 15.601562 11.300781 15.566406 C 11.273438 15.535156 11.265625 15.496094 11.277344 15.457031 L 11.507812 13.785156 C 11.507812 13.761719 11.503906 13.738281 11.496094 13.714844 C 11.476562 13.683594 11.453125 13.660156 11.421875 13.636719 C 11.417969 13.632812 11.417969 13.632812 11.414062 13.628906 C 11.070312 13.375 10.925781 12.933594 11.058594 12.527344 C 11.191406 12.121094 11.566406 11.84375 11.992188 11.839844 C 12.421875 11.839844 12.800781 12.109375 12.9375 12.515625 C 13.074219 12.917969 12.9375 13.367188 12.59375 13.621094 C 12.59375 13.625 12.59375 13.628906 12.582031 13.636719 C 12.550781 13.660156 12.527344 13.683594 12.507812 13.714844 C 12.503906 13.722656 12.5 13.734375 12.5 13.746094 Z M 12.730469 15.457031 ",t.SURFSHARK="M 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 Z M 24 12M 16.546875 8.351562 L 16.546875 8.34375 C 16.539062 8.242188 16.53125 8.125 16.527344 8 C 16.511719 7.765625 16.496094 7.515625 16.480469 7.320312 C 16.457031 7.1875 16.425781 7.070312 16.386719 6.960938 C 16.148438 6.429688 15.683594 6.175781 15.191406 6.054688 C 14.964844 6.015625 14.691406 6.007812 14.398438 6 L 11.570312 6 C 9.75 6.097656 8.984375 7.152344 8.78125 7.714844 C 7.984375 10.097656 7.484375 13.1875 7.128906 15.414062 C 7.121094 15.460938 7.113281 15.5 7.105469 15.542969 L 6.988281 16.601562 C 6.980469 16.769531 7 16.953125 7.042969 17.128906 C 7.265625 17.773438 7.941406 18.320312 9.425781 17.777344 C 10.832031 17.167969 12.488281 16.410156 14.199219 15.558594 C 15.175781 14.996094 16.605469 13.703125 16.679688 12.066406 C 16.667969 10.859375 16.628906 9.589844 16.546875 8.351562 Z M 14.289062 9.246094 C 14.289062 9.386719 14.175781 9.5 14.035156 9.5 C 13.183594 9.5 12.496094 10.191406 12.496094 11.039062 L 12.496094 11.980469 C 12.496094 13.5625 11.214844 14.84375 9.636719 14.84375 C 9.496094 14.84375 9.386719 14.730469 9.386719 14.59375 L 9.386719 13.8125 C 9.386719 13.671875 9.5 13.558594 9.640625 13.558594 C 10.492188 13.558594 11.179688 12.871094 11.179688 12.019531 L 11.179688 11.078125 C 11.179688 9.5 12.460938 8.21875 14.042969 8.21875 C 14.179688 8.21875 14.289062 8.328125 14.289062 8.464844 Z M 14.289062 9.246094 ",t.VUDU="M 6.0971 6.9926 L 5.0469 6.9926 C 4.8725 6.9963 4.7129 7.1039 4.6535 7.2709 C 4.6535 7.282 4.6535 7.2895 4.6535 7.3006 C 4.2602 8.4324 3.915 9.4047 3.518 10.5365 C 3.4141 10.8371 3.3102 11.134 3.1914 11.4346 C 3.184 11.4605 3.1654 11.4828 3.1395 11.4939 C 3.0949 11.4939 3.0949 11.4605 3.0838 11.4309 C 2.8389 10.7221 2.5939 10.017 2.3416 9.3119 L 1.6217 7.2561 C 1.6254 7.2486 1.6254 7.2412 1.6217 7.2338 C 1.5475 7.0854 1.399 6.9926 1.2357 6.9926 L 0.1707 6.9926 C 0.0854 6.9852 0.0111 7.0482 0 7.1336 C -0.0037 7.1633 0.0037 7.193 0.0148 7.2189 C 0.6271 8.9297 1.2357 10.6404 1.8443 12.3475 L 1.9705 12.7 C 2.1486 13.2195 2.6348 13.5646 3.1803 13.5609 L 3.3213 13.5609 C 3.5551 13.5498 3.7889 13.5201 4.0227 13.4682 L 4.4531 12.2287 L 6.2566 7.2301 C 6.2641 7.2078 6.2678 7.1893 6.2752 7.1707 C 6.2863 7.0854 6.227 7.0037 6.1416 6.9926 C 6.1268 6.9926 6.1156 6.9926 6.1008 6.9926 M 11.9418 7.4416 C 11.9418 7.2152 11.7674 7.0297 11.5447 7.0111 L 10.4574 7.0111 L 10.4574 7.6123 C 10.4574 8.7441 10.4574 9.7498 10.4574 10.8854 C 10.4611 11.0004 10.45 11.1154 10.424 11.2268 C 10.3424 11.635 10.0455 11.9578 9.6484 12.0729 C 9.0436 12.2695 8.3904 11.9393 8.1937 11.3307 C 8.1566 11.2119 8.1381 11.0895 8.1381 10.967 C 8.1381 10.184 8.1381 8.5104 8.1381 7.6049 L 8.1381 7 C 8.1381 7 7.0545 7 7.0471 7 C 6.8244 7.0148 6.65 7.2041 6.65 7.4268 L 6.65 7.6457 C 6.65 8.8221 6.65 9.8314 6.65 11.0301 C 6.6574 12.4773 7.8301 13.6426 9.2699 13.6314 C 9.4406 13.6314 9.6076 13.6129 9.7746 13.5795 C 10.4203 13.4719 11.0029 13.1193 11.4037 12.5998 C 11.7451 12.1693 11.9344 11.6387 11.9418 11.0857 C 11.9418 10.4586 11.9418 9.8314 11.9418 9.2006 Z M 11.9418 7.4416 M 23.75 7.4416 C 23.75 7.2189 23.5793 7.0297 23.3566 7.0111 L 22.2656 7.0111 L 22.2656 7.6123 C 22.2656 8.7441 22.2656 9.7498 22.2656 10.8854 C 22.2656 11.0004 22.2545 11.1154 22.2285 11.2268 C 22.1506 11.6312 21.85 11.9578 21.4529 12.0729 C 20.8518 12.2732 20.2023 11.943 20.002 11.3381 C 19.9611 11.2193 19.9426 11.0932 19.9426 10.967 C 19.9426 10.184 19.9426 8.5104 19.9426 7.6049 L 19.9426 7 C 19.9426 7 18.8627 7 18.8479 7 C 18.6289 7.0186 18.4582 7.2041 18.4545 7.4268 L 18.4545 7.6457 C 18.4545 8.8221 18.4545 9.8314 18.4545 11.0301 C 18.4656 12.4773 19.6383 13.6426 21.0744 13.6314 C 21.2451 13.6314 21.4158 13.6129 21.5828 13.5795 C 22.2285 13.4719 22.8074 13.1193 23.2082 12.5998 C 23.5533 12.1693 23.7426 11.6387 23.7463 11.0857 C 23.7463 10.4586 23.7463 9.8314 23.7463 9.2006 L 23.7463 7.4416 Z M 23.75 7.4416 M 16.1352 11.5385 C 15.8457 11.8873 15.4338 12.1062 14.9885 12.1471 C 14.8994 12.1508 14.8104 12.1508 14.7213 12.1471 L 13.9531 12.1471 C 13.8604 12.1471 13.8566 12.1471 13.8566 12.0506 L 13.8566 8.4584 C 13.8566 8.373 13.8566 8.373 13.942 8.373 C 14.2686 8.373 14.5691 8.373 14.8809 8.373 C 15.4375 8.3916 15.9496 8.6811 16.2539 9.1486 C 16.4506 9.4381 16.5656 9.7795 16.5805 10.132 C 16.6213 10.6404 16.4617 11.1451 16.1352 11.5385 M 16.5693 7.4898 C 16.1018 7.1893 15.56 7.0223 15.0033 7.0074 C 14.7436 7.0074 14.4875 7.0074 14.224 7.0074 L 12.8473 7.0074 C 12.6098 7.0074 12.4205 7.2004 12.4205 7.4379 L 12.4205 13.1156 C 12.4205 13.3531 12.6098 13.5461 12.8473 13.5461 L 14.9143 13.5461 C 15.0701 13.5461 15.226 13.5313 15.3818 13.5016 C 16.0053 13.4088 16.5842 13.1305 17.0443 12.7037 C 17.9016 11.9541 18.2912 10.8 18.0686 9.6793 C 17.9127 8.7701 17.3672 7.976 16.5805 7.5047 M 19.0334 14.4293 C 18.4656 14.4553 18.024 14.9451 18.0463 15.5166 C 18.0686 16.0881 18.5473 16.5297 19.115 16.5074 C 19.6717 16.4852 20.1096 16.025 20.1021 15.4646 C 20.1133 14.9117 19.6791 14.4479 19.1262 14.4293 L 19.0334 14.4293 M 19.616 15.5092 C 19.6049 15.6354 19.5492 15.7578 19.4639 15.8506 L 19.4342 15.8803 C 19.1967 16.1029 18.8256 16.0918 18.6029 15.8543 C 18.3803 15.6205 18.3914 15.2457 18.6289 15.023 C 18.8627 14.8004 19.2338 14.8115 19.4564 15.049 C 19.4564 15.049 19.4564 15.049 19.4602 15.049 C 19.5529 15.1492 19.6086 15.2791 19.616 15.4164 Z M 19.616 15.5092 M 16.818 15.3199 L 16.818 15.7727 L 17.2633 15.7727 L 17.2633 15.9285 C 17.1557 16.0102 17.0295 16.051 16.8959 16.051 C 16.6027 16.0621 16.3541 15.832 16.343 15.5352 C 16.3393 15.5129 16.3393 15.4906 16.343 15.4721 C 16.3207 15.1752 16.5396 14.9154 16.8365 14.8932 L 16.8959 14.8932 C 17.0703 14.8969 17.2299 14.9934 17.3152 15.1455 L 17.7457 14.9229 C 17.575 14.6111 17.2484 14.4256 16.8959 14.4367 C 16.3281 14.4219 15.8568 14.8746 15.842 15.4424 C 15.8271 15.9953 16.2428 16.4629 16.792 16.5037 L 16.8959 16.5037 C 17.1965 16.5037 17.4859 16.3887 17.7012 16.1734 C 17.7346 16.14 17.7568 16.0881 17.7605 16.0361 L 17.7605 15.3199 Z M 16.818 15.3199 M 15.3187 14.485 L 15.2779 14.485 C 15.1666 14.4924 15.0812 14.5852 15.0775 14.6965 L 15.0775 15.5797 L 14.276 14.485 L 13.7416 14.485 L 13.7416 16.4777 L 14.2537 16.4777 L 14.2537 15.3311 L 15.0924 16.4777 L 15.5822 16.4777 L 15.5822 14.485 Z M 15.3187 14.485 M 12.8139 14.485 L 12.1607 14.485 L 11.4111 16.4814 L 11.9937 16.4814 L 12.0939 16.192 L 12.8732 16.192 L 12.9252 16.3404 C 12.9586 16.4221 13.0328 16.474 13.1182 16.4777 L 13.5561 16.4777 Z M 12.2387 15.743 L 12.491 14.9896 L 12.7396 15.743 Z M 12.2387 15.743 M 10.3943 14.485 L 9.5557 14.485 L 9.5557 16.2699 C 9.5631 16.385 9.6559 16.4777 9.7709 16.4814 L 10.3943 16.4814 C 10.9398 16.5111 11.4111 16.0918 11.4408 15.5389 C 11.4742 14.9896 11.0549 14.5184 10.5057 14.485 C 10.4686 14.485 10.4314 14.485 10.3943 14.485 M 10.3943 16.0361 L 10.0678 16.0361 L 10.0678 14.9229 L 10.3943 14.9229 C 10.6764 14.908 10.9139 15.1232 10.9324 15.4053 L 10.9324 15.4646 C 10.9324 15.7615 10.6912 16.0361 10.398 16.0361 C 10.3943 16.0361 10.398 16.0324 10.398 16.0324 L 10.4018 16.0287 M 8.9063 14.485 C 8.7949 14.4887 8.7021 14.5777 8.6984 14.6891 L 8.6984 15.5797 L 7.8783 14.485 L 7.3439 14.485 L 7.3439 16.4777 L 7.8523 16.4777 L 7.8523 15.3311 L 8.6947 16.4852 L 9.1883 16.4852 L 9.1883 14.485 Z M 8.9063 14.485 M 6.4311 14.485 L 5.7779 14.485 L 5.032 16.4777 L 5.6258 16.4777 L 5.726 16.1883 L 6.5127 16.1883 L 6.5646 16.3404 C 6.598 16.4184 6.6723 16.4703 6.7576 16.4777 L 7.1918 16.4777 Z M 5.8559 15.743 L 6.1119 14.9896 L 6.3605 15.743 Z M 5.8559 15.743 M 5.2213 14.908 L 5.2213 14.459 L 3.6961 14.459 L 3.6961 16.448 L 4.2342 16.448 L 4.2342 15.7578 L 4.7686 15.7578 C 4.865 15.7467 4.9355 15.6687 4.943 15.5723 L 4.943 15.3051 L 4.2416 15.3051 L 4.2416 14.908 Z M 5.2213 14.908 M 0.3971 15.3941 L 3.2471 15.3941 L 3.2471 15.55 L 0.3971 15.55 Z M 0.3971 15.3941 M 20.5549 15.3941 L 23.4049 15.3941 L 23.4049 15.55 L 20.5549 15.55 Z M 20.5549 15.3941"}(i||(e.svg=i={}))},554:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(359),e),o(i(561),e),o(i(442),e)},63:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},253:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},695:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(63),e),o(i(253),e),o(i(459),e),o(i(695),e)},595:(t,e,i)=>{i.r(e),i.d(e,{customElement:()=>n,eventOptions:()=>l,property:()=>s,query:()=>u,queryAll:()=>d,queryAssignedElements:()=>C,queryAssignedNodes:()=>f,queryAsync:()=>h,state:()=>a});const n=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),o=(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)}},r=(t,e,i)=>{e.constructor.createProperty(i,t)};function s(t){return(e,i)=>void 0!==i?r(t,e,i):o(t,e)}function a(t){return s({...t,state:!0})}const c=({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)}};function l(t){return c({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function u(t,e){return c({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 d(t){return c({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function h(t){return c({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})})}var m;const p=null!=(null===(m=window.HTMLSlotElement)||void 0===m?void 0:m.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function C(t){const{slot:e,selector:i}=null!=t?t:{};return c({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?p(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}function f(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?C({slot:o,flatten:e,selector:i}):c({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})})}},62:(t,e,i)=>{i.r(e),i.d(e,{CSSResult:()=>a,LitElement:()=>pt,ReactiveElement:()=>b,UpdatingElement:()=>mt,_$LE:()=>ft,_$LH:()=>ct,adoptStyles:()=>u,css:()=>l,defaultConverter:()=>v,getCompatibleStyle:()=>d,html:()=>K,isServer:()=>vt,noChange:()=>z,notEqual:()=>y,nothing:()=>q,render:()=>ut,supportsAdoptingStyleSheets:()=>o,svg:()=>V,unsafeCSS:()=>c});const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,r),l=(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 a(i,t,r)},u=(t,e)=>{o?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=n.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t;var h;const m=window,p=m.trustedTypes,C=p?p.emptyScript:"",f=m.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?C: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),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},_="finalized";class b 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=g){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)||g}static finalize(){if(this.hasOwnProperty(_))return!1;this[_]=!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(d(t))}else void 0!==t&&e.push(d(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 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=g){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:v).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:v;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){}}var L;b[_]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(h=m.reactiveElementVersions)&&void 0!==h?h:m.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,E=`<${M}>`,T=document,O=()=>T.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,I=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,Z=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,F=/"/g,B=/^(?:script|style|textarea|title)$/i,H=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),K=H(1),V=H(2),z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,Y=T.createTreeWalker(T,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(e):e}const G=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"":"",s=N;for(let e=0;e"===c[0]?(s=null!=o?o:N,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Z:'"'===c[3]?F:j):s===F||s===j?s=Z:s===R||s===U?s=N:(s=Z,o=void 0);const d=s===Z&&t[e+1].startsWith("/>")?" ":"";r+=s===N?i+E:l>=0?(n.push(a),i.slice(0,l)+$+i.slice(l)+S+d):i+S+(-2===l?(n.push(void 0),e):d)}return[X(t,r+(t[i]||"")+(2===e?"":"")),n]};class J{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[c,l]=G(t,e);if(this.el=J.createElement(c,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=k?k.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}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=Q(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s{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 et(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s};var dt,ht;const mt=b;class pt extends b{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=ut(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 z}}pt.finalized=!0,pt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:pt});const Ct=globalThis.litElementPolyfillSupport;null==Ct||Ct({LitElement:pt});const ft={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.3");const vt=!1},147:t=>{t.exports=JSON.parse('{"name":"android-tv-card","version":"2.2.0","description":"Android TV Remote Card","main":"./dist/android-tv-card.js","scripts":{"test":"echo \\"Error: no test specified\\" && exit 1","build":"npx webpack","prelint":"tsc --noemit","lint":"eslint ./src --fix --ext .ts --config ./.eslintrc.js","pretty-quick":"pretty-quick","postinstall":"husky install","build-css":"tcm src"},"repository":{"type":"git","url":"git+https://github.com/Nerwyn/android-tv-card.git"},"keywords":["androidtv","android","googletv","google","tvcard","remote","tv","television"],"author":"Nerwyn","license":"Apache-2.0","bugs":{"url":"https://github.com/Nerwyn/android-tv-card/issues"},"homepage":"https://github.com/Nerwyn/android-tv-card#readme","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"dependencies":{"custom-card-helpers":"^1.9.0","lit":"^2.8.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^6.6.0","@typescript-eslint/parser":"^6.6.0","eslint":"^8.48.0","husky":"^8.0.3","prettier":"^3.0.3","pretty-quick":"^3.1.3","ts-loader":"^9.4.4","typescript":"^5.2.2","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}')}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(992)})(); \ No newline at end of file diff --git a/src/android-tv-card.ts b/src/android-tv-card.ts index a0dc857c..933887f7 100644 --- a/src/android-tv-card.ts +++ b/src/android-tv-card.ts @@ -13,11 +13,9 @@ import { ICustomAction, defaultKeys, defaultSources, - IKeys, IKey, - ISources, ISource, - IServiceData, + IData, } from './models'; console.info( @@ -26,11 +24,11 @@ console.info( ); class AndroidTVCard extends LitElement { - defaultKeys: IKeys; - defaultSources: ISources; + defaultKeys: Record; + defaultSources: Record; - customKeys: IKeys; - customSources: ISources; + customKeys: Record; + customSources: Record; customIcons: Record; clickTimer: ReturnType | null; @@ -107,10 +105,6 @@ class AndroidTVCard extends LitElement { config = JSON.parse(JSON.stringify(config)); config = { theme: 'default', ...config }; - this.customKeys = config.custom_keys || {}; - this.customSources = config.custom_sources || {}; - this.customIcons = config.custom_icons || {}; - if (config.alt_volume_icons) { this.defaultKeys = this.useAltVolumeIcons(defaultKeys); } else { @@ -121,6 +115,11 @@ class AndroidTVCard extends LitElement { // Legacy config upgrades config = this.updateDeprecatedKeys(config); config = this.convertToRowsArray(config); + config = this.combineServiceFields(config); + + this.customKeys = config.custom_keys || {}; + this.customSources = config.custom_sources || {}; + this.customIcons = config.custom_icons || {}; await window.loadCardHelpers(); @@ -218,7 +217,7 @@ class AndroidTVCard extends LitElement { (this.volume_slider as VolumeSlider).hass = this.hass; } - useAltVolumeIcons(defaultKeys: IKeys) { + useAltVolumeIcons(defaultKeys: Record) { defaultKeys = JSON.parse(JSON.stringify(defaultKeys)); defaultKeys.volume_up.icon = 'mdi:volume-high'; defaultKeys.volume_down.icon = 'mdi:volume-medium'; @@ -256,12 +255,46 @@ class AndroidTVCard extends LitElement { return config; } + combineServiceFields(config: IConfig) { + const customActionKeys = [ + 'custom_keys', + 'custom_sources', + ] as (keyof IConfig)[]; + + for (const key in customActionKeys) { + if (key in config) { + const customActions = config[key as keyof IConfig] as Record< + string, + ICustomAction + >; + for (const name in customActions) { + const customAction = customActions[name]; + if ('service' in customAction) { + console.log('here!'); + customAction.data = { + ...customAction.data, + ...( + customAction as unknown as Record< + string, + IData | undefined + > + ).service_data, + ...customAction.target, + }; + } + } + } + } + + return config; + } + /** * Send command to an Android TV remote * @param {string} key */ sendKey(key: string, longPress: boolean = false) { - const data: IServiceData = { + const data: IData = { entity_id: this.config.remote_id!, command: key, }; @@ -294,14 +327,12 @@ class AndroidTVCard extends LitElement { } else if ('source' in info) { this.changeSource((info as ISource).source); } else if ('service' in info) { - const service_data = JSON.parse( - JSON.stringify(info.service_data || {}), - ); + const data = JSON.parse(JSON.stringify(info.data || {})); if (longPress && info.service == 'remote.send_command') { - service_data.hold_secs = 0.5; + data.hold_secs = 0.5; } const [domain, service] = info.service.split('.', 2); - this.hass.callService(domain, service, service_data); + this.hass.callService(domain, service, data); } } @@ -555,7 +586,7 @@ class AndroidTVCard extends LitElement { const text = prompt('Text Input: '); if (text) { - let data: IServiceData; + let data: IData; switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { @@ -604,7 +635,7 @@ class AndroidTVCard extends LitElement { const text = prompt(promptText); if (text) { - let data: IServiceData; + let data: IData; switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { @@ -639,7 +670,7 @@ class AndroidTVCard extends LitElement { const text = e.data; if (text) { - let data: IServiceData; + let data: IData; switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { @@ -672,7 +703,7 @@ class AndroidTVCard extends LitElement { const text = e.clipboardData?.getData('Text'); if (text) { - let data: IServiceData; + let data: IData; switch ((this.config.keyboard_mode ?? '').toUpperCase()) { case 'KODI': data = { diff --git a/src/models/defaultKeys.ts b/src/models/defaultKeys.ts index 1de36184..16e5a866 100644 --- a/src/models/defaultKeys.ts +++ b/src/models/defaultKeys.ts @@ -1,11 +1,11 @@ -import { IKeys } from '.'; +import { IKey } from '.'; /** * This is the list of most common commands from the Android TV Remote integration page. * Not all are ensured to work, and if they do not it is likely an issue with the underlying package used by the Android TV Remote integration or the Android TV Remote Protocol V2 itself. * https://www.home-assistant.io/integrations/androidtv_remote/#remote */ -export const defaultKeys: IKeys = { +export const defaultKeys: Record = { power: { key: 'POWER', icon: 'mdi:power' }, volume_up: { key: 'VOLUME_UP', icon: 'mdi:volume-plus' }, volume_down: { key: 'VOLUME_DOWN', icon: 'mdi:volume-minus' }, diff --git a/src/models/defaultSources.ts b/src/models/defaultSources.ts index 7bb5ddbd..e439e760 100644 --- a/src/models/defaultSources.ts +++ b/src/models/defaultSources.ts @@ -1,11 +1,11 @@ -import { ISources, svg } from '.'; +import { ISource, svg } from '.'; /** * This is a list of common streaming apps, their icons, and the deep links to open them in Android TV, mostly collected from the following Home Assistant Community Forum guide. * Not all have been tested, if any do not work please let me know! * https://community.home-assistant.io/t/android-tv-remote-app-links-deep-linking-guide/567921 */ -export const defaultSources: ISources = { +export const defaultSources: Record = { appletv: { source: 'https://tv.apple.com', // UNTESTED svg_path: svg.APPLETV, diff --git a/src/models/interfaces/IConfig.ts b/src/models/interfaces/IConfig.ts index 21343cc3..bfddcfbb 100644 --- a/src/models/interfaces/IConfig.ts +++ b/src/models/interfaces/IConfig.ts @@ -1,4 +1,4 @@ -import { IKeys, ISources } from '.'; +import { IKey, ISource, ICustomAction } from '.'; export interface IConfig { theme?: string; @@ -9,13 +9,9 @@ export interface IConfig { keyboard_id?: string; keyboard_mode?: string; - keys?: IKeys; - custom_keys?: IKeys; + custom_keys?: Record; + custom_sources?: Record; - sources?: ISources; - custom_sources?: ISources; - - icons?: Record; custom_icons?: Record; alt_volume_icons?: boolean; @@ -29,5 +25,7 @@ export interface IConfig { double_click_keycode?: string; long_click_keycode?: string; - rows?: (string[] | string[][])[]; + rows?: Row[]; } + +export type Row = (string | Row[])[]; diff --git a/src/models/interfaces/ICustomAction.ts b/src/models/interfaces/ICustomAction.ts index 314dc506..9ec6037d 100644 --- a/src/models/interfaces/ICustomAction.ts +++ b/src/models/interfaces/ICustomAction.ts @@ -1,10 +1,19 @@ -import { IServiceData } from '.'; - export interface ICustomAction { service: string; - service_data?: IServiceData; + data?: IData; + target?: ITarget; key?: string; source?: string; icon?: string; svg_path?: string; } + +export interface IData { + [key: string]: string | string[] | number | boolean; +} + +export interface ITarget { + entity_id?: string | string[]; + device_id?: string | string[]; + area_id?: string | string[]; +} diff --git a/src/models/interfaces/IKey.ts b/src/models/interfaces/IKey.ts index c6ef4c56..c6623240 100644 --- a/src/models/interfaces/IKey.ts +++ b/src/models/interfaces/IKey.ts @@ -3,7 +3,3 @@ export interface IKey { icon?: string; svg_path?: string; } - -export interface IKeys { - [key: string]: IKey; -} diff --git a/src/models/interfaces/IServiceData.ts b/src/models/interfaces/IServiceData.ts deleted file mode 100644 index fc80aab6..00000000 --- a/src/models/interfaces/IServiceData.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface IServiceData { - entity_id: string; - [key: string]: string | number | boolean; -} diff --git a/src/models/interfaces/ISource.ts b/src/models/interfaces/ISource.ts index c0fa9364..d9d8c8d2 100644 --- a/src/models/interfaces/ISource.ts +++ b/src/models/interfaces/ISource.ts @@ -3,7 +3,3 @@ export interface ISource { icon?: string; svg_path?: string; } - -export interface ISources { - [key: string]: ISource; -} diff --git a/src/models/interfaces/index.ts b/src/models/interfaces/index.ts index 57d5c6cc..e2628614 100644 --- a/src/models/interfaces/index.ts +++ b/src/models/interfaces/index.ts @@ -1,5 +1,4 @@ export * from './IConfig'; export * from './ICustomAction'; export * from './IKey'; -export * from './IServiceData'; export * from './ISource'; From 34da2307da5b3772c3a473f357cc5241347fd12f Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 22:35:10 -0400 Subject: [PATCH 19/25] debug logging, explicitly set updated custom action --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 90113263..72b977b3 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i in e)if(i in t){const e=t[i];for(const t in e){const i=e[t];"service"in i&&(console.log("here!"),i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target))}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i in e)if(i in t){const e=t[i];for(const t in e){console.log(t);const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` ; for (const name in customActions) { + console.log(name) const customAction = customActions[name]; if ('service' in customAction) { - console.log('here!'); customAction.data = { ...customAction.data, ...( @@ -281,6 +281,7 @@ class AndroidTVCard extends LitElement { ).service_data, ...customAction.target, }; + customActions[name] = customAction } } } From d87eaf427c9891b84fb5417f603acb1e0f59b272 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 22:46:11 -0400 Subject: [PATCH 20/25] more debug logging because wtf --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 72b977b3..6c9f2231 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i in e)if(i in t){const e=t[i];for(const t in e){console.log(t);const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i in e)if(console.log(i),i in t){console.log("Found!");const e=t[i];for(const t in e){console.log(t);const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` Date: Mon, 9 Oct 2023 22:47:49 -0400 Subject: [PATCH 21/25] key of keys for array iteration --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 6c9f2231..c5b79d92 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i in e)if(console.log(i),i in t){console.log("Found!");const e=t[i];for(const t in e){console.log(t);const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i of e)if(console.log(i),i in t){console.log("Found!");const e=t[i];for(const t in e){console.log(t);const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` Date: Mon, 9 Oct 2023 22:52:04 -0400 Subject: [PATCH 22/25] remove debug logging --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index c5b79d92..2346def4 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i of e)if(console.log(i),i in t){console.log("Found!");const e=t[i];for(const t in e){console.log(t);const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i of e)if(i in t){const e=t[i];for(const t in e){const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` ; for (const name in customActions) { - console.log(name) const customAction = customActions[name]; if ('service' in customAction) { customAction.data = { From 7a9147338f1f16875299e3e33187b38a03f58af7 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 23:04:37 -0400 Subject: [PATCH 23/25] remove unnecesssary custom action assignment --- dist/android-tv-card.js | 2 +- src/android-tv-card.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/android-tv-card.js b/dist/android-tv-card.js index 2346def4..2ed76cb1 100644 --- a/dist/android-tv-card.js +++ b/dist/android-tv-card.js @@ -1,5 +1,5 @@ /*! For license information please see android-tv-card.js.LICENSE.txt */ -(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i of e)if(i in t){const e=t[i];for(const t in e){const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target),e[t]=i)}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` +(()=>{"use strict";var t={197:(t,e,i)=>{i.r(e),i.d(e,{DEFAULT_DOMAIN_ICON:()=>G,DEFAULT_PANEL:()=>J,DEFAULT_VIEW_ENTITY_ID:()=>at,DOMAINS_HIDE_MORE_INFO:()=>et,DOMAINS_MORE_INFO_NO_HISTORY:()=>it,DOMAINS_TOGGLE:()=>ot,DOMAINS_WITH_CARD:()=>Q,DOMAINS_WITH_MORE_INFO:()=>tt,NumberFormat:()=>n,STATES_OFF:()=>nt,TimeFormat:()=>o,UNIT_C:()=>rt,UNIT_F:()=>st,applyThemesOnElement:()=>U,computeCardSize:()=>Z,computeDomain:()=>j,computeEntity:()=>F,computeRTL:()=>B,computeRTLDirection:()=>H,computeStateDisplay:()=>X,computeStateDomain:()=>K,createThing:()=>dt,debounce:()=>ht,domainIcon:()=>pt,evaluateFilter:()=>Ct,fireEvent:()=>ct,fixedIcons:()=>mt,formatDate:()=>u,formatDateMonth:()=>y,formatDateMonthYear:()=>f,formatDateNumeric:()=>h,formatDateShort:()=>p,formatDateTime:()=>w,formatDateTimeNumeric:()=>S,formatDateTimeWithSeconds:()=>A,formatDateWeekday:()=>c,formatDateYear:()=>_,formatNumber:()=>W,formatTime:()=>E,formatTimeWeekday:()=>D,formatTimeWithSeconds:()=>O,forwardHaptic:()=>ft,getLovelace:()=>St,handleAction:()=>bt,handleActionConfig:()=>_t,handleClick:()=>Lt,hasAction:()=>wt,hasConfigOrEntityChanged:()=>kt,hasDoubleClick:()=>At,isNumericState:()=>V,navigate:()=>vt,numberFormatToLocale:()=>z,relativeTime:()=>P,round:()=>q,stateIcon:()=>Tt,timerTimeRemaining:()=>N,toggleEntity:()=>gt,turnOnOffEntities:()=>$t,turnOnOffEntity:()=>yt});var n,o,r,s=function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0)return{value:Math.round(h),unit:"year"};var m=12*h+u.getMonth()-d.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};var p=o/604800;return{value:Math.round(p),unit:"week"}}(t,i);return n?function(t){return new Intl.RelativeTimeFormat(t.language,{numeric:"auto"})}(e).format(o.value,o.unit):Intl.NumberFormat(e.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};function N(t){var e,i=3600*(e=t.attributes.remaining.split(":").map(Number))[0]+60*e[1]+e[2];if("active"===t.state){var n=(new Date).getTime(),o=new Date(t.last_changed).getTime();i=Math.max(i-(n-o)/1e3,0)}return i}function R(){return(R=Object.assign||function(t){for(var e=1;e-1?t.split(".")[1].length:0;i.minimumFractionDigits=n,i.maximumFractionDigits=n}return i},X=function(t,e,i,n){var o=void 0!==n?n:e.state;if("unknown"===o||"unavailable"===o)return t("state.default."+o);if(V(e)){if("monetary"===e.attributes.device_class)try{return W(o,i,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return W(o,i)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var r=K(e);if("input_datetime"===r){var s;if(void 0===n)return e.attributes.has_date&&e.attributes.has_time?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),w(s,i)):e.attributes.has_date?(s=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),u(s,i)):e.attributes.has_time?((s=new Date).setHours(e.attributes.hour,e.attributes.minute),E(s,i)):e.state;try{var a=n.split(" ");if(2===a.length)return w(new Date(a.join("T")),i);if(1===a.length){if(n.includes("-"))return u(new Date(n+"T00:00"),i);if(n.includes(":")){var c=new Date;return E(new Date(c.toISOString().split("T")[0]+"T"+n),i)}}return n}catch(t){return n}}return"humidifier"===r&&"on"===o&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?W(o,i):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+o)||t("component."+r+".state._."+o)||o},G="mdi:bookmark",J="lovelace",Q=["climate","cover","configurator","input_select","input_number","input_text","lock","media_player","scene","script","timer","vacuum","water_heater","weblink"],tt=["alarm_control_panel","automation","camera","climate","configurator","cover","fan","group","history_graph","input_datetime","light","lock","media_player","script","sun","updater","vacuum","water_heater","weather"],et=["input_number","input_select","input_text","scene","weblink"],it=["camera","configurator","history_graph","scene"],nt=["closed","locked","off"],ot=new Set(["fan","input_boolean","light","switch","group","automation"]),rt="°C",st="°F",at="group.default_view",ct=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},lt=new Set(["call-service","divider","section","weblink","cast","select"]),ut={alert:"toggle",automation:"toggle",climate:"climate",cover:"cover",fan:"toggle",group:"group",input_boolean:"toggle",input_number:"input-number",input_select:"input-select",input_text:"input-text",light:"toggle",lock:"lock",media_player:"media-player",remote:"toggle",scene:"scene",script:"script",sensor:"sensor",timer:"timer",switch:"toggle",vacuum:"toggle",water_heater:"climate",input_datetime:"input-datetime"},dt=function(t,e){void 0===e&&(e=!1);var i=function(t,e){return n("hui-error-card",{type:"error",error:t,config:e})},n=function(t,e){var n=window.document.createElement(t);try{if(!n.setConfig)return;n.setConfig(e)}catch(n){return console.error(t,n),i(n.message,e)}return n};if(!t||"object"!=typeof t||!e&&!t.type)return i("No type defined",t);var o=t.type;if(o&&o.startsWith("custom:"))o=o.substr(7);else if(e)if(lt.has(o))o="hui-"+o+"-row";else{if(!t.entity)return i("Invalid config given.",t);var r=t.entity.split(".",1)[0];o="hui-"+(ut[r]||"text")+"-entity-row"}else o="hui-"+o+"-card";if(customElements.get(o))return n(o,t);var s=i("Custom element doesn't exist: "+t.type+".",t);s.style.display="None";var a=setTimeout((function(){s.style.display=""}),2e3);return customElements.whenDefined(t.type).then((function(){clearTimeout(a),ct(s,"ll-rebuild",{},s)})),s},ht=function(t,e,i){var n;return void 0===i&&(i=!1),function(){var o=[].slice.call(arguments),r=this,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(r,o)}),e),s&&t.apply(r,o)}},mt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function pt(t,e){if(t in mt)return mt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Ct=function(t,e){var i=e.value||e,n=e.attribute?t.attributes[e.attribute]:t.state;switch(e.operator||"=="){case"==":return n===i;case"<=":return n<=i;case"<":return n=":return n>=i;case">":return n>i;case"!=":return n!==i;case"regex":return n.match(i);default:return!1}},ft=function(t){ct(window,"haptic",t)},vt=function(t,e,i){void 0===i&&(i=!1),i?history.replaceState(null,"",e):history.pushState(null,"",e),ct(window,"location-changed",{replace:i})},yt=function(t,e,i){void 0===i&&(i=!0);var n,o=j(e),r="group"===o?"homeassistant":o;switch(o){case"lock":n=i?"unlock":"lock";break;case"cover":n=i?"open_cover":"close_cover";break;default:n=i?"turn_on":"turn_off"}return t.callService(r,n,{entity_id:e})},gt=function(t,e){var i=nt.includes(t.states[e].state);return yt(t,e,i)},_t=function(t,e,i,n){if(n||(n={action:"more-info"}),!n.confirmation||n.confirmation.exemptions&&n.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||(ft("warning"),confirm(n.confirmation.text||"Are you sure you want to "+n.action+"?")))switch(n.action){case"more-info":(i.entity||i.camera_image)&&ct(t,"hass-more-info",{entityId:i.entity?i.entity:i.camera_image});break;case"navigate":n.navigation_path&&vt(0,n.navigation_path);break;case"url":n.url_path&&window.open(n.url_path);break;case"toggle":i.entity&&(gt(e,i.entity),ft("success"));break;case"call-service":if(!n.service)return void ft("failure");var o=n.service.split(".",2);e.callService(o[0],o[1],n.service_data,n.target),ft("success");break;case"fire-dom-event":ct(t,"ll-custom",n)}},bt=function(t,e,i,n){var o;"double_tap"===n&&i.double_tap_action?o=i.double_tap_action:"hold"===n&&i.hold_action?o=i.hold_action:"tap"===n&&i.tap_action&&(o=i.tap_action),_t(t,e,i,o)},Lt=function(t,e,i,n,o){var r;if(o&&i.double_tap_action?r=i.double_tap_action:n&&i.hold_action?r=i.hold_action:!n&&i.tap_action&&(r=i.tap_action),r||(r={action:"more-info"}),!r.confirmation||r.confirmation.exemptions&&r.confirmation.exemptions.some((function(t){return t.user===e.user.id}))||confirm(r.confirmation.text||"Are you sure you want to "+r.action+"?"))switch(r.action){case"more-info":(r.entity||i.entity||i.camera_image)&&(ct(t,"hass-more-info",{entityId:r.entity?r.entity:i.entity?i.entity:i.camera_image}),r.haptic&&ft(r.haptic));break;case"navigate":r.navigation_path&&(vt(0,r.navigation_path),r.haptic&&ft(r.haptic));break;case"url":r.url_path&&window.open(r.url_path),r.haptic&&ft(r.haptic);break;case"toggle":i.entity&&(gt(e,i.entity),r.haptic&&ft(r.haptic));break;case"call-service":if(!r.service)return;var s=r.service.split(".",2),a=s[0],c=s[1],l=R({},r.service_data);"entity"===l.entity_id&&(l.entity_id=i.entity),e.callService(a,c,l,r.target),r.haptic&&ft(r.haptic);break;case"fire-dom-event":ct(t,"ll-custom",r),r.haptic&&ft(r.haptic)}};function wt(t){return void 0!==t&&"none"!==t.action}function kt(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}function At(t){return void 0!==t&&"none"!==t.action}var $t=function(t,e,i){void 0===i&&(i=!0);var n={};e.forEach((function(e){if(nt.includes(t.states[e].state)===i){var o=j(e),r=["cover","lock"].includes(o)?o:"homeassistant";r in n||(n[r]=[]),n[r].push(e)}})),Object.keys(n).forEach((function(e){var o;switch(e){case"lock":o=i?"unlock":"lock";break;case"cover":o=i?"open_cover":"close_cover";break;default:o=i?"turn_on":"turn_off"}t.callService(e,o,{entity_id:n[e]})}))},St=function(){var t=document.querySelector("home-assistant");if(t=(t=(t=(t=(t=(t=(t=(t=t&&t.shadowRoot)&&t.querySelector("home-assistant-main"))&&t.shadowRoot)&&t.querySelector("app-drawer-layout partial-panel-resolver"))&&t.shadowRoot||t)&&t.querySelector("ha-panel-lovelace"))&&t.shadowRoot)&&t.querySelector("hui-root")){var e=t.lovelace;return e.current_view=t.___curView,e}return null},Mt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Et={binary_sensor:function(t,e){var i="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return i?"mdi:battery":"mdi:battery-outline";case"battery_charging":return i?"mdi:battery":"mdi:battery-charging";case"cold":return i?"mdi:thermometer":"mdi:snowflake";case"connectivity":return i?"mdi:server-network-off":"mdi:server-network";case"door":return i?"mdi:door-closed":"mdi:door-open";case"garage_door":return i?"mdi:garage":"mdi:garage-open";case"power":case"plug":return i?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return i?"mdi:check-circle":"mdi:alert-circle";case"smoke":return i?"mdi:check-circle":"mdi:smoke";case"heat":return i?"mdi:thermometer":"mdi:fire";case"light":return i?"mdi:brightness-5":"mdi:brightness-7";case"lock":return i?"mdi:lock":"mdi:lock-open";case"moisture":return i?"mdi:water-off":"mdi:water";case"motion":return i?"mdi:walk":"mdi:run";case"occupancy":case"presence":return i?"mdi:home-outline":"mdi:home";case"opening":return i?"mdi:square":"mdi:square-outline";case"running":return i?"mdi:stop":"mdi:play";case"sound":return i?"mdi:music-note-off":"mdi:music-note";case"update":return i?"mdi:package":"mdi:package-up";case"vibration":return i?"mdi:crop-portrait":"mdi:vibrate";case"window":return i?"mdi:window-closed":"mdi:window-open";default:return i?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return pt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Mt)return Mt[e];if("battery"===e){var i=Number(t.state);if(isNaN(i))return"mdi:battery-unknown";var n=10*Math.round(i/10);return n>=100?"mdi:battery":n<=0?"mdi:battery-alert":"hass:battery-"+n}var o=t.attributes.unit_of_measurement;return"°C"===o||"°F"===o?"mdi:thermometer":pt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?pt("input_datetime"):"mdi:calendar":"mdi:clock"}},Tt=function(t){if(!t)return"mdi:bookmark";if(t.attributes.icon)return t.attributes.icon;var e=j(t.entity_id);return e in Et?Et[e](t):pt(e,t.state)}},992:function(t,e,i){var n=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=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},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const r=i(147),s=i(62),a=i(595),c=i(197),l=i(554);console.info(`%c ANDROID-TV-CARD v${r.version}`,"color: white; font-weight: bold; background: green");class u extends s.LitElement{constructor(){super(),this.defaultKeys={},this.defaultSources={},this.customKeys={},this.customSources={},this.customIcons={},this.clickTimer=null,this.clickCount=0,this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.touchLongClick=!1,this.holdAction="",this.holdTimer=null,this.holdInterval=null,this.holdLongClick=!1}static get properties(){return{hass:{},config:{}}}static getStubConfig(){return{type:"custom:android-tv-card",rows:[]}}getCardSize(){let t=this.config.rows.length;return"title"in this.config&&(t+=1),t}setConfig(t){var e;return o(this,void 0,void 0,(function*(){if(!t)throw new Error("Invalid configuration");t=JSON.parse(JSON.stringify(t)),(t=Object.assign({theme:"default"},t)).alt_volume_icons?this.defaultKeys=this.useAltVolumeIcons(l.defaultKeys):this.defaultKeys=l.defaultKeys,this.defaultSources=l.defaultSources,t=this.updateDeprecatedKeys(t),t=this.convertToRowsArray(t),t=this.combineServiceFields(t),this.customKeys=t.custom_keys||{},this.customSources=t.custom_sources||{},this.customIcons=t.custom_icons||{},yield window.loadCardHelpers(),(null===(e=t.rows)||void 0===e?void 0:e.toString().includes("volume_slider"))&&"media_player_id"in t&&(yield this.renderVolumeSlider(t)),this.config=t}))}isButtonEnabled(t,e){return t.includes("_row")&&this.config[t].includes(e)}set hass(t){this.volume_slider&&(this.volume_slider.hass=t),this._hass=t}get hass(){return this._hass}fireHapticEvent(t){(void 0===this.config.enable_button_feedback||this.config.enable_button_feedback)&&(0,c.forwardHaptic)(t)}renderVolumeSlider(t){return o(this,void 0,void 0,(function*(){let e={type:"custom:my-slider",entity:t.media_player_id,height:"50px",mainSliderColor:"white",secondarySliderColor:"rgb(60, 60, 60)",mainSliderColorOff:"rgb(60, 60, 60)",secondarySliderColorOff:"rgb(60, 60, 60)",thumbWidth:"0px",thumbHorizontalPadding:"0px",radius:"25px"};t.slider_config instanceof Object&&(e=Object.assign(Object.assign({},e),t.slider_config));for(let t=0;t<10;t++)try{this.volume_slider=(0,c.createThing)(e,!0),this.volume_slider.setAttribute("style","flex: 0.9;")}catch(t){yield new Promise((t=>setTimeout(t,100)))}this.volume_slider.addEventListener("ontouchstart",(e=>{e.stopImmediatePropagation(),(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("selection")}),{passive:!0}),this.volume_slider.addEventListener("input",(e=>{(null==t.enable_slider_feedback||t.enable_slider_feedback)&&(0,c.forwardHaptic)("light")}),!0),this.volume_slider.hass=this.hass}))}useAltVolumeIcons(t){return(t=JSON.parse(JSON.stringify(t))).volume_up.icon="mdi:volume-high",t.volume_down.icon="mdi:volume-medium",t.volume_mute.icon="mdi:volume-variant-off",t}updateDeprecatedKeys(t){return"adb_id"in t&&!("keyboard_id"in t)&&(t.keyboard_id=t.adb_id),t}convertToRowsArray(t){if(!("rows"in t)||!(t.rows||[]).length){const e=[],i=Object.keys(t).filter((t=>t.includes("_row")));for(const n of i){let i=t[n];"string"==typeof i&&(i=[i]),"volume_row"==n?i=["volume_"+i[0]]:"navigation_row"==n&&(i=["navigation_"+i[0]]),e.push(i)}t.rows=e}return t}combineServiceFields(t){const e=["custom_keys","custom_sources"];for(const i of e)if(i in t){const e=t[i];for(const t in e){const i=e[t];"service"in i&&(i.data=Object.assign(Object.assign(Object.assign({},i.data),i.service_data),i.target))}}return t}sendKey(t,e=!1){const i={entity_id:this.config.remote_id,command:t};e&&(i.hold_secs=.5),this.hass.callService("remote","send_command",i)}getInfo(t){return this.customKeys[t]||this.customSources[t]||this.defaultKeys[t]||this.defaultSources[t]||{}}sendAction(t,e=!1){const i=this.getInfo(t);if("key"in i){const t=i.key;this.sendKey(t,e)}else if("source"in i)this.changeSource(i.source);else if("service"in i){const t=JSON.parse(JSON.stringify(i.data||{}));e&&"remote.send_command"==i.service&&(t.hold_secs=.5);const[n,o]=i.service.split(".",2);this.hass.callService(n,o,t)}}changeSource(t){this.hass.callService("remote","turn_on",{activity:t,entity_id:this.config.remote_id})}onTouchClick(t){t.stopImmediatePropagation();const e=()=>{clearTimeout(this.clickTimer),this.clickTimer=null,this.onButtonClick(t,"center",!1),this.clickCount=0};t.detail&&t.detail>this.clickCount&&this.clickCount++,this.config.enable_double_click?2==this.clickCount?this.onTouchDoubleClick(t):this.clickTimer=setTimeout(e,200):e()}onTouchDoubleClick(t){var e;clearTimeout(this.clickTimer),this.clickTimer=null,this.clickCount=0;const i=null!==(e=this.config.double_click_keycode)&&void 0!==e?e:"back";this.onButtonClick(t,i,!1)}onTouchStart(t){this.touchTimer=setTimeout((()=>{var e;this.touchLongClick=!0,["up","down","left","right"].includes(this.touchAction)?this.touchInterval=setInterval((()=>{this.onButtonClick(t,this.touchAction,!1)}),100):this.onButtonClick(t,null!==(e=this.config.long_click_keycode)&&void 0!==e?e:"center",!0)}),500),window.initialX=t.touches[0].clientX,window.initialY=t.touches[0].clientY}onTouchEnd(t){this.touchLongClick&&(this.touchLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.touchTimer),clearInterval(this.touchInterval),clearTimeout(this.clickTimer),this.touchAction="",this.touchTimer=null,this.touchInterval=null,this.clickTimer=null}onTouchMove(t){if(!window.initialX||!window.initialY)return;const e=t.touches[0].clientX||0,i=t.touches[0].clientY||0,n=window.initialX-e,o=window.initialY-i;let r;r=Math.abs(n)>Math.abs(o)?n>0?"left":"right":o>0?"up":"down",this.touchAction=r,this.onButtonClick(t,r,!1),window.initialX=void 0,window.initialY=void 0}onButtonClick(t,e,i=!1){var n;e=e||(null===(n=t.currentTarget)||void 0===n?void 0:n.action)||"";const o=this.getInfo(e);let r=i?"medium":"light";switch(["up","down","left","right"].includes(e)?r="selection":(e==this.config.double_click_keycode||!this.config.double_click_keycode&&"back"==e)&&(r="success"),this.fireHapticEvent(r),"key"in o?o.key:""){case"KEYBOARD":this.onKeyboardPress(t,i);break;case"TEXTBOX":this.onTextboxPress(t,i);break;case"SEARCH":this.onSearchPress(t,i);break;default:this.sendAction(e,i)}}onButtonLongClickStart(t){this.holdAction=t.currentTarget.action,this.holdTimer=setTimeout((()=>{this.holdLongClick=!0,["up","down","left","right","volume_up","volume_down","delete"].includes(this.holdAction)?this.holdInterval=setInterval((()=>{this.onButtonClick(t,this.holdAction,!1)}),100):this.onButtonClick(t,this.holdAction,!0)}),500)}onButtonLongClickEnd(t){this.holdLongClick&&(this.holdLongClick=!1,t.stopImmediatePropagation(),t.preventDefault()),clearTimeout(this.holdTimer),clearInterval(this.holdInterval),this.holdAction="",this.holdTimer=null,this.holdInterval=null}onKeyDown(t){var e,i;t.stopImmediatePropagation();const n={Backspace:"delete",Delete:"forward_delete",Enter:"enter",ArrowLeft:"left",ArrowRight:"right"}[null!==(e=t.key)&&void 0!==e?e:""];n&&(""!=t.currentTarget.value&&(t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()||this.sendAction(n))}onTextboxPress(t,e){var i;t.stopImmediatePropagation();const n=prompt("Text Input: ");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}}onSearchPress(t,e){var i,n;let o;t.stopImmediatePropagation(),"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(o="Global Search: ",this.hass.callService("kodi","call_method",{entity_id:this.config.keyboard_id,method:"Addons.ExecuteAddon",addonid:"script.globalsearch"})):o="Google Assistant Search: ";const r=prompt(o);if(r){let t;"KODI"===(null!==(n=this.config.keyboard_mode)&&void 0!==n?n:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:r,done:!0},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'am start -a "android.search.action.GLOBAL_SEARCH" --es query "'+r+'"'},this.hass.callService("androidtv","adb_command",t))}}onInput(t){var e;t.stopImmediatePropagation();const i=t.data;if(i){let t;"KODI"===(null!==(e=this.config.keyboard_mode)&&void 0!==e?e:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:i,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+i+'"'},this.hass.callService("androidtv","adb_command",t))}}onPaste(t){var e,i;t.stopImmediatePropagation(),t.preventDefault();const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("Text");if(n){let t;"KODI"===(null!==(i=this.config.keyboard_mode)&&void 0!==i?i:"").toUpperCase()?(t={entity_id:this.config.keyboard_id,method:"Input.SendText",text:n,done:!1},this.hass.callService("kodi","call_method",t)):(t={entity_id:this.config.keyboard_id,command:'input text "'+n+'"'},this.hass.callService("androidtv","adb_command",t))}t.currentTarget.blur(),t.currentTarget.value="",t.currentTarget.focus()}onFocus(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="var(--state-active-color)",t.currentTarget.style.zIndex="9",t.currentTarget.parentElement.style.zIndex="1"}onFocusOut(t){t.currentTarget.value="",t.currentTarget.parentElement.children[0].style.color="",t.currentTarget.style.zIndex="",t.currentTarget.parentElement.style.zIndex=""}onKeyboardPress(t,e){t.currentTarget.children[1].focus()}buildIconButton(t){var e,i,n,o,r;const a=this.getInfo(t);let c=null!==(e=null==a?void 0:a.icon)&&void 0!==e?e:"",l=null!==(n=null!==(i=a.svg_path)&&void 0!==i?i:this.customIcons[c])&&void 0!==n?n:"";if(!Object.keys(a).length)return s.html`
`;if(!c&&!l){const e=this.defaultKeys[t]||this.defaultSources[t]||{};c=null!==(o=null==e?void 0:e.icon)&&void 0!==o?o:"",l=null!==(r=null==e?void 0:e.svg_path)&&void 0!==r?r:""}let u=s.html``;return"key"in a&&"KEYBOARD"==a.key&&(u=s.html` Date: Mon, 9 Oct 2023 23:30:17 -0400 Subject: [PATCH 24/25] update README and HACS info docs --- README.md | 109 +++++++++++++++++++++++++++++++++++------------------- info.md | 7 ++-- 2 files changed, 74 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 2f392dfa..077560ca 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ custom_keys: toggle_light: icon: mdi:lightbulb service: light.toggle - service_data: + target: entity_id: light.bedroom ``` @@ -193,7 +193,7 @@ custom_keys: toggle_light: icon: mdi:lightbulb service: light.toggle - service_data: + target: entity_id: light.bedroom custom_sources: browser: @@ -223,22 +223,25 @@ custom_keys: power: icon: mdi:power-cycle service: media_player.toggle - service_data: + target: entity_id: media_player.tv ``` Inside each button you may define `icon` and either `key`, `source` or `service`, as you've seen. -| Option | internal function | Description | -| ------------ | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| icon | | The icon to show in the button. If empty the original key or source icon will be used if it exists, otherwise it will be empty. | -| key | `remote.send_command(command=key)` | The key to send to the TV via `remote.send_command`. | -| source | `remote.turn_on(activity=source)` | The source to switch to via `remote.turn_on`. | -| service | `_hass.callService(domain, service, service_data)` | A string representing service to call. Use the format `domain.service`, e.g. `"light.turn_on"`. | -| service_data | passed with `service` | The data to pass to the service. May be an object depending on the service you are using. | +| Option | internal function | Description | +| ------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| icon | | The icon to show in the button. If empty the original key or source icon will be used if it exists, otherwise it will be empty. | +| key | `remote.send_command(command=key)` | The key to send to the TV via `remote.send_command`. | +| source | `remote.turn_on(activity=source)` | The source to switch to via `remote.turn_on`. | +| service | `hass.callService(domain, service, data)` | A string representing service to call. Use the format `domain.service`, e.g. `"light.turn_on"`. | +| data | Data to be passed with `service` | Additional data to pass to the service call. See the Home Assistant documentation or go to Developer Tools > Services to see available options for each service. | +| target | Target of the `service` | The entity IDs, device IDs, or area IDs to call the service on. | If an icon is not provided for a custom key or source that overwrites a predefined key or source, the original icon will be used instead. +`target`, `data`, and `service_data` (soft deprecated name for `data`) all get internally merged into one object since `hass.callService` only has a single data field for target and data. You can safely put all information into one object with any of these names. This was done so that you can easily design service calls using Home Assistant's service developer tool and copy the YAML to custom button configurations in this card. + ### Custom Touchpad Commands The touchpad can be customized using `custom_keys` so that it can be used with other devices @@ -249,28 +252,33 @@ Touchpad swipe and single click commands can be remapped by creating custom keys custom_keys: up: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Up down: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Down left: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Left right: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Right center: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Select ``` @@ -282,8 +290,9 @@ double_click_keycode: back custom_keys: back: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Back ``` @@ -294,8 +303,9 @@ long_click_keycode: menu custom_keys: menu: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.ContextMenu ``` @@ -636,14 +646,16 @@ custom_keys: custom_sources: primevideo: service: media_player.select_source - service_data: + data: source: Prime Video + target: entity_id: media_player.appletv netflix: service: media_player.select_source - service_data: + data: source: Netflix - target: media_player.appletv + target: + entity_id: media_player.appletv card_mod: style: | toucharea { @@ -685,74 +697,87 @@ long_click_keycode: menu custom_keys: up: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Up down: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Down left: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Left right: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Right center: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Select back: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Back search: icon: mdi:kodi key: SEARCH volume_mute: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Application.SetMute mute: toggle volume_up: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Application.SetVolume volume: increment volume_down: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Application.SetVolume volume: decrement menu: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.ContextMenu home: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Home info: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Input.Info play_pause: service: kodi.call_method - service_data: + target: entity_id: media_player.kodi + data: method: Player.PlayPause playerid: 1 card_mod: @@ -817,33 +842,39 @@ double_click_keycode: back custom_keys: down: service: denonavr.get_command - service_data: + target: entity_id: media_player.marantz_sr7013 + data: command: /goform/formiPhoneAppDirect.xml?MNCDN up: service: denonavr.get_command - service_data: + target: entity_id: media_player.marantz_sr7013 + data: command: /goform/formiPhoneAppDirect.xml?MNCUP left: service: denonavr.get_command - service_data: + target: entity_id: media_player.marantz_sr7013 + data: command: /goform/formiPhoneAppDirect.xml?MNCLT right: service: denonavr.get_command - service_data: + target: entity_id: media_player.marantz_sr7013 + data: command: /goform/formiPhoneAppDirect.xml?MNCRT center: service: denonavr.get_command - service_data: + target: entity_id: media_player.marantz_sr7013 + data: command: /goform/formiPhoneAppDirect.xml?MNENT back: service: denonavr.get_command - service_data: + target: entity_id: media_player.marantz_sr7013 + data: command: /goform/formiPhoneAppDirect.xml?MNRTN ``` diff --git a/info.md b/info.md index e32e27cb..05d7f01a 100644 --- a/info.md +++ b/info.md @@ -1,10 +1,10 @@ # Android TV Remote Card -Yet another tv-card for Home Assistant, specifically for the [Android TV Remote](https://www.home-assistant.io/integrations/androidtv_remote/) integration, that also allows for a greater level of customization and keyboard entry for multiple platforms. +A remote card for Home Assistant that also allows for a greater level of customization and keyboard entry for multiple platforms. Works with the [Android TV Remote](https://www.home-assistant.io/integrations/androidtv_remote/) integration by default but can be customized for use with any media platform. -- Fully configurable and remappable touchpad that can now be used for more any media platform. +- Fully configurable and remappable touchpad that can now be used for any media platform. - Holding directional and volume keys causes them to repeat until let go, with navigation behavior tweaked to behave more like the Google TV remote. -- Changes row configuration to nested arrays. Every level nested past the second array alternates between columns and rows, allowing for much more customization. +- Organize buttons into alternating nested rows and columns to create highly customizable layouts. - Many more default [keys](https://github.com/Nerwyn/android-tv-card/blob/main/src/models/defaultKeys.ts) and [sources](https://github.com/Nerwyn/android-tv-card/blob/main/src/models/defaultSources.ts) with [SVG icons](https://github.com/Nerwyn/android-tv-card/blob/main/src/models/enums/svg.ts) to match the sources. - _Not all working or tested at this time, let me know if you find the correct source/activity for the broken ones!_ - Keyboard text entry via the [Android Debug Bridge integration](https://www.home-assistant.io/integrations/androidtv/) @@ -13,6 +13,7 @@ Yet another tv-card for Home Assistant, specifically for the [Android TV Remote - `textbox`: bulk text entry. - `search`: Google Assistant search. - Also supports Kodi +- Example alternate media platform remote configs for Kodi, Apple TV, Sony Bravia TV, and Denon/Marantz in the README examples. **Sample overview:** From 8486fa842fd6176b1b89656fde01acaf88b13835 Mon Sep 17 00:00:00 2001 From: Nerwyn Singh Date: Mon, 9 Oct 2023 23:40:37 -0400 Subject: [PATCH 25/25] README formatting --- README.md | 56 +++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 077560ca..b48b5c00 100644 --- a/README.md +++ b/README.md @@ -254,31 +254,31 @@ custom_keys: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Up down: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Down left: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Left right: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Right center: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Select ``` @@ -292,7 +292,7 @@ custom_keys: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Back ``` @@ -305,7 +305,7 @@ custom_keys: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.ContextMenu ``` @@ -648,13 +648,13 @@ custom_sources: service: media_player.select_source data: source: Prime Video - target: + target: entity_id: media_player.appletv netflix: service: media_player.select_source data: source: Netflix - target: + target: entity_id: media_player.appletv card_mod: style: | @@ -699,37 +699,37 @@ custom_keys: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Up down: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Down left: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Left right: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Right center: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Select back: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Back search: icon: mdi:kodi @@ -738,46 +738,46 @@ custom_keys: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Application.SetMute mute: toggle volume_up: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Application.SetVolume volume: increment volume_down: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Application.SetVolume volume: decrement menu: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.ContextMenu home: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Home info: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Input.Info play_pause: service: kodi.call_method target: entity_id: media_player.kodi - data: + data: method: Player.PlayPause playerid: 1 card_mod: @@ -844,37 +844,37 @@ custom_keys: service: denonavr.get_command target: entity_id: media_player.marantz_sr7013 - data: + data: command: /goform/formiPhoneAppDirect.xml?MNCDN up: service: denonavr.get_command target: entity_id: media_player.marantz_sr7013 - data: + data: command: /goform/formiPhoneAppDirect.xml?MNCUP left: service: denonavr.get_command target: entity_id: media_player.marantz_sr7013 - data: + data: command: /goform/formiPhoneAppDirect.xml?MNCLT right: service: denonavr.get_command target: entity_id: media_player.marantz_sr7013 - data: + data: command: /goform/formiPhoneAppDirect.xml?MNCRT center: service: denonavr.get_command target: entity_id: media_player.marantz_sr7013 - data: + data: command: /goform/formiPhoneAppDirect.xml?MNENT back: service: denonavr.get_command target: entity_id: media_player.marantz_sr7013 - data: + data: command: /goform/formiPhoneAppDirect.xml?MNRTN ```