tinkiet 0.11.2 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):"function"==typeof define&&define.amd?define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js"],e):"object"==typeof exports?exports.tinkiet=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):t.tinkiet=e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/unsafe-html.js"])}(this,(t,e,r,o,a)=>(()=>{"use strict";var i={125:t=>{t.exports=r},161:e=>{e.exports=t},291:t=>{t.exports=o},429:t=>{t.exports=e},968:t=>{t.exports=a}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{NotieLevel:()=>It,TkAccordion:()=>m,TkBadge:()=>x,TkBox:()=>p,TkButton:()=>$,TkCheckbox:()=>_,TkChip:()=>S,TkDialog:()=>j,TkDrawer:()=>T,TkForm:()=>R,TkIcon:()=>q,TkIcons:()=>N,TkListItem:()=>M,TkLoading:()=>Tt,TkNavigationBar:()=>Rt,TkNavigationItem:()=>Pt,TkNotie:()=>Vt,TkPages:()=>Yt,TkRadio:()=>Ft,TkSelect:()=>Wt,TkSlider:()=>Gt,TkSwitch:()=>te,TkTabGroup:()=>re,TkTextarea:()=>ae,TkTextfield:()=>Nt,TkTheme:()=>ne,TkTooltip:()=>le,TkTopbar:()=>qt});var c=s(161),h=s(429);var d=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let p=class extends c.LitElement{constructor(){super(...arguments),this.ripple=!1}static get styles(){return[c.css`
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):"function"==typeof define&&define.amd?define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js"],e):"object"==typeof exports?exports.tinkiet=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):t.tinkiet=e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/unsafe-html.js"])}(this,(t,e,r,o,a)=>(()=>{"use strict";var i={125:t=>{t.exports=r},161:e=>{e.exports=t},291:t=>{t.exports=o},429:t=>{t.exports=e},968:t=>{t.exports=a}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{NotieLevel:()=>It,TkAccordion:()=>m,TkBadge:()=>x,TkBox:()=>p,TkButton:()=>$,TkCheckbox:()=>_,TkChip:()=>S,TkDialog:()=>C,TkDrawer:()=>T,TkForm:()=>R,TkIcon:()=>q,TkIcons:()=>N,TkListItem:()=>M,TkLoading:()=>Tt,TkNavigationBar:()=>Rt,TkNavigationItem:()=>Lt,TkNotie:()=>Kt,TkPages:()=>Yt,TkRadio:()=>Ft,TkSelect:()=>Wt,TkSlider:()=>Gt,TkSwitch:()=>te,TkTabGroup:()=>re,TkTextarea:()=>ae,TkTextfield:()=>Nt,TkTheme:()=>ne,TkTooltip:()=>le,TkTopbar:()=>qt});var c=s(161),h=s(429);var d=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let p=class extends c.LitElement{constructor(){super(...arguments),this.ripple=!1,this.showRipple=t=>{const e=t.clientX,r=t.clientY,{offsetWidth:o,offsetHeight:a}=this,i=document.createElement("span");i.classList.add("ripple","open");const n=document.createElement("span");i.appendChild(n),this.shadowRoot.appendChild(i);const s=this.getBoundingClientRect(),l=2*Math.max(o,o);n.style.width=n.style.height=l+"px",n.style.left=e-s.left-l/2+"px",n.style.top=r-s.top-l/2+"px";n.animate({transform:["scale(0)","scale(1)"]},{easing:"ease-out",fill:"both",duration:500}).onfinish=()=>{i.classList.remove("open");n.animate({opacity:["0.5","0"]},{easing:"ease-in",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{i.remove()})}}},this.hideRipple=t=>{var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll(".ripple:not([open])").forEach(t=>{t.querySelector("span").animate({opacity:["0.5","0"]},{easing:"ease-out",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{t.remove()})}})}}static get styles(){return[c.css`
2
2
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:flex;position:relative;flex-direction:column;box-sizing:border-box}:host([hidden]){display:none}.ripple{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;pointer-events:none}.ripple span{position:absolute;border-radius:50%;background-color:hsla(var(--on-primary), 0.5)}:host([align-content=start]){align-content:flex-start}:host([align-content=end]){align-content:flex-end}:host([align-content=stretch]){align-content:stretch}:host([align-content=center]){align-content:center}:host([align-content=around]){align-content:space-around}:host([align-content=between]){align-content:space-between}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([align-items=stretch]){align-items:stretch}:host([align-items=center]){align-items:center}:host([align-items=baseline]){align-items:baseline}:host([align-self=start]){align-self:flex-start}:host([align-self=end]){align-self:flex-end}:host([align-self=stretch]){align-self:stretch}:host([align-self=center]){align-self:center}:host([background=primary]){background-color:hsl(var(--primary))}:host([color=primary]){color:hsl(var(--primary))}:host([background=on-primary]){background-color:hsl(var(--on-primary))}:host([color=on-primary]){color:hsl(var(--on-primary))}:host([background=secondary]){background-color:hsl(var(--secondary))}:host([color=secondary]){color:hsl(var(--secondary))}:host([background=on-secondary]){background-color:hsl(var(--on-secondary))}:host([color=on-secondary]){color:hsl(var(--on-secondary))}:host([background=tertiary]){background-color:hsl(var(--tertiary))}:host([color=tertiary]){color:hsl(var(--tertiary))}:host([background=on-tertiary]){background-color:hsl(var(--on-tertiary))}:host([color=on-tertiary]){color:hsl(var(--on-tertiary))}:host([background=neutral]){background-color:hsl(var(--neutral))}:host([color=neutral]){color:hsl(var(--neutral))}:host([background=on-neutral]){background-color:hsl(var(--on-neutral))}:host([color=on-neutral]){color:hsl(var(--on-neutral))}:host([background=neutral-variant]){background-color:hsl(var(--neutral-variant))}:host([color=neutral-variant]){color:hsl(var(--neutral-variant))}:host([background=on-neutral-variant]){background-color:hsl(var(--on-neutral-variant))}:host([color=on-neutral-variant]){color:hsl(var(--on-neutral-variant))}:host([background=error]){background-color:hsl(var(--error))}:host([color=error]){color:hsl(var(--error))}:host([background=on-error]){background-color:hsl(var(--on-error))}:host([color=on-error]){color:hsl(var(--on-error))}:host([background=primary-container]){background-color:hsl(var(--primary-container))}:host([color=primary-container]){color:hsl(var(--primary-container))}:host([background=on-primary-container]){background-color:hsl(var(--on-primary-container))}:host([color=on-primary-container]){color:hsl(var(--on-primary-container))}:host([background=secondary-container]){background-color:hsl(var(--secondary-container))}:host([color=secondary-container]){color:hsl(var(--secondary-container))}:host([background=on-secondary-container]){background-color:hsl(var(--on-secondary-container))}:host([color=on-secondary-container]){color:hsl(var(--on-secondary-container))}:host([background=tertiary-container]){background-color:hsl(var(--tertiary-container))}:host([color=tertiary-container]){color:hsl(var(--tertiary-container))}:host([background=on-tertiary-container]){background-color:hsl(var(--on-tertiary-container))}:host([color=on-tertiary-container]){color:hsl(var(--on-tertiary-container))}:host([background=neutral-container]){background-color:hsl(var(--neutral-container))}:host([color=neutral-container]){color:hsl(var(--neutral-container))}:host([background=on-neutral-container]){background-color:hsl(var(--on-neutral-container))}:host([color=on-neutral-container]){color:hsl(var(--on-neutral-container))}:host([background=neutral-variant-container]){background-color:hsl(var(--neutral-variant-container))}:host([color=neutral-variant-container]){color:hsl(var(--neutral-variant-container))}:host([background=on-neutral-variant-container]){background-color:hsl(var(--on-neutral-variant-container))}:host([color=on-neutral-variant-container]){color:hsl(var(--on-neutral-variant-container))}:host([background=error-container]){background-color:hsl(var(--error-container))}:host([color=error-container]){color:hsl(var(--error-container))}:host([background=on-error-container]){background-color:hsl(var(--on-error-container))}:host([color=on-error-container]){color:hsl(var(--on-error-container))}:host([background=primary-0]){background-color:hsl(var(--primary-0))}:host([color=primary-0]){color:hsl(var(--primary-0))}:host([background=surface]){background-color:hsl(var(--surface))}:host([color=surface]){color:hsl(var(--surface))}:host([background=on-surface]){background-color:hsl(var(--on-surface))}:host([color=on-surface]){color:hsl(var(--on-surface))}:host([background=surface-dim]){background-color:hsl(var(--surface-dim))}:host([color=surface-dim]){color:hsl(var(--surface-dim))}:host([background=surface-bright]){background-color:hsl(var(--surface-bright))}:host([color=surface-bright]){color:hsl(var(--surface-bright))}:host([background=surface-container-lowest]){background-color:hsl(var(--surface-container-lowest))}:host([color=surface-container-lowest]){color:hsl(var(--surface-container-lowest))}:host([background=surface-container-low]){background-color:hsl(var(--surface-container-low))}:host([color=surface-container-low]){color:hsl(var(--surface-container-low))}:host([background=surface-container]){background-color:hsl(var(--surface-container))}:host([color=surface-container]){color:hsl(var(--surface-container))}:host([background=surface-container-high]){background-color:hsl(var(--surface-container-high))}:host([color=surface-container-high]){color:hsl(var(--surface-container-high))}:host([background=surface-container-highest]){background-color:hsl(var(--surface-container-highest))}:host([color=surface-container-highest]){color:hsl(var(--surface-container-highest))}:host([background=surface-variant]){background-color:hsl(var(--surface-variant))}:host([color=surface-variant]){color:hsl(var(--surface-variant))}:host([background=on-surface-variant]){background-color:hsl(var(--on-surface-variant))}:host([color=on-surface-variant]){color:hsl(var(--on-surface-variant))}:host([background=outline]){background-color:hsl(var(--outline))}:host([color=outline]){color:hsl(var(--outline))}:host([background=outline-variant]){background-color:hsl(var(--outline-variant))}:host([color=outline-variant]){color:hsl(var(--outline-variant))}:host([background=inverse-surface]){background-color:hsl(var(--inverse-surface))}:host([color=inverse-surface]){color:hsl(var(--inverse-surface))}:host([background=inverse-on-surface]){background-color:hsl(var(--inverse-on-surface))}:host([color=inverse-on-surface]){color:hsl(var(--inverse-on-surface))}:host([background=background]){background-color:hsl(var(--background))}:host([color=background]){color:hsl(var(--background))}:host([background=on-background]){background-color:hsl(var(--on-background))}:host([color=on-background]){color:hsl(var(--on-background))}:host([background=shadow]){background-color:hsl(var(--shadow))}:host([color=shadow]){color:hsl(var(--shadow))}:host([background=primary-10]){background-color:hsl(var(--primary-10))}:host([color=primary-10]){color:hsl(var(--primary-10))}:host([background=primary-20]){background-color:hsl(var(--primary-20))}:host([color=primary-20]){color:hsl(var(--primary-20))}:host([background=primary-30]){background-color:hsl(var(--primary-30))}:host([color=primary-30]){color:hsl(var(--primary-30))}:host([background=primary-40]){background-color:hsl(var(--primary-40))}:host([color=primary-40]){color:hsl(var(--primary-40))}:host([background=primary-50]){background-color:hsl(var(--primary-50))}:host([color=primary-50]){color:hsl(var(--primary-50))}:host([background=primary-60]){background-color:hsl(var(--primary-60))}:host([color=primary-60]){color:hsl(var(--primary-60))}:host([background=primary-70]){background-color:hsl(var(--primary-70))}:host([color=primary-70]){color:hsl(var(--primary-70))}:host([background=primary-80]){background-color:hsl(var(--primary-80))}:host([color=primary-80]){color:hsl(var(--primary-80))}:host([background=primary-90]){background-color:hsl(var(--primary-90))}:host([color=primary-90]){color:hsl(var(--primary-90))}:host([background=primary-95]){background-color:hsl(var(--primary-95))}:host([color=primary-95]){color:hsl(var(--primary-95))}:host([background=primary-99]){background-color:hsl(var(--primary-99))}:host([color=primary-99]){color:hsl(var(--primary-99))}:host([background=primary-100]){background-color:hsl(var(--primary-100))}:host([color=primary-100]){color:hsl(var(--primary-100))}:host([background=secondary-0]){background-color:hsl(var(--secondary-0))}:host([color=secondary-0]){color:hsl(var(--secondary-0))}:host([background=secondary-10]){background-color:hsl(var(--secondary-10))}:host([color=secondary-10]){color:hsl(var(--secondary-10))}:host([background=secondary-20]){background-color:hsl(var(--secondary-20))}:host([color=secondary-20]){color:hsl(var(--secondary-20))}:host([background=secondary-30]){background-color:hsl(var(--secondary-30))}:host([color=secondary-30]){color:hsl(var(--secondary-30))}:host([background=secondary-40]){background-color:hsl(var(--secondary-40))}:host([color=secondary-40]){color:hsl(var(--secondary-40))}:host([background=secondary-50]){background-color:hsl(var(--secondary-50))}:host([color=secondary-50]){color:hsl(var(--secondary-50))}:host([background=secondary-60]){background-color:hsl(var(--secondary-60))}:host([color=secondary-60]){color:hsl(var(--secondary-60))}:host([background=secondary-70]){background-color:hsl(var(--secondary-70))}:host([color=secondary-70]){color:hsl(var(--secondary-70))}:host([background=secondary-80]){background-color:hsl(var(--secondary-80))}:host([color=secondary-80]){color:hsl(var(--secondary-80))}:host([background=secondary-90]){background-color:hsl(var(--secondary-90))}:host([color=secondary-90]){color:hsl(var(--secondary-90))}:host([background=secondary-100]){background-color:hsl(var(--secondary-100))}:host([color=secondary-100]){color:hsl(var(--secondary-100))}:host([background=tertiary-0]){background-color:hsl(var(--tertiary-0))}:host([color=tertiary-0]){color:hsl(var(--tertiary-0))}:host([background=tertiary-10]){background-color:hsl(var(--tertiary-10))}:host([color=tertiary-10]){color:hsl(var(--tertiary-10))}:host([background=tertiary-20]){background-color:hsl(var(--tertiary-20))}:host([color=tertiary-20]){color:hsl(var(--tertiary-20))}:host([background=tertiary-30]){background-color:hsl(var(--tertiary-30))}:host([color=tertiary-30]){color:hsl(var(--tertiary-30))}:host([background=tertiary-40]){background-color:hsl(var(--tertiary-40))}:host([color=tertiary-40]){color:hsl(var(--tertiary-40))}:host([background=tertiary-50]){background-color:hsl(var(--tertiary-50))}:host([color=tertiary-50]){color:hsl(var(--tertiary-50))}:host([background=tertiary-60]){background-color:hsl(var(--tertiary-60))}:host([color=tertiary-60]){color:hsl(var(--tertiary-60))}:host([background=tertiary-70]){background-color:hsl(var(--tertiary-70))}:host([color=tertiary-70]){color:hsl(var(--tertiary-70))}:host([background=tertiary-80]){background-color:hsl(var(--tertiary-80))}:host([color=tertiary-80]){color:hsl(var(--tertiary-80))}:host([background=tertiary-90]){background-color:hsl(var(--tertiary-90))}:host([color=tertiary-90]){color:hsl(var(--tertiary-90))}:host([background=tertiary-100]){background-color:hsl(var(--tertiary-100))}:host([color=tertiary-100]){color:hsl(var(--tertiary-100))}:host([background=neutral-0]){background-color:hsl(var(--neutral-0))}:host([color=neutral-0]){color:hsl(var(--neutral-0))}:host([background=neutral-10]){background-color:hsl(var(--neutral-10))}:host([color=neutral-10]){color:hsl(var(--neutral-10))}:host([background=neutral-20]){background-color:hsl(var(--neutral-20))}:host([color=neutral-20]){color:hsl(var(--neutral-20))}:host([background=neutral-30]){background-color:hsl(var(--neutral-30))}:host([color=neutral-30]){color:hsl(var(--neutral-30))}:host([background=neutral-40]){background-color:hsl(var(--neutral-40))}:host([color=neutral-40]){color:hsl(var(--neutral-40))}:host([background=neutral-50]){background-color:hsl(var(--neutral-50))}:host([color=neutral-50]){color:hsl(var(--neutral-50))}:host([background=neutral-60]){background-color:hsl(var(--neutral-60))}:host([color=neutral-60]){color:hsl(var(--neutral-60))}:host([background=neutral-70]){background-color:hsl(var(--neutral-70))}:host([color=neutral-70]){color:hsl(var(--neutral-70))}:host([background=neutral-80]){background-color:hsl(var(--neutral-80))}:host([color=neutral-80]){color:hsl(var(--neutral-80))}:host([background=neutral-90]){background-color:hsl(var(--neutral-90))}:host([color=neutral-90]){color:hsl(var(--neutral-90))}:host([background=neutral-100]){background-color:hsl(var(--neutral-100))}:host([color=neutral-100]){color:hsl(var(--neutral-100))}:host([background=error-0]){background-color:hsl(var(--error-0))}:host([color=error-0]){color:hsl(var(--error-0))}:host([background=error-10]){background-color:hsl(var(--error-10))}:host([color=error-10]){color:hsl(var(--error-10))}:host([background=error-20]){background-color:hsl(var(--error-20))}:host([color=error-20]){color:hsl(var(--error-20))}:host([background=error-30]){background-color:hsl(var(--error-30))}:host([color=error-30]){color:hsl(var(--error-30))}:host([background=error-40]){background-color:hsl(var(--error-40))}:host([color=error-40]){color:hsl(var(--error-40))}:host([background=error-50]){background-color:hsl(var(--error-50))}:host([color=error-50]){color:hsl(var(--error-50))}:host([background=error-60]){background-color:hsl(var(--error-60))}:host([color=error-60]){color:hsl(var(--error-60))}:host([background=error-70]){background-color:hsl(var(--error-70))}:host([color=error-70]){color:hsl(var(--error-70))}:host([background=error-80]){background-color:hsl(var(--error-80))}:host([color=error-80]){color:hsl(var(--error-80))}:host([background=error-90]){background-color:hsl(var(--error-90))}:host([color=error-90]){color:hsl(var(--error-90))}:host([background=error-100]){background-color:hsl(var(--error-100))}:host([color=error-100]){color:hsl(var(--error-100))}:host([direction=column]){flex-direction:column}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row-reverse}:host([direction=column-reverse]){flex-direction:column-reverse}:host([text=center]){text-align:center}:host([text=justify]){text-align:justify}:host([text=left]){text-align:left}:host([text=right]){text-align:right}:host([weight="100"]){font-weight:100}:host([weight="200"]){font-weight:200}:host([weight="300"]){font-weight:300}:host([weight="400"]){font-weight:400}:host([weight="500"]){font-weight:500}:host([weight="600"]){font-weight:600}:host([weight="700"]){font-weight:700}:host([weight="800"]){font-weight:800}:host([weight="900"]){font-weight:900}:host([weight=lighter]){font-weight:lighter}:host([weight=bold]){font-weight:bold}:host([weight=bolder]){font-weight:bolder}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row}:host([elevation="1"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15))}:host([elevation="2"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15))}:host([elevation="3"]){box-shadow:var(--box-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}:host([fill=horizontal]){width:100%}:host([fill=vertical]){height:100%}:host([fill=true]){width:100%;height:100%}:host([flex=grow]){flex:1 0}:host([flex=shrink]){flex:0 1}:host([flex=true]){flex:1 1}:host([flex=false]){flex:0 0}:host([gap=xsmall]) ::slotted(*),:host([gap=xsmall][direction=column]) ::slotted(*){margin:var(--spacing-xs, 0.25rem) 0}:host([gap=xsmall][direction=row]) ::slotted(*){margin:0 var(--spacing-xs, 0.25rem)}:host([margin=xsmall]){margin:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([vmargin=xsmall]){margin-top:var(--box-margin, var(--spacing-xs, 0.25rem));margin-bottom:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([hmargin=xsmall]){margin-left:var(--box-margin, var(--spacing-xs, 0.25rem));margin-right:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([margin="xsmall auto"]){margin:var(--box-margin, var(--spacing-xs, 0.25rem)) auto}:host([margin="auto xsmall"]){margin:auto var(--box-margin, var(--spacing-xs, 0.25rem))}:host([padding=xsmall]){padding:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([vpadding=xsmall]){padding-top:var(--box-padding, var(--spacing-xs, 0.25rem));padding-bottom:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([hpadding=xsmall]){padding-left:var(--box-padding, var(--spacing-xs, 0.25rem));padding-right:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([gap=small]) ::slotted(*),:host([gap=small][direction=column]) ::slotted(*){margin:var(--spacing-s, 0.5rem) 0}:host([gap=small][direction=row]) ::slotted(*){margin:0 var(--spacing-s, 0.5rem)}:host([margin=small]){margin:var(--box-margin, var(--spacing-s, 0.5rem))}:host([vmargin=small]){margin-top:var(--box-margin, var(--spacing-s, 0.5rem));margin-bottom:var(--box-margin, var(--spacing-s, 0.5rem))}:host([hmargin=small]){margin-left:var(--box-margin, var(--spacing-s, 0.5rem));margin-right:var(--box-margin, var(--spacing-s, 0.5rem))}:host([margin="small auto"]){margin:var(--box-margin, var(--spacing-s, 0.5rem)) auto}:host([margin="auto small"]){margin:auto var(--box-margin, var(--spacing-s, 0.5rem))}:host([padding=small]){padding:var(--box-padding, var(--spacing-s, 0.5rem))}:host([vpadding=small]){padding-top:var(--box-padding, var(--spacing-s, 0.5rem));padding-bottom:var(--box-padding, var(--spacing-s, 0.5rem))}:host([hpadding=small]){padding-left:var(--box-padding, var(--spacing-s, 0.5rem));padding-right:var(--box-padding, var(--spacing-s, 0.5rem))}:host([gap=medium]) ::slotted(*),:host([gap=medium][direction=column]) ::slotted(*){margin:var(--spacing-m, 1rem) 0}:host([gap=medium][direction=row]) ::slotted(*){margin:0 var(--spacing-m, 1rem)}:host([margin=medium]){margin:var(--box-margin, var(--spacing-m, 1rem))}:host([vmargin=medium]){margin-top:var(--box-margin, var(--spacing-m, 1rem));margin-bottom:var(--box-margin, var(--spacing-m, 1rem))}:host([hmargin=medium]){margin-left:var(--box-margin, var(--spacing-m, 1rem));margin-right:var(--box-margin, var(--spacing-m, 1rem))}:host([margin="medium auto"]){margin:var(--box-margin, var(--spacing-m, 1rem)) auto}:host([margin="auto medium"]){margin:auto var(--box-margin, var(--spacing-m, 1rem))}:host([padding=medium]){padding:var(--box-padding, var(--spacing-m, 1rem))}:host([vpadding=medium]){padding-top:var(--box-padding, var(--spacing-m, 1rem));padding-bottom:var(--box-padding, var(--spacing-m, 1rem))}:host([hpadding=medium]){padding-left:var(--box-padding, var(--spacing-m, 1rem));padding-right:var(--box-padding, var(--spacing-m, 1rem))}:host([gap=large]) ::slotted(*),:host([gap=large][direction=column]) ::slotted(*){margin:var(--spacing-l, 1.25rem) 0}:host([gap=large][direction=row]) ::slotted(*){margin:0 var(--spacing-l, 1.25rem)}:host([margin=large]){margin:var(--box-margin, var(--spacing-l, 1.25rem))}:host([vmargin=large]){margin-top:var(--box-margin, var(--spacing-l, 1.25rem));margin-bottom:var(--box-margin, var(--spacing-l, 1.25rem))}:host([hmargin=large]){margin-left:var(--box-margin, var(--spacing-l, 1.25rem));margin-right:var(--box-margin, var(--spacing-l, 1.25rem))}:host([margin="large auto"]){margin:var(--box-margin, var(--spacing-l, 1.25rem)) auto}:host([margin="auto large"]){margin:auto var(--box-margin, var(--spacing-l, 1.25rem))}:host([padding=large]){padding:var(--box-padding, var(--spacing-l, 1.25rem))}:host([vpadding=large]){padding-top:var(--box-padding, var(--spacing-l, 1.25rem));padding-bottom:var(--box-padding, var(--spacing-l, 1.25rem))}:host([hpadding=large]){padding-left:var(--box-padding, var(--spacing-l, 1.25rem));padding-right:var(--box-padding, var(--spacing-l, 1.25rem))}:host([gap=xlarge]) ::slotted(*),:host([gap=xlarge][direction=column]) ::slotted(*){margin:var(--spacing-xl, 2rem) 0}:host([gap=xlarge][direction=row]) ::slotted(*){margin:0 var(--spacing-xl, 2rem)}:host([margin=xlarge]){margin:var(--box-margin, var(--spacing-xl, 2rem))}:host([vmargin=xlarge]){margin-top:var(--box-margin, var(--spacing-xl, 2rem));margin-bottom:var(--box-margin, var(--spacing-xl, 2rem))}:host([hmargin=xlarge]){margin-left:var(--box-margin, var(--spacing-xl, 2rem));margin-right:var(--box-margin, var(--spacing-xl, 2rem))}:host([margin="xlarge auto"]){margin:var(--box-margin, var(--spacing-xl, 2rem)) auto}:host([margin="auto xlarge"]){margin:auto var(--box-margin, var(--spacing-xl, 2rem))}:host([padding=xlarge]){padding:var(--box-padding, var(--spacing-xl, 2rem))}:host([vpadding=xlarge]){padding-top:var(--box-padding, var(--spacing-xl, 2rem));padding-bottom:var(--box-padding, var(--spacing-xl, 2rem))}:host([hpadding=xlarge]){padding-left:var(--box-padding, var(--spacing-xl, 2rem));padding-right:var(--box-padding, var(--spacing-xl, 2rem))}:host([font=xsmall]),:host([size=xsmall]){font-size:var(--box-font-size, var(--font-size-xs, 0.625rem))}:host([font=small]),:host([size=small]){font-size:var(--box-font-size, var(--font-size-s, 0.875rem))}:host([font=medium]),:host([size=medium]){font-size:var(--box-font-size, var(--font-size-m, 1rem))}:host([font=large]),:host([size=large]){font-size:var(--box-font-size, var(--font-size-l, 1.25rem))}:host([font=xlarge]),:host([size=xlarge]){font-size:var(--box-font-size, var(--font-size-xl, 1.5rem))}:host([font=xxlarge]),:host([size=xxlarge]){font-size:var(--box-font-size, var(--font-size-xxl, 2.25rem))}:host([justify=start]){justify-content:flex-start}:host([justify=end]){justify-content:flex-end}:host([justify=stretch]){justify-content:stretch}:host([justify=baseline]){justify-content:baseline}:host([justify=center]){justify-content:center}:host([justify=around]){justify-content:space-around}:host([justify=between]){justify-content:space-between}:host([justify=evenly]){justify-content:space-evenly}:host([overflow=auto]){overflow:auto}:host([overflow=hidden]){overflow:hidden}:host([overflow=scroll]){overflow:scroll}:host([overflow=visible]){overflow:visible}:host([radius=none]){border-radius:var(--box-border-radius, 0)}:host([radius=small]){border-radius:var(--box-border-radius, var(--border-radius-small, 0.125rem))}:host([radius=medium]){border-radius:var(--box-border-radius, var(--border-radius-medium, 0.25rem))}:host([radius=large]){border-radius:var(--box-border-radius, var(--border-radius-large, 0.5rem))}:host([radius=xlarge]){border-radius:var(--box-border-radius, var(--border-radius-x-large, 1rem))}:host([radius=circle]){border-radius:var(--box-border-radius, var(--border-radius-circle, 50%))}:host([radius=pill]){border-radius:var(--box-border-radius, var(--border-radius-pill, 9999px))}:host([max-width=xxsmall]){max-width:var(--box-max-width, var(--size-xxs, 2rem))}:host([width=xxsmall]){width:var(--box-width, var(--size-xxs, 2rem))}:host([max-height=xxsmall]){max-height:var(--box-max-height, var(--size-xxs, 2rem))}:host([height=xxsmall]){height:var(--box-height, var(--size-xxs, 2rem))}:host([max-width=xsmall]){max-width:var(--box-max-width, var(--size-xs, 4rem))}:host([width=xsmall]){width:var(--box-width, var(--size-xs, 4rem))}:host([max-height=xsmall]){max-height:var(--box-max-height, var(--size-xs, 4rem))}:host([height=xsmall]){height:var(--box-height, var(--size-xs, 4rem))}:host([max-width=small]){max-width:var(--box-max-width, var(--size-s, 8rem))}:host([width=small]){width:var(--box-width, var(--size-s, 8rem))}:host([max-height=small]){max-height:var(--box-max-height, var(--size-s, 8rem))}:host([height=small]){height:var(--box-height, var(--size-s, 8rem))}:host([max-width=medium]){max-width:var(--box-max-width, var(--size-m, 16rem))}:host([width=medium]){width:var(--box-width, var(--size-m, 16rem))}:host([max-height=medium]){max-height:var(--box-max-height, var(--size-m, 16rem))}:host([height=medium]){height:var(--box-height, var(--size-m, 16rem))}:host([max-width=large]){max-width:var(--box-max-width, var(--size-l, 32rem))}:host([width=large]){width:var(--box-width, var(--size-l, 32rem))}:host([max-height=large]){max-height:var(--box-max-height, var(--size-l, 32rem))}:host([height=large]){height:var(--box-height, var(--size-l, 32rem))}:host([max-width=xlarge]){max-width:var(--box-max-width, var(--size-xl, 48rem))}:host([width=xlarge]){width:var(--box-width, var(--size-xl, 48rem))}:host([max-height=xlarge]){max-height:var(--box-max-height, var(--size-xl, 48rem))}:host([height=xlarge]){height:var(--box-height, var(--size-xl, 48rem))}:host([max-width=xxlarge]){max-width:var(--box-max-width, var(--size-xxl, 64rem))}:host([width=xxlarge]){width:var(--box-width, var(--size-xxl, 64rem))}:host([max-height=xxlarge]){max-height:var(--box-max-height, var(--size-xxl, 64rem))}:host([height=xxlarge]){height:var(--box-height, var(--size-xxl, 64rem))}:host([wrap=true]){flex-wrap:wrap}:host([wrap=reverse]){flex-wrap:wrap-reverse}')}
3
3
  `]}render(){return c.html`
4
4
  <slot></slot>
5
- `}connectedCallback(){this.ripple&&(this.addEventListener("mousedown",this.showRipple.bind(this),{passive:!0}),this.addEventListener("mouseup",this.hideRipple.bind(this),{passive:!0})),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("mousedown",this.showRipple),this.addEventListener("mouseup",this.hideRipple),super.disconnectedCallback()}updated(t){super.updated(t)}showRipple(t){const e=t.clientX,r=t.clientY,{offsetWidth:o,offsetHeight:a}=this,i=document.createElement("span");i.classList.add("ripple","open");const n=document.createElement("span");i.appendChild(n),this.shadowRoot.appendChild(i);const s=this.getBoundingClientRect(),l=2*Math.max(o,o);n.style.width=n.style.height=l+"px",n.style.left=e-s.left-l/2+"px",n.style.top=r-s.top-l/2+"px";n.animate({transform:["scale(0)","scale(1)"]},{easing:"ease-out",fill:"both",duration:500}).onfinish=()=>{i.classList.remove("open");n.animate({opacity:["0.5","0"]},{easing:"ease-in",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{i.remove()})}}}hideRipple(t){var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll(".ripple:not([open])").forEach(t=>{t.querySelector("span").animate({opacity:["0.5","0"]},{easing:"ease-out",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{t.remove()})}})}};function u(t=10){return`_${Math.random().toString(36).substr(2,t)}`}d([(0,h.property)({type:Boolean})],p.prototype,"ripple",void 0),d([(0,h.property)()],p.prototype,"background",void 0),d([(0,h.property)()],p.prototype,"color",void 0),p=d([(0,h.customElement)("tk-box")],p);var v=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class b extends p{constructor(){super(...arguments),this._id=u(),this.disabled=!1}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}}v([(0,h.property)({type:Boolean})],b.prototype,"_id",void 0),v([(0,h.property)({type:Boolean})],b.prototype,"disabled",void 0);var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let m=class extends b{static get styles(){return[...p.styles,c.css`
5
+ `}connectedCallback(){this.ripple&&(this.addEventListener("mousedown",this.showRipple,{passive:!0}),this.addEventListener("mouseup",this.hideRipple,{passive:!0})),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("mousedown",this.showRipple),this.removeEventListener("mouseup",this.hideRipple),super.disconnectedCallback()}updated(t){super.updated(t)}};function u(t=10){return`_${Math.random().toString(36).substr(2,t)}`}d([(0,h.property)({type:Boolean})],p.prototype,"ripple",void 0),d([(0,h.property)()],p.prototype,"background",void 0),d([(0,h.property)()],p.prototype,"color",void 0),p=d([(0,h.customElement)("tk-box")],p);var v=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class b extends p{constructor(){super(...arguments),this._id=u(),this.disabled=!1}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}}v([(0,h.property)({type:Boolean})],b.prototype,"_id",void 0),v([(0,h.property)({type:Boolean})],b.prototype,"disabled",void 0);var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let m=class extends b{static get styles(){return[...p.styles,c.css`
6
6
  ${(0,c.unsafeCSS)('\ufeff*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .header{position:relative;overflow:hidden;color:hsl(var(--on-surface));background-color:hsl(var(--surface-container-low));padding:16px;border:1px solid hsl(var(--outline-variant));border-radius:12px;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);gap:12px;cursor:pointer;transition:background-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),box-shadow var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),border-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host .header:after{transition:transform .3s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));content:"▼";display:inline-block;font-size:12px;margin-inline-start:8px}:host .header:before{content:"";position:absolute;inset:0;background:hsl(var(--on-surface));opacity:0;transition:opacity var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));pointer-events:none}:host .header .before{width:fit-content}:host .header .header-content{flex:1}:host .content{width:100%;margin:4px 0 0;padding:0 16px;opacity:0;visibility:hidden;max-height:0;overflow:hidden;transform:translateY(-8px);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));background:hsl(var(--surface-container-lowest));border-radius:0 0 12px 12px}:host h3,:host h5{margin:0}:host .header:hover:before{opacity:.08}:host .header:active:before{opacity:.12}:host .header:focus-visible{outline:none;border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15),0 0 0 3px hsl(var(--primary)/0.2)}:host([checked]) .header{background-color:hsl(var(--primary-container));color:hsl(var(--on-primary-container));border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}:host([checked]) .header:after{transform:rotate(180deg)}:host([checked]) .header:before{background:hsl(var(--on-primary-container))}:host([checked]) .content{opacity:1;visibility:visible;max-height:var(--tk-accordion-max-height, 1000px);padding:12px 16px;transform:translateY(0);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host([pill]) .header{border-radius:9999px}@media(prefers-reduced-motion: reduce){:host .header:after{transition:none}:host .header:before{transition:none}:host .header{transition:none}:host .content{transition:none}}')}
7
7
  `]}constructor(){super(),this.checked=!1,this.rippleHeader=!1,this.handleClick=this.handleClick.bind(this)}render(){return c.html`
8
8
  <tk-box margin="small">
@@ -30,7 +30,7 @@
30
30
  `}render(){const t=0===this.label.trim().length;return c.html`
31
31
  <slot></slot>
32
32
  <div class=${(0,y.classMap)({badge:!0,empty:t})}>${this.label}</div>
33
- `}};f([(0,h.property)({type:String})],x.prototype,"label",void 0),x=f([(0,h.customElement)("tk-badge")],x);var k=s(291);var w=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let $=class extends p{constructor(){super(...arguments),this._id=u(),this.href=null,this.type="button",this.disabled=!1,this.fab=!1,this.ripple=!0}static get styles(){return[...p.styles,c.css`
33
+ `}};f([(0,h.property)({type:String})],x.prototype,"label",void 0),x=f([(0,h.customElement)("tk-badge")],x);var k=s(291);var w=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let $=class extends p{constructor(){super(...arguments),this._id=u(),this.href=null,this.type="button",this.disabled=!1,this.fab=!1,this.ripple=!0,this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=t=>{var e;this.href&&t.isTrusted?(t.stopPropagation(),t.preventDefault(),this.$ahref.click()):(t.isTrusted&&"submit"==this.type||"reset"==this.type)&&(null===(e=this.querySelector("button"))||void 0===e||e.click())}}static get styles(){return[...p.styles,c.css`
34
34
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;justify-content:center;flex-shrink:0;flex-direction:row;align-items:center;position:relative;cursor:pointer;text-align:center;text-decoration:none;vertical-align:middle;text-overflow:ellipsis;user-select:none;overflow:hidden;border-radius:20px;height:40px;width:40px;color:hsl(var(--primary))}:host tk-icon{width:24px;height:24px}:host([extended]){width:auto}:host([extended]) .content{display:flex;align-items:center;pointer-events:none;font-family:Roboto,sans-serif;line-height:20px;font-size:var(--font-size, 14px);font-weight:500;margin:0 24px}:host([extended]) .content.has-icon{margin:0 24px 0 8px}:host([extended]) tk-icon{margin-left:16px;width:18px;height:18px}:host(:hover),:host(:focus){background-color:hsla(var(--primary), 0.3);outline:none}:host([elevated]){background-color:hsl(var(--surface-container-low));color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:host([elevated]:hover),:host([elevated]:focus){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);background-color:hsl(var(--surface-container-high));outline:none}:host([filled]){background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([filled]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--primary), 0.6)}:host([filled]:focus){background-color:hsla(var(--primary), 0.6);outline:none}:host([tonal]){background-color:hsl(var(--secondary-container));color:hsl(var(--on-secondary-container))}:host([tonal]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--on-secondary-container), 0.3)}:host([tonal]:focus){background-color:hsla(var(--on-secondary-container), 0.3);outline:none}:host([outlined]){background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));color:hsl(var(--primary))}:host([outlined]:hover){background-color:hsla(var(--primary), 0.08);color:hsl(var(--primary))}:host([outlined]:focus){background-color:hsla(var(--primary), 0.12);border-color:hsl(var(--primary));outline:none}:host([fab]){background-color:hsl(var(--primary));display:inline-flex;justify-content:center;align-items:center;color:hsl(var(--on-primary));box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);width:56px;height:56px;padding:12px;border-radius:16px}:host([fab]) tk-icon{margin-left:0;width:24px;height:24px}:host([fab]) .content{margin:0}:host([fab][extended]){width:auto;min-width:80px}:host([fab][extended]) .content{margin:0 24px}:host([fab][extended]) .content.has-icon{margin:0 24px 0 8px}:host([fab][extended]) tk-icon{margin-left:16px}:host([fab]:hover){background-color:hsla(var(--on-primary-container), 0.3)}:host([fab]:focus){box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);background-color:hsla(var(--on-primary-container), 0.3);outline:none}:host([fab][small]){width:40px;height:40px;border-radius:12px}:host([fab][small]) tk-icon{width:24px;height:24px}:host([fab][large]){width:96px;height:96px;border-radius:28px}:host([fab][large]) tk-icon{width:36px;height:36px}:host([disabled]){pointer-events:none;cursor:not-allowed;background-color:hsla(var(--on-surface), 0.12);box-shadow:none;opacity:.5;color:hsl(var(--on-surface))}")}
35
35
  `]}render(){return c.html`
