q<=0)){var pt,mt;const q=(((pt=i.flip)==null?void 0:pt.index)||0)+1,Kt=A[q];if(Kt)return{data:{index:q,overflows:J},reset:{placement:Kt}};let U=(mt=J.filter(tt=>tt.overflows[0]<=0).sort((tt,et)=>tt.overflows[1]-et.overflows[1])[0])==null?void 0:mt.placement;if(!U)switch(p){case"bestFit":{var gt;const tt=(gt=J.map(et=>[et.placement,et.overflows.filter(at=>at>0).reduce((at,ar)=>at+ar,0)]).sort((et,at)=>et[1]-at[1])[0])==null?void 0:gt[0];tt&&(U=tt);break}case"initialPlacement":U=l;break}if(r!==U)return{reset:{placement:U}}}return{}}}};async function Yi(e,t){const{placement:s,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),n=xt(s),l=Xt(s),a=ve(s)==="y",c=["left","top"].includes(n)?-1:1,u=i&&a?-1:1,h=Wt(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),a?{x:p*u,y:m*c}:{x:m*c,y:p*u}}const Wi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var s,o;const{x:r,y:i,placement:n,middlewareData:l}=t,a=await Yi(t,e);return n===((s=l.offset)==null?void 0:s.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:n}}}}},Xi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...a}=Wt(e,t),c={x:s,y:o},u=await zs(t,a),h=ve(xt(r)),m=qo(h);let p=c[m],g=c[h];if(i){const y=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=p+u[y],x=p-u[v];p=fs(w,p,x)}if(n){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",w=g+u[y],x=g-u[v];g=fs(w,g,x)}const b=l.fn({...t,[m]:p,[h]:g});return{...b,data:{x:b.x-s,y:b.y-o}}}}};const qi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:s,rects:o,platform:r,elements:i}=t,{apply:n=()=>{},...l}=Wt(e,t),a=await zs(t,l),c=xt(s),u=Xt(s),h=ve(s)==="y",{width:m,height:p}=o.floating;let g,b;c==="top"||c==="bottom"?(g=c,b=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=c,g=u==="end"?"top":"bottom");const y=p-a.top-a.bottom,v=m-a.left-a.right,w=ot(p-a[g],y),x=ot(m-a[b],v),C=!t.middlewareData.shift;let A=w,I=x;if(h?I=u||C?ot(x,v):v:A=u||C?ot(w,y):y,C&&!u){const J=N(a.left,0),pt=N(a.right,0),mt=N(a.top,0),gt=N(a.bottom,0);h?I=m-2*(J!==0||pt!==0?J+pt:N(a.left,a.right)):A=p-2*(mt!==0||gt!==0?mt+gt:N(a.top,a.bottom))}await n({...t,availableWidth:I,availableHeight:A});const B=await r.getDimensions(i.floating);return m!==B.width||p!==B.height?{reset:{rects:!0}}:{}}}};function qt(e){return Go(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Go(e){return e instanceof Node||e instanceof V(e).Node}function rt(e){return e instanceof Element||e instanceof V(e).Element}function it(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function ao(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function ye(e){const{overflow:t,overflowX:s,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+s)&&!["inline","contents"].includes(r)}function Ki(e){return["table","td","th"].includes(qt(e))}function Ps(e){const t=Ts(),s=G(e);return s.transform!=="none"||s.perspective!=="none"||(s.containerType?s.containerType!=="normal":!1)||!t&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!t&&(s.filter?s.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(s.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(s.contain||"").includes(o))}function Gi(e){let t=$t(e);for(;it(t)&&!Ft(t);){if(Ps(t))return t;t=$t(t)}return null}function Ts(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ft(e){return["html","body","#document"].includes(qt(e))}function G(e){return V(e).getComputedStyle(e)}function Ve(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(e){if(qt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ao(e)&&e.host||ut(e);return ao(t)?t.host:t}function Qo(e){const t=$t(e);return Ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&ye(t)?t:Qo(t)}function fe(e,t,s){var o;t===void 0&&(t=[]),s===void 0&&(s=!0);const r=Qo(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),n=V(r);return i?t.concat(n,n.visualViewport||[],ye(r)?r:[],n.frameElement&&s?fe(n.frameElement):[]):t.concat(r,fe(r,[],s))}function Zo(e){const t=G(e);let s=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=it(e),i=r?e.offsetWidth:s,n=r?e.offsetHeight:o,l=Te(s)!==i||Te(o)!==n;return l&&(s=i,o=n),{width:s,height:o,$:l}}function Ls(e){return rt(e)?e:e.contextElement}function Ut(e){const t=Ls(e);if(!it(t))return _t(1);const s=t.getBoundingClientRect(),{width:o,height:r,$:i}=Zo(t);let n=(i?Te(s.width):s.width)/o,l=(i?Te(s.height):s.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}const Qi=_t(0);function Jo(e){const t=V(e);return!Ts()||!t.visualViewport?Qi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zi(e,t,s){return t===void 0&&(t=!1),!s||t&&s!==V(e)?!1:t}function Tt(e,t,s,o){t===void 0&&(t=!1),s===void 0&&(s=!1);const r=e.getBoundingClientRect(),i=Ls(e);let n=_t(1);t&&(o?rt(o)&&(n=Ut(o)):n=Ut(e));const l=Zi(i,s,o)?Jo(i):_t(0);let a=(r.left+l.x)/n.x,c=(r.top+l.y)/n.y,u=r.width/n.x,h=r.height/n.y;if(i){const m=V(i),p=o&&rt(o)?V(o):o;let g=m,b=g.frameElement;for(;b&&o&&p!==g;){const y=Ut(b),v=b.getBoundingClientRect(),w=G(b),x=v.left+(b.clientLeft+parseFloat(w.paddingLeft))*y.x,C=v.top+(b.clientTop+parseFloat(w.paddingTop))*y.y;a*=y.x,c*=y.y,u*=y.x,h*=y.y,a+=x,c+=C,g=V(b),b=g.frameElement}}return Re({width:u,height:h,x:a,y:c})}const Ji=[":popover-open",":modal"];function Rs(e){return Ji.some(t=>{try{return e.matches(t)}catch{return!1}})}function tn(e){let{elements:t,rect:s,offsetParent:o,strategy:r}=e;const i=r==="fixed",n=ut(o),l=t?Rs(t.floating):!1;if(o===n||l&&i)return s;let a={scrollLeft:0,scrollTop:0},c=_t(1);const u=_t(0),h=it(o);if((h||!h&&!i)&&((qt(o)!=="body"||ye(n))&&(a=Ve(o)),it(o))){const m=Tt(o);c=Ut(o),u.x=m.x+o.clientLeft,u.y=m.y+o.clientTop}return{width:s.width*c.x,height:s.height*c.y,x:s.x*c.x-a.scrollLeft*c.x+u.x,y:s.y*c.y-a.scrollTop*c.y+u.y}}function en(e){return Array.from(e.getClientRects())}function tr(e){return Tt(ut(e)).left+Ve(e).scrollLeft}function sn(e){const t=ut(e),s=Ve(e),o=e.ownerDocument.body,r=N(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=N(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let n=-s.scrollLeft+tr(e);const l=-s.scrollTop;return G(o).direction==="rtl"&&(n+=N(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:n,y:l}}function on(e,t){const s=V(e),o=ut(e),r=s.visualViewport;let i=o.clientWidth,n=o.clientHeight,l=0,a=0;if(r){i=r.width,n=r.height;const c=Ts();(!c||c&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}return{width:i,height:n,x:l,y:a}}function rn(e,t){const s=Tt(e,!0,t==="fixed"),o=s.top+e.clientTop,r=s.left+e.clientLeft,i=it(e)?Ut(e):_t(1),n=e.clientWidth*i.x,l=e.clientHeight*i.y,a=r*i.x,c=o*i.y;return{width:n,height:l,x:a,y:c}}function lo(e,t,s){let o;if(t==="viewport")o=on(e,s);else if(t==="document")o=sn(ut(e));else if(rt(t))o=rn(t,s);else{const r=Jo(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Re(o)}function er(e,t){const s=$t(e);return s===t||!rt(s)||Ft(s)?!1:G(s).position==="fixed"||er(s,t)}function nn(e,t){const s=t.get(e);if(s)return s;let o=fe(e,[],!1).filter(l=>rt(l)&&qt(l)!=="body"),r=null;const i=G(e).position==="fixed";let n=i?$t(e):e;for(;rt(n)&&!Ft(n);){const l=G(n),a=Ps(n);!a&&l.position==="fixed"&&(r=null),(i?!a&&!r:!a&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ye(n)&&!a&&er(e,n))?o=o.filter(u=>u!==n):r=l,n=$t(n)}return t.set(e,o),o}function an(e){let{element:t,boundary:s,rootBoundary:o,strategy:r}=e;const n=[...s==="clippingAncestors"?Rs(t)?[]:nn(t,this._c):[].concat(s),o],l=n[0],a=n.reduce((c,u)=>{const h=lo(t,u,r);return c.top=N(h.top,c.top),c.right=ot(h.right,c.right),c.bottom=ot(h.bottom,c.bottom),c.left=N(h.left,c.left),c},lo(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ln(e){const{width:t,height:s}=Zo(e);return{width:t,height:s}}function cn(e,t,s){const o=it(t),r=ut(t),i=s==="fixed",n=Tt(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=_t(0);if(o||!o&&!i)if((qt(t)!=="body"||ye(r))&&(l=Ve(t)),o){const h=Tt(t,!0,i,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else r&&(a.x=tr(r));const c=n.left+l.scrollLeft-a.x,u=n.top+l.scrollTop-a.y;return{x:c,y:u,width:n.width,height:n.height}}function is(e){return G(e).position==="static"}function co(e,t){return!it(e)||G(e).position==="fixed"?null:t?t(e):e.offsetParent}function sr(e,t){const s=V(e);if(Rs(e))return s;if(!it(e)){let r=$t(e);for(;r&&!Ft(r);){if(rt(r)&&!is(r))return r;r=$t(r)}return s}let o=co(e,t);for(;o&&Ki(o)&&is(o);)o=co(o,t);return o&&Ft(o)&&is(o)&&!Ps(o)?s:o||Gi(e)||s}const dn=async function(e){const t=this.getOffsetParent||sr,s=this.getDimensions,o=await s(e.floating);return{reference:cn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hn(e){return G(e).direction==="rtl"}const ke={convertOffsetParentRelativeRectToViewportRelativeRect:tn,getDocumentElement:ut,getClippingRect:an,getOffsetParent:sr,getElementRects:dn,getClientRects:en,getDimensions:ln,getScale:Ut,isElement:rt,isRTL:hn};function un(e,t){let s=null,o;const r=ut(e);function i(){var l;clearTimeout(o),(l=s)==null||l.disconnect(),s=null}function n(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:c,top:u,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const p=xe(u),g=xe(r.clientWidth-(c+h)),b=xe(r.clientHeight-(u+m)),y=xe(c),w={rootMargin:-p+"px "+-g+"px "+-b+"px "+-y+"px",threshold:N(0,ot(1,a))||1};let x=!0;function C(A){const I=A[0].intersectionRatio;if(I!==a){if(!x)return n();I?n(!1,I):o=setTimeout(()=>{n(!1,1e-7)},1e3)}x=!1}try{s=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{s=new IntersectionObserver(C,w)}s.observe(e)}return n(!0),i}function fn(e,t,s,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=Ls(e),u=r||i?[...c?fe(c):[],...fe(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",s,{passive:!0}),i&&v.addEventListener("resize",s)});const h=c&&l?un(c,s):null;let m=-1,p=null;n&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),s()}),c&&!a&&p.observe(c),p.observe(t));let g,b=a?Tt(e):null;a&&y();function y(){const v=Tt(e);b&&(v.x!==b.x||v.y!==b.y||v.width!==b.width||v.height!==b.height)&&s(),b=v,g=requestAnimationFrame(y)}return s(),()=>{var v;u.forEach(w=>{r&&w.removeEventListener("scroll",s),i&&w.removeEventListener("resize",s)}),h==null||h(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const pn=Wi,mn=Xi,gn=ji,ho=qi,bn=Fi,vn=(e,t,s)=>{const o=new Map,r={platform:ke,...s},i={...r.platform,_c:o};return Hi(e,t,{...r,platform:i})};function yn(e){return wn(e)}function ns(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function wn(e){for(let t=e;t;t=ns(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ns(e);t;t=ns(t)){if(!(t instanceof Element))continue;const s=getComputedStyle(t);if(s.display!=="contents"&&(s.position!=="static"||s.filter!=="none"||t.tagName==="BODY"))return t}return null}function _n(e){return e!==null&&typeof e=="object"&&"getBoundingClientRect"in e&&("contextElement"in e?e instanceof Element:!0)}var $=class extends T{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect(),s=this.placement.includes("top")||this.placement.includes("bottom");let o=0,r=0,i=0,n=0,l=0,a=0,c=0,u=0;s?e.top{this.reposition()}))}async stop(){return new Promise(e=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>e())):e()})}reposition(){if(!this.active||!this.anchorEl)return;const e=[pn({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(ho({apply:({rects:s})=>{const o=this.sync==="width"||this.sync==="both",r=this.sync==="height"||this.sync==="both";this.popup.style.width=o?`${s.reference.width}px`:"",this.popup.style.height=r?`${s.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&e.push(gn({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&e.push(mn({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?e.push(ho({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:s,availableHeight:o})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${o}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${s}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&e.push(bn({element:this.arrowEl,padding:this.arrowPadding}));const t=this.strategy==="absolute"?s=>ke.getOffsetParent(s,yn):ke.getOffsetParent;vn(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:this.strategy,platform:be(At({},ke),{getOffsetParent:t})}).then(({x:s,y:o,middlewareData:r,placement:i})=>{const n=getComputedStyle(this).direction==="rtl",l={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${s}px`,top:`${o}px`}),this.arrow){const a=r.arrow.x,c=r.arrow.y;let u="",h="",m="",p="";if(this.arrowPlacement==="start"){const g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",h=n?g:"",p=n?"":g}else if(this.arrowPlacement==="end"){const g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=n?"":g,p=n?g:"",m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(p=typeof a=="number"?"calc(50% - var(--arrow-size-diagonal))":"",u=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(p=typeof a=="number"?`${a}px`:"",u=typeof c=="number"?`${c}px`:"");Object.assign(this.arrowEl.style,{top:u,right:h,bottom:m,left:p,[l]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("sl-reposition")}render(){return L` `}};$.styles=[F,Ri];d([P(".popup")],$.prototype,"popup",2);d([P(".popup__arrow")],$.prototype,"arrowEl",2);d([f()],$.prototype,"anchor",2);d([f({type:Boolean,reflect:!0})],$.prototype,"active",2);d([f({reflect:!0})],$.prototype,"placement",2);d([f({reflect:!0})],$.prototype,"strategy",2);d([f({type:Number})],$.prototype,"distance",2);d([f({type:Number})],$.prototype,"skidding",2);d([f({type:Boolean})],$.prototype,"arrow",2);d([f({attribute:"arrow-placement"})],$.prototype,"arrowPlacement",2);d([f({attribute:"arrow-padding",type:Number})],$.prototype,"arrowPadding",2);d([f({type:Boolean})],$.prototype,"flip",2);d([f({attribute:"flip-fallback-placements",converter:{fromAttribute:e=>e.split(" ").map(t=>t.trim()).filter(t=>t!==""),toAttribute:e=>e.join(" ")}})],$.prototype,"flipFallbackPlacements",2);d([f({attribute:"flip-fallback-strategy"})],$.prototype,"flipFallbackStrategy",2);d([f({type:Object})],$.prototype,"flipBoundary",2);d([f({attribute:"flip-padding",type:Number})],$.prototype,"flipPadding",2);d([f({type:Boolean})],$.prototype,"shift",2);d([f({type:Object})],$.prototype,"shiftBoundary",2);d([f({attribute:"shift-padding",type:Number})],$.prototype,"shiftPadding",2);d([f({attribute:"auto-size"})],$.prototype,"autoSize",2);d([f()],$.prototype,"sync",2);d([f({type:Object})],$.prototype,"autoSizeBoundary",2);d([f({attribute:"auto-size-padding",type:Number})],$.prototype,"autoSizePadding",2);d([f({attribute:"hover-bridge",type:Boolean})],$.prototype,"hoverBridge",2);var W=class extends T{constructor(){super(...arguments),this.type="normal",this.checked=!1,this.value="",this.loading=!1,this.disabled=!1,this.localize=new Yt(this),this.hasSlotController=new Ue(this,"submenu"),this.submenuController=new Li(this,this.hasSlotController,this.localize),this.handleHostClick=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},this.handleMouseOver=e=>{this.focus(),e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){const e=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=e;return}e!==this.cachedTextLabel&&(this.cachedTextLabel=e,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return yi(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){const e=this.localize.dir()==="rtl",t=this.submenuController.isExpanded();return L` `}};W.styles=[F,ki];W.dependencies={"sl-icon":Y,"sl-popup":$,"sl-spinner":ks};d([P("slot:not([name])")],W.prototype,"defaultSlot",2);d([P(".menu-item")],W.prototype,"menuItem",2);d([f()],W.prototype,"type",2);d([f({type:Boolean,reflect:!0})],W.prototype,"checked",2);d([f()],W.prototype,"value",2);d([f({type:Boolean,reflect:!0})],W.prototype,"loading",2);d([f({type:Boolean,reflect:!0})],W.prototype,"disabled",2);d([j("checked")],W.prototype,"handleCheckedChange",1);d([j("disabled")],W.prototype,"handleDisabledChange",1);d([j("type")],W.prototype,"handleTypeChange",1);W.define("sl-menu-item");var xn=M` :host { display: inline-block; } .dropdown::part(popup) { z-index: var(--sl-z-index-dropdown); } .dropdown[data-current-placement^='top']::part(popup) { transform-origin: bottom; } .dropdown[data-current-placement^='bottom']::part(popup) { transform-origin: top; } .dropdown[data-current-placement^='left']::part(popup) { transform-origin: right; } .dropdown[data-current-placement^='right']::part(popup) { transform-origin: left; } .dropdown__trigger { display: block; } .dropdown__panel { font-family: var(--sl-font-sans); font-size: var(--sl-font-size-medium); font-weight: var(--sl-font-weight-normal); box-shadow: var(--sl-shadow-large); border-radius: var(--sl-border-radius-medium); pointer-events: none; } .dropdown--open .dropdown__panel { display: block; pointer-events: all; } /* When users slot a menu, make sure it conforms to the popup's auto-size */ ::slotted(sl-menu) { max-width: var(--auto-size-available-width) !important; max-height: var(--auto-size-available-height) !important; } `,uo=new WeakMap;function or(e){let t=uo.get(e);return t||(t=window.getComputedStyle(e,null),uo.set(e,t)),t}function $n(e){if(typeof e.checkVisibility=="function")return e.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const t=or(e);return t.visibility!=="hidden"&&t.display!=="none"}function An(e){const t=or(e),{overflowY:s,overflowX:o}=t;return s==="scroll"||o==="scroll"?!0:s!=="auto"||o!=="auto"?!1:e.scrollHeight>e.clientHeight&&s==="auto"||e.scrollWidth>e.clientWidth&&o==="auto"}function kn(e){const t=e.tagName.toLowerCase(),s=Number(e.getAttribute("tabindex"));return e.hasAttribute("tabindex")&&(isNaN(s)||s<=-1)||e.hasAttribute("disabled")||e.closest("[inert]")||t==="input"&&e.getAttribute("type")==="radio"&&!e.hasAttribute("checked")||!$n(e)?!1:(t==="audio"||t==="video")&&e.hasAttribute("controls")||e.hasAttribute("tabindex")||e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(t)?!0:An(e)}function Sn(e){var t,s;const o=ms(e),r=(t=o[0])!=null?t:null,i=(s=o[o.length-1])!=null?s:null;return{start:r,end:i}}function Cn(e,t){var s;return((s=e.getRootNode({composed:!0}))==null?void 0:s.host)!==t}function ms(e){const t=new WeakMap,s=[];function o(r){if(r instanceof Element){if(r.hasAttribute("inert")||r.closest("[inert]")||t.has(r))return;t.set(r,!0),!s.includes(r)&&kn(r)&&s.push(r),r instanceof HTMLSlotElement&&Cn(r,e)&&r.assignedElements({flatten:!0}).forEach(i=>{o(i)}),r.shadowRoot!==null&&r.shadowRoot.mode==="open"&&o(r.shadowRoot)}for(const i of r.children)o(i)}return o(e),s.sort((r,i)=>{const n=Number(r.getAttribute("tabindex"))||0;return(Number(i.getAttribute("tabindex"))||0)-n})}var rr=new Map,En=new WeakMap;function On(e){return e!=null?e:{keyframes:[],options:{duration:0}}}function fo(e,t){return t.toLowerCase()==="rtl"?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function ft(e,t){rr.set(e,On(t))}function lt(e,t,s){const o=En.get(e);if(o!=null&&o[t])return fo(o[t],s.dir);const r=rr.get(t);return r?fo(r,s.dir):{keyframes:[],options:{duration:0}}}function jt(e,t){return new Promise(s=>{function o(r){r.target===e&&(e.removeEventListener(t,o),s())}e.addEventListener(t,o)})}function ct(e,t,s){return new Promise(o=>{if((s==null?void 0:s.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=e.animate(t,be(At({},s),{duration:zn()?0:s.duration}));r.addEventListener("cancel",o,{once:!0}),r.addEventListener("finish",o,{once:!0})})}function zn(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function yt(e){return Promise.all(e.getAnimations().map(t=>new Promise(s=>{t.cancel(),requestAnimationFrame(s)})))}function po(e,t){return e.map(s=>be(At({},s),{height:s.height==="auto"?`${t}px`:s.height}))}var R=class extends T{constructor(){super(...arguments),this.localize=new Yt(this),this.open=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.hoist=!1,this.sync=void 0,this.handleKeyDown=e=>{this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())},this.handleDocumentKeyDown=e=>{var t;if(e.key==="Escape"&&this.open&&!this.closeWatcher){e.stopPropagation(),this.focusOnTrigger(),this.hide();return}if(e.key==="Tab"){if(this.open&&((t=document.activeElement)==null?void 0:t.tagName.toLowerCase())==="sl-menu-item"){e.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var s,o,r;const i=((s=this.containingElement)==null?void 0:s.getRootNode())instanceof ShadowRoot?(r=(o=document.activeElement)==null?void 0:o.shadowRoot)==null?void 0:r.activeElement:document.activeElement;(!this.containingElement||(i==null?void 0:i.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}},this.handleDocumentMouseDown=e=>{const t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()},this.handlePanelSelect=e=>{const t=e.target;!this.stayOpenOnSelect&&t.tagName.toLowerCase()==="sl-menu"&&(this.hide(),this.focusOnTrigger())}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const e=this.trigger.assignedElements({flatten:!0})[0];typeof(e==null?void 0:e.focus)=="function"&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="sl-menu")}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}async handleTriggerKeyDown(e){if([" ","Enter"].includes(e.key)){e.preventDefault(),this.handleTriggerClick();return}const t=this.getMenu();if(t){const s=t.getAllItems(),o=s[0],r=s[s.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||(this.show(),await this.updateComplete),s.length>0&&this.updateComplete.then(()=>{(e.key==="ArrowDown"||e.key==="Home")&&(t.setCurrentItem(o),o.focus()),(e.key==="ArrowUp"||e.key==="End")&&(t.setCurrentItem(r),r.focus())}))}}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find(o=>Sn(o).start);let s;if(t){switch(t.tagName.toLowerCase()){case"sl-button":case"sl-icon-button":s=t.button;break;default:s=t}s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,jt(this,"sl-after-show")}async hide(){if(!!this.open)return this.open=!1,jt(this,"sl-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){var e;this.panel.addEventListener("sl-select",this.handlePanelSelect),"CloseWatcher"in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide(),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){var e;this.panel&&(this.panel.removeEventListener("sl-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),(e=this.closeWatcher)==null||e.destroy()}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sl-show"),this.addOpenListeners(),await yt(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:e,options:t}=lt(this,"dropdown.show",{dir:this.localize.dir()});await ct(this.popup.popup,e,t),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await yt(this);const{keyframes:e,options:t}=lt(this,"dropdown.hide",{dir:this.localize.dir()});await ct(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}render(){return L`${this.arrow?L``:""} `}};R.styles=[F,xn];R.dependencies={"sl-popup":$};d([P(".dropdown")],R.prototype,"popup",2);d([P(".dropdown__trigger")],R.prototype,"trigger",2);d([P(".dropdown__panel")],R.prototype,"panel",2);d([f({type:Boolean,reflect:!0})],R.prototype,"open",2);d([f({reflect:!0})],R.prototype,"placement",2);d([f({type:Boolean,reflect:!0})],R.prototype,"disabled",2);d([f({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],R.prototype,"stayOpenOnSelect",2);d([f({attribute:!1})],R.prototype,"containingElement",2);d([f({type:Number})],R.prototype,"distance",2);d([f({type:Number})],R.prototype,"skidding",2);d([f({type:Boolean})],R.prototype,"hoist",2);d([f({reflect:!0})],R.prototype,"sync",2);d([j("open",{waitUntilFirstUpdate:!0})],R.prototype,"handleOpenChange",1);ft("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});ft("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});R.define("sl-dropdown");var Pn=M` :host { display: block; } .details { border: solid 1px var(--sl-color-neutral-200); border-radius: var(--sl-border-radius-medium); background-color: var(--sl-color-neutral-0); overflow-anchor: none; } .details--disabled { opacity: 0.5; } .details__header { display: flex; align-items: center; border-radius: inherit; padding: var(--sl-spacing-medium); user-select: none; -webkit-user-select: none; cursor: pointer; } .details__header::-webkit-details-marker { display: none; } .details__header:focus { outline: none; } .details__header:focus-visible { outline: var(--sl-focus-ring); outline-offset: calc(1px + var(--sl-focus-ring-offset)); } .details--disabled .details__header { cursor: not-allowed; } .details--disabled .details__header:focus-visible { outline: none; box-shadow: none; } .details__summary { flex: 1 1 auto; display: flex; align-items: center; } .details__summary-icon { flex: 0 0 auto; display: flex; align-items: center; transition: var(--sl-transition-medium) rotate ease; } .details--open .details__summary-icon { rotate: 90deg; } .details--open.details--rtl .details__summary-icon { rotate: -90deg; } .details--open slot[name='expand-icon'], .details:not(.details--open) slot[name='collapse-icon'] { display: none; } .details__body { overflow: hidden; } .details__content { display: block; padding: var(--sl-spacing-medium); } `,Q=class extends T{constructor(){super(...arguments),this.localize=new Yt(this),this.open=!1,this.disabled=!1}firstUpdated(){this.body.style.height=this.open?"auto":"0",this.open&&(this.details.open=!0),this.detailsObserver=new MutationObserver(e=>{for(const t of e)t.type==="attributes"&&t.attributeName==="open"&&(this.details.open?this.show():this.hide())}),this.detailsObserver.observe(this.details,{attributes:!0})}disconnectedCallback(){super.disconnectedCallback(),this.detailsObserver.disconnect()}handleSummaryClick(e){e.preventDefault(),this.disabled||(this.open?this.hide():this.show(),this.header.focus())}handleSummaryKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.open?this.hide():this.show()),(e.key==="ArrowUp"||e.key==="ArrowLeft")&&(e.preventDefault(),this.hide()),(e.key==="ArrowDown"||e.key==="ArrowRight")&&(e.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.details.open=!0,this.emit("sl-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.details.open=!1;return}await yt(this.body);const{keyframes:t,options:s}=lt(this,"details.show",{dir:this.localize.dir()});await ct(this.body,po(t,this.body.scrollHeight),s),this.body.style.height="auto",this.emit("sl-after-show")}else{if(this.emit("sl-hide",{cancelable:!0}).defaultPrevented){this.details.open=!0,this.open=!0;return}await yt(this.body);const{keyframes:t,options:s}=lt(this,"details.hide",{dir:this.localize.dir()});await ct(this.body,po(t,this.body.scrollHeight),s),this.body.style.height="auto",this.details.open=!1,this.emit("sl-after-hide")}}async show(){if(!(this.open||this.disabled))return this.open=!0,jt(this,"sl-after-show")}async hide(){if(!(!this.open||this.disabled))return this.open=!1,jt(this,"sl-after-hide")}render(){const e=this.localize.dir()==="rtl";return L` `}};Q.styles=[F,Pn];Q.dependencies={"sl-icon":Y};d([P(".details")],Q.prototype,"details",2);d([P(".details__header")],Q.prototype,"header",2);d([P(".details__body")],Q.prototype,"body",2);d([P(".details__expand-icon-slot")],Q.prototype,"expandIconSlot",2);d([f({type:Boolean,reflect:!0})],Q.prototype,"open",2);d([f()],Q.prototype,"summary",2);d([f({type:Boolean,reflect:!0})],Q.prototype,"disabled",2);d([j("open",{waitUntilFirstUpdate:!0})],Q.prototype,"handleOpenChange",1);ft("details.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"linear"}});ft("details.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"linear"}});Q.define("sl-details");function*Is(e=document.activeElement){e!=null&&(yield e,"shadowRoot"in e&&e.shadowRoot&&e.shadowRoot.mode!=="closed"&&(yield*si(Is(e.shadowRoot.activeElement))))}function Tn(){return[...Is()].pop()}var se=[],Ln=class{constructor(e){this.tabDirection="forward",this.handleFocusIn=()=>{!this.isActive()||this.checkFocus()},this.handleKeyDown=t=>{var s;if(t.key!=="Tab"||this.isExternalActivated||!this.isActive())return;const o=Tn();if(this.previousFocus=o,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;t.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const r=ms(this.element);let i=r.findIndex(l=>l===o);this.previousFocus=this.currentFocus;const n=this.tabDirection==="forward"?1:-1;for(;;){i+n>=r.length?i=0:i+n<0?i=r.length-1:i+=n,this.previousFocus=this.currentFocus;const l=r[i];if(this.tabDirection==="backward"&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus)||l&&this.possiblyHasTabbableChildren(l))return;t.preventDefault(),this.currentFocus=l,(s=this.currentFocus)==null||s.focus({preventScroll:!1});const a=[...Is()];if(a.includes(this.currentFocus)||!a.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=e,this.elementsWithTabbableControls=["iframe"]}activate(){se.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){se=se.filter(e=>e!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return se[se.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const e=ms(this.element);if(!this.element.matches(":focus-within")){const t=e[0],s=e[e.length-1],o=this.tabDirection==="forward"?t:s;typeof(o==null?void 0:o.focus)=="function"&&(this.currentFocus=o,o.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(e){return this.elementsWithTabbableControls.includes(e.tagName.toLowerCase())||e.hasAttribute("controls")}},gs=new Set;function Rn(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function In(){const e=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(e)||!e?0:e}function mo(e){if(gs.add(e),!document.documentElement.classList.contains("sl-scroll-lock")){const t=Rn()+In();let s=getComputedStyle(document.documentElement).scrollbarGutter;(!s||s==="auto")&&(s="stable"),t<=0&&(s="revert"),document.documentElement.style.setProperty("--sl-scroll-lock-gutter",s),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function go(e){gs.delete(e),gs.size===0&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}var Dn=M` :host { --width: 31rem; --header-spacing: var(--sl-spacing-large); --body-spacing: var(--sl-spacing-large); --footer-spacing: var(--sl-spacing-large); display: contents; } .dialog { display: flex; align-items: center; justify-content: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: var(--sl-z-index-dialog); } .dialog__panel { display: flex; flex-direction: column; z-index: 2; width: var(--width); max-width: calc(100% - var(--sl-spacing-2x-large)); max-height: calc(100% - var(--sl-spacing-2x-large)); background-color: var(--sl-panel-background-color); border-radius: var(--sl-border-radius-medium); box-shadow: var(--sl-shadow-x-large); } .dialog__panel:focus { outline: none; } /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */ @media screen and (max-width: 420px) { .dialog__panel { max-height: 80vh; } } .dialog--open .dialog__panel { display: flex; opacity: 1; } .dialog__header { flex: 0 0 auto; display: flex; } .dialog__title { flex: 1 1 auto; font: inherit; font-size: var(--sl-font-size-large); line-height: var(--sl-line-height-dense); padding: var(--header-spacing); margin: 0; } .dialog__header-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: end; gap: var(--sl-spacing-2x-small); padding: 0 var(--header-spacing); } .dialog__header-actions sl-icon-button, .dialog__header-actions ::slotted(sl-icon-button) { flex: 0 0 auto; display: flex; align-items: center; font-size: var(--sl-font-size-medium); } .dialog__body { flex: 1 1 auto; display: block; padding: var(--body-spacing); overflow: auto; -webkit-overflow-scrolling: touch; } .dialog__footer { flex: 0 0 auto; text-align: right; padding: var(--footer-spacing); } .dialog__footer ::slotted(sl-button:not(:first-of-type)) { margin-inline-start: var(--sl-spacing-x-small); } .dialog:not(.dialog--has-footer) .dialog__footer { display: none; } .dialog__overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--sl-overlay-background-color); } @media (forced-colors: active) { .dialog__panel { border: solid 1px var(--sl-color-neutral-0); } } `,Mn=M` :host { display: inline-block; color: var(--sl-color-neutral-600); } .icon-button { flex: 0 0 auto; display: flex; align-items: center; background: none; border: none; border-radius: var(--sl-border-radius-medium); font-size: inherit; color: inherit; padding: var(--sl-spacing-x-small); cursor: pointer; transition: var(--sl-transition-x-fast) color; -webkit-appearance: none; } .icon-button:hover:not(.icon-button--disabled), .icon-button:focus-visible:not(.icon-button--disabled) { color: var(--sl-color-primary-600); } .icon-button:active:not(.icon-button--disabled) { color: var(--sl-color-primary-700); } .icon-button:focus { outline: none; } .icon-button--disabled { opacity: 0.5; cursor: not-allowed; } .icon-button:focus-visible { outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } .icon-button__icon { pointer-events: none; } `,X=class extends T{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){const e=!!this.href,t=e?ze`a`:ze`button`;return Ae` <${t} part="base" class=${dt({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})} ?disabled=${k(e?void 0:this.disabled)} type=${k(e?void 0:"button")} href=${k(e?this.href:void 0)} target=${k(e?this.target:void 0)} download=${k(e?this.download:void 0)} rel=${k(e&&this.target?"noreferrer noopener":void 0)} role=${k(e?void 0:"button")} aria-disabled=${this.disabled?"true":"false"} aria-label="${this.label}" tabindex=${this.disabled?"-1":"0"} @blur=${this.handleBlur} @focus=${this.handleFocus} @click=${this.handleClick} > ${t}> `}};X.styles=[F,Mn];X.dependencies={"sl-icon":Y};d([P(".icon-button")],X.prototype,"button",2);d([Be()],X.prototype,"hasFocus",2);d([f()],X.prototype,"name",2);d([f()],X.prototype,"library",2);d([f()],X.prototype,"src",2);d([f()],X.prototype,"href",2);d([f()],X.prototype,"target",2);d([f()],X.prototype,"download",2);d([f()],X.prototype,"label",2);d([f({type:Boolean,reflect:!0})],X.prototype,"disabled",2);var nt=class extends T{constructor(){super(...arguments),this.hasSlotController=new Ue(this,"footer"),this.localize=new Yt(this),this.modal=new Ln(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.modal.isActive()&&this.open&&(e.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),mo(this))}disconnectedCallback(){var e;super.disconnectedCallback(),this.modal.deactivate(),go(this),(e=this.closeWatcher)==null||e.destroy()}requestClose(e){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){const s=lt(this,"dialog.denyClose",{dir:this.localize.dir()});ct(this.panel,s.keyframes,s.options);return}this.hide()}addOpenListeners(){var e;"CloseWatcher"in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var e;(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),mo(this);const e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([yt(this.dialog),yt(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});const t=lt(this,"dialog.show",{dir:this.localize.dir()}),s=lt(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([ct(this.panel,t.keyframes,t.options),ct(this.overlay,s.keyframes,s.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([yt(this.dialog),yt(this.overlay)]);const e=lt(this,"dialog.hide",{dir:this.localize.dir()}),t=lt(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([ct(this.overlay,t.keyframes,t.options).then(()=>{this.overlay.hidden=!0}),ct(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,go(this);const s=this.originalTrigger;typeof(s==null?void 0:s.focus)=="function"&&setTimeout(()=>s.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,jt(this,"sl-after-show")}async hide(){if(!!this.open)return this.open=!1,jt(this,"sl-after-hide")}render(){return L` `}};nt.styles=[F,Dn];nt.dependencies={"sl-icon-button":X};d([P(".dialog")],nt.prototype,"dialog",2);d([P(".dialog__panel")],nt.prototype,"panel",2);d([P(".dialog__overlay")],nt.prototype,"overlay",2);d([f({type:Boolean,reflect:!0})],nt.prototype,"open",2);d([f({reflect:!0})],nt.prototype,"label",2);d([f({attribute:"no-header",type:Boolean,reflect:!0})],nt.prototype,"noHeader",2);d([j("open",{waitUntilFirstUpdate:!0})],nt.prototype,"handleOpenChange",1);ft("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});ft("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});ft("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});ft("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});ft("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});nt.define("sl-dialog");var Bn=M` :host { display: contents; } `;const Un=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}],Nn=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}],Vn=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}],Hn=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}],Fn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],jn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Yn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Wn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Xn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],qn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Kn=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}],Gn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Qn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Zn=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Jn=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],ta=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],ea=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],sa=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}],oa=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}],ra=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}],ia=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}],na=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],aa=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],la=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],ca=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],da=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],ha=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}],ua=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}],fa=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}],pa=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}],ma=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}],ga=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}],ba=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],va=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ya=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],wa=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],_a=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],xa=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],$a=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Aa=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ka=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Sa=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ca=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ea=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Oa=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}],za=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}],Pa=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}],Ta=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}],La=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}],Ra=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}],Ia=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}],Da=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}],Ma=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}],Ba=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}],Ua=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}],Na=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}],Va=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}],Ha=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg)`,easing:"ease-out"},{offset:.5,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg)`,easing:"ease-in"},{offset:.8,transform:`perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}],Fa=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],ja=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],Ya=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}],Wa=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}],Xa=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],qa=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ka=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}],Ga=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}],Qa=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Za=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Ja=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],tl=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],el=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],sl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}],ol=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}],rl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],il=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],nl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}],al=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],ll=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],cl=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],dl=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],hl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}],ul=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}],fl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}],pl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}],ml=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}],gl=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}],bl=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],vl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}],yl=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}],wl=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],_l=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],xl=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],$l=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Al=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}],kl=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Sl=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}],Cl=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}],El=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],ir={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};var Ol=Object.freeze(Object.defineProperty({__proto__:null,easings:ir,bounce:Un,flash:Nn,headShake:Vn,heartBeat:Hn,jello:Fn,pulse:jn,rubberBand:Yn,shake:Wn,shakeX:Xn,shakeY:qn,swing:Kn,tada:Gn,wobble:Qn,backInDown:Zn,backInLeft:Jn,backInRight:ta,backInUp:ea,backOutDown:sa,backOutLeft:oa,backOutRight:ra,backOutUp:ia,bounceIn:na,bounceInDown:aa,bounceInLeft:la,bounceInRight:ca,bounceInUp:da,bounceOut:ha,bounceOutDown:ua,bounceOutLeft:fa,bounceOutRight:pa,bounceOutUp:ma,fadeIn:ga,fadeInBottomLeft:ba,fadeInBottomRight:va,fadeInDown:ya,fadeInDownBig:wa,fadeInLeft:_a,fadeInLeftBig:xa,fadeInRight:$a,fadeInRightBig:Aa,fadeInTopLeft:ka,fadeInTopRight:Sa,fadeInUp:Ca,fadeInUpBig:Ea,fadeOut:Oa,fadeOutBottomLeft:za,fadeOutBottomRight:Pa,fadeOutDown:Ta,fadeOutDownBig:La,fadeOutLeft:Ra,fadeOutLeftBig:Ia,fadeOutRight:Da,fadeOutRightBig:Ma,fadeOutTopLeft:Ba,fadeOutTopRight:Ua,fadeOutUp:Na,fadeOutUpBig:Va,flip:Ha,flipInX:Fa,flipInY:ja,flipOutX:Ya,flipOutY:Wa,lightSpeedInLeft:Xa,lightSpeedInRight:qa,lightSpeedOutLeft:Ka,lightSpeedOutRight:Ga,rotateIn:Qa,rotateInDownLeft:Za,rotateInDownRight:Ja,rotateInUpLeft:tl,rotateInUpRight:el,rotateOut:sl,rotateOutDownLeft:ol,rotateOutDownRight:rl,rotateOutUpLeft:il,rotateOutUpRight:nl,slideInDown:al,slideInLeft:ll,slideInRight:cl,slideInUp:dl,slideOutDown:hl,slideOutLeft:ul,slideOutRight:fl,slideOutUp:pl,hinge:ml,jackInTheBox:gl,rollIn:bl,rollOut:vl,zoomIn:yl,zoomInDown:wl,zoomInLeft:_l,zoomInRight:xl,zoomInUp:$l,zoomOut:Al,zoomOutDown:kl,zoomOutLeft:Sl,zoomOutRight:Cl,zoomOutUp:El},Symbol.toStringTag,{value:"Module"})),z=class extends T{constructor(){super(...arguments),this.hasStarted=!1,this.name="none",this.play=!1,this.delay=0,this.direction="normal",this.duration=1e3,this.easing="linear",this.endDelay=0,this.fill="auto",this.iterations=1/0,this.iterationStart=0,this.playbackRate=1,this.handleAnimationFinish=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-finish")},this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-cancel")}}get currentTime(){var e,t;return(t=(e=this.animation)==null?void 0:e.currentTime)!=null?t:0}set currentTime(e){this.animation&&(this.animation.currentTime=e)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var e,t;const s=(e=ir[this.easing])!=null?e:this.easing,o=(t=this.keyframes)!=null?t:Ol[this.name],i=(await this.defaultSlot).assignedElements()[0];return!i||!o?!1:(this.destroyAnimation(),this.animation=i.animate(o,{delay:this.delay,direction:this.direction,duration:this.duration,easing:s,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sl-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){!this.hasUpdated||this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sl-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var e;(e=this.animation)==null||e.cancel()}finish(){var e;(e=this.animation)==null||e.finish()}render(){return L`
${this.summary} `}};z.styles=[F,Bn];d([ii("slot")],z.prototype,"defaultSlot",2);d([f()],z.prototype,"name",2);d([f({type:Boolean,reflect:!0})],z.prototype,"play",2);d([f({type:Number})],z.prototype,"delay",2);d([f()],z.prototype,"direction",2);d([f({type:Number})],z.prototype,"duration",2);d([f()],z.prototype,"easing",2);d([f({attribute:"end-delay",type:Number})],z.prototype,"endDelay",2);d([f()],z.prototype,"fill",2);d([f({type:Number})],z.prototype,"iterations",2);d([f({attribute:"iteration-start",type:Number})],z.prototype,"iterationStart",2);d([f({attribute:!1})],z.prototype,"keyframes",2);d([f({attribute:"playback-rate",type:Number})],z.prototype,"playbackRate",2);d([j(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],z.prototype,"handleAnimationChange",1);d([j("play")],z.prototype,"handlePlayChange",1);d([j("playbackRate")],z.prototype,"handlePlaybackRateChange",1);z.define("sl-animation");var zl=ht` ${Rt} :host { min-width: 400px; background: lightgray; } #sidebar-narrow { display: grid; grid-template-columns: repeat(1, 1fr); grid-auto-rows: auto; gap: 1.5em; padding: 0em 2em; margin: 2em 0em; } sl-button { box-shadow: var(--sl-shadow-x-large); } sl-button::part(label) { font-family: var(--font-family-headers); font-size: var(--sl-font-size-large); font-weight: bold; } #sidebar-wide { display: none; } @media (min-width: 768px) { #sidebar-narrow { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1300px) { sl-button::part(label) { font-family: var(--font-family-body); font-size: var(--sl-font-size-medium); } #sidebar-narrow { display: none; } #sidebar-wide { display: grid; grid-auto-rows: auto; grid-row-gap: 2rem; padding: 2em; } .card-header [slot="header"] { display: flex; align-items: center; justify-content: space-between; } sl-card::part(header) { background-color: var(--color-primary-darkest); } .card-header h2 { margin: 0; color: white; } .card-header sl-icon-button { font-size: var(--sl-font-size-medium); } .grid { display: grid; grid-template: "icon text" auto / 1fr 3fr; } .sidebar-icon { font-size: 4rem; display: flex; align-items: center; } sl-card::part(footer) { background-color: var(--color-gray-lightest); } sl-card::part(base) { --border-width: 0px; box-shadow: var(--sl-shadow-x-large); } .phone-number-text { font-weight: bold; /* font-size: clamp(0.1rem, 1vw, 1.5rem); */ margin: 0; } .phone-number-icon { font-size: clamp(2rem, 5vw, 1.5rem); } .description { font-size: 1.25em; } } `,Pl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,Ll=(e,t,s,o)=>{for(var r=o>1?void 0:o?Tl(t,s):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(o?n(t,s,r):n(r))||r);return o&&r&&Pl(t,s,r),r};let bs=class extends K{render(){return E` `}};bs.styles=zl;bs=Ll([Lt("ssvf-sidebar")],bs);var Rl=ht` ${Rt} :host { background: var(--primary-color); color: white; box-shadow: var(--sl-shadow-large); display: grid; grid-template: "notice notice notice notice" auto ". logo logo ." auto ". divider divider ." auto ". nav search ." auto / 1fr 5fr 5fr 1fr; gap: 1.5em; z-index: 999; } img { max-width: 100%; } .logo { grid-area: logo; } ssvf-navbar { grid-area: nav; } ssvf-notice-banner { grid-area: notice; } sl-divider { grid-area: divider; margin: 0; } /* SEARCH STYLES */ .icon { position: absolute; color: var(--primary-color); border: none; padding: 0.5em 0.5em; font-size: 1.5em; } input::placeholder { color: var(--primary-color); } .formsearch { grid-area: search; } #search { padding: 0; text-indent: 50px; height: calc( var(--sl-input-height-medium) - var(--sl-input-border-width) * 2 ); box-sizing: inherit; appearance: none; color: var(--primary-color); display: flex; width: 100%; height: 1.8rem; border-radius: 0.4rem; vertical-align: middle; cursor: text; margin: 0px 0px 10px 0px; border-radius: var(--sl-input-border-radius-large); font-size: var(--sl-input-font-size-large); height: var(--sl-input-height-large); border: solid var(--sl-input-border-width) rgb(var(--sl-input-border-color)); overflow: hidden; } @media screen and (min-width: 768px) { :host { grid-template: "notice notice notice notice" auto ". logo . ." auto ". divider divider ." auto ". nav search ." auto / 1fr 5fr 5fr 1fr; } } @media screen and (min-width: 1300px) { :host { grid-template: "notice notice notice notice notice" auto ". logo . search ." auto ". divider divider divider ." auto ". nav nav nav ." auto / minmax(0, 1fr) 3fr 3fr 3fr minmax(0, 1fr); gap: 1.5em; align-items: center; } #search { margin: 0; } } `;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Il={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Dl=e=>(...t)=>({_$litDirective$:e,values:t});class Ml{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,o){this._$Ct=t,this._$AM=s,this._$Ci=o}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const st=Dl(class extends Ml{constructor(e){var t;if(super(e),e.type!==Il.ATTRIBUTE||e.name!=="class"||((t=e.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var s,o;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.et=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!(!((s=this.et)===null||s===void 0)&&s.has(i))&&this.st.add(i);return this.render(t)}const r=e.element.classList;this.st.forEach(i=>{i in t||(r.remove(i),this.st.delete(i))});for(const i in t){const n=!!t[i];n===this.st.has(i)||((o=this.et)===null||o===void 0?void 0:o.has(i))||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ot}});var Bl=ht` ${Rt} :host { font-size: 1rem; font-weight: 600; } sl-button.nav-button-thin::part(base) { color: var(--gold); font-size: 1.5em; font-weight: bold; } sl-button.nav-button-thin::part(caret) { font-size: 1.5em; font-weight: bold; } sl-button.nav__open::part(caret) { transform: rotate(180deg); } sl-button.nav__open__nested::part(suffix) { transform: rotate(180deg); } sl-button::part(caret) { transition: transform ease-in-out 250ms; } /* positioning of the nested dropdowns*/ sl-dropdown { overflow: visible !important; } sl-dropdown::part(panel) { overflow: visible !important; } @media screen and (min-width: 1300px) { nav { display: grid; grid-template-columns: repeat(6, auto); } .link { color: #fff; } .grants-management-menu { width: 20em; } sl-button.nav-button::part(base) { font-size: clamp(0.1em, 1.25vw, 2em); color: white; margin: 1em 0 1em 0; } sl-button.nav-button { border-bottom: 5px solid var(--color-primary-darkest); } sl-menu-item a { color: var(--color-primary); } sl-menu > sl-dropdown > sl-button::part(label) { font-size: clamp(1.5em, 1.25vw, 2em); } .menu-dropdown-button { text-align: center; padding: var(--sl-spacing-2x-small) var(--sl-spacing-x-large); padding-left: 0.4em; font-weight: normal; } sl-menu-item::part(label) { font-size: clamp(1.5em, 1.25vw, 2em); text-decoration: none; } a:-webkit-any-link { text-decoration: none; } /* navbar starting and ending buttons align to edge of their container */ #about > sl-button::part(label) { padding-left: 0; } #researchAndEducation { justify-self: end; } #researchAndEducation > sl-button::part(base) { padding-right: 0; } sl-button.current__route { border-bottom: 5px solid var(--gold); } sl-button.menu-dropdown-button::part(base) { font-weight: normal; } } `,Ul=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Z=(e,t,s,o)=>{for(var r=o>1?void 0:o?Nl(t,s):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(o?n(t,s,r):n(r))||r);return o&&r&&Ul(t,s,r),r};let H=class extends K{constructor(){super(),this.width=window.innerWidth,this.route=window.location.pathname,this.menu=!1,this.about=!1,this.newsAndEvents=!1,this.programServices=!1,this.supportiveServices=!1,this.specializedServices=!1,this.grantsManagement=!1,this.researchAndEducation=!1,this._handleShow=e=>{var t,s;this.width>=1300&&(this[(t=e.path[0])==null?void 0:t.id]=!0,(s=e.path[0])==null||s.show())},this._handleHide=e=>{var t,s;this.width>=1300&&(this[(t=e.path[0])==null?void 0:t.id]=!1,(s=e.path[0])==null||s.hide())},this._handleSelect=e=>{var t,s;window.location.href=(s=(t=e.detail)==null?void 0:t.item)==null?void 0:s.value},this._handleResize=()=>{this.width=window.innerWidth}}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._handleResize),window.addEventListener("sl-show",this._handleShow),window.addEventListener("sl-hide",this._handleHide),window.addEventListener("sl-select",this._handleSelect)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("sl-show",this._handleShow),window.removeEventListener("sl-hide",this._handleHide),window.removeEventListener("sl-select",this._handleSelect),window.removeEventListener("resize",this._handleResize)}wideTemplate(){return E` About SSVF Overview SSVF Core Concepts News and Events All News and Events Success Stories Upcoming Events Program Services Supportive Services All Supportive Services Coordination & Planning Specialized Services All Specialized Services SSVF Initiatives Grants Management Forms Compliance HMIS & Data Reporting `}thinTemplate(){return E``}render(){return this.width>=1300?E` `:E` `}};H.styles=Bl;Z([D({type:Number})],H.prototype,"width",2);Z([D({type:String})],H.prototype,"route",2);Z([D({type:Boolean})],H.prototype,"menu",2);Z([D({type:Boolean})],H.prototype,"about",2);Z([D({type:Boolean})],H.prototype,"newsAndEvents",2);Z([D({type:Boolean})],H.prototype,"programServices",2);Z([D({type:Boolean})],H.prototype,"supportiveServices",2);Z([D({type:Boolean})],H.prototype,"specializedServices",2);Z([D({type:Boolean})],H.prototype,"grantsManagement",2);Z([D({type:Boolean})],H.prototype,"researchAndEducation",2);H=Z([Lt("ssvf-navbar")],H);var Vl=ht` ${Rt} :host { background: gray; display: grid; } sl-details { color: black; } .summary { display: grid; grid-template: ". flag text" auto / auto 1fr auto; gap: 1em; } .flag { grid-area: flag; width: 2em; height: 2em; } .notice-text { grid-area: text; margin: 0px; display: flex; align-items: center; } sl-details::part(header) { padding-top: 0; padding-bottom: 0; /* padding-left: 10em; */ } sl-details::part(summary-icon) { height: 0.8em; width: 0.8em; } .notice-content { display: grid; gap: 1.5em; grid-template: "gov" auto "secure" auto / minmax(min-content, 3fr); } .gov-content { grid-area: gov; } .secure-content { grid-area: secure; } .gov-content, .secure-content { display: grid; grid-template: "icon text" auto / 1fr 5fr; gap: 1.5em; } .icon { grid-area: icon; } @media (min-width: 623px) { sl-details::part(summary) { flex: none; } } @media (min-width: 768px) { .notice-content { display: grid; grid-template: ". gov secure ." auto / minmax(0, 1fr) minmax(min-content, 3fr) minmax(min-content, 3fr) minmax(0, 1fr); } } @media (min-width: 1008px) { .gov-content, .secure-content { display: grid; grid-template: "icon text" auto / minmax(min-content, 1fr) minmax(min-content, 6fr); gap: 1.5em; } } `,Hl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,jl=(e,t,s,o)=>{for(var r=o>1?void 0:o?Fl(t,s):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(o?n(t,s,r):n(r))||r);return o&&r&&Hl(t,s,r),r};let vs=class extends K{render(){return E` Menu ${this.wideTemplate()}`}};vs.styles=Vl;vs=jl([Lt("ssvf-notice-banner")],vs);var Yl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Xl=(e,t,s,o)=>{for(var r=o>1?void 0:o?Wl(t,s):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(o?n(t,s,r):n(r))||r);return o&&r&&Yl(t,s,r),r};let ys=class extends K{render(){return E` ![]()
An official website of the United States government. Here's how you know
![]()
The .gov means it's official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you're on a federal government site.![]()
The site is secure.
The https:// ensures that you're connecting to the official website and that any information you provide is encrypted and sent securely.`}};ys.styles=Rl;ys=Xl([Lt("ssvf-header")],ys);var ql=ht` ${Rt} :host { background: var(--primary-color); padding: 1.5em; } .footer-grid { display: grid; gap: 1.5em; } .footer-grid h2 { color: white; font-size: 1.2em; font-family: var(--font-family-body); } sl-details::part(base) { background-color: var(--color-primary-darkest); color: white; } ul.footer-list-grid { font-family: var(--font-family-body); list-style-type: none; font-size: 1em; padding: 0; } ul.footer-list-grid li { margin: 1em 0 1em 0; } ul.footer-list-grid li > a { color: var(--color-white); } `,Kl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Ds=(e,t,s,o)=>{for(var r=o>1?void 0:o?Gl(t,s):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(o?n(t,s,r):n(r))||r);return o&&r&&Kl(t,s,r),r};let pe=class extends K{constructor(){super(),this.width=window.innerWidth,this.dialog=!1,this._handleResize=()=>{this.width=window.innerWidth}}handleClick(){this.dialog=!this.dialog}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleResize)}dialogTemplate(){return E` `}col1Template(){return E` `}col2Template(){return E` `}col3Template(){return E` `}col4Template(){return E` `}footerBottomTemplate(){return E` `}wideTemplate(){return E`We're here anytime, day or night - 24/7
If you are a Veteran in crisis or concerned about one, connect with our caring, qualified responders for confidential help. Many of them are Veterans themselves.
Get more resources at VeteransCrisisLine.net .
- Call 800-273-8255 and select 1
- Text 838255
- Start a confidential chat
- Call TTY if you have hearing loss 800-799-4889
${this.footerBottomTemplate()}`}thinTemplate(){return E`${this.footerBottomTemplate()}`}render(){return this.width>=1300?E` `:E` `}};pe.styles=ql;Ds([D({type:Number})],pe.prototype,"width",2);Ds([D({type:Boolean})],pe.prototype,"dialog",2);pe=Ds([Lt("ssvf-footer")],pe);var Ql=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,nr=(e,t,s,o)=>{for(var r=o>1?void 0:o?Zl(t,s):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(o?n(t,s,r):n(r))||r);return o&&r&&Ql(t,s,r),r};hs("/homeless/ssvf/shoelace");let Ie=class extends K{constructor(){super(...arguments),this.play=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("load",()=>{document.documentElement.className="",this.play=!0})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("load",()=>{document.documentElement.className="",this.play=!0})}render(){return E``}};Ie.styles=Sr;nr([D({type:Boolean})],Ie.prototype,"play",2);Ie=nr([Lt("ssvf-layout")],Ie);export{Rt as S,Lt as a,K as n,ht as r,E as y};banner main content