Initial Commit

This commit is contained in:
francop committed 2026-06-11 11:50:50 -04:00
commit d4a69c41be
2748 files changed
+80489

No files matched your search

@@ -0,0 +1,7 @@
/*! For license information please see entrypoint.c180d0b256f9b6d0.js.LICENSE.txt */
(()=>{var t,e,r,n,o,i,a,s,c={91635:function(t,e,r){"use strict";r.d(e,{CO:function(){return a},Rw:function(){return v},p3:function(){return b},uO:function(){return m},wK:function(){return i}});r(71695),r(23669),r(11740),r(88044),r(47021);var n=r(68732);const o=t=>{const e=Math.round(Math.min(Math.max(t,0),255)).toString(16);return 1===e.length?`0${e}`:e},i=t=>(t=(0,n.R)(t),[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]),a=t=>`#${o(t[0])}${o(t[1])}${o(t[2])}`,s=.95047,c=1.08883,u=.137931034,l=.12841855,d=t=>(t/=255)<=.04045?t/12.92:((t+.055)/1.055)**2.4,f=t=>t>.008856452?t**(1/3):t/l+u,h=t=>255*(t<=.00304?12.92*t:1.055*t**(1/2.4)-.055),p=t=>t>.206896552?t*t*t:l*(t-u),v=t=>{const[e,r,n]=(t=>{let[e,r,n]=t;return e=d(e),r=d(r),n=d(n),[f((.4124564*e+.3575761*r+.1804375*n)/s),f((.2126729*e+.7151522*r+.072175*n)/1),f((.0193339*e+.119192*r+.9503041*n)/c)]})(t),o=116*r-16;return[o<0?0:o,500*(e-r),200*(r-n)]},b=t=>{const[e,r,n]=t;let o=(e+16)/116,i=isNaN(r)?o:o+r/500,a=isNaN(n)?o:o-n/200;o=1*p(o),i=s*p(i),a=c*p(a);return[Math.round(h(3.2404542*i-1.5371385*o-.4985314*a)),Math.round(h(-.969266*i+1.8760108*o+.041556*a)),Math.round(h(.0556434*i-.2040259*o+1.0572252*a))]},m=t=>{const e=b(t);return a(e)}},68732:function(t,e,r){"use strict";r.d(e,{R:function(){return n},o:function(){return o}});r(71695),r(23669),r(19134),r(11740),r(97003),r(47021);const n=t=>{if(6===(t=t.replace("#","")).length)return t;let e="";for(const r of t)e+=r+r;return e},o=(t,e,r=50)=>{let o="";t=n(t),e=n(e);for(let n=0;n<=5;n+=2){const i=parseInt(t.substring(n,n+2),16),a=parseInt(e.substring(n,n+2),16);let s=Math.floor(a+r/100*(i-a)).toString(16);for(;s.length<2;)s="0"+s;o+=s}return`#${o}`}},11297:function(t,e,r){"use strict";r.d(e,{B:function(){return n}});const n=(t,e,r,n)=>{n=n||{},r=null==r?{}:r;const 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=r,t.dispatchEvent(o),o}},13089:function(t,e,r){"use strict";r.d(e,{E:function(){return o}});var n=r(27550);const o=(()=>{try{return window.name===n.y?window:parent.name===n.y?parent:top}catch(t){return window}})()},3812:function(t,e,r){"use strict";r.d(e,{J:function(){return n}});r(39527),r(67670);const n=(t,e=!0)=>{if(t.defaultPrevented||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)return;const r=t.composedPath().find((t=>"A"===t.tagName));if(!r||r.target||r.hasAttribute("download")||"external"===r.getAttribute("rel"))return;let n=r.href;if(!n||-1!==n.indexOf("mailto:"))return;const o=window.location,i=o.origin||o.protocol+"//"+o.host;return 0===n.indexOf(i)&&(n=n.substr(i.length),"#"!==n)?(e&&t.preventDefault(),n):void 0}},85233:function(t,e,r){"use strict";r.d(e,{K:function(){return n}});const n=(t,e)=>{const r=matchMedia(t),n=t=>e(t.matches);return r.addListener(n),e(r.matches),()=>r.removeListener(n)}},64364:function(t,e,r){"use strict";r.d(e,{c:function(){return a}});r(40251),r(19134),r(97003);var n=r(24067),o=r(11297),i=r(13089);const a=async(t,e,r=Date.now())=>{var s;const{history:c}=i.E;if(null!==(s=c.state)&&void 0!==s&&s.dialog&&Date.now()-r<500){return await(0,n.ts)()?new Promise((n=>{setTimeout((()=>{a(t,e,r).then(n)}))})):(console.warn("Navigation blocked, because dialog refused to close"),!1)}const u=(null==e?void 0:e.replace)||!1;var l,d,f;return u?c.replaceState(null!==(l=c.state)&&void 0!==l&&l.root?{root:!0}:null!==(d=null==e?void 0:e.data)&&void 0!==d?d:null,"",t):c.pushState(null!==(f=null==e?void 0:e.data)&&void 0!==f?f:null,"",t),(0,o.B)(i.E,"location-changed",{replace:u}),!0}},30137:function(t,e,r){"use strict";r.d(e,{y:function(){return n}});r(40251);const n=()=>new Promise((t=>{var e;e=t,requestAnimationFrame((()=>setTimeout(e,0)))}))},27550:function(t,e,r){"use strict";r.d(e,{y:function(){return n}});const n="ha-main-window"},50177:function(t,e,r){"use strict";r.d(e,{zt:()=>o,c_:()=>i,t6:()=>a,FS:()=>s,y4:()=>n});r("40251"),r("19423");let n=function(t){return t.language="language",t.system="system",t.comma_decimal="comma_decimal",t.decimal_comma="decimal_comma",t.space_comma="space_comma",t.none="none",t}({}),o=function(t){return t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24",t}({}),i=function(t){return t.local="local",t.server="server",t}({}),a=function(t){return t.language="language",t.system="system",t.DMY="DMY",t.MDY="MDY",t.YMD="YMD",t}({}),s=function(t){return t.language="language",t.monday="monday",t.tuesday="tuesday",t.wednesday="wednesday",t.thursday="thursday",t.friday="friday",t.saturday="saturday",t.sunday="sunday",t}({})},24067:function(t,e,r){"use strict";r.d(e,{ts:()=>f,gA:()=>u,lD:()=>p});r("71695"),r("92745"),r("19423"),r("40251"),r("47021");var n=r("13089");r("92519"),r("42179"),r("89256"),r("24931"),r("88463"),r("57449"),r("19814");const o=(t,e,r=true)=>{var n;if(!t||t===document.body)return null;if((t=null!==(n=t.assignedSlot)&&void 0!==n?n:t).parentElement)t=t.parentElement;else{const eLine truncated
100vw - env(safe-area-inset-right) - env(safe-area-inset-left)
);--mdc-dialog-max-width:calc(
100vw - env(safe-area-inset-right) - env(safe-area-inset-left)
);--mdc-dialog-min-height:100%;--mdc-dialog-max-height:100%;--vertical-align-dialog:flex-end;--ha-dialog-border-radius:0}}ha-button.warning,mwc-button.warning{--mdc-theme-primary:var(--error-color)}.error{color:var(--error-color)}`)),h=(0,n.iv)(s||(s=u`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{-webkit-border-radius:4px;border-radius:4px;background:var(--scrollbar-thumb-color)}.ha-scrollbar{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`));(0,n.iv)(c||(c=u`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`))},55534:function(t,e,r){"use strict";r.d(e,{o:()=>n});const n=JSON.parse('{"translations":{"bg_BG":{"hash":"09527297de325025baed93310aaffb45"},"cs":{"nativeName":"Čeština","hash":"e853beabffef9f4ecb88a25a53247836"},"da":{"nativeName":"Dansk","hash":"e44866b8767f28a1a84d4c7fe3b72186"},"de":{"nativeName":"Deutsch","hash":"34d71321078b03bc1513199456f71e4a"},"el":{"nativeName":"Ελληνικά","hash":"21abbe0495b9c1b675d79863528bd523"},"en":{"nativeName":"English","hash":"5cffb9426fe368fb8113b6c52cfbfd4a"},"es":{"nativeName":"Español","hash":"e47763084dec5920a121a6424227796b"},"et":{"nativeName":"Eesti","hash":"a6d1019a25788c712f62fa15337e62cd"},"fi":{"nativeName":"Suomi","hash":"508d4031221091dea2681c41232a5b20"},"fr":{"nativeName":"Français","hash":"e6506ae9e36089c807ae0570664026fb"},"he":{"nativeName":"עברית","isRTL":true,"hash":"644ea3a879599682f50ce271ae32f29e"},"hu":{"nativeName":"Magyar","hash":"6d81d4d17f38dcf25a921b80a570cffa"},"id":{"nativeName":"Indonesia","hash":"dcf8f6cc6d80e84c0b9988535f88e8cb"},"it":{"nativeName":"Italiano","hash":"050764518d7b6ad923b910678a5efca0"},"nb":{"nativeName":"Norsk Bokmål","hash":"589d3252fdbdd218ee9766a0157fa111"},"nl":{"nativeName":"Nederlands","hash":"0e614e8263122feab2e0089d3a978ded"},"nn":{"nativeName":"Norsk Nynorsk","hash":"8115c86bccf15a0153a187aec08d52b0"},"pl":{"nativeName":"Polski","hash":"62b6a3c2d70cd8bc58d36690418c5415"},"pt":{"nativeName":"Português","hash":"c479b23f3786ad79d8cb68bcc3fef00e"},"pt_BR":{"hash":"686378a3a60674d78a3b474a7d2ac2aa"},"ro":{"nativeName":"Română","hash":"a59032e800e47341ee94512c3f418946"},"ru":{"nativeName":"Русский","hash":"9f216e358a3461af770c811cd62cc5af"},"sk":{"nativeName":"Slovenčina","hash":"0dc0804113af5870932653b26df200c1"},"sl":{"nativeName":"Slovenščina","hash":"02fdae1dba87cbe6afbd85465419510b"},"sv":{"nativeName":"Svenska","hash":"c3c8559e70c1ded2c27f5d2ebcddd814"},"translationMetadata":{"hash":"8bdc29e3354d9ecd9dc9bf8a1d1ac6bc"},"vi":{"nativeName":"Tiếng Việt","hash":"2442dc957d6c5d0dce37d4948afb69d5"},"zh_Hans":{"hash":"9f934b8659cd8e2874b6bacb205124e8"}}}')},85128:function(t,e,r){"use strict";r.d(e,{i0:function(){return l},sS:function(){return u}});r(52247),r(19083),r(71695),r(40251),r(61006),r(39527),r(67670),r(88972),r(47021),r(50177);var n=r(55534);const o="/hacsfiles/frontend/static/translations",i=window.localStorage||{},a={};const s={"zh-cn":"zh-Hans","zh-sg":"zh-Hans","zh-my":"zh-Hans","zh-tw":"zh-Hant","zh-hk":"zh-Hant","zh-mo":"zh-Hant",zh:"zh-Hant"};function c(t){if(t in n.o.translations)return t;const e=t.toLowerCase();if(e in s)return s[e];const r=Object.keys(n.o.translations).find((t=>t.toLowerCase()===e));return r||(t.includes("-")?c(t.split("-")[0]):void 0)}function u(){let t=null;if(i.selectedLanguage)try{const e=JSON.parse(i.selectedLanguage);if(e&&(t=c(e),t))return t}catch(e){}if(navigator.languages)for(const r of navigator.languages)if(t=c(r),t)return t;return t=c(navigator.language),t||"en"}async function l(t,e,r=!0){const i=n.o.translations[e];if(null==i||!i.hash){if(r&&"en"!==e)return l(t,"en");throw new Error(`Language '${e}' is not found in metadata`)}const s=`${t?t+"/":""}${e}-${i.hash}.json`;return a[s]||(a[s]=async function(t){const e=await fetch(`${o}/${t}`,{credentials:"same-origin"});if(!e.ok)throw new Error(`Fail to fetch translation ${t}: HTTP response status is ${e.status}`);return e.json()}(s).then((t=>({language:e,data:t}))).catch((r=>(delete a[s],"en"!==e?l(t,"en"):Promise.reject(r))))),a[s]}},27486:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function o(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(o=t[r],i=e[r],!(o===i||n(o)&&n(i)))return!1;var o,i;return!0}function i(t,e){void 0===e&&(e=o);var r=null;function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&e(n,r.lastArgs))return r.lastResult;var i=t.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}},63324:function(t,e,r){"use strict";r.d(e,{p:function(){return n}});let n=function(t){return t.CONFIG="hacs_dispatch_config",t.ERROR="hacs_dispatch_error",t.RELOAD="hacs_dispatch_reload",t.REPOSITORY="hacs_dispatch_repository",t.STA Line truncated
//# sourceMappingURL=entrypoint.c180d0b256f9b6d0.js.map