Initial Commit
This commit is contained in:
commit
d4a69c41be
2748 files changed
+80489
No files matched your search
@@ -0,0 +1,7 @@
|
||||
/*! For license information please see entrypoint.bb9d28f38e9fba76.js.LICENSE.txt */
|
||||
var e,t,r,o,n,i,a={91635:function(e,t,r){r.d(t,{CO:function(){return a},Rw:function(){return v},p3:function(){return b},uO:function(){return m},wK:function(){return i}});var o=r(68732);const n=e=>{const t=Math.round(Math.min(Math.max(e,0),255)).toString(16);return 1===t.length?`0${t}`:t},i=e=>(e=(0,o.R)(e),[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)]),a=e=>`#${n(e[0])}${n(e[1])}${n(e[2])}`,c=.95047,s=1.08883,l=.137931034,d=.12841855,u=e=>(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4,f=e=>e>.008856452?e**(1/3):e/d+l,h=e=>255*(e<=.00304?12.92*e:1.055*e**(1/2.4)-.055),p=e=>e>.206896552?e*e*e:d*(e-l),v=e=>{const[t,r,o]=(e=>{let[t,r,o]=e;return t=u(t),r=u(r),o=u(o),[f((.4124564*t+.3575761*r+.1804375*o)/c),f((.2126729*t+.7151522*r+.072175*o)/1),f((.0193339*t+.119192*r+.9503041*o)/s)]})(e),n=116*r-16;return[n<0?0:n,500*(t-r),200*(r-o)]},b=e=>{const[t,r,o]=e;let n=(t+16)/116,i=isNaN(r)?n:n+r/500,a=isNaN(o)?n:n-o/200;n=1*p(n),i=c*p(i),a=s*p(a);return[Math.round(h(3.2404542*i-1.5371385*n-.4985314*a)),Math.round(h(-.969266*i+1.8760108*n+.041556*a)),Math.round(h(.0556434*i-.2040259*n+1.0572252*a))]},m=e=>{const t=b(e);return a(t)}},68732:function(e,t,r){r.d(t,{R:function(){return o},o:function(){return n}});const o=e=>{if(6===(e=e.replace("#","")).length)return e;let t="";for(const r of e)t+=r+r;return t},n=(e,t,r=50)=>{let n="";e=o(e),t=o(t);for(let o=0;o<=5;o+=2){const i=parseInt(e.substring(o,o+2),16),a=parseInt(t.substring(o,o+2),16);let c=Math.floor(a+r/100*(i-a)).toString(16);for(;c.length<2;)c="0"+c;n+=c}return`#${n}`}},11297:function(e,t,r){r.d(t,{B:function(){return o}});const o=(e,t,r,o)=>{o=o||{},r=null==r?{}:r;const n=new Event(t,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});return n.detail=r,e.dispatchEvent(n),n}},13089:function(e,t,r){r.d(t,{E:function(){return n}});var o=r(27550);const n=(()=>{try{return window.name===o.y?window:parent.name===o.y?parent:top}catch{return window}})()},3812:function(e,t,r){r.d(t,{J:function(){return o}});r(39527),r(67670);const o=(e,t=!0)=>{if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)return;const r=e.composedPath().find((e=>"A"===e.tagName));if(!r||r.target||r.hasAttribute("download")||"external"===r.getAttribute("rel"))return;let o=r.href;if(!o||-1!==o.indexOf("mailto:"))return;const n=window.location,i=n.origin||n.protocol+"//"+n.host;return 0===o.indexOf(i)&&(o=o.substr(i.length),"#"!==o)?(t&&e.preventDefault(),o):void 0}},85233:function(e,t,r){r.d(t,{K:function(){return o}});const o=(e,t)=>{const r=matchMedia(e),o=e=>t(e.matches);return r.addListener(o),t(r.matches),()=>r.removeListener(o)}},64364:function(e,t,r){r.d(t,{c:function(){return a}});var o=r(24067),n=r(11297),i=r(13089);const a=async(e,t,r=Date.now())=>{const{history:c}=i.E;if(c.state?.dialog&&Date.now()-r<500){return await(0,o.ts)()?new Promise((o=>{setTimeout((()=>{a(e,t,r).then(o)}))})):(console.warn("Navigation blocked, because dialog refused to close"),!1)}const s=t?.replace||!1;return s?c.replaceState(c.state?.root?{root:!0}:t?.data??null,"",e):c.pushState(t?.data??null,"",e),(0,n.B)(i.E,"location-changed",{replace:s}),!0}},30137:function(e,t,r){r.d(t,{y:function(){return o}});const o=()=>new Promise((e=>{var t;t=e,requestAnimationFrame((()=>setTimeout(t,0)))}))},27550:function(e,t,r){r.d(t,{y:function(){return o}});const o="ha-main-window"},24067:function(e,t,r){r.d(t,{ts:()=>f,gA:()=>l,lD:()=>p});r("92745");var o=r("13089");r("92519"),r("42179"),r("89256"),r("24931"),r("88463"),r("57449"),r("19814");const n=(e,t,r=true)=>{if(!e||e===document.body)return null;if((e=e.assignedSlot??e).parentElement)e=e.parentElement;else{const t=e.getRootNode();e=t instanceof ShadowRoot?t.host:null}return(r?Object.prototype.hasOwnProperty.call(e,t):e&&t in e)?e:n(e,t,r)},i=(e=document)=>e.activeElement?.shadowRoot?.activeElement?i(e.activeElement.shadowRoot):e.activeElement;var a=r("30137");const c={},s=[],l=Symbol.for("HA focus target"),d=async(e,t,r,a,u,f=!0)=>{if(!(r in c)){if(!u)return!1;c[r]={element:u().then((()=>{const t=document.createElement(r);return e.provideHass(t),t.addEventListener("dialog-closed",h),t.addEventListener("dialog-closed",v),t}))}}if(f){const{history:n}=o.E;if(n.state?.dialog&&!s.length)return await new Promise((e=>{setTimeout(e)})),d(e,t,r,a,u,f);s.push({element:e,root:t,dialogTag:r,dialogParams:a,dialogImport:u,addHistory:f});const i={dialog:r};n.state?.dialog?n.replaceState(i,""):(n.replaceState({...n.state,opensDialog:!0},""),n.pushState(i,""))}c[r].closedFocusTargets=((e,t,r=!0)=>{const o=new Set;for(;e;)o.add(e),e=n(e,t,r);return o})(i(),l);const p=await c[r].element;return t.appendChild(p),p.showDialog(a),!0},u=async e=>{if(!(e in c))return!0;const t=await c[e].element;return!t.closeDialog||!1!==t.closeDialog()},f=async()=>{for(let e=s.length-1;e>=0;e--){if(!await u(s[e].dialogTag))return!1}return!0},h=e=>{const t=s.findIndex((t=>t.dialogTag===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)}`,c=o.iv`.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}`;o.iv`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`},55534:function(e,t,r){r.d(t,{o:()=>o});const o=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(e,t,r){r.d(t,{i0:function(){return d},sS:function(){return l}});r(39527),r(67670),r(88972);var o=r(55534);const n="/hacsfiles/frontend/static/translations",i=window.localStorage||{},a={};const c={"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 s(e){if(e in o.o.translations)return e;const t=e.toLowerCase();if(t in c)return c[t];const r=Object.keys(o.o.translations).find((e=>e.toLowerCase()===t));return r||(e.includes("-")?s(e.split("-")[0]):void 0)}function l(){let e=null;if(i.selectedLanguage)try{const t=JSON.parse(i.selectedLanguage);if(t&&(e=s(t),e))return e}catch(e){}if(navigator.languages)for(const t of navigator.languages)if(e=s(t),e)return e;return e=s(navigator.language),e||"en"}async function d(e,t,r=!0){const i=o.o.translations[t];if(!i?.hash){if(r&&"en"!==t)return d(e,"en");throw new Error(`Language '${t}' is not found in metadata`)}const c=`${e?e+"/":""}${t}-${i.hash}.json`;return a[c]||(a[c]=async function(e){const t=await fetch(`${n}/${e}`,{credentials:"same-origin"});if(!t.ok)throw new Error(`Fail to fetch translation ${e}: HTTP response status is ${t.status}`);return t.json()}(c).then((e=>({language:t,data:e}))).catch((r=>(delete a[c],"en"!==t?d(e,"en"):Promise.reject(r))))),a[c]}},27486:function(e,t,r){r.d(t,{Z:function(){return i}});var o=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],i=t[r],!(n===i||o(n)&&o(i)))return!1;var n,i;return!0}function i(e,t){void 0===t&&(t=n);var r=null;function o(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var i=e.apply(this,o);return r={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){r=null},o}},63324:function(e,t,r){r.d(t,{p:function(){return o}});let o=function(e){return e.CONFIG="hacs_dispatch_config",e.ERROR="hacs_dispatch_error",e.RELOAD="hacs_dispatch_reload",e.REPOSITORY="hacs_dispatch_repository",e.STAGE="hacs_dispatch_stage",e.STARTUP="hacs_dispatch_startup",e.STATUS="hacs_dispatch_status",e}({})},42104:function(e,t,r){r.d(t,{CE:function(){return u},E
Line truncated
|
||||
//# sourceMappingURL=entrypoint.bb9d28f38e9fba76.js.map
|
||||
Reference in new issue
Block a user