36
36
  ${this.iconPath?c.html`
@@ -45,7 +45,7 @@
45
45
  <a tabindex="-1" hidden id="ahref" href="${this.href}" target="${(0,k.ifDefined)(this.target)}" rel="noreferrer"></a>
46
46
  `:""}
47
47
  <button id=${this._id} hidden type="${(0,k.ifDefined)(this.type)}"></button>
48
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}firstUpdated(){"submit"!=this.type&&"reset"!=this.type||this.appendChild(this.$button)}handleClick(t){var e;this.href&&t.isTrusted?(t.stopPropagation(),t.preventDefault(),this.$ahref.click()):(t.isTrusted&&"submit"==this.type||"reset"==this.type)&&(null===(e=this.querySelector("button"))||void 0===e||e.click())}slotChanged(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),r=null==e?void 0:e.assignedNodes({flatten:!0});r&&r.length>0?this.setAttribute("extended",""):this.removeAttribute("extended")}};w([(0,h.property)()],$.prototype,"href",void 0),w([(0,h.property)()],$.prototype,"target",void 0),w([(0,h.property)()],$.prototype,"type",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"disabled",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"fab",void 0),w([(0,h.property)({type:String})],$.prototype,"iconPath",void 0),w([(0,h.property)()],$.prototype,"ripple",void 0),w([(0,h.query)("#ahref")],$.prototype,"$ahref",void 0),w([(0,h.query)("button")],$.prototype,"$button",void 0),$=w([(0,h.customElement)("tk-button")],$);var z=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let _=class extends c.LitElement{constructor(){super(),this._id=u(),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.handleClick=this.handleClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){const t={state:!0,disabled:this.disabled};return c.html`
48
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}firstUpdated(){"submit"!=this.type&&"reset"!=this.type||this.appendChild(this.$button)}slotChanged(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),r=null==e?void 0:e.assignedNodes({flatten:!0});r&&r.length>0?this.setAttribute("extended",""):this.removeAttribute("extended")}};w([(0,h.property)()],$.prototype,"href",void 0),w([(0,h.property)()],$.prototype,"target",void 0),w([(0,h.property)()],$.prototype,"type",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"disabled",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"fab",void 0),w([(0,h.property)({type:String})],$.prototype,"iconPath",void 0),w([(0,h.property)()],$.prototype,"ripple",void 0),w([(0,h.query)("#ahref")],$.prototype,"$ahref",void 0),w([(0,h.query)("button")],$.prototype,"$button",void 0),$=w([(0,h.customElement)("tk-button")],$);var z=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let _=class extends c.LitElement{constructor(){super(),this._id=u(),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.handleClick=this.handleClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){const t={state:!0,disabled:this.disabled};return c.html`
49
49
  <tk-box direction="row" align-items="center" @click=${this.handleClick}>
50
50
  <tk-box ripple tabindex="${this.disabled?-1:0}" class=${(0,y.classMap)(t)} @keydown=${this.onKeyDown}>
51
51
  <div class="checkbox">
@@ -80,16 +80,16 @@
80
80
  </span>
81
81
 
82
82
  </div>
83
- `}};S.styles=c.css`${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.chip{display:inline-flex;align-items:center;border-radius:10px;padding:3px 10px;background:hsl(var(--surface-container-highest));border:1px solid hsl(var(--outline-variant));font-size:13px;height:30px;gap:6px;line-height:1;cursor:pointer}.chip.disabled{opacity:.4;pointer-events:none}.chip .leading{display:inline-flex;align-items:center}.chip .leading slot::slotted(*){display:inline-flex;align-items:center}.chip .label{white-space:nowrap;display:inline-flex;align-items:center;line-height:1}.chip .trailing{display:inline-flex;align-items:center}.chip .trailing slot::slotted(*){display:inline-flex;align-items:center}.chip .trailing .remove{background:none;border:none;cursor:pointer;font-size:13px;line-height:1;opacity:.7}.chip .trailing .remove:hover{opacity:1}")}`,A([(0,h.property)({type:Boolean})],S.prototype,"disabled",void 0),A([(0,h.property)({type:Boolean})],S.prototype,"removable",void 0),S=A([(0,h.customElement)("tk-chip")],S);var E=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let j=class extends c.LitElement{constructor(){super(...arguments),this.modal=!1,this.open=!1,this.blurOverlay=!1}render(){return c.html`
83
+ `}};S.styles=c.css`${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.chip{display:inline-flex;align-items:center;border-radius:10px;padding:3px 10px;background:hsl(var(--surface-container-highest));border:1px solid hsl(var(--outline-variant));font-size:13px;height:30px;gap:6px;line-height:1;cursor:pointer}.chip.disabled{opacity:.4;pointer-events:none}.chip .leading{display:inline-flex;align-items:center}.chip .leading slot::slotted(*){display:inline-flex;align-items:center}.chip .label{white-space:nowrap;display:inline-flex;align-items:center;line-height:1}.chip .trailing{display:inline-flex;align-items:center}.chip .trailing slot::slotted(*){display:inline-flex;align-items:center}.chip .trailing .remove{background:none;border:none;cursor:pointer;font-size:13px;line-height:1;opacity:.7}.chip .trailing .remove:hover{opacity:1}")}`,A([(0,h.property)({type:Boolean})],S.prototype,"disabled",void 0),A([(0,h.property)({type:Boolean})],S.prototype,"removable",void 0),S=A([(0,h.customElement)("tk-chip")],S);var E=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let C=class extends c.LitElement{constructor(){super(...arguments),this.modal=!1,this.open=!1,this.blurOverlay=!1,this.handleKeyDown=t=>{"Escape"===t.key&&this.open&&!this.modal&&this.hide()}}render(){return c.html`
84
84
  ${this.open?c.html`
85
85
  <div class="overlay ${this.blurOverlay?"blur":""}" @click=${()=>this.modal?null:this.hide()}></div>
86
86
  <div class="container">
87
87
  <slot></slot>
88
88
  </div>
89
89
  `:""}
90
- `}updated(t){t.has("open")&&this.open&&this.dispatchEvent(new Event("did-show")),t.has("open")&&1==t.get("open")&&!this.open&&this.dispatchEvent(new Event("did-close"))}show(){return this.open=!0,new Promise(t=>{this.resolve=t})}hide(t=null){this.open=!1,this.resolve&&this.resolve(t)}};j.styles=c.css`
90
+ `}updated(t){t.has("open")&&this.open&&this.dispatchEvent(new Event("did-show")),t.has("open")&&1==t.get("open")&&!this.open&&this.dispatchEvent(new Event("did-close"))}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}show(){return this.open=!0,new Promise(t=>{this.resolve=t})}hide(t=null){this.open=!1,this.resolve&&this.resolve(t)}};C.styles=c.css`
91
91
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:none;position:relative;outline:none}:host([open]){display:block;z-index:var(--dialog-z-index, 300);position:fixed;top:0;left:0;width:100%;height:100%}:host([open]) .overlay{background-color:rgba(0,0,0,.5);position:absolute;top:0;left:0;bottom:0;right:0}:host([open]) .overlay.blur{backdrop-filter:blur(2px)}:host([open]) .container{animation:fade-in .3s forwards;position:fixed;margin:0;max-width:100%;height:100%;max-height:100%;width:fit-content;will-change:transform,opacity;overflow-y:auto;overscroll-behavior:contain}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@media(max-width: 400px){:host([open]) .container{padding:.1rem}}")}
92
- `,E([(0,h.property)({type:Boolean,attribute:!0})],j.prototype,"modal",void 0),E([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],j.prototype,"open",void 0),E([(0,h.property)({type:Boolean,attribute:"blur-overlay"})],j.prototype,"blurOverlay",void 0),j=E([(0,h.customElement)("tk-dialog")],j);var C=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let T=class extends c.LitElement{constructor(){super(...arguments),this._open=!1,this.over=!1,this.right=!1,this.swipeable=!1,this.swipeX=0,this.swipeY=0,this.isHorizontalSwipe=!1}set open(t){if(t===this._open)return;const e=this._open;this._open=t,this.requestUpdate("open",e),this._open&&this.dispatchEvent(new Event("did-show")),this._open||this.dispatchEvent(new Event("did-close"))}get open(){return this._open}render(){return c.html`
92
+ `,E([(0,h.property)({type:Boolean,attribute:!0})],C.prototype,"modal",void 0),E([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],C.prototype,"open",void 0),E([(0,h.property)({type:Boolean,attribute:"blur-overlay"})],C.prototype,"blurOverlay",void 0),C=E([(0,h.customElement)("tk-dialog")],C);var j=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let T=class extends c.LitElement{constructor(){super(...arguments),this._open=!1,this.over=!1,this.right=!1,this.swipeable=!1,this.overMediaQueryListener=t=>{t.matches?this.setAttribute("over",""):this.removeAttribute("over")},this.swipeX=0,this.swipeY=0,this.isHorizontalSwipe=!1}set open(t){if(t===this._open)return;const e=this._open;this._open=t,this.requestUpdate("open",e),this._open&&this.dispatchEvent(new Event("did-show")),this._open||this.dispatchEvent(new Event("did-close"))}get open(){return this._open}render(){return c.html`
93
93
  <div class="container">
94
94
  <slot name="drawer-container"></slot>
95
95
  </div>
@@ -107,9 +107,9 @@
107
107
  <div class="drawer-swipe"></div>
108
108
  </div>
109
109
 
110
- `}updated(t){t.has("overQuery")&&this.overMediaQuery(),t.has("openQuery")&&window.matchMedia(this.openQuery).matches&&this.show(),t.has("open")&&this.swipeable&&requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")})}overMediaQuery(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener.bind(this)),this.mql=window.matchMedia(this.overQuery),this.mql.matches?this.setAttribute("over",""):this.removeAttribute("over"),this.mql.addEventListener("change",this.overMediaQueryListener.bind(this))}overMediaQueryListener(t){t.matches?this.setAttribute("over",""):this.removeAttribute("over")}hideIfOver(){var t;(this.overQuery&&(null===(t=this.mql)||void 0===t?void 0:t.matches)||this.over)&&(this.open=!1)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}touchStart(t){this.swipeable&&(this.$drawer.style.transition="transform 0ms ease",this.swipeX=t.touches[0].clientX,this.swipeY=t.touches[0].clientY)}touchMove(t){if(!this.swipeable)return;const e=t.touches[0].clientX-this.swipeX,r=t.touches[0].clientY-this.swipeY;if(this.isHorizontalSwipe=Math.abs(e)>Math.abs(r),this.isHorizontalSwipe){var o,a=this.open?e>0?0:e:e<0?0:e;o=this.open?"translateX("+a+"px)":`translateX(min(calc(-100% + 10px + ${a}px), 0px)`,requestAnimationFrame(t=>{this.$drawer.style.transform=o})}}touchEnd(t){if(!this.swipeable)return;requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")});const e=t.changedTouches[0].clientX-this.swipeX;this.isHorizontalSwipe&&this.open?this.open=!(-50>e):this.isHorizontalSwipe&&!this.open&&(this.open=50<e),this.isHorizontalSwipe=!1}};T.styles=c.css`
110
+ `}updated(t){t.has("overQuery")&&this.overMediaQuery(),t.has("openQuery")&&window.matchMedia(this.openQuery).matches&&this.show(),t.has("open")&&this.swipeable&&requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")})}overMediaQuery(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener),this.mql=window.matchMedia(this.overQuery),this.mql.matches?this.setAttribute("over",""):this.removeAttribute("over"),this.mql.addEventListener("change",this.overMediaQueryListener)}hideIfOver(){var t;(this.overQuery&&(null===(t=this.mql)||void 0===t?void 0:t.matches)||this.over)&&(this.open=!1)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}touchStart(t){this.swipeable&&(this.$drawer.style.transition="transform 0ms ease",this.swipeX=t.touches[0].clientX,this.swipeY=t.touches[0].clientY)}touchMove(t){if(!this.swipeable)return;const e=t.touches[0].clientX-this.swipeX,r=t.touches[0].clientY-this.swipeY;if(this.isHorizontalSwipe=Math.abs(e)>Math.abs(r),this.isHorizontalSwipe){var o,a=this.open?e>0?0:e:e<0?0:e;o=this.open?"translateX("+a+"px)":`translateX(min(calc(-100% + 10px + ${a}px), 0px)`,requestAnimationFrame(t=>{this.$drawer.style.transform=o})}}touchEnd(t){if(!this.swipeable)return;requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")});const e=t.changedTouches[0].clientX-this.swipeX;this.isHorizontalSwipe&&this.open?this.open=!(-50>e):this.isHorizontalSwipe&&!this.open&&(this.open=50<e),this.isHorizontalSwipe=!1}disconnectedCallback(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener),super.disconnectedCallback()}};T.styles=c.css`
111
111
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:block;height:100%;width:100%;position:relative;overflow:hidden;background-color:hsl(var(--surface))}.drawer{display:grid;grid-template-columns:var(--drawer-width, 256px) 10px;grid-template-rows:auto 1fr auto;grid-template-areas:"header swipe" "content swipe" "footer swipe";position:absolute;top:0;bottom:0;transform:translateX(calc(-100% + 10px));transition:transform cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-medium, 180ms);will-change:transform;touch-action:pan-y;z-index:var(--drawer-z-index, 200);background-color:hsl(var(--surface))}.drawer .drawer-header{grid-area:header}.drawer .drawer-content{grid-area:content;overflow:auto}.drawer .drawer-footer{grid-area:footer}.drawer .drawer-swipe{grid-area:swipe;background-color:rgba(0,0,0,0)}:host([right]) .drawer{right:0;transform:translateX(calc(100% + 10px))}.overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:var(--drawer-overlay-z-index, 200);background-color:rgba(0,0,0,.5);display:none}.container{transition:padding cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-slow, 250ms);overflow:auto;height:100%}:host([open]) .drawer{transform:none}:host([open]) .container{padding-left:var(--drawer-width, 256px)}:host([open][over]) .drawer{background-color:hsl(var(--surface-container-low));box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)}:host([open][over]) .container{padding-left:0}:host([open][over]) .overlay{display:block}@media(max-width: var(--drawer-trigger-width, 400px)){:host([open]) .container{padding-left:0}:host([open]) .overlay{display:block}}')}
112
- `,C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"open",null),C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"over",void 0),C([(0,h.property)({type:String,attribute:"open-query"})],T.prototype,"openQuery",void 0),C([(0,h.property)({type:String,attribute:"over-query"})],T.prototype,"overQuery",void 0),C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"right",void 0),C([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"swipeable",void 0),C([(0,h.query)("div.drawer")],T.prototype,"$drawer",void 0),C([(0,h.eventOptions)({passive:!0})],T.prototype,"touchStart",null),C([(0,h.eventOptions)({passive:!0})],T.prototype,"touchMove",null),C([(0,h.eventOptions)({passive:!0})],T.prototype,"touchEnd",null),T=C([(0,h.customElement)("tk-drawer")],T);var O=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let R=class extends c.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit",this.submit)}submit(t){t.preventDefault();const e=this.getFormDataAsObject();this.dispatchEvent(new CustomEvent("fulfill",{detail:e}))}getFormDataAsObject(){const t=this.querySelector("form"),e={};return new FormData(t).forEach((t,r)=>{var o;const a=this.querySelector(`[name=${r}]`);if("TK-SLIDER"==a.tagName&&(t=Number(t)),"TK-CHECKBOX"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),"TK-RADIO"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),r.indexOf("-")>0){const a=r.split("-");e[a[0]]=null!==(o=e[a[0]])&&void 0!==o?o:{},e[a[0]][a[1]]=t}else e[r]=t}),e}};O([(0,h.property)()],R.prototype,"value",void 0),R=O([(0,h.customElement)("tk-form")],R);var D=s(968);var P=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},L=function(t,e,r,o){return new(r||(r=Promise))(function(a,i){function n(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(n,s)}l((o=o.apply(t,e||[])).next())})};let q=class extends p{constructor(){super(...arguments),this.svg=""}static get styles(){return[...p.styles,c.css`
112
+ `,j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"open",null),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"over",void 0),j([(0,h.property)({type:String,attribute:"open-query"})],T.prototype,"openQuery",void 0),j([(0,h.property)({type:String,attribute:"over-query"})],T.prototype,"overQuery",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"right",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"swipeable",void 0),j([(0,h.query)("div.drawer")],T.prototype,"$drawer",void 0),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchStart",null),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchMove",null),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchEnd",null),T=j([(0,h.customElement)("tk-drawer")],T);var O=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let R=class extends c.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit",this.submit)}submit(t){t.preventDefault();const e=this.getFormDataAsObject();this.dispatchEvent(new CustomEvent("fulfill",{detail:e}))}getFormDataAsObject(){const t=this.querySelector("form"),e={};return new FormData(t).forEach((t,r)=>{var o;const a=this.querySelector(`[name=${r}]`);if("TK-SLIDER"==a.tagName&&(t=Number(t)),"TK-CHECKBOX"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),"TK-RADIO"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),r.indexOf("-")>0){const a=r.split("-");e[a[0]]=null!==(o=e[a[0]])&&void 0!==o?o:{},e[a[0]][a[1]]=t}else e[r]=t}),e}};O([(0,h.property)()],R.prototype,"value",void 0),R=O([(0,h.customElement)("tk-form")],R);var D=s(968);var L=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},P=function(t,e,r,o){return new(r||(r=Promise))(function(a,i){function n(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(n,s)}l((o=o.apply(t,e||[])).next())})};let q=class extends p{constructor(){super(...arguments),this.svg=""}static get styles(){return[...p.styles,c.css`
113
113
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: var(--tk-icon-color, currentColor);display:inline-flex;flex-shrink:0;width:1.5em;height:1.5em}:host svg{width:100%;height:100%;display:block;fill:var(--color)}")}
114
114
  `]}render(){return c.html`
115
115
  ${this.path?c.html`
@@ -117,7 +117,7 @@
117
117
  `:c.html`
118
118
  ${(0,D.unsafeHTML)(this.svg)}
119
119
  `}
120
- `}updated(t){t.has("name")&&this.name&&this.loadIcon()}loadIcon(){return L(this,void 0,void 0,function*(){const t=this.library?document.querySelector(`tk-icons[library=${this.library}]`):document.querySelector("tk-icons");t&&(this.svg=yield fetch(t.resolve(this.name)).then(t=>t.blob().then(e=>({contentType:t.headers.get("Content-Type"),raw:e}))).then(t=>t.contentType&&/svg/.test(t.contentType)?t.raw.text():""))})}};P([(0,h.property)()],q.prototype,"name",void 0),P([(0,h.property)()],q.prototype,"library",void 0),P([(0,h.property)()],q.prototype,"path",void 0),P([(0,h.property)()],q.prototype,"svg",void 0),q=P([(0,h.customElement)("tk-icon")],q);var B=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let N=class extends c.LitElement{constructor(){super(...arguments),this.library="default"}firstUpdated(){window.document.body.appendChild(this)}};B([(0,h.property)({attribute:!1})],N.prototype,"resolve",void 0),B([(0,h.property)({reflect:!0})],N.prototype,"library",void 0),N=B([(0,h.customElement)("tk-icons")],N);var H=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let M=class extends p{static get styles(){return[...p.styles,c.css`
120
+ `}updated(t){t.has("name")&&this.name&&this.loadIcon()}loadIcon(){return P(this,void 0,void 0,function*(){const t=this.library?document.querySelector(`tk-icons[library=${this.library}]`):document.querySelector("tk-icons");t&&(this.svg=yield fetch(t.resolve(this.name)).then(t=>t.blob().then(e=>({contentType:t.headers.get("Content-Type"),raw:e}))).then(t=>t.contentType&&/svg/.test(t.contentType)?t.raw.text():""))})}};L([(0,h.property)()],q.prototype,"name",void 0),L([(0,h.property)()],q.prototype,"library",void 0),L([(0,h.property)()],q.prototype,"path",void 0),L([(0,h.property)()],q.prototype,"svg",void 0),q=L([(0,h.customElement)("tk-icon")],q);var B=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let N=class extends c.LitElement{constructor(){super(...arguments),this.library="default"}firstUpdated(){window.document.body.appendChild(this)}};B([(0,h.property)({attribute:!1})],N.prototype,"resolve",void 0),B([(0,h.property)({reflect:!0})],N.prototype,"library",void 0),N=B([(0,h.customElement)("tk-icons")],N);var H=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let M=class extends p{static get styles(){return[...p.styles,c.css`
121
121
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{height:56px;padding:0 24px 0 16px;border-radius:28px;display:flex;flex-direction:row;align-items:center;outline:none;overflow:hidden;position:relative;text-align:left;color:hsl(var(--on-surface-variant))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:hover),:host(:focus){will-change:background,color;background-color:hsla(var(--on-surface), 0.08);color:hsl(var(--on-surface))}:host([active]){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([active]:focus),:host([active]:hover){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([disabled]){background:hsla(var(--surface-container-highest), 0.12);color:hsl(var(--on-surface-variant));opacity:.4;pointer-events:none}::slotted([slot=before]),::slotted([slot=after]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self, center);margin:0 var(--spacing-m, 1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self, center);margin:0 0 0 var(--spacing-m, 1rem)}#content{flex-grow:1;display:flex;flex-direction:column;max-width:100%}")}
122
122
  `]}render(){return c.html`
123
123
  <slot name="before" @click=${this.handleClick}></slot>
@@ -128,9 +128,9 @@
128
128
  ${this.href?c.html`
129
129
  <a tabindex="-1" id="ahref" href="${this.href}" target=${(0,k.ifDefined)(this.target)} rel="noreferrer" aria-label=${this.ariaLabel}></a>
130
130
  `:""}
131
- `}constructor(){super(),this.href="",this.target=""}firstUpdated(){!this.ariaLabel&&this.innerText&&(this.ariaLabel=this.innerText)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(t){const e=t.target;"BUTTON"!=e.tagName&&"TK-BUTTON"!=e.tagName&&"TK-SWITCH"!=e.tagName&&"TK-CHECKBOX"!=e.tagName&&this.href&&t.isTrusted&&(t.stopPropagation(),t.preventDefault(),this.$ahref.click())}};H([(0,h.property)({attribute:!0})],M.prototype,"href",void 0),H([(0,h.property)({attribute:!0})],M.prototype,"target",void 0),H([(0,h.property)({attribute:"aria-label"})],M.prototype,"ariaLabel",void 0),H([(0,h.query)("#ahref")],M.prototype,"$ahref",void 0),M=H([(0,h.customElement)("tk-list-item")],M);const I=globalThis,U=I.trustedTypes,V=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",Y=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+Y,F=`<${X}>`,Q=document,W=()=>Q.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,J=t=>G(t)||"function"==typeof t?.[Symbol.iterator],tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,at=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,lt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ct=(lt(1),lt(2),lt(3),Symbol.for("lit-noChange")),ht=Symbol.for("lit-nothing"),dt=new WeakMap,pt=Q.createTreeWalker(Q,129);function ut(t,e){if(!G(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==V?V.createHTML(e):e}const vt=(t,e)=>{const r=t.length-1,o=[];let a,i=2===e?"<svg>":3===e?"<math>":"",n=et;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,l=n.exec(r),null!==l);)h=n.lastIndex,n===et?"!--"===l[1]?n=rt:void 0!==l[1]?n=ot:void 0!==l[2]?(st.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=at):void 0!==l[3]&&(n=at):n===at?">"===l[0]?(n=a??et,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?at:'"'===l[3]?nt:it):n===nt||n===it?n=at:n===rt||n===ot?n=et:(n=at,a=void 0);const d=n===at&&t[e+1].startsWith("/>")?" ":"";i+=n===et?r+F:c>=0?(o.push(s),r.slice(0,c)+K+r.slice(c)+Y+d):r+Y+(-2===c?e:d)}return[ut(t,i+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class bt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,i=0;const n=t.length-1,s=this.parts,[l,c]=vt(t,e);if(this.el=bt.createElement(l,r),pt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pt.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(K)){const e=c[i++],r=o.getAttribute(t).split(Y),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?xt:"?"===n[1]?kt:"@"===n[1]?wt:ft}),o.removeAttribute(t)}else t.startsWith(Y)&&(s.push({type:6,index:a}),o.removeAttribute(t));if(st.test(o.tagName)){const t=o.textContent.split(Y),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],W()),pt.nextNode(),s.push({type:2,index:++a});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===X)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(Y,t+1));)s.push({type:7,index:a}),t+=Y.length-1}a++}}static createElement(t,e){const r=Q.createElement("template");return r.innerHTML=t,r}}function gt(t,e,r=t,o){if(e===ct)return e;let a=void 0!==o?r._$Co?.[o]:r._$Cl;const i=Z(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=a:r._$Cl=a),void 0!==a&&(e=gt(t,a._$AS(t,e.values),a,o)),e}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??Q).importNode(e,!0);pt.currentNode=o;let a=pt.nextNode(),i=0,n=0,s=r[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new yt(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new $t(a,this,t)),this._$AV.push(e),s=r[++n]}i!==s?.index&&(a=pt.nextNode(),i++)}return pt.currentNode=Q,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class yt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=gt(this,t,e),Z(t)?t===ht||null==t||""===t?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):J(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ht&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=bt.createElement(ut(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=dt.get(t.strings);return void 0===e&&dt.set(t.strings,e=new bt(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const a of t)o===e.length?e.push(r=new yt(this.O(W()),this.O(W()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ht}_$AI(t,e=this,r,o){const a=this.strings;let i=!1;if(void 0===a)t=gt(this,t,e,0),i=!Z(t)||t!==this._$AH&&t!==ct,i&&(this._$AH=t);else{const o=t;let n,s;for(t=a[0],n=0;n<a.length-1;n++)s=gt(this,o[r+n],e,n),s===ct&&(s=this._$AH[n]),i||=!Z(s)||s!==this._$AH[n],s===ht?t=ht:t!==ht&&(t+=(s??"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(t)}j(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ht?void 0:t}}class kt extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}}class wt extends ft{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){if((t=gt(this,t,e,0)??ht)===ct)return;const r=this._$AH,o=t===ht&&r!==ht||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==ht&&(r===ht||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class $t{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){gt(this,t)}}const zt=I.litHtmlPolyfillSupport;zt?.(bt,yt),(I.litHtmlVersions??=[]).push("3.3.1");const _t=1;class At{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const St="important",Et=" !"+St,jt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends At{constructor(t){if(super(t),t.type!==_t||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return null==o?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?r.removeProperty(t):r[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(Et);t.includes("-")||e?r.setProperty(t,e?o.slice(0,-11):o,e?St:""):r[t]=o}}return ct}});var Ct=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Tt=class extends p{constructor(){super(...arguments),this.circle=!1,this.indeterminate=!1,this.percent=0}static get styles(){return[...p.styles,c.css`
131
+ `}constructor(){super(),this.href="",this.target="",this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=t=>{const e=t.target;"BUTTON"!=e.tagName&&"TK-BUTTON"!=e.tagName&&"TK-SWITCH"!=e.tagName&&"TK-CHECKBOX"!=e.tagName&&this.href&&t.isTrusted&&(t.stopPropagation(),t.preventDefault(),this.$ahref.click())}}firstUpdated(){!this.ariaLabel&&this.innerText&&(this.ariaLabel=this.innerText)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}};H([(0,h.property)({attribute:!0})],M.prototype,"href",void 0),H([(0,h.property)({attribute:!0})],M.prototype,"target",void 0),H([(0,h.property)({attribute:"aria-label"})],M.prototype,"ariaLabel",void 0),H([(0,h.query)("#ahref")],M.prototype,"$ahref",void 0),M=H([(0,h.customElement)("tk-list-item")],M);const I=globalThis,U=I.trustedTypes,K=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",Y=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+Y,F=`<${X}>`,Q=document,W=()=>Q.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,J=t=>G(t)||"function"==typeof t?.[Symbol.iterator],tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,at=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,lt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ct=(lt(1),lt(2),lt(3),Symbol.for("lit-noChange")),ht=Symbol.for("lit-nothing"),dt=new WeakMap,pt=Q.createTreeWalker(Q,129);function ut(t,e){if(!G(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const vt=(t,e)=>{const r=t.length-1,o=[];let a,i=2===e?"<svg>":3===e?"<math>":"",n=et;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,l=n.exec(r),null!==l);)h=n.lastIndex,n===et?"!--"===l[1]?n=rt:void 0!==l[1]?n=ot:void 0!==l[2]?(st.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=at):void 0!==l[3]&&(n=at):n===at?">"===l[0]?(n=a??et,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?at:'"'===l[3]?nt:it):n===nt||n===it?n=at:n===rt||n===ot?n=et:(n=at,a=void 0);const d=n===at&&t[e+1].startsWith("/>")?" ":"";i+=n===et?r+F:c>=0?(o.push(s),r.slice(0,c)+V+r.slice(c)+Y+d):r+Y+(-2===c?e:d)}return[ut(t,i+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class bt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,i=0;const n=t.length-1,s=this.parts,[l,c]=vt(t,e);if(this.el=bt.createElement(l,r),pt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pt.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(V)){const e=c[i++],r=o.getAttribute(t).split(Y),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?xt:"?"===n[1]?kt:"@"===n[1]?wt:ft}),o.removeAttribute(t)}else t.startsWith(Y)&&(s.push({type:6,index:a}),o.removeAttribute(t));if(st.test(o.tagName)){const t=o.textContent.split(Y),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],W()),pt.nextNode(),s.push({type:2,index:++a});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===X)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(Y,t+1));)s.push({type:7,index:a}),t+=Y.length-1}a++}}static createElement(t,e){const r=Q.createElement("template");return r.innerHTML=t,r}}function gt(t,e,r=t,o){if(e===ct)return e;let a=void 0!==o?r._$Co?.[o]:r._$Cl;const i=Z(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=a:r._$Cl=a),void 0!==a&&(e=gt(t,a._$AS(t,e.values),a,o)),e}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??Q).importNode(e,!0);pt.currentNode=o;let a=pt.nextNode(),i=0,n=0,s=r[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new yt(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new $t(a,this,t)),this._$AV.push(e),s=r[++n]}i!==s?.index&&(a=pt.nextNode(),i++)}return pt.currentNode=Q,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class yt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=gt(this,t,e),Z(t)?t===ht||null==t||""===t?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):J(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ht&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=bt.createElement(ut(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=dt.get(t.strings);return void 0===e&&dt.set(t.strings,e=new bt(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const a of t)o===e.length?e.push(r=new yt(this.O(W()),this.O(W()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ht}_$AI(t,e=this,r,o){const a=this.strings;let i=!1;if(void 0===a)t=gt(this,t,e,0),i=!Z(t)||t!==this._$AH&&t!==ct,i&&(this._$AH=t);else{const o=t;let n,s;for(t=a[0],n=0;n<a.length-1;n++)s=gt(this,o[r+n],e,n),s===ct&&(s=this._$AH[n]),i||=!Z(s)||s!==this._$AH[n],s===ht?t=ht:t!==ht&&(t+=(s??"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(t)}j(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ht?void 0:t}}class kt extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}}class wt extends ft{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){if((t=gt(this,t,e,0)??ht)===ct)return;const r=this._$AH,o=t===ht&&r!==ht||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==ht&&(r===ht||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class $t{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){gt(this,t)}}const zt=I.litHtmlPolyfillSupport;zt?.(bt,yt),(I.litHtmlVersions??=[]).push("3.3.1");const _t=1;class At{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const St="important",Et=" !"+St,Ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends At{constructor(t){if(super(t),t.type!==_t||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return null==o?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?r.removeProperty(t):r[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(Et);t.includes("-")||e?r.setProperty(t,e?o.slice(0,-11):o,e?St:""):r[t]=o}}return ct}});var jt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Tt=class extends p{constructor(){super(...arguments),this.circle=!1,this.indeterminate=!1,this.percent=0}static get styles(){return[...p.styles,c.css`
132
132
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: hsl(var(--primary));--background-color: var(--tk-loading-background-color, hsl(var(--surface-dim)))}:host([secondary]){--color: hsl(var(--secondary))}:host([error]){--color: hsl(var(--error))}.circle{display:inline-flex;animation:rotator 3s linear infinite;transform-origin:center;width:56px;height:56px}.circle .track{stroke:var(--background-color);opacity:.4}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;transform-origin:center;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}100%{stroke-dashoffset:265;transform:rotate(360deg)}}:host([small]) .circle{width:20px;height:20px}:host([small]) .line{height:2px}:host([large]) .circle{width:96px;height:96px}:host([large]) .line{height:14px}.line{position:relative;background-color:var(--background-color);overflow:hidden;height:6px}.line .progress{background-color:var(--color);height:100%;position:relative;width:100%}.line .indeterminate{background-color:rgba(0,0,0,0);position:absolute;top:0;left:0;right:0;bottom:0}.line .indeterminate:before{content:"";position:absolute;background-color:var(--color);top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.line .indeterminate:after{content:"";position:absolute;background-color:var(--color);top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}')}
133
- `]}render(){const t=this.normalizePercent(this.percent),e=2*Math.PI*40,r=e*(1-t/100),o=this.circle&&!this.indeterminate&&this.hasAttribute("percent"),a=this.indeterminate?void 0:t,i=o?jt({animation:"none"}):c.nothing,n=o?jt({animation:"none",strokeDasharray:`${e}`,strokeDashoffset:`${r}`}):c.nothing;return c.html`
133
+ `]}render(){const t=this.normalizePercent(this.percent),e=2*Math.PI*40,r=e*(1-t/100),o=this.circle&&!this.indeterminate&&this.hasAttribute("percent"),a=this.indeterminate?void 0:t,i=o?Ct({animation:"none"}):c.nothing,n=o?Ct({animation:"none",strokeDasharray:`${e}`,strokeDashoffset:`${r}`}):c.nothing;return c.html`
134
134
  ${this.circle?c.html`
135
135
  <svg
136
136
  class="circle"
@@ -161,16 +161,16 @@
161
161
  aria-valuemax="100"
162
162
  aria-valuenow=${(0,k.ifDefined)(a)}
163
163
  >
164
- <div class=${(0,y.classMap)({progress:!0,indeterminate:this.indeterminate})} style=${jt(this.indeterminate?{width:"100%"}:{width:`${t}%`})}>
164
+ <div class=${(0,y.classMap)({progress:!0,indeterminate:this.indeterminate})} style=${Ct(this.indeterminate?{width:"100%"}:{width:`${t}%`})}>
165
165
  ${this.indeterminate?c.html`<span class="visually-hidden">Loading</span>`:c.nothing}
166
166
  </div>
167
167
  </div>
168
168
  `}
169
- `}normalizePercent(t){return Number.isFinite(t)?Math.min(100,Math.max(0,t)):0}};Ct([(0,h.property)({attribute:!0,type:Boolean})],Tt.prototype,"circle",void 0),Ct([(0,h.property)({attribute:!0,type:Boolean})],Tt.prototype,"indeterminate",void 0),Ct([(0,h.property)({attribute:!0,type:Number})],Tt.prototype,"percent",void 0),Tt=Ct([(0,h.customElement)("tk-loading")],Tt);var Ot=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Rt=class extends c.LitElement{render(){return c.html`
169
+ `}normalizePercent(t){return Number.isFinite(t)?Math.min(100,Math.max(0,t)):0}};jt([(0,h.property)({attribute:!0,type:Boolean})],Tt.prototype,"circle",void 0),jt([(0,h.property)({attribute:!0,type:Boolean})],Tt.prototype,"indeterminate",void 0),jt([(0,h.property)({attribute:!0,type:Number})],Tt.prototype,"percent",void 0),Tt=jt([(0,h.customElement)("tk-loading")],Tt);var Ot=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Rt=class extends c.LitElement{render(){return c.html`
170
170
  <slot></slot>
171
171
  `}};Rt.styles=c.css`
172
172
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host slot{display:flex;justify-content:space-between}")}
173
- `,Rt=Ot([(0,h.customElement)("tk-navigation-bar")],Rt);var Dt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Pt=class extends c.LitElement{constructor(){super(...arguments),this.label="",this.iconPath="",this.activeIconPath="",this.active=!1}render(){return c.html`
173
+ `,Rt=Ot([(0,h.customElement)("tk-navigation-bar")],Rt);var Dt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Lt=class extends c.LitElement{constructor(){super(...arguments),this.label="",this.iconPath="",this.activeIconPath="",this.active=!1}render(){return c.html`
174
174
  <tk-box align-items="center">
175
175
  <tk-box ripple overflow="hidden" tabindex="0" class="indicator">
176
176
  <tk-icon path=${this.active&&this.activeIconPath?this.activeIconPath:this.iconPath}></tk-icon>
@@ -182,9 +182,9 @@
182
182
  <span class="label">${this.label}</span>
183
183
  `:""}
184
184
  </tk-box>
185
- `}};Pt.styles=c.css`
185
+ `}};Lt.styles=c.css`
186
186
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{cursor:pointer}:host .indicator{position:relative;height:32px;width:64px;border-radius:16px;margin-bottom:4px;display:flex;justify-content:center;align-items:center;outline:none}:host .indicator tk-icon{width:24px;height:24px}:host .indicator .badge{display:flex;position:absolute;top:4px;left:35px}:host .label{font-size:12px;line-height:16px;margin-top:4px;font-weight:500}:host([active]){color:hsl(var(--on-secondary-container))}:host([active]) .indicator{background-color:hsl(var(--secondary-container))}:host(:hover){color:hsl(var(--on-surface-variant))}:host(:hover) .indicator{background-color:hsla(var(--on-surface-variant), 0.08)}:host(:focus){color:hsl(var(--on-surface-variant))}:host(:focus) .indicator{background-color:hsla(var(--on-surface-variant), 0.12)}:host([active]:hover){color:hsl(var(--on-surface))}:host([active]:hover) .indicator{background-color:hsla(var(--on-surface), 0.08)}:host([active]:focus){color:hsl(var(--on-surface))}:host([active]:focus) .indicator{background-color:hsl(var(--on-surface), 0.12)}")}
187
- `,Dt([(0,h.property)()],Pt.prototype,"label",void 0),Dt([(0,h.property)()],Pt.prototype,"iconPath",void 0),Dt([(0,h.property)()],Pt.prototype,"activeIconPath",void 0),Dt([(0,h.property)({type:Boolean})],Pt.prototype,"active",void 0),Pt=Dt([(0,h.customElement)("tk-navigation-item")],Pt);var Lt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let qt=class extends p{static get styles(){return[...p.styles,c.css`
187
+ `,Dt([(0,h.property)()],Lt.prototype,"label",void 0),Dt([(0,h.property)()],Lt.prototype,"iconPath",void 0),Dt([(0,h.property)()],Lt.prototype,"activeIconPath",void 0),Dt([(0,h.property)({type:Boolean})],Lt.prototype,"active",void 0),Lt=Dt([(0,h.customElement)("tk-navigation-item")],Lt);var Pt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let qt=class extends p{static get styles(){return[...p.styles,c.css`
188
188
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{color:hsl(var(--primary));background:hsl(var(--on-primary));justify-content:space-between;align-items:center;flex-direction:row}:host([fixed]){position:fixed;top:0;left:0;right:0;z-index:var(--navbar-z-index, 100)}#left,#right,#title,::slotted([slot=left]),::slotted([slot=right]),::slotted([slot=title]){display:flex;align-items:center;height:100%}#title,::slotted([slot=title]){margin:var(--nav-title-margin, 0 0 0 var(--spacing-l, 1.25rem))}")}
189
189
  `]}render(){return c.html`
190
190
  <div id="left">
@@ -194,7 +194,7 @@
194
194
  <div id="right">
195
195
  <slot name="right"></slot>
196
196
  </div>
197
- `}};qt=Lt([(0,h.customElement)("tk-topbar")],qt);var Bt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Nt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
197
+ `}};qt=Pt([(0,h.customElement)("tk-topbar")],qt);var Bt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Nt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
198
198
  <div id="container">
199
199
  <slot id="before" name="before"></slot>
200
200
  <div id="wrapper">
@@ -226,7 +226,7 @@
226
226
  </div>
227
227
  `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};Nt.styles=c.css`
228
228
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}")}
229
- `,Bt([(0,h.property)({type:String})],Nt.prototype,"value",null),Bt([(0,h.property)({attribute:!0,type:String})],Nt.prototype,"name",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"list",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"type",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"required",void 0),Bt([(0,h.property)({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"readonly",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocomplete",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocapitalize",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"pattern",void 0),Bt([(0,h.state)()],Nt.prototype,"initialValue",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"label",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"min",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"max",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"minLength",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"maxLength",void 0),Bt([(0,h.eventOptions)({passive:!0})],Nt.prototype,"handleChange",null),Nt=Bt([(0,h.customElement)("tk-textfield")],Nt);var Ht,Mt,It,Ut=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};!function(t){t.show="show",t.force="force",t.confirm="confirm",t.input="input"}(Mt||(Mt={})),function(t){t.success="success",t.warning="warning",t.error="error",t.info="info",t.neutral="neutral"}(It||(It={}));let Vt=Ht=class extends p{static get styles(){return[...p.styles,c.css`
229
+ `,Bt([(0,h.property)({type:String})],Nt.prototype,"value",null),Bt([(0,h.property)({attribute:!0,type:String})],Nt.prototype,"name",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"list",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"type",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"required",void 0),Bt([(0,h.property)({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"readonly",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocomplete",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocapitalize",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"pattern",void 0),Bt([(0,h.state)()],Nt.prototype,"initialValue",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"label",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"min",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"max",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"minLength",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"maxLength",void 0),Bt([(0,h.eventOptions)({passive:!0})],Nt.prototype,"handleChange",null),Nt=Bt([(0,h.customElement)("tk-textfield")],Nt);var Ht,Mt,It,Ut=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};!function(t){t.show="show",t.force="force",t.confirm="confirm",t.input="input"}(Mt||(Mt={})),function(t){t.success="success",t.warning="warning",t.error="error",t.info="info",t.neutral="neutral"}(It||(It={}));let Kt=Ht=class extends p{static get styles(){return[...p.styles,c.css`
230
230
  ${(0,c.unsafeCSS)(":host{font-size:1.6rem;display:none;position:fixed;bottom:0;left:0;right:0;top:0;margin:0;z-index:var(--notie-z-index, 400)}:host .overlay{background-color:rgba(0,0,0,.5019607843);position:fixed;top:0;right:0;left:0;bottom:0}:host .container{position:fixed;right:0;left:0;bottom:0;height:fit-content;background-color:hsl(var(--primary));box-shadow:10px 10px 10px 10px var(--shadow);z-index:calc(var(--notie-z-index, 400) + 1);transform:translateY(100%);transition:all 150ms ease-in;color:hsl(var(--on-primary));text-align:center}:host .container.info{color:#fff;background-color:#4d82d6}:host .container.error{color:#fff;background-color:#e1715b}:host .container.warning{color:#fff;background-color:#d6a14d}:host .container.success{color:#fff;background-color:#57bf57}:host .text{padding:.5em}:host .input{--input-font-size: vars.$font-size-widescreen;background-color:var(--background, white);color:var(--foreground, black);text-align:center}:host .button{cursor:pointer;padding:.5em}:host .button.confirm,:host .button.force{background-color:#57bf57;color:#fff}:host .button.cancel{color:var(--on-error, white);background-color:var(--error, #e1715b)}@media screen and (max-width: 900px){:host{font-size:1.4rem}}:host([position=top]) .container{position:fixed;top:0;bottom:inherit;transform:translateY(-100%)}:host([open]) .container{transform:translateY(0)}")}
231
231
  `]}render(){return c.html`
232
232
  <div class="overlay" @click=${()=>this.type==Mt.force?null:this.hide(!1)}></div>
@@ -254,11 +254,11 @@
254
254
  </tk-box>
255
255
  `:""}
256
256
  </tk-box>
257
- `}show(){return new Promise(t=>{this.resolve=t,this.style.setProperty("display","flex"),setTimeout(()=>this.open=!0),this.dispatchEvent(new Event("did-show")),setTimeout(()=>{this.$input&&this.$input.focus()},100),this.type==Mt.show&&setTimeout(()=>this.hide(!1),this.delay)})}hide(t){t&&this.type===Mt.input&&(t=this.$input.value),t||this.type!==Mt.input||(t=null),this.$input&&(this.$input.value=""),this.$container.addEventListener("transitionend",()=>{this.dispatchEvent(new Event("did-hide")),this.resolve(t),this.persistent||this.remove()},{once:!0}),this.open=!1}constructor(t=""){super(),this.persistent=!0,this.open=!1,this.position="bottom",this.type=Mt.show,this.level=It.info,this.delay=3e3,this.animationDelay=300,this.inputType="text",this.buttonText="OK",this.confirmText="OK",this.cancelText="CANCEL",this.text=t}static show(t){return this.getNotie(t,Mt.show).show()}static force(t){const e=this.getNotie(t,Mt.force);return t.buttonText&&(e.buttonText=t.buttonText),e.show()}static confirm(t){const e=this.getNotie(t,Mt.confirm);return t.confirmText&&(e.confirmText=t.confirmText),t.cancelText&&(e.cancelText=t.cancelText),e.show()}static input(t){const e=this.getNotie(t,Mt.input);return t.inputType&&(e.inputType=t.inputType),t.password&&(e.inputType="password"),t.confirmText&&(e.confirmText=t.confirmText),t.cancelText&&(e.cancelText=t.cancelText),e.show()}static getNotie(t,e){var r,o;const a=new Ht(t.text);return a.persistent=!1,a.type=e,a.delay=null!==(r=t.delay)&&void 0!==r?r:999999999,t.level&&(a.level=t.level),t.template&&(a.template=t.template),t.position&&(a.position=t.position),t.background&&a.$container&&a.$container.setAttribute("background-color",t.background),t.color&&a.$container&&a.$container.setAttribute("color",t.color),t.container?null===(o=t.container.shadowRoot)||void 0===o||o.appendChild(a):window.document.body.appendChild(a),t.zIndex&&a.style.setProperty("z-index",t.zIndex.toString()),a}};Ut([(0,h.state)()],Vt.prototype,"persistent",void 0),Ut([(0,h.property)({type:Boolean,reflect:!0})],Vt.prototype,"open",void 0),Ut([(0,h.property)({reflect:!0})],Vt.prototype,"position",void 0),Ut([(0,h.state)()],Vt.prototype,"type",void 0),Ut([(0,h.property)({type:String})],Vt.prototype,"level",void 0),Ut([(0,h.property)({type:Number})],Vt.prototype,"delay",void 0),Ut([(0,h.property)()],Vt.prototype,"text",void 0),Ut([(0,h.property)()],Vt.prototype,"inputType",void 0),Ut([(0,h.property)()],Vt.prototype,"buttonText",void 0),Ut([(0,h.property)()],Vt.prototype,"confirmText",void 0),Ut([(0,h.property)()],Vt.prototype,"cancelText",void 0),Ut([(0,h.property)({type:Object})],Vt.prototype,"template",void 0),Ut([(0,h.query)("tk-textfield")],Vt.prototype,"$input",void 0),Ut([(0,h.query)(".container")],Vt.prototype,"$container",void 0),Vt=Ht=Ut([(0,h.customElement)("tk-notie")],Vt);var Kt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Yt=class extends c.LitElement{constructor(){super(...arguments),this._page="",this.selected="",this.handleScroll=!1,this.scrollHistory={}}set page(t){const e=this._page;if(e!==t){if(this._page=t,e&&this.handleScroll){if(this.querySelector(`[page=${e}]`)){const t=document.scrollingElement||document.documentElement;this.scrollHistory[e]=t.scrollTop}}this.requestUpdate("page",e)}}get page(){return this._page}firstUpdated(){var t,e;if(!this.page){const r=null!==(t=this.querySelector("[page]"))&&void 0!==t?t:this.querySelector(":scope > *");r&&(this.page=null!==(e=r.getAttribute("page"))&&void 0!==e?e:"default")}this.updatePages()}render(){return c.html`
257
+ `}show(){return new Promise(t=>{this.resolve=t,this.style.setProperty("display","flex"),setTimeout(()=>this.open=!0),this.dispatchEvent(new Event("did-show")),setTimeout(()=>{this.$input&&this.$input.focus()},100),this.type==Mt.show&&setTimeout(()=>this.hide(!1),this.delay)})}hide(t){t&&this.type===Mt.input&&(t=this.$input.value),t||this.type!==Mt.input||(t=null),this.$input&&(this.$input.value=""),this.$container.addEventListener("transitionend",()=>{this.dispatchEvent(new Event("did-hide")),this.resolve(t),this.persistent||this.remove()},{once:!0}),this.open=!1}constructor(t=""){super(),this.persistent=!0,this.open=!1,this.position="bottom",this.type=Mt.show,this.level=It.info,this.delay=3e3,this.animationDelay=300,this.inputType="text",this.buttonText="OK",this.confirmText="OK",this.cancelText="CANCEL",this.text=t}static show(t){return this.getNotie(t,Mt.show).show()}static force(t){const e=this.getNotie(t,Mt.force);return t.buttonText&&(e.buttonText=t.buttonText),e.show()}static confirm(t){const e=this.getNotie(t,Mt.confirm);return t.confirmText&&(e.confirmText=t.confirmText),t.cancelText&&(e.cancelText=t.cancelText),e.show()}static input(t){const e=this.getNotie(t,Mt.input);return t.inputType&&(e.inputType=t.inputType),t.password&&(e.inputType="password"),t.confirmText&&(e.confirmText=t.confirmText),t.cancelText&&(e.cancelText=t.cancelText),e.show()}static getNotie(t,e){var r,o;const a=new Ht(t.text);return a.persistent=!1,a.type=e,a.delay=null!==(r=t.delay)&&void 0!==r?r:999999999,t.level&&(a.level=t.level),t.template&&(a.template=t.template),t.position&&(a.position=t.position),t.background&&a.$container&&a.$container.setAttribute("background-color",t.background),t.color&&a.$container&&a.$container.setAttribute("color",t.color),t.container?null===(o=t.container.shadowRoot)||void 0===o||o.appendChild(a):window.document.body.appendChild(a),t.zIndex&&a.style.setProperty("z-index",t.zIndex.toString()),a}};Ut([(0,h.state)()],Kt.prototype,"persistent",void 0),Ut([(0,h.property)({type:Boolean,reflect:!0})],Kt.prototype,"open",void 0),Ut([(0,h.property)({reflect:!0})],Kt.prototype,"position",void 0),Ut([(0,h.state)()],Kt.prototype,"type",void 0),Ut([(0,h.property)({type:String})],Kt.prototype,"level",void 0),Ut([(0,h.property)({type:Number})],Kt.prototype,"delay",void 0),Ut([(0,h.property)()],Kt.prototype,"text",void 0),Ut([(0,h.property)()],Kt.prototype,"inputType",void 0),Ut([(0,h.property)()],Kt.prototype,"buttonText",void 0),Ut([(0,h.property)()],Kt.prototype,"confirmText",void 0),Ut([(0,h.property)()],Kt.prototype,"cancelText",void 0),Ut([(0,h.property)({type:Object})],Kt.prototype,"template",void 0),Ut([(0,h.query)("tk-textfield")],Kt.prototype,"$input",void 0),Ut([(0,h.query)(".container")],Kt.prototype,"$container",void 0),Kt=Ht=Ut([(0,h.customElement)("tk-notie")],Kt);var Vt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Yt=class extends c.LitElement{constructor(){super(...arguments),this._page="",this.selected="",this.handleScroll=!1,this.scrollHistory={}}set page(t){const e=this._page;if(e!==t){if(this._page=t,e&&this.handleScroll){if(this.querySelector(`[page=${e}]`)){const t=document.scrollingElement||document.documentElement;this.scrollHistory[e]=t.scrollTop}}this.requestUpdate("page",e)}}get page(){return this._page}firstUpdated(){var t,e;if(!this.page){const r=null!==(t=this.querySelector("[page]"))&&void 0!==t?t:this.querySelector(":scope > *");r&&(this.page=null!==(e=r.getAttribute("page"))&&void 0!==e?e:"default")}this.updatePages()}render(){return c.html`
258
258
  <slot></slot>
259
259
  `}updated(t){t.has("page")&&this.updatePages()}updatePages(){const t=document.scrollingElement||document.documentElement;this.querySelectorAll(":scope > *").forEach(e=>{var r,o;const a=null!==(r=e.getAttribute("page"))&&void 0!==r?r:"default";a===this.page?(e.removeAttribute("hidden"),this.selected&&e.setAttribute(this.selected,""),this.handleScroll&&!e.hasAttribute("no-scroll")&&(t.scrollTop=null!==(o=this.scrollHistory[a])&&void 0!==o?o:0)):(e.setAttribute("hidden",""),this.selected&&e.removeAttribute(this.selected))})}};Yt.styles=c.css`
260
260
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host ::slotted([hidden]){display:none !important}")}
261
- `,Kt([(0,h.property)({attribute:"page",type:String,reflect:!0})],Yt.prototype,"page",null),Kt([(0,h.property)({attribute:!0,type:String})],Yt.prototype,"selected",void 0),Kt([(0,h.property)({attribute:"handle-scroll",type:Boolean})],Yt.prototype,"handleScroll",void 0),Yt=Kt([(0,h.customElement)("tk-pages")],Yt);var Xt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Ft=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1}render(){return c.html`
261
+ `,Vt([(0,h.property)({attribute:"page",type:String,reflect:!0})],Yt.prototype,"page",null),Vt([(0,h.property)({attribute:!0,type:String})],Yt.prototype,"selected",void 0),Vt([(0,h.property)({attribute:"handle-scroll",type:Boolean})],Yt.prototype,"handleScroll",void 0),Yt=Vt([(0,h.customElement)("tk-pages")],Yt);var Xt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Ft=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.onKeyDown=t=>{this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=()=>{this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}}render(){return c.html`
262
262
  <tk-box direction="row" align-items="center">
263
263
  <tk-box ripple tabindex="${this.disabled?-1:0}" class="state">
264
264
  <div class="radio">
@@ -281,7 +281,7 @@
281
281
  name="${(0,k.ifDefined)(this.name)}"
282
282
  tabindex="-1"
283
283
  />
284
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}};Ft.styles=c.css`
284
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}};Ft.styles=c.css`
285
285
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;cursor:pointer}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;overflow:hidden;outline:none}:host .radio{width:20px;height:20px;border:solid 2px hsl(var(--on-surface-variant));border-radius:100%;transition:var(--radio-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}:host #dot{background:hsl(var(--primary));width:10px;height:10px;border-radius:100%;transition:var(--radio-dot-transition, transform var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transform:scale(0)}:host .label{user-select:none}:host([checked]) .radio{border-color:hsl(var(--primary))}:host([checked]) #dot{transform:scale(1)}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none;opacity:.5}:host([disabled]) .radio{border:solid 2px hsl(var(--on-surface-variant))}:host([disabled]) #dot{background:hsl(var(--on-surface-variant))}:host([disabled]) .label{opacity:.6}")}
286
286
  `,Xt([(0,h.property)({attribute:!0,type:String})],Ft.prototype,"name",void 0),Xt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],Ft.prototype,"checked",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"required",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"disabled",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"readonly",void 0),Xt([(0,h.property)({type:String,reflect:!0})],Ft.prototype,"value",void 0),Xt([(0,h.query)("input")],Ft.prototype,"$input",void 0),Ft=Xt([(0,h.customElement)("tk-radio")],Ft);var Qt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Wt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$select?(this.$select.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$select?this.$select.value:this.initialValue||""}render(){return c.html`
287
287
  <div id="container">
@@ -355,7 +355,7 @@
355
355
  </div>
356
356
  `}handleChange(t){t.target.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid",""),this.value=t.target.value.toString(),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}firstUpdated(){this.appendChild(this.$input),this.setAttribute("dirty","")}updated(){requestAnimationFrame(()=>{this.style.setProperty("--_perc",((Number(this.value)-this.min)/(this.max-this.min)).toString())})}};Gt.styles=c.css`
357
357
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host{--_perc: 0;--_slider-track-bg: var(--slider-bg, hsl(var(--shadow)));--_slider-track-bg-active: var(--slider-bg-active, hsl(var(--primary)));--_slider-thumb-bg: var(--slider-thumb-bg, hsl(var(--on-primary)));--_slider-thumb-border: var(--slider-thumb-bg, hsl(var(--primary)))}:host([disabled]){--_slider-track-bg: var(--slider-bg-disabled, hsl(var(--shadow)));--_slider-track-bg-active: var(--slider-bg-active-disabled, hsl(var(--shadow)));--_slider-thumb-bg: var(--slider-thumb-bg-disabled, hsl(var(--shadow)));--_slider-thumb-border: var(--slider-thumb-bg, hsl(var(--shadow)))}:host([thumblabel]) #container,:host([thumblabel-persist]) #container{padding-top:33px}#container{overflow:visible;border:none}#slider{height:var(--slider-height, 0.3125rem);background:linear-gradient(90deg, var(--_slider-track-bg-active) 0, var(--_slider-track-bg-active) calc(var(--_perc) * 100%), var(--_slider-track-bg) calc(var(--_perc) * 100%), var(--_slider-track-bg));cursor:grab;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;box-sizing:border-box;margin:0;border-radius:0;top:calc(var(--slider-height, 0.3125rem)*-1/2)}#slider,#thumb-container{width:100%;position:relative}#thumb-label{--_thumb-label-transform-y: 0.625rem;left:calc(var(--_perc)*100% - var(--slider-thumb-size, 1.2rem)*var(--_perc));transform:translate(calc(-50% + var(--slider-thumb-size, 1.2rem) / 2), var(--_thumb-label-transform-y));width:var(--slider-thumb-label-size, 1.875rem);height:var(--slider-thumb-label-size, 1.875rem);border-radius:var(--slider-thumb-label-border-radius, 100%);color:var(--slider-thumb-label-color, hsl(var(--on-primary)));-webkit-text-fill-color:var(--slider-thumb-label-color, hsl(var(--on-primary)));font-size:var(--slider-thumb-label-font-size, 0.75rem);transition:var(--slider-thumb-label-transition, opacity var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));opacity:0;display:flex;align-items:center;justify-content:center;pointer-events:none;text-overflow:ellipsis;bottom:calc(100% + var(--slider-thumb-size, 0.75rem) + var(--slider-height, 0.3125rem) + var(--slider-thumb-space, 0.75rem))}#thumb-label,#thumb-label:before{background:var(--slider-thumb-label-bg, hsl(var(--primary)));position:absolute}#thumb-label:before{content:"";border-radius:0 50% 50% 50%;transform:rotate(225deg);width:100%;left:0;top:0;height:100%;z-index:-1}:host([thumblabel-persist]) #thumb-label,#slider:focus+#thumb-container #thumb-label,:host:focus #thumb-label{--_thumb-label-transform-y: 0;opacity:1}#slider::-webkit-slider-thumb{background:var(--_slider-thumb-bg);width:var(--slider-thumb-size, 1.2rem);height:var(--slider-thumb-size, 1.2rem);border-radius:var(--slider-thumb-border-radius, 100%);border:solid 4px var(--_slider-thumb-border);-webkit-transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));box-shadow:0 0 0 0 var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412));-webkit-appearance:none;appearance:none;cursor:grab;position:relative}#slider::-moz-range-thumb{background:var(--_slider-thumb-bg);width:var(--slider-thumb-size, 1.2rem);height:var(--slider-thumb-size, 1.2rem);border-radius:var(--slider-thumb-border-radius, 100%);border:solid 4px var(--_slider-thumb-border);-moz-transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transition:var(--slider-thumb-transition, transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));box-shadow:0 0 0 0 var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412));-moz-appearance:none;appearance:none;border:none;cursor:grab;position:relative}#slider:focus::-webkit-slider-thumb{transform:var(--slider-thumb-transform-focus, scale(1.2));box-shadow:0 0 0 var(--slider-thumb-focus-ring-size, 0.75rem) var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412))}#slider:focus::-moz-range-thumb{transform:var(--slider-thumb-transform-focus, scale(1.2));box-shadow:0 0 0 var(--slider-thumb-focus-ring-size, 0.75rem) var(--slider-thumb-focus-ring-bg, rgba(0, 0, 0, 0.0823529412))}')}
358
- `,Zt([(0,h.property)({attribute:!0,type:String})],Gt.prototype,"name",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"list",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"required",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"disabled",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"readonly",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"autocomplete",void 0),Zt([(0,h.property)({type:Boolean,attribute:"thumblabel"})],Gt.prototype,"thumbLabel",void 0),Zt([(0,h.property)({type:Boolean,attribute:"thumblabel-persist"})],Gt.prototype,"thumbLabelPersist",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"label",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"min",void 0),Zt([(0,h.property)({type:Number,reflect:!0})],Gt.prototype,"value",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"max",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"step",void 0),Zt([(0,h.query)("#slider")],Gt.prototype,"$slider",void 0),Zt([(0,h.query)(".hidden-input")],Gt.prototype,"$input",void 0),Gt=Zt([(0,h.customElement)("tk-slider")],Gt);var Jt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let te=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1}render(){return c.html`
358
+ `,Zt([(0,h.property)({attribute:!0,type:String})],Gt.prototype,"name",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"list",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"required",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"disabled",void 0),Zt([(0,h.property)({type:Boolean})],Gt.prototype,"readonly",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"autocomplete",void 0),Zt([(0,h.property)({type:Boolean,attribute:"thumblabel"})],Gt.prototype,"thumbLabel",void 0),Zt([(0,h.property)({type:Boolean,attribute:"thumblabel-persist"})],Gt.prototype,"thumbLabelPersist",void 0),Zt([(0,h.property)({type:String})],Gt.prototype,"label",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"min",void 0),Zt([(0,h.property)({type:Number,reflect:!0})],Gt.prototype,"value",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"max",void 0),Zt([(0,h.property)({type:Number})],Gt.prototype,"step",void 0),Zt([(0,h.query)("#slider")],Gt.prototype,"$slider",void 0),Zt([(0,h.query)(".hidden-input")],Gt.prototype,"$input",void 0),Gt=Zt([(0,h.customElement)("tk-slider")],Gt);var Jt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let te=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=()=>{this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}}render(){return c.html`
359
359
  <tk-box direction="row" align-items="center">
360
360
  <span class="switch">
361
361
  <tk-box ripple tabindex="${this.disabled?-1:0}" class="state">
@@ -378,7 +378,7 @@
378
378
  aria-hidden="true"
379
379
  tabindex="-1"
380
380
  />
381
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.onKeyDown.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};te.styles=c.css`
381
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}};te.styles=c.css`
382
382
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .switch{background:hsl(var(--surface-container-highest));border:solid 2px hsl(var(--outline));width:52px;height:32px;border-radius:9999px;transition:var(--switch-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));display:inline-flex;flex-shrink:0;align-items:center;position:relative;-webkit-user-select:none;user-select:none;will-change:background-color}:host .switch .state{width:40px;height:40px;border-radius:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;outline:none;margin-left:-5px;transition:var(--switch-knob-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));will-change:background-color,transform}:host .switch .state #knob{width:16px;height:16px;border-radius:100%;background:hsl(var(--outline));position:absolute;will-change:background-color}:host .label{margin-left:10px}:host(:not([disabled])){cursor:pointer}:host([checked]) .switch{background:hsl(var(--primary));border:none}:host([checked]) .switch .state{transform:translateX(18px)}:host([checked]) .switch .state #knob{width:24px;height:24px;background:hsl(var(--on-primary))}:host(:focus) .switch .state,:host(:hover) .switch .state{background:hsla(var(--surface-container-highest), 0.8)}:host([checked]:focus) .switch .state,:host([checked]:hover) .switch .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none}:host([disabled]) .switch{background:hsla(var(--surface-container-highest), 0.12);border-color:hsla(var(--on-surface), 0.12)}:host([disabled]) .switch .state #knob{background:hsla(var(--on-surface), 0.38)}:host([disabled]) .label{opacity:.6}:host([disabled][checked]) .switch{background:hsla(var(--on-surface), 0.12);border:none}:host([disabled][checked]) .switch .state #knob{background:hsla(var(--surface), 1)}")}
383
383
  `,Jt([(0,h.property)({attribute:!0,type:String})],te.prototype,"name",void 0),Jt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],te.prototype,"checked",void 0),Jt([(0,h.property)({type:Boolean})],te.prototype,"required",void 0),Jt([(0,h.property)({type:Boolean})],te.prototype,"disabled",void 0),Jt([(0,h.property)({type:Boolean})],te.prototype,"readonly",void 0),Jt([(0,h.property)({type:String,reflect:!0})],te.prototype,"value",void 0),Jt([(0,h.query)("input")],te.prototype,"$input",void 0),te=Jt([(0,h.customElement)("tk-switch")],te);var ee=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let re=class extends c.LitElement{render(){return c.html`
384
384
  <div class="tabs">