@fluentui/web-components 3.0.0-rc.27 → 3.0.0-rc.28

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.
@@ -2,7 +2,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
2
2
  Mismatch Details:`,` - Expected target node ID: "${h.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(", ")||"none"}]`];throw h.targetTagName&&C.push(` - Expected tag name: "${h.targetTagName}"`),x.sourceAspect&&C.push(` - Source aspect: "${x.sourceAspect}"`),x.aspectType!==void 0&&C.push(` - Aspect type: ${x.aspectType}`),C.push(`
3
3
  This usually means:`," 1. The server-rendered HTML doesn't match the client template"," 2. The hydration markers are missing or corrupted"," 3. The DOM structure was modified before hydration",`
4
4
  Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ga(C.join(`
5
- `),h,En(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,s=r.length;n<s;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Ft.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){sr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Fn=Wo,$t(Xa);function Ka(o){return o.create!==void 0}function Ya(o,e,t,i){if(t==null&&(t=""),Ka(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Uo(i)&&Uo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Ft.hydrated){const n=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(n.first,n.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Ja(o,e,t){var i;const r=`${this.id}-t`,n=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},s=n.cv;let c=n.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const x=d[l];x!==""&&(s[x]=c,h.add(x))}}if(n.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const Qa={[J.attribute]:yt.setAttribute,[J.booleanAttribute]:yt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:Ya,[J.tokenList]:Ja,[J.event]:()=>{}};class Mt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=J.content}createHTML(e){return kn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Qa[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw G.error(He.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=Uo(e)&&e.hydrationStage&&e.hydrationStage!==Ft.hydrated;switch(this.aspectType){case J.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const n=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(n.target=i,n.controller=e,r&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute)){n.bind(e);break}this.updateTarget(i,this.targetAspect,n.bind(e),e);break}}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Et.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Et.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.controller;if(!i.isBound)return;const r=t.target;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Re.define(Mt,{aspected:!0});const Dn=(o,e)=>`${o}.${e}`,Ln={},je={index:0,node:null};function Vn(o){o.startsWith("fast-")||G.warn(He.hostBindingWithoutHost,{name:o})}const Za=new Proxy(document.createElement("div"),{get(o,e){Vn(e);const t=Reflect.get(o,e);return vt(t)?t.bind(o):t},set(o,e,t){return Vn(e),Reflect.set(o,e,t)}});class el{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,n){var s,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(s=e.id)!==null&&s!==void 0?s:lo(),e.targetNodeId=i,e.targetTagName=n,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let n=Ln[t];if(!n){const s=`_${t}`;Ln[t]=n={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[i]}}}r[t]=n}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Za;for(const r of this.nodeIds)Reflect.get(i,r);return new Ko(t,this.factories,i)}}function Hn(o,e,t,i,r,n=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,x=qo.parse(p,c);let C=null;x===null?n&&(C=new Mt(bn(()=>p,o.policy)),Re.assignAspect(C,l.name)):C=ar.aggregate(x,o.policy),C!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(C,e,i,r,t.tagName))}}function tl(o,e,t,i,r){const n=qo.parse(e.textContent,o.directives);if(n===null)return je.node=e.nextSibling,je.index=r+1,je;let s,c=s=e;for(let h=0,d=n.length;h<d;++h){const l=n[h];h!==0&&(r++,i=Dn(t,r),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Qe(l)?s.textContent=l:(s.textContent=" ",Re.assignAspect(l),o.addFactory(l,t,i,r,null)),c=s}return je.index=r+1,je.node=c.nextSibling,je}function Rn(o,e,t){let i=0,r=e.firstChild;for(;r;){const n=ol(o,t,r,i);r=n.node,i=n.index}}function ol(o,e,t,i){const r=Dn(e,i);switch(t.nodeType){case 1:Hn(o,e,t,r,i),Rn(o,t,r);break;case 3:return tl(o,t,e,r,i);case 8:{const n=qo.parse(t.data,o.directives);n!==null&&o.addFactory(ar.aggregate(n),e,r,i,null);break}}return je.index=i+1,je.node=t.nextSibling,je}function il(o,e){return o&&o.nodeType===8&&qo.parse(o.data,e)!==null}const jn="TEMPLATE",ar={compile(o,e,t=yt.policy){let i;if(Qe(o)){i=document.createElement(jn),i.innerHTML=t.createHTML(o);const s=i.content.firstElementChild;s!==null&&s.tagName===jn&&(i=s)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),n=new el(r,e,t);return Hn(n,"",i,"h",0,!0),(il(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Rn(n,r,"r"),je.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=yt.policy){if(o.length===1)return o[0];let t,i=!1,r;const n=o.length,s=o.map(d=>Qe(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let x=0;x<n;++x)p+=s[x](d,l);return p},h=new Mt(Ji(c,r??e,i));return Re.assignAspect(h,t),h}};class qn extends rr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Re.define(qn);const _=o=>new qn(o),Wn="boolean",Un="reflect",Yo=Object.freeze({locate:hn()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Gn(o);return e&&e.toString()},fromView:Gn};class qi{constructor(e,t,i=t.toLowerCase(),r=Un,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Wn&&n===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||B.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Un:const n=this.converter;yt.setAttribute(e,this.attribute,n!==void 0?n.toView(r):r);break;case Wn:yt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Yo.locate(e));for(let r=0,n=t.length;r<n;++r){const s=t[r];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];Qe(d)?i.push(new qi(e,d)):i.push(new qi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,n){arguments.length>1&&(t.property=n),Yo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}var nl=window&&window.__awaiter||function(o,e,t,i){function r(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function c(l){try{d(i.next(l))}catch(p){s(p)}}function h(l){try{d(i.throw(l))}catch(p){s(p)}}function d(l){l.done?n(l.value):r(l.value).then(c,h)}d((i=i.apply(o,e||[])).next())})},Ne;const Xn={mode:"open"},Kn={},lr=new Set,ho=G.getById(mt.elementRegistry,()=>Ki()),sl={deferAndHydrate:"defer-and-hydrate"};class le{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var i;this.platformDefined=!1,Qe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,n=qi.collect(e,t.attributes),s=new Array(n.length),c={},h={};for(let d=0,l=n.length;d<l;++d){const p=n[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(r,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Xn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Xn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Kn:Object.assign(Object.assign({},Kn),t.elementOptions),this.styles=ve.normalize(t.styles),ho.register(this),m.defineProperty(Ne.isRegistered,this.name),Ne.isRegistered[this.name]=this.type}define(e=this.registry){var t,i;const r=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,r,this.elementOptions),(i=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||i===void 0||i.call(t,this.name)),this}static compose(e,t){return lr.has(e)||ho.getByType(e)?new Ne(class extends e{},t):new Ne(e,t)}static registerBaseType(e){lr.add(e)}static composeAsync(e,t){return new Promise(i=>{(lr.has(e)||ho.getByType(e))&&i(new Ne(class extends e{},t));const r=new Ne(e,t);m.getNotifier(r).subscribe({handleChange:()=>{var n,s;(s=(n=r.lifecycleCallbacks)===null||n===void 0?void 0:n.templateDidUpdate)===null||s===void 0||s.call(n,r.name),i(r)}},"template")})}}Ne=le,le.isRegistered={},le.getByType=ho.getByType,le.getForInstance=ho.getForInstance,le.registerAsync=o=>nl(void 0,void 0,void 0,function*(){return new Promise(e=>{Ne.isRegistered[o]&&e(Ne.isRegistered[o]),m.getNotifier(Ne.isRegistered).subscribe({handleChange:()=>e(Ne.isRegistered[o])},o)})}),m.defineProperty(le.prototype,"template");const al=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ll=Object.create(null);class xt{constructor(e,t=ll){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}xt.empty=new xt(""),Re.define(xt);function cl(o,e,t,i=Re.getForInstance(o)){if(i.aspected){const r=al.exec(e);r!==null&&Re.assignAspect(o,r[2])}return o.createHTML(t)}class Wi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ar.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new xt(Qe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw G.error(He.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw G.error(He.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const n=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return n[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(r+=d,vt(l))l=new Mt(Ji(l));else if(l instanceof Ro)l=new Mt(l);else if(!(p=Re.getForInstance(l))){const x=l;l=new Mt(bn(()=>x))}r+=cl(l,d,s,p)}return new Wi(r+e[e.length-1],n,i)}}$t(Wi);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Wi.create(o,e);throw G.error(He.directCallToHTMLTagNotAllowed)};b.partial=o=>new xt(o);const Yn="slotchange";class Jn extends Va{observe(e){e.addEventListener(Yn,this)}disconnect(e){e.removeEventListener(Yn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Re.define(Jn);function X(o){return Qe(o)&&(o={property:o}),new Jn(o)}class dl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:Et.default,targets:t,get isBound(){return r},addBehaviorFactory(n,s){var c,h,d,l;const p=n;p.id=(c=p.id)!==null&&c!==void 0?c:lo(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:lo(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:yt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(n,s){t[n]=s},addBehavior(n){e.push(n),r&&n.bind(this)},onUnbind(n){i===null&&(i=[]),i.push(n)},connectedCallback(n){r||(r=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(n){r&&(r=!1,i!==null&&i.forEach(s=>s.unbind(this)))}}}});const hl={bubbles:!0,composed:!0,cancelable:!0},Jo="isConnected",Qn=new WeakMap;function uo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qn.get(o))!==null&&t!==void 0?t:null}let Zn;var Q;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(Q||(Q={}));class Ve extends pn{get isConnected(){return m.track(this,Jo),this.stage===Q.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Et.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Qn.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=Q.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const i=m.getAccessors(e);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const c=i[n].name,h=e[c];h!==void 0&&(delete e[c],r[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(i=r.get(e))!==null&&i!==void 0?i:0;n===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===Q.connected||this.stage===Q.connecting)&&e.connectedCallback(this)):r.set(e,n+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==Q.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.addBehavior(r[n])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.removeBehavior(r[n])}}connect(){this.stage===Q.disconnected&&(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=Q.connected,m.notify(this,Jo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,n=i.length;r<n;++r){const s=i[r];e[s]=t[s]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===Q.connected&&(this.stage=Q.disconnecting,m.notify(this,Jo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Q.disconnected)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===Q.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},hl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=uo(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let n=r.firstChild;n!==null;n=r.firstChild)r.removeChild(n)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Ho.coupled)}static forCustomElement(e,t=!1){const i=e.$fastController;if(i!==void 0&&!t)return i;const r=le.getForInstance(e);if(r===void 0)throw G.error(He.missingElementDefinition);return m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Zn(e,r)}static setStrategy(e){Zn=e}}$t(Ve),Ve.setStrategy(Ve);function Qo(o){var e;return"adoptedStyleSheets"in o?o:(e=uo(o))!==null&&e!==void 0?e:o.getRootNode()}class Ui{constructor(e){const t=Ui.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){ts(Qo(e),this.sheets)}removeStylesFrom(e){os(Qo(e),this.sheets)}}Ui.styleSheetCache=new Map;let ul=0;const pl=()=>`fast-${++ul}`;function es(o){return o===document?document.body:o}class gl{constructor(e){this.styles=e,this.styleClass=pl()}addStylesTo(e){e=es(Qo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const n=document.createElement("style");n.innerHTML=t[r],n.className=i,e.append(n)}}removeStylesFrom(e){e=es(Qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let ts=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},os=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ts=(o,e)=>{o.adoptedStyleSheets.push(...e)},os=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ve.setDefaultStrategy(Ui)}else ve.setDefaultStrategy(gl);const cr="needs-hydration";class I extends Ve{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===sl.deferAndHydrate&&(this.source.toggleAttribute(Go,!0),this.source.toggleAttribute(cr,!0))}addHydratingInstance(){if(!I.hydratingInstances)return;const e=this.definition.name;let t=I.hydratingInstances.get(e);t||(t=new Set,I.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return I.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Go)||(I.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,i,r;if(e.didTimeout){I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50});return}if(((t=I.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(r=(i=I.lifecycleCallbacks).hydrationComplete)===null||r===void 0||r.call(i)}catch{}Ve.setStrategy(Ve)}}connect(){var e,t,i,r,n,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(cr),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Go)){this.addHydratingInstance(),I.hydrationObserver.observe(this.source,{attributeFilter:[Go]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===Q.disconnected){if(!I.hydrationStarted){I.hydrationStarted=!0;try{(i=(t=I.lifecycleCallbacks).hydrationStarted)===null||i===void 0||i.call(t)}catch{}}try{(n=(r=I.lifecycleCallbacks).elementWillHydrate)===null||n===void 0||n.call(r,this.source)}catch{}if(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Uo(this.template)){const h=this.source,d=(s=uo(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Se.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Se.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=Q.connected,this.source.removeAttribute(cr),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Jo)}}removeHydratingInstance(){var e,t;if(!I.hydratingInstances)return;try{(t=(e=I.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const i=this.definition.name,r=I.hydratingInstances.get(i);r&&(r.delete(this.source),r.size||I.hydratingInstances.delete(i),I.idleCallbackId&&cancelIdleCallback(I.idleCallbackId),I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),I.hydrationObserver.unobserve(this.source)}static install(){Ve.setStrategy(I)}}I.hydrationObserver=new dl(I.hydrationObserverHandler),I.lifecycleCallbacks={},I.hydrationStarted=!1,I.idleCallbackId=null,I.hydratingInstances=new Map;function is(o){const e=class extends o{constructor(){super(),Ve.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return le.registerBaseType(e),e}function fl(o,e){return vt(o)?le.compose(o,e):le.compose(this,o)}function bl(o,e){return vt(o)?new Promise(t=>{le.composeAsync(o,e).then(i=>{t(i)})}).then(t=>t.define().type):new Promise(t=>{le.composeAsync(this,o).then(i=>{t(i)})}).then(t=>t.define().type)}function ml(o,e){return vt(o)?le.compose(o,e).define().type:le.compose(this,o).define().type}function vl(o){return is(o)}const k=Object.assign(is(HTMLElement),{from:vl,define:ml,compose:fl,defineAsync:bl});function ce(o){return o?typeof o=="string"?new xt(o):"inline"in o?o.inline():o:xt.empty}class nt{}function st(o){return b`<slot name=end ${_("end")}>${ce(o.end)}</slot>`.inline()}function qe(o){return b`<slot name=start ${_("start")}>${ce(o.start)}</slot>`.inline()}function at(o,...e){const t=Yo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),Yo.locate(i).forEach(n=>t.push(n))})}var $l=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,Zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?yl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&$l(e,t,r),r};class po extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Zo([a({attribute:"heading-level",mode:"fromView",converter:ie})],po.prototype,"headinglevel",2),Zo([a({mode:"boolean"})],po.prototype,"expanded",2),Zo([a({mode:"boolean"})],po.prototype,"disabled",2),Zo([f],po.prototype,"expandbutton",2);var xl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,dr=(o,e,t,i)=>{for(var r=i>1?void 0:i?kl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&xl(e,t,r),r};class go extends po{constructor(){super(...arguments),this.block=!1}}dr([a],go.prototype,"size",2),dr([a({attribute:"marker-position"})],go.prototype,"markerPosition",2),dr([a({mode:"boolean"})],go.prototype,"block",2),at(go,nt);const wl=":host([hidden]){display:none}";function w(o){return`${wl}:host{display:${o}}`}const O="var(--colorNeutralForeground1)",rs="var(--colorNeutralForeground1Hover)",Cl="var(--colorNeutralForeground1Pressed)",Ae="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Lt="var(--colorNeutralForeground2Pressed)",ei="var(--colorNeutralForeground2Selected)",ti="var(--colorNeutralForeground2BrandHover)",oi="var(--colorNeutralForeground2BrandPressed)",Sl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Il="var(--colorNeutralForeground3Hover)",Pl="var(--colorNeutralForeground3Pressed)",zl="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",N="var(--colorNeutralForegroundDisabled)",Tl="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",Ol="var(--colorBrandForegroundLinkPressed)",Bl="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Al="var(--colorNeutralForeground2LinkPressed)",El="var(--colorCompoundBrandForeground1Hover)",Fl="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",kt="var(--colorNeutralForegroundInverted)",Ml="var(--colorNeutralForegroundInvertedHover)",Dl="var(--colorNeutralForegroundInvertedPressed)",ns="var(--colorNeutralForegroundStaticInverted)",ii="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",P="var(--colorNeutralBackground1)",ri="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",ss="var(--colorNeutralBackground1Selected)",fo="var(--colorNeutralBackground3)",Hl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",bo="var(--colorNeutralBackground6)",as="var(--colorNeutralBackgroundInverted)",ls="var(--colorSubtleBackground)",ni="var(--colorSubtleBackgroundHover)",mo="var(--colorSubtleBackgroundPressed)",cs="var(--colorSubtleBackgroundSelected)",jl="var(--colorSubtleBackgroundLightAlphaHover)",ql="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",de="var(--colorTransparentBackground)",si="var(--colorTransparentBackgroundHover)",ai="var(--colorTransparentBackgroundPressed)",ds="var(--colorTransparentBackgroundSelected)",lt="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",hs="var(--colorBrandBackground)",us="var(--colorBrandBackgroundHover)",ps="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",wt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",gs="var(--colorBrandBackgroundStatic)",fs="var(--colorBrandBackground2)",We="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",St="var(--colorNeutralStrokeAccessiblePressed)",Ue="var(--colorNeutralStroke1)",It="var(--colorNeutralStroke1Hover)",vo="var(--colorNeutralStroke1Pressed)",$o="var(--colorNeutralStroke2)",Gl="var(--colorNeutralStroke3)",Xl="var(--colorNeutralStrokeOnBrand2)",bs="var(--colorBrandStroke1)",ms="var(--colorBrandStroke2)",ct="var(--colorCompoundBrandStroke)",Kl="var(--colorCompoundBrandStrokeHover)",vs="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",gr="var(--colorTransparentStrokeInteractive)",li="var(--colorStrokeFocus1)",he="var(--colorStrokeFocus2)",Yl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",$s="var(--colorPaletteRedBackground1)",Ql="var(--colorPaletteRedBackground2)",ys="var(--colorPaletteRedBackground3)",xs="var(--colorPaletteRedBorder1)",fr="var(--colorPaletteRedBorder2)",br="var(--colorPaletteRedForeground1)",Zl="var(--colorPaletteRedForeground2)",ks="var(--colorPaletteRedForeground3)",ws="var(--colorPaletteGreenBackground1)",Cs="var(--colorPaletteGreenBackground3)",ec="var(--colorPaletteGreenBorder1)",tc="var(--colorPaletteGreenBorder2)",oc="var(--colorPaletteGreenForeground1)",ic="var(--colorPaletteGreenForeground2)",rc="var(--colorPaletteGreenForeground3)",Ss="var(--colorPaletteDarkOrangeBackground1)",Is="var(--colorPaletteDarkOrangeBackground3)",Ps="var(--colorPaletteDarkOrangeBorder1)",nc="var(--colorPaletteDarkOrangeForeground1)",zs="var(--colorPaletteDarkOrangeForeground3)",sc="var(--colorPaletteYellowBackground1)",ac="var(--colorPaletteYellowBackground3)",lc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",Ts="var(--colorPaletteMarigoldBackground2)",cc="var(--colorPaletteMarigoldBorderActive)",dc="var(--colorPaletteMarigoldForeground2)",hc="var(--colorPaletteAnchorBackground2)",uc="var(--colorPaletteAnchorForeground2)",pc="var(--colorPaletteBeigeBackground2)",gc="var(--colorPaletteBeigeForeground2)",fc="var(--colorPaletteBlueBackground2)",bc="var(--colorPaletteBlueForeground2)",mc="var(--colorPaletteBrassBackground2)",vc="var(--colorPaletteBrassForeground2)",$c="var(--colorPaletteBrownBackground2)",yc="var(--colorPaletteBrownForeground2)",xc="var(--colorPaletteCornflowerBackground2)",kc="var(--colorPaletteCornflowerForeground2)",wc="var(--colorPaletteCranberryBackground2)",Cc="var(--colorPaletteCranberryForeground2)",Sc="var(--colorPaletteDarkGreenBackground2)",Ic="var(--colorPaletteDarkGreenForeground2)",Pc="var(--colorPaletteDarkRedBackground2)",zc="var(--colorPaletteDarkRedForeground2)",Tc="var(--colorPaletteForestBackground2)",_c="var(--colorPaletteForestForeground2)",Oc="var(--colorPaletteGoldBackground2)",Bc="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Ac="var(--colorPaletteGrapeForeground2)",Ec="var(--colorPaletteLavenderBackground2)",Fc="var(--colorPaletteLavenderForeground2)",Mc="var(--colorPaletteLightTealBackground2)",Dc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",Vc="var(--colorPaletteLilacForeground2)",Hc="var(--colorPaletteMagentaBackground2)",Rc="var(--colorPaletteMagentaForeground2)",jc="var(--colorPaletteMinkBackground2)",qc="var(--colorPaletteMinkForeground2)",Wc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Gc="var(--colorPalettePeachBackground2)",Xc="var(--colorPalettePeachForeground2)",Kc="var(--colorPalettePinkBackground2)",Yc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",Qc="var(--colorPalettePlatinumForeground2)",Zc="var(--colorPalettePlumBackground2)",ed="var(--colorPalettePlumForeground2)",td="var(--colorPalettePumpkinBackground2)",od="var(--colorPalettePumpkinForeground2)",id="var(--colorPalettePurpleBackground2)",rd="var(--colorPalettePurpleForeground2)",nd="var(--colorPaletteRoyalBlueBackground2)",sd="var(--colorPaletteRoyalBlueForeground2)",ad="var(--colorPaletteSeafoamBackground2)",ld="var(--colorPaletteSeafoamForeground2)",cd="var(--colorPaletteSteelBackground2)",dd="var(--colorPaletteSteelForeground2)",hd="var(--colorPaletteTealBackground2)",ud="var(--colorPaletteTealForeground2)",ci="var(--borderRadiusNone)",Ee="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",_s="var(--borderRadiusLarge)",Os="var(--borderRadiusXLarge)",ue="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",pd="var(--fontFamilyMonospace)",gd="var(--fontFamilyNumeric)",yo="var(--fontSizeBase100)",M="var(--fontSizeBase200)",A="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",di="var(--fontSizeBase600)",Bs="var(--fontSizeHero700)",Ns="var(--fontSizeHero800)",As="var(--fontSizeHero900)",Es="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",fd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",hi="var(--fontWeightBold)",ui="var(--lineHeightBase100)",q="var(--lineHeightBase200)",D="var(--lineHeightBase300)",xe="var(--lineHeightBase400)",pi="var(--lineHeightBase500)",Fs="var(--lineHeightBase600)",Ms="var(--lineHeightHero700)",Ds="var(--lineHeightHero800)",Ls="var(--lineHeightHero900)",Vs="var(--lineHeightHero1000)",vr="var(--shadow2)",gi="var(--shadow4)",bd="var(--shadow8)",$r="var(--shadow16)",md="var(--shadow28)",Hs="var(--shadow64)",z="var(--strokeWidthThin)",ge="var(--strokeWidthThick)",Ie="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",re="var(--spacingHorizontalXS)",ke="var(--spacingHorizontalSNudge)",Fe="var(--spacingHorizontalS)",et="var(--spacingHorizontalMNudge)",ne="var(--spacingHorizontalM)",vd="var(--spacingHorizontalL)",$d="var(--spacingHorizontalXL)",fi="var(--spacingHorizontalXXL)",xr="var(--spacingVerticalNone)",bi="var(--spacingVerticalXXS)",jt="var(--spacingVerticalXS)",xo="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",mi="var(--spacingVerticalMNudge)",yd="var(--spacingVerticalM)",kr="var(--spacingVerticalL)",Pt="var(--spacingVerticalXXL)",xd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Cr="var(--durationGentle)",kd="var(--durationSlow)",Rs="var(--durationSlower)",yi="var(--durationUltraSlow)",wd="var(--curveAccelerateMax)",zt="var(--curveAccelerateMid)",Cd="var(--curveAccelerateMin)",js="var(--curveDecelerateMax)",Tt="var(--curveDecelerateMid)",Sd="var(--curveDecelerateMin)",qs="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",Sr="var(--curveLinear)",Id=g`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ne} ${et};border-radius:${S};font-family:${v};font-size:${A};font-weight:${E};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${de};border:none;box-sizing:border-box;color:${O};cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Fe};grid-column:1/span 1;grid-row:1}.content{margin:0 ${ne}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Fe};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee};outline:none;border:2px solid ${li};box-shadow:inset 0 0 0 1px ${he}}:host([disabled]) .button{color:${N}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${A};line-height:${D}}:host([size='small']) .heading{font-size:${M};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${xe}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${pi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Fe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ne}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${et} ${ne}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`,Pd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),zd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Td(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${_("expandbutton")}><slot name=heading></slot></button> ${qe(o)}<slot name=marker-expanded>${ce(o.expandedIcon)}</slot><slot name=marker-collapsed>${ce(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const _d=Td({collapsedIcon:Pd,expandedIcon:zd}),Od=go.compose({name:Ta,template:_d,styles:Id});Od.define(u.registry);const Ir={single:"single",multi:"multi"},Bd=`${u.prefix}-accordion`;function Ws(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function ko(o,e,t){const i=t?.shallow??!1,r=t?.timeout??50,n=t?.idleCallback??!1,s=`${i?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){n?Ws(e,{timeout:r}):e();return}Ws(c,{timeout:r})};c()}var Nd=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Us=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ad(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Nd(e,t,r),r};class Pr extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{ko(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Gi(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Ir.single){this.setSingleExpandMode(i);return}i?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Gi(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ir.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{Gi(i)&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton?.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Ir.multi,this.setItems()}}Us([a({attribute:"expand-mode"})],Pr.prototype,"expandmode",2),Us([f],Pr.prototype,"slottedAccordionItems",2);const Ed=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${X({property:"slottedAccordionItems",filter:co()})}></slot></template>`}const Md=Fd(),Dd=Pr.compose({name:Bd,template:Md,styles:Ed});Dd.define(u.registry);const Ld={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Vd={circular:"circular",rounded:"rounded",square:"square"},Hd={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},Rd=`${u.prefix}-button`,jd=Ld,qd=Vd,Wd=Hd,Ud={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Gd=`${u.prefix}-anchor-button`,wi=CSS.supports("anchor-name: --a"),Xd="anchor"in HTMLElement.prototype,Gs=CSS.supports("selector(:state(g))"),Xs=new Map;function T(o){return Xs.get(o)??Xs.set(o,Gs?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Gs){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const zr=new WeakMap;function Ks(o,e){if(!o||!e)return!1;if(zr.has(o))return zr.get(o).has(e);const t=new Set(Object.values(o));return zr.set(o,t),t.has(e)}function _t(o,e="",t="",i,r=""){$(o,`${r}${e}`,!1),(!i||Ks(i,t))&&$(o,`${r}${t}`,!0)}var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Kd(e,t,r),r};class Ge extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Ud){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}dt([a],Ge.prototype,"download",2),dt([a],Ge.prototype,"href",2),dt([a],Ge.prototype,"hreflang",2),dt([a],Ge.prototype,"ping",2),dt([a],Ge.prototype,"referrerpolicy",2),dt([a],Ge.prototype,"rel",2),dt([a],Ge.prototype,"target",2),dt([a],Ge.prototype,"type",2);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,Ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Jd(e,t,r),r};class qt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){_t(this.elementInternals,e,t,jd)}shapeChanged(e,t){_t(this.elementInternals,e,t,qd)}sizeChanged(e,t){_t(this.elementInternals,e,t,Wd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Ci([a],qt.prototype,"appearance",2),Ci([a],qt.prototype,"shape",2),Ci([a],qt.prototype,"size",2),Ci([a({attribute:"icon-only",mode:"boolean"})],qt.prototype,"iconOnly",2),at(qt,nt);const Ys=g`${w("inline-flex")} :host{--icon-spacing:${ke};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${O};border:${z} solid ${Ue};padding:0 ${ne};min-width:96px;border-radius:${S};font-size:${A};font-family:${v};font-weight:${H};line-height:${D};transition-duration:${vi};transition-property:background,border,color;transition-timing-function:${xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ri};color:${rs};border-color:${It}}:host(:hover:active){background-color:${ur};border-color:${vo};color:${Cl};outline-style:none}:host(:focus-visible){border-color:${K};outline:${ge} solid ${K};box-shadow:${gi},0 0 0 2px ${he}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${re};min-height:24px;min-width:64px;padding:0 ${Fe};border-radius:${Ee};font-size:${M};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_s};padding:0 ${vd};font-size:${pe};line-height:${xe}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${ue}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${ci}}:host([appearance='primary']){background-color:${hs};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${us}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${ps}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${vr},0 0 0 2px ${he}}:host([appearance='outline']){background-color:${de}}:host([appearance='outline']:hover){background-color:${si}}:host([appearance='outline']:hover:active){background-color:${ai}}:host([appearance='subtle']){background-color:${ls};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ni};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mo};color:${Lt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ti}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${oi}}:host([appearance='transparent']){background-color:${de};color:${Ae}}:host([appearance='transparent']:hover){background-color:${si};color:${ti}}:host([appearance='transparent']:hover:active){background-color:${ai};color:${oi}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Si=g`${Ys} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${lt};border-color:${ye};color:${N};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${de}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${de};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${de}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Zd=g`${Ys} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function eh(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${qe(o)} <span class=content part=content><slot></slot></span>${st(o)}</template>`}const th=eh(),oh=qt.compose({name:Gd,template:th,styles:Zd});oh.define(u.registry);const Js={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Qs={neutral:"neutral",brand:"brand",colorful:"colorful",...Js},ih=`${u.prefix}-avatar`,rh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,nh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,sh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ah=/\s+/g,lh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ch(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function dh(o){return o=o.replace(rh,""),o=o.replace(nh,""),o=o.replace(ah," "),o=o.trim(),o}function Zs(o,e,t){return!o||(o=dh(o),lh.test(o)||!t?.allowPhoneInitials&&sh.test(o))?"":ch(o,e,t?.firstInitialOnly)}var hh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,wo=(o,e,t,i)=>{for(var r=i>1?void 0:i?uh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&hh(e,t,r),r};class Wt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}B.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}wo([f],Wt.prototype,"defaultSlot",2),wo([f],Wt.prototype,"monogram",2),wo([f],Wt.prototype,"slottedDefaults",2),wo([a],Wt.prototype,"name",2),wo([a],Wt.prototype,"initials",2);var ph=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?gh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ph(e,t,r),r};const ht=class nn extends Wt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Qs.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?nn.colors[bh(this.name??"")%nn.colors.length]:this.color??Qs.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};ht.colors=Object.values(Js),Ut([a],ht.prototype,"active",2),Ut([a],ht.prototype,"shape",2),Ut([a],ht.prototype,"appearance",2),Ut([a({converter:ie})],ht.prototype,"size",2),Ut([a],ht.prototype,"color",2),Ut([a({attribute:"color-id"})],ht.prototype,"colorId",2);let fh=ht;const bh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},ut={fastOutSlowInMax:js,fastOutSlowInMid:Tt,fastOutSlowInMin:Sd,slowOutFastInMax:wd,slowOutFastInMid:zt,slowOutFastInMin:Cd,fastEase:qs,normalEase:xi,nullEasing:Sr},mh=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${A};border-radius:${ue};color:${Z};background-color:${bo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ue}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${z} ${P}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ge} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${yo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${M}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Rt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${di}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ee}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${_s}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Os}}:host([data-color='brand']){color:${ns};background-color:${gs}}:host([data-color='dark-red']){color:${zc};background-color:${Pc}}:host([data-color='cranberry']){color:${Cc};background-color:${wc}}:host([data-color='red']){color:${Zl};background-color:${Ql}}:host([data-color='pumpkin']){color:${od};background-color:${td}}:host([data-color='peach']){color:${Xc};background-color:${Gc}}:host([data-color='marigold']){color:${dc};background-color:${Ts}}:host([data-color='gold']){color:${Bc};background-color:${Oc}}:host([data-color='brass']){color:${vc};background-color:${mc}}:host([data-color='brown']){color:${yc};background-color:${$c}}:host([data-color='forest']){color:${_c};background-color:${Tc}}:host([data-color='seafoam']){color:${ld};background-color:${ad}}:host([data-color='dark-green']){color:${Ic};background-color:${Sc}}:host([data-color='light-teal']){color:${Dc};background-color:${Mc}}:host([data-color='teal']){color:${ud};background-color:${hd}}:host([data-color='steel']){color:${dd};background-color:${cd}}:host([data-color='blue']){color:${bc};background-color:${fc}}:host([data-color='royal-blue']){color:${sd};background-color:${nd}}:host([data-color='cornflower']){color:${kc};background-color:${xc}}:host([data-color='navy']){color:${Uc};background-color:${Wc}}:host([data-color='lavender']){color:${Fc};background-color:${Ec}}:host([data-color='purple']){color:${rd};background-color:${id}}:host([data-color='grape']){color:${Ac};background-color:${Nc}}:host([data-color='lilac']){color:${Vc};background-color:${Lc}}:host([data-color='pink']){color:${Yc};background-color:${Kc}}:host([data-color='magenta']){color:${Rc};background-color:${Hc}}:host([data-color='plum']){color:${ed};background-color:${Zc}}:host([data-color='beige']){color:${gc};background-color:${pc}}:host([data-color='mink']){color:${qc};background-color:${jc}}:host([data-color='platinum']){color:${Qc};background-color:${Jc}}:host([data-color='anchor']){color:${uc};background-color:${hc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${yi},${Rs};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{box-shadow:${bd};border-style:solid;border-color:${gs}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ie});border-width:${Ie}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${yr});border-width:${yr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${gi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${$r}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${md}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yi},${Rs};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,vh=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function $h(){return b`<slot class=default-slot ${X("slottedDefaults")} ${_("defaultSlot")}></slot><span class=monogram ${_("monogram")}>${o=>o.initials}</span> ${vh}<slot name=badge></slot>`}const yh=$h(),xh=fh.compose({name:ih,template:yh,styles:mh});xh.define(u.registry);const kh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},wh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Ch=`${u.prefix}-badge`;var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sh(e,t,r),r};class Gt extends k{constructor(){super(...arguments),this.appearance=kh.filled,this.color=wh.brand}}Ii([a],Gt.prototype,"appearance",2),Ii([a],Gt.prototype,"color",2),Ii([a],Gt.prototype,"shape",2),Ii([a],Gt.prototype,"size",2),at(Gt,nt);const ea=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${M};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${re} + ${R});border-radius:${ue};border-color:${K};background-color:${hs};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${z};border-color:inherit;border-radius:inherit}`,ta=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${yo};line-height:${ui};padding-inline:calc(${R} + ${R})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${M};line-height:${q};padding-inline:calc(${re} + ${R})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${M};line-height:${q};padding-inline:calc(${ke} + ${R})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,oa=g.partial`:host([color='danger']){background-color:${ys};color:${Ze}}:host([color='important']){background-color:${O};color:${P}}:host([color='informative']){background-color:${Rl};color:${Z}}:host([color='severe']){background-color:${Is};color:${Ze}}:host([color='subtle']){background-color:${P};color:${O}}:host([color='success']){background-color:${Cs};color:${Ze}}:host([color='warning']){background-color:${ac};color:${Vl}}`,ia=g.partial`:host([appearance='ghost']){color:${ii};background-color:initial}:host([appearance='ghost'][color='danger']){color:${ks}}:host([appearance='ghost'][color='important']){color:${O}}:host([appearance='ghost'][color='informative']){color:${Z}}:host([appearance='ghost'][color='severe']){color:${zs}}:host([appearance='ghost'][color='subtle']){color:${kt}}:host([appearance='ghost'][color='success']){color:${rc}}:host([appearance='ghost'][color='warning']){color:${mr}}`,Ph=g.partial`:host([appearance='outline']){border-color:currentColor;color:${ii};background-color:initial}:host([appearance='outline'][color='danger']){color:${ks}}:host([appearance='outline'][color='important']){color:${Z};border-color:${We}}:host([appearance='outline'][color='informative']){color:${Z};border-color:${$o}}:host([appearance='outline'][color='severe']){color:${zs}}:host([appearance='outline'][color='subtle']){color:${ns}}:host([appearance='outline'][color='success']){color:${ic}}:host([appearance='outline'][color='warning']){color:${mr}}`,zh=g.partial`:host([appearance='tint']){background-color:${fs};color:${Ll};border-color:${ms}}:host([appearance='tint'][color='danger']){background-color:${$s};color:${br};border-color:${xs}}:host([appearance='tint'][color='important']){background-color:${Z};color:${P};border-color:${K}}:host([appearance='tint'][color='informative']){background-color:${Hl};color:${Z};border-color:${$o}}:host([appearance='tint'][color='severe']){background-color:${Ss};color:${nc};border-color:${Ps}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${Z};border-color:${$o}}:host([appearance='tint'][color='success']){background-color:${ws};color:${oc};border-color:${tc}}:host([appearance='tint'][color='warning']){background-color:${sc};color:${mr};border-color:${lc}}`,Th=g`:host([shape='square']){border-radius:${ci}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${zh} ${Ph} ${ia} ${oa} ${ta} ${ea} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function _h(o={}){return b`${qe(o)}<slot>${ce(o.defaultContent)}</slot>${st(o)}`}const Oh=_h(),Bh=Gt.compose({name:Ch,template:Oh,styles:Th});Bh.define(u.registry);function tt(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&B.enqueue(()=>{o.focus()})}var Nh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Nh(e,t,r),r};class fe extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==ki.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex(),tt(this)}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case ki.reset:{this.resetForm();break}case ki.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ki.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}fe.formAssociated=!0,Pe([f],fe.prototype,"defaultSlottedContent",2),Pe([a({mode:"boolean"})],fe.prototype,"disabled",2),Pe([a({attribute:"disabled-focusable",mode:"boolean"})],fe.prototype,"disabledFocusable",2),Pe([a({attribute:"formaction"})],fe.prototype,"formAction",2),Pe([a({attribute:"form"})],fe.prototype,"formAttribute",2),Pe([a({attribute:"formenctype"})],fe.prototype,"formEnctype",2),Pe([a({attribute:"formmethod"})],fe.prototype,"formMethod",2),Pe([a({attribute:"formnovalidate",mode:"boolean"})],fe.prototype,"formNoValidate",2),Pe([a({attribute:"formtarget"})],fe.prototype,"formTarget",2),Pe([a],fe.prototype,"name",2),Pe([a],fe.prototype,"type",2),Pe([a],fe.prototype,"value",2);var Eh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Eh(e,t,r),r};class ot extends fe{constructor(){super(...arguments),this.iconOnly=!1}}Pi([a],ot.prototype,"appearance",2),Pi([a],ot.prototype,"shape",2),Pi([a],ot.prototype,"size",2),Pi([a({attribute:"icon-only",mode:"boolean"})],ot.prototype,"iconOnly",2),at(ot,nt);function Tr(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot></span>${st(o)}</template>`}const Mh=Tr(),Dh=ot.compose({name:Rd,template:Mh,styles:Si});Dh.define(u.registry);const Lh=`${u.prefix}-checkbox`;var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Vh(e,t,r),r};class Me extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity(),tt(this)}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Me.formAssociated=!0,Ot([f],Me.prototype,"disabled",2),Ot([a({attribute:"disabled",mode:"boolean"})],Me.prototype,"disabledAttribute",2),Ot([a({attribute:"form"})],Me.prototype,"formAttribute",2),Ot([a({attribute:"checked",mode:"boolean"})],Me.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],Me.prototype,"initialValue",2),Ot([a],Me.prototype,"name",2),Ot([a({mode:"boolean"})],Me.prototype,"required",2);var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?jh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Rh(e,t,r),r};class zi extends Me{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}_r([f],zi.prototype,"indeterminate",2),_r([a],zi.prototype,"shape",2),_r([a],zi.prototype,"size",2);const qh=T("active"),Wh=T("bad-input"),y=T("checked"),Uh=T("custom-error"),Gh=T("description"),be=T("disabled");T("error");const Xh=T("flip-block"),Kh=T("focus-visible");T("has-message");const Bt=T("indeterminate"),Xt=T("multiple"),Yh=T("open"),Jh=T("pattern-mismatch"),Qh=T("placeholder-shown"),L=T("pressed"),Zh=T("range-overflow"),eu=T("range-underflow"),tu=T("required"),Or=T("selected"),ou=T("step-mismatch"),Ti=T("submenu"),iu=T("too-long"),ru=T("too-short"),nu=T("type-mismatch"),su=T("user-invalid"),au=T("valid"),lu=T("value-missing"),cu=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${Ee};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${St}}:host(${y}:hover){background-color:${Vt};border-color:${Kl}}:host(${y}:active){background-color:${Ht};border-color:${vs}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${he}}.indeterminate-indicator,.checked-indicator{color:${kt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Bt}){border-color:${ct}}:host(${y}),:host(${Bt}) .indeterminate-indicator{background-color:${wt}}:host(${Bt}) .indeterminate-indicator{border-radius:${Ee};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ue}}:host([disabled]),:host([disabled]${y}){background-color:${lt};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${Bt}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Bt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Bt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Bt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,du=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),hu=b.partial("<span class=indeterminate-indicator></span>");function uu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ce(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ce(o.indeterminateIndicator)}</slot></template>`}const pu=uu({checkedIndicator:du,indeterminateIndicator:hu}),gu=zi.compose({name:Lh,template:pu,styles:cu});gu.define(u.registry);const fu=`${u.prefix}-compound-button`;class bu extends ot{}const mu=g`${Si} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${M};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Lt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ti}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${oi}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${N}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ke}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${re}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Fe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${xe}}:host([size='large']) ::slotted([slot='description']){font-size:${A}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function vu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot><slot name=description></slot></span>${st(o)}</template>`}const $u=vu(),yu=bu.compose({name:fu,template:$u,styles:mu});yu.define(u.registry);const xu=`${u.prefix}-counter-badge`;var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Co=(o,e,t,i)=>{for(var r=i>1?void 0:i?wu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ku(e,t,r),r};class Kt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Co([a({converter:ie})],Kt.prototype,"count",2),Co([a({attribute:"overflow-count",converter:ie})],Kt.prototype,"overflowCount",2),Co([a({attribute:"show-zero",mode:"boolean"})],Kt.prototype,"showZero",2),Co([a({mode:"boolean"})],Kt.prototype,"dot",2),Co([$e],Kt.prototype,"displayValue",1);var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?Su(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Cu(e,t,r),r};class Yt extends Kt{}_i([a],Yt.prototype,"appearance",2),_i([a],Yt.prototype,"color",2),_i([a],Yt.prototype,"shape",2),_i([a],Yt.prototype,"size",2),at(Yt,nt);const Iu=g`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${ta} ${oa} ${ia} ${ea} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Pu(o={}){return b`${qe(o)} <span>${e=>e.displayValue}</span> ${st(o)}`}const zu=Pu(),Tu=Yt.compose({name:xu,template:zu,styles:Iu});Tu.define(u.registry);const Nt={modal:"modal",nonModal:"non-modal",alert:"alert"};function ra(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const _u=`${u.prefix}-dialog`;var Ou=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ou(e,t,r),r};class De extends k{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Nt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Nt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Nt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Nt.alert||this.type===Nt.modal?this.dialog.showModal():this.type===Nt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Nt.alert&&e.target===this.dialog&&this.hide(),!0}}Xe([f],De.prototype,"dialog",2),Xe([a({attribute:"aria-describedby"})],De.prototype,"ariaDescribedby",2),Xe([a({attribute:"aria-labelledby"})],De.prototype,"ariaLabelledby",2),Xe([a({attribute:"aria-label"})],De.prototype,"ariaLabel",2),Xe([a],De.prototype,"type",2),Xe([$e],De.prototype,"dialogDescribedby",1),Xe([$e],De.prototype,"dialogLabel",1),Xe([$e],De.prototype,"dialogLabelledby",1),Xe([$e],De.prototype,"dialogModal",1),Xe([$e],De.prototype,"dialogRole",1);const Nu=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${_("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Au=g`@layer base{:host{--dialog-backdrop:${pr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${Os};border:none;box-shadow:${Hs};color:${O};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${Tt};opacity:0}::backdrop{transition-timing-function:${Sr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${zt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${z} solid ${K}}}}`,Eu=De.compose({name:_u,template:Nu,styles:Au});Eu.define(u.registry);const Fu=`${u.prefix}-dialog-body`;class Mu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t)&&t.hide()}return!0}}const Du=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,Lu=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${se};padding:${Pt} ${fi};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${O};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${pi};margin-block-end:calc(${se} * -1);margin-block-start:calc(${Pt} * -1);padding-block-end:${se};padding-block-start:${Pt}}.content{box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${Pt} * -1);padding-block-end:${Pt};padding-block-start:${kr}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,Vu=Mu.compose({name:Fu,template:Du,styles:Lu});Vu.define(u.registry);const we={horizontal:"horizontal",vertical:"vertical"},So={separator:"separator",presentation:"presentation"},na=we,Hu=`${u.prefix}-divider`;var Ru=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?ju(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ru(e,t,r),r};class Br extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??So.separator,this.role!==So.presentation&&(this.elementInternals.ariaOrientation=this.orientation??na.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??So.separator}`),t===So.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==So.presentation?t??null:null,_t(this.elementInternals,e,t,na)}}sa([a],Br.prototype,"role",2),sa([a],Br.prototype,"orientation",2);var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&qu(e,t,r),r};class Oi extends Br{}Nr([a({attribute:"align-content"})],Oi.prototype,"alignContent",2),Nr([a],Oi.prototype,"appearance",2),Nr([a({mode:"boolean"})],Oi.prototype,"inset",2);function Uu(){return b`<slot></slot>`}const Gu=Uu(),Xu=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${$o};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${z}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${M};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${z};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ue}}:host([appearance='strong']) ::slotted(*){color:${O}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${bs}}:host([appearance='brand']) ::slotted(*){color:${ii}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Gl}}:host([appearance='subtle']) ::slotted(*){color:${Z}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Ku=Oi.compose({name:Hu,template:Gu,styles:Xu});Ku.define(u.registry);const Yu={start:"start",end:"end"},Ju={small:"small",medium:"medium",large:"large",full:"full"},Io={nonModal:"non-modal",modal:"modal",inline:"inline"},Qu=`${u.prefix}-drawer`;var Zu=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var r=i>1?void 0:i?ep(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Zu(e,t,r),r};class Ce extends k{constructor(){super(...arguments),this.position=Yu.start,this.size=Ju.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===Io.modal)return!0}get dialogRole(){return this.dialog&&this.type===Io.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Io.modal})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Io.inline||this.type===Io.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}ze([a],Ce.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedby",2),ze([a],Ce.prototype,"position",2),ze([f],Ce.prototype,"role",2),ze([a({attribute:"size"})],Ce.prototype,"size",2),ze([f],Ce.prototype,"dialog",2),ze([$e],Ce.prototype,"dialogDescribedby",1),ze([$e],Ce.prototype,"dialogLabel",1),ze([$e],Ce.prototype,"dialogLabelledby",1),ze([$e],Ce.prototype,"dialogModal",1),ze([$e],Ce.prototype,"dialogRole",1);const tp=g`${w("block")} :host{--dialog-backdrop:${pr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${P};border-radius:0;border:${z} solid ${K};border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});box-shadow:${Hs};box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${fi});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Cr};transition-timing-function:${Tt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${zt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${zt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${Tt};background:var(--dialog-backdrop,${pr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Sr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function op(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${_("dialog")}><slot></slot></dialog>`}const ip=op(),rp=Ce.compose({name:Qu,template:ip,styles:tp});rp.define(u.registry);const np=`${u.prefix}-drawer-body`;class sp extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t,"-drawer")&&t.hide()}return!0}}const aa=g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${E};`;g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${H};`,g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${hi};`;const ap=g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${E};`,la=g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${E};`;g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${H};`,g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${hi};`,g.partial`font-family:${v};font-size:${yo};line-height:${ui};font-weight:${E};`,g.partial`font-family:${v};font-size:${yo};line-height:${ui};font-weight:${H};`;const lp=g.partial`font-family:${v};font-size:${Rt};line-height:${pi};font-weight:${H};`;g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${H};`,g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${hi};`,g.partial`font-family:${v};font-size:${Ns};line-height:${Ds};font-weight:${H};`,g.partial`font-family:${v};font-size:${Bs};line-height:${Ms};font-weight:${H};`,g.partial`font-family:${v};font-size:${di};line-height:${Fs};font-weight:${H};`,g.partial`font-family:${v};font-size:${As};line-height:${Ls};font-weight:${H};`,g.partial`font-family:${v};font-size:${Es};line-height:${Vs};font-weight:${H};`;const cp=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${$d};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${lp}}.footer{display:flex;justify-content:flex-start;gap:${ne}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function dp(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const hp=dp(),up=sp.compose({name:np,template:hp,styles:cp});up.define(u.registry);const pp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ar={combobox:"combobox",dropdown:"dropdown",select:"select"},gp=`${u.prefix}-dropdown`;function ca(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const fp=`${u.prefix}-listbox`;function Jt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bp=`${u.prefix}-option`,pt={ltr:"ltr",rtl:"rtl"},da=o=>o.closest("[dir]")?.dir==="rtl"?pt.rtl:pt.ltr;function ha(o){return o.closest("[lang]")?.lang??"en"}let mp=0;function Ke(o="id-"){const e=`${o}${mp++}`;return document.getElementById(e)?Ke(o):e}const vp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${_("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,$p=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${_("control")}>`,yp=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${_("control")}>${o=>o.displayValue}</button>`;function xp(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${_("controlSlot")}></slot><slot name=indicator ${_("indicatorSlot")}>${ce(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const kp=xp({indicator:vp});var wp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wp(e,t,r),r};const j=class so extends k{constructor(){super(),this.activeIndex=0,this.id=Ke("dropdown-"),this.required=!1,this.type=Ar.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||da(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,n)=>{r.active=n===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ke("input-"))}disabledChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);if(i.subscribe(t),i.notify("multiple"),B.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled,r.name=this.name}),this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,n)=>{r.selected=this.multiple||n===0}),this.setValidity()}),wi){const r=Ke("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,wi||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Ar.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Jt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ha(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Ar.combobox){$p.render(this,this);return}yp.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let i=this.searchString.length>1?this.filterOptions(this.searchString):[],r=!1;if(!i.length&&t&&(i=this.filterOptions(e),r=!0),i.length){const n=this.enabledOptions[this.activeIndex],s=i.indexOf(n),c=r?i[this.getEnabledIndexInBounds(s+1,i.length)]:s>=0?n:i[0];this.activeIndex=this.enabledOptions.indexOf(c)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Jt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}slotchangeHandler(e){const t=e.target;ko(this,()=>{const i=t.assignedElements().find(r=>ca(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.insertControl()}),tt(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:n})=>{if(ca(n)){if(i.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}i.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,Y([$e],j.prototype,"activeDescendant",1),Y([f],j.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),Y([f],j.prototype,"control",2),Y([a({mode:"boolean"})],j.prototype,"disabled",2),Y([$e],j.prototype,"displayValue",1),Y([a({attribute:"id"})],j.prototype,"id",2),Y([f],j.prototype,"indicator",2),Y([f],j.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Y([f],j.prototype,"listbox",2),Y([a({mode:"boolean"})],j.prototype,"multiple",2),Y([a],j.prototype,"name",2),Y([f],j.prototype,"open",2),Y([a],j.prototype,"placeholder",2),Y([a({mode:"boolean"})],j.prototype,"required",2),Y([a],j.prototype,"type",2),Y([a({attribute:"value"})],j.prototype,"valueAttribute",2);let Sp=j;var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ip(e,t,r),r};class Er extends Sp{constructor(){super(...arguments),this.appearance=pp.outline}}ua([a],Er.prototype,"appearance",2),ua([a],Er.prototype,"size",2);const zp=g`${w("inline-flex")} :host{box-sizing:border-box;color:${O};cursor:pointer}:host(${Qh}){color:${hr}}.control{appearance:none;background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:inset 0 0 0 ${z} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${xo} ${et};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${aa}}:host([size='small']) .control{column-gap:${R};padding:${jt} ${ke};${la}}:host([size='large']) .control{column-gap:${Fe};padding:${se} ${ne};${ap}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${z}}.control::after{background-color:${ct};height:${ge};scale:0 1;transition:scale ${wr} ${Tt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${li};outline:${ge} solid ${he}}:host(:where(${Yh},:focus-within)) .control::after{scale:1 1;transition-duration:${$i};transition-timing-function:${zt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${We}}:host([appearance='transparent']) .control{--control-border-color:${gr};background-color:${de};border-radius:${ci}}:host([appearance='outline']) .control{--control-border-color:${Ue}}:host([appearance='outline']) .control:hover{--control-border-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${vo}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${St}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${fo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${ye};background-color:${lt};color:${N}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${D} + (${xo} * 2) + ${z})}:host([size='small']){--margin-offset:calc(${q} + (${jt} * 2) + ${z})}:host([size='large']){--margin-offset:calc(${xe} + (${se} * 2) + ${z})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Tp=Er.compose({name:gp,template:kp,styles:zp});Tp.define(u.registry);const _p={above:"above",after:"after",before:"before"},Te={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},Op=`${u.prefix}-field`;var Bp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Bi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Np(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bp(e,t,r),r};class Po extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ke("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Te))$(this.elementInternals,t,this.input.validity[e])}}Bi([f],Po.prototype,"labelSlot",2),Bi([f],Po.prototype,"messageSlot",2),Bi([f],Po.prototype,"slottedInputs",2),Bi([f],Po.prototype,"input",2);var Ap=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Fp=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ep(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ap(e,t,r),r};class pa extends Po{constructor(){super(...arguments),this.labelPosition=_p.above}}Fp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const Mp=g`${w("inline-grid")} :host{color:${O};align-items:center;gap:0 ${ne};justify-items:start}:has([slot='message']){color:${O};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ne}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${bi}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${yd}}:host(${tu}) ::slotted([slot='label'])::after{content:'*'/'';color:${br};margin-inline-start:${re}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${M};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${bi}}:host(${Kh}:focus-within){border-radius:${S};outline:${ge} solid ${he}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${A};font-weight:${E};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${M};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${xe}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${be}){cursor:default}::slotted([flag]){display:none}:host(${Wh}) ::slotted([flag='${Te.badInput}']),:host(${Uh}) ::slotted([flag='${Te.customError}']),:host(${Jh}) ::slotted([flag='${Te.patternMismatch}']),:host(${Zh}) ::slotted([flag='${Te.rangeOverflow}']),:host(${eu}) ::slotted([flag='${Te.rangeUnderflow}']),:host(${ou}) ::slotted([flag='${Te.stepMismatch}']),:host(${iu}) ::slotted([flag='${Te.tooLong}']),:host(${ru}) ::slotted([flag='${Te.tooShort}']),:host(${nu}) ::slotted([flag='${Te.typeMismatch}']),:host(${lu}) ::slotted([flag='${Te.valueMissing}']),:host(${au}) ::slotted([flag='${Te.valid}']){display:block}`,Dp=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${X("labelSlot")}></slot><slot name=input part=input ${X("slottedInputs")}></slot><slot name=message part=message ${X({property:"messageSlot",filter:co("[flag]")})}></slot></template>`,Lp=pa.compose({name:Op,template:Dp,styles:Mp,shadowOptions:{delegatesFocus:!0}});Lp.define(u.registry);const Vp=`${u.prefix}-image`;var Hp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Hp(e,t,r),r};class Qt extends k{}zo([a({mode:"boolean"})],Qt.prototype,"block",2),zo([a({mode:"boolean"})],Qt.prototype,"bordered",2),zo([a({mode:"boolean"})],Qt.prototype,"shadow",2),zo([a],Qt.prototype,"fit",2),zo([a],Qt.prototype,"shape",2);const jp=b`<slot></slot>`,qp=g`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${z} solid ${$o}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${gi}}:host([shape='circular']) ::slotted(img){border-radius:${ue}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,Wp=Qt.compose({name:Vp,template:jp,styles:qp});Wp.define(u.registry);const Up=`${u.prefix}-label`;var Gp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Gp(e,t,r),r};class To extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Ni([a],To.prototype,"size",2),Ni([a],To.prototype,"weight",2),Ni([a({mode:"boolean"})],To.prototype,"disabled",2),Ni([a({mode:"boolean"})],To.prototype,"required",2);const Kp=g`${w("inline-flex")} :host{color:${O};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};line-height:${D};user-select:none}.asterisk{color:${br};margin-inline-start:${re}}:host([size='small']){font-size:${M};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${xe}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${N}}`;function Yp(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Jp=Yp(),Qp=To.compose({name:Up,template:Jp,styles:Kp});Qp.define(u.registry);const Zp=`${u.prefix}-link`;var eg=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?tg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&eg(e,t,r),r};class Fr extends Ge{constructor(){super(...arguments),this.inline=!1}}ga([a],Fr.prototype,"appearance",2),ga([a({mode:"boolean"})],Fr.prototype,"inline",2);const og=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Tl};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${z};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${_l}}:host(:active){color:${Ol}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Al}}}:host([appearance='subtle']){color:${Bl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function ig(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const rg=ig(),ng=Fr.compose({name:Zp,template:rg,styles:og});ng.define(u.registry);var sg=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,_o=(o,e,t,i)=>{for(var r=i>1?void 0:i?ag(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&sg(e,t,r),r};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),B.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Jt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),ko(this,()=>{this.id=this.id||Ke("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const n=r===e;i.selected=n,n&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){ko(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(i=>Jt(i));this.options=t}})}}_o([f],Zt.prototype,"defaultSlot",2),_o([f],Zt.prototype,"multiple",2),_o([f],Zt.prototype,"options",2),_o([f],Zt.prototype,"selectedIndex",2),_o([f],Zt.prototype,"dropdown",2);const lg=g`${w("inline-flex")} :host{background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${re};row-gap:${R};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(end);inset-inline-start:anchor(start);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${Xh}){margin-block-start:revert;translate:0 -100%}}`;function cg(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${_("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const dg=cg(),hg=Zt.compose({name:fp,template:dg,styles:lg});hg.define(u.registry);const ug=Si,pg=`${u.prefix}-menu-button`;class gg extends ot{}const fg=Tr({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),bg=gg.compose({name:pg,template:fg,styles:ug});bg.define(u.registry);const ee={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ee.menuitem+"",ee.menuitemcheckbox+"",ee.menuitemradio+"";function mg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vg=`${u.prefix}-menu-item`;var $g=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?yg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&$g(e,t,r),r};class it extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ee.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ee.menuitemcheckbox:this.checked=!this.checked;break;case ee.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ee.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ee.menuitem}checkedChanged(e,t){const i=this.role!==ee.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,$(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ee.menuitem,this.elementInternals.ariaChecked=this.role!==ee.menuitem?`${!!this.checked}`:null,tt(this)}}eo([a({mode:"boolean"})],it.prototype,"disabled",2),eo([a],it.prototype,"role",2),eo([a({mode:"boolean"})],it.prototype,"checked",2),eo([a({mode:"boolean"})],it.prototype,"hidden",2),eo([f],it.prototype,"slottedSubmenu",2),eo([f],it.prototype,"submenu",2),at(it,nt);const xg=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${S};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${A}/${D} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ri};color:${Dt}}:host(:active){background-color:${ss};color:${Lt}}:host(:active) ::slotted([slot='start']){color:${Fl}}:host(${be}){background-color:${lt};color:${N}}:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:${N}}:host(:focus-visible){border-radius:${S};outline:2px solid ${he}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Ti})) .submenu-glyph,:host(:not(${Ti})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${E} ${M}/${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Ti}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Ti}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(start);inset-inline-start:anchor(end);position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${be}),:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:GrayText}}`,kg=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),wg=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function Cg(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${ce(o.indicator)}</slot>${qe(o)}<div part=content class=content><slot></slot></div>${st(o)}<slot name=submenu-glyph>${ce(o.submenuGlyph)}</slot><slot name=submenu ${X({property:"slottedSubmenu"})}></slot></template>`}const Sg=Cg({indicator:kg,submenuGlyph:wg}),Ig=it.compose({name:vg,template:Sg,styles:xg});Ig.define(u.registry);const Pg=`${u.prefix}-menu-list`;var Oo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Mr={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Dr(o,e){return o.contains(e)}function zg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Tg(o,e,t){const i="forward",r="backward",n="block",s="inline";if(_g(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?r:i:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?n:s,x=d?s:n,C=d?c.endsWith("-rl")!==l:l,Be=d&&l,bt={ArrowUp:{axis:x,dir:Be?i:r},ArrowDown:{axis:x,dir:Be?r:i},ArrowLeft:{axis:p,dir:C?i:r},ArrowRight:{axis:p,dir:C?r:i},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!bt||t&&bt.axis&&bt.axis!==t?null:bt.dir}function _g(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Og=globalThis.__FOCUSGROUP_POLYFILL__,Bg=Og.o;function Lr(){for(const o of Bg)o.takeRecords()}var Ai=class{#t;#e;#s=Mr.NONE;#u=void 0;#c=!1;#a=!0;#i;#o=null;#r=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(zg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const i={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),i),this.#t.addEventListener("focusin",this.#y.bind(this),i),this.#t.addEventListener("focusout",this.#x.bind(this),i)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Mr.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Mr.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#i=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Oo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Oo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(Tg(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#r&&(!o.relatedTarget||!Dr(this.#t,o.relatedTarget))){const i=this.#o||this.#i;this.#n(),i&&i.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#r&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const i=t??this.#i;i&&this.#v(i,e)}}#x(o){if(!o.relatedTarget||!Dr(this.#t,o.relatedTarget)){const i=this.#a?this.#o||this.#i:this.#i;i&&this.#m(i)}if(o.relatedTarget&&Dr(this.#t,o.relatedTarget)||this.#a||!this.#i)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#i||t!==this.#i){for(const{element:i,segmentBoundary:r}of this.#e.items())i.tabIndex=r?0:-1;t&&(t.tabIndex=0,this.#i=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(Oo.AUTHOR_TABINDEX);this.#r||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#r=!0,Lr())}#n(){this.#r&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#r=!1,this.#l=null,this.#e.flush?.(),Lr())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Lr()}};class Ei{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),i=t.indexOf(e);return i===-1?null:t[i+1]??null}previous(e){const t=this.getItems(),i=t.indexOf(e);return i<=0?null:t[i-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Ng=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,Eg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ag(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ng(e,t,r),r};const Vr=class sn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&ln(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,i=this.menuChildren.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=i-1;n>=0;--n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}const r=this.menuChildren.length-1;for(let n=i+1;n<=r;++n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),B.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,i=e.querySelector("[slot=start]");return t&&t!==ee.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);e.forEach(i=>{m.getNotifier(i).subscribe(this,"hidden")}),this.menuChildren=e.filter(i=>!i.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((i,r)=>{const n=sn.elementIndent(r);return Math.max(i,n)},0);this.menuItems?.forEach(i=>{i.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return mg(e)||ln(e)&&!!e.role&&e.role in sn.focusableElementRoles}};Vr.focusableElementRoles=ee,Eg([f],Vr.prototype,"items",2);let Fg=Vr;class Mg extends Fg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ei(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Dg=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${K};border-radius:${S};box-shadow:${$r};padding:4px;row-gap:2px}`;function Lg(){return b`<template focusgroup=menu><slot ${X("items")}></slot></template>`}const Vg=Lg(),Hg=Mg.compose({name:Pg,template:Vg,styles:Dg});Hg.define(u.registry);const Rg=`${u.prefix}-menu`;var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?qg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&jg(e,t,r),r};class rt extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof it&&(e.target.getAttribute("role")===ee.menuitemcheckbox||e.target.getAttribute("role")===ee.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const i=t[0];this._trigger=i,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){B.enqueue(()=>{this._menuList.focus()})}focusTrigger(){B.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}gt([a({attribute:"open-on-hover",mode:"boolean"})],rt.prototype,"openOnHover",2),gt([a({attribute:"open-on-context",mode:"boolean"})],rt.prototype,"openOnContext",2),gt([a({attribute:"close-on-scroll",mode:"boolean"})],rt.prototype,"closeOnScroll",2),gt([a({attribute:"persist-on-item-click",mode:"boolean"})],rt.prototype,"persistOnItemClick",2),gt([a({mode:"boolean"})],rt.prototype,"split",2),gt([f],rt.prototype,"slottedMenuList",2),gt([f],rt.prototype,"slottedTriggers",2),gt([f],rt.prototype,"primaryAction",2);const Wg=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(end);inset-inline-start:anchor(start);position-try-fallbacks:flip-block;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:auto;inset-inline-end:anchor(end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${z} solid ${Ue};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${z} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Ug(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${_("primaryAction")}></slot><slot name=trigger ${X({property:"slottedTriggers",filter:co()})}></slot><slot ${X({property:"slottedMenuList",filter:co()})}></slot></template>`}const Gg=Ug(),Xg=rt.compose({name:Rg,template:Gg,styles:Wg});Xg.define(u.registry);const Kg=`${u.prefix}-message-bar`;var Yg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Hr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Yg(e,t,r),r};class Fi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Hr([a],Fi.prototype,"shape",2),Hr([a],Fi.prototype,"layout",2),Hr([a],Fi.prototype,"intent",2);const Qg=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${M};line-height:${q};width:100%;background:${fo};border:1px solid ${Ue};padding-inline:${ne};border-radius:${S};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ws};border-color:${ec}}:host([intent='warning']){background-color:${Ss};border-color:${Ps}}:host([intent='error']){background-color:${$s};border-color:${xs}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${mi};padding-inline:${ne}}.content{grid-area:body;max-width:520px;padding-block:${mi};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Fe}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Fe};gap:${Fe}}:host([layout='multiline']) .actions{margin-block-start:${mi};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Zg(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const ef=Zg(),tf=Fi.compose({name:Kg,template:ef,styles:Qg,shadowOptions:{mode:u.shadowRootMode}});tf.define(u.registry);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,me=(o,e,t,i)=>{for(var r=i>1?void 0:i?rf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&of(e,t,r),r};class ae extends k{constructor(){super(),this.active=!1,this.id=Ke("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,B.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ae.formAssociated=!0,me([f],ae.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ae.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ae.prototype,"defaultSelected",2),me([f],ae.prototype,"descriptionSlot",2),me([f],ae.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ae.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ae.prototype,"formAttribute",2),me([a({mode:"boolean"})],ae.prototype,"freeform",2),me([a({attribute:"id"})],ae.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ae.prototype,"initialValue",2),me([f],ae.prototype,"multiple",2),me([a],ae.prototype,"name",2),me([f],ae.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ae.prototype,"textAttribute",2);const nf=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${aa} align-items:center;background-color:${P};border-radius:${S};box-sizing:border-box;color:${Ae};column-gap:${re};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ke};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ri};color:${Dt}}:host(:active){background-color:${ur};color:${Lt}}:host(:disabled){background-color:${P};color:${N};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Or}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Xt}) .checkmark-16-filled,:host(:not(${Xt})) .checkmark-12-regular{display:none}:host(${Xt}) .checkmark-12-regular{background-color:${P};border-radius:${Ee};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Xt}${Or}) .checkmark-12-regular{background-color:${wt};border-color:${ct};fill:${kt}}:host(:disabled${Xt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Xt}${Or}) .checkmark-12-regular{background-color:${lt}}:host(${qh}){border:${ge} solid ${he}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ke}}}:host(${Gh}){column-gap:${ke};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${la}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,sf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function af(o={}){return b`<slot name=checked-indicator>${ce(o.checkedIndicator)}</slot>${qe(o)}<div class=content part=content><slot ${X({property:"freeformOutputs",filter:co("output")})}></slot></div><div class=description part=description><slot name=description ${X("descriptionSlot")}></slot></div>`}const lf=af({checkedIndicator:sf}),cf=ae.compose({name:bp,template:lf,styles:nf});cf.define(u.registry);const df={success:"success",warning:"warning",error:"error"},hf=`${u.prefix}-progress-bar`;var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Bo=(o,e,t,i)=>{for(var r=i>1?void 0:i?pf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&uf(e,t,r),r};class to extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){_t(this.elementInternals,e,t,df)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||B.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,n=r===0?0:Math.fround((i-e)/r*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Bo([f],to.prototype,"indicator",2),Bo([a({attribute:"validation-state"})],to.prototype,"validationState",2),Bo([a({converter:ie})],to.prototype,"value",2),Bo([a({converter:ie})],to.prototype,"min",2),Bo([a({converter:ie})],to.prototype,"max",2);var gf=Object.defineProperty,ff=Object.getOwnPropertyDescriptor,fa=(o,e,t,i)=>{for(var r=i>1?void 0:i?ff(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&gf(e,t,r),r};class Rr extends to{}fa([a],Rr.prototype,"thickness",2),fa([a],Rr.prototype,"shape",2);const bf=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${bo};border-radius:${S};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${ci}}.indicator{background-color:${wt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${bo} 0%,${de} 50%,${bo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${ys}}:host([validation-state='warning']) .indicator{background-color:${Is}}:host([validation-state='success']) .indicator{background-color:${Cs}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function mf(){return b`<div class=indicator part=indicator ${_("indicator")}></div>`}const vf=mf(),$f=Rr.compose({name:hf,template:vf,styles:bf});$f.define(u.registry);const ba=we,yf=`${u.prefix}-radio-group`;function xf(o,e="-radio"){return an(e)(o)}const kf=`${u.prefix}-radio`;var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wf(e,t,r),r};class Ye extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const r=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===r,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(i=>xf(i))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,n)=>{const s=n===e;r.checked=s,s&&(i=n,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(i=>{i.disabled&&i.checked&&(i.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(n,s,c):c.elementInternals.setValidity({})})}}}Ye.formAssociated=!0,ft([f],Ye.prototype,"checkedIndex",2),ft([a({attribute:"disabled",mode:"boolean"})],Ye.prototype,"disabled",2),ft([a({attribute:"value",mode:"fromView"})],Ye.prototype,"initialValue",2),ft([a],Ye.prototype,"name",2),ft([a],Ye.prototype,"orientation",2),ft([f],Ye.prototype,"radios",2),ft([a({mode:"boolean"})],Ye.prototype,"required",2),ft([f],Ye.prototype,"slottedRadios",2);class Sf extends Ye{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ei(()=>this.enabledRadios?.filter(i=>!i.hidden)??[],()=>this.enabledRadios?.find(i=>i.checked)??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const If=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${kr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${O}}::slotted(${be}){color:${N}}::slotted(${y}){color:${O}}:host([slot='input']){margin:${se} ${Fe}}`;function Pf(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${X("slottedRadios")}></slot></template>`}const zf=Pf(),Tf=Sf.compose({name:yf,template:zf,styles:If});Tf.define(u.registry);class _f extends Me{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const Of=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${z} solid ${We};border-radius:${ue};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ue};color:${kt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${he}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${ct}}:host(${y}) .checked-indicator{background-color:${wt}}:host(${y}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${St}}:host(${y}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${be}){background-color:${lt};border-color:${ye}}:host(${y}${be}) .checked-indicator{background-color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${be}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${be}):hover) .checked-indicator{background-color:Highlight}:host(${be}){border-color:GrayText;color:GrayText}:host(${be}${y}) .checked-indicator{background-color:GrayText}}`,Bf=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function Nf(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ce(o.checkedIndicator)}</slot></template>`}const Af=Nf({checkedIndicator:Bf}),Ef=_f.compose({name:kf,template:Af,styles:Of});Ef.define(u.registry);const Ff=`${u.prefix}-rating-display`;var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,No=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mf(e,t,r),r};const Lf=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Mi(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class io extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,i=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,r=`
5
+ `),h,En(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,s=r.length;n<s;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Ft.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){sr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Fn=Wo,$t(Xa);function Ka(o){return o.create!==void 0}function Ya(o,e,t,i){if(t==null&&(t=""),Ka(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Uo(i)&&Uo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Ft.hydrated){const n=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(n.first,n.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Ja(o,e,t){var i;const r=`${this.id}-t`,n=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},s=n.cv;let c=n.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const x=d[l];x!==""&&(s[x]=c,h.add(x))}}if(n.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const Qa={[J.attribute]:yt.setAttribute,[J.booleanAttribute]:yt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:Ya,[J.tokenList]:Ja,[J.event]:()=>{}};class Mt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=J.content}createHTML(e){return kn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Qa[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw G.error(He.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=Uo(e)&&e.hydrationStage&&e.hydrationStage!==Ft.hydrated;switch(this.aspectType){case J.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const n=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(n.target=i,n.controller=e,r&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute)){n.bind(e);break}this.updateTarget(i,this.targetAspect,n.bind(e),e);break}}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Et.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Et.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.controller;if(!i.isBound)return;const r=t.target;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Re.define(Mt,{aspected:!0});const Dn=(o,e)=>`${o}.${e}`,Ln={},je={index:0,node:null};function Vn(o){o.startsWith("fast-")||G.warn(He.hostBindingWithoutHost,{name:o})}const Za=new Proxy(document.createElement("div"),{get(o,e){Vn(e);const t=Reflect.get(o,e);return vt(t)?t.bind(o):t},set(o,e,t){return Vn(e),Reflect.set(o,e,t)}});class el{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,n){var s,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(s=e.id)!==null&&s!==void 0?s:lo(),e.targetNodeId=i,e.targetTagName=n,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let n=Ln[t];if(!n){const s=`_${t}`;Ln[t]=n={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[i]}}}r[t]=n}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Za;for(const r of this.nodeIds)Reflect.get(i,r);return new Ko(t,this.factories,i)}}function Hn(o,e,t,i,r,n=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,x=qo.parse(p,c);let C=null;x===null?n&&(C=new Mt(bn(()=>p,o.policy)),Re.assignAspect(C,l.name)):C=ar.aggregate(x,o.policy),C!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(C,e,i,r,t.tagName))}}function tl(o,e,t,i,r){const n=qo.parse(e.textContent,o.directives);if(n===null)return je.node=e.nextSibling,je.index=r+1,je;let s,c=s=e;for(let h=0,d=n.length;h<d;++h){const l=n[h];h!==0&&(r++,i=Dn(t,r),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Qe(l)?s.textContent=l:(s.textContent=" ",Re.assignAspect(l),o.addFactory(l,t,i,r,null)),c=s}return je.index=r+1,je.node=c.nextSibling,je}function Rn(o,e,t){let i=0,r=e.firstChild;for(;r;){const n=ol(o,t,r,i);r=n.node,i=n.index}}function ol(o,e,t,i){const r=Dn(e,i);switch(t.nodeType){case 1:Hn(o,e,t,r,i),Rn(o,t,r);break;case 3:return tl(o,t,e,r,i);case 8:{const n=qo.parse(t.data,o.directives);n!==null&&o.addFactory(ar.aggregate(n),e,r,i,null);break}}return je.index=i+1,je.node=t.nextSibling,je}function il(o,e){return o&&o.nodeType===8&&qo.parse(o.data,e)!==null}const jn="TEMPLATE",ar={compile(o,e,t=yt.policy){let i;if(Qe(o)){i=document.createElement(jn),i.innerHTML=t.createHTML(o);const s=i.content.firstElementChild;s!==null&&s.tagName===jn&&(i=s)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),n=new el(r,e,t);return Hn(n,"",i,"h",0,!0),(il(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Rn(n,r,"r"),je.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=yt.policy){if(o.length===1)return o[0];let t,i=!1,r;const n=o.length,s=o.map(d=>Qe(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let x=0;x<n;++x)p+=s[x](d,l);return p},h=new Mt(Ji(c,r??e,i));return Re.assignAspect(h,t),h}};class qn extends rr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Re.define(qn);const _=o=>new qn(o),Wn="boolean",Un="reflect",Yo=Object.freeze({locate:hn()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Gn(o);return e&&e.toString()},fromView:Gn};class qi{constructor(e,t,i=t.toLowerCase(),r=Un,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Wn&&n===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||B.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Un:const n=this.converter;yt.setAttribute(e,this.attribute,n!==void 0?n.toView(r):r);break;case Wn:yt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Yo.locate(e));for(let r=0,n=t.length;r<n;++r){const s=t[r];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];Qe(d)?i.push(new qi(e,d)):i.push(new qi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,n){arguments.length>1&&(t.property=n),Yo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}var nl=window&&window.__awaiter||function(o,e,t,i){function r(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function c(l){try{d(i.next(l))}catch(p){s(p)}}function h(l){try{d(i.throw(l))}catch(p){s(p)}}function d(l){l.done?n(l.value):r(l.value).then(c,h)}d((i=i.apply(o,e||[])).next())})},Ne;const Xn={mode:"open"},Kn={},lr=new Set,ho=G.getById(mt.elementRegistry,()=>Ki()),sl={deferAndHydrate:"defer-and-hydrate"};class le{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var i;this.platformDefined=!1,Qe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,n=qi.collect(e,t.attributes),s=new Array(n.length),c={},h={};for(let d=0,l=n.length;d<l;++d){const p=n[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(r,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Xn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Xn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Kn:Object.assign(Object.assign({},Kn),t.elementOptions),this.styles=ve.normalize(t.styles),ho.register(this),m.defineProperty(Ne.isRegistered,this.name),Ne.isRegistered[this.name]=this.type}define(e=this.registry){var t,i;const r=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,r,this.elementOptions),(i=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||i===void 0||i.call(t,this.name)),this}static compose(e,t){return lr.has(e)||ho.getByType(e)?new Ne(class extends e{},t):new Ne(e,t)}static registerBaseType(e){lr.add(e)}static composeAsync(e,t){return new Promise(i=>{(lr.has(e)||ho.getByType(e))&&i(new Ne(class extends e{},t));const r=new Ne(e,t);m.getNotifier(r).subscribe({handleChange:()=>{var n,s;(s=(n=r.lifecycleCallbacks)===null||n===void 0?void 0:n.templateDidUpdate)===null||s===void 0||s.call(n,r.name),i(r)}},"template")})}}Ne=le,le.isRegistered={},le.getByType=ho.getByType,le.getForInstance=ho.getForInstance,le.registerAsync=o=>nl(void 0,void 0,void 0,function*(){return new Promise(e=>{Ne.isRegistered[o]&&e(Ne.isRegistered[o]),m.getNotifier(Ne.isRegistered).subscribe({handleChange:()=>e(Ne.isRegistered[o])},o)})}),m.defineProperty(le.prototype,"template");const al=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ll=Object.create(null);class xt{constructor(e,t=ll){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}xt.empty=new xt(""),Re.define(xt);function cl(o,e,t,i=Re.getForInstance(o)){if(i.aspected){const r=al.exec(e);r!==null&&Re.assignAspect(o,r[2])}return o.createHTML(t)}class Wi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ar.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new xt(Qe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw G.error(He.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw G.error(He.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const n=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return n[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(r+=d,vt(l))l=new Mt(Ji(l));else if(l instanceof Ro)l=new Mt(l);else if(!(p=Re.getForInstance(l))){const x=l;l=new Mt(bn(()=>x))}r+=cl(l,d,s,p)}return new Wi(r+e[e.length-1],n,i)}}$t(Wi);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Wi.create(o,e);throw G.error(He.directCallToHTMLTagNotAllowed)};b.partial=o=>new xt(o);const Yn="slotchange";class Jn extends Va{observe(e){e.addEventListener(Yn,this)}disconnect(e){e.removeEventListener(Yn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Re.define(Jn);function X(o){return Qe(o)&&(o={property:o}),new Jn(o)}class dl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:Et.default,targets:t,get isBound(){return r},addBehaviorFactory(n,s){var c,h,d,l;const p=n;p.id=(c=p.id)!==null&&c!==void 0?c:lo(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:lo(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:yt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(n,s){t[n]=s},addBehavior(n){e.push(n),r&&n.bind(this)},onUnbind(n){i===null&&(i=[]),i.push(n)},connectedCallback(n){r||(r=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(n){r&&(r=!1,i!==null&&i.forEach(s=>s.unbind(this)))}}}});const hl={bubbles:!0,composed:!0,cancelable:!0},Jo="isConnected",Qn=new WeakMap;function uo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qn.get(o))!==null&&t!==void 0?t:null}let Zn;var Q;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(Q||(Q={}));class Ve extends pn{get isConnected(){return m.track(this,Jo),this.stage===Q.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Et.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Qn.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=Q.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const i=m.getAccessors(e);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const c=i[n].name,h=e[c];h!==void 0&&(delete e[c],r[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(i=r.get(e))!==null&&i!==void 0?i:0;n===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===Q.connected||this.stage===Q.connecting)&&e.connectedCallback(this)):r.set(e,n+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==Q.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.addBehavior(r[n])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.removeBehavior(r[n])}}connect(){this.stage===Q.disconnected&&(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=Q.connected,m.notify(this,Jo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,n=i.length;r<n;++r){const s=i[r];e[s]=t[s]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===Q.connected&&(this.stage=Q.disconnecting,m.notify(this,Jo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Q.disconnected)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===Q.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},hl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=uo(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let n=r.firstChild;n!==null;n=r.firstChild)r.removeChild(n)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Ho.coupled)}static forCustomElement(e,t=!1){const i=e.$fastController;if(i!==void 0&&!t)return i;const r=le.getForInstance(e);if(r===void 0)throw G.error(He.missingElementDefinition);return m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Zn(e,r)}static setStrategy(e){Zn=e}}$t(Ve),Ve.setStrategy(Ve);function Qo(o){var e;return"adoptedStyleSheets"in o?o:(e=uo(o))!==null&&e!==void 0?e:o.getRootNode()}class Ui{constructor(e){const t=Ui.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){ts(Qo(e),this.sheets)}removeStylesFrom(e){os(Qo(e),this.sheets)}}Ui.styleSheetCache=new Map;let ul=0;const pl=()=>`fast-${++ul}`;function es(o){return o===document?document.body:o}class gl{constructor(e){this.styles=e,this.styleClass=pl()}addStylesTo(e){e=es(Qo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const n=document.createElement("style");n.innerHTML=t[r],n.className=i,e.append(n)}}removeStylesFrom(e){e=es(Qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let ts=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},os=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ts=(o,e)=>{o.adoptedStyleSheets.push(...e)},os=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ve.setDefaultStrategy(Ui)}else ve.setDefaultStrategy(gl);const cr="needs-hydration";class I extends Ve{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===sl.deferAndHydrate&&(this.source.toggleAttribute(Go,!0),this.source.toggleAttribute(cr,!0))}addHydratingInstance(){if(!I.hydratingInstances)return;const e=this.definition.name;let t=I.hydratingInstances.get(e);t||(t=new Set,I.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return I.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Go)||(I.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,i,r;if(e.didTimeout){I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50});return}if(((t=I.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(r=(i=I.lifecycleCallbacks).hydrationComplete)===null||r===void 0||r.call(i)}catch{}Ve.setStrategy(Ve)}}connect(){var e,t,i,r,n,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(cr),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Go)){this.addHydratingInstance(),I.hydrationObserver.observe(this.source,{attributeFilter:[Go]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===Q.disconnected){if(!I.hydrationStarted){I.hydrationStarted=!0;try{(i=(t=I.lifecycleCallbacks).hydrationStarted)===null||i===void 0||i.call(t)}catch{}}try{(n=(r=I.lifecycleCallbacks).elementWillHydrate)===null||n===void 0||n.call(r,this.source)}catch{}if(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Uo(this.template)){const h=this.source,d=(s=uo(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Se.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Se.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=Q.connected,this.source.removeAttribute(cr),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Jo)}}removeHydratingInstance(){var e,t;if(!I.hydratingInstances)return;try{(t=(e=I.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const i=this.definition.name,r=I.hydratingInstances.get(i);r&&(r.delete(this.source),r.size||I.hydratingInstances.delete(i),I.idleCallbackId&&cancelIdleCallback(I.idleCallbackId),I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),I.hydrationObserver.unobserve(this.source)}static install(){Ve.setStrategy(I)}}I.hydrationObserver=new dl(I.hydrationObserverHandler),I.lifecycleCallbacks={},I.hydrationStarted=!1,I.idleCallbackId=null,I.hydratingInstances=new Map;function is(o){const e=class extends o{constructor(){super(),Ve.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return le.registerBaseType(e),e}function fl(o,e){return vt(o)?le.compose(o,e):le.compose(this,o)}function bl(o,e){return vt(o)?new Promise(t=>{le.composeAsync(o,e).then(i=>{t(i)})}).then(t=>t.define().type):new Promise(t=>{le.composeAsync(this,o).then(i=>{t(i)})}).then(t=>t.define().type)}function ml(o,e){return vt(o)?le.compose(o,e).define().type:le.compose(this,o).define().type}function vl(o){return is(o)}const k=Object.assign(is(HTMLElement),{from:vl,define:ml,compose:fl,defineAsync:bl});function ce(o){return o?typeof o=="string"?new xt(o):"inline"in o?o.inline():o:xt.empty}class nt{}function st(o){return b`<slot name=end ${_("end")}>${ce(o.end)}</slot>`.inline()}function qe(o){return b`<slot name=start ${_("start")}>${ce(o.start)}</slot>`.inline()}function at(o,...e){const t=Yo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),Yo.locate(i).forEach(n=>t.push(n))})}var $l=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,Zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?yl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&$l(e,t,r),r};class po extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Zo([a({attribute:"heading-level",mode:"fromView",converter:ie})],po.prototype,"headinglevel",2),Zo([a({mode:"boolean"})],po.prototype,"expanded",2),Zo([a({mode:"boolean"})],po.prototype,"disabled",2),Zo([f],po.prototype,"expandbutton",2);var xl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,dr=(o,e,t,i)=>{for(var r=i>1?void 0:i?kl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&xl(e,t,r),r};class go extends po{constructor(){super(...arguments),this.block=!1}}dr([a],go.prototype,"size",2),dr([a({attribute:"marker-position"})],go.prototype,"markerPosition",2),dr([a({mode:"boolean"})],go.prototype,"block",2),at(go,nt);const wl=":host([hidden]){display:none}";function w(o){return`${wl}:host{display:${o}}`}const O="var(--colorNeutralForeground1)",rs="var(--colorNeutralForeground1Hover)",Cl="var(--colorNeutralForeground1Pressed)",Ae="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Lt="var(--colorNeutralForeground2Pressed)",ei="var(--colorNeutralForeground2Selected)",ti="var(--colorNeutralForeground2BrandHover)",oi="var(--colorNeutralForeground2BrandPressed)",Sl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Il="var(--colorNeutralForeground3Hover)",Pl="var(--colorNeutralForeground3Pressed)",zl="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",N="var(--colorNeutralForegroundDisabled)",Tl="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",Ol="var(--colorBrandForegroundLinkPressed)",Bl="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Al="var(--colorNeutralForeground2LinkPressed)",El="var(--colorCompoundBrandForeground1Hover)",Fl="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",kt="var(--colorNeutralForegroundInverted)",Ml="var(--colorNeutralForegroundInvertedHover)",Dl="var(--colorNeutralForegroundInvertedPressed)",ns="var(--colorNeutralForegroundStaticInverted)",ii="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",P="var(--colorNeutralBackground1)",ri="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",ss="var(--colorNeutralBackground1Selected)",fo="var(--colorNeutralBackground3)",Hl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",bo="var(--colorNeutralBackground6)",as="var(--colorNeutralBackgroundInverted)",ls="var(--colorSubtleBackground)",ni="var(--colorSubtleBackgroundHover)",mo="var(--colorSubtleBackgroundPressed)",cs="var(--colorSubtleBackgroundSelected)",jl="var(--colorSubtleBackgroundLightAlphaHover)",ql="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",de="var(--colorTransparentBackground)",si="var(--colorTransparentBackgroundHover)",ai="var(--colorTransparentBackgroundPressed)",ds="var(--colorTransparentBackgroundSelected)",lt="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",hs="var(--colorBrandBackground)",us="var(--colorBrandBackgroundHover)",ps="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",wt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",gs="var(--colorBrandBackgroundStatic)",fs="var(--colorBrandBackground2)",We="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",St="var(--colorNeutralStrokeAccessiblePressed)",Ue="var(--colorNeutralStroke1)",It="var(--colorNeutralStroke1Hover)",vo="var(--colorNeutralStroke1Pressed)",$o="var(--colorNeutralStroke2)",Gl="var(--colorNeutralStroke3)",Xl="var(--colorNeutralStrokeOnBrand2)",bs="var(--colorBrandStroke1)",ms="var(--colorBrandStroke2)",ct="var(--colorCompoundBrandStroke)",Kl="var(--colorCompoundBrandStrokeHover)",vs="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",gr="var(--colorTransparentStrokeInteractive)",li="var(--colorStrokeFocus1)",he="var(--colorStrokeFocus2)",Yl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",$s="var(--colorPaletteRedBackground1)",Ql="var(--colorPaletteRedBackground2)",ys="var(--colorPaletteRedBackground3)",xs="var(--colorPaletteRedBorder1)",fr="var(--colorPaletteRedBorder2)",br="var(--colorPaletteRedForeground1)",Zl="var(--colorPaletteRedForeground2)",ks="var(--colorPaletteRedForeground3)",ws="var(--colorPaletteGreenBackground1)",Cs="var(--colorPaletteGreenBackground3)",ec="var(--colorPaletteGreenBorder1)",tc="var(--colorPaletteGreenBorder2)",oc="var(--colorPaletteGreenForeground1)",ic="var(--colorPaletteGreenForeground2)",rc="var(--colorPaletteGreenForeground3)",Ss="var(--colorPaletteDarkOrangeBackground1)",Is="var(--colorPaletteDarkOrangeBackground3)",Ps="var(--colorPaletteDarkOrangeBorder1)",nc="var(--colorPaletteDarkOrangeForeground1)",zs="var(--colorPaletteDarkOrangeForeground3)",sc="var(--colorPaletteYellowBackground1)",ac="var(--colorPaletteYellowBackground3)",lc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",Ts="var(--colorPaletteMarigoldBackground2)",cc="var(--colorPaletteMarigoldBorderActive)",dc="var(--colorPaletteMarigoldForeground2)",hc="var(--colorPaletteAnchorBackground2)",uc="var(--colorPaletteAnchorForeground2)",pc="var(--colorPaletteBeigeBackground2)",gc="var(--colorPaletteBeigeForeground2)",fc="var(--colorPaletteBlueBackground2)",bc="var(--colorPaletteBlueForeground2)",mc="var(--colorPaletteBrassBackground2)",vc="var(--colorPaletteBrassForeground2)",$c="var(--colorPaletteBrownBackground2)",yc="var(--colorPaletteBrownForeground2)",xc="var(--colorPaletteCornflowerBackground2)",kc="var(--colorPaletteCornflowerForeground2)",wc="var(--colorPaletteCranberryBackground2)",Cc="var(--colorPaletteCranberryForeground2)",Sc="var(--colorPaletteDarkGreenBackground2)",Ic="var(--colorPaletteDarkGreenForeground2)",Pc="var(--colorPaletteDarkRedBackground2)",zc="var(--colorPaletteDarkRedForeground2)",Tc="var(--colorPaletteForestBackground2)",_c="var(--colorPaletteForestForeground2)",Oc="var(--colorPaletteGoldBackground2)",Bc="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Ac="var(--colorPaletteGrapeForeground2)",Ec="var(--colorPaletteLavenderBackground2)",Fc="var(--colorPaletteLavenderForeground2)",Mc="var(--colorPaletteLightTealBackground2)",Dc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",Vc="var(--colorPaletteLilacForeground2)",Hc="var(--colorPaletteMagentaBackground2)",Rc="var(--colorPaletteMagentaForeground2)",jc="var(--colorPaletteMinkBackground2)",qc="var(--colorPaletteMinkForeground2)",Wc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Gc="var(--colorPalettePeachBackground2)",Xc="var(--colorPalettePeachForeground2)",Kc="var(--colorPalettePinkBackground2)",Yc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",Qc="var(--colorPalettePlatinumForeground2)",Zc="var(--colorPalettePlumBackground2)",ed="var(--colorPalettePlumForeground2)",td="var(--colorPalettePumpkinBackground2)",od="var(--colorPalettePumpkinForeground2)",id="var(--colorPalettePurpleBackground2)",rd="var(--colorPalettePurpleForeground2)",nd="var(--colorPaletteRoyalBlueBackground2)",sd="var(--colorPaletteRoyalBlueForeground2)",ad="var(--colorPaletteSeafoamBackground2)",ld="var(--colorPaletteSeafoamForeground2)",cd="var(--colorPaletteSteelBackground2)",dd="var(--colorPaletteSteelForeground2)",hd="var(--colorPaletteTealBackground2)",ud="var(--colorPaletteTealForeground2)",ci="var(--borderRadiusNone)",Ee="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",_s="var(--borderRadiusLarge)",Os="var(--borderRadiusXLarge)",ue="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",pd="var(--fontFamilyMonospace)",gd="var(--fontFamilyNumeric)",yo="var(--fontSizeBase100)",M="var(--fontSizeBase200)",A="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",di="var(--fontSizeBase600)",Bs="var(--fontSizeHero700)",Ns="var(--fontSizeHero800)",As="var(--fontSizeHero900)",Es="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",fd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",hi="var(--fontWeightBold)",ui="var(--lineHeightBase100)",q="var(--lineHeightBase200)",D="var(--lineHeightBase300)",xe="var(--lineHeightBase400)",pi="var(--lineHeightBase500)",Fs="var(--lineHeightBase600)",Ms="var(--lineHeightHero700)",Ds="var(--lineHeightHero800)",Ls="var(--lineHeightHero900)",Vs="var(--lineHeightHero1000)",vr="var(--shadow2)",gi="var(--shadow4)",bd="var(--shadow8)",$r="var(--shadow16)",md="var(--shadow28)",Hs="var(--shadow64)",z="var(--strokeWidthThin)",ge="var(--strokeWidthThick)",Ie="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",re="var(--spacingHorizontalXS)",ke="var(--spacingHorizontalSNudge)",Fe="var(--spacingHorizontalS)",et="var(--spacingHorizontalMNudge)",ne="var(--spacingHorizontalM)",vd="var(--spacingHorizontalL)",$d="var(--spacingHorizontalXL)",fi="var(--spacingHorizontalXXL)",xr="var(--spacingVerticalNone)",bi="var(--spacingVerticalXXS)",jt="var(--spacingVerticalXS)",xo="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",mi="var(--spacingVerticalMNudge)",yd="var(--spacingVerticalM)",kr="var(--spacingVerticalL)",Pt="var(--spacingVerticalXXL)",xd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Cr="var(--durationGentle)",kd="var(--durationSlow)",Rs="var(--durationSlower)",yi="var(--durationUltraSlow)",wd="var(--curveAccelerateMax)",zt="var(--curveAccelerateMid)",Cd="var(--curveAccelerateMin)",js="var(--curveDecelerateMax)",Tt="var(--curveDecelerateMid)",Sd="var(--curveDecelerateMin)",qs="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",Sr="var(--curveLinear)",Id=g`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ne} ${et};border-radius:${S};font-family:${v};font-size:${A};font-weight:${E};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${de};border:none;box-sizing:border-box;color:${O};cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Fe};grid-column:1/span 1;grid-row:1}.content{margin:0 ${ne}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Fe};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee};outline:none;border:2px solid ${li};box-shadow:inset 0 0 0 1px ${he}}:host([disabled]) .button{color:${N}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${A};line-height:${D}}:host([size='small']) .heading{font-size:${M};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${xe}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${pi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Fe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ne}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${et} ${ne}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`,Pd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),zd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Td(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${_("expandbutton")}><slot name=heading></slot></button> ${qe(o)}<slot name=marker-expanded>${ce(o.expandedIcon)}</slot><slot name=marker-collapsed>${ce(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const _d=Td({collapsedIcon:Pd,expandedIcon:zd}),Od=go.compose({name:Ta,template:_d,styles:Id});Od.define(u.registry);const Ir={single:"single",multi:"multi"},Bd=`${u.prefix}-accordion`;function Ws(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function ko(o,e,t){const i=t?.shallow??!1,r=t?.timeout??50,n=t?.idleCallback??!1,s=`${i?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){n?Ws(e,{timeout:r}):e();return}Ws(c,{timeout:r})};c()}var Nd=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Us=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ad(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Nd(e,t,r),r};class Pr extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{ko(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Gi(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Ir.single){this.setSingleExpandMode(i);return}i?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Gi(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ir.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{Gi(i)&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton?.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Ir.multi,this.setItems()}}Us([a({attribute:"expand-mode"})],Pr.prototype,"expandmode",2),Us([f],Pr.prototype,"slottedAccordionItems",2);const Ed=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${X({property:"slottedAccordionItems",filter:co()})}></slot></template>`}const Md=Fd(),Dd=Pr.compose({name:Bd,template:Md,styles:Ed});Dd.define(u.registry);const Ld={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Vd={circular:"circular",rounded:"rounded",square:"square"},Hd={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},Rd=`${u.prefix}-button`,jd=Ld,qd=Vd,Wd=Hd,Ud={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Gd=`${u.prefix}-anchor-button`,wi=CSS.supports("anchor-name: --a"),Xd="anchor"in HTMLElement.prototype,Gs=CSS.supports("selector(:state(g))"),Xs=new Map;function T(o){return Xs.get(o)??Xs.set(o,Gs?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Gs){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const zr=new WeakMap;function Ks(o,e){if(!o||!e)return!1;if(zr.has(o))return zr.get(o).has(e);const t=new Set(Object.values(o));return zr.set(o,t),t.has(e)}function _t(o,e="",t="",i,r=""){$(o,`${r}${e}`,!1),(!i||Ks(i,t))&&$(o,`${r}${t}`,!0)}var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Kd(e,t,r),r};class Ge extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Ud){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}dt([a],Ge.prototype,"download",2),dt([a],Ge.prototype,"href",2),dt([a],Ge.prototype,"hreflang",2),dt([a],Ge.prototype,"ping",2),dt([a],Ge.prototype,"referrerpolicy",2),dt([a],Ge.prototype,"rel",2),dt([a],Ge.prototype,"target",2),dt([a],Ge.prototype,"type",2);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,Ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Jd(e,t,r),r};class qt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){_t(this.elementInternals,e,t,jd)}shapeChanged(e,t){_t(this.elementInternals,e,t,qd)}sizeChanged(e,t){_t(this.elementInternals,e,t,Wd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Ci([a],qt.prototype,"appearance",2),Ci([a],qt.prototype,"shape",2),Ci([a],qt.prototype,"size",2),Ci([a({attribute:"icon-only",mode:"boolean"})],qt.prototype,"iconOnly",2),at(qt,nt);const Ys=g`${w("inline-flex")} :host{--icon-spacing:${ke};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${O};border:${z} solid ${Ue};padding:0 ${ne};min-width:96px;border-radius:${S};font-size:${A};font-family:${v};font-weight:${H};line-height:${D};transition-duration:${vi};transition-property:background,border,color;transition-timing-function:${xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ri};color:${rs};border-color:${It}}:host(:hover:active){background-color:${ur};border-color:${vo};color:${Cl};outline-style:none}:host(:focus-visible){border-color:${K};outline:${ge} solid ${K};box-shadow:${gi},0 0 0 2px ${he}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${re};min-height:24px;min-width:64px;padding:0 ${Fe};border-radius:${Ee};font-size:${M};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_s};padding:0 ${vd};font-size:${pe};line-height:${xe}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${ue}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${ci}}:host([appearance='primary']){background-color:${hs};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${us}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${ps}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${vr},0 0 0 2px ${he}}:host([appearance='outline']){background-color:${de}}:host([appearance='outline']:hover){background-color:${si}}:host([appearance='outline']:hover:active){background-color:${ai}}:host([appearance='subtle']){background-color:${ls};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ni};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mo};color:${Lt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ti}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${oi}}:host([appearance='transparent']){background-color:${de};color:${Ae}}:host([appearance='transparent']:hover){background-color:${si};color:${ti}}:host([appearance='transparent']:hover:active){background-color:${ai};color:${oi}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Si=g`${Ys} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${lt};border-color:${ye};color:${N};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${de}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${de};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${de}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Zd=g`${Ys} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function eh(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${qe(o)} <span class=content part=content><slot></slot></span>${st(o)}</template>`}const th=eh(),oh=qt.compose({name:Gd,template:th,styles:Zd});oh.define(u.registry);const Js={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Qs={neutral:"neutral",brand:"brand",colorful:"colorful",...Js},ih=`${u.prefix}-avatar`,rh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,nh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,sh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ah=/\s+/g,lh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ch(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function dh(o){return o=o.replace(rh,""),o=o.replace(nh,""),o=o.replace(ah," "),o=o.trim(),o}function Zs(o,e,t){return!o||(o=dh(o),lh.test(o)||!t?.allowPhoneInitials&&sh.test(o))?"":ch(o,e,t?.firstInitialOnly)}var hh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,wo=(o,e,t,i)=>{for(var r=i>1?void 0:i?uh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&hh(e,t,r),r};class Wt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}B.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}wo([f],Wt.prototype,"defaultSlot",2),wo([f],Wt.prototype,"monogram",2),wo([f],Wt.prototype,"slottedDefaults",2),wo([a],Wt.prototype,"name",2),wo([a],Wt.prototype,"initials",2);var ph=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?gh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ph(e,t,r),r};const ht=class nn extends Wt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Qs.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?nn.colors[bh(this.name??"")%nn.colors.length]:this.color??Qs.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};ht.colors=Object.values(Js),Ut([a],ht.prototype,"active",2),Ut([a],ht.prototype,"shape",2),Ut([a],ht.prototype,"appearance",2),Ut([a({converter:ie})],ht.prototype,"size",2),Ut([a],ht.prototype,"color",2),Ut([a({attribute:"color-id"})],ht.prototype,"colorId",2);let fh=ht;const bh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},ut={fastOutSlowInMax:js,fastOutSlowInMid:Tt,fastOutSlowInMin:Sd,slowOutFastInMax:wd,slowOutFastInMid:zt,slowOutFastInMin:Cd,fastEase:qs,normalEase:xi,nullEasing:Sr},mh=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${A};border-radius:${ue};color:${Z};background-color:${bo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ue}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${z} ${P}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ge} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${yo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${M}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Rt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${di}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ee}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${_s}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Os}}:host([data-color='brand']){color:${ns};background-color:${gs}}:host([data-color='dark-red']){color:${zc};background-color:${Pc}}:host([data-color='cranberry']){color:${Cc};background-color:${wc}}:host([data-color='red']){color:${Zl};background-color:${Ql}}:host([data-color='pumpkin']){color:${od};background-color:${td}}:host([data-color='peach']){color:${Xc};background-color:${Gc}}:host([data-color='marigold']){color:${dc};background-color:${Ts}}:host([data-color='gold']){color:${Bc};background-color:${Oc}}:host([data-color='brass']){color:${vc};background-color:${mc}}:host([data-color='brown']){color:${yc};background-color:${$c}}:host([data-color='forest']){color:${_c};background-color:${Tc}}:host([data-color='seafoam']){color:${ld};background-color:${ad}}:host([data-color='dark-green']){color:${Ic};background-color:${Sc}}:host([data-color='light-teal']){color:${Dc};background-color:${Mc}}:host([data-color='teal']){color:${ud};background-color:${hd}}:host([data-color='steel']){color:${dd};background-color:${cd}}:host([data-color='blue']){color:${bc};background-color:${fc}}:host([data-color='royal-blue']){color:${sd};background-color:${nd}}:host([data-color='cornflower']){color:${kc};background-color:${xc}}:host([data-color='navy']){color:${Uc};background-color:${Wc}}:host([data-color='lavender']){color:${Fc};background-color:${Ec}}:host([data-color='purple']){color:${rd};background-color:${id}}:host([data-color='grape']){color:${Ac};background-color:${Nc}}:host([data-color='lilac']){color:${Vc};background-color:${Lc}}:host([data-color='pink']){color:${Yc};background-color:${Kc}}:host([data-color='magenta']){color:${Rc};background-color:${Hc}}:host([data-color='plum']){color:${ed};background-color:${Zc}}:host([data-color='beige']){color:${gc};background-color:${pc}}:host([data-color='mink']){color:${qc};background-color:${jc}}:host([data-color='platinum']){color:${Qc};background-color:${Jc}}:host([data-color='anchor']){color:${uc};background-color:${hc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${yi},${Rs};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{box-shadow:${bd};border-style:solid;border-color:${gs}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ie});border-width:${Ie}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${yr});border-width:${yr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${gi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${$r}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${md}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yi},${Rs};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,vh=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function $h(){return b`<slot class=default-slot ${X("slottedDefaults")} ${_("defaultSlot")}></slot><span class=monogram ${_("monogram")}>${o=>o.initials}</span> ${vh}<slot name=badge></slot>`}const yh=$h(),xh=fh.compose({name:ih,template:yh,styles:mh});xh.define(u.registry);const kh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},wh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Ch=`${u.prefix}-badge`;var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sh(e,t,r),r};class Gt extends k{constructor(){super(...arguments),this.appearance=kh.filled,this.color=wh.brand}}Ii([a],Gt.prototype,"appearance",2),Ii([a],Gt.prototype,"color",2),Ii([a],Gt.prototype,"shape",2),Ii([a],Gt.prototype,"size",2),at(Gt,nt);const ea=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${M};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${re} + ${R});border-radius:${ue};border-color:${K};background-color:${hs};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${z};border-color:inherit;border-radius:inherit}`,ta=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${yo};line-height:${ui};padding-inline:calc(${R} + ${R})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${M};line-height:${q};padding-inline:calc(${re} + ${R})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${M};line-height:${q};padding-inline:calc(${ke} + ${R})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,oa=g.partial`:host([color='danger']){background-color:${ys};color:${Ze}}:host([color='important']){background-color:${O};color:${P}}:host([color='informative']){background-color:${Rl};color:${Z}}:host([color='severe']){background-color:${Is};color:${Ze}}:host([color='subtle']){background-color:${P};color:${O}}:host([color='success']){background-color:${Cs};color:${Ze}}:host([color='warning']){background-color:${ac};color:${Vl}}`,ia=g.partial`:host([appearance='ghost']){color:${ii};background-color:initial}:host([appearance='ghost'][color='danger']){color:${ks}}:host([appearance='ghost'][color='important']){color:${O}}:host([appearance='ghost'][color='informative']){color:${Z}}:host([appearance='ghost'][color='severe']){color:${zs}}:host([appearance='ghost'][color='subtle']){color:${kt}}:host([appearance='ghost'][color='success']){color:${rc}}:host([appearance='ghost'][color='warning']){color:${mr}}`,Ph=g.partial`:host([appearance='outline']){border-color:currentColor;color:${ii};background-color:initial}:host([appearance='outline'][color='danger']){color:${ks}}:host([appearance='outline'][color='important']){color:${Z};border-color:${We}}:host([appearance='outline'][color='informative']){color:${Z};border-color:${$o}}:host([appearance='outline'][color='severe']){color:${zs}}:host([appearance='outline'][color='subtle']){color:${ns}}:host([appearance='outline'][color='success']){color:${ic}}:host([appearance='outline'][color='warning']){color:${mr}}`,zh=g.partial`:host([appearance='tint']){background-color:${fs};color:${Ll};border-color:${ms}}:host([appearance='tint'][color='danger']){background-color:${$s};color:${br};border-color:${xs}}:host([appearance='tint'][color='important']){background-color:${Z};color:${P};border-color:${K}}:host([appearance='tint'][color='informative']){background-color:${Hl};color:${Z};border-color:${$o}}:host([appearance='tint'][color='severe']){background-color:${Ss};color:${nc};border-color:${Ps}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${Z};border-color:${$o}}:host([appearance='tint'][color='success']){background-color:${ws};color:${oc};border-color:${tc}}:host([appearance='tint'][color='warning']){background-color:${sc};color:${mr};border-color:${lc}}`,Th=g`:host([shape='square']){border-radius:${ci}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${zh} ${Ph} ${ia} ${oa} ${ta} ${ea} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function _h(o={}){return b`${qe(o)}<slot>${ce(o.defaultContent)}</slot>${st(o)}`}const Oh=_h(),Bh=Gt.compose({name:Ch,template:Oh,styles:Th});Bh.define(u.registry);function tt(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&B.enqueue(()=>{o.focus()})}var Nh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Nh(e,t,r),r};class fe extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==ki.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex(),tt(this)}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case ki.reset:{this.resetForm();break}case ki.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ki.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}fe.formAssociated=!0,Pe([f],fe.prototype,"defaultSlottedContent",2),Pe([a({mode:"boolean"})],fe.prototype,"disabled",2),Pe([a({attribute:"disabled-focusable",mode:"boolean"})],fe.prototype,"disabledFocusable",2),Pe([a({attribute:"formaction"})],fe.prototype,"formAction",2),Pe([a({attribute:"form"})],fe.prototype,"formAttribute",2),Pe([a({attribute:"formenctype"})],fe.prototype,"formEnctype",2),Pe([a({attribute:"formmethod"})],fe.prototype,"formMethod",2),Pe([a({attribute:"formnovalidate",mode:"boolean"})],fe.prototype,"formNoValidate",2),Pe([a({attribute:"formtarget"})],fe.prototype,"formTarget",2),Pe([a],fe.prototype,"name",2),Pe([a],fe.prototype,"type",2),Pe([a],fe.prototype,"value",2);var Eh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Eh(e,t,r),r};class ot extends fe{constructor(){super(...arguments),this.iconOnly=!1}}Pi([a],ot.prototype,"appearance",2),Pi([a],ot.prototype,"shape",2),Pi([a],ot.prototype,"size",2),Pi([a({attribute:"icon-only",mode:"boolean"})],ot.prototype,"iconOnly",2),at(ot,nt);function Tr(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot></span>${st(o)}</template>`}const Mh=Tr(),Dh=ot.compose({name:Rd,template:Mh,styles:Si});Dh.define(u.registry);const Lh=`${u.prefix}-checkbox`;var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Vh(e,t,r),r};class Me extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity(),tt(this)}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Me.formAssociated=!0,Ot([f],Me.prototype,"disabled",2),Ot([a({attribute:"disabled",mode:"boolean"})],Me.prototype,"disabledAttribute",2),Ot([a({attribute:"form"})],Me.prototype,"formAttribute",2),Ot([a({attribute:"checked",mode:"boolean"})],Me.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],Me.prototype,"initialValue",2),Ot([a],Me.prototype,"name",2),Ot([a({mode:"boolean"})],Me.prototype,"required",2);var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?jh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Rh(e,t,r),r};class zi extends Me{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}_r([f],zi.prototype,"indeterminate",2),_r([a],zi.prototype,"shape",2),_r([a],zi.prototype,"size",2);const qh=T("active"),Wh=T("bad-input"),y=T("checked"),Uh=T("custom-error"),Gh=T("description"),be=T("disabled");T("error");const Xh=T("flip-block"),Kh=T("focus-visible");T("has-message");const Bt=T("indeterminate"),Xt=T("multiple"),Yh=T("open"),Jh=T("pattern-mismatch"),Qh=T("placeholder-shown"),L=T("pressed"),Zh=T("range-overflow"),eu=T("range-underflow"),tu=T("required"),Or=T("selected"),ou=T("step-mismatch"),Ti=T("submenu"),iu=T("too-long"),ru=T("too-short"),nu=T("type-mismatch"),su=T("user-invalid"),au=T("valid"),lu=T("value-missing"),cu=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${Ee};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${St}}:host(${y}:hover){background-color:${Vt};border-color:${Kl}}:host(${y}:active){background-color:${Ht};border-color:${vs}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${he}}.indeterminate-indicator,.checked-indicator{color:${kt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Bt}){border-color:${ct}}:host(${y}),:host(${Bt}) .indeterminate-indicator{background-color:${wt}}:host(${Bt}) .indeterminate-indicator{border-radius:${Ee};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ue}}:host([disabled]),:host([disabled]${y}){background-color:${lt};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${Bt}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Bt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Bt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Bt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,du=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),hu=b.partial("<span class=indeterminate-indicator></span>");function uu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ce(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ce(o.indeterminateIndicator)}</slot></template>`}const pu=uu({checkedIndicator:du,indeterminateIndicator:hu}),gu=zi.compose({name:Lh,template:pu,styles:cu});gu.define(u.registry);const fu=`${u.prefix}-compound-button`;class bu extends ot{}const mu=g`${Si} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${M};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Lt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ti}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${oi}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${N}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ke}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${re}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Fe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${xe}}:host([size='large']) ::slotted([slot='description']){font-size:${A}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function vu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot><slot name=description></slot></span>${st(o)}</template>`}const $u=vu(),yu=bu.compose({name:fu,template:$u,styles:mu});yu.define(u.registry);const xu=`${u.prefix}-counter-badge`;var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Co=(o,e,t,i)=>{for(var r=i>1?void 0:i?wu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ku(e,t,r),r};class Kt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Co([a({converter:ie})],Kt.prototype,"count",2),Co([a({attribute:"overflow-count",converter:ie})],Kt.prototype,"overflowCount",2),Co([a({attribute:"show-zero",mode:"boolean"})],Kt.prototype,"showZero",2),Co([a({mode:"boolean"})],Kt.prototype,"dot",2),Co([$e],Kt.prototype,"displayValue",1);var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?Su(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Cu(e,t,r),r};class Yt extends Kt{}_i([a],Yt.prototype,"appearance",2),_i([a],Yt.prototype,"color",2),_i([a],Yt.prototype,"shape",2),_i([a],Yt.prototype,"size",2),at(Yt,nt);const Iu=g`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${ta} ${oa} ${ia} ${ea} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Pu(o={}){return b`${qe(o)} <span>${e=>e.displayValue}</span> ${st(o)}`}const zu=Pu(),Tu=Yt.compose({name:xu,template:zu,styles:Iu});Tu.define(u.registry);const Nt={modal:"modal",nonModal:"non-modal",alert:"alert"};function ra(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const _u=`${u.prefix}-dialog`;var Ou=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ou(e,t,r),r};class De extends k{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Nt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Nt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Nt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Nt.alert||this.type===Nt.modal?this.dialog.showModal():this.type===Nt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Nt.alert&&e.target===this.dialog&&this.hide(),!0}}Xe([f],De.prototype,"dialog",2),Xe([a({attribute:"aria-describedby"})],De.prototype,"ariaDescribedby",2),Xe([a({attribute:"aria-labelledby"})],De.prototype,"ariaLabelledby",2),Xe([a({attribute:"aria-label"})],De.prototype,"ariaLabel",2),Xe([a],De.prototype,"type",2),Xe([$e],De.prototype,"dialogDescribedby",1),Xe([$e],De.prototype,"dialogLabel",1),Xe([$e],De.prototype,"dialogLabelledby",1),Xe([$e],De.prototype,"dialogModal",1),Xe([$e],De.prototype,"dialogRole",1);const Nu=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${_("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Au=g`@layer base{:host{--dialog-backdrop:${pr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${Os};border:none;box-shadow:${Hs};color:${O};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${Tt};opacity:0}::backdrop{transition-timing-function:${Sr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${zt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${z} solid ${K}}}}`,Eu=De.compose({name:_u,template:Nu,styles:Au});Eu.define(u.registry);const Fu=`${u.prefix}-dialog-body`;class Mu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t)&&t.hide()}return!0}}const Du=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,Lu=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${se};padding:${Pt} ${fi};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${O};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${pi};margin-block-end:calc(${se} * -1);margin-block-start:calc(${Pt} * -1);padding-block-end:${se};padding-block-start:${Pt}}.content{box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${Pt} * -1);padding-block-end:${Pt};padding-block-start:${kr}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,Vu=Mu.compose({name:Fu,template:Du,styles:Lu});Vu.define(u.registry);const we={horizontal:"horizontal",vertical:"vertical"},So={separator:"separator",presentation:"presentation"},na=we,Hu=`${u.prefix}-divider`;var Ru=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?ju(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ru(e,t,r),r};class Br extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??So.separator,this.role!==So.presentation&&(this.elementInternals.ariaOrientation=this.orientation??na.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??So.separator}`),t===So.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==So.presentation?t??null:null,_t(this.elementInternals,e,t,na)}}sa([a],Br.prototype,"role",2),sa([a],Br.prototype,"orientation",2);var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&qu(e,t,r),r};class Oi extends Br{}Nr([a({attribute:"align-content"})],Oi.prototype,"alignContent",2),Nr([a],Oi.prototype,"appearance",2),Nr([a({mode:"boolean"})],Oi.prototype,"inset",2);function Uu(){return b`<slot></slot>`}const Gu=Uu(),Xu=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${$o};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${z}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${M};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${z};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ue}}:host([appearance='strong']) ::slotted(*){color:${O}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${bs}}:host([appearance='brand']) ::slotted(*){color:${ii}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Gl}}:host([appearance='subtle']) ::slotted(*){color:${Z}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Ku=Oi.compose({name:Hu,template:Gu,styles:Xu});Ku.define(u.registry);const Yu={start:"start",end:"end"},Ju={small:"small",medium:"medium",large:"large",full:"full"},Io={nonModal:"non-modal",modal:"modal",inline:"inline"},Qu=`${u.prefix}-drawer`;var Zu=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var r=i>1?void 0:i?ep(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Zu(e,t,r),r};class Ce extends k{constructor(){super(...arguments),this.position=Yu.start,this.size=Ju.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===Io.modal)return!0}get dialogRole(){return this.dialog&&this.type===Io.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Io.modal})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Io.inline||this.type===Io.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}ze([a],Ce.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedby",2),ze([a],Ce.prototype,"position",2),ze([f],Ce.prototype,"role",2),ze([a({attribute:"size"})],Ce.prototype,"size",2),ze([f],Ce.prototype,"dialog",2),ze([$e],Ce.prototype,"dialogDescribedby",1),ze([$e],Ce.prototype,"dialogLabel",1),ze([$e],Ce.prototype,"dialogLabelledby",1),ze([$e],Ce.prototype,"dialogModal",1),ze([$e],Ce.prototype,"dialogRole",1);const tp=g`${w("block")} :host{--dialog-backdrop:${pr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${P};border-radius:0;border:${z} solid ${K};border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});box-shadow:${Hs};box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${fi});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Cr};transition-timing-function:${Tt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${zt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${zt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${Tt};background:var(--dialog-backdrop,${pr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Sr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function op(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${_("dialog")}><slot></slot></dialog>`}const ip=op(),rp=Ce.compose({name:Qu,template:ip,styles:tp});rp.define(u.registry);const np=`${u.prefix}-drawer-body`;class sp extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t,"-drawer")&&t.hide()}return!0}}const aa=g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${E};`;g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${H};`,g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${hi};`;const ap=g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${E};`,la=g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${E};`;g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${H};`,g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${hi};`,g.partial`font-family:${v};font-size:${yo};line-height:${ui};font-weight:${E};`,g.partial`font-family:${v};font-size:${yo};line-height:${ui};font-weight:${H};`;const lp=g.partial`font-family:${v};font-size:${Rt};line-height:${pi};font-weight:${H};`;g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${H};`,g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${hi};`,g.partial`font-family:${v};font-size:${Ns};line-height:${Ds};font-weight:${H};`,g.partial`font-family:${v};font-size:${Bs};line-height:${Ms};font-weight:${H};`,g.partial`font-family:${v};font-size:${di};line-height:${Fs};font-weight:${H};`,g.partial`font-family:${v};font-size:${As};line-height:${Ls};font-weight:${H};`,g.partial`font-family:${v};font-size:${Es};line-height:${Vs};font-weight:${H};`;const cp=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${$d};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${lp}}.footer{display:flex;justify-content:flex-start;gap:${ne}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function dp(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const hp=dp(),up=sp.compose({name:np,template:hp,styles:cp});up.define(u.registry);const pp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ar={combobox:"combobox",dropdown:"dropdown",select:"select"},gp=`${u.prefix}-dropdown`;function ca(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const fp=`${u.prefix}-listbox`;function Jt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bp=`${u.prefix}-option`,pt={ltr:"ltr",rtl:"rtl"},da=o=>o.closest("[dir]")?.dir==="rtl"?pt.rtl:pt.ltr;function ha(o){return o.closest("[lang]")?.lang??"en"}let mp=0;function Ke(o="id-"){const e=`${o}${mp++}`;return document.getElementById(e)?Ke(o):e}const vp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${_("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,$p=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${_("control")}>`,yp=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${_("control")}>${o=>o.displayValue}</button>`;function xp(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${_("controlSlot")}></slot><slot name=indicator ${_("indicatorSlot")}>${ce(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const kp=xp({indicator:vp});var wp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wp(e,t,r),r};const j=class so extends k{constructor(){super(),this.activeIndex=0,this.id=Ke("dropdown-"),this.required=!1,this.type=Ar.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||da(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,n)=>{r.active=n===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ke("input-"))}disabledChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);if(i.subscribe(t),i.notify("multiple"),B.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled,r.name=this.name}),this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,n)=>{r.selected=this.multiple||n===0}),this.setValidity()}),wi){const r=Ke("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,wi||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Ar.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Jt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ha(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Ar.combobox){$p.render(this,this);return}yp.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let i=this.searchString.length>1?this.filterOptions(this.searchString):[],r=!1;if(!i.length&&t&&(i=this.filterOptions(e),r=!0),i.length){const n=this.enabledOptions[this.activeIndex],s=i.indexOf(n),c=r?i[this.getEnabledIndexInBounds(s+1,i.length)]:s>=0?n:i[0];this.activeIndex=this.enabledOptions.indexOf(c)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Jt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}slotchangeHandler(e){const t=e.target;ko(this,()=>{const i=t.assignedElements().find(r=>ca(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.insertControl()}),tt(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:n})=>{if(ca(n)){if(i.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}i.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,Y([$e],j.prototype,"activeDescendant",1),Y([f],j.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),Y([f],j.prototype,"control",2),Y([a({mode:"boolean"})],j.prototype,"disabled",2),Y([$e],j.prototype,"displayValue",1),Y([a({attribute:"id"})],j.prototype,"id",2),Y([f],j.prototype,"indicator",2),Y([f],j.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Y([f],j.prototype,"listbox",2),Y([a({mode:"boolean"})],j.prototype,"multiple",2),Y([a],j.prototype,"name",2),Y([f],j.prototype,"open",2),Y([a],j.prototype,"placeholder",2),Y([a({mode:"boolean"})],j.prototype,"required",2),Y([a],j.prototype,"type",2),Y([a({attribute:"value"})],j.prototype,"valueAttribute",2);let Sp=j;var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ip(e,t,r),r};class Er extends Sp{constructor(){super(...arguments),this.appearance=pp.outline}}ua([a],Er.prototype,"appearance",2),ua([a],Er.prototype,"size",2);const zp=g`${w("inline-flex")} :host{box-sizing:border-box;color:${O};cursor:pointer}:host(${Qh}){color:${hr}}.control{appearance:none;background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:inset 0 0 0 ${z} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${xo} ${et};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${aa}}:host([size='small']) .control{column-gap:${R};padding:${jt} ${ke};${la}}:host([size='large']) .control{column-gap:${Fe};padding:${se} ${ne};${ap}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${z}}.control::after{background-color:${ct};height:${ge};scale:0 1;transition:scale ${wr} ${Tt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${li};outline:${ge} solid ${he}}:host(:where(${Yh},:focus-within)) .control::after{scale:1 1;transition-duration:${$i};transition-timing-function:${zt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${We}}:host([appearance='transparent']) .control{--control-border-color:${gr};background-color:${de};border-radius:${ci}}:host([appearance='outline']) .control{--control-border-color:${Ue}}:host([appearance='outline']) .control:hover{--control-border-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${vo}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${St}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${fo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${ye};background-color:${lt};color:${N}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${D} + (${xo} * 2) + ${z})}:host([size='small']){--margin-offset:calc(${q} + (${jt} * 2) + ${z})}:host([size='large']){--margin-offset:calc(${xe} + (${se} * 2) + ${z})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Tp=Er.compose({name:gp,template:kp,styles:zp});Tp.define(u.registry);const _p={above:"above",after:"after",before:"before"},Te={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},Op=`${u.prefix}-field`;var Bp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Bi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Np(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bp(e,t,r),r};class Po extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ke("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Te))$(this.elementInternals,t,this.input.validity[e])}}Bi([f],Po.prototype,"labelSlot",2),Bi([f],Po.prototype,"messageSlot",2),Bi([f],Po.prototype,"slottedInputs",2),Bi([f],Po.prototype,"input",2);var Ap=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Fp=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ep(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ap(e,t,r),r};class pa extends Po{constructor(){super(...arguments),this.labelPosition=_p.above}}Fp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const Mp=g`${w("inline-grid")} :host{color:${O};align-items:center;gap:0 ${ne};justify-items:start}:has([slot='message']){color:${O};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ne}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${bi}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${yd}}:host(${tu}) ::slotted([slot='label'])::after{content:'*'/'';color:${br};margin-inline-start:${re}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${M};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${bi}}:host(${Kh}:focus-within){border-radius:${S};outline:${ge} solid ${he}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${A};font-weight:${E};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${M};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${xe}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${be}){cursor:default}::slotted([flag]){display:none}:host(${Wh}) ::slotted([flag='${Te.badInput}']),:host(${Uh}) ::slotted([flag='${Te.customError}']),:host(${Jh}) ::slotted([flag='${Te.patternMismatch}']),:host(${Zh}) ::slotted([flag='${Te.rangeOverflow}']),:host(${eu}) ::slotted([flag='${Te.rangeUnderflow}']),:host(${ou}) ::slotted([flag='${Te.stepMismatch}']),:host(${iu}) ::slotted([flag='${Te.tooLong}']),:host(${ru}) ::slotted([flag='${Te.tooShort}']),:host(${nu}) ::slotted([flag='${Te.typeMismatch}']),:host(${lu}) ::slotted([flag='${Te.valueMissing}']),:host(${au}) ::slotted([flag='${Te.valid}']){display:block}`,Dp=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${X("labelSlot")}></slot><slot name=input part=input ${X("slottedInputs")}></slot><slot name=message part=message ${X({property:"messageSlot",filter:co("[flag]")})}></slot></template>`,Lp=pa.compose({name:Op,template:Dp,styles:Mp,shadowOptions:{delegatesFocus:!0}});Lp.define(u.registry);const Vp=`${u.prefix}-image`;var Hp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Hp(e,t,r),r};class Qt extends k{}zo([a({mode:"boolean"})],Qt.prototype,"block",2),zo([a({mode:"boolean"})],Qt.prototype,"bordered",2),zo([a({mode:"boolean"})],Qt.prototype,"shadow",2),zo([a],Qt.prototype,"fit",2),zo([a],Qt.prototype,"shape",2);const jp=b`<slot></slot>`,qp=g`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${z} solid ${$o}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${gi}}:host([shape='circular']) ::slotted(img){border-radius:${ue}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,Wp=Qt.compose({name:Vp,template:jp,styles:qp});Wp.define(u.registry);const Up=`${u.prefix}-label`;var Gp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Gp(e,t,r),r};class To extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Ni([a],To.prototype,"size",2),Ni([a],To.prototype,"weight",2),Ni([a({mode:"boolean"})],To.prototype,"disabled",2),Ni([a({mode:"boolean"})],To.prototype,"required",2);const Kp=g`${w("inline-flex")} :host{color:${O};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};line-height:${D};user-select:none}.asterisk{color:${br};margin-inline-start:${re}}:host([size='small']){font-size:${M};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${xe}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${N}}`;function Yp(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Jp=Yp(),Qp=To.compose({name:Up,template:Jp,styles:Kp});Qp.define(u.registry);const Zp=`${u.prefix}-link`;var eg=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?tg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&eg(e,t,r),r};class Fr extends Ge{constructor(){super(...arguments),this.inline=!1}}ga([a],Fr.prototype,"appearance",2),ga([a({mode:"boolean"})],Fr.prototype,"inline",2);const og=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Tl};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${z};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${_l}}:host(:active){color:${Ol}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Al}}}:host([appearance='subtle']){color:${Bl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function ig(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const rg=ig(),ng=Fr.compose({name:Zp,template:rg,styles:og});ng.define(u.registry);var sg=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,_o=(o,e,t,i)=>{for(var r=i>1?void 0:i?ag(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&sg(e,t,r),r};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),B.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Jt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),ko(this,()=>{this.id=this.id||Ke("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const n=r===e;i.selected=n,n&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){ko(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(i=>Jt(i));this.options=t}})}}_o([f],Zt.prototype,"defaultSlot",2),_o([f],Zt.prototype,"multiple",2),_o([f],Zt.prototype,"options",2),_o([f],Zt.prototype,"selectedIndex",2),_o([f],Zt.prototype,"dropdown",2);const lg=g`${w("inline-flex")} :host{background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${re};row-gap:${R};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${Xh}){margin-block-start:revert;translate:0 -100%}}`;function cg(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${_("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const dg=cg(),hg=Zt.compose({name:fp,template:dg,styles:lg});hg.define(u.registry);const ug=Si,pg=`${u.prefix}-menu-button`;class gg extends ot{}const fg=Tr({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),bg=gg.compose({name:pg,template:fg,styles:ug});bg.define(u.registry);const ee={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ee.menuitem+"",ee.menuitemcheckbox+"",ee.menuitemradio+"";function mg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vg=`${u.prefix}-menu-item`;var $g=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?yg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&$g(e,t,r),r};class it extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ee.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ee.menuitemcheckbox:this.checked=!this.checked;break;case ee.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ee.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ee.menuitem}checkedChanged(e,t){const i=this.role!==ee.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,$(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ee.menuitem,this.elementInternals.ariaChecked=this.role!==ee.menuitem?`${!!this.checked}`:null,tt(this)}}eo([a({mode:"boolean"})],it.prototype,"disabled",2),eo([a],it.prototype,"role",2),eo([a({mode:"boolean"})],it.prototype,"checked",2),eo([a({mode:"boolean"})],it.prototype,"hidden",2),eo([f],it.prototype,"slottedSubmenu",2),eo([f],it.prototype,"submenu",2),at(it,nt);const xg=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${S};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${A}/${D} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ri};color:${Dt}}:host(:active){background-color:${ss};color:${Lt}}:host(:active) ::slotted([slot='start']){color:${Fl}}:host(${be}){background-color:${lt};color:${N}}:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:${N}}:host(:focus-visible){border-radius:${S};outline:2px solid ${he}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Ti})) .submenu-glyph,:host(:not(${Ti})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${E} ${M}/${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Ti}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Ti}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${be}),:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:GrayText}}`,kg=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),wg=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function Cg(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${ce(o.indicator)}</slot>${qe(o)}<div part=content class=content><slot></slot></div>${st(o)}<slot name=submenu-glyph>${ce(o.submenuGlyph)}</slot><slot name=submenu ${X({property:"slottedSubmenu"})}></slot></template>`}const Sg=Cg({indicator:kg,submenuGlyph:wg}),Ig=it.compose({name:vg,template:Sg,styles:xg});Ig.define(u.registry);const Pg=`${u.prefix}-menu-list`;var Oo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Mr={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Dr(o,e){return o.contains(e)}function zg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Tg(o,e,t){const i="forward",r="backward",n="block",s="inline";if(_g(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?r:i:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?n:s,x=d?s:n,C=d?c.endsWith("-rl")!==l:l,Be=d&&l,bt={ArrowUp:{axis:x,dir:Be?i:r},ArrowDown:{axis:x,dir:Be?r:i},ArrowLeft:{axis:p,dir:C?i:r},ArrowRight:{axis:p,dir:C?r:i},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!bt||t&&bt.axis&&bt.axis!==t?null:bt.dir}function _g(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Og=globalThis.__FOCUSGROUP_POLYFILL__,Bg=Og.o;function Lr(){for(const o of Bg)o.takeRecords()}var Ai=class{#t;#e;#s=Mr.NONE;#u=void 0;#c=!1;#a=!0;#i;#o=null;#r=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(zg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const i={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),i),this.#t.addEventListener("focusin",this.#y.bind(this),i),this.#t.addEventListener("focusout",this.#x.bind(this),i)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Mr.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Mr.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#i=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Oo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Oo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(Tg(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#r&&(!o.relatedTarget||!Dr(this.#t,o.relatedTarget))){const i=this.#o||this.#i;this.#n(),i&&i.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#r&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const i=t??this.#i;i&&this.#v(i,e)}}#x(o){if(!o.relatedTarget||!Dr(this.#t,o.relatedTarget)){const i=this.#a?this.#o||this.#i:this.#i;i&&this.#m(i)}if(o.relatedTarget&&Dr(this.#t,o.relatedTarget)||this.#a||!this.#i)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#i||t!==this.#i){for(const{element:i,segmentBoundary:r}of this.#e.items())i.tabIndex=r?0:-1;t&&(t.tabIndex=0,this.#i=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(Oo.AUTHOR_TABINDEX);this.#r||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#r=!0,Lr())}#n(){this.#r&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#r=!1,this.#l=null,this.#e.flush?.(),Lr())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Lr()}};class Ei{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),i=t.indexOf(e);return i===-1?null:t[i+1]??null}previous(e){const t=this.getItems(),i=t.indexOf(e);return i<=0?null:t[i-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Ng=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,Eg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ag(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ng(e,t,r),r};const Vr=class sn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&ln(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,i=this.menuChildren.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=i-1;n>=0;--n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}const r=this.menuChildren.length-1;for(let n=i+1;n<=r;++n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),B.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,i=e.querySelector("[slot=start]");return t&&t!==ee.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);e.forEach(i=>{m.getNotifier(i).subscribe(this,"hidden")}),this.menuChildren=e.filter(i=>!i.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((i,r)=>{const n=sn.elementIndent(r);return Math.max(i,n)},0);this.menuItems?.forEach(i=>{i.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return mg(e)||ln(e)&&!!e.role&&e.role in sn.focusableElementRoles}};Vr.focusableElementRoles=ee,Eg([f],Vr.prototype,"items",2);let Fg=Vr;class Mg extends Fg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ei(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Dg=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${K};border-radius:${S};box-shadow:${$r};padding:4px;row-gap:2px}`;function Lg(){return b`<template focusgroup=menu><slot ${X("items")}></slot></template>`}const Vg=Lg(),Hg=Mg.compose({name:Pg,template:Vg,styles:Dg});Hg.define(u.registry);const Rg=`${u.prefix}-menu`;var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?qg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&jg(e,t,r),r};class rt extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof it&&(e.target.getAttribute("role")===ee.menuitemcheckbox||e.target.getAttribute("role")===ee.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const i=t[0];this._trigger=i,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){B.enqueue(()=>{this._menuList.focus()})}focusTrigger(){B.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}gt([a({attribute:"open-on-hover",mode:"boolean"})],rt.prototype,"openOnHover",2),gt([a({attribute:"open-on-context",mode:"boolean"})],rt.prototype,"openOnContext",2),gt([a({attribute:"close-on-scroll",mode:"boolean"})],rt.prototype,"closeOnScroll",2),gt([a({attribute:"persist-on-item-click",mode:"boolean"})],rt.prototype,"persistOnItemClick",2),gt([a({mode:"boolean"})],rt.prototype,"split",2),gt([f],rt.prototype,"slottedMenuList",2),gt([f],rt.prototype,"slottedTriggers",2),gt([f],rt.prototype,"primaryAction",2);const Wg=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${z} solid ${Ue};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${z} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Ug(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${_("primaryAction")}></slot><slot name=trigger ${X({property:"slottedTriggers",filter:co()})}></slot><slot ${X({property:"slottedMenuList",filter:co()})}></slot></template>`}const Gg=Ug(),Xg=rt.compose({name:Rg,template:Gg,styles:Wg});Xg.define(u.registry);const Kg=`${u.prefix}-message-bar`;var Yg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Hr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Yg(e,t,r),r};class Fi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Hr([a],Fi.prototype,"shape",2),Hr([a],Fi.prototype,"layout",2),Hr([a],Fi.prototype,"intent",2);const Qg=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${M};line-height:${q};width:100%;background:${fo};border:1px solid ${Ue};padding-inline:${ne};border-radius:${S};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ws};border-color:${ec}}:host([intent='warning']){background-color:${Ss};border-color:${Ps}}:host([intent='error']){background-color:${$s};border-color:${xs}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${mi};padding-inline:${ne}}.content{grid-area:body;max-width:520px;padding-block:${mi};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Fe}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Fe};gap:${Fe}}:host([layout='multiline']) .actions{margin-block-start:${mi};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Zg(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const ef=Zg(),tf=Fi.compose({name:Kg,template:ef,styles:Qg,shadowOptions:{mode:u.shadowRootMode}});tf.define(u.registry);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,me=(o,e,t,i)=>{for(var r=i>1?void 0:i?rf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&of(e,t,r),r};class ae extends k{constructor(){super(),this.active=!1,this.id=Ke("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,B.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ae.formAssociated=!0,me([f],ae.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ae.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ae.prototype,"defaultSelected",2),me([f],ae.prototype,"descriptionSlot",2),me([f],ae.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ae.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ae.prototype,"formAttribute",2),me([a({mode:"boolean"})],ae.prototype,"freeform",2),me([a({attribute:"id"})],ae.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ae.prototype,"initialValue",2),me([f],ae.prototype,"multiple",2),me([a],ae.prototype,"name",2),me([f],ae.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ae.prototype,"textAttribute",2);const nf=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${aa} align-items:center;background-color:${P};border-radius:${S};box-sizing:border-box;color:${Ae};column-gap:${re};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ke};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ri};color:${Dt}}:host(:active){background-color:${ur};color:${Lt}}:host(:disabled){background-color:${P};color:${N};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Or}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Xt}) .checkmark-16-filled,:host(:not(${Xt})) .checkmark-12-regular{display:none}:host(${Xt}) .checkmark-12-regular{background-color:${P};border-radius:${Ee};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Xt}${Or}) .checkmark-12-regular{background-color:${wt};border-color:${ct};fill:${kt}}:host(:disabled${Xt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Xt}${Or}) .checkmark-12-regular{background-color:${lt}}:host(${qh}){border:${ge} solid ${he}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ke}}}:host(${Gh}){column-gap:${ke};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${la}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,sf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function af(o={}){return b`<slot name=checked-indicator>${ce(o.checkedIndicator)}</slot>${qe(o)}<div class=content part=content><slot ${X({property:"freeformOutputs",filter:co("output")})}></slot></div><div class=description part=description><slot name=description ${X("descriptionSlot")}></slot></div>`}const lf=af({checkedIndicator:sf}),cf=ae.compose({name:bp,template:lf,styles:nf});cf.define(u.registry);const df={success:"success",warning:"warning",error:"error"},hf=`${u.prefix}-progress-bar`;var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Bo=(o,e,t,i)=>{for(var r=i>1?void 0:i?pf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&uf(e,t,r),r};class to extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){_t(this.elementInternals,e,t,df)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||B.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,n=r===0?0:Math.fround((i-e)/r*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Bo([f],to.prototype,"indicator",2),Bo([a({attribute:"validation-state"})],to.prototype,"validationState",2),Bo([a({converter:ie})],to.prototype,"value",2),Bo([a({converter:ie})],to.prototype,"min",2),Bo([a({converter:ie})],to.prototype,"max",2);var gf=Object.defineProperty,ff=Object.getOwnPropertyDescriptor,fa=(o,e,t,i)=>{for(var r=i>1?void 0:i?ff(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&gf(e,t,r),r};class Rr extends to{}fa([a],Rr.prototype,"thickness",2),fa([a],Rr.prototype,"shape",2);const bf=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${bo};border-radius:${S};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${ci}}.indicator{background-color:${wt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${bo} 0%,${de} 50%,${bo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${ys}}:host([validation-state='warning']) .indicator{background-color:${Is}}:host([validation-state='success']) .indicator{background-color:${Cs}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function mf(){return b`<div class=indicator part=indicator ${_("indicator")}></div>`}const vf=mf(),$f=Rr.compose({name:hf,template:vf,styles:bf});$f.define(u.registry);const ba=we,yf=`${u.prefix}-radio-group`;function xf(o,e="-radio"){return an(e)(o)}const kf=`${u.prefix}-radio`;var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wf(e,t,r),r};class Ye extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const r=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===r,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(i=>xf(i))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,n)=>{const s=n===e;r.checked=s,s&&(i=n,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(i=>{i.disabled&&i.checked&&(i.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(n,s,c):c.elementInternals.setValidity({})})}}}Ye.formAssociated=!0,ft([f],Ye.prototype,"checkedIndex",2),ft([a({attribute:"disabled",mode:"boolean"})],Ye.prototype,"disabled",2),ft([a({attribute:"value",mode:"fromView"})],Ye.prototype,"initialValue",2),ft([a],Ye.prototype,"name",2),ft([a],Ye.prototype,"orientation",2),ft([f],Ye.prototype,"radios",2),ft([a({mode:"boolean"})],Ye.prototype,"required",2),ft([f],Ye.prototype,"slottedRadios",2);class Sf extends Ye{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ei(()=>this.enabledRadios?.filter(i=>!i.hidden)??[],()=>this.enabledRadios?.find(i=>i.checked)??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const If=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${kr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${O}}::slotted(${be}){color:${N}}::slotted(${y}){color:${O}}:host([slot='input']){margin:${se} ${Fe}}`;function Pf(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${X("slottedRadios")}></slot></template>`}const zf=Pf(),Tf=Sf.compose({name:yf,template:zf,styles:If});Tf.define(u.registry);class _f extends Me{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const Of=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${z} solid ${We};border-radius:${ue};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ue};color:${kt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${he}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${ct}}:host(${y}) .checked-indicator{background-color:${wt}}:host(${y}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${St}}:host(${y}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${be}){background-color:${lt};border-color:${ye}}:host(${y}${be}) .checked-indicator{background-color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${be}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${be}):hover) .checked-indicator{background-color:Highlight}:host(${be}){border-color:GrayText;color:GrayText}:host(${be}${y}) .checked-indicator{background-color:GrayText}}`,Bf=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function Nf(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ce(o.checkedIndicator)}</slot></template>`}const Af=Nf({checkedIndicator:Bf}),Ef=_f.compose({name:kf,template:Af,styles:Of});Ef.define(u.registry);const Ff=`${u.prefix}-rating-display`;var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,No=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mf(e,t,r),r};const Lf=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Mi(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class io extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,i=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,r=`
6
6
  <svg
7
7
  viewBox="${i}"
8
8
  xmlns="http://www.w3.org/2000/svg"