UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

22 lines 39.4 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[11037],{80785:function(e,t,a){function n(e){return!!e&&(e instanceof Date&&!isNaN(e.valueOf()))}a.d(t,{A:function(){return n}})},380:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{D:function(){return d},P:function(){return c}});a(74423);var o=a(74487),i=a(27734),r=a(46927),l=a(96029),s=e([o]);o=(s.then?(await s)():s)[0];const c=e=>e.first_weekday===r.zt.language?"weekInfo"in Intl.Locale.prototype?new Intl.Locale(e.language).weekInfo.firstDay%7:(0,i.S)(e.language)%7:l.Z.includes(e.first_weekday)?l.Z.indexOf(e.first_weekday):1,d=e=>{const t=c(e);return l.Z[t]};n()}catch(c){n(c)}})},72487:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{CA:function(){return S},Mi:function(){return A},Pm:function(){return x},Wq:function(){return y},Yq:function(){return c},bl:function(){return M},c2:function(){return w},fr:function(){return v},gu:function(){return z},kz:function(){return u},m9:function(){return I},sl:function(){return f},ur:function(){return E},zB:function(){return p}});a(18111),a(20116);var o=a(74487),i=a(22786),r=a(46927),l=a(8480),s=e([o,l]);[o,l]=s.then?(await s)():s;(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric",timeZone:(0,l.wj)(e.time_zone,t)}));const c=(e,t,a)=>d(t,a.time_zone).format(e),d=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})),u=(e,t,a)=>h(t,a.time_zone).format(e),h=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})),p=(e,t,a)=>{var n,o,i,l;const s=m(t,a.time_zone);if(t.date_format===r.ow.language||t.date_format===r.ow.system)return s.format(e);const c=s.formatToParts(e),d=null===(n=c.find(e=>"literal"===e.type))||void 0===n?void 0:n.value,u=null===(o=c.find(e=>"day"===e.type))||void 0===o?void 0:o.value,h=null===(i=c.find(e=>"month"===e.type))||void 0===i?void 0:i.value,p=null===(l=c.find(e=>"year"===e.type))||void 0===l?void 0:l.value,f=c[c.length-1];let g="literal"===(null==f?void 0:f.type)?null==f?void 0:f.value:"";"bg"===t.language&&t.date_format===r.ow.YMD&&(g="");return{[r.ow.DMY]:`${u}${d}${h}${d}${p}${g}`,[r.ow.MDY]:`${h}${d}${u}${d}${p}${g}`,[r.ow.YMD]:`${p}${d}${h}${d}${u}${g}`}[t.date_format]},m=(0,i.A)((e,t)=>{const a=e.date_format===r.ow.system?void 0:e.language;return e.date_format===r.ow.language||(e.date_format,r.ow.system),new Intl.DateTimeFormat(a,{year:"numeric",month:"numeric",day:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})}),f=(e,t,a)=>g(t,a.time_zone).format(e),g=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short",timeZone:(0,l.wj)(e.time_zone,t)})),v=(e,t,a)=>b(t,a.time_zone).format(e),b=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})),y=(e,t,a)=>_(t,a.time_zone).format(e),_=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"long",timeZone:(0,l.wj)(e.time_zone,t)})),w=(e,t,a)=>k(t,a.time_zone).format(e),k=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"short",timeZone:(0,l.wj)(e.time_zone,t)})),x=(e,t,a)=>C(t,a.time_zone).format(e),C=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})),S=(e,t,a)=>$(t,a.time_zone).format(e),$=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",timeZone:(0,l.wj)(e.time_zone,t)})),z=(e,t,a)=>T(t,a.time_zone).format(e),T=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",timeZone:(0,l.wj)(e.time_zone,t)})),A=(e,t,a)=>D(t,a.time_zone).format(e),D=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",month:"short",day:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})),E=(e,t,a)=>F(t,a.time_zone).format(e),F=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:(0,l.wj)(e.time_zone,t)})),M=(e,t,a)=>{const n=(0,l.wj)(t.time_zone,a.time_zone);return new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:n}).format(e)},I=(e,t,a,n)=>`${M(e,a,n)}/${M(t,a,n)}`;n()}catch(c){n(c)}})},95747:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{CL:function(){return y},GH:function(){return k},Rl:function(){return p},ZS:function(){return v},aQ:function(){return f},r6:function(){return u},yg:function(){return _}});var o=a(74487),i=a(22786),r=a(72487),l=a(30162),s=a(8480),c=a(69543),d=e([o,s,r,l]);[o,s,r,l]=d.then?(await d)():d;const u=(e,t,a)=>h(t,a.time_zone).format(e),h=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,c.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,c.J)(e)?"h12":"h23",timeZone:(0,s.wj)(e.time_zone,t)})),p=e=>m().format(e),m=(0,i.A)(()=>new Intl.DateTimeFormat(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})),f=(e,t,a)=>g(t,a.time_zone).format(e),g=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",hour:(0,c.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,c.J)(e)?"h12":"h23",timeZone:(0,s.wj)(e.time_zone,t)})),v=(e,t,a)=>b(t,a.time_zone).format(e),b=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"short",day:"numeric",hour:(0,c.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,c.J)(e)?"h12":"h23",timeZone:(0,s.wj)(e.time_zone,t)})),y=(e,t,a)=>(new Date).getFullYear()===e.getFullYear()?v(e,t,a):f(e,t,a),_=(e,t,a)=>w(t,a.time_zone).format(e),w=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,c.J)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,c.J)(e)?"h12":"h23",timeZone:(0,s.wj)(e.time_zone,t)})),k=(e,t,a)=>`${(0,r.zB)(e,t,a)}, ${(0,l.fU)(e,t,a)}`;n()}catch(u){n(u)}})},30162:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{LW:function(){return f},Xs:function(){return p},fU:function(){return c},ie:function(){return u}});var o=a(74487),i=a(22786),r=a(8480),l=a(69543),s=e([o,r]);[o,r]=s.then?(await s)():s;const c=(e,t,a)=>d(t,a.time_zone).format(e),d=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:"numeric",minute:"2-digit",hourCycle:(0,l.J)(e)?"h12":"h23",timeZone:(0,r.wj)(e.time_zone,t)})),u=(e,t,a)=>h(t,a.time_zone).format(e),h=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:(0,l.J)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,l.J)(e)?"h12":"h23",timeZone:(0,r.wj)(e.time_zone,t)})),p=(e,t,a)=>m(t,a.time_zone).format(e),m=(0,i.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",hour:(0,l.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,l.J)(e)?"h12":"h23",timeZone:(0,r.wj)(e.time_zone,t)})),f=(e,t,a)=>g(t,a.time_zone).format(e),g=(0,i.A)((e,t)=>new Intl.DateTimeFormat("en-GB",{hour:"numeric",minute:"2-digit",hour12:!1,timeZone:(0,r.wj)(e.time_zone,t)}));n()}catch(c){n(c)}})},98975:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{K:function(){return c}});var o=a(74487),i=a(22786),r=a(63927),l=e([o,r]);[o,r]=l.then?(await l)():l;const s=(0,i.A)(e=>new Intl.RelativeTimeFormat(e.language,{numeric:"auto"})),c=(e,t,a,n=!0)=>{const o=(0,r.x)(e,a,t);return n?s(t).format(o.value,o.unit):Intl.NumberFormat(t.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};n()}catch(s){n(s)}})},8480:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{fL:function(){return p},n2:function(){return m},wj:function(){return f}});var o,i,r,l=a(74487),s=a(29079),c=a(46927),d=e([l]);l=(d.then?(await d)():d)[0];const u=null===(o=Intl.DateTimeFormat)||void 0===o||null===(i=(r=o.call(Intl)).resolvedOptions)||void 0===i?void 0:i.call(r).timeZone,h=u&&("UTC"===u||"Etc/UTC"===u||u in s)?u:void 0,p=14881==a.j?void 0!==h:null,m=null!=h?h:"UTC",f=(e,t)=>e===c.Wj.local&&h?m:t;n()}catch(u){n(u)}})},69543:function(e,t,a){a.d(t,{J:function(){return i}});a(74423);var n=a(22786),o=a(46927);const i=(0,n.A)(e=>{if(e.time_format===o.Hg.language||e.time_format===o.Hg.system){const t=e.time_format===o.Hg.language?e.language:void 0;return new Date("January 1, 2023 22:00:00").toLocaleString(t).includes("10")}return e.time_format===o.Hg.am_pm})},96029:function(e,t,a){a.d(t,{Tq:function(){return r},Z:function(){return o},ZV:function(){return n},sj:function(){return i}});const n=["sun","mon","tue","wed","thu","fri","sat"],o=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],i={0:"sun",1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat"},r={sun:"sunday",mon:"monday",tue:"tuesday",wed:"wednesday",thu:"thursday",fri:"friday",sat:"saturday"}},63927:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{x:function(){return p}});var o=a(6946),i=a(52640),r=a(38684),l=a(380),s=e([l]);l=(s.then?(await s)():s)[0];const d=1e3,u=60,h=60*u;function p(e,t=Date.now(),a,n={}){const s=Object.assign(Object.assign({},m),n||{}),c=(+e-+t)/d;if(Math.abs(c)<s.second)return{value:Math.round(c),unit:"second"};const p=c/u;if(Math.abs(p)<s.minute)return{value:Math.round(p),unit:"minute"};const f=c/h;if(Math.abs(f)<s.hour)return{value:Math.round(f),unit:"hour"};const g=new Date(e),v=new Date(t);g.setHours(0,0,0,0),v.setHours(0,0,0,0);const b=(0,o.c)(g,v);if(0===b)return{value:Math.round(f),unit:"hour"};if(Math.abs(b)<s.day)return{value:b,unit:"day"};const y=(0,l.P)(a),_=(0,i.k)(g,{weekStartsOn:y}),w=(0,i.k)(v,{weekStartsOn:y}),k=(0,r.I)(_,w);if(0===k)return{value:b,unit:"day"};if(Math.abs(k)<s.week)return{value:k,unit:"week"};const x=g.getFullYear()-v.getFullYear(),C=12*x+g.getMonth()-v.getMonth();return 0===C?{value:k,unit:"week"}:Math.abs(C)<s.month||0===x?{value:C,unit:"month"}:{value:Math.round(x),unit:"year"}}const m={second:59,minute:59,hour:22,day:5,week:4,month:11};n()}catch(c){n(c)}})},64481:function(e,t,a){a.d(t,{D:function(){return o},J:function(){return r}});a(16280),a(3362),a(55815),a(64979),a(79739);let n=!1;try{n="true"===window.localStorage.getItem("disableViewTransition")}catch(l){}const o=e=>{n=e},i=e=>{if(!(e=>(e instanceof DOMException||e instanceof Error)&&"AbortError"===e.name)(e))throw e},r=e=>{if(!document.startViewTransition||n)return e(!1),Promise.resolve();let t=!1;try{const a=document.startViewTransition(()=>{t=!0,e(!0)});return a.ready.catch(i),a.finished.catch(i)}catch(a){return console.warn("View transition failed, falling back to direct execution.",a),t?Promise.reject(a):(e(!1),Promise.resolve())}}},93444:function(e,t,a){var n=a(40445),o=a(5124),i=a(67576);let r,l,s=e=>e;class c extends o.WF{render(){return(0,o.qy)(r||(r=s` <footer> <slot name="secondaryAction"></slot> <slot name="primaryAction"></slot> </footer> `))}static get styles(){return[(0,o.AH)(l||(l=s`footer{display:flex;gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%}`))]}}c=(0,n.Cg)([(0,i.EM)("ha-dialog-footer")],c)},76538:function(e,t,a){a(62953);var n=a(40445),o=a(5124),i=a(67576);let r,l,s,c,d,u,h=e=>e;class p extends o.WF{render(){const e=(0,o.qy)(r||(r=h`<div class="header-title"> <slot name="title"></slot> </div>`)),t=(0,o.qy)(l||(l=h`<div class="header-subtitle"> <slot name="subtitle"></slot> </div>`));return(0,o.qy)(s||(s=h` <header class="header"> <div class="header-bar"> <section class="header-navigation-icon"> <slot name="navigationIcon"></slot> </section> <section class="header-content"> ${0} </section> <section class="header-action-items"> <slot name="actionItems"></slot> </section> </div> <slot></slot> </header> `),"above"===this.subtitlePosition?(0,o.qy)(c||(c=h`${0}${0}`),t,e):(0,o.qy)(d||(d=h`${0}${0}`),e,t))}static get styles(){return[(0,o.AH)(u||(u=h`:host{display:block}:host([show-border]){border-bottom:1px solid var(--mdc-dialog-scroll-divider-color,rgba(0,0,0,.12))}.header-bar{display:flex;flex-direction:row;align-items:center;padding:0 var(--ha-space-1);box-sizing:border-box}.header-content{flex:1;padding:10px var(--ha-space-1);display:flex;flex-direction:column;justify-content:center;min-height:var(--ha-space-12);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-title{height:var(--ha-dialog-header-title-height,calc(var(--ha-font-size-xl) + var(--ha-space-1)));font-size:var(--ha-font-size-xl);line-height:var(--ha-line-height-condensed);font-weight:var(--ha-font-weight-medium);color:var(--ha-dialog-header-title-color,var(--primary-text-color))}.header-subtitle{font-size:var(--ha-font-size-m);line-height:var(--ha-line-height-normal);color:var(--ha-dialog-header-subtitle-color,var(--secondary-text-color))}@media all and (min-width:450px) and (min-height:500px){.header-bar{padding:0 var(--ha-space-2)}}.header-navigation-icon{flex:none;min-width:var(--ha-space-2);height:100%;display:flex;flex-direction:row}.header-action-items{flex:none;min-width:var(--ha-space-2);height:100%;display:flex;flex-direction:row}`))]}constructor(...e){super(...e),this.subtitlePosition="below",this.showBorder=!1}}(0,n.Cg)([(0,i.MZ)({type:String,attribute:"subtitle-position"})],p.prototype,"subtitlePosition",void 0),(0,n.Cg)([(0,i.MZ)({type:Boolean,reflect:!0,attribute:"show-border"})],p.prototype,"showBorder",void 0),p=(0,n.Cg)([(0,i.EM)("ha-dialog-header")],p)},72554:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953),a(49255);var n=a(40445),o=a(93900),i=a(35211),r=a(5124),l=a(67576),s=a(63672),c=a(1087),d=a(64481),u=a(22792),h=a(59992),p=a(14503),m=a(22348),f=(a(76538),a(26300)),g=e([o,f,h]);[o,f,h]=g.then?(await g)():g;let v,b,y,_,w,k,x,C=e=>e;const S="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";class $ extends((0,h.V)(r.WF)){connectedCallback(){super.connectedCallback(),this.addEventListener("dialog-set-fullscreen",this._handleFullscreenChanged)}get scrollableElement(){return this.bodyContainer}updated(e){super.updated(e),e.has("open")&&(this._open=this.open)}render(){var e,t,a;return(0,r.qy)(v||(v=C` <wa-dialog .open="${0}" .lightDismiss="${0}" without-header aria-labelledby="${0}" aria-describedby="${0}" @keydown="${0}" @wa-hide="${0}" @wa-show="${0}" @wa-after-show="${0}" @wa-after-hide="${0}"> ${0} <div class="content-wrapper"> <div class="body ha-scrollbar" @scroll="${0}"> <slot></slot> </div> ${0} </div> <slot name="footer" slot="footer"></slot> </wa-dialog> `),this._open,!this.preventScrimClose,(0,s.J)(this.ariaLabelledBy||(void 0!==this.headerTitle?"ha-dialog-title":void 0)),(0,s.J)(this.ariaDescribedBy),this._handleKeyDown,this._handleHide,this._handleShow,this._handleAfterShow,this._handleAfterHide,this.withoutHeader?r.s6:(0,r.qy)(b||(b=C`<slot name="header"> <ha-dialog-header .subtitlePosition="${0}" .showBorder="${0}"> <slot name="headerNavigationIcon" slot="navigationIcon"> <ha-icon-button data-dialog="close" .label="${0}" .path="${0}"></ha-icon-button> </slot> ${0} ${0} <slot name="headerActionItems" slot="actionItems"></slot> </ha-dialog-header> </slot>`),this.headerSubtitlePosition,this._bodyScrolled,null!==(e=null===(t=this._i18n)||void 0===t||null===(a=t.localize)||void 0===a?void 0:a.call(t,"ui.common.close"))&&void 0!==e?e:"Close",S,void 0!==this.headerTitle?(0,r.qy)(y||(y=C`<span slot="title" class="title" id="ha-dialog-title"> ${0} </span>`),this.headerTitle):(0,r.qy)(_||(_=C`<slot name="headerTitle" slot="title"></slot>`)),void 0!==this.headerSubtitle?(0,r.qy)(w||(w=C`<span slot="subtitle">${0}</span>`),this.headerSubtitle):(0,r.qy)(k||(k=C`<slot name="headerSubtitle" slot="subtitle"></slot>`))),this._handleBodyScroll,this.renderScrollableFades())}disconnectedCallback(){this.removeEventListener("dialog-set-fullscreen",this._handleFullscreenChanged),this._setFullscreen(!1),super.disconnectedCallback(),this._open=!1}_handleFullscreenChanged(e){this._open?(0,d.J)(()=>{this._setFullscreen(e.detail)}):this._setFullscreen(e.detail)}_setFullscreen(e){this.toggleAttribute("fullscreen",e)}_handleBodyScroll(e){this._bodyScrolled=e.target.scrollTop>0}_handleKeyDown(e){"Escape"===e.key&&(this._escapePressed=!0,this.preventScrimClose&&e.preventDefault(),e.stopPropagation(),e.currentTarget.open=!1)}_handleHide(e){var t;const a=(null===(t=e.detail)||void 0===t?void 0:t.source)===e.target.dialog;this.preventScrimClose&&this._escapePressed&&a&&e.preventDefault(),this._escapePressed=!1}static get styles(){return[...super.styles,p.dp,(0,r.AH)(x||(x=C`wa-dialog{--full-width:var( --ha-dialog-width-full, min(95vw, var(--safe-width)) );--width:min(var(--ha-dialog-width-md, 580px), var(--full-width));--spacing:var(--dialog-content-padding, var(--ha-space-6));--show-duration:var(--ha-dialog-show-duration, 200ms);--hide-duration:var(--ha-dialog-hide-duration, 200ms);--wa-color-surface-raised:var( --ha-dialog-surface-background, var(--card-background-color, var(--ha-color-surface-default)) );--wa-panel-border-radius:var( --ha-dialog-border-radius, var(--ha-border-radius-3xl) );max-width:var(--ha-dialog-max-width,var(--safe-width))}@media (prefers-reduced-motion:reduce){wa-dialog{--show-duration:0ms;--hide-duration:0ms}}:host([width=small]) wa-dialog{--width:min(var(--ha-dialog-width-sm, 320px), var(--full-width))}:host([width=large]) wa-dialog{--width:min(var(--ha-dialog-width-lg, 1024px), var(--full-width))}:host([fullscreen]) wa-dialog,:host([width=full]) wa-dialog{--width:var(--full-width)}:host([fullscreen]) wa-dialog::part(dialog){min-height:var(--safe-height);max-height:var(--safe-height);margin-top:0;transform:none}:host([fullscreen]) .content-wrapper{overflow:hidden}:host([fullscreen]) .body{overflow:hidden;padding:0}wa-dialog::part(dialog){-webkit-backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);box-shadow:var(--dialog-box-shadow,var(--wa-shadow-l));color:var(--primary-text-color);min-width:var(--width,var(--full-width));max-width:var(--width,var(--full-width));max-height:var(--ha-dialog-max-height,calc(var(--safe-height) - var(--ha-space-20)));min-height:var(--ha-dialog-min-height);margin-top:var(--dialog-surface-margin-top,auto);transform:translate(calc(var(--safe-area-offset-left,0px) - var(--safe-area-offset-right,0px)),calc(var(--safe-area-offset-top,0px) - var(--safe-area-offset-bottom,0px)));display:flex;flex-direction:column;overflow:hidden}wa-dialog::part(dialog)::backdrop{-webkit-backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));background-color:var(--mdc-dialog-scrim-color,none)}@media all and (max-width:450px),all and (max-height:500px){:host([type=standard]){--ha-dialog-border-radius:0}:host([type=standard]) wa-dialog{--full-width:var(--ha-dialog-width-full, 100vw);--width:var(--full-width)}:host([type=standard]) wa-dialog::part(dialog){min-height:var(--ha-dialog-min-height,100vh);min-height:var(--ha-dialog-min-height,100dvh);max-height:var(--ha-dialog-max-height,100vh);max-height:var(--ha-dialog-max-height,100dvh);margin-top:0;margin-bottom:0;padding-top:var(--safe-area-inset-top);padding-bottom:var(--safe-area-inset-bottom);padding-left:var(--safe-area-inset-left);padding-right:var(--safe-area-inset-right);transform:none}}.header-title-container{display:flex;align-items:center}.header-title{margin:0;margin-bottom:0;color:var(--ha-dialog-header-title-color,var(--primary-text-color));font-size:var( --ha-dialog-header-title-font-size, var(--ha-font-size-2xl) );line-height:var( --ha-dialog-header-title-line-height, var(--ha-line-height-condensed) );font-weight:var(--ha-dialog-header-title-font-weight,var(--ha-font-weight-normal));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:var(--ha-space-3)}wa-dialog::part(body){padding:0;display:flex;flex-direction:column;max-width:100%;overflow:hidden}.content-wrapper{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.body{position:var(--dialog-content-position,relative);padding:var(--dialog-content-padding,0 var(--ha-space-6) var(--ha-space-6) var(--ha-space-6));overflow:auto;flex-grow:1}:host([flexcontent]) .body{max-width:100%;flex:1;display:flex;flex-direction:column}wa-dialog::part(footer){padding:0}::slotted([slot=footer]){display:flex;padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4);gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%}`))]}constructor(...e){super(...e),this.open=!1,this.type="standard",this.width="medium",this.preventScrimClose=!1,this.headerSubtitlePosition="below",this.flexContent=!1,this.withoutHeader=!1,this._open=!1,this._bodyScrolled=!1,this._escapePressed=!1,this._handleShow=async e=>{e.eventPhase===Event.AT_TARGET&&(this._open=!0,(0,c.r)(this,"opened"),await this.updateComplete,requestAnimationFrame(()=>{var e,t;if(null!==(e=this._hassConfig)&&void 0!==e&&e.auth.external&&(0,m.V)(this._hassConfig.auth.external)){const e=this.querySelector("[autofocus]");return void(null!==e&&(e.id||(e.id="ha-dialog-autofocus"),this._hassConfig.auth.external.fireMessage({type:"focus_element",payload:{element_id:e.id}})))}null===(t=this.querySelector("[autofocus]"))||void 0===t||t.focus()}))},this._handleAfterShow=e=>{e.eventPhase===Event.AT_TARGET&&(0,c.r)(this,"after-show")},this._handleAfterHide=e=>{e.eventPhase===Event.AT_TARGET&&(this._open=!1,this._setFullscreen(!1),(0,c.r)(this,"closed"))}}}(0,n.Cg)([(0,l.MZ)({attribute:"aria-labelledby"})],$.prototype,"ariaLabelledBy",void 0),(0,n.Cg)([(0,l.MZ)({attribute:"aria-describedby"})],$.prototype,"ariaDescribedBy",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,reflect:!0})],$.prototype,"open",void 0),(0,n.Cg)([(0,l.MZ)({reflect:!0})],$.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:String,reflect:!0,attribute:"width"})],$.prototype,"width",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],$.prototype,"preventScrimClose",void 0),(0,n.Cg)([(0,l.MZ)({attribute:"header-title"})],$.prototype,"headerTitle",void 0),(0,n.Cg)([(0,l.MZ)({attribute:"header-subtitle"})],$.prototype,"headerSubtitle",void 0),(0,n.Cg)([(0,l.MZ)({type:String,attribute:"header-subtitle-position"})],$.prototype,"headerSubtitlePosition",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],$.prototype,"flexContent",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,attribute:"without-header"})],$.prototype,"withoutHeader",void 0),(0,n.Cg)([(0,l.wk)()],$.prototype,"_open",void 0),(0,n.Cg)([(0,l.P)(".body")],$.prototype,"bodyContainer",void 0),(0,n.Cg)([(0,l.wk)(),(0,i.Fg)({context:u.D5,subscribe:!0})],$.prototype,"_i18n",void 0),(0,n.Cg)([(0,l.wk)(),(0,i.Fg)({context:u.WF,subscribe:!0})],$.prototype,"_hassConfig",void 0),(0,n.Cg)([(0,l.wk)()],$.prototype,"_bodyScrolled",void 0),(0,n.Cg)([(0,l.Ls)({passive:!0})],$.prototype,"_handleBodyScroll",null),$=(0,n.Cg)([(0,l.EM)("ha-dialog")],$),t()}catch(v){t(v)}})},2846:function(e,t,a){a.d(t,{G:function(){return h},J:function(){return u}});var n=a(40445),o=a(58168),i=a(82553),r=a(5124),l=a(67576);a(54276);let s,c,d=e=>e;const u=[i.R,(0,r.AH)(s||(s=d`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`))];class h extends o.n{renderRipple(){return"text"===this.type?r.s6:(0,r.qy)(c||(c=d`<ha-ripple part="ripple" for="item" ?disabled="${0}"></ha-ripple>`),this.disabled&&"link"!==this.type)}}h.styles=u,h=(0,n.Cg)([(0,l.EM)("ha-md-list-item")],h)},17308:function(e,t,a){var n=a(40445),o=a(49838),i=a(11245),r=a(5124),l=a(67576);let s;class c extends o.B{}c.styles=[i.R,(0,r.AH)(s||(s=(e=>e)`:host{--md-sys-color-surface:var(--card-background-color)}`))],c=(0,n.Cg)([(0,l.EM)("ha-md-list")],c)},54276:function(e,t,a){a(62953);var n=a(40445),o=a(76482),i=a(91382),r=a(96245),l=a(5124),s=a(67576);let c;class d extends i.n{attach(e){super.attach(e),this.attachableTouchController.attach(e)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(e,t){null==e||e.removeEventListener("touchend",this._handleTouchEnd),null==t||t.addEventListener("touchend",this._handleTouchEnd)}constructor(...e){super(...e),this.attachableTouchController=new o.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}d.styles=[r.R,(0,l.AH)(c||(c=(e=>e)`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.12);--md-ripple-hover-color:var( --ha-ripple-hover-color, var(--ha-ripple-color, var(--secondary-text-color)) );--md-ripple-pressed-color:var( --ha-ripple-pressed-color, var(--ha-ripple-color, var(--secondary-text-color)) )}`))],d=(0,n.Cg)([(0,s.EM)("ha-ripple")],d)},31420:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{Bi:function(){return Z},Dt:function(){return X},EB:function(){return E},IW:function(){return T},P_:function(){return S},SG:function(){return z},Sx:function(){return V},T2:function(){return v},Xm:function(){return y},Ye:function(){return b},Zm:function(){return F},cq:function(){return R},dH:function(){return A},en:function(){return G},gF:function(){return w},gb:function(){return _},gv:function(){return M},jU:function(){return j},kI:function(){return D},mF:function(){return I},mu:function(){return $},oJ:function(){return L},pI:function(){return x},pL:function(){return N},q5:function(){return H},q7:function(){return B},qk:function(){return g},sp:function(){return O},uM:function(){return Y},v3:function(){return q},xN:function(){return K},yL:function(){return k},yj:function(){return U},zZ:function(){return C}});a(74423),a(26910),a(54743),a(11745),a(16573),a(78100),a(77936),a(18111),a(22489),a(20116),a(7588),a(61701),a(3362),a(27495),a(25440),a(21489),a(48140),a(75044),a(21903),a(91134),a(28845),a(373),a(37467),a(44732),a(79577),a(16632),a(34226),a(9486),a(20456),a(62953),a(48408),a(14603),a(47566),a(98721);var o=a(22711),i=a(97732),r=a(6226),l=a(22786),s=a(80785),c=a(95747),d=a(30162),u=a(36918),h=a(30039),p=a(39889),m=a(95350),f=e([o,c,d]);[o,c,d]=f.then?(await f)():f;var g=function(e){return e.NEVER="never",e.DAILY="daily",e.CUSTOM_DAYS="custom_days",e}({});const v=["mon","tue","wed","thu","fri","sat","sun"],b=e=>e.sort((e,t)=>v.indexOf(e)-v.indexOf(t)),y=e=>e.callWS({type:"backup/config/info"}),_=(e,t)=>e.callWS(Object.assign({type:"backup/config/update"},t)),w=(e,t)=>{var a,n;return _(e,{create_backup:{agent_ids:t.create_backup.agent_ids,include_folders:null!==(a=t.create_backup.include_folders)&&void 0!==a?a:[],include_database:t.create_backup.include_database,include_addons:null!==(n=t.create_backup.include_addons)&&void 0!==n?n:[],include_all_addons:t.create_backup.include_all_addons,password:t.create_backup.password},retention:t.retention,schedule:t.schedule})},k=(e,t,a)=>`/api/backup/download/${e}?agent_id=${t}${a?`&password=${a}`:""}`,x=e=>e.callWS({type:"backup/info"}),C=(e,t)=>e.callWS({type:"backup/details",backup_id:t}),S=e=>e.callWS({type:"backup/agents/info"}),$=(e,t)=>e.callWS({type:"backup/delete",backup_id:t}),z=(e,t)=>e.callWS(Object.assign({type:"backup/generate"},t)),T=e=>e.callWS({type:"backup/generate_with_automatic_settings"}),A=(e,t)=>e.callWS(Object.assign({type:"backup/restore"},t)),D=async(e,t,a)=>{const n=new FormData;n.append("file",t);const o=new URLSearchParams;return a.forEach(e=>{o.append("agent_id",e)}),(0,p.QE)(e.fetchWithAuth(`/api/backup/upload?${o.toString()}`,{method:"POST",body:n}))},E=e=>{const t=e.find(Z);if(t)return t;const a=e.find(j);return a||e[0]},F=(e,t,a,n)=>e.callWS({type:"backup/can_decrypt_on_download",backup_id:t,agent_id:a,password:n}),M="backup.local",I="hassio.local",L="cloud.cloud",Z=e=>[M,I].includes(e),j=e=>{const[t,a]=e.split(".");return"hassio"===t&&"local"!==a},B=(e,t,a)=>{if(Z(t))return e("ui.panel.config.backup.agents.local_agent");const n=a.find(e=>e.agent_id===t),o=t.split(".")[0],i=n?n.name:t.split(".")[1];if(j(t))return i;const r=(0,m.p$)(e,o);return a.filter(e=>e.agent_id.split(".")[0]===o).length>1?`${r}: ${i}`:r},q=e=>Math.max(...Object.values(e.agents).map(e=>e.size)),P=["automatic","app_update","manual"],H=(0,o.z)(e=>e?P:P.filter(e=>"app_update"!==e)),O=(e,t)=>{var a,n;return e.with_automatic_settings?"automatic":!t||null==(null===(a=e.extra_metadata)||void 0===a?void 0:a["supervisor.addon_update"])&&null==(null===(n=e.extra_metadata)||void 0===n?void 0:n["supervisor.app_update"])?"manual":"app_update"},U=(e,t)=>{const a=Z(e),n=Z(t),o=j(e),i=j(t),r=(e,t)=>e?1:t?2:3,l=r(a,o),s=r(n,i);return l!==s?l-s:e.localeCompare(t)},R=()=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx";let a="";const n=new Uint8Array(34);return crypto.getRandomValues(n),n.forEach((n,o)=>{a+="-"===t[o]?"-":e[n%36]}),a},W=(e,t)=>"data:text/plain;charset=utf-8,"+encodeURIComponent(`${e.localize("ui.panel.config.backup.emergency_kit_file.title")}\n\n${e.localize("ui.panel.config.backup.emergency_kit_file.description")}\n\n${e.localize("ui.panel.config.backup.emergency_kit_file.date")} ${(0,c.r6)(new Date,e.locale,e.config)}\n\n${e.localize("ui.panel.config.backup.emergency_kit_file.instance")}\n${e.config.location_name}\n\n${e.localize("ui.panel.config.backup.emergency_kit_file.url")}\n${e.auth.data.hassUrl}\n\n${e.localize("ui.panel.config.backup.emergency_kit_file.encryption_key")}\n${t}\n\n${e.localize("ui.panel.config.backup.emergency_kit_file.more_info",{link:(0,u.o)(e,"/more-info/backup-emergency-kit")})}`),J=(e,t)=>`home_assistant_backup_emergency_kit_${t?`${t}_`:""}${(0,c.GH)(new Date,e.locale,e.config).replace(",","").replace(" ","_")}.txt`,V=(e,t,a)=>(0,h.R)(W(e,t),J(e,a)),Y=(0,i.g)((0,r.a)(new Date,4),45),N=(0,i.g)((0,r.a)(new Date,5),45),G=(0,l.A)((e,t,a)=>{if((0,s.A)(a))return(0,d.fU)(a,e,t);if("string"==typeof a&&a){const n=a.split(":"),o=(0,i.g)((0,r.a)(new Date,parseInt(n[0])),parseInt(n[1]));return(0,d.fU)(o,e,t)}return`${(0,d.fU)(Y,e,t)} - ${(0,d.fU)(N,e,t)}`}),K="application/x-tar",X={file:void 0};n()}catch(v){n(v)}})},16869:function(e,t,a){a.d(t,{B:function(){return i},g:function(){return o}});var n;a(74423),a(27495);const o=window.externalAppV2||window.externalApp||(null===(n=window.webkit)||void 0===n||null===(n=n.messageHandlers)||void 0===n?void 0:n.getExternalAuth)||location.search.includes("external_auth=1"),i=window.externalApp||window.externalAppV2},26581:function(e,t,a){a.d(t,{r:function(){return o},y:function(){return n}});a(3362);const n=async e=>e.callWS({type:"hassio/update/config/info"}),o=async(e,t)=>e.callWS(Object.assign({type:"hassio/update/config/update"},t))},59992:function(e,t,a){a.a(e,async function(e,n){try{a.d(t,{V:function(){return m}});a(62953);var o=a(40445),i=a(88696),r=a(5124),l=a(6412),s=a(67576),c=e([i]);i=(c.then?(await c)():c)[0];let d,u,h=e=>e;const p=e=>void 0===e?[]:Array.isArray(e)?e:[e],m=e=>{class t extends e{get scrollableElement(){return t.DEFAULT_SCROLLABLE_ELEMENT}firstUpdated(e){var t;null===(t=super.firstUpdated)||void 0===t||t.call(this,e),this.scrollableElement&&this._updateScrollableState(this.scrollableElement),this._attachScrollableElement()}updated(e){var t;null===(t=super.updated)||void 0===t||t.call(this,e),this._attachScrollableElement()}disconnectedCallback(){this._detachScrollableElement(),this._contentScrolled=!1,this._contentScrollable=!1,super.disconnectedCallback()}renderScrollableFades(e=!1){return(0,r.qy)(d||(d=h` <div class="${0}"></div> <div class="${0}"></div> `),(0,l.H)({"fade-top":!0,rounded:e,visible:this._contentScrolled}),(0,l.H)({"fade-bottom":!0,rounded:e,visible:this._contentScrollable}))}static get styles(){var e;const t=Object.getPrototypeOf(this);return[...p(null!==(e=null==t?void 0:t.styles)&&void 0!==e?e:[]),(0,r.AH)(u||(u=h`.fade-bottom,.fade-top{position:absolute;left:0;right:0;height:var(--ha-space-2);pointer-events:none;transition:opacity 180ms ease-in-out;border-radius:var(--ha-border-radius-square);opacity:0;background:linear-gradient(to bottom,var(--ha-color-shadow-scrollable-fade),transparent)}.fade-top{top:0}.fade-bottom{bottom:0;transform:rotate(180deg)}.fade-bottom.visible,.fade-top.visible{opacity:1}.fade-bottom.rounded,.fade-top.rounded{border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}.fade-top.rounded{border-top-left-radius:var(--ha-border-radius-square);border-top-right-radius:var(--ha-border-radius-square)}.fade-bottom.rounded{border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}`))]}_attachScrollableElement(){const e=this.scrollableElement;e!==this._scrollTarget&&(this._detachScrollableElement(),e&&(this._scrollTarget=e,e.addEventListener("scroll",this._onScroll,{passive:!0}),this._resize.observe(e),this._updateScrollableState(e)))}_detachScrollableElement(){var e,t;this._scrollTarget&&(this._scrollTarget.removeEventListener("scroll",this._onScroll),null===(e=(t=this._resize).unobserve)||void 0===e||e.call(t,this._scrollTarget),this._scrollTarget=void 0)}_updateScrollableState(e){const t=parseFloat(getComputedStyle(e).getPropertyValue("--safe-area-inset-bottom"))||0,{scrollHeight:a=0,clientHeight:n=0,scrollTop:o=0}=e;this._contentScrollable=a-n>o+t+this.scrollFadeSafeAreaPadding}constructor(...e){super(...e),this._contentScrolled=!1,this._contentScrollable=!1,this._onScroll=e=>{var t;const a=e.currentTarget;this._contentScrolled=(null!==(t=a.scrollTop)&&void 0!==t?t:0)>this.scrollFadeThreshold,this._updateScrollableState(a)},this._resize=new i.P(this,{target:null,callback:e=>{var t;const a=null===(t=e[0])||void 0===t?void 0:t.target;a&&this._updateScrollableState(a)}}),this.scrollFadeSafeAreaPadding=4,this.scrollFadeThreshold=4}}return t.DEFAULT_SCROLLABLE_ELEMENT=null,(0,o.Cg)([(0,s.wk)()],t.prototype,"_contentScrolled",void 0),(0,o.Cg)([(0,s.wk)()],t.prototype,"_contentScrollable",void 0),t};n()}catch(d){n(d)}})},56588:function(e,t,a){a.a(e,async function(e,n){try{a.r(t),a.d(t,{DialogLabsPreviewFeatureEnable:function(){return w}});a(89463),a(3362),a(62953);var o=a(40445),i=a(5124),r=a(67576),l=a(36312),s=a(98975),c=a(1087),d=a(18350),u=(a(93444),a(72554)),h=(a(17308),a(2846),a(59646)),p=a(31420),m=a(26581),f=e([d,u,h,p,s]);[d,u,h,p,s]=f.then?(await f)():f;let g,v,b,y,_=e=>e;class w extends i.WF{async showDialog(e){this._params=e,this._createBackup=!1,this._open=!0,this._fetchBackupConfig(),(0,l.x)(this.hass.config,"hassio")&&this._fetchUpdateBackupConfig()}closeDialog(){return this._open=!1,!0}_dialogClosed(){this._params=void 0,this._backupConfig=void 0,this._createBackup=!1,(0,c.r)(this,"dialog-closed",{dialog:this.localName})}async _fetchBackupConfig(){try{const{config:e}=await(0,p.Xm)(this.hass);this._backupConfig=e}catch(e){console.error(e)}}async _fetchUpdateBackupConfig(){try{const e=await(0,m.y)(this.hass);this._createBackup=e.core_backup_before_update}catch(e){console.error(e)}}_computeCreateBackupTexts(){if(!this._backupConfig||!this._backupConfig.automatic_backups_configured||!this._backupConfig.create_backup.password||0===this._backupConfig.create_backup.agent_ids.length)return{title:this.hass.localize("ui.panel.config.labs.create_backup.manual"),description:this.hass.localize("ui.panel.config.labs.create_backup.manual_description")};const e=this._backupConfig.last_completed_automatic_backup?new Date(this._backupConfig.last_completed_automatic_backup):null,t=new Date;return{title:this.hass.localize("ui.panel.config.labs.create_backup.automatic"),description:e?this.hass.localize("ui.panel.config.labs.create_backup.automatic_description_last",{relative_time:(0,s.K)(e,this.hass.locale,t,!0)}):this.hass.localize("ui.panel.config.labs.create_backup.automatic_description_none")}}_createBackupChanged(e){this._createBackup=e.target.checked}_handleCancel(){this.closeDialog()}_handleConfirm(){this._params&&this._params.onConfirm(this._createBackup),this.closeDialog()}render(){if(!this._params)return i.s6;const e=this._computeCreateBackupTexts();return(0,i.qy)(g||(g=_` <ha-dialog .open="${0}" header-title="${0}" @closed="${0}"> <p> ${0} </p> ${0} <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click="${0}"> ${0} </ha-button> <ha-button slot="primaryAction" appearance="filled" variant="brand" @click="${0}"> ${0} </ha-button> </ha-dialog-footer> </ha-dialog> `),this._open,this.hass.localize("ui.panel.config.labs.enable_title"),this._dialogClosed,this.hass.localize(`component.${this._params.preview_feature.domain}.preview_features.${this._params.preview_feature.preview_feature}.enable_confirmation`)||this.hass.localize("ui.panel.config.labs.enable_confirmation"),e?(0,i.qy)(v||(v=_` <ha-md-list> <ha-md-list-item> <span slot="headline">${0}</span> ${0} <ha-switch slot="end" .checked="${0}" @change="${0}"></ha-switch> </ha-md-list-item> </ha-md-list> `),e.title,e.description?(0,i.qy)(b||(b=_` <span slot="supporting-text"> ${0} </span> `),e.description):i.s6,this._createBackup,this._createBackupChanged):i.s6,this._handleCancel,this.hass.localize("ui.common.cancel"),this._handleConfirm,this.hass.localize("ui.panel.config.labs.enable"))}constructor(...e){super(...e),this._createBackup=!1,this._open=!1}}w.styles=(0,i.AH)(y||(y=_`ha-dialog{--dialog-content-padding:0}p{margin:0 var(--ha-space-6) var(--ha-space-6);color:var(--secondary-text-color)}ha-md-list{background:0 0;--md-list-item-leading-space:var(--ha-space-6);--md-list-item-trailing-space:var(--ha-space-6);margin:0;padding:0;border-top:var(--ha-border-width-sm) solid var(--divider-color)}`)),(0,o.Cg)([(0,r.MZ)({attribute:!1})],w.prototype,"hass",void 0),(0,o.Cg)([(0,r.wk)()],w.prototype,"_params",void 0),(0,o.Cg)([(0,r.wk)()],w.prototype,"_backupConfig",void 0),(0,o.Cg)([(0,r.wk)()],w.prototype,"_createBackup",void 0),(0,o.Cg)([(0,r.wk)()],w.prototype,"_open",void 0),w=(0,o.Cg)([(0,r.EM)("dialog-labs-preview-feature-enable")],w),n()}catch(g){n(g)}})},69235:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await a.e(71055).then(a.bind(a,52370))).default),t()}catch(n){t(n)}},1)},30039:function(e,t,a){a.d(t,{R:function(){return o}});a(62953),a(3296),a(27208),a(48408),a(14603),a(47566),a(98721);var n=a(16869);const o=(e,t="")=>{const a=document.createElement("a");a.target="_blank",a.href=e,a.download=t,a.style.display="none",document.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),document.body.removeChild(a),e.startsWith("blob:")&&(n.B?setTimeout(()=>URL.revokeObjectURL(e),1e4):URL.revokeObjectURL(e))}},22348:function(e,t,a){a.d(t,{V:function(){return o}});var n=a(37177);const o=e=>!!e&&n.n},37177:function(e,t,a){a.d(t,{n:function(){return n}});a(27495);const n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}]);