iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 21.9 kB
JavaScript
/*! For license information please see 16129.48fc1fbbff76d418.js.LICENSE.txt */
export const __rspack_esm_id=16129;export const __rspack_esm_ids=[16129];export const __webpack_modules__={12451(t,e,r){r.d(e,{O:()=>i,i:()=>a.is});var o=r(5124),a=r(12130);class i extends o.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},12130(t,e,r){r.d(e,{SE:()=>c,U9:()=>l,hP:()=>o,is:()=>a});r(44114);const o=t=>t.nodeType===Node.ELEMENT_NODE;function a(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let i=!1;const n=()=>{},s={get passive(){return i=!0,!1}};document.addEventListener("x",n,s),document.removeEventListener("x",n);const l=(t=window.document)=>{let e=t.activeElement;const r=[];if(!e)return r;for(;e&&(r.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return r},c=t=>{const e=l();if(!e.length)return!1;const r=e[e.length-1],o=new Event("check-if-focused",{bubbles:!0,composed:!0});let a=[];const i=t=>{a=t.composedPath()};return document.body.addEventListener("check-if-focused",i),r.dispatchEvent(o),document.body.removeEventListener("check-if-focused",i),-1!==a.indexOf(t)}},48646(t,e,r){var o=r(69565),a=r(28551),i=r(1767),n=r(50851);t.exports=function(t,e){e&&"string"==typeof t||a(t);var r=n(t);return i(a(void 0!==r?o(r,t):t))}},30531(t,e,r){var o=r(46518),a=r(69565),i=r(79306),n=r(28551),s=r(1767),l=r(48646),c=r(19462),h=r(9539),u=r(96395),d=r(30684),p=r(84549);var v=!u&&!d("flatMap",function(){}),b=!u&&!v&&p("flatMap",TypeError),w=u||v||b||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t.return()}catch(t){return!0}}(),f=c(function(){for(var t,e,r=this.iterator,o=this.mapper;;){if(e=this.inner)try{if(!(t=n(a(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){h(r,"throw",t)}if(t=n(a(this.next,r)),this.done=!!t.done)return;try{this.inner=l(o(t.value,this.counter++),!1)}catch(t){h(r,"throw",t)}}});o({target:"Iterator",proto:!0,real:!0,forced:w},{flatMap:function(t){n(this);try{i(t)}catch(t){h(this,"throw",t)}return b?a(b,this,t):new f(s(this),{mapper:t,inner:null})}})},31886(t,e,r){r.a(t,async function(t,o){try{r.d(e,{BB:()=>a.B});r(38744);var a=r(88775),i=r(49232),n=r(78713),s=r(53834),l=r(35204),c=r(5806),h=t([a,i,n,s,l,c]);[a,i,n,s,l,c]=h.then?(await h)():h,o()}catch(t){o(t)}})},10058(t,e,r){r.a(t,async function(t,e){try{var o=r(5124),a=r(22441),i=r(26638),n=r(40991),s=r(9395),l=r(717),c=r(31896),h=r(93137),u=r(17060),d=r(88496),p=r(23852),v=t([d,u]);[d,u]=v.then?(await v)():v;var b=Object.defineProperty,w=Object.getOwnPropertyDescriptor,f=(t,e,r,o)=>{for(var a,i=o>1?void 0:o?w(e,r):e,n=t.length-1;n>=0;n--)(a=t[n])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&b(e,r,i),i};let m=class extends l.A{handleSizeChange(){(0,n.b)(this.localName,this.size)}handleRemoveClick(){this.dispatchEvent(new i.x)}render(){return o.qy` <slot part="content" class="content"></slot> ${this.withRemove?o.qy` <wa-button part="remove-button" exportparts="base:remove-button__base" class="remove" appearance="plain" ="${this.handleRemoveClick}" tabindex="-1"> <wa-icon name="xmark" library="system" variant="solid" label="${this.localize.term("remove")}"></wa-icon> </wa-button> `:""} `}constructor(){super(...arguments),this.localize=new u.c(this),this.variant="neutral",this.appearance="filled-outlined",this.size="m",this.pill=!1,this.withRemove=!1}};m.css=[p.A,h.A,c.A],f([(0,a.MZ)({reflect:!0})],m.prototype,"variant",2),f([(0,a.MZ)({reflect:!0})],m.prototype,"appearance",2),f([(0,a.MZ)({reflect:!0})],m.prototype,"size",2),f([(0,s.w)("size")],m.prototype,"handleSizeChange",1),f([(0,a.MZ)({type:Boolean,reflect:!0})],m.prototype,"pill",2),f([(0,a.MZ)({attribute:"with-remove",type:Boolean})],m.prototype,"withRemove",2),m=f([(0,a.EM)("wa-tag")],m),e()}catch(t){e(t)}})},23852(t,e,r){r.d(e,{A:()=>o});var o=r(5124).AH` wa-component{:host{display:inline-flex;gap:.5em;border-radius:var(--wa-border-radius-m);align-items:center;background-color:var(--wa-color-fill-quiet,var(--wa-color-neutral-fill-quiet));border-color:var(--wa-color-border-normal,var(--wa-color-neutral-border-normal));border-style:var(--wa-border-style);border-width:var(--wa-border-width-s);color:var(--wa-color-on-quiet,var(--wa-color-neutral-on-quiet));font-size:inherit;line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;height:calc(var(--wa-form-control-height) * .8);line-height:calc(var(--wa-form-control-height) - var(--wa-form-control-border-width) * 2);padding:0 .75em}:host([appearance=outlined]){color:var(--wa-color-on-quiet,var(--wa-color-neutral-on-quiet));background-color:transparent;border-color:var(--wa-color-border-loud,var(--wa-color-neutral-border-loud))}:host([appearance=filled]){color:var(--wa-color-on-quiet,var(--wa-color-neutral-on-quiet));background-color:var(--wa-color-fill-quiet,var(--wa-color-neutral-fill-quiet));border-color:transparent}:host([appearance=filled-outlined]){color:var(--wa-color-on-quiet,var(--wa-color-neutral-on-quiet));background-color:var(--wa-color-fill-quiet,var(--wa-color-neutral-fill-quiet));border-color:var(--wa-color-border-normal,var(--wa-color-neutral-border-normal))}:host([appearance=accent]){color:var(--wa-color-on-loud,var(--wa-color-neutral-on-loud));background-color:var(--wa-color-fill-loud,var(--wa-color-neutral-fill-loud));border-color:transparent}}.content{font-size:var(--wa-font-size-smaller)}[part=remove-button]{line-height:1}[part=remove-button]::part(base){padding:0;height:1em;width:1em;color:currentColor} (hover:hover){:host(:hover)>[part=remove-button]::part(base){background-color:transparent;color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:host(:active)>[part=remove-button]::part(base){background-color:transparent;color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:host([pill]){border-radius:var(--wa-border-radius-pill)}`},99324(t,e,r){r.a(t,async function(t,e){try{var o=r(5124),a=r(22441),i=r(6412),n=r(63672),s=r(34514),l=r(40991),c=r(92070),h=r(41268),u=r(9395),d=r(62676),p=r(15477),v=r(31896),b=r(32565),w=r(17060),f=r(9054),m=t([w]);w=(m.then?(await m)():m)[0];var g=Object.defineProperty,y=Object.getOwnPropertyDescriptor,x=(t,e,r,o)=>{for(var a,i=o>1?void 0:o?y(e,r):e,n=t.length-1;n>=0;n--)(a=t[n])&&(i=(o?a(e,r,i):a(i))||i);return o&&i&&g(e,r,i),i};let C=class extends d.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,l.b)(this.localName,this.size)}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{if(this.setTextareaDimensions(),this.updateResizeObserver(),this.didSSR&&this.input&&this.value!==this.input.value){const t=this.input.value;this.value=t}})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.countAnnounceTimeout),this.resizeObserver?.disconnect(),this.resizeObserver=void 0}updateResizeObserver(){const t="none"!==this.resize;this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),t&&this.input&&("auto"===this.resize?(this.resizeObserver=new ResizeObserver(t=>{const e=t[0]?.contentRect.width??0;e!==this.lastObservedWidth&&(this.lastObservedWidth=e,requestAnimationFrame(()=>this.setTextareaDimensions()))}),this.resizeObserver.observe(this)):(this.resizeObserver=new ResizeObserver(()=>this.setTextareaDimensions()),this.resizeObserver.observe(this.input)))}handleBlur(){this.checkValidity()}handleChange(t){this.valueHasChanged=!0,this.value=this.input.value,this.setTextareaDimensions(),this.checkValidity(),this.relayNativeEvent(t,{bubbles:!0,composed:!0})}handleInput(t){this.valueHasChanged=!0,this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0}),this.scheduleCountAnnouncement()}scheduleCountAnnouncement(){clearTimeout(this.countAnnounceTimeout),this.countAnnounceTimeout=setTimeout(()=>{const t=(this.value??"").length;this.announcedCountText=null!=this.maxlength?this.localize.term("numCharactersRemaining",this.maxlength-t):this.localize.term("numCharacters",t)},1e3)}setTextareaDimensions(){if("none"===this.resize)return this.base.style.width="",void(this.base.style.height="");if("auto"===this.resize){this.sizeAdjuster.style.height=`${this.input.clientHeight}px`,this.input.style.height="auto";const t=this.input.scrollHeight;return this.input.style.height=`${t}px`,this.sizeAdjuster.style.height=`${t}px`,this.base.style.width="",void(this.base.style.height="")}if(this.input.style.width){const t=Number(this.input.style.width.split(/px/)[0])+2;this.base.style.width=`${t}px`}if(this.input.style.height){const t=Number(this.input.style.height.split(/px/)[0])+2;this.base.style.height=`${t}px`}}handleRowsChange(){this.setTextareaDimensions()}async handleValueChange(){await this.updateComplete,this.checkValidity(),this.setTextareaDimensions()}updated(t){t.has("resize")&&(this.setTextareaDimensions(),this.updateResizeObserver()),super.updated(t),t.has("value")&&this.customStates.set("blank",!this.value)}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.input.scrollTop=t.top),void("number"==typeof t.left&&(this.input.scrollLeft=t.left))):{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(t,e,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,o="preserve"){const a=e??this.input.selectionStart,i=r??this.input.selectionEnd;this.input.setRangeText(t,a,i,o),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaDimensions())}formResetCallback(){this._value=null,this.input&&(this.input.value=this.value||""),super.formResetCallback()}render(){const t=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,e=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,r=!!this.label||!!t,a=!!this.hint||!!e,l=(this.value??"").length,c=null!=this.maxlength?this.localize.term("numCharactersRemaining",this.maxlength-l):this.localize.term("numCharacters",l);return o.qy` <label part="form-control-label label" class="${(0,i.H)({label:!0,"has-label":r})}" for="input" aria-hidden="${r?"false":"true"}"> <slot name="label">${this.label}</slot> </label> <div part="base" class="textarea"> <textarea part="textarea" id="input" class="control" title="${this.title}" name="${(0,n.J)(this.name)}" .value="${(0,s.V)(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${(0,n.J)(this.placeholder)}" rows="${(0,n.J)(this.rows)}" minlength="${(0,n.J)(this.minlength)}" maxlength="${(0,n.J)(this.maxlength)}" autocapitalize="${(0,n.J)(this.autocapitalize)}" autocorrect="${(0,n.J)(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${(0,n.J)(this.spellcheck)}" enterkeyhint="${(0,n.J)(this.enterkeyhint)}" inputmode="${(0,n.J)(this.inputmode)}" aria-describedby="hint" ="${this.handleChange}" ="${this.handleInput}" ="${this.handleBlur}"></textarea> <div part="textarea-adjuster" class="size-adjuster" ?hidden="${"auto"!==this.resize}"></div> </div> <div class="${(0,i.H)({footer:!0,"has-count":this.withCount})}"> <slot id="hint" name="hint" part="hint" aria-hidden="${a?"false":"true"}" class="${(0,i.H)({"has-slotted":a})}">${this.hint}</slot> ${this.withCount?o.qy` <div part="count" class="count" aria-hidden="true">${c}</div> <div class="wa-visually-hidden-force" aria-live="polite">${this.announcedCountText}</div> `:""} </div> `}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new c.X(this,"hint","label"),this.localize=new w.c(this),this.announcedCountText="",this.title="",this.name=null,this._value=null,this.defaultValue=this.getAttribute("value")??"",this.size="m",this.appearance="outlined",this.label="",this.hint="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1,this.withCount=!1,this.lastObservedWidth=0}};C.css=[f.A,p.A,v.A,b.A],x([(0,a.wk)()],C.prototype,"announcedCountText",2),x([(0,a.P)(".control")],C.prototype,"input",2),x([(0,a.P)('[part~="base"]')],C.prototype,"base",2),x([(0,a.P)(".size-adjuster")],C.prototype,"sizeAdjuster",2),x([(0,a.MZ)()],C.prototype,"title",2),x([(0,a.MZ)({reflect:!0})],C.prototype,"name",2),x([(0,a.wk)()],C.prototype,"value",1),x([(0,a.MZ)({attribute:"value",reflect:!0})],C.prototype,"defaultValue",2),x([(0,a.MZ)({reflect:!0})],C.prototype,"size",2),x([(0,u.w)("size")],C.prototype,"handleSizeChange",1),x([(0,a.MZ)({reflect:!0})],C.prototype,"appearance",2),x([(0,a.MZ)()],C.prototype,"label",2),x([(0,a.MZ)({attribute:"hint"})],C.prototype,"hint",2),x([(0,a.MZ)()],C.prototype,"placeholder",2),x([(0,a.MZ)({type:Number})],C.prototype,"rows",2),x([(0,a.MZ)({reflect:!0})],C.prototype,"resize",2),x([(0,a.MZ)({type:Boolean})],C.prototype,"disabled",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"readonly",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"required",2),x([(0,a.MZ)({type:Number})],C.prototype,"minlength",2),x([(0,a.MZ)({type:Number})],C.prototype,"maxlength",2),x([(0,a.MZ)()],C.prototype,"autocapitalize",2),x([(0,a.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],C.prototype,"autocorrect",2),x([(0,a.MZ)()],C.prototype,"autocomplete",2),x([(0,a.MZ)({type:Boolean})],C.prototype,"autofocus",2),x([(0,a.MZ)()],C.prototype,"enterkeyhint",2),x([(0,a.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],C.prototype,"spellcheck",2),x([(0,a.MZ)()],C.prototype,"inputmode",2),x([(0,a.MZ)({attribute:"with-label",type:Boolean})],C.prototype,"withLabel",2),x([(0,a.MZ)({attribute:"with-hint",type:Boolean})],C.prototype,"withHint",2),x([(0,a.MZ)({attribute:"with-count",type:Boolean,reflect:!0})],C.prototype,"withCount",2),x([(0,u.w)("rows",{waitUntilFirstUpdate:!0})],C.prototype,"handleRowsChange",1),x([(0,u.w)("value",{waitUntilFirstUpdate:!0})],C.prototype,"handleValueChange",1),C=x([(0,a.EM)("wa-textarea")],C),C.disableWarning?.("change-in-update"),e()}catch(t){e(t)}})},9054(t,e,r){r.d(e,{A:()=>o});var o=r(5124).AH`:host{border-width:0}.textarea{display:grid;align-items:center;margin:0;border:none;outline:0;cursor:inherit;font:inherit;background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);-webkit-appearance:none;outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.textarea:focus-within{outline-color:var(--wa-color-focus)}:host([appearance=outlined]) .textarea{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .textarea{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .textarea{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}textarea{display:block;width:100%;border:none;background:0 0;font:inherit;color:inherit;padding:calc(var(--wa-form-control-padding-block) - ((1lh - 1em)/ 2)) var(--wa-form-control-padding-inline);min-height:calc(var(--wa-form-control-height) - var(--border-width) * 2);box-shadow:none;margin:0}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea:focus{outline:0}.control,.size-adjuster{grid-area:1/1/2/2}.size-adjuster{visibility:hidden;pointer-events:none;opacity:0;padding:0}textarea::-webkit-search-cancel-button,textarea::-webkit-search-decoration,textarea::-webkit-search-results-button,textarea::-webkit-search-results-decoration{-webkit-appearance:none}:host([resize=none]) textarea{resize:none}:host([resize=vertical]) textarea,textarea{resize:vertical}:host([resize=horizontal]) textarea{resize:horizontal}:host([resize=both]) textarea{resize:both}:host([resize=auto]) textarea{height:auto;resize:none;overflow-y:hidden}.footer{display:flex;align-items:baseline;gap:1em}.footer.has-count [part=hint]{flex:1 1 auto;min-width:0}.count{flex:0 0 auto;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller);margin-inline-start:auto}`},26638(t,e,r){r.d(e,{x:()=>o});class o extends Event{constructor(){super("wa-remove",{bubbles:!0,cancelable:!1,composed:!0})}}},32565(t,e,r){r.d(e,{A:()=>o});var o=r(5124).AH`.wa-visually-hidden-force,.wa-visually-hidden-hint::part(hint),.wa-visually-hidden-label::part(form-control-label),.wa-visually-hidden-label::part(label),.wa-visually-hidden:not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`},2045(t,e,r){r.d(e,{q:()=>a});let o={};function a(){return o}},6439(t,e,r){function o(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return 0===r?0:r}}r.d(e,{u:()=>o})},74816(t,e,r){r.d(e,{x:()=>a});r(18111),r(20116),r(61701);var o=r(73420);function a(t,...e){const r=o.w.bind(null,t||e.find(t=>"object"==typeof t));return e.map(r)}},92913(t,e,r){r.d(e,{f:()=>i});var o=r(73420),a=r(83504);function i(t,e,r){const i=(0,a.a)(t,r?.in);return isNaN(e)?(0,o.w)(r?.in||t,NaN):e?(i.setDate(i.getDate()+e),i):i}},9160(t,e,r){r.d(e,{_P:()=>n,my:()=>o,s0:()=>i,w4:()=>a});Math.pow(10,8);const o=6048e5,a=864e5,i=36e5,n=Symbol.for("constructDateFrom")},73420(t,e,r){r.d(e,{w:()=>a});var o=r(9160);function a(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&o._P in t?t[o._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},43382(t,e,r){r.d(e,{A:()=>a});var o=r(73420);function a(t){return(0,o.w)(t,Date.now())}},465(t,e,r){r.d(e,{m:()=>l});var o=r(83504);function a(t){const e=(0,o.a)(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}var i=r(74816),n=r(9160),s=r(35932);function l(t,e,r){const[o,l]=(0,i.x)(r?.in,t,e),c=(0,s.o)(o),h=(0,s.o)(l),u=+c-a(c),d=+h-a(h);return Math.round((u-d)/n.w4)}},6946(t,e,r){r.d(e,{c:()=>i});var o=r(74816),a=r(465);function i(t,e,r){const[i,s]=(0,o.x)(r?.in,t,e),l=n(i,s),c=Math.abs((0,a.m)(i,s));i.setDate(i.getDate()-l*c);const h=l*(c-Number(n(i,s)===-l));return 0===h?0:h}function n(t,e){const r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}},44018(t,e,r){r.d(e,{M:()=>n});var o=r(6439),a=r(74816),i=r(9160);function n(t,e,r){const[n,s]=(0,a.x)(r?.in,t,e),l=(+n-+s)/i.s0;return(0,o.u)(r?.roundingMethod)(l)}},83339(t,e,r){r.d(e,{b:()=>a});var o=r(83504);function a(t,e){return+(0,o.a)(t)-+(0,o.a)(e)}},6116(t,e,r){r.d(e,{o:()=>i});var o=r(6439),a=r(83339);function i(t,e,r){const i=(0,a.b)(t,e)/6e4;return(0,o.u)(r?.roundingMethod)(i)}},12010(t,e,r){r.d(e,{s:()=>a});var o=r(74816);function a(t,e,r){const[a,i]=(0,o.x)(r?.in,t,e);return a.getFullYear()===i.getFullYear()}},81688(t,e,r){r.d(e,{e:()=>n});var o=r(73420),a=r(43382),i=r(12010);function n(t,e){return(0,i.s)((0,o.w)(e?.in||t,t),(0,a.A)(e?.in||t))}},35932(t,e,r){r.d(e,{o:()=>a});var o=r(83504);function a(t,e){const r=(0,o.a)(t,e?.in);return r.setHours(0,0,0,0),r}},52640(t,e,r){r.d(e,{k:()=>i});var o=r(2045),a=r(83504);function i(t,e){const r=(0,o.q)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=(0,a.a)(t,e?.in),s=n.getDay(),l=(s<i?7:0)+s-i;return n.setDate(n.getDate()-l),n.setHours(0,0,0,0),n}},83504(t,e,r){r.d(e,{a:()=>a});var o=r(73420);function a(t,e){return(0,o.w)(e||t,t)}},91450(t,e,r){r.d(e,{T:()=>d});r(18111),r(20116);var o=r(5055),a=r(63937),i=r(37540);class n{disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}constructor(t){this.G=t}}class s{get(){return this.Y}pause(){this.Y??=new Promise(t=>this.Z=t)}resume(){this.Z?.(),this.Y=this.Z=void 0}constructor(){this.Y=void 0,this.Z=void 0}}var l=r(42017);const c=t=>!(0,a.sO)(t)&&"function"==typeof t.then,h=1073741823;class u extends i.Kq{render(...t){return t.find(t=>!c(t))??o.c0}update(t,e){const r=this._$Cbt;let a=r.length;this._$Cbt=e;const i=this._$CK,n=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const o=e[t];if(!c(o))return this._$Cwt=t,o;t<a&&o===r[t]||(this._$Cwt=h,a=0,Promise.resolve(o).then(async t=>{for(;n.get();)await n.get();const e=i.deref();if(void 0!==e){const r=e._$Cbt.indexOf(o);r>-1&&r<e._$Cwt&&(e._$Cwt=r,e.setValue(t))}}))}return o.c0}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}constructor(){super(...arguments),this._$Cwt=h,this._$Cbt=[],this._$CK=new n(this),this._$CX=new s}}const d=(0,l.u$)(u)}};