@fluentui/web-components 3.0.0-beta.74 → 3.0.0-beta.76

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/README.md +3 -1
  3. package/dist/dts/radio-group/radio-group.d.ts +1 -1
  4. package/dist/dts/tooltip/tooltip.d.ts +7 -0
  5. package/dist/esm/accordion/accordion.js.map +1 -1
  6. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  7. package/dist/esm/avatar/avatar.js.map +1 -1
  8. package/dist/esm/button/button.js.map +1 -1
  9. package/dist/esm/checkbox/checkbox.js.map +1 -1
  10. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  11. package/dist/esm/dialog/dialog.js.map +1 -1
  12. package/dist/esm/divider/divider.js.map +1 -1
  13. package/dist/esm/drawer/drawer.js.map +1 -1
  14. package/dist/esm/field/field.js +1 -1
  15. package/dist/esm/field/field.js.map +1 -1
  16. package/dist/esm/form-associated/form-associated.js.map +1 -1
  17. package/dist/esm/menu/menu.js.map +1 -1
  18. package/dist/esm/menu-item/menu-item.js.map +1 -1
  19. package/dist/esm/menu-list/menu-list.js.map +1 -1
  20. package/dist/esm/radio/radio.js +0 -1
  21. package/dist/esm/radio/radio.js.map +1 -1
  22. package/dist/esm/radio-group/radio-group.js +9 -2
  23. package/dist/esm/radio-group/radio-group.js.map +1 -1
  24. package/dist/esm/rating-display/rating-display.js.map +1 -1
  25. package/dist/esm/slider/slider-utilities.js.map +1 -1
  26. package/dist/esm/slider/slider.js.map +1 -1
  27. package/dist/esm/tab/tab.js.map +1 -1
  28. package/dist/esm/tablist/tablist.js.map +1 -1
  29. package/dist/esm/tabs/tabs.js.map +1 -1
  30. package/dist/esm/text/text.js.map +1 -1
  31. package/dist/esm/text-input/text-input.js.map +1 -1
  32. package/dist/esm/textarea/textarea.js.map +1 -1
  33. package/dist/esm/theme/set-theme.js +3 -3
  34. package/dist/esm/theme/set-theme.js.map +1 -1
  35. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  36. package/dist/esm/tooltip/tooltip.js +70 -54
  37. package/dist/esm/tooltip/tooltip.js.map +1 -1
  38. package/dist/esm/tooltip/tooltip.styles.js +2 -1
  39. package/dist/esm/tooltip/tooltip.styles.js.map +1 -1
  40. package/dist/esm/utils/apply-mixins.js.map +1 -1
  41. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +1 -1
  42. package/dist/esm/utils/benchmark-wrapper.js.map +1 -1
  43. package/dist/esm/utils/element-internals.js.map +1 -1
  44. package/dist/esm/utils/get-initials.js.map +1 -1
  45. package/dist/esm/utils/root-active-element.js.map +1 -1
  46. package/dist/esm/utils/template-helpers.js.map +1 -1
  47. package/dist/web-components.d.ts +8 -1
  48. package/dist/web-components.js +79 -53
  49. package/dist/web-components.min.js +93 -92
  50. package/package.json +6 -4
  51. package/dist/dts/helpers.tests.d.ts +0 -30
  52. package/dist/esm/helpers.tests.js +0 -73
  53. package/dist/esm/helpers.tests.js.map +0 -1
@@ -1,7 +1,7 @@
1
- const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let jo;const sr="fast-kernel";try{if(document.currentScript)jo=document.currentScript.getAttribute(sr);else{const o=document.getElementsByTagName("script");jo=o[o.length-1].getAttribute(sr)}}catch{jo="isolate"}let ye;switch(jo){case"share":ye=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ye=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ye=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Me=o=>typeof o=="function",Lt=o=>typeof o=="string",rr=()=>{};var Ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ji<"u")Ji.globalThis=Ji;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const nr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},nr));const st=globalThis.FAST;if(st.getById===void 0){const o=Object.create(null);Reflect.defineProperty(st,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},nr))}st.error===void 0&&Object.assign(st,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ta=Object.freeze([]);function ts(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function ar(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function ke(o){o.prototype.toJSON=rr}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),lr=o=>o,Ba=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:lr}):{createHTML:lr};let qo=Object.freeze({createHTML(o){return Ba.createHTML(o)},protect(o,t,e,i){return i}});const Pa=qo,xe=Object.freeze({get policy(){return qo},setPolicy(o){if(qo!==Pa)throw st.error(1201);qo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Ht=st.getById(ye.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(u){try{u.call()}catch(h){if(i)t.push(h),setTimeout(s,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let l=0,b=o.length-h;l<b;l++)o[l]=o[l+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class es{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);i!==-1&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.subject;if(e===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,t),r!==void 0&&r.handleChange(i,t)}else for(let s=0,r=e.length;s<r;++s)e[s].handleChange(i,t)}}class cr{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,i;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(i=this.subjectSubscribers)===null||i===void 0||i.notify(t)}subscribe(t,e){var i,s;let r;e?r=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new es(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new es(this.subject),r.subscribe(t)}unsubscribe(t,e){var i,s;e?(i=this.subscribers[e])===null||i===void 0||i.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const Go=Object.freeze({unknown:void 0,coupled:1}),$=st.getById(ye.observable,()=>{const o=Ht.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=h=>{throw st.error(1101)};function r(h){var l;let b=(l=h.$fastController)!==null&&l!==void 0?l:e.get(h);return b===void 0&&(Array.isArray(h)?b=s(h):e.set(h,b=new cr(h))),b}const n=ar();class d{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,b){const w=this.field,gt=l[w];if(gt!==b){l[w]=b;const de=l[this.callback];Me(de)&&de.call(l,gt,b),r(l).notify(this.name)}}}class u extends es{constructor(l,b,w=!1){super(l,b),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const b=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),b}requiresUnbind(l){return l.sourceLifetime!==Go.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,b){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let gt;try{gt=this.expression(l,b)}finally{i=w}return gt}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,b){const w=this.last,gt=r(l),de=w===null?this.first:{};if(de.propertySource=l,de.propertyName=b,de.notifier=gt,gt.subscribe(this,b),w!==null){if(!this.needsRefresh){let ir;i=void 0,ir=w.propertySource[w.propertyName],i=this,l===ir&&(this.needsRefresh=!0)}w.next=de}this.last=de}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ke(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,l){i&&i.watch(h,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,l){r(h).notify(l)},defineProperty(h,l){Lt(l)&&(l=new d(l)),n(h).push(l),Reflect.defineProperty(h,l.name,{enumerable:!0,get(){return l.getValue(this)},set(b){l.setValue(this,b)}})},getAccessors:n,binding(h,l,b=this.isVolatileBinding(h)){return new u(h,l,b)},isVolatileBinding(h){return t.test(h.toString())}})});function k(o,t){$.defineProperty(o,t)}function Aa(o,t,e){return Object.assign({},e,{get(){return $.trackVolatile(),e.get.apply(this)}})}const dr=st.getById(ye.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Le=Object.freeze({default:{index:0,length:0,get event(){return Le.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return dr.get()},setEvent(o){dr.set(o)}});class Uo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Ea extends Uo{createObserver(t){return $.binding(this.evaluate,t,this.isVolatile)}}function os(o,t,e=$.isVolatileBinding(o)){return new Ea(o,t,e)}class hr extends Uo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ke(hr);function ur(o,t){return new hr(o,t)}let pr;function gr(o){return o.map(t=>t instanceof vt?gr(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class vt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof vt?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(pr),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(gr(this.styles)),this}static setDefaultStrategy(t){pr=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new vt(t):t instanceof vt?t:new vt([t])}}vt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const is=ts(),ss=Object.freeze({getForInstance:is.getForInstance,getByType:is.getByType,define(o){return is.register({type:o}),o}});function rs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ns{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const i=t.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>rs(h,u.controller,u.observer))}}const s=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){rs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){rs(this,e.controller,e)}}ss.define(ns);const Na=`${Math.random().toString(36).substring(2,8)}`;let Oa=0;const br=()=>`--v${Na}${++Oa}`;function fr(o,t){const e=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=t[n];Me(u)?u=new ns(os(u),br()).createCSS(r):u instanceof Uo?u=new ns(u,br()).createCSS(r):ss.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof vt||u instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=fr(o,t),s=new vt(e);return i.length?s.withBehaviors(...i):s};class mr{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(Lt(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new vt(i))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}ss.define(mr),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=fr(o,t);return new mr(e,i)};const $r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,vr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,yr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,kr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,xr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,wr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Sr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Vt=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,t){return`fe-b$$start$$${o}$$${t}$$fe-b`},contentBindingEndMarker(o,t){return`fe-b$$end$$${o}$$${t}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return $r.test(o)},isContentBindingEndMarker(o){return vr.test(o)},isRepeatViewStartMarker(o){return yr.test(o)},isRepeatViewEndMarker(o){return kr.test(o)},isElementBoundaryStartMarker(o){return Sr(o)&&xr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Sr(o)&&wr.test(o.data)},parseAttributeBinding(o){const t=o.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseContentBindingStartMarker(o){return zr($r,o)},parseContentBindingEndMarker(o){return zr(vr,o)},parseRepeatStartMarker(o){return Cr(yr,o)},parseRepeatEndMarker(o){return Cr(kr,o)},parseElementBoundaryStartMarker(o){return Ir(xr,o.trim())},parseElementBoundaryEndMarker(o){return Ir(wr,o)}});function Cr(o,t){const e=o.exec(t);return e===null?e:parseInt(e[1])}function Ir(o,t){const e=o.exec(t);return e===null?e:e[1]}function zr(o,t){const e=o.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Wo=Symbol.for("fe-hydration");function Xo(o){return o[Wo]===Wo}const as=`fast-${Math.random().toString(36).substring(2,8)}`,Ko=`${as}{`,ho=`}${as}`,Fa=ho.length;let _a=0;const uo=()=>`${as}-${++_a}`,Tr=Object.freeze({interpolation:o=>`${Ko}${o}${ho}`,attribute:o=>`${uo()}="${Ko}${o}${ho}"`,comment:o=>`<!--${Ko}${o}${ho}-->`}),Yo=Object.freeze({parse(o,t){const e=o.split(Ko);if(e.length===1)return null;const i=[];for(let s=0,r=e.length;s<r;++s){const n=e[s],d=n.indexOf(ho);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(t[h]),u=n.substring(d+Fa)}u!==""&&i.push(u)}return i}}),ls=ts(),Bt=Object.freeze({getForInstance:ls.getForInstance,getByType:ls.getByType,define(o,t){return t=t||{},t.type=o,ls.register(t),o},assignAspect(o,t){if(!t){o.aspectType=Q.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=t,o.aspectType=Q.attribute;break}}});class cs{constructor(t){this.options=t}createHTML(t){return Tr.attribute(t(this))}createBehavior(){return this}}ke(cs);class Br extends Error{constructor(t,e,i){super(t),this.factories=e,this.node=i}}function ds(o){return o.nodeType===Node.COMMENT_NODE}function Pr(o){return o.nodeType===Node.TEXT_NODE}function Ar(o,t){const e=document.createRange();return e.setStart(o,0),e.setEnd(t,ds(t)||Pr(t)?t.data.length:t.childNodes.length),e}function Ma(o){return o instanceof DocumentFragment&&"mode"in o}function La(o,t,e){const i=Ar(o,t),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{Ha(u,e,n);break}case Node.COMMENT_NODE:{Va(u,r,e,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function Ha(o,t,e){const i=Vt.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!t[s])throw new Br(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,o);Qo(t[s],o,e)}o.removeAttribute(Vt.attributeMarkerName)}}function Va(o,t,e,i,s){if(Vt.isElementBoundaryStartMarker(o)){Da(o,t);return}if(Vt.isContentBindingStartMarker(o.data)){const r=Vt.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=e[n],h=[];let l=t.nextSibling();o.data="";const b=l;for(;l!==null;){if(ds(l)){const w=Vt.parseContentBindingEndMarker(l.data);if(w&&w[1]===d)break}h.push(l),l=t.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ma(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",h.length===1&&Pr(h[0]))Qo(u,h[0],i);else{l!==b&&l.previousSibling!==null&&(s[u.targetNodeId]={first:b,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Qo(u,w,i)}}}function Da(o,t){const e=Vt.parseElementBoundaryStartMarker(o.data);let i=t.nextSibling();for(;i!==null;){if(ds(i)){const s=Vt.parseElementBoundaryEndMarker(i.data);if(s&&s===e)break}i=t.nextSibling()}}function Qo(o,t,e){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[o.targetNodeId]=t}var Er;function hs(o,t){const e=o.parentNode;let i=o,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(i),i=s}e.removeChild(t)}class Nr{constructor(){this.index=0,this.length=0}get event(){return Le.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Zo extends Nr{constructor(t,e,i){super(),this.fragment=t,this.factories=e,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Go.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i=this.firstChild,s;for(;i!==e;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(e)}dispose(){hs(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let i=this.behaviors;if(i===null){this.source=t,this.context=e,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){hs(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}ke(Zo),$.defineProperty(Zo.prototype,"index"),$.defineProperty(Zo.prototype,"length");const He={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ra extends Error{constructor(t,e,i,s){super(t),this.factory=e,this.fragment=i,this.templateString=s}}class ja extends Nr{constructor(t,e,i,s){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=i,this.hostBindingTarget=s,this[Er]=Wo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Go.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=He.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let i=this.firstChild,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(i),i=s}t.appendChild(e)}bind(t,e=this){var i,s;if(this.hydrationStage!==He.hydrated&&(this._hydrationStage=He.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:d,boundaries:u}=La(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Br){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Qo(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const l=h.createBehavior();l.bind(this),r[d]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ra(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Ar(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=He.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){hs(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}}Er=Wo,ke(ja);function qa(o){return o.create!==void 0}function Ga(o,t,e,i){if(e==null&&(e=""),qa(e)){o.textContent="";let s=o.$fastView;if(s===void 0)if(Xo(i)&&Xo(e)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==He.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=e.hydrate(r.first,r.last)}else s=e.create();else o.$fastTemplate!==e&&(s.isComposed&&(s.remove(),s.unbind()),s=e.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=e)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=e}}function Ua(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[t];if(e!=null&&e.length){const h=e.split(/\s+/);for(let l=0,b=h.length;l<b;++l){const w=h[l];w!==""&&(n[w]=d,u.add(w))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const Wa={[Q.attribute]:xe.setAttribute,[Q.booleanAttribute]:xe.setBooleanAttribute,[Q.property]:(o,t,e)=>o[t]=e,[Q.content]:Ga,[Q.tokenList]:Ua,[Q.event]:()=>{}};class Ve{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=Q.content}createHTML(t){return Tr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Wa[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw st.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId],s=Xo(t)&&t.hydrationStage&&t.hydrationStage!==He.hydrated;switch(this.aspectType){case Q.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:t.onUnbind(this);default:const r=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=t,s&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){r.bind(t);break}this.updateTarget(i,this.targetAspect,r.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Le.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Le.setEvent(null),i!==!0&&t.preventDefault()}}handleChange(t,e){const i=e.target,s=e.controller;this.updateTarget(i,this.targetAspect,e.bind(s),s)}}Bt.define(Ve,{aspected:!0});const Or=(o,t)=>`${o}.${t}`,Fr={},Dt={index:0,node:null};function _r(o){o.startsWith("fast-")||st.warn(1204,{name:o})}const Xa=new Proxy(document.createElement("div"),{get(o,t){_r(t);const e=Reflect.get(o,t);return Me(e)?e.bind(o):e},set(o,t,e){return _r(t),Reflect.set(o,t,e)}});class Ka{constructor(t,e,i){this.fragment=t,this.directives=e,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,i,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(n=t.id)!==null&&n!==void 0?n:uo(),t.targetNodeId=i,t.targetTagName=r,t.policy=(d=t.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,i){const s=this.descriptors;if(e==="r"||e==="h"||s[e])return;if(!s[t]){const n=t.lastIndexOf("."),d=t.substring(0,n),u=parseInt(t.substring(n+1));this.addTargetDescriptor(d,t,u)}let r=Fr[e];if(!r){const n=`_${e}`;Fr[e]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[t].childNodes[i]}}}s[e]=r}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??Xa;for(const s of this.nodeIds)i[s];return new Zo(e,this.factories,i)}}function Mr(o,t,e,i,s,r=!1){const n=e.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const l=n[u],b=l.value,w=Yo.parse(b,d);let gt=null;w===null?r&&(gt=new Ve(ur(()=>b,o.policy)),Bt.assignAspect(gt,l.name)):gt=us.aggregate(w,o.policy),gt!==null&&(e.removeAttributeNode(l),u--,h--,o.addFactory(gt,t,i,s,e.tagName))}}function Ya(o,t,e,i,s){const r=Yo.parse(t.textContent,o.directives);if(r===null)return Dt.node=t.nextSibling,Dt.index=s+1,Dt;let n,d=n=t;for(let u=0,h=r.length;u<h;++u){const l=r[u];u!==0&&(s++,i=Or(e,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Lt(l)?n.textContent=l:(n.textContent=" ",Bt.assignAspect(l),o.addFactory(l,e,i,s,null)),d=n}return Dt.index=s+1,Dt.node=d.nextSibling,Dt}function Lr(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=Qa(o,e,s,i);s=r.node,i=r.index}}function Qa(o,t,e,i){const s=Or(t,i);switch(e.nodeType){case 1:Mr(o,t,e,s,i),Lr(o,e,s);break;case 3:return Ya(o,e,t,s,i);case 8:const r=Yo.parse(e.data,o.directives);r!==null&&o.addFactory(us.aggregate(r),t,s,i,null);break}return Dt.index=i+1,Dt.node=e.nextSibling,Dt}function Za(o,t){return o&&o.nodeType==8&&Yo.parse(o.data,t)!==null}const Hr="TEMPLATE",us={compile(o,t,e=xe.policy){let i;if(Lt(o)){i=document.createElement(Hr),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hr&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new Ka(s,t,e);return Mr(r,"",i,"h",0,!0),(Za(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Lr(r,s,"r"),Dt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=xe.policy){if(o.length===1)return o[0];let e,i=!1,s;const r=o.length,n=o.map(h=>Lt(h)?()=>h:(e=h.sourceAspect||e,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,l)=>{let b="";for(let w=0;w<r;++w)b+=n[w](h,l);return b},u=new Ve(os(d,s??t,i));return Bt.assignAspect(u,e),u}},Ja=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tl=Object.create(null);class we{constructor(t,e=tl){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}we.empty=new we(""),Bt.define(we);function el(o,t,e,i=Bt.getForInstance(o)){if(i.aspected){const s=Ja.exec(t);s!==null&&Bt.assignAspect(o,s[2])}return o.createHTML(e)}class Yi{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=us.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new we(Lt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw st.error(1208);if(this.policy)throw st.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=uo();return r[h]=d,h};for(let d=0,u=t.length-1;d<u;++d){const h=t[d];let l=e[d],b;if(s+=h,Me(l))l=new Ve(os(l));else if(l instanceof Uo)l=new Ve(l);else if(!(b=Bt.getForInstance(l))){const w=l;l=new Ve(ur(()=>w))}s+=el(l,h,n,b)}return new Yi(s+t[t.length-1],r,i)}}ke(Yi);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Yi.create(o,t);throw st.error(1206)};f.partial=o=>new we(o);class Vr extends cs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Bt.define(Vr);const yt=o=>new Vr(o),ol=o=>o.nodeType===1,De=o=>o?t=>t.nodeType===1&&t.matches(o):ol;class Dr extends cs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,Ta),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Rr="slotchange";class jr extends Dr{observe(t){t.addEventListener(Rr,this)}disconnect(t){t.removeEventListener(Rr,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}Bt.define(jr);function rt(o){return Lt(o)&&(o={property:o}),new jr(o)}class qr extends Dr{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=rr,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}Bt.define(qr);function il(o){return Lt(o)&&(o={property:o}),new qr(o)}const Gr="boolean",Ur="reflect",Jo=Object.freeze({locate:ar()}),sl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Wr(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const Z={toView(o){const t=Wr(o);return t&&t.toString()},fromView:Wr};class Qi{constructor(t,e,i=e.toLowerCase(),s=Ur,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Gr&&r===void 0&&(this.converter=sl)}setValue(t,e){const i=t[this.fieldName],s=this.converter;s!==void 0&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return $.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||e==="fromView"||Ht.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Ur:const r=this.converter;xe.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Gr:xe.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Jo.locate(t));for(let s=0,r=e.length;s<r;++s){const n=e[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Lt(h)?i.push(new Qi(t,h)):i.push(new Qi(t,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,t){let e;function i(s,r){arguments.length>1&&(e.property=r),Jo.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Xr={mode:"open"},Kr={},Yr=new Set,ti=st.getById(ye.elementRegistry,()=>ts());class Mt{constructor(t,e=t.definition){var i;this.platformDefined=!1,Lt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(i=e.registry)!==null&&i!==void 0?i:customElements;const s=t.prototype,r=Qi.collect(t,e.attributes),n=new Array(r.length),d={},u={};for(let h=0,l=r.length;h<l;++h){const b=r[h];n[h]=b.attribute,d[b.name]=b,u[b.attribute]=b,$.defineProperty(s,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=e.shadowOptions===void 0?Xr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Xr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Kr:Object.assign(Object.assign({},Kr),e.elementOptions),this.styles=vt.normalize(e.styles),ti.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Yr.has(t)||ti.getByType(t)?new Mt(class extends t{},e):new Mt(t,e)}static registerBaseType(t){Yr.add(t)}}Mt.getByType=ti.getByType,Mt.getForInstance=ti.getForInstance;class rl extends MutationObserver{constructor(t){function e(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const t=[],e={};let i=null,s=!1;return{source:o,context:Le.default,targets:e,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,l;const b=r;b.id=(d=b.id)!==null&&d!==void 0?d:uo(),b.targetNodeId=(u=b.targetNodeId)!==null&&u!==void 0?u:uo(),b.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,b.policy=(l=b.policy)!==null&&l!==void 0?l:xe.policy,this.addTarget(b.targetNodeId,n),this.addBehavior(b.createBehavior())},addTarget(r,n){e[r]=n},addBehavior(r){t.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,t.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const nl={bubbles:!0,composed:!0,cancelable:!0},ei="isConnected",Qr=new WeakMap;function po(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Qr.get(o))!==null&&e!==void 0?e:null}let Zr;class Re extends cr{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const i=e.shadowOptions;if(i!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(i),i.mode==="closed"&&Qr.set(t,r))}const s=$.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=t[u];h!==void 0&&(delete t[u],r[u]=h)}}}get isConnected(){return $.track(this,ei),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Le.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,i;const s=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(i=s.get(t))!==null&&i!==void 0?i:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,e=!1){const i=this.behaviors;if(i===null)return;const s=i.get(t);s!==void 0&&(s===1||e?(i.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):i.set(t,s-1))}addStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=po(i))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(i)){const s=t.behaviors;if(t.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=po(i))!==null&&e!==void 0?e:i).removeChild(t);else if(t.isAttachedTo(i)){const s=t.behaviors;if(t.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,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=1,$.notify(this,ei))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,i=Object.keys(e);for(let s=0,r=i.length;s<r;++s){const n=i[s];t[n]=e[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,$.notify(this,ei),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(t,e,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},nl),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=po(i))!==null&&e!==void 0?e:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=Go.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=Mt.getForInstance(t);if(i===void 0)throw st.error(1401);return t.$fastController=new Zr(t,i)}static setStrategy(t){Zr=t}}ke(Re),Re.setStrategy(Re);function oi(o){var t;return"adoptedStyleSheets"in o?o:(t=po(o))!==null&&t!==void 0?t:o.getRootNode()}class Zi{constructor(t){const e=Zi.styleSheetCache;this.sheets=t.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=e.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),e.set(i,s)),s})}addStylesTo(t){tn(oi(t),this.sheets)}removeStylesFrom(t){en(oi(t),this.sheets)}}Zi.styleSheetCache=new Map;let al=0;const ll=()=>`fast-${++al}`;function Jr(o){return o===document?document.body:o}class cl{constructor(t){this.styles=t,this.styleClass=ll()}addStylesTo(t){t=Jr(oi(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const r=document.createElement("style");r.innerHTML=e[s],r.className=i,t.append(r)}}removeStylesFrom(t){t=Jr(oi(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let tn=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},en=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(vt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),tn=(o,t)=>{o.adoptedStyleSheets.push(...t)},en=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}vt.setDefaultStrategy(Zi)}else vt.setDefaultStrategy(cl);const on="defer-hydration",sn="needs-hydration";class _e extends Re{static hydrationObserverHandler(t){for(const e of t)_e.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(sn)!==null),this.source.hasAttribute(on)){_e.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(t=po(i))!==null&&t!==void 0?t:i;if(this.template)if(Xo(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Vt.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Vt.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(sn),this.needsInitialization=this.needsHydration=!1,$.notify(this,ei)}disconnect(){super.disconnect(),_e.hydrationObserver.unobserve(this.source)}static install(){Re.setStrategy(_e)}}_e.hydrationObserver=new rl(_e.hydrationObserverHandler);function rn(o){const t=class extends o{constructor(){super(),Re.forCustomElement(this)}$emit(e,i,s){return this.$fastController.emit(e,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,i,s){this.$fastController.onAttributeChangedCallback(e,i,s)}};return Mt.registerBaseType(t),t}function dl(o,t){return Me(o)?Mt.compose(o,t):Mt.compose(this,o)}function hl(o,t){return Me(o)?Mt.compose(o,t).define().type:Mt.compose(this,o).define().type}function ul(o){return rn(o)}const S=Object.assign(rn(HTMLElement),{from:ul,define:hl,compose:dl}),bt={horizontal:"horizontal",vertical:"vertical"};function pl(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function nn(...o){return o.every(t=>t instanceof HTMLElement)}const ii="ArrowDown",si="ArrowLeft",ri="ArrowRight",ni="ArrowUp",ai="End",li="Enter",gl="Escape",ci="Home",ps=" ",bl="Tab";var Pt;(function(o){o.ltr="ltr",o.rtl="rtl"})(Pt||(Pt={}));function fl(o,t,e){return e<o?t:e>t?o:e}function gs(o,t,e){return Math.min(Math.max(e,o),t)}let ml=0;function je(o=""){return`${o}${ml++}`}var $l=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,q=(o,t,e,i)=>{for(var s=i>1?void 0:i?vl(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&$l(t,e,s),s};class G{}q([a({attribute:"aria-atomic"})],G.prototype,"ariaAtomic",2),q([a({attribute:"aria-busy"})],G.prototype,"ariaBusy",2),q([a({attribute:"aria-controls"})],G.prototype,"ariaControls",2),q([a({attribute:"aria-current"})],G.prototype,"ariaCurrent",2),q([a({attribute:"aria-describedby"})],G.prototype,"ariaDescribedby",2),q([a({attribute:"aria-details"})],G.prototype,"ariaDetails",2),q([a({attribute:"aria-disabled"})],G.prototype,"ariaDisabled",2),q([a({attribute:"aria-errormessage"})],G.prototype,"ariaErrormessage",2),q([a({attribute:"aria-flowto"})],G.prototype,"ariaFlowto",2),q([a({attribute:"aria-haspopup"})],G.prototype,"ariaHaspopup",2),q([a({attribute:"aria-hidden"})],G.prototype,"ariaHidden",2),q([a({attribute:"aria-invalid"})],G.prototype,"ariaInvalid",2),q([a({attribute:"aria-keyshortcuts"})],G.prototype,"ariaKeyshortcuts",2),q([a({attribute:"aria-label"})],G.prototype,"ariaLabel",2),q([a({attribute:"aria-labelledby"})],G.prototype,"ariaLabelledby",2),q([a({attribute:"aria-live"})],G.prototype,"ariaLive",2),q([a({attribute:"aria-owns"})],G.prototype,"ariaOwns",2),q([a({attribute:"aria-relevant"})],G.prototype,"ariaRelevant",2),q([a({attribute:"aria-roledescription"})],G.prototype,"ariaRoledescription",2);const bs={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},fs=o=>o.closest("[dir]")?.dir==="rtl"?Pt.rtl:Pt.ltr;function kt(o){return o?typeof o=="string"?new we(o):"inline"in o?o.inline():o:we.empty}const ms=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,yl=":host([hidden]){display:none}";function z(o){return`${yl}:host{display:${o}}`}class kl{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let i=this.listenerCache.get(t);i||(i=this.constructListener(t),this.listenerCache.set(t,i)),i.bind(e)(),e.addEventListener("change",i)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class Ro extends kl{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Ro(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(i),e=r):!r&&e&&(t.removeStyles(i),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const J=Ro.with(window.matchMedia("(forced-colors)"));Ro.with(window.matchMedia("(prefers-color-scheme: dark)")),Ro.with(window.matchMedia("(prefers-color-scheme: light)"));class Yt{}function he(o){return f`<slot name="end" ${yt("end")}>${kt(o.end)}</slot>`.inline()}function Qt(o){return f`<slot name="start" ${yt("start")}>${kt(o.start)}</slot>`.inline()}function Zt(o,...t){const e=Jo.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Jo.locate(i).forEach(r=>e.push(r))})}const an=CSS.supports("selector(:state(g))"),ln=new Map;function c(o){return ln.get(o)??ln.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,t,e){if(t){if(!an){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}}const $s=new WeakMap;function vs(o,t){if(!o||!t)return!1;if($s.has(o))return $s.get(o).has(t);const e=new Set(Object.values(o));return $s.set(o,e),e.has(t)}function m(o,t="",e="",i,s=""){v(o,`${s}${t}`,!1),(!i||vs(i,e))&&v(o,`${s}${e}`,!0)}const xl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},wl={start:"start",end:"end"};var Sl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Se=(o,t,e,i)=>{for(var s=i>1?void 0:i?Cl(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Sl(t,e,s),s};class Jt extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=je("accordion-")}expandedChanged(t,e){v(this.elementInternals,"expanded",e)}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}}Se([a({attribute:"heading-level",mode:"fromView",converter:Z})],Jt.prototype,"headinglevel",2),Se([a({mode:"boolean"})],Jt.prototype,"expanded",2),Se([a({mode:"boolean"})],Jt.prototype,"disabled",2),Se([a],Jt.prototype,"id",2);class go extends Jt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){m(this.elementInternals,t,e,xl)}markerPositionChanged(t,e){m(this.elementInternals,t,e,wl,"align-")}blockChanged(t,e){v(this.elementInternals,"block",e)}}Se([a],go.prototype,"size",2),Se([a({attribute:"marker-position"})],go.prototype,"markerPosition",2),Se([a({mode:"boolean"})],go.prototype,"block",2),Zt(go,Yt);const te=c("align-end"),cn=c("align-start"),Il=c("anchor"),dn=c("auto-resize"),zl=c("bad-input"),Tl=c("beige"),bo=c("block"),Bl=c("blue"),Pl=c("bold"),Al=c("bordered"),Rt=c("brand"),El=c("brass"),Nl=c("brown"),Ol=c("center"),x=c("checked"),fo=c("circular"),Fl=c("cornflower"),_l=c("cranberry"),Ml=c("custom-error"),di=c("danger"),Ll=c("dark-green"),Hl=c("dark-red"),N=c("disabled"),hn=c("display-shadow"),un=c("dot"),Vl=c("end"),ys=c("error"),Ce=c("expanded"),hi=c("extra-large"),mo=c("extra-small"),qe=c("filled-darker"),Ge=c("filled-lighter"),Dl=c("fit-center"),Rl=c("fit-contain"),jl=c("fit-cover"),ql=c("fit-none"),Gl=c("focus-visible"),Ul=c("forest"),ee=c("ghost"),Wl=c("gold"),Xl=c("grape"),Kl=c("has-message"),Yl=c("huge"),ue=c("icon"),ui=c("important"),Ie=c("indeterminate"),pi=c("informative"),Ql=c("inline"),ks=c("inset"),pn=c("inverted"),Zl=c("italic"),Jl=c("justify"),C=c("large"),tc=c("lavender"),ec=c("light-teal"),oc=c("lilac"),ic=c("magenta"),sc=c("marigold"),rc=c("medium"),nc=c("mink"),ac=c("monospace"),$o=c("multiline"),lc=c("navy"),gi=c("neutral"),gn=c("nowrap"),cc=c("numeric"),X=c("outline"),dc=c("pattern-mismatch"),hc=c("peach"),uc=c("pink"),pc=c("platinum"),gc=c("plum"),F=c("pressed"),ct=c("primary"),bc=c("pumpkin"),fc=c("purple"),mc=c("range-overflow"),$c=c("range-underflow"),vc=c("red"),yc=c("resize-both"),kc=c("resize-horizontal"),xc=c("resize-vertical"),oe=c("rounded"),wc=c("royal-blue"),Sc=c("seafoam"),bn=c("semibold"),bi=c("severe"),Cc=c("shadow"),Ic=c("size-1000"),zc=c("size-100"),Tc=c("size-200"),Bc=c("size-400"),Pc=c("size-500"),Ac=c("size-600"),Ec=c("size-700"),Nc=c("size-800"),Oc=c("size-900"),B=c("small"),vo=c("square"),Fc=c("steel"),_c=c("step-mismatch"),fn=c("strikethrough"),yo=c("strong"),fi=c("submenu"),T=c("subtle"),ze=c("success"),Mc=c("teal"),pe=c("tint"),ko=c("tiny"),Lc=c("too-long"),Hc=c("too-short"),tt=c("transparent"),mn=c("truncate"),Vc=c("type-mismatch"),Te=c("underline"),Dc=c("user-invalid"),Rc=c("valid"),jc=c("value-missing"),I=c("vertical"),Be=c("warning"),A="var(--colorNeutralForeground1)",xs="var(--colorNeutralForeground1Hover)",qc="var(--colorNeutralForeground1Pressed)",jt="var(--colorNeutralForeground2)",mi="var(--colorNeutralForeground2Hover)",$i="var(--colorNeutralForeground2Pressed)",Gc="var(--colorNeutralForeground2Selected)",vi="var(--colorNeutralForeground2BrandHover)",yi="var(--colorNeutralForeground2BrandPressed)",Uc="var(--colorNeutralForeground2BrandSelected)",ft="var(--colorNeutralForeground3)",Wc="var(--colorNeutralForeground3Hover)",Xc="var(--colorNeutralForeground3Pressed)",$n="var(--colorNeutralForeground4)",E="var(--colorNeutralForegroundDisabled)",Kc="var(--colorBrandForegroundLink)",Yc="var(--colorBrandForegroundLinkHover)",Qc="var(--colorBrandForegroundLinkPressed)",Zc="var(--colorNeutralForeground2Link)",Jc="var(--colorNeutralForeground2LinkHover)",td="var(--colorNeutralForeground2LinkPressed)",vn="var(--colorCompoundBrandForeground1Hover)",ed="var(--colorCompoundBrandForeground1Pressed)",ie="var(--colorNeutralForegroundOnBrand)",Ue="var(--colorNeutralForegroundInverted)",od="var(--colorNeutralForegroundInvertedHover)",id="var(--colorNeutralForegroundInvertedPressed)",yn="var(--colorNeutralForegroundStaticInverted)",ws="var(--colorBrandForeground1)",sd="var(--colorBrandForeground2)",rd="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",Ss="var(--colorNeutralBackground1Hover)",Cs="var(--colorNeutralBackground1Pressed)",kn="var(--colorNeutralBackground1Selected)",ki="var(--colorNeutralBackground3)",nd="var(--colorNeutralBackground4)",ad="var(--colorNeutralBackground5)",xi="var(--colorNeutralBackground6)",xn="var(--colorNeutralBackgroundInverted)",ld="var(--colorSubtleBackground)",wi="var(--colorSubtleBackgroundHover)",We="var(--colorSubtleBackgroundPressed)",cd="var(--colorSubtleBackgroundSelected)",St="var(--colorTransparentBackground)",Is="var(--colorTransparentBackgroundHover)",zs="var(--colorTransparentBackgroundPressed)",dd="var(--colorTransparentBackgroundSelected)",Xe="var(--colorNeutralBackgroundDisabled)",Ts="var(--colorBackgroundOverlay)",Bs="var(--colorBrandBackground)",wn="var(--colorBrandBackgroundHover)",Sn="var(--colorBrandBackgroundPressed)",hd="var(--colorBrandBackgroundSelected)",Ke="var(--colorCompoundBrandBackground)",xo="var(--colorCompoundBrandBackgroundHover)",wo="var(--colorCompoundBrandBackgroundPressed)",Cn="var(--colorBrandBackgroundStatic)",ud="var(--colorBrandBackground2)",ge="var(--colorNeutralStrokeAccessible)",Ye="var(--colorNeutralStrokeAccessibleHover)",Qe="var(--colorNeutralStrokeAccessiblePressed)",se="var(--colorNeutralStroke1)",So="var(--colorNeutralStroke1Hover)",Si="var(--colorNeutralStroke1Pressed)",Co="var(--colorNeutralStroke2)",pd="var(--colorNeutralStroke3)",gd="var(--colorNeutralStrokeOnBrand2)",In="var(--colorBrandStroke1)",Ps="var(--colorBrandStroke2)",Io="var(--colorCompoundBrandStroke)",bd="var(--colorCompoundBrandStrokeHover)",zn="var(--colorCompoundBrandStrokePressed)",At="var(--colorNeutralStrokeDisabled)",dt="var(--colorTransparentStroke)",Tn="var(--colorTransparentStrokeInteractive)",As="var(--colorStrokeFocus1)",qt="var(--colorStrokeFocus2)",fd="var(--colorNeutralShadowAmbient)",md="var(--colorNeutralShadowKey)",Bn="var(--colorPaletteRedBackground1)",$d="var(--colorPaletteRedBackground2)",Pn="var(--colorPaletteRedBackground3)",An="var(--colorPaletteRedBorder1)",Es="var(--colorPaletteRedBorder2)",En="var(--colorPaletteRedForeground1)",vd="var(--colorPaletteRedForeground2)",Nn="var(--colorPaletteRedForeground3)",On="var(--colorPaletteGreenBackground1)",Fn="var(--colorPaletteGreenBackground3)",yd="var(--colorPaletteGreenBorder1)",kd="var(--colorPaletteGreenBorder2)",xd="var(--colorPaletteGreenForeground1)",wd="var(--colorPaletteGreenForeground2)",Sd="var(--colorPaletteGreenForeground3)",_n="var(--colorPaletteDarkOrangeBackground1)",Mn="var(--colorPaletteDarkOrangeBackground3)",Ln="var(--colorPaletteDarkOrangeBorder1)",Cd="var(--colorPaletteDarkOrangeForeground1)",Hn="var(--colorPaletteDarkOrangeForeground3)",Id="var(--colorPaletteYellowBackground1)",zd="var(--colorPaletteYellowBackground3)",Td="var(--colorPaletteYellowBorder1)",Ns="var(--colorPaletteYellowForeground2)",Vn="var(--colorPaletteMarigoldBackground2)",Bd="var(--colorPaletteMarigoldBackground3)",Pd="var(--colorPaletteMarigoldForeground2)",Ad="var(--colorPaletteAnchorBackground2)",Ed="var(--colorPaletteAnchorForeground2)",Nd="var(--colorPaletteBeigeBackground2)",Od="var(--colorPaletteBeigeForeground2)",Fd="var(--colorPaletteBlueBackground2)",_d="var(--colorPaletteBlueForeground2)",Md="var(--colorPaletteBrassBackground2)",Ld="var(--colorPaletteBrassForeground2)",Hd="var(--colorPaletteBrownBackground2)",Vd="var(--colorPaletteBrownForeground2)",Dd="var(--colorPaletteCornflowerBackground2)",Rd="var(--colorPaletteCornflowerForeground2)",jd="var(--colorPaletteCranberryBackground2)",qd="var(--colorPaletteCranberryForeground2)",Gd="var(--colorPaletteDarkGreenBackground2)",Ud="var(--colorPaletteDarkGreenForeground2)",Wd="var(--colorPaletteDarkRedBackground2)",Xd="var(--colorPaletteDarkRedForeground2)",Kd="var(--colorPaletteForestBackground2)",Yd="var(--colorPaletteForestForeground2)",Qd="var(--colorPaletteGoldBackground2)",Zd="var(--colorPaletteGoldForeground2)",Jd="var(--colorPaletteGrapeBackground2)",th="var(--colorPaletteGrapeForeground2)",eh="var(--colorPaletteLavenderBackground2)",oh="var(--colorPaletteLavenderForeground2)",ih="var(--colorPaletteLightTealBackground2)",sh="var(--colorPaletteLightTealForeground2)",rh="var(--colorPaletteLilacBackground2)",nh="var(--colorPaletteLilacForeground2)",ah="var(--colorPaletteMagentaBackground2)",lh="var(--colorPaletteMagentaForeground2)",ch="var(--colorPaletteMinkBackground2)",dh="var(--colorPaletteMinkForeground2)",hh="var(--colorPaletteNavyBackground2)",uh="var(--colorPaletteNavyForeground2)",ph="var(--colorPalettePeachBackground2)",gh="var(--colorPalettePeachForeground2)",bh="var(--colorPalettePinkBackground2)",fh="var(--colorPalettePinkForeground2)",mh="var(--colorPalettePlatinumBackground2)",$h="var(--colorPalettePlatinumForeground2)",vh="var(--colorPalettePlumBackground2)",yh="var(--colorPalettePlumForeground2)",kh="var(--colorPalettePumpkinBackground2)",xh="var(--colorPalettePumpkinForeground2)",wh="var(--colorPalettePurpleBackground2)",Sh="var(--colorPalettePurpleForeground2)",Ch="var(--colorPaletteRoyalBlueBackground2)",Ih="var(--colorPaletteRoyalBlueForeground2)",zh="var(--colorPaletteSeafoamBackground2)",Th="var(--colorPaletteSeafoamForeground2)",Bh="var(--colorPaletteSteelBackground2)",Ph="var(--colorPaletteSteelForeground2)",Ah="var(--colorPaletteTealBackground2)",Eh="var(--colorPaletteTealForeground2)",Os="var(--borderRadiusNone)",Gt="var(--borderRadiusSmall)",P="var(--borderRadiusMedium)",Dn="var(--borderRadiusLarge)",Rn="var(--borderRadiusXLarge)",mt="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",Nh="var(--fontFamilyMonospace)",Oh="var(--fontFamilyNumeric)",zo="var(--fontSizeBase100)",D="var(--fontSizeBase200)",O="var(--fontSizeBase300)",ht="var(--fontSizeBase400)",Ze="var(--fontSizeBase500)",Ci="var(--fontSizeBase600)",jn="var(--fontSizeHero700)",qn="var(--fontSizeHero800)",Gn="var(--fontSizeHero900)",Un="var(--fontSizeHero1000)",H="var(--fontWeightRegular)",Fh="var(--fontWeightMedium)",R="var(--fontWeightSemibold)",Ii="var(--fontWeightBold)",zi="var(--lineHeightBase100)",et="var(--lineHeightBase200)",V="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Ti="var(--lineHeightBase500)",Wn="var(--lineHeightBase600)",Xn="var(--lineHeightHero700)",Kn="var(--lineHeightHero800)",Yn="var(--lineHeightHero900)",Qn="var(--lineHeightHero1000)",Fs="var(--shadow2)",Bi="var(--shadow4)",_h="var(--shadow8)",Zn="var(--shadow16)",Mh="var(--shadow28)",Jn="var(--shadow64)",j="var(--strokeWidthThin)",Et="var(--strokeWidthThick)",nt="var(--strokeWidthThicker)",_s="var(--strokeWidthThickest)",ut="var(--spacingHorizontalXXS)",Nt="var(--spacingHorizontalXS)",wt="var(--spacingHorizontalSNudge)",re="var(--spacingHorizontalS)",pt="var(--spacingHorizontalMNudge)",$t="var(--spacingHorizontalM)",Lh="var(--spacingHorizontalL)",Hh="var(--spacingHorizontalXL)",Vh="var(--spacingHorizontalXXL)",To="var(--spacingVerticalXXS)",Pi="var(--spacingVerticalXS)",be="var(--spacingVerticalSNudge)",at="var(--spacingVerticalS)",Je="var(--spacingVerticalMNudge)",Dh="var(--spacingVerticalM)",Ai="var(--spacingVerticalL)",Bo="var(--spacingVerticalXXL)",ta="var(--durationUltraFast)",Ms="var(--durationFaster)",Ls="var(--durationNormal)",Hs="var(--durationGentle)",ea="var(--durationSlow)",oa="var(--durationSlower)",Ei="var(--durationUltraSlow)",Rh="var(--curveAccelerateMax)",to="var(--curveAccelerateMid)",jh="var(--curveAccelerateMin)",Vs="var(--curveDecelerateMax)",eo="var(--curveDecelerateMid)",qh="var(--curveDecelerateMin)",Gh="var(--curveEasyEaseMax)",Ni="var(--curveEasyEase)",Ds="var(--curveLinear)",Uh=p`
1
+ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let jo;const sr="fast-kernel";try{if(document.currentScript)jo=document.currentScript.getAttribute(sr);else{const o=document.getElementsByTagName("script");jo=o[o.length-1].getAttribute(sr)}}catch{jo="isolate"}let ye;switch(jo){case"share":ye=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ye=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ye=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Me=o=>typeof o=="function",Ht=o=>typeof o=="string",rr=()=>{};var Ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ji<"u")Ji.globalThis=Ji;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const nr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},nr));const st=globalThis.FAST;if(st.getById===void 0){const o=Object.create(null);Reflect.defineProperty(st,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},nr))}st.error===void 0&&Object.assign(st,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ba=Object.freeze([]);function ts(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function ar(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function ke(o){o.prototype.toJSON=rr}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),lr=o=>o,Pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:lr}):{createHTML:lr};let qo=Object.freeze({createHTML(o){return Pa.createHTML(o)},protect(o,t,e,i){return i}});const Aa=qo,xe=Object.freeze({get policy(){return qo},setPolicy(o){if(qo!==Aa)throw st.error(1201);qo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Bt=st.getById(ye.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(u){try{u.call()}catch(h){if(i)t.push(h),setTimeout(s,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let l=0,b=o.length-h;l<b;l++)o[l]=o[l+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class es{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);i!==-1&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.subject;if(e===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,t),r!==void 0&&r.handleChange(i,t)}else for(let s=0,r=e.length;s<r;++s)e[s].handleChange(i,t)}}class cr{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,i;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(i=this.subjectSubscribers)===null||i===void 0||i.notify(t)}subscribe(t,e){var i,s;let r;e?r=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new es(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new es(this.subject),r.subscribe(t)}unsubscribe(t,e){var i,s;e?(i=this.subscribers[e])===null||i===void 0||i.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const Go=Object.freeze({unknown:void 0,coupled:1}),$=st.getById(ye.observable,()=>{const o=Bt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=h=>{throw st.error(1101)};function r(h){var l;let b=(l=h.$fastController)!==null&&l!==void 0?l:e.get(h);return b===void 0&&(Array.isArray(h)?b=s(h):e.set(h,b=new cr(h))),b}const n=ar();class d{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,b){const w=this.field,gt=l[w];if(gt!==b){l[w]=b;const de=l[this.callback];Me(de)&&de.call(l,gt,b),r(l).notify(this.name)}}}class u extends es{constructor(l,b,w=!1){super(l,b),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const b=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),b}requiresUnbind(l){return l.sourceLifetime!==Go.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,b){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let gt;try{gt=this.expression(l,b)}finally{i=w}return gt}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,b){const w=this.last,gt=r(l),de=w===null?this.first:{};if(de.propertySource=l,de.propertyName=b,de.notifier=gt,gt.subscribe(this,b),w!==null){if(!this.needsRefresh){let ir;i=void 0,ir=w.propertySource[w.propertyName],i=this,l===ir&&(this.needsRefresh=!0)}w.next=de}this.last=de}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ke(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,l){i&&i.watch(h,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,l){r(h).notify(l)},defineProperty(h,l){Ht(l)&&(l=new d(l)),n(h).push(l),Reflect.defineProperty(h,l.name,{enumerable:!0,get(){return l.getValue(this)},set(b){l.setValue(this,b)}})},getAccessors:n,binding(h,l,b=this.isVolatileBinding(h)){return new u(h,l,b)},isVolatileBinding(h){return t.test(h.toString())}})});function k(o,t){$.defineProperty(o,t)}function Ea(o,t,e){return Object.assign({},e,{get(){return $.trackVolatile(),e.get.apply(this)}})}const dr=st.getById(ye.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Le=Object.freeze({default:{index:0,length:0,get event(){return Le.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return dr.get()},setEvent(o){dr.set(o)}});class Uo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Na extends Uo{createObserver(t){return $.binding(this.evaluate,t,this.isVolatile)}}function os(o,t,e=$.isVolatileBinding(o)){return new Na(o,t,e)}class hr extends Uo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ke(hr);function ur(o,t){return new hr(o,t)}let pr;function gr(o){return o.map(t=>t instanceof vt?gr(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class vt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof vt?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(pr),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(gr(this.styles)),this}static setDefaultStrategy(t){pr=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new vt(t):t instanceof vt?t:new vt([t])}}vt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const is=ts(),ss=Object.freeze({getForInstance:is.getForInstance,getByType:is.getByType,define(o){return is.register({type:o}),o}});function rs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ns{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const i=t.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>rs(h,u.controller,u.observer))}}const s=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){rs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){rs(this,e.controller,e)}}ss.define(ns);const Oa=`${Math.random().toString(36).substring(2,8)}`;let Fa=0;const br=()=>`--v${Oa}${++Fa}`;function fr(o,t){const e=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=t[n];Me(u)?u=new ns(os(u),br()).createCSS(r):u instanceof Uo?u=new ns(u,br()).createCSS(r):ss.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof vt||u instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=fr(o,t),s=new vt(e);return i.length?s.withBehaviors(...i):s};class mr{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(Ht(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new vt(i))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}ss.define(mr),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=fr(o,t);return new mr(e,i)};const $r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,vr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,yr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,kr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,xr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,wr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Sr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Vt=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,t){return`fe-b$$start$$${o}$$${t}$$fe-b`},contentBindingEndMarker(o,t){return`fe-b$$end$$${o}$$${t}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return $r.test(o)},isContentBindingEndMarker(o){return vr.test(o)},isRepeatViewStartMarker(o){return yr.test(o)},isRepeatViewEndMarker(o){return kr.test(o)},isElementBoundaryStartMarker(o){return Sr(o)&&xr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Sr(o)&&wr.test(o.data)},parseAttributeBinding(o){const t=o.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseContentBindingStartMarker(o){return zr($r,o)},parseContentBindingEndMarker(o){return zr(vr,o)},parseRepeatStartMarker(o){return Cr(yr,o)},parseRepeatEndMarker(o){return Cr(kr,o)},parseElementBoundaryStartMarker(o){return Ir(xr,o.trim())},parseElementBoundaryEndMarker(o){return Ir(wr,o)}});function Cr(o,t){const e=o.exec(t);return e===null?e:parseInt(e[1])}function Ir(o,t){const e=o.exec(t);return e===null?e:e[1]}function zr(o,t){const e=o.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Wo=Symbol.for("fe-hydration");function Xo(o){return o[Wo]===Wo}const as=`fast-${Math.random().toString(36).substring(2,8)}`,Ko=`${as}{`,ho=`}${as}`,_a=ho.length;let Ma=0;const uo=()=>`${as}-${++Ma}`,Tr=Object.freeze({interpolation:o=>`${Ko}${o}${ho}`,attribute:o=>`${uo()}="${Ko}${o}${ho}"`,comment:o=>`<!--${Ko}${o}${ho}-->`}),Yo=Object.freeze({parse(o,t){const e=o.split(Ko);if(e.length===1)return null;const i=[];for(let s=0,r=e.length;s<r;++s){const n=e[s],d=n.indexOf(ho);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(t[h]),u=n.substring(d+_a)}u!==""&&i.push(u)}return i}}),ls=ts(),Pt=Object.freeze({getForInstance:ls.getForInstance,getByType:ls.getByType,define(o,t){return t=t||{},t.type=o,ls.register(t),o},assignAspect(o,t){if(!t){o.aspectType=Q.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=t,o.aspectType=Q.attribute;break}}});class cs{constructor(t){this.options=t}createHTML(t){return Tr.attribute(t(this))}createBehavior(){return this}}ke(cs);class Br extends Error{constructor(t,e,i){super(t),this.factories=e,this.node=i}}function ds(o){return o.nodeType===Node.COMMENT_NODE}function Pr(o){return o.nodeType===Node.TEXT_NODE}function Ar(o,t){const e=document.createRange();return e.setStart(o,0),e.setEnd(t,ds(t)||Pr(t)?t.data.length:t.childNodes.length),e}function La(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,t,e){const i=Ar(o,t),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{Va(u,e,n);break}case Node.COMMENT_NODE:{Da(u,r,e,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function Va(o,t,e){const i=Vt.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!t[s])throw new Br(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,o);Qo(t[s],o,e)}o.removeAttribute(Vt.attributeMarkerName)}}function Da(o,t,e,i,s){if(Vt.isElementBoundaryStartMarker(o)){Ra(o,t);return}if(Vt.isContentBindingStartMarker(o.data)){const r=Vt.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=e[n],h=[];let l=t.nextSibling();o.data="";const b=l;for(;l!==null;){if(ds(l)){const w=Vt.parseContentBindingEndMarker(l.data);if(w&&w[1]===d)break}h.push(l),l=t.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${La(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",h.length===1&&Pr(h[0]))Qo(u,h[0],i);else{l!==b&&l.previousSibling!==null&&(s[u.targetNodeId]={first:b,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Qo(u,w,i)}}}function Ra(o,t){const e=Vt.parseElementBoundaryStartMarker(o.data);let i=t.nextSibling();for(;i!==null;){if(ds(i)){const s=Vt.parseElementBoundaryEndMarker(i.data);if(s&&s===e)break}i=t.nextSibling()}}function Qo(o,t,e){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[o.targetNodeId]=t}var Er;function hs(o,t){const e=o.parentNode;let i=o,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(i),i=s}e.removeChild(t)}class Nr{constructor(){this.index=0,this.length=0}get event(){return Le.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Zo extends Nr{constructor(t,e,i){super(),this.fragment=t,this.factories=e,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Go.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i=this.firstChild,s;for(;i!==e;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(e)}dispose(){hs(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let i=this.behaviors;if(i===null){this.source=t,this.context=e,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){hs(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}ke(Zo),$.defineProperty(Zo.prototype,"index"),$.defineProperty(Zo.prototype,"length");const He={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ja extends Error{constructor(t,e,i,s){super(t),this.factory=e,this.fragment=i,this.templateString=s}}class qa extends Nr{constructor(t,e,i,s){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=i,this.hostBindingTarget=s,this[Er]=Wo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Go.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=He.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let i=this.firstChild,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(i),i=s}t.appendChild(e)}bind(t,e=this){var i,s;if(this.hydrationStage!==He.hydrated&&(this._hydrationStage=He.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:d,boundaries:u}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Br){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Qo(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const l=h.createBehavior();l.bind(this),r[d]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ja(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Ar(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=He.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){hs(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}}Er=Wo,ke(qa);function Ga(o){return o.create!==void 0}function Ua(o,t,e,i){if(e==null&&(e=""),Ga(e)){o.textContent="";let s=o.$fastView;if(s===void 0)if(Xo(i)&&Xo(e)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==He.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=e.hydrate(r.first,r.last)}else s=e.create();else o.$fastTemplate!==e&&(s.isComposed&&(s.remove(),s.unbind()),s=e.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=e)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=e}}function Wa(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[t];if(e!=null&&e.length){const h=e.split(/\s+/);for(let l=0,b=h.length;l<b;++l){const w=h[l];w!==""&&(n[w]=d,u.add(w))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const Xa={[Q.attribute]:xe.setAttribute,[Q.booleanAttribute]:xe.setBooleanAttribute,[Q.property]:(o,t,e)=>o[t]=e,[Q.content]:Ua,[Q.tokenList]:Wa,[Q.event]:()=>{}};class Ve{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=Q.content}createHTML(t){return Tr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Xa[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw st.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId],s=Xo(t)&&t.hydrationStage&&t.hydrationStage!==He.hydrated;switch(this.aspectType){case Q.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:t.onUnbind(this);default:const r=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=t,s&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){r.bind(t);break}this.updateTarget(i,this.targetAspect,r.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Le.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Le.setEvent(null),i!==!0&&t.preventDefault()}}handleChange(t,e){const i=e.target,s=e.controller;this.updateTarget(i,this.targetAspect,e.bind(s),s)}}Pt.define(Ve,{aspected:!0});const Or=(o,t)=>`${o}.${t}`,Fr={},Dt={index:0,node:null};function _r(o){o.startsWith("fast-")||st.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,t){_r(t);const e=Reflect.get(o,t);return Me(e)?e.bind(o):e},set(o,t,e){return _r(t),Reflect.set(o,t,e)}});class Ya{constructor(t,e,i){this.fragment=t,this.directives=e,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,i,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(n=t.id)!==null&&n!==void 0?n:uo(),t.targetNodeId=i,t.targetTagName=r,t.policy=(d=t.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,i){const s=this.descriptors;if(e==="r"||e==="h"||s[e])return;if(!s[t]){const n=t.lastIndexOf("."),d=t.substring(0,n),u=parseInt(t.substring(n+1));this.addTargetDescriptor(d,t,u)}let r=Fr[e];if(!r){const n=`_${e}`;Fr[e]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[t].childNodes[i]}}}s[e]=r}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??Ka;for(const s of this.nodeIds)i[s];return new Zo(e,this.factories,i)}}function Mr(o,t,e,i,s,r=!1){const n=e.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const l=n[u],b=l.value,w=Yo.parse(b,d);let gt=null;w===null?r&&(gt=new Ve(ur(()=>b,o.policy)),Pt.assignAspect(gt,l.name)):gt=us.aggregate(w,o.policy),gt!==null&&(e.removeAttributeNode(l),u--,h--,o.addFactory(gt,t,i,s,e.tagName))}}function Qa(o,t,e,i,s){const r=Yo.parse(t.textContent,o.directives);if(r===null)return Dt.node=t.nextSibling,Dt.index=s+1,Dt;let n,d=n=t;for(let u=0,h=r.length;u<h;++u){const l=r[u];u!==0&&(s++,i=Or(e,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Ht(l)?n.textContent=l:(n.textContent=" ",Pt.assignAspect(l),o.addFactory(l,e,i,s,null)),d=n}return Dt.index=s+1,Dt.node=d.nextSibling,Dt}function Lr(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=Za(o,e,s,i);s=r.node,i=r.index}}function Za(o,t,e,i){const s=Or(t,i);switch(e.nodeType){case 1:Mr(o,t,e,s,i),Lr(o,e,s);break;case 3:return Qa(o,e,t,s,i);case 8:const r=Yo.parse(e.data,o.directives);r!==null&&o.addFactory(us.aggregate(r),t,s,i,null);break}return Dt.index=i+1,Dt.node=e.nextSibling,Dt}function Ja(o,t){return o&&o.nodeType==8&&Yo.parse(o.data,t)!==null}const Hr="TEMPLATE",us={compile(o,t,e=xe.policy){let i;if(Ht(o)){i=document.createElement(Hr),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hr&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new Ya(s,t,e);return Mr(r,"",i,"h",0,!0),(Ja(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Lr(r,s,"r"),Dt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=xe.policy){if(o.length===1)return o[0];let e,i=!1,s;const r=o.length,n=o.map(h=>Ht(h)?()=>h:(e=h.sourceAspect||e,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,l)=>{let b="";for(let w=0;w<r;++w)b+=n[w](h,l);return b},u=new Ve(os(d,s??t,i));return Pt.assignAspect(u,e),u}},tl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,el=Object.create(null);class we{constructor(t,e=el){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}we.empty=new we(""),Pt.define(we);function ol(o,t,e,i=Pt.getForInstance(o)){if(i.aspected){const s=tl.exec(t);s!==null&&Pt.assignAspect(o,s[2])}return o.createHTML(e)}class Yi{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=us.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new we(Ht(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw st.error(1208);if(this.policy)throw st.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=uo();return r[h]=d,h};for(let d=0,u=t.length-1;d<u;++d){const h=t[d];let l=e[d],b;if(s+=h,Me(l))l=new Ve(os(l));else if(l instanceof Uo)l=new Ve(l);else if(!(b=Pt.getForInstance(l))){const w=l;l=new Ve(ur(()=>w))}s+=ol(l,h,n,b)}return new Yi(s+t[t.length-1],r,i)}}ke(Yi);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Yi.create(o,t);throw st.error(1206)};f.partial=o=>new we(o);class Vr extends cs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Pt.define(Vr);const yt=o=>new Vr(o),il=o=>o.nodeType===1,De=o=>o?t=>t.nodeType===1&&t.matches(o):il;class Dr extends cs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,Ba),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Rr="slotchange";class jr extends Dr{observe(t){t.addEventListener(Rr,this)}disconnect(t){t.removeEventListener(Rr,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}Pt.define(jr);function rt(o){return Ht(o)&&(o={property:o}),new jr(o)}class qr extends Dr{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=rr,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}Pt.define(qr);function sl(o){return Ht(o)&&(o={property:o}),new qr(o)}const Gr="boolean",Ur="reflect",Jo=Object.freeze({locate:ar()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Wr(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const Z={toView(o){const t=Wr(o);return t&&t.toString()},fromView:Wr};class Qi{constructor(t,e,i=e.toLowerCase(),s=Ur,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Gr&&r===void 0&&(this.converter=rl)}setValue(t,e){const i=t[this.fieldName],s=this.converter;s!==void 0&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return $.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||e==="fromView"||Bt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Ur:const r=this.converter;xe.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Gr:xe.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Jo.locate(t));for(let s=0,r=e.length;s<r;++s){const n=e[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Ht(h)?i.push(new Qi(t,h)):i.push(new Qi(t,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,t){let e;function i(s,r){arguments.length>1&&(e.property=r),Jo.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Xr={mode:"open"},Kr={},Yr=new Set,ti=st.getById(ye.elementRegistry,()=>ts());class Lt{constructor(t,e=t.definition){var i;this.platformDefined=!1,Ht(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(i=e.registry)!==null&&i!==void 0?i:customElements;const s=t.prototype,r=Qi.collect(t,e.attributes),n=new Array(r.length),d={},u={};for(let h=0,l=r.length;h<l;++h){const b=r[h];n[h]=b.attribute,d[b.name]=b,u[b.attribute]=b,$.defineProperty(s,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=e.shadowOptions===void 0?Xr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Xr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Kr:Object.assign(Object.assign({},Kr),e.elementOptions),this.styles=vt.normalize(e.styles),ti.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Yr.has(t)||ti.getByType(t)?new Lt(class extends t{},e):new Lt(t,e)}static registerBaseType(t){Yr.add(t)}}Lt.getByType=ti.getByType,Lt.getForInstance=ti.getForInstance;class nl extends MutationObserver{constructor(t){function e(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const t=[],e={};let i=null,s=!1;return{source:o,context:Le.default,targets:e,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,l;const b=r;b.id=(d=b.id)!==null&&d!==void 0?d:uo(),b.targetNodeId=(u=b.targetNodeId)!==null&&u!==void 0?u:uo(),b.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,b.policy=(l=b.policy)!==null&&l!==void 0?l:xe.policy,this.addTarget(b.targetNodeId,n),this.addBehavior(b.createBehavior())},addTarget(r,n){e[r]=n},addBehavior(r){t.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,t.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const al={bubbles:!0,composed:!0,cancelable:!0},ei="isConnected",Qr=new WeakMap;function po(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Qr.get(o))!==null&&e!==void 0?e:null}let Zr;class Re extends cr{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const i=e.shadowOptions;if(i!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(i),i.mode==="closed"&&Qr.set(t,r))}const s=$.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=t[u];h!==void 0&&(delete t[u],r[u]=h)}}}get isConnected(){return $.track(this,ei),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Le.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,i;const s=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(i=s.get(t))!==null&&i!==void 0?i:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,e=!1){const i=this.behaviors;if(i===null)return;const s=i.get(t);s!==void 0&&(s===1||e?(i.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):i.set(t,s-1))}addStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=po(i))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(i)){const s=t.behaviors;if(t.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=po(i))!==null&&e!==void 0?e:i).removeChild(t);else if(t.isAttachedTo(i)){const s=t.behaviors;if(t.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,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=1,$.notify(this,ei))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,i=Object.keys(e);for(let s=0,r=i.length;s<r;++s){const n=i[s];t[n]=e[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,$.notify(this,ei),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(t,e,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},al),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=po(i))!==null&&e!==void 0?e:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=Go.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=Lt.getForInstance(t);if(i===void 0)throw st.error(1401);return t.$fastController=new Zr(t,i)}static setStrategy(t){Zr=t}}ke(Re),Re.setStrategy(Re);function oi(o){var t;return"adoptedStyleSheets"in o?o:(t=po(o))!==null&&t!==void 0?t:o.getRootNode()}class Zi{constructor(t){const e=Zi.styleSheetCache;this.sheets=t.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=e.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),e.set(i,s)),s})}addStylesTo(t){tn(oi(t),this.sheets)}removeStylesFrom(t){en(oi(t),this.sheets)}}Zi.styleSheetCache=new Map;let ll=0;const cl=()=>`fast-${++ll}`;function Jr(o){return o===document?document.body:o}class dl{constructor(t){this.styles=t,this.styleClass=cl()}addStylesTo(t){t=Jr(oi(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const r=document.createElement("style");r.innerHTML=e[s],r.className=i,t.append(r)}}removeStylesFrom(t){t=Jr(oi(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let tn=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},en=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(vt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),tn=(o,t)=>{o.adoptedStyleSheets.push(...t)},en=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}vt.setDefaultStrategy(Zi)}else vt.setDefaultStrategy(dl);const on="defer-hydration",sn="needs-hydration";class _e extends Re{static hydrationObserverHandler(t){for(const e of t)_e.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(sn)!==null),this.source.hasAttribute(on)){_e.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(t=po(i))!==null&&t!==void 0?t:i;if(this.template)if(Xo(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Vt.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Vt.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(sn),this.needsInitialization=this.needsHydration=!1,$.notify(this,ei)}disconnect(){super.disconnect(),_e.hydrationObserver.unobserve(this.source)}static install(){Re.setStrategy(_e)}}_e.hydrationObserver=new nl(_e.hydrationObserverHandler);function rn(o){const t=class extends o{constructor(){super(),Re.forCustomElement(this)}$emit(e,i,s){return this.$fastController.emit(e,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,i,s){this.$fastController.onAttributeChangedCallback(e,i,s)}};return Lt.registerBaseType(t),t}function hl(o,t){return Me(o)?Lt.compose(o,t):Lt.compose(this,o)}function ul(o,t){return Me(o)?Lt.compose(o,t).define().type:Lt.compose(this,o).define().type}function pl(o){return rn(o)}const S=Object.assign(rn(HTMLElement),{from:pl,define:ul,compose:hl}),bt={horizontal:"horizontal",vertical:"vertical"};function gl(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function nn(...o){return o.every(t=>t instanceof HTMLElement)}const ii="ArrowDown",si="ArrowLeft",ri="ArrowRight",ni="ArrowUp",ai="End",li="Enter",bl="Escape",ci="Home",ps=" ",fl="Tab";var At;(function(o){o.ltr="ltr",o.rtl="rtl"})(At||(At={}));function ml(o,t,e){return e<o?t:e>t?o:e}function gs(o,t,e){return Math.min(Math.max(e,o),t)}let $l=0;function je(o=""){return`${o}${$l++}`}var vl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,q=(o,t,e,i)=>{for(var s=i>1?void 0:i?yl(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&vl(t,e,s),s};class G{}q([a({attribute:"aria-atomic"})],G.prototype,"ariaAtomic",2),q([a({attribute:"aria-busy"})],G.prototype,"ariaBusy",2),q([a({attribute:"aria-controls"})],G.prototype,"ariaControls",2),q([a({attribute:"aria-current"})],G.prototype,"ariaCurrent",2),q([a({attribute:"aria-describedby"})],G.prototype,"ariaDescribedby",2),q([a({attribute:"aria-details"})],G.prototype,"ariaDetails",2),q([a({attribute:"aria-disabled"})],G.prototype,"ariaDisabled",2),q([a({attribute:"aria-errormessage"})],G.prototype,"ariaErrormessage",2),q([a({attribute:"aria-flowto"})],G.prototype,"ariaFlowto",2),q([a({attribute:"aria-haspopup"})],G.prototype,"ariaHaspopup",2),q([a({attribute:"aria-hidden"})],G.prototype,"ariaHidden",2),q([a({attribute:"aria-invalid"})],G.prototype,"ariaInvalid",2),q([a({attribute:"aria-keyshortcuts"})],G.prototype,"ariaKeyshortcuts",2),q([a({attribute:"aria-label"})],G.prototype,"ariaLabel",2),q([a({attribute:"aria-labelledby"})],G.prototype,"ariaLabelledby",2),q([a({attribute:"aria-live"})],G.prototype,"ariaLive",2),q([a({attribute:"aria-owns"})],G.prototype,"ariaOwns",2),q([a({attribute:"aria-relevant"})],G.prototype,"ariaRelevant",2),q([a({attribute:"aria-roledescription"})],G.prototype,"ariaRoledescription",2);const bs={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},fs=o=>o.closest("[dir]")?.dir==="rtl"?At.rtl:At.ltr;function kt(o){return o?typeof o=="string"?new we(o):"inline"in o?o.inline():o:we.empty}const ms=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,kl=":host([hidden]){display:none}";function z(o){return`${kl}:host{display:${o}}`}class xl{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let i=this.listenerCache.get(t);i||(i=this.constructListener(t),this.listenerCache.set(t,i)),i.bind(e)(),e.addEventListener("change",i)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class Ro extends xl{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Ro(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(i),e=r):!r&&e&&(t.removeStyles(i),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const J=Ro.with(window.matchMedia("(forced-colors)"));Ro.with(window.matchMedia("(prefers-color-scheme: dark)")),Ro.with(window.matchMedia("(prefers-color-scheme: light)"));class Yt{}function he(o){return f`<slot name="end" ${yt("end")}>${kt(o.end)}</slot>`.inline()}function Qt(o){return f`<slot name="start" ${yt("start")}>${kt(o.start)}</slot>`.inline()}function Zt(o,...t){const e=Jo.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Jo.locate(i).forEach(r=>e.push(r))})}const an=CSS.supports("selector(:state(g))"),ln=new Map;function c(o){return ln.get(o)??ln.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,t,e){if(t){if(!an){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}}const $s=new WeakMap;function vs(o,t){if(!o||!t)return!1;if($s.has(o))return $s.get(o).has(t);const e=new Set(Object.values(o));return $s.set(o,e),e.has(t)}function m(o,t="",e="",i,s=""){v(o,`${s}${t}`,!1),(!i||vs(i,e))&&v(o,`${s}${e}`,!0)}const wl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Sl={start:"start",end:"end"};var Cl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,Se=(o,t,e,i)=>{for(var s=i>1?void 0:i?Il(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Cl(t,e,s),s};class Jt extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=je("accordion-")}expandedChanged(t,e){v(this.elementInternals,"expanded",e)}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}}Se([a({attribute:"heading-level",mode:"fromView",converter:Z})],Jt.prototype,"headinglevel",2),Se([a({mode:"boolean"})],Jt.prototype,"expanded",2),Se([a({mode:"boolean"})],Jt.prototype,"disabled",2),Se([a],Jt.prototype,"id",2);class go extends Jt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){m(this.elementInternals,t,e,wl)}markerPositionChanged(t,e){m(this.elementInternals,t,e,Sl,"align-")}blockChanged(t,e){v(this.elementInternals,"block",e)}}Se([a],go.prototype,"size",2),Se([a({attribute:"marker-position"})],go.prototype,"markerPosition",2),Se([a({mode:"boolean"})],go.prototype,"block",2),Zt(go,Yt);const te=c("align-end"),cn=c("align-start"),zl=c("anchor"),dn=c("auto-resize"),Tl=c("bad-input"),Bl=c("beige"),bo=c("block"),Pl=c("blue"),Al=c("bold"),El=c("bordered"),Rt=c("brand"),Nl=c("brass"),Ol=c("brown"),Fl=c("center"),x=c("checked"),fo=c("circular"),_l=c("cornflower"),Ml=c("cranberry"),Ll=c("custom-error"),di=c("danger"),Hl=c("dark-green"),Vl=c("dark-red"),N=c("disabled"),hn=c("display-shadow"),un=c("dot"),Dl=c("end"),ys=c("error"),Ce=c("expanded"),hi=c("extra-large"),mo=c("extra-small"),qe=c("filled-darker"),Ge=c("filled-lighter"),Rl=c("fit-center"),jl=c("fit-contain"),ql=c("fit-cover"),Gl=c("fit-none"),Ul=c("focus-visible"),Wl=c("forest"),ee=c("ghost"),Xl=c("gold"),Kl=c("grape"),Yl=c("has-message"),Ql=c("huge"),ue=c("icon"),ui=c("important"),Ie=c("indeterminate"),pi=c("informative"),Zl=c("inline"),ks=c("inset"),pn=c("inverted"),Jl=c("italic"),tc=c("justify"),C=c("large"),ec=c("lavender"),oc=c("light-teal"),ic=c("lilac"),sc=c("magenta"),rc=c("marigold"),nc=c("medium"),ac=c("mink"),lc=c("monospace"),$o=c("multiline"),cc=c("navy"),gi=c("neutral"),gn=c("nowrap"),dc=c("numeric"),X=c("outline"),hc=c("pattern-mismatch"),uc=c("peach"),pc=c("pink"),gc=c("platinum"),bc=c("plum"),F=c("pressed"),ct=c("primary"),fc=c("pumpkin"),mc=c("purple"),$c=c("range-overflow"),vc=c("range-underflow"),yc=c("red"),kc=c("resize-both"),xc=c("resize-horizontal"),wc=c("resize-vertical"),oe=c("rounded"),Sc=c("royal-blue"),Cc=c("seafoam"),bn=c("semibold"),bi=c("severe"),Ic=c("shadow"),zc=c("size-1000"),Tc=c("size-100"),Bc=c("size-200"),Pc=c("size-400"),Ac=c("size-500"),Ec=c("size-600"),Nc=c("size-700"),Oc=c("size-800"),Fc=c("size-900"),B=c("small"),vo=c("square"),_c=c("steel"),Mc=c("step-mismatch"),fn=c("strikethrough"),yo=c("strong"),fi=c("submenu"),T=c("subtle"),ze=c("success"),Lc=c("teal"),pe=c("tint"),ko=c("tiny"),Hc=c("too-long"),Vc=c("too-short"),tt=c("transparent"),mn=c("truncate"),Dc=c("type-mismatch"),Te=c("underline"),Rc=c("user-invalid"),jc=c("valid"),qc=c("value-missing"),I=c("vertical"),Be=c("warning"),A="var(--colorNeutralForeground1)",xs="var(--colorNeutralForeground1Hover)",Gc="var(--colorNeutralForeground1Pressed)",jt="var(--colorNeutralForeground2)",mi="var(--colorNeutralForeground2Hover)",$i="var(--colorNeutralForeground2Pressed)",Uc="var(--colorNeutralForeground2Selected)",vi="var(--colorNeutralForeground2BrandHover)",yi="var(--colorNeutralForeground2BrandPressed)",Wc="var(--colorNeutralForeground2BrandSelected)",ft="var(--colorNeutralForeground3)",Xc="var(--colorNeutralForeground3Hover)",Kc="var(--colorNeutralForeground3Pressed)",$n="var(--colorNeutralForeground4)",E="var(--colorNeutralForegroundDisabled)",Yc="var(--colorBrandForegroundLink)",Qc="var(--colorBrandForegroundLinkHover)",Zc="var(--colorBrandForegroundLinkPressed)",Jc="var(--colorNeutralForeground2Link)",td="var(--colorNeutralForeground2LinkHover)",ed="var(--colorNeutralForeground2LinkPressed)",vn="var(--colorCompoundBrandForeground1Hover)",od="var(--colorCompoundBrandForeground1Pressed)",ie="var(--colorNeutralForegroundOnBrand)",Ue="var(--colorNeutralForegroundInverted)",id="var(--colorNeutralForegroundInvertedHover)",sd="var(--colorNeutralForegroundInvertedPressed)",yn="var(--colorNeutralForegroundStaticInverted)",ws="var(--colorBrandForeground1)",rd="var(--colorBrandForeground2)",nd="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",Ss="var(--colorNeutralBackground1Hover)",Cs="var(--colorNeutralBackground1Pressed)",kn="var(--colorNeutralBackground1Selected)",ki="var(--colorNeutralBackground3)",ad="var(--colorNeutralBackground4)",ld="var(--colorNeutralBackground5)",xi="var(--colorNeutralBackground6)",xn="var(--colorNeutralBackgroundInverted)",cd="var(--colorSubtleBackground)",wi="var(--colorSubtleBackgroundHover)",We="var(--colorSubtleBackgroundPressed)",dd="var(--colorSubtleBackgroundSelected)",St="var(--colorTransparentBackground)",Is="var(--colorTransparentBackgroundHover)",zs="var(--colorTransparentBackgroundPressed)",hd="var(--colorTransparentBackgroundSelected)",Xe="var(--colorNeutralBackgroundDisabled)",Ts="var(--colorBackgroundOverlay)",Bs="var(--colorBrandBackground)",wn="var(--colorBrandBackgroundHover)",Sn="var(--colorBrandBackgroundPressed)",ud="var(--colorBrandBackgroundSelected)",Ke="var(--colorCompoundBrandBackground)",xo="var(--colorCompoundBrandBackgroundHover)",wo="var(--colorCompoundBrandBackgroundPressed)",Cn="var(--colorBrandBackgroundStatic)",pd="var(--colorBrandBackground2)",ge="var(--colorNeutralStrokeAccessible)",Ye="var(--colorNeutralStrokeAccessibleHover)",Qe="var(--colorNeutralStrokeAccessiblePressed)",se="var(--colorNeutralStroke1)",So="var(--colorNeutralStroke1Hover)",Si="var(--colorNeutralStroke1Pressed)",Co="var(--colorNeutralStroke2)",gd="var(--colorNeutralStroke3)",bd="var(--colorNeutralStrokeOnBrand2)",In="var(--colorBrandStroke1)",Ps="var(--colorBrandStroke2)",Io="var(--colorCompoundBrandStroke)",fd="var(--colorCompoundBrandStrokeHover)",zn="var(--colorCompoundBrandStrokePressed)",Et="var(--colorNeutralStrokeDisabled)",dt="var(--colorTransparentStroke)",Tn="var(--colorTransparentStrokeInteractive)",As="var(--colorStrokeFocus1)",qt="var(--colorStrokeFocus2)",md="var(--colorNeutralShadowAmbient)",$d="var(--colorNeutralShadowKey)",Bn="var(--colorPaletteRedBackground1)",vd="var(--colorPaletteRedBackground2)",Pn="var(--colorPaletteRedBackground3)",An="var(--colorPaletteRedBorder1)",Es="var(--colorPaletteRedBorder2)",En="var(--colorPaletteRedForeground1)",yd="var(--colorPaletteRedForeground2)",Nn="var(--colorPaletteRedForeground3)",On="var(--colorPaletteGreenBackground1)",Fn="var(--colorPaletteGreenBackground3)",kd="var(--colorPaletteGreenBorder1)",xd="var(--colorPaletteGreenBorder2)",wd="var(--colorPaletteGreenForeground1)",Sd="var(--colorPaletteGreenForeground2)",Cd="var(--colorPaletteGreenForeground3)",_n="var(--colorPaletteDarkOrangeBackground1)",Mn="var(--colorPaletteDarkOrangeBackground3)",Ln="var(--colorPaletteDarkOrangeBorder1)",Id="var(--colorPaletteDarkOrangeForeground1)",Hn="var(--colorPaletteDarkOrangeForeground3)",zd="var(--colorPaletteYellowBackground1)",Td="var(--colorPaletteYellowBackground3)",Bd="var(--colorPaletteYellowBorder1)",Ns="var(--colorPaletteYellowForeground2)",Vn="var(--colorPaletteMarigoldBackground2)",Pd="var(--colorPaletteMarigoldBackground3)",Ad="var(--colorPaletteMarigoldForeground2)",Ed="var(--colorPaletteAnchorBackground2)",Nd="var(--colorPaletteAnchorForeground2)",Od="var(--colorPaletteBeigeBackground2)",Fd="var(--colorPaletteBeigeForeground2)",_d="var(--colorPaletteBlueBackground2)",Md="var(--colorPaletteBlueForeground2)",Ld="var(--colorPaletteBrassBackground2)",Hd="var(--colorPaletteBrassForeground2)",Vd="var(--colorPaletteBrownBackground2)",Dd="var(--colorPaletteBrownForeground2)",Rd="var(--colorPaletteCornflowerBackground2)",jd="var(--colorPaletteCornflowerForeground2)",qd="var(--colorPaletteCranberryBackground2)",Gd="var(--colorPaletteCranberryForeground2)",Ud="var(--colorPaletteDarkGreenBackground2)",Wd="var(--colorPaletteDarkGreenForeground2)",Xd="var(--colorPaletteDarkRedBackground2)",Kd="var(--colorPaletteDarkRedForeground2)",Yd="var(--colorPaletteForestBackground2)",Qd="var(--colorPaletteForestForeground2)",Zd="var(--colorPaletteGoldBackground2)",Jd="var(--colorPaletteGoldForeground2)",th="var(--colorPaletteGrapeBackground2)",eh="var(--colorPaletteGrapeForeground2)",oh="var(--colorPaletteLavenderBackground2)",ih="var(--colorPaletteLavenderForeground2)",sh="var(--colorPaletteLightTealBackground2)",rh="var(--colorPaletteLightTealForeground2)",nh="var(--colorPaletteLilacBackground2)",ah="var(--colorPaletteLilacForeground2)",lh="var(--colorPaletteMagentaBackground2)",ch="var(--colorPaletteMagentaForeground2)",dh="var(--colorPaletteMinkBackground2)",hh="var(--colorPaletteMinkForeground2)",uh="var(--colorPaletteNavyBackground2)",ph="var(--colorPaletteNavyForeground2)",gh="var(--colorPalettePeachBackground2)",bh="var(--colorPalettePeachForeground2)",fh="var(--colorPalettePinkBackground2)",mh="var(--colorPalettePinkForeground2)",$h="var(--colorPalettePlatinumBackground2)",vh="var(--colorPalettePlatinumForeground2)",yh="var(--colorPalettePlumBackground2)",kh="var(--colorPalettePlumForeground2)",xh="var(--colorPalettePumpkinBackground2)",wh="var(--colorPalettePumpkinForeground2)",Sh="var(--colorPalettePurpleBackground2)",Ch="var(--colorPalettePurpleForeground2)",Ih="var(--colorPaletteRoyalBlueBackground2)",zh="var(--colorPaletteRoyalBlueForeground2)",Th="var(--colorPaletteSeafoamBackground2)",Bh="var(--colorPaletteSeafoamForeground2)",Ph="var(--colorPaletteSteelBackground2)",Ah="var(--colorPaletteSteelForeground2)",Eh="var(--colorPaletteTealBackground2)",Nh="var(--colorPaletteTealForeground2)",Os="var(--borderRadiusNone)",Gt="var(--borderRadiusSmall)",P="var(--borderRadiusMedium)",Dn="var(--borderRadiusLarge)",Rn="var(--borderRadiusXLarge)",mt="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",Oh="var(--fontFamilyMonospace)",Fh="var(--fontFamilyNumeric)",zo="var(--fontSizeBase100)",D="var(--fontSizeBase200)",O="var(--fontSizeBase300)",ht="var(--fontSizeBase400)",Ze="var(--fontSizeBase500)",Ci="var(--fontSizeBase600)",jn="var(--fontSizeHero700)",qn="var(--fontSizeHero800)",Gn="var(--fontSizeHero900)",Un="var(--fontSizeHero1000)",H="var(--fontWeightRegular)",_h="var(--fontWeightMedium)",R="var(--fontWeightSemibold)",Ii="var(--fontWeightBold)",zi="var(--lineHeightBase100)",et="var(--lineHeightBase200)",V="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Ti="var(--lineHeightBase500)",Wn="var(--lineHeightBase600)",Xn="var(--lineHeightHero700)",Kn="var(--lineHeightHero800)",Yn="var(--lineHeightHero900)",Qn="var(--lineHeightHero1000)",Fs="var(--shadow2)",Bi="var(--shadow4)",Mh="var(--shadow8)",Zn="var(--shadow16)",Lh="var(--shadow28)",Jn="var(--shadow64)",j="var(--strokeWidthThin)",Nt="var(--strokeWidthThick)",nt="var(--strokeWidthThicker)",_s="var(--strokeWidthThickest)",ut="var(--spacingHorizontalXXS)",Ot="var(--spacingHorizontalXS)",wt="var(--spacingHorizontalSNudge)",re="var(--spacingHorizontalS)",pt="var(--spacingHorizontalMNudge)",$t="var(--spacingHorizontalM)",Hh="var(--spacingHorizontalL)",Vh="var(--spacingHorizontalXL)",Dh="var(--spacingHorizontalXXL)",To="var(--spacingVerticalXXS)",Pi="var(--spacingVerticalXS)",be="var(--spacingVerticalSNudge)",at="var(--spacingVerticalS)",Je="var(--spacingVerticalMNudge)",Rh="var(--spacingVerticalM)",Ai="var(--spacingVerticalL)",Bo="var(--spacingVerticalXXL)",ta="var(--durationUltraFast)",Ms="var(--durationFaster)",Ls="var(--durationNormal)",Hs="var(--durationGentle)",ea="var(--durationSlow)",oa="var(--durationSlower)",Ei="var(--durationUltraSlow)",jh="var(--curveAccelerateMax)",to="var(--curveAccelerateMid)",qh="var(--curveAccelerateMin)",Vs="var(--curveDecelerateMax)",eo="var(--curveDecelerateMid)",Gh="var(--curveDecelerateMin)",Uh="var(--curveEasyEaseMax)",Ni="var(--curveEasyEase)",Ds="var(--curveLinear)",Wh=p`
2
2
  ${z("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${$t} ${pt};border-radius:${P};font-family:${y};font-size:${O};font-weight:${H};line-height:${V};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${St};border:none;box-sizing:border-box;color:${A};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:${Gt}}: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:${re};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${$t}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${re};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Gt};outline:none;border:2px solid ${As};box-shadow:inset 0 0 0 1px ${qt}}:host(${N}) .button{color:${E}}:host(${N}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${Ce}) .content{display:block}:host(${Ce}) .default-marker-collapsed,:host(${Ce}) ::slotted([slot='marker-collapsed']),:host(:not(${Ce})) :is(.default-marker-expanded,.content),:host(:not(${Ce})) ::slotted([slot='marker-expanded']){display:none}:host(${Ce}) ::slotted([slot='marker-expanded']),:host(:not(${Ce})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${O};line-height:${V}}:host(${B}) .heading{font-size:${D};line-height:${et}}:host(${C}) .heading{font-size:${ht};line-height:${xt}}:host(${hi}) .heading{font-size:${Ze};line-height:${Ti}}:host(${te}) :slotted([slot='start']){grid-column:1 / span 1}:host(${te}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${re};padding-inline-end:0}:host(${te}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${te}) .heading{grid-template-columns:auto auto 28px;padding-inline:${$t}}:host(${te}:has([slot='start'])) .heading{padding-inline:${pt} ${$t}}:host(${bo}${te}) .heading{grid-template-columns:auto 1fr}:host(${te}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Wh=f.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${$t} ${pt};border-radius:${P};font-family:${y};font-size:${O};font-weight:${H};line-height:${V};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${St};border:none;box-sizing:border-box;color:${A};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:${Gt}}: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:${re};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${$t}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${re};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Gt};outline:none;border:2px solid ${As};box-shadow:inset 0 0 0 1px ${qt}}:host(${N}) .button{color:${E}}:host(${N}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${Ce}) .content{display:block}:host(${Ce}) .default-marker-collapsed,:host(${Ce}) ::slotted([slot='marker-collapsed']),:host(:not(${Ce})) :is(.default-marker-expanded,.content),:host(:not(${Ce})) ::slotted([slot='marker-expanded']){display:none}:host(${Ce}) ::slotted([slot='marker-expanded']),:host(:not(${Ce})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${O};line-height:${V}}:host(${B}) .heading{font-size:${D};line-height:${et}}:host(${C}) .heading{font-size:${ht};line-height:${xt}}:host(${hi}) .heading{font-size:${Ze};line-height:${Ti}}:host(${te}) :slotted([slot='start']){grid-column:1 / span 1}:host(${te}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${re};padding-inline-end:0}:host(${te}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${te}) .heading{grid-template-columns:auto auto 28px;padding-inline:${$t}}:host(${te}:has([slot='start'])) .heading{padding-inline:${pt} ${$t}}:host(${bo}${te}) .heading{grid-template-columns:auto 1fr}:host(${te}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Xh=f.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -14,7 +14,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
14
14
  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"
15
15
  fill="currentColor"
16
16
  />
17
- </svg>`),Xh=f.partial(`<svg
17
+ </svg>`),Kh=f.partial(`<svg
18
18
  width="20"
19
19
  height="20"
20
20
  viewBox="0 0 20 20"
@@ -27,22 +27,22 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
27
27
  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"
28
28
  fill="currentColor"
29
29
  />
30
- </svg>`);function Kh(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${yt("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${Qt(o)}<slot name="marker-expanded">${kt(o.expandedIcon)}</slot><slot name="marker-collapsed">${kt(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const Yh=Kh({collapsedIcon:Wh,expandedIcon:Xh}),Qh=go.compose({name:`${g.prefix}-accordion-item`,template:Yh,styles:Uh});Qh.define(g.registry);const Rs={single:"single",multi:"multi"};var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,ia=(o,t,e,i)=>{for(var s=i>1?void 0:i?Jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Zh(t,e,s),s};class js extends S{constructor(){super(...arguments),this.expandmode=Rs.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>$.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,i)=>{e instanceof Jt&&(e.addEventListener("click",this.expandedChangedHandler),$.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,i)=>{$.getNotifier(e).unsubscribe(this,"disabled"),$.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof Jt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(e===Rs.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof Jt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Rs.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((i,s)=>{i instanceof Jt&&(this.activeItemIndex===s?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}ia([a({attribute:"expand-mode"})],js.prototype,"expandmode",2),ia([k],js.prototype,"slottedAccordionItems",2);const tu=p`
30
+ </svg>`);function Yh(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${yt("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${Qt(o)}<slot name="marker-expanded">${kt(o.expandedIcon)}</slot><slot name="marker-collapsed">${kt(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const Qh=Yh({collapsedIcon:Xh,expandedIcon:Kh}),Zh=go.compose({name:`${g.prefix}-accordion-item`,template:Qh,styles:Wh});Zh.define(g.registry);const Rs={single:"single",multi:"multi"};var Jh=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,ia=(o,t,e,i)=>{for(var s=i>1?void 0:i?tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Jh(t,e,s),s};class js extends S{constructor(){super(...arguments),this.expandmode=Rs.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>$.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,i)=>{e instanceof Jt&&(e.addEventListener("click",this.expandedChangedHandler),$.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,i)=>{$.getNotifier(e).unsubscribe(this,"disabled"),$.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof Jt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(e===Rs.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof Jt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Rs.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((i,s)=>{i instanceof Jt&&(this.activeItemIndex===s?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}ia([a({attribute:"expand-mode"})],js.prototype,"expandmode",2),ia([k],js.prototype,"slottedAccordionItems",2);const eu=p`
31
31
  ${z("flex")}
32
32
 
33
- :host{flex-direction:column;width:100%;contain:content}`;function eu(){return f`<template><slot ${rt({property:"slottedAccordionItems",filter:De()})}></slot></template>`}const ou=eu(),iu=js.compose({name:`${g.prefix}-accordion`,template:ou,styles:tu});iu.define(g.registry);const sa={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},ra={circular:"circular",rounded:"rounded",square:"square"},na={small:"small",medium:"medium",large:"large"},Oi={submit:"submit",reset:"reset",button:"button"},su=sa,ru=ra,nu=na,au={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Ct=(o,t,e,i)=>{for(var s=i>1?void 0:i?cu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&lu(t,e,s),s};class Ut extends S{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in au){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===li){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}Ct([a],Ut.prototype,"download",2),Ct([a],Ut.prototype,"href",2),Ct([a],Ut.prototype,"hreflang",2),Ct([a],Ut.prototype,"ping",2),Ct([a],Ut.prototype,"referrerpolicy",2),Ct([a],Ut.prototype,"rel",2),Ct([a],Ut.prototype,"target",2),Ct([a],Ut.prototype,"type",2);class oo extends Ut{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,su)}shapeChanged(t,e){m(this.elementInternals,t,e,ru)}sizeChanged(t,e){m(this.elementInternals,t,e,nu)}iconOnlyChanged(t,e){v(this.elementInternals,"icon",!!e)}}Ct([a],oo.prototype,"appearance",2),Ct([a],oo.prototype,"shape",2),Ct([a],oo.prototype,"size",2),Ct([a({attribute:"icon-only",mode:"boolean"})],oo.prototype,"iconOnly",2),Zt(oo,Yt);const aa=p`
33
+ :host{flex-direction:column;width:100%;contain:content}`;function ou(){return f`<template><slot ${rt({property:"slottedAccordionItems",filter:De()})}></slot></template>`}const iu=ou(),su=js.compose({name:`${g.prefix}-accordion`,template:iu,styles:eu});su.define(g.registry);const sa={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},ra={circular:"circular",rounded:"rounded",square:"square"},na={small:"small",medium:"medium",large:"large"},Oi={submit:"submit",reset:"reset",button:"button"},ru=sa,nu=ra,au=na,lu={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var cu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,Ct=(o,t,e,i)=>{for(var s=i>1?void 0:i?du(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&cu(t,e,s),s};class Ut extends S{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in lu){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===li){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}Ct([a],Ut.prototype,"download",2),Ct([a],Ut.prototype,"href",2),Ct([a],Ut.prototype,"hreflang",2),Ct([a],Ut.prototype,"ping",2),Ct([a],Ut.prototype,"referrerpolicy",2),Ct([a],Ut.prototype,"rel",2),Ct([a],Ut.prototype,"target",2),Ct([a],Ut.prototype,"type",2);class oo extends Ut{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,ru)}shapeChanged(t,e){m(this.elementInternals,t,e,nu)}sizeChanged(t,e){m(this.elementInternals,t,e,au)}iconOnlyChanged(t,e){v(this.elementInternals,"icon",!!e)}}Ct([a],oo.prototype,"appearance",2),Ct([a],oo.prototype,"shape",2),Ct([a],oo.prototype,"size",2),Ct([a({attribute:"icon-only",mode:"boolean"})],oo.prototype,"iconOnly",2),Zt(oo,Yt);const aa=p`
34
34
  ${z("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${wt};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:${_};color:${A};border:${j} solid ${se};padding:0 ${$t};min-width:96px;border-radius:${P};font-size:${O};font-family:${y};font-weight:${R};line-height:${V};transition-duration:${Ms};transition-property:background,border,color;transition-timing-function:${Ni};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ss};color:${xs};border-color:${So}}:host(:hover:active){background-color:${Cs};border-color:${Si};color:${qc};outline-style:none}:host(:focus-visible){border-color:${dt};outline:${Et} solid ${dt};box-shadow:${Bi},0 0 0 2px ${qt}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){flex-shrink:0}:host(:not(${ue})) :is([slot='end'],:host(:not(${ue}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${ue}){min-width:32px;max-width:32px}:host(${B}){--icon-spacing:${Nt};min-height:24px;min-width:64px;padding:0 ${re};border-radius:${Gt};font-size:${D};line-height:${et};font-weight:${H}}:host(${B}${ue}){min-width:24px;max-width:24px}:host(${C}){min-height:40px;border-radius:${Dn};padding:0 ${Lh};font-size:${ht};line-height:${xt}}:host(${C}${ue}){min-width:40px;max-width:40px}:host(${C}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${fo},${fo}:focus-visible)){border-radius:${mt}}:host(:is(${vo},${vo}:focus-visible)){border-radius:${Os}}:host(${ct}){background-color:${Bs};color:${ie};border-color:transparent}:host(${ct}:hover){background-color:${wn}}:host(${ct}:is(:hover,:hover:active)){border-color:transparent;color:${ie}}:host(${ct}:hover:active){background-color:${Sn}}:host(${ct}:focus-visible){border-color:${ie};box-shadow:${Fs},0 0 0 2px ${qt}}:host(${X}){background-color:${St}}:host(${X}:hover){background-color:${Is}}:host(${X}:hover:active){background-color:${zs}}:host(${T}){background-color:${ld};color:${jt};border-color:transparent}:host(${T}:hover){background-color:${wi};color:${mi};border-color:transparent}:host(${T}:hover:active){background-color:${We};color:${$i};border-color:transparent}:host(${T}:hover) ::slotted(svg){fill:${vi}}:host(${T}:hover:active) ::slotted(svg){fill:${yi}}:host(${tt}){background-color:${St};color:${jt}}:host(${tt}:hover){background-color:${Is};color:${vi}}:host(${tt}:hover:active){background-color:${zs};color:${yi}}:host(:is(${tt},${tt}:is(:hover,:active))){border-color:transparent}`,Fi=p`
36
+ :host{--icon-spacing:${wt};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:${_};color:${A};border:${j} solid ${se};padding:0 ${$t};min-width:96px;border-radius:${P};font-size:${O};font-family:${y};font-weight:${R};line-height:${V};transition-duration:${Ms};transition-property:background,border,color;transition-timing-function:${Ni};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ss};color:${xs};border-color:${So}}:host(:hover:active){background-color:${Cs};border-color:${Si};color:${Gc};outline-style:none}:host(:focus-visible){border-color:${dt};outline:${Nt} solid ${dt};box-shadow:${Bi},0 0 0 2px ${qt}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){flex-shrink:0}:host(:not(${ue})) :is([slot='end'],:host(:not(${ue}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${ue}){min-width:32px;max-width:32px}:host(${B}){--icon-spacing:${Ot};min-height:24px;min-width:64px;padding:0 ${re};border-radius:${Gt};font-size:${D};line-height:${et};font-weight:${H}}:host(${B}${ue}){min-width:24px;max-width:24px}:host(${C}){min-height:40px;border-radius:${Dn};padding:0 ${Hh};font-size:${ht};line-height:${xt}}:host(${C}${ue}){min-width:40px;max-width:40px}:host(${C}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${fo},${fo}:focus-visible)){border-radius:${mt}}:host(:is(${vo},${vo}:focus-visible)){border-radius:${Os}}:host(${ct}){background-color:${Bs};color:${ie};border-color:transparent}:host(${ct}:hover){background-color:${wn}}:host(${ct}:is(:hover,:hover:active)){border-color:transparent;color:${ie}}:host(${ct}:hover:active){background-color:${Sn}}:host(${ct}:focus-visible){border-color:${ie};box-shadow:${Fs},0 0 0 2px ${qt}}:host(${X}){background-color:${St}}:host(${X}:hover){background-color:${Is}}:host(${X}:hover:active){background-color:${zs}}:host(${T}){background-color:${cd};color:${jt};border-color:transparent}:host(${T}:hover){background-color:${wi};color:${mi};border-color:transparent}:host(${T}:hover:active){background-color:${We};color:${$i};border-color:transparent}:host(${T}:hover) ::slotted(svg){fill:${vi}}:host(${T}:hover:active) ::slotted(svg){fill:${yi}}:host(${tt}){background-color:${St};color:${jt}}:host(${tt}:hover){background-color:${Is};color:${vi}}:host(${tt}:hover:active){background-color:${zs};color:${yi}}:host(:is(${tt},${tt}:is(:hover,:active))){border-color:transparent}`,Fi=p`
37
37
  ${aa}
38
38
 
39
- :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:${Xe};border-color:${At};color:${E};cursor:not-allowed}:host(${ct}:is(:disabled,[disabled-focusable])),:host(${ct}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${St}}:host(${T}:is(:disabled,[disabled-focusable])),:host(${T}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${St};border-color:transparent}:host(${tt}:is(:disabled,[disabled-focusable])),:host(${tt}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${St}}`.withBehaviors(J(p`
40
- :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${ct}: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}`)),du=p`
39
+ :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:${Xe};border-color:${Et};color:${E};cursor:not-allowed}:host(${ct}:is(:disabled,[disabled-focusable])),:host(${ct}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${St}}:host(${T}:is(:disabled,[disabled-focusable])),:host(${T}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${St};border-color:transparent}:host(${tt}:is(:disabled,[disabled-focusable])),:host(${tt}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${St}}`.withBehaviors(J(p`
40
+ :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${ct}: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}`)),hu=p`
41
41
  ${aa}
42
42
 
43
43
  ::slotted(a){position:absolute;inset:0}`.withBehaviors(J(p`
44
- :host{border-color:LinkText;color:LinkText}`));function hu(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Qt(o)}<span class="content" part="content"><slot></slot></span>${he(o)}</template>`}const uu=hu(),pu=oo.compose({name:`${g.prefix}-anchor-button`,template:uu,styles:du});pu.define(g.registry);const gu=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,bu=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,fu=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,mu=/\s+/g,$u=/[\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 vu(o,t,e){let i="";const s=o.split(" ");return s.length!==0&&(i+=s[0].charAt(0).toUpperCase()),e||(s.length===2?i+=s[1].charAt(0).toUpperCase():s.length===3&&(i+=s[2].charAt(0).toUpperCase())),t&&i.length>1?i.charAt(1)+i.charAt(0):i}function yu(o){return o=o.replace(gu,""),o=o.replace(bu,""),o=o.replace(mu," "),o=o.trim(),o}function ku(o,t,e){return!o||(o=yu(o),$u.test(o)||!e?.allowPhoneInitials&&fu.test(o))?"":vu(o,t,e?.firstInitialOnly)}const la={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"},ca={neutral:"neutral",brand:"brand",colorful:"colorful",...la};var xu=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&xu(t,e,s),s};class _i extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}fe([a],_i.prototype,"name",2),fe([a],_i.prototype,"initials",2),fe([a],_i.prototype,"active",2);const Pe=class er extends _i{handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??ku(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}generateColor(){const t=this.color===ca.colorful,e=this.currentColor;this.currentColor=t&&this.colorId?this.colorId:t?er.colors[Cu(this.name??"")%er.colors.length]:this.color??ca.neutral,m(this.elementInternals,e,this.currentColor)}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}};Pe.colors=Object.values(la),fe([a],Pe.prototype,"shape",2),fe([a],Pe.prototype,"appearance",2),fe([a({converter:Z})],Pe.prototype,"size",2),fe([a],Pe.prototype,"color",2),fe([a({attribute:"color-id"})],Pe.prototype,"colorId",2);let Su=Pe;const Cu=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const i=o.charCodeAt(e),s=e%8;t^=(i<<s)+(i>>8-s)}return t},me={fastOutSlowInMax:Vs,fastOutSlowInMid:eo,fastOutSlowInMin:qh,slowOutFastInMax:Rh,slowOutFastInMid:to,slowOutFastInMin:jh,fastEase:Gh,normalEase:Ni,nullEasing:Ds},Iu=p`
45
- ${z("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${R};font-size:${O};border-radius:${mt};color:${ft};background-color:${xi};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${mt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${j}) ${_}}: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 ${Et}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${zo};font-weight:${H}}: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:${D}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ht}}: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:${Ze}}: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:${Ci}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${P}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Gt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Dn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Rn}}:host(${Rt}){color:${yn};background-color:${Cn}}:host(${Hl}){color:${Xd};background-color:${Wd}}:host(${_l}){color:${qd};background-color:${jd}}:host(${vc}){color:${vd};background-color:${$d}}:host(${bc}){color:${xh};background-color:${kh}}:host(${hc}){color:${gh};background-color:${ph}}:host(${sc}){color:${Pd};background-color:${Vn}}:host(${Wl}){color:${Zd};background-color:${Qd}}:host(${El}){color:${Ld};background-color:${Md}}:host(${Nl}){color:${Vd};background-color:${Hd}}:host(${Ul}){color:${Yd};background-color:${Kd}}:host(${Sc}){color:${Th};background-color:${zh}}:host(${Ll}){color:${Ud};background-color:${Gd}}:host(${ec}){color:${sh};background-color:${ih}}:host(${Mc}){color:${Eh};background-color:${Ah}}:host(${Fc}){color:${Ph};background-color:${Bh}}:host(${Bl}){color:${_d};background-color:${Fd}}:host(${wc}){color:${Ih};background-color:${Ch}}:host(${Fl}){color:${Rd};background-color:${Dd}}:host(${lc}){color:${uh};background-color:${hh}}:host(${tc}){color:${oh};background-color:${eh}}:host(${fc}){color:${Sh};background-color:${wh}}:host(${Xl}){color:${th};background-color:${Jd}}:host(${oc}){color:${nh};background-color:${rh}}:host(${uc}){color:${fh};background-color:${bh}}:host(${ic}){color:${lh};background-color:${ah}}:host(${gc}){color:${yh};background-color:${vh}}:host(${Tl}){color:${Od};background-color:${Nd}}:host(${nc}){color:${dh};background-color:${ch}}:host(${pc}){color:${$h};background-color:${mh}}:host(${Il}){color:${Ed};background-color:${Ad}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Ei},${Ms};transition-delay:${me.fastEase},${me.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Ei}),${oa};transition-delay:${me.fastEase}),${me.nullEasing})}:host([active])::before{box-shadow:${_h};border-style:solid;border-color:${Cn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Et});border-width:${Et}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${nt});border-width:${nt}}: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 * ${_s});border-width:${_s}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Bi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Zn}}: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:${Mh}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Ei},${Ms};transition-delay:${me.fastOutSlowInMin},${me.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Ei},${oa};transition-delay:${me.fastOutSlowInMin},${me.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}}`,zu=f`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" 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 Tu(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():zu}</slot><slot name="badge"></slot>`}const Bu=Tu(),Pu=Su.compose({name:`${g.prefix}-avatar`,template:Bu,styles:Iu});Pu.define(g.registry);const da={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},ha={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Au={circular:"circular",rounded:"rounded",square:"square"},Eu={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var Nu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,Mi=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ou(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Nu(t,e,s),s};class io extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=da.filled,this.color=ha.brand}appearanceChanged(t,e){m(this.elementInternals,t,e,da)}colorChanged(t,e){m(this.elementInternals,t,e,ha)}shapeChanged(t,e){m(this.elementInternals,t,e,Au)}sizeChanged(t,e){m(this.elementInternals,t,e,Eu)}}Mi([a],io.prototype,"appearance",2),Mi([a],io.prototype,"color",2),Mi([a],io.prototype,"shape",2),Mi([a],io.prototype,"size",2),Zt(io,Yt);const ua=p.partial`
44
+ :host{border-color:LinkText;color:LinkText}`));function uu(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Qt(o)}<span class="content" part="content"><slot></slot></span>${he(o)}</template>`}const pu=uu(),gu=oo.compose({name:`${g.prefix}-anchor-button`,template:pu,styles:hu});gu.define(g.registry);const bu=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,fu=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,mu=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,$u=/\s+/g,vu=/[\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 yu(o,t,e){let i="";const s=o.split(" ");return s.length!==0&&(i+=s[0].charAt(0).toUpperCase()),e||(s.length===2?i+=s[1].charAt(0).toUpperCase():s.length===3&&(i+=s[2].charAt(0).toUpperCase())),t&&i.length>1?i.charAt(1)+i.charAt(0):i}function ku(o){return o=o.replace(bu,""),o=o.replace(fu,""),o=o.replace($u," "),o=o.trim(),o}function xu(o,t,e){return!o||(o=ku(o),vu.test(o)||!e?.allowPhoneInitials&&mu.test(o))?"":yu(o,t,e?.firstInitialOnly)}const la={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"},ca={neutral:"neutral",brand:"brand",colorful:"colorful",...la};var wu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Su(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&wu(t,e,s),s};class _i extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}fe([a],_i.prototype,"name",2),fe([a],_i.prototype,"initials",2),fe([a],_i.prototype,"active",2);const Pe=class er extends _i{handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??xu(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}generateColor(){const t=this.color===ca.colorful,e=this.currentColor;this.currentColor=t&&this.colorId?this.colorId:t?er.colors[Iu(this.name??"")%er.colors.length]:this.color??ca.neutral,m(this.elementInternals,e,this.currentColor)}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}};Pe.colors=Object.values(la),fe([a],Pe.prototype,"shape",2),fe([a],Pe.prototype,"appearance",2),fe([a({converter:Z})],Pe.prototype,"size",2),fe([a],Pe.prototype,"color",2),fe([a({attribute:"color-id"})],Pe.prototype,"colorId",2);let Cu=Pe;const Iu=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const i=o.charCodeAt(e),s=e%8;t^=(i<<s)+(i>>8-s)}return t},me={fastOutSlowInMax:Vs,fastOutSlowInMid:eo,fastOutSlowInMin:Gh,slowOutFastInMax:jh,slowOutFastInMid:to,slowOutFastInMin:qh,fastEase:Uh,normalEase:Ni,nullEasing:Ds},zu=p`
45
+ ${z("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${R};font-size:${O};border-radius:${mt};color:${ft};background-color:${xi};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${mt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${j}) ${_}}: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 ${Nt}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${zo};font-weight:${H}}: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:${D}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ht}}: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:${Ze}}: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:${Ci}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${P}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Gt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Dn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Rn}}:host(${Rt}){color:${yn};background-color:${Cn}}:host(${Vl}){color:${Kd};background-color:${Xd}}:host(${Ml}){color:${Gd};background-color:${qd}}:host(${yc}){color:${yd};background-color:${vd}}:host(${fc}){color:${wh};background-color:${xh}}:host(${uc}){color:${bh};background-color:${gh}}:host(${rc}){color:${Ad};background-color:${Vn}}:host(${Xl}){color:${Jd};background-color:${Zd}}:host(${Nl}){color:${Hd};background-color:${Ld}}:host(${Ol}){color:${Dd};background-color:${Vd}}:host(${Wl}){color:${Qd};background-color:${Yd}}:host(${Cc}){color:${Bh};background-color:${Th}}:host(${Hl}){color:${Wd};background-color:${Ud}}:host(${oc}){color:${rh};background-color:${sh}}:host(${Lc}){color:${Nh};background-color:${Eh}}:host(${_c}){color:${Ah};background-color:${Ph}}:host(${Pl}){color:${Md};background-color:${_d}}:host(${Sc}){color:${zh};background-color:${Ih}}:host(${_l}){color:${jd};background-color:${Rd}}:host(${cc}){color:${ph};background-color:${uh}}:host(${ec}){color:${ih};background-color:${oh}}:host(${mc}){color:${Ch};background-color:${Sh}}:host(${Kl}){color:${eh};background-color:${th}}:host(${ic}){color:${ah};background-color:${nh}}:host(${pc}){color:${mh};background-color:${fh}}:host(${sc}){color:${ch};background-color:${lh}}:host(${bc}){color:${kh};background-color:${yh}}:host(${Bl}){color:${Fd};background-color:${Od}}:host(${ac}){color:${hh};background-color:${dh}}:host(${gc}){color:${vh};background-color:${$h}}:host(${zl}){color:${Nd};background-color:${Ed}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Ei},${Ms};transition-delay:${me.fastEase},${me.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Ei}),${oa};transition-delay:${me.fastEase}),${me.nullEasing})}:host([active])::before{box-shadow:${Mh};border-style:solid;border-color:${Cn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Nt});border-width:${Nt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${nt});border-width:${nt}}: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 * ${_s});border-width:${_s}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Bi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Zn}}: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:${Lh}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Ei},${Ms};transition-delay:${me.fastOutSlowInMin},${me.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Ei},${oa};transition-delay:${me.fastOutSlowInMin},${me.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}}`,Tu=f`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" 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 Bu(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():Tu}</slot><slot name="badge"></slot>`}const Pu=Bu(),Au=Cu.compose({name:`${g.prefix}-avatar`,template:Pu,styles:zu});Au.define(g.registry);const da={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},ha={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Eu={circular:"circular",rounded:"rounded",square:"square"},Nu={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var Ou=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Mi=(o,t,e,i)=>{for(var s=i>1?void 0:i?Fu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ou(t,e,s),s};class io extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=da.filled,this.color=ha.brand}appearanceChanged(t,e){m(this.elementInternals,t,e,da)}colorChanged(t,e){m(this.elementInternals,t,e,ha)}shapeChanged(t,e){m(this.elementInternals,t,e,Eu)}sizeChanged(t,e){m(this.elementInternals,t,e,Nu)}}Mi([a],io.prototype,"appearance",2),Mi([a],io.prototype,"color",2),Mi([a],io.prototype,"shape",2),Mi([a],io.prototype,"size",2),Zt(io,Yt);const ua=p.partial`
46
46
  ${z("inline-flex")} :host {
47
47
  position: relative;
48
48
  box-sizing: border-box;
@@ -54,7 +54,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
54
54
  line-height: ${et};
55
55
  min-width: 20px;
56
56
  height: 20px;
57
- padding-inline: calc(${Nt} + ${ut});
57
+ padding-inline: calc(${Ot} + ${ut});
58
58
  border-radius: ${mt};
59
59
  border-color: ${dt};
60
60
  background-color: ${Bs};
@@ -116,7 +116,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
116
116
  height: 24px;
117
117
  font-size: ${D};
118
118
  line-height: ${et};
119
- padding-inline: calc(${Nt} + ${ut});
119
+ padding-inline: calc(${Ot} + ${ut});
120
120
  }
121
121
  :host(${C}) ::slotted(svg) {
122
122
  font-size: 16px;
@@ -143,7 +143,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
143
143
  }
144
144
 
145
145
  :host(${pi}) {
146
- background-color: ${ad};
146
+ background-color: ${ld};
147
147
  color: ${ft};
148
148
  }
149
149
 
@@ -163,8 +163,8 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
163
163
  }
164
164
 
165
165
  :host(${Be}) {
166
- background-color: ${zd};
167
- color: ${rd};
166
+ background-color: ${Td};
167
+ color: ${nd};
168
168
  }
169
169
  `,ba=p.partial`
170
170
  :host(${ee}) {
@@ -193,13 +193,13 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
193
193
  }
194
194
 
195
195
  :host(${ee}${ze}) {
196
- color: ${Sd};
196
+ color: ${Cd};
197
197
  }
198
198
 
199
199
  :host(${ee}${Be}) {
200
200
  color: ${Ns};
201
201
  }
202
- `,Fu=p.partial`
202
+ `,_u=p.partial`
203
203
  :host(${X}) {
204
204
  border-color: currentColor;
205
205
  color: ${ws};
@@ -229,16 +229,16 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
229
229
  }
230
230
 
231
231
  :host(${X}${ze}) {
232
- color: ${wd};
232
+ color: ${Sd};
233
233
  }
234
234
 
235
235
  :host(${X}${Be}) {
236
236
  color: ${Ns};
237
237
  }
238
- `,_u=p.partial`
238
+ `,Mu=p.partial`
239
239
  :host(${pe}) {
240
- background-color: ${ud};
241
- color: ${sd};
240
+ background-color: ${pd};
241
+ color: ${rd};
242
242
  border-color: ${Ps};
243
243
  }
244
244
 
@@ -255,14 +255,14 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
255
255
  }
256
256
 
257
257
  :host(${pe}${pi}) {
258
- background-color: ${nd};
258
+ background-color: ${ad};
259
259
  color: ${ft};
260
260
  border-color: ${Co};
261
261
  }
262
262
 
263
263
  :host(${pe}${bi}) {
264
264
  background-color: ${_n};
265
- color: ${Cd};
265
+ color: ${Id};
266
266
  border-color: ${Ln};
267
267
  }
268
268
 
@@ -274,14 +274,14 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
274
274
 
275
275
  :host(${pe}${ze}) {
276
276
  background-color: ${On};
277
- color: ${xd};
278
- border-color: ${kd};
277
+ color: ${wd};
278
+ border-color: ${xd};
279
279
  }
280
280
 
281
281
  :host(${pe}${Be}) {
282
- background-color: ${Id};
282
+ background-color: ${zd};
283
283
  color: ${Ns};
284
- border-color: ${Td};
284
+ border-color: ${Bd};
285
285
  }
286
286
  `;p.partial`
287
287
  font-family: ${y};
@@ -328,7 +328,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
328
328
  font-size: ${zo};
329
329
  line-height: ${zi};
330
330
  font-weight: ${R};
331
- `;const Mu=p.partial`
331
+ `;const Lu=p.partial`
332
332
  font-family: ${y};
333
333
  font-size: ${Ze};
334
334
  line-height: ${Ti};
@@ -368,19 +368,19 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
368
368
  font-size: ${Un};
369
369
  line-height: ${Qn};
370
370
  font-weight: ${R};
371
- `;const Lu=p`
371
+ `;const Hu=p`
372
372
  :host(${vo}){border-radius:${Os}}:host(${oe}){border-radius:${P}}:host(${oe}${ko}),:host(${oe}${mo}),:host(${oe}${B}){border-radius:${Gt}}${pa}
373
373
  ${ga}
374
374
  ${ba}
375
- ${Fu}
376
375
  ${_u}
376
+ ${Mu}
377
377
  ${ua}
378
378
  `.withBehaviors(J(p`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function fa(o={}){return f` ${Qt(o)}<slot>${kt(o.defaultContent)}</slot>${he(o)} `}const Hu=fa(),Vu=io.compose({name:`${g.prefix}-badge`,template:Hu,styles:Lu});Vu.define(g.registry);var Du=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,K=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ru(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Du(t,e,s),s};class lt extends S{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==Oi.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===li||t.key===ps){this.click();return}return!0}press(){switch(this.type){case Oi.reset:{this.resetForm();break}case Oi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Oi.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!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)}}}}lt.formAssociated=!0,K([a({mode:"boolean"})],lt.prototype,"autofocus",2),K([k],lt.prototype,"defaultSlottedContent",2),K([a({mode:"boolean"})],lt.prototype,"disabled",2),K([a({attribute:"disabled-focusable",mode:"boolean"})],lt.prototype,"disabledFocusable",2),K([a({attribute:"tabindex",mode:"fromView",converter:Z})],lt.prototype,"tabIndex",2),K([a({attribute:"formaction"})],lt.prototype,"formAction",2),K([a({attribute:"form"})],lt.prototype,"formAttribute",2),K([a({attribute:"formenctype"})],lt.prototype,"formEnctype",2),K([a({attribute:"formmethod"})],lt.prototype,"formMethod",2),K([a({attribute:"formnovalidate",mode:"boolean"})],lt.prototype,"formNoValidate",2),K([a({attribute:"formtarget"})],lt.prototype,"formTarget",2),K([a],lt.prototype,"name",2),K([a],lt.prototype,"type",2),K([a],lt.prototype,"value",2);class ne extends lt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,sa)}shapeChanged(t,e){m(this.elementInternals,t,e,ra)}sizeChanged(t,e){m(this.elementInternals,t,e,na)}iconOnlyChanged(t,e){v(this.elementInternals,"icon",e)}}K([a],ne.prototype,"appearance",2),K([a],ne.prototype,"shape",2),K([a],ne.prototype,"size",2),K([a({attribute:"icon-only",mode:"boolean"})],ne.prototype,"iconOnly",2),Zt(ne,Yt);function qs(o={}){return f`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Qt(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot></span>${he(o)}</template>`}const ju=qs(),qu=ne.compose({name:`${g.prefix}-button`,template:ju,styles:Fi});qu.define(g.registry);const Gu={circular:"circular",square:"square"},Uu={medium:"medium",large:"large"};var Wu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Ot=(o,t,e,i)=>{for(var s=i>1?void 0:i?Xu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Wu(t,e,s),s};class It extends S{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return $.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),v(this.elementInternals,"checked",t),$.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",v(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!e}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=!!e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(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 t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return $.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),$.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,i)}}toggleChecked(t=!this.checked){this.checked=t}}It.formAssociated=!0,Ot([a({mode:"boolean"})],It.prototype,"autofocus",2),Ot([k],It.prototype,"disabled",2),Ot([a({attribute:"disabled",mode:"boolean"})],It.prototype,"disabledAttribute",2),Ot([a({attribute:"form"})],It.prototype,"formAttribute",2),Ot([a({attribute:"checked",mode:"boolean"})],It.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],It.prototype,"initialValue",2),Ot([a],It.prototype,"name",2),Ot([a({mode:"boolean"})],It.prototype,"required",2);class Li extends It{indeterminateChanged(t,e){this.setAriaChecked(),v(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){m(this.elementInternals,t,e,Gu)}sizeChanged(t,e){m(this.elementInternals,t,e,Uu)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}Ot([k],Li.prototype,"indeterminate",2),Ot([a],Li.prototype,"shape",2),Ot([a],Li.prototype,"size",2);const Ku=p`
379
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function fa(o={}){return f` ${Qt(o)}<slot>${kt(o.defaultContent)}</slot>${he(o)} `}const Vu=fa(),Du=io.compose({name:`${g.prefix}-badge`,template:Vu,styles:Hu});Du.define(g.registry);var Ru=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,K=(o,t,e,i)=>{for(var s=i>1?void 0:i?ju(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ru(t,e,s),s};class lt extends S{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==Oi.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===li||t.key===ps){this.click();return}return!0}press(){switch(this.type){case Oi.reset:{this.resetForm();break}case Oi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Oi.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!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)}}}}lt.formAssociated=!0,K([a({mode:"boolean"})],lt.prototype,"autofocus",2),K([k],lt.prototype,"defaultSlottedContent",2),K([a({mode:"boolean"})],lt.prototype,"disabled",2),K([a({attribute:"disabled-focusable",mode:"boolean"})],lt.prototype,"disabledFocusable",2),K([a({attribute:"tabindex",mode:"fromView",converter:Z})],lt.prototype,"tabIndex",2),K([a({attribute:"formaction"})],lt.prototype,"formAction",2),K([a({attribute:"form"})],lt.prototype,"formAttribute",2),K([a({attribute:"formenctype"})],lt.prototype,"formEnctype",2),K([a({attribute:"formmethod"})],lt.prototype,"formMethod",2),K([a({attribute:"formnovalidate",mode:"boolean"})],lt.prototype,"formNoValidate",2),K([a({attribute:"formtarget"})],lt.prototype,"formTarget",2),K([a],lt.prototype,"name",2),K([a],lt.prototype,"type",2),K([a],lt.prototype,"value",2);class ne extends lt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,sa)}shapeChanged(t,e){m(this.elementInternals,t,e,ra)}sizeChanged(t,e){m(this.elementInternals,t,e,na)}iconOnlyChanged(t,e){v(this.elementInternals,"icon",e)}}K([a],ne.prototype,"appearance",2),K([a],ne.prototype,"shape",2),K([a],ne.prototype,"size",2),K([a({attribute:"icon-only",mode:"boolean"})],ne.prototype,"iconOnly",2),Zt(ne,Yt);function qs(o={}){return f`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Qt(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot></span>${he(o)}</template>`}const qu=qs(),Gu=ne.compose({name:`${g.prefix}-button`,template:qu,styles:Fi});Gu.define(g.registry);const Uu={circular:"circular",square:"square"},Wu={medium:"medium",large:"large"};var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Ft=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ku(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Xu(t,e,s),s};class It extends S{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return $.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),v(this.elementInternals,"checked",t),$.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",v(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!e}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=!!e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(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 t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return $.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),$.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,i)}}toggleChecked(t=!this.checked){this.checked=t}}It.formAssociated=!0,Ft([a({mode:"boolean"})],It.prototype,"autofocus",2),Ft([k],It.prototype,"disabled",2),Ft([a({attribute:"disabled",mode:"boolean"})],It.prototype,"disabledAttribute",2),Ft([a({attribute:"form"})],It.prototype,"formAttribute",2),Ft([a({attribute:"checked",mode:"boolean"})],It.prototype,"initialChecked",2),Ft([a({attribute:"value",mode:"fromView"})],It.prototype,"initialValue",2),Ft([a],It.prototype,"name",2),Ft([a({mode:"boolean"})],It.prototype,"required",2);class Li extends It{indeterminateChanged(t,e){this.setAriaChecked(),v(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){m(this.elementInternals,t,e,Uu)}sizeChanged(t,e){m(this.elementInternals,t,e,Wu)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}Ft([k],Li.prototype,"indeterminate",2),Ft([a],Li.prototype,"shape",2),Ft([a],Li.prototype,"size",2);const Yu=p`
380
380
  ${z("inline-flex")}
381
381
 
382
- :host{--size:16px;background-color:${_};border-radius:${Gt};border:${j} solid ${ge};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ye}}:host(:active){border-color:${Qe}}:host(${x}:hover){background-color:${xo};border-color:${bd}}:host(${x}:active){background-color:${wo};border-color:${zn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Et} solid ${dt};border-radius:${P}}:host(:not([slot='input']):focus-visible)::after{border-color:${qt}}.indeterminate-indicator,.checked-indicator{color:${Ue};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(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ie}){border-color:${Io}}:host(${x}),:host(${Ie}) .indeterminate-indicator{background-color:${Ke}}:host(${Ie}) .indeterminate-indicator{border-radius:${Gt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${C}){--size:20px}:host(${C}) ::slotted([slot='checked-indicator']),:host(${C}) .checked-indicator{width:16px}:host(${fo}),:host(${fo}) .indeterminate-indicator{border-radius:${mt}}:host([disabled]),:host([disabled]${x}){background-color:${Xe};border-color:${At}}:host([disabled]){cursor:unset}:host([disabled]${Ie}) .indeterminate-indicator{background-color:${At}}:host([disabled]${x}) .checked-indicator{color:${At}}`.withBehaviors(J(p`
383
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Ie}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${Ie}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ie}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),Yu=f.partial(`
382
+ :host{--size:16px;background-color:${_};border-radius:${Gt};border:${j} solid ${ge};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ye}}:host(:active){border-color:${Qe}}:host(${x}:hover){background-color:${xo};border-color:${fd}}:host(${x}:active){background-color:${wo};border-color:${zn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Nt} solid ${dt};border-radius:${P}}:host(:not([slot='input']):focus-visible)::after{border-color:${qt}}.indeterminate-indicator,.checked-indicator{color:${Ue};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(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ie}){border-color:${Io}}:host(${x}),:host(${Ie}) .indeterminate-indicator{background-color:${Ke}}:host(${Ie}) .indeterminate-indicator{border-radius:${Gt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${C}){--size:20px}:host(${C}) ::slotted([slot='checked-indicator']),:host(${C}) .checked-indicator{width:16px}:host(${fo}),:host(${fo}) .indeterminate-indicator{border-radius:${mt}}:host([disabled]),:host([disabled]${x}){background-color:${Xe};border-color:${Et}}:host([disabled]){cursor:unset}:host([disabled]${Ie}) .indeterminate-indicator{background-color:${Et}}:host([disabled]${x}) .checked-indicator{color:${Et}}`.withBehaviors(J(p`
383
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Ie}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${Ie}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ie}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),Qu=f.partial(`
384
384
  <svg
385
385
  fill="currentColor"
386
386
  aria-hidden="true"
@@ -391,21 +391,21 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
391
391
  xmlns="http://www.w3.org/2000/svg">
392
392
  <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>
393
393
  </svg>
394
- `),Qu=f.partial(`
394
+ `),Zu=f.partial(`
395
395
  <span class="indeterminate-indicator"></span>
396
- `);function Zu(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${kt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${kt(o.indeterminateIndicator)}</slot></template>`}const Ju=Zu({checkedIndicator:Yu,indeterminateIndicator:Qu}),tp=Li.compose({name:`${g.prefix}-checkbox`,template:Ju,styles:Ku});tp.define(g.registry);class ep extends ne{}const op=p`
396
+ `);function Ju(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${kt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${kt(o.indeterminateIndicator)}</slot></template>`}const tp=Ju({checkedIndicator:Qu,indeterminateIndicator:Zu}),ep=Li.compose({name:`${g.prefix}-checkbox`,template:tp,styles:Yu});ep.define(g.registry);class op extends ne{}const ip=p`
397
397
  ${Fi}
398
398
 
399
399
  :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${V}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${jt};line-height:100%;font-size:${D};font-weight:${H}}::slotted(svg),:host(${C}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${mi}}:host(:active) ::slotted([slot='description']){color:${$i}}:host(:is(${ct},${ct}:hover,${ct}:active)) ::slotted([slot='description']){color:${ie}}:host(:is(${T},${T}:hover,${T}:active)) ::slotted([slot='description']),:host(${tt}) ::slotted([slot='description']){color:${jt}}:host(${tt}:hover) ::slotted([slot='description']){color:${vi}}:host(${tt}:active) ::slotted([slot='description']){color:${yi}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
400
- ::slotted([slot='description']){color:${E}}:host(${B}){padding:8px;padding-bottom:10px}:host(${ue}){min-width:52px;max-width:52px;padding:${wt}}:host(${ue}${B}){min-width:48px;max-width:48px;padding:${Nt}}:host(${ue}${C}){min-width:56px;max-width:56px;padding:${re}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ht};line-height:${xt}}:host(${C}) ::slotted([slot='description']){font-size:${O}}`;function ip(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Qt(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${he(o)}</template>`}const sp=ip(),rp=ep.compose({name:`${g.prefix}-compound-button`,template:sp,styles:op});rp.define(g.registry);const np={filled:"filled",ghost:"ghost"},ap={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},lp={circular:"circular",rounded:"rounded"},cp={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,$e=(o,t,e,i)=>{for(var s=i>1?void 0:i?hp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&dp(t,e,s),s};class Wt extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,np)}colorChanged(t,e){m(this.elementInternals,t,e,ap)}shapeChanged(t,e){m(this.elementInternals,t,e,lp)}sizeChanged(t,e){m(this.elementInternals,t,e,cp)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){v(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}$e([a],Wt.prototype,"appearance",2),$e([a],Wt.prototype,"color",2),$e([a],Wt.prototype,"shape",2),$e([a],Wt.prototype,"size",2),$e([a({converter:Z})],Wt.prototype,"count",2),$e([a({attribute:"overflow-count",converter:Z})],Wt.prototype,"overflowCount",2),$e([a({attribute:"show-zero",mode:"boolean"})],Wt.prototype,"showZero",2),$e([a({mode:"boolean"})],Wt.prototype,"dot",2),Zt(Wt,Yt);const up=p`
400
+ ::slotted([slot='description']){color:${E}}:host(${B}){padding:8px;padding-bottom:10px}:host(${ue}){min-width:52px;max-width:52px;padding:${wt}}:host(${ue}${B}){min-width:48px;max-width:48px;padding:${Ot}}:host(${ue}${C}){min-width:56px;max-width:56px;padding:${re}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ht};line-height:${xt}}:host(${C}) ::slotted([slot='description']){font-size:${O}}`;function sp(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Qt(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${he(o)}</template>`}const rp=sp(),np=op.compose({name:`${g.prefix}-compound-button`,template:rp,styles:ip});np.define(g.registry);const ap={filled:"filled",ghost:"ghost"},lp={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},cp={circular:"circular",rounded:"rounded"},dp={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,$e=(o,t,e,i)=>{for(var s=i>1?void 0:i?up(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&hp(t,e,s),s};class Wt extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,ap)}colorChanged(t,e){m(this.elementInternals,t,e,lp)}shapeChanged(t,e){m(this.elementInternals,t,e,cp)}sizeChanged(t,e){m(this.elementInternals,t,e,dp)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){v(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}$e([a],Wt.prototype,"appearance",2),$e([a],Wt.prototype,"color",2),$e([a],Wt.prototype,"shape",2),$e([a],Wt.prototype,"size",2),$e([a({converter:Z})],Wt.prototype,"count",2),$e([a({attribute:"overflow-count",converter:Z})],Wt.prototype,"overflowCount",2),$e([a({attribute:"show-zero",mode:"boolean"})],Wt.prototype,"showZero",2),$e([a({mode:"boolean"})],Wt.prototype,"dot",2),Zt(Wt,Yt);const pp=p`
401
401
  :host(${oe}){border-radius:${P}}:host(${oe}${ko}),:host(${oe}${mo}),:host(${oe}${B}){border-radius:${Gt}}${pa}
402
402
  ${ga}
403
403
  ${ba}
404
404
  ${ua}
405
405
 
406
- :host(${un}),:host(${un}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function pp(o={}){return fa({defaultContent:f`${t=>t.setCount()}`})}const gp=pp(),bp=Wt.compose({name:`${g.prefix}-counter-badge`,template:gp,styles:up});bp.define(g.registry);const Xt={modal:"modal",nonModal:"non-modal",alert:"alert"};var fp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Hi=(o,t,e,i)=>{for(var s=i>1?void 0:i?mp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&fp(t,e,s),s};class Po extends S{constructor(){super(...arguments),this.type=Xt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Ht.enqueue(()=>{this.emitBeforeToggle(),this.type===Xt.alert||this.type===Xt.modal?this.dialog.showModal():this.type===Xt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Xt.alert&&t.target===this.dialog&&this.hide(),!0}}Hi([k],Po.prototype,"dialog",2),Hi([a({attribute:"aria-describedby"})],Po.prototype,"ariaDescribedby",2),Hi([a({attribute:"aria-labelledby"})],Po.prototype,"ariaLabelledby",2),Hi([a],Po.prototype,"type",2);const $p=f`<dialog role="${o=>o.type===Xt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Xt.modal||o.type===Xt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Xt.alert?t.event.preventDefault():o.hide()}" ${yt("dialog")}><slot></slot></dialog>`,vp=p`
406
+ :host(${un}),:host(${un}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function gp(o={}){return fa({defaultContent:f`${t=>t.setCount()}`})}const bp=gp(),fp=Wt.compose({name:`${g.prefix}-counter-badge`,template:bp,styles:pp});fp.define(g.registry);const Xt={modal:"modal",nonModal:"non-modal",alert:"alert"};var mp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Hi=(o,t,e,i)=>{for(var s=i>1?void 0:i?$p(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&mp(t,e,s),s};class Po extends S{constructor(){super(...arguments),this.type=Xt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Bt.enqueue(()=>{this.emitBeforeToggle(),this.type===Xt.alert||this.type===Xt.modal?this.dialog.showModal():this.type===Xt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Xt.alert&&t.target===this.dialog&&this.hide(),!0}}Hi([k],Po.prototype,"dialog",2),Hi([a({attribute:"aria-describedby"})],Po.prototype,"ariaDescribedby",2),Hi([a({attribute:"aria-labelledby"})],Po.prototype,"ariaLabelledby",2),Hi([a],Po.prototype,"type",2);const vp=f`<dialog role="${o=>o.type===Xt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Xt.modal||o.type===Xt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Xt.alert?t.event.preventDefault():o.hide()}" ${yt("dialog")}><slot></slot></dialog>`,yp=p`
407
407
  @layer base{:host{--dialog-backdrop:${Ts};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${_};border-radius:${Rn};border:none;box-shadow:${Jn};color:${A};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Hs};transition-timing-function:${eo};opacity:0}::backdrop{transition-timing-function:${Ds}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${to}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(J(p`
408
- @layer base{dialog{border:${j} solid ${dt}}}`)),yp=Po.compose({name:`${g.prefix}-dialog`,template:$p,styles:vp});yp.define(g.registry);var kp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,wp=(o,t,e,i)=>{for(var s=i>1?void 0:i?xp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&kp(t,e,s),s};class ma extends S{constructor(){super(...arguments),this.noTitleAction=!1}}wp([a({mode:"boolean",attribute:"no-title-action"})],ma.prototype,"noTitleAction",2);const Sp=f.partial(`
408
+ @layer base{dialog{border:${j} solid ${dt}}}`)),kp=Po.compose({name:`${g.prefix}-dialog`,template:vp,styles:yp});kp.define(g.registry);var xp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Sp=(o,t,e,i)=>{for(var s=i>1?void 0:i?wp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&xp(t,e,s),s};class ma extends S{constructor(){super(...arguments),this.noTitleAction=!1}}Sp([a({mode:"boolean",attribute:"no-title-action"})],ma.prototype,"noTitleAction",2);const Cp=f.partial(`
409
409
  <svg
410
410
  fill="currentColor"
411
411
  aria-hidden="true"
@@ -418,66 +418,66 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
418
418
  d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
419
419
  fill="currentColor"
420
420
  ></path>
421
- </svg>`),Cp=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Xt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${yt("defaultTitleAction")}>${Sp}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Ip=p`
421
+ </svg>`),Ip=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Xt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${yt("defaultTitleAction")}>${Cp}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,zp=p`
422
422
  ${z("grid")}
423
423
 
424
- :host{background:${_};box-sizing:border-box;gap:${at};padding:${Bo} ${Vh};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${A};column-gap:8px;display:flex;font-family:${y};font-size:${Ze};font-weight:${R};inset-block-start:0;justify-content:space-between;line-height:${Ti};margin-block-end:calc(${at} * -1);margin-block-start:calc(${Bo} * -1);padding-block-end:${at};padding-block-start:${Bo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${y};font-size:${O};font-weight:${H};line-height:${V};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${at};inset-block-end:0;margin-block-end:calc(${Bo} * -1);padding-block-end:${Bo};padding-block-start:${Ai};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${at} * -1);padding-block-start:${at}}}`,zp=ma.compose({name:`${g.prefix}-dialog-body`,template:Cp,styles:Ip});zp.define(g.registry);const Ao={separator:"separator",presentation:"presentation"},$a=bt,Tp={center:"center",start:"start",end:"end"},Bp={strong:"strong",brand:"brand",subtle:"subtle"};var Pp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,Eo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ap(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Pp(t,e,s),s};class Gs extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Ao.separator,this.role!==Ao.presentation&&(this.elementInternals.ariaOrientation=this.orientation??$a.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??Ao.separator}`),e===Ao.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==Ao.presentation?e??null:null,m(this.elementInternals,t,e,$a)}}Eo([a],Gs.prototype,"role",2),Eo([a],Gs.prototype,"orientation",2);class Vi extends Gs{alignContentChanged(t,e){m(this.elementInternals,t,e,Tp,"align-")}appearanceChanged(t,e){m(this.elementInternals,t,e,Bp)}insetChanged(t,e){v(this.elementInternals,"inset",e)}}Eo([a({attribute:"align-content"})],Vi.prototype,"alignContent",2),Eo([a],Vi.prototype,"appearance",2),Eo([a({mode:"boolean"})],Vi.prototype,"inset",2);function Ep(){return f`<slot></slot>`}const Np=Ep(),Op=p`
424
+ :host{background:${_};box-sizing:border-box;gap:${at};padding:${Bo} ${Dh};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${A};column-gap:8px;display:flex;font-family:${y};font-size:${Ze};font-weight:${R};inset-block-start:0;justify-content:space-between;line-height:${Ti};margin-block-end:calc(${at} * -1);margin-block-start:calc(${Bo} * -1);padding-block-end:${at};padding-block-start:${Bo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${y};font-size:${O};font-weight:${H};line-height:${V};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${at};inset-block-end:0;margin-block-end:calc(${Bo} * -1);padding-block-end:${Bo};padding-block-start:${Ai};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${at} * -1);padding-block-start:${at}}}`,Tp=ma.compose({name:`${g.prefix}-dialog-body`,template:Ip,styles:zp});Tp.define(g.registry);const Ao={separator:"separator",presentation:"presentation"},$a=bt,Bp={center:"center",start:"start",end:"end"},Pp={strong:"strong",brand:"brand",subtle:"subtle"};var Ap=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Eo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ep(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ap(t,e,s),s};class Gs extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Ao.separator,this.role!==Ao.presentation&&(this.elementInternals.ariaOrientation=this.orientation??$a.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??Ao.separator}`),e===Ao.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==Ao.presentation?e??null:null,m(this.elementInternals,t,e,$a)}}Eo([a],Gs.prototype,"role",2),Eo([a],Gs.prototype,"orientation",2);class Vi extends Gs{alignContentChanged(t,e){m(this.elementInternals,t,e,Bp,"align-")}appearanceChanged(t,e){m(this.elementInternals,t,e,Pp)}insetChanged(t,e){v(this.elementInternals,"inset",e)}}Eo([a({attribute:"align-content"})],Vi.prototype,"alignContent",2),Eo([a],Vi.prototype,"appearance",2),Eo([a({mode:"boolean"})],Vi.prototype,"inset",2);function Np(){return f`<slot></slot>`}const Op=Np(),Fp=p`
425
425
  ${z("flex")}
426
426
 
427
- :host{contain:content}:host::after,:host::before{align-self:center;background:${Co};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${j}}:host(${ks}){padding:0 12px}:host ::slotted(*){color:${jt};font-family:${y};font-size:${D};font-weight:${H};margin:0;padding:0 12px}:host(${cn})::before,:host(${te})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${I}){height:100%;min-height:84px}:host(${I}):empty{min-height:20px}:host(${I}){flex-direction:column;align-items:center}:host(${I}${ks})::before{margin-top:12px}:host(${I}${ks})::after{margin-bottom:12px}:host(${I}):empty::before,:host(${I}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${I})::before,:host(${I})::after{width:${j};min-height:20px;height:100%}:host(${I}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${I}${cn})::before{min-height:8px}:host(${I}${te})::after{min-height:8px}:host(${yo})::before,:host(${yo})::after{background:${se}}:host(${yo}) ::slotted(*){color:${A}}:host(${Rt})::before,:host(${Rt})::after{background:${In}}:host(${Rt}) ::slotted(*){color:${ws}}:host(${T})::before,:host(${T})::after{background:${pd}}:host(${T}) ::slotted(*){color:${ft}}`.withBehaviors(J(p`
428
- :host(${yo})::before,:host(${yo})::after,:host(${Rt})::before,:host(${Rt})::after,:host(${T})::before,:host(${T})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Fp=Vi.compose({name:`${g.prefix}-divider`,template:Np,styles:Op});Fp.define(g.registry);const _p={start:"start",end:"end"},Mp={small:"small",medium:"medium",large:"large",full:"full"},Us={nonModal:"non-modal",modal:"modal",inline:"inline"};var Lp=Object.defineProperty,Hp=Object.getOwnPropertyDescriptor,so=(o,t,e,i)=>{for(var s=i>1?void 0:i?Hp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Lp(t,e,s),s};class Ae extends S{constructor(){super(...arguments),this.type=Us.modal,this.position=_p.start,this.size=Mp.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"})}}show(){Ht.enqueue(()=>{this.emitBeforeToggle(),this.type===Us.inline||this.type===Us.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}so([a],Ae.prototype,"type",2),so([a({attribute:"aria-labelledby"})],Ae.prototype,"ariaLabelledby",2),so([a({attribute:"aria-describedby"})],Ae.prototype,"ariaDescribedby",2),so([a],Ae.prototype,"position",2),so([a({attribute:"size"})],Ae.prototype,"size",2),so([k],Ae.prototype,"dialog",2);const Vp=p`
427
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${Co};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${j}}:host(${ks}){padding:0 12px}:host ::slotted(*){color:${jt};font-family:${y};font-size:${D};font-weight:${H};margin:0;padding:0 12px}:host(${cn})::before,:host(${te})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${I}){height:100%;min-height:84px}:host(${I}):empty{min-height:20px}:host(${I}){flex-direction:column;align-items:center}:host(${I}${ks})::before{margin-top:12px}:host(${I}${ks})::after{margin-bottom:12px}:host(${I}):empty::before,:host(${I}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${I})::before,:host(${I})::after{width:${j};min-height:20px;height:100%}:host(${I}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${I}${cn})::before{min-height:8px}:host(${I}${te})::after{min-height:8px}:host(${yo})::before,:host(${yo})::after{background:${se}}:host(${yo}) ::slotted(*){color:${A}}:host(${Rt})::before,:host(${Rt})::after{background:${In}}:host(${Rt}) ::slotted(*){color:${ws}}:host(${T})::before,:host(${T})::after{background:${gd}}:host(${T}) ::slotted(*){color:${ft}}`.withBehaviors(J(p`
428
+ :host(${yo})::before,:host(${yo})::after,:host(${Rt})::before,:host(${Rt})::after,:host(${T})::before,:host(${T})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),_p=Vi.compose({name:`${g.prefix}-divider`,template:Op,styles:Fp});_p.define(g.registry);const Mp={start:"start",end:"end"},Lp={small:"small",medium:"medium",large:"large",full:"full"},Us={nonModal:"non-modal",modal:"modal",inline:"inline"};var Hp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,so=(o,t,e,i)=>{for(var s=i>1?void 0:i?Vp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Hp(t,e,s),s};class Ae extends S{constructor(){super(...arguments),this.type=Us.modal,this.position=Mp.start,this.size=Lp.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"})}}show(){Bt.enqueue(()=>{this.emitBeforeToggle(),this.type===Us.inline||this.type===Us.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}so([a],Ae.prototype,"type",2),so([a({attribute:"aria-labelledby"})],Ae.prototype,"ariaLabelledby",2),so([a({attribute:"aria-describedby"})],Ae.prototype,"ariaDescribedby",2),so([a],Ae.prototype,"position",2),so([a({attribute:"size"})],Ae.prototype,"size",2),so([k],Ae.prototype,"dialog",2);const Dp=p`
429
429
  ${z("block")}
430
430
 
431
- :host{--dialog-backdrop:${Ts}}: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{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${O};line-height:${V};font-family:${y};font-weight:${H};color:${A};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${dt};border-inline-start-color:var(--drawer-separator,${dt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Jn};border:${j} solid ${dt};background:${_}}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:${Hs};transition-timing-function:${eo}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${to}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${to}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Hs};transition-timing-function:${eo};background:var(--dialog-backdrop,${Ts});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ds}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Dp(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${yt("dialog")}><slot></slot></dialog>`}const Rp=Dp(),jp=Ae.compose({name:`${g.prefix}-drawer`,template:Rp,styles:Vp});jp.define(g.registry);class qp extends S{}const Gp=p`
431
+ :host{--dialog-backdrop:${Ts}}: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{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${O};line-height:${V};font-family:${y};font-weight:${H};color:${A};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${dt};border-inline-start-color:var(--drawer-separator,${dt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Jn};border:${j} solid ${dt};background:${_}}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:${Hs};transition-timing-function:${eo}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${to}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${to}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Hs};transition-timing-function:${eo};background:var(--dialog-backdrop,${Ts});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ds}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Rp(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${yt("dialog")}><slot></slot></dialog>`}const jp=Rp(),qp=Ae.compose({name:`${g.prefix}-drawer`,template:jp,styles:Dp});qp.define(g.registry);class Gp extends S{}const Up=p`
432
432
  ${z("grid")}
433
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Hh};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Mu}}.footer{display:flex;justify-content:flex-start;gap:${$t}}`;function Up(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Wp=Up(),Xp=qp.compose({name:`${g.prefix}-drawer-body`,template:Wp,styles:Gp});Xp.define(g.registry);const Kp={above:"above",after:"after",before:"before"},zt={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"};var Yp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,No=(o,t,e,i)=>{for(var s=i>1?void 0:i?Qp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Yp(t,e,s),s};class Oo extends S{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(v(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&v(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return v(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||je("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(v(this.elementInternals,"disabled",!!this.input.disabled),v(this.elementInternals,"readonly",!!this.input.readOnly),v(this.elementInternals,"required",!!this.input.required),v(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(zt))v(this.elementInternals,e,this.input.validity[t])}}No([k],Oo.prototype,"labelSlot",2),No([k],Oo.prototype,"messageSlot",2),No([k],Oo.prototype,"slottedInputs",2),No([k],Oo.prototype,"input",2);class va extends Oo{constructor(){super(...arguments),this.labelPosition=Kp.above}}No([a({attribute:"label-position"})],va.prototype,"labelPosition",2);const Zp=p`
433
+ :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Vh};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Lu}}.footer{display:flex;justify-content:flex-start;gap:${$t}}`;function Wp(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Xp=Wp(),Kp=Gp.compose({name:`${g.prefix}-drawer-body`,template:Xp,styles:Up});Kp.define(g.registry);const Yp={above:"above",after:"after",before:"before"},zt={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"};var Qp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,No=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Qp(t,e,s),s};class Oo extends S{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(v(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&v(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return v(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||je("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.elementInternals&&this.input&&(v(this.elementInternals,"disabled",!!this.input.disabled),v(this.elementInternals,"readonly",!!this.input.readOnly),v(this.elementInternals,"required",!!this.input.required),v(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(zt))v(this.elementInternals,e,this.input.validity[t])}}No([k],Oo.prototype,"labelSlot",2),No([k],Oo.prototype,"messageSlot",2),No([k],Oo.prototype,"slottedInputs",2),No([k],Oo.prototype,"input",2);class va extends Oo{constructor(){super(...arguments),this.labelPosition=Yp.above}}No([a({attribute:"label-position"})],va.prototype,"labelPosition",2);const Jp=p`
434
434
  ${z("inline-grid")}
435
435
 
436
- :host{color:${A};align-items:center;gap:0 ${$t};justify-items:start;position:relative}:has([slot='message']){color:${A};row-gap:${at}}: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:${$t}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${To}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Dh}}:host([label-position='below']:not(${Kl})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${To};grid-area:message}:host(${Gl}:focus-within){border-radius:${P};outline:${Et} solid ${qt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${y};font-size:${O};font-weight:${H};grid-area:label;line-height:${V};user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${et}}:host([size='large']) ::slotted(label){font-size:${ht};line-height:${xt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${R}}:host(${N}){cursor:default}::slotted([flag]){display:none}:host(${zl}) ::slotted([flag='${zt.badInput}']),:host(${Ml}) ::slotted([flag='${zt.customError}']),:host(${dc}) ::slotted([flag='${zt.patternMismatch}']),:host(${mc}) ::slotted([flag='${zt.rangeOverflow}']),:host(${$c}) ::slotted([flag='${zt.rangeUnderflow}']),:host(${_c}) ::slotted([flag='${zt.stepMismatch}']),:host(${Lc}) ::slotted([flag='${zt.tooLong}']),:host(${Hc}) ::slotted([flag='${zt.tooShort}']),:host(${Vc}) ::slotted([flag='${zt.typeMismatch}']),:host(${jc}) ::slotted([flag='${zt.valueMissing}']),:host(${Rc}) ::slotted([flag='${zt.valid}']){display:block}`,Jp=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${il({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:De()})}><slot name="label" part="label" ${rt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${rt({property:"messageSlot",filter:De("[flag]")})}></slot></template>`,tg=va.compose({name:`${g.prefix}-field`,template:Jp,styles:Zp,shadowOptions:{delegatesFocus:!0}});tg.define(g.registry);const eg={none:"none",center:"center",contain:"contain",cover:"cover"},og={circular:"circular",rounded:"rounded",square:"square"};var ig=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,Fo=(o,t,e,i)=>{for(var s=i>1?void 0:i?sg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ig(t,e,s),s};class ro extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(t,e){v(this.elementInternals,"block",e)}borderedChanged(t,e){v(this.elementInternals,"bordered",e)}shadowChanged(t,e){v(this.elementInternals,"shadow",e)}fitChanged(t,e){m(this.elementInternals,t,e,eg,"fit-")}shapeChanged(t,e){m(this.elementInternals,t,e,og)}}Fo([a({mode:"boolean"})],ro.prototype,"block",2),Fo([a({mode:"boolean"})],ro.prototype,"bordered",2),Fo([a({mode:"boolean"})],ro.prototype,"shadow",2),Fo([a],ro.prototype,"fit",2),Fo([a],ro.prototype,"shape",2);const rg=f`<slot></slot>`,ng=p`
437
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${bo}) ::slotted(img){width:100%;height:auto}:host(${Al}) ::slotted(img){border:${j} solid ${Co}}:host(${ql}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${Dl}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${Rl}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${jl}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${Cc}) ::slotted(img){box-shadow:${Bi}}:host(${fo}) ::slotted(img){border-radius:${mt}}:host(${oe}) ::slotted(img){border-radius:${P}}`,ag=ro.compose({name:`${g.prefix}-image`,template:rg,styles:ng});ag.define(g.registry);const lg={small:"small",medium:"medium",large:"large"},cg={regular:"regular",semibold:"semibold"};var dg=Object.defineProperty,hg=Object.getOwnPropertyDescriptor,Di=(o,t,e,i)=>{for(var s=i>1?void 0:i?hg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&dg(t,e,s),s};class _o extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){m(this.elementInternals,t,e,lg)}weightChanged(t,e){m(this.elementInternals,t,e,cg)}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}}Di([a],_o.prototype,"size",2),Di([a],_o.prototype,"weight",2),Di([a({mode:"boolean"})],_o.prototype,"disabled",2),Di([a({mode:"boolean"})],_o.prototype,"required",2);const ug=p`
436
+ :host{color:${A};align-items:center;gap:0 ${$t};justify-items:start;position:relative}:has([slot='message']){color:${A};row-gap:${at}}: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:${$t}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${To}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Rh}}:host([label-position='below']:not(${Yl})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${To};grid-area:message}:host(${Ul}:focus-within){border-radius:${P};outline:${Nt} solid ${qt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${y};font-size:${O};font-weight:${H};grid-area:label;line-height:${V};user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${et}}:host([size='large']) ::slotted(label){font-size:${ht};line-height:${xt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${R}}:host(${N}){cursor:default}::slotted([flag]){display:none}:host(${Tl}) ::slotted([flag='${zt.badInput}']),:host(${Ll}) ::slotted([flag='${zt.customError}']),:host(${hc}) ::slotted([flag='${zt.patternMismatch}']),:host(${$c}) ::slotted([flag='${zt.rangeOverflow}']),:host(${vc}) ::slotted([flag='${zt.rangeUnderflow}']),:host(${Mc}) ::slotted([flag='${zt.stepMismatch}']),:host(${Hc}) ::slotted([flag='${zt.tooLong}']),:host(${Vc}) ::slotted([flag='${zt.tooShort}']),:host(${Dc}) ::slotted([flag='${zt.typeMismatch}']),:host(${qc}) ::slotted([flag='${zt.valueMissing}']),:host(${jc}) ::slotted([flag='${zt.valid}']){display:block}`,tg=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${sl({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:De()})}><slot name="label" part="label" ${rt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${rt({property:"messageSlot",filter:De("[flag]")})}></slot></template>`,eg=va.compose({name:`${g.prefix}-field`,template:tg,styles:Jp,shadowOptions:{delegatesFocus:!0}});eg.define(g.registry);const og={none:"none",center:"center",contain:"contain",cover:"cover"},ig={circular:"circular",rounded:"rounded",square:"square"};var sg=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,Fo=(o,t,e,i)=>{for(var s=i>1?void 0:i?rg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&sg(t,e,s),s};class ro extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(t,e){v(this.elementInternals,"block",e)}borderedChanged(t,e){v(this.elementInternals,"bordered",e)}shadowChanged(t,e){v(this.elementInternals,"shadow",e)}fitChanged(t,e){m(this.elementInternals,t,e,og,"fit-")}shapeChanged(t,e){m(this.elementInternals,t,e,ig)}}Fo([a({mode:"boolean"})],ro.prototype,"block",2),Fo([a({mode:"boolean"})],ro.prototype,"bordered",2),Fo([a({mode:"boolean"})],ro.prototype,"shadow",2),Fo([a],ro.prototype,"fit",2),Fo([a],ro.prototype,"shape",2);const ng=f`<slot></slot>`,ag=p`
437
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${bo}) ::slotted(img){width:100%;height:auto}:host(${El}) ::slotted(img){border:${j} solid ${Co}}:host(${Gl}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${Rl}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${jl}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${ql}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${Ic}) ::slotted(img){box-shadow:${Bi}}:host(${fo}) ::slotted(img){border-radius:${mt}}:host(${oe}) ::slotted(img){border-radius:${P}}`,lg=ro.compose({name:`${g.prefix}-image`,template:ng,styles:ag});lg.define(g.registry);const cg={small:"small",medium:"medium",large:"large"},dg={regular:"regular",semibold:"semibold"};var hg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,Di=(o,t,e,i)=>{for(var s=i>1?void 0:i?ug(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&hg(t,e,s),s};class _o extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){m(this.elementInternals,t,e,cg)}weightChanged(t,e){m(this.elementInternals,t,e,dg)}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}}Di([a],_o.prototype,"size",2),Di([a],_o.prototype,"weight",2),Di([a({mode:"boolean"})],_o.prototype,"disabled",2),Di([a({mode:"boolean"})],_o.prototype,"required",2);const pg=p`
438
438
  ${z("inline-flex")}
439
439
 
440
- :host{color:${A};cursor:pointer;font-family:${y};font-size:${O};font-weight:${H};line-height:${V};user-select:none}.asterisk{color:${En};margin-inline-start:${Nt}}:host(${B}){font-size:${D};line-height:${et}}:host(${C}){font-size:${ht};line-height:${xt}}:host(:is(${C},${bn})){font-weight:${R}}:host(${N}),:host(${N}) .asterisk{color:${E}}`;function pg(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const gg=pg(),bg=_o.compose({name:`${g.prefix}-label`,template:gg,styles:ug});bg.define(g.registry);const fg={subtle:"subtle"};var mg=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,ya=(o,t,e,i)=>{for(var s=i>1?void 0:i?$g(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&mg(t,e,s),s};class Ws extends Ut{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,fg)}inlineChanged(t,e){v(this.elementInternals,"inline",e)}}ya([a],Ws.prototype,"appearance",2),ya([a({mode:"boolean"})],Ws.prototype,"inline",2);const vg=p`
440
+ :host{color:${A};cursor:pointer;font-family:${y};font-size:${O};font-weight:${H};line-height:${V};user-select:none}.asterisk{color:${En};margin-inline-start:${Ot}}:host(${B}){font-size:${D};line-height:${et}}:host(${C}){font-size:${ht};line-height:${xt}}:host(:is(${C},${bn})){font-weight:${R}}:host(${N}),:host(${N}) .asterisk{color:${E}}`;function gg(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const bg=gg(),fg=_o.compose({name:`${g.prefix}-label`,template:bg,styles:pg});fg.define(g.registry);const mg={subtle:"subtle"};var $g=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,ya=(o,t,e,i)=>{for(var s=i>1?void 0:i?vg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&$g(t,e,s),s};class Ws extends Ut{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){m(this.elementInternals,t,e,mg)}inlineChanged(t,e){v(this.elementInternals,"inline",e)}}ya([a],Ws.prototype,"appearance",2),ya([a({mode:"boolean"})],Ws.prototype,"inline",2);const yg=p`
441
441
  ${z("inline")}
442
442
 
443
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Kc};cursor:pointer;font-family:${y};font-size:${O};font-weight:${H};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${j};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Yc}}:host(:active){color:${Qc}}:host(${T}:hover){color:${Jc}}:host(${T}:active){color:${td}}}:host(${T}){color:${Zc}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${Ql}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(J(p`
444
- :host{color:LinkText}`));function yg(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const kg=yg(),xg=Ws.compose({name:`${g.prefix}-link`,template:kg,styles:vg});xg.define(g.registry);class wg extends ne{}const Sg=qs({end:f.partial(`
443
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Yc};cursor:pointer;font-family:${y};font-size:${O};font-weight:${H};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${j};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Qc}}:host(:active){color:${Zc}}:host(${T}:hover){color:${td}}:host(${T}:active){color:${ed}}}:host(${T}){color:${Jc}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${Zl}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(J(p`
444
+ :host{color:LinkText}`));function kg(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const xg=kg(),wg=Ws.compose({name:`${g.prefix}-link`,template:xg,styles:yg});wg.define(g.registry);class Sg extends ne{}const Cg=qs({end:f.partial(`
445
445
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
446
446
  <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>
447
447
  </svg>
448
- `)}),Cg=wg.compose({name:`${g.prefix}-menu-button`,template:Sg,styles:Fi});Cg.define(g.registry);const ot={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ot.menuitem+"",ot.menuitemcheckbox+"",ot.menuitemradio+"";var Ig=Object.defineProperty,zg=Object.getOwnPropertyDescriptor,no=(o,t,e,i)=>{for(var s=i>1?void 0:i?zg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ig(t,e,s),s};const Tg=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class Ft extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ot.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case li:case ps:return this.invoke(),!1;case ri:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case si:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case ot.menuitemcheckbox:this.checked=!this.checked;break;case ot.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ot.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[i]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,v(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??ot.menuitem}checkedChanged(t,e){const i=this.role!==ot.menuitem;this.elementInternals.ariaChecked=i?`${!!e}`:null,v(this.elementInternals,"checked",i?e:!1),this.$fastController.isConnected&&this.$emit("change",e,{bubbles:!0})}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",v(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,v(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ot.menuitem,this.elementInternals.ariaChecked=this.role!==ot.menuitem?`${!!this.checked}`:null}}no([a({mode:"boolean"})],Ft.prototype,"disabled",2),no([a],Ft.prototype,"role",2),no([a({mode:"boolean"})],Ft.prototype,"checked",2),no([a({mode:"boolean"})],Ft.prototype,"hidden",2),no([k],Ft.prototype,"slottedSubmenu",2),no([k],Ft.prototype,"submenu",2),Zt(Ft,Yt);const Bg=p`
448
+ `)}),Ig=Sg.compose({name:`${g.prefix}-menu-button`,template:Cg,styles:Fi});Ig.define(g.registry);const ot={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ot.menuitem+"",ot.menuitemcheckbox+"",ot.menuitemradio+"";var zg=Object.defineProperty,Tg=Object.getOwnPropertyDescriptor,no=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&zg(t,e,s),s};const Bg=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class _t extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ot.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case li:case ps:return this.invoke(),!1;case ri:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case si:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case ot.menuitemcheckbox:this.checked=!this.checked;break;case ot.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ot.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[i]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,v(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??ot.menuitem}checkedChanged(t,e){const i=this.role!==ot.menuitem;this.elementInternals.ariaChecked=i?`${!!e}`:null,v(this.elementInternals,"checked",i?e:!1),this.$fastController.isConnected&&this.$emit("change",e,{bubbles:!0})}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",v(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,v(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ot.menuitem,this.elementInternals.ariaChecked=this.role!==ot.menuitem?`${!!this.checked}`:null}}no([a({mode:"boolean"})],_t.prototype,"disabled",2),no([a],_t.prototype,"role",2),no([a({mode:"boolean"})],_t.prototype,"checked",2),no([a({mode:"boolean"})],_t.prototype,"hidden",2),no([k],_t.prototype,"slottedSubmenu",2),no([k],_t.prototype,"submenu",2),Zt(_t,Yt);const Pg=p`
449
449
  ${z("grid")}
450
450
 
451
- :host{--indent:0;align-items:center;background:${_};border-radius:${P};color:${jt};contain:layout;cursor:pointer;flex-shrink:0;font:${H} ${O} / ${V} ${y};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Ss};color:${mi}}:host(:active){background-color:${kn};color:${$i}}:host(:active) ::slotted([slot='start']){color:${ed}}:host(${N}){background-color:${Xe};color:${E}}:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){color:${E}}:host(:focus-visible){border-radius:${P};outline:2px solid ${qt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${fi})) .submenu-glyph,:host(:not(${fi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ft};font:${H} ${D} / ${et} ${y};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${fi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${fi}){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:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(J(p`
452
- :host(${N}),:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){color:GrayText}`)),Pg=f.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>'),Ag=f.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 Eg(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${kt(o.indicator)}</slot>${Qt(o)}<div part="content" class="content"><slot></slot></div>${he(o)}<slot name="submenu-glyph">${kt(o.submenuGlyph)}</slot><slot name="submenu" ${rt({property:"slottedSubmenu",filter:Tg()})}></slot></template>`}const Ng=Eg({indicator:Pg,submenuGlyph:Ag}),Og=Ft.compose({name:`${g.prefix}-menu-item`,template:Ng,styles:Bg});Og.define(g.registry);var Fg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,Mg=(o,t,e,i)=>{for(var s=i>1?void 0:i?_g(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Fg(t,e,s),s};const Xs=class or extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,i=this.menuItems.indexOf(e);if(i!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===ot.menuitemradio&&(n.checked=!1),d==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===ot.menuitemradio&&(n.checked=!1),d==="separator")break}}},this.isMenuItemElement=t=>t instanceof Ft||nn(t)&&t.getAttribute("role")in or.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Ht.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case ii:this.setFocus(this.focusIndex+1,1);return;case ni:this.setFocus(this.focusIndex-1,-1);return;case ai:this.setFocus(this.menuItems.length-1,-1);return;case ci:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),$.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e&&e!==ot.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>$.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,d)=>{n.setAttribute("tabindex",d===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement),r=s?.reduce((n,d)=>{const u=or.elementIndent(d);return Math.max(n,u)},0);s?.forEach(n=>{n instanceof Ft&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}};Xs.focusableElementRoles=ot,Mg([k],Xs.prototype,"items",2);let Lg=Xs;const Hg=p`
451
+ :host{--indent:0;align-items:center;background:${_};border-radius:${P};color:${jt};contain:layout;cursor:pointer;flex-shrink:0;font:${H} ${O} / ${V} ${y};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Ss};color:${mi}}:host(:active){background-color:${kn};color:${$i}}:host(:active) ::slotted([slot='start']){color:${od}}:host(${N}){background-color:${Xe};color:${E}}:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){color:${E}}:host(:focus-visible){border-radius:${P};outline:2px solid ${qt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${fi})) .submenu-glyph,:host(:not(${fi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ft};font:${H} ${D} / ${et} ${y};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${fi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${fi}){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:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(J(p`
452
+ :host(${N}),:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){color:GrayText}`)),Ag=f.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>'),Eg=f.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 Ng(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${kt(o.indicator)}</slot>${Qt(o)}<div part="content" class="content"><slot></slot></div>${he(o)}<slot name="submenu-glyph">${kt(o.submenuGlyph)}</slot><slot name="submenu" ${rt({property:"slottedSubmenu",filter:Bg()})}></slot></template>`}const Og=Ng({indicator:Ag,submenuGlyph:Eg}),Fg=_t.compose({name:`${g.prefix}-menu-item`,template:Og,styles:Pg});Fg.define(g.registry);var _g=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,Lg=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&_g(t,e,s),s};const Xs=class or extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,i=this.menuItems.indexOf(e);if(i!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===ot.menuitemradio&&(n.checked=!1),d==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===ot.menuitemradio&&(n.checked=!1),d==="separator")break}}},this.isMenuItemElement=t=>t instanceof _t||nn(t)&&t.getAttribute("role")in or.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Bt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case ii:this.setFocus(this.focusIndex+1,1);return;case ni:this.setFocus(this.focusIndex-1,-1);return;case ai:this.setFocus(this.menuItems.length-1,-1);return;case ci:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),$.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e&&e!==ot.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>$.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,d)=>{n.setAttribute("tabindex",d===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement),r=s?.reduce((n,d)=>{const u=or.elementIndent(d);return Math.max(n,u)},0);s?.forEach(n=>{n instanceof _t&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}};Xs.focusableElementRoles=ot,Lg([k],Xs.prototype,"items",2);let Hg=Xs;const Vg=p`
453
453
  ${z("flex")}
454
454
 
455
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${dt};border-radius:${P};box-shadow:${Zn};padding:4px;row-gap:2px}`;function Vg(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${rt("items")}></slot></template>`}const Dg=Vg(),Rg=Lg.compose({name:`${g.prefix}-menu-list`,template:Dg,styles:Hg});Rg.define(g.registry);var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,ve=(o,t,e,i)=>{for(var s=i>1?void 0:i?qg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&jg(t,e,s),s};class ae extends S{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof Ft&&(t.target.getAttribute("role")===ot.menuitemcheckbox||t.target.getAttribute("role")===ot.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t.type==="toggle"&&t.newState){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case ps:case li:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Ht.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Ht.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Ht.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case gl:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case bl:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger&&t.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}ve([a({attribute:"open-on-hover",mode:"boolean"})],ae.prototype,"openOnHover",2),ve([a({attribute:"open-on-context",mode:"boolean"})],ae.prototype,"openOnContext",2),ve([a({attribute:"close-on-scroll",mode:"boolean"})],ae.prototype,"closeOnScroll",2),ve([a({attribute:"persist-on-item-click",mode:"boolean"})],ae.prototype,"persistOnItemClick",2),ve([a({mode:"boolean"})],ae.prototype,"split",2),ve([k],ae.prototype,"slottedMenuList",2),ve([k],ae.prototype,"slottedTriggers",2),ve([k],ae.prototype,"primaryAction",2);const Gg=p`
455
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${dt};border-radius:${P};box-shadow:${Zn};padding:4px;row-gap:2px}`;function Dg(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${rt("items")}></slot></template>`}const Rg=Dg(),jg=Hg.compose({name:`${g.prefix}-menu-list`,template:Rg,styles:Vg});jg.define(g.registry);var qg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,ve=(o,t,e,i)=>{for(var s=i>1?void 0:i?Gg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qg(t,e,s),s};class ae extends S{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof _t&&(t.target.getAttribute("role")===ot.menuitemcheckbox||t.target.getAttribute("role")===ot.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t.type==="toggle"&&t.newState){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case ps:case li:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Bt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Bt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Bt.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case bl:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case fl:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger&&t.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}ve([a({attribute:"open-on-hover",mode:"boolean"})],ae.prototype,"openOnHover",2),ve([a({attribute:"open-on-context",mode:"boolean"})],ae.prototype,"openOnContext",2),ve([a({attribute:"close-on-scroll",mode:"boolean"})],ae.prototype,"closeOnScroll",2),ve([a({attribute:"persist-on-item-click",mode:"boolean"})],ae.prototype,"persistOnItemClick",2),ve([a({mode:"boolean"})],ae.prototype,"split",2),ve([k],ae.prototype,"slottedMenuList",2),ve([k],ae.prototype,"slottedTriggers",2),ve([k],ae.prototype,"primaryAction",2);const Ug=p`
456
456
  ${z("inline-block")}
457
457
 
458
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${j} solid ${se};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:${j} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Ug(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="primary-action" ${yt("primaryAction")}></slot><slot name="trigger" ${rt({property:"slottedTriggers",filter:De()})}></slot><slot ${rt({property:"slottedMenuList",filter:De()})}></slot></template>`}const Wg=Ug(),Xg=ae.compose({name:`${g.prefix}-menu`,template:Wg,styles:Gg});Xg.define(g.registry);const Kg={multiline:"multiline",singleline:"singleline"},Yg={rounded:"rounded",square:"square"},Qg={success:"success",warning:"warning",error:"error",info:"info"};var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Ks=(o,t,e,i)=>{for(var s=i>1?void 0:i?Jg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Zg(t,e,s),s};class Ri extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){m(this.elementInternals,t,e,Yg)}layoutChanged(t,e){m(this.elementInternals,t,e,Kg)}intentChanged(t,e){m(this.elementInternals,t,e,Qg)}}Ks([a],Ri.prototype,"shape",2),Ks([a],Ri.prototype,"layout",2),Ks([a],Ri.prototype,"intent",2);const tb=p`
459
- :host{display:grid;box-sizing:border-box;font-family:${y};font-size:${D};line-height:${et};width:100%;background:${ki};border:1px solid ${se};padding-inline:${$t};border-radius:${P};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${vo}){border-radius:0}:host(${ze}){background-color:${On};border-color:${yd}}:host(${Be}){background-color:${_n};border-color:${Ln}}:host(${ys}){background-color:${Bn};border-color:${An}}:host(${$o}){grid-template-areas:'icon body dismiss'
460
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Je};padding-inline:${$t}}.content{grid-area:body;max-width:520px;padding-block:${Je};padding-inline:0}:host(${$o}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ft};margin-inline-end:${re}}:host(${$o}) ::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:${re};gap:${re}}:host(${$o}) .actions{margin-block-start:${Je};margin-inline-end:0}:host(${$o}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${at}}::slotted(*){font-size:inherit}`;function eb(){return f`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const ob=eb(),ib=Ri.compose({name:`${g.prefix}-message-bar`,template:ob,styles:tb,shadowOptions:{mode:g.shadowRootMode}});ib.define(g.registry);const sb={medium:"medium",large:"large"},rb={rounded:"rounded",square:"square"},nb={success:"success",warning:"warning",error:"error"};var ab=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,Ee=(o,t,e,i)=>{for(var s=i>1?void 0:i?lb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ab(t,e,s),s};class ao extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(t,e){m(this.elementInternals,t,e,nb)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,i=this.value??0,s=e-t;return s===0?0:Math.fround((i-t)/s*100)}}Ee([a({attribute:"validation-state"})],ao.prototype,"validationState",2),Ee([a({converter:Z})],ao.prototype,"value",2),Ee([a({converter:Z})],ao.prototype,"min",2),Ee([a({converter:Z})],ao.prototype,"max",2),Ee([Aa],ao.prototype,"percentComplete",1);class Ys extends ao{thicknessChanged(t,e){m(this.elementInternals,t,e,sb)}shapeChanged(t,e){m(this.elementInternals,t,e,rb)}}Ee([a],Ys.prototype,"thickness",2),Ee([a],Ys.prototype,"shape",2);const cb=p`
458
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${j} solid ${se};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:${j} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Wg(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="primary-action" ${yt("primaryAction")}></slot><slot name="trigger" ${rt({property:"slottedTriggers",filter:De()})}></slot><slot ${rt({property:"slottedMenuList",filter:De()})}></slot></template>`}const Xg=Wg(),Kg=ae.compose({name:`${g.prefix}-menu`,template:Xg,styles:Ug});Kg.define(g.registry);const Yg={multiline:"multiline",singleline:"singleline"},Qg={rounded:"rounded",square:"square"},Zg={success:"success",warning:"warning",error:"error",info:"info"};var Jg=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,Ks=(o,t,e,i)=>{for(var s=i>1?void 0:i?tb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Jg(t,e,s),s};class Ri extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){m(this.elementInternals,t,e,Qg)}layoutChanged(t,e){m(this.elementInternals,t,e,Yg)}intentChanged(t,e){m(this.elementInternals,t,e,Zg)}}Ks([a],Ri.prototype,"shape",2),Ks([a],Ri.prototype,"layout",2),Ks([a],Ri.prototype,"intent",2);const eb=p`
459
+ :host{display:grid;box-sizing:border-box;font-family:${y};font-size:${D};line-height:${et};width:100%;background:${ki};border:1px solid ${se};padding-inline:${$t};border-radius:${P};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${vo}){border-radius:0}:host(${ze}){background-color:${On};border-color:${kd}}:host(${Be}){background-color:${_n};border-color:${Ln}}:host(${ys}){background-color:${Bn};border-color:${An}}:host(${$o}){grid-template-areas:'icon body dismiss'
460
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Je};padding-inline:${$t}}.content{grid-area:body;max-width:520px;padding-block:${Je};padding-inline:0}:host(${$o}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ft};margin-inline-end:${re}}:host(${$o}) ::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:${re};gap:${re}}:host(${$o}) .actions{margin-block-start:${Je};margin-inline-end:0}:host(${$o}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${at}}::slotted(*){font-size:inherit}`;function ob(){return f`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const ib=ob(),sb=Ri.compose({name:`${g.prefix}-message-bar`,template:ib,styles:eb,shadowOptions:{mode:g.shadowRootMode}});sb.define(g.registry);const rb={medium:"medium",large:"large"},nb={rounded:"rounded",square:"square"},ab={success:"success",warning:"warning",error:"error"};var lb=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,Ee=(o,t,e,i)=>{for(var s=i>1?void 0:i?cb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&lb(t,e,s),s};class ao extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(t,e){m(this.elementInternals,t,e,ab)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,i=this.value??0,s=e-t;return s===0?0:Math.fround((i-t)/s*100)}}Ee([a({attribute:"validation-state"})],ao.prototype,"validationState",2),Ee([a({converter:Z})],ao.prototype,"value",2),Ee([a({converter:Z})],ao.prototype,"min",2),Ee([a({converter:Z})],ao.prototype,"max",2),Ee([Ea],ao.prototype,"percentComplete",1);class Ys extends ao{thicknessChanged(t,e){m(this.elementInternals,t,e,rb)}shapeChanged(t,e){m(this.elementInternals,t,e,nb)}}Ee([a],Ys.prototype,"thickness",2),Ee([a],Ys.prototype,"shape",2);const db=p`
461
461
  ${z("block")}
462
462
 
463
463
  :host{width:100%;height:2px;overflow-x:hidden;background-color:${xi};border-radius:${P};contain:content}:host(${C}){height:4px}:host(${vo}){border-radius:${Os}}.indicator{background-color:${Ke};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
464
464
  to right,${xi} 0%,${St} 50%,${xi} 100%
465
465
  );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${ys}) .indicator{background-color:${Pn}}:host(${Be}) .indicator{background-color:${Mn}}:host(${ze}) .indicator{background-color:${Fn}}@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%}}`.withBehaviors(J(p`
466
- :host{background-color:CanvasText}.indicator,:host(:is(${ze},${Be},${ys})) .indicator{background-color:Highlight}`));function db(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const hb=db(),ub=Ys.compose({name:`${g.prefix}-progress-bar`,template:hb,styles:cb});ub.define(g.registry);class ka extends It{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.checked=!1,this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function xa(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const wa=bt;var pb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,Ne=(o,t,e,i)=>{for(var s=i>1?void 0:i?gb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&pb(t,e,s),s};class le extends S{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??wa.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??wa.horizontal}radiosChanged(t,e){const i=e?.length;if(!i)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const s=pl(this.enabledRadios,n=>n.initialChecked);e.forEach((n,d)=>{n.ariaPosInSet=`${d+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=d===s,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=s);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),Ht.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.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 t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return $.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(i=>i.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),$.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),!0}checkRadio(t=this.checkedIndex){let e=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const r=s===t;i.checked=r,r&&(e=s)}),this.checkedIndex=e,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=fs(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===xa(this))??this.checkedIndex;let s=0;switch(t.key){case"ArrowLeft":{s=e?1:-1;break}case"ArrowUp":{s=-1;break}case"ArrowRight":{s=e?-1:1;break}case"ArrowDown":{s=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!s)return!0;const r=i+s;this.checkedIndex=this.getEnabledIndexInBounds(r),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(xa(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((i,s)=>{i.tabIndex=s===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(t){Ht.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof ka)})}}le.formAssociated=!0,Ne([k],le.prototype,"checkedIndex",2),Ne([a({attribute:"disabled",mode:"boolean"})],le.prototype,"disabled",2),Ne([a({attribute:"value",mode:"fromView"})],le.prototype,"initialValue",2),Ne([a],le.prototype,"name",2),Ne([a],le.prototype,"orientation",2),Ne([k],le.prototype,"radios",2),Ne([a({mode:"boolean"})],le.prototype,"required",2);const bb=p`
466
+ :host{background-color:CanvasText}.indicator,:host(:is(${ze},${Be},${ys})) .indicator{background-color:Highlight}`));function hb(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const ub=hb(),pb=Ys.compose({name:`${g.prefix}-progress-bar`,template:ub,styles:db});pb.define(g.registry);class ka extends It{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function xa(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const wa=bt;var gb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,Ne=(o,t,e,i)=>{for(var s=i>1?void 0:i?bb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&gb(t,e,s),s};class le extends S{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??wa.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??wa.horizontal}radiosChanged(t,e){const i=e?.length;if(!i)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const s=gl(this.enabledRadios,n=>n.initialChecked);e.forEach((n,d)=>{n.ariaPosInSet=`${d+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=d===s,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=s);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),Bt.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.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 t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return $.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(i=>i.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),$.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(t=this.checkedIndex,e=!1){let i=this.checkedIndex;this.enabledRadios.forEach((s,r)=>{const n=r===t;s.checked=n,n&&(i=r,e&&s.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=fs(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===xa(this))??this.checkedIndex;let s=0;switch(t.key){case"ArrowLeft":{s=e?1:-1;break}case"ArrowUp":{s=-1;break}case"ArrowRight":{s=e?-1:1;break}case"ArrowDown":{s=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!s)return!0;const r=i+s;this.checkRadio(this.getEnabledIndexInBounds(r),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(xa(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((i,s)=>{i.tabIndex=s===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(t){Bt.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof ka)})}}le.formAssociated=!0,Ne([k],le.prototype,"checkedIndex",2),Ne([a({attribute:"disabled",mode:"boolean"})],le.prototype,"disabled",2),Ne([a({attribute:"value",mode:"fromView"})],le.prototype,"initialValue",2),Ne([a],le.prototype,"name",2),Ne([a],le.prototype,"orientation",2),Ne([k],le.prototype,"radios",2),Ne([a({mode:"boolean"})],le.prototype,"required",2);const fb=p`
467
467
  ${z("flex")}
468
468
 
469
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ai}}:host(${N}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ft}}::slotted(:hover){color:${jt}}::slotted(:active){color:${A}}::slotted(${N}){color:${E}}::slotted(${x}){color:${A}}`;function fb(){return f`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const mb=fb(),$b=le.compose({name:`${g.prefix}-radio-group`,template:mb,styles:bb});$b.define(g.registry);const vb=p`
469
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ai}}:host(${N}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ft}}::slotted(:hover){color:${jt}}::slotted(:active){color:${A}}::slotted(${N}){color:${E}}::slotted(${x}){color:${A}}`;function mb(){return f`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const $b=mb(),vb=le.compose({name:`${g.prefix}-radio-group`,template:$b,styles:fb});vb.define(g.registry);const yb=p`
470
470
  ${z("inline-flex")}
471
471
 
472
- :host{--size:16px;aspect-ratio:1;background-color:${_};border:${j} solid ${ge};border-radius:${mt};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${mt};color:${Ue};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:${Et} solid ${dt};border-radius:${P}}:host(:not([slot='input']):focus-visible)::after{border-color:${qt}}:host(:hover){border-color:${Ye}}:host(${x}){border-color:${Io}}:host(${x}) .checked-indicator{background-color:${Ke}}:host(${x}:hover) .checked-indicator{background-color:${xo}}:host(:active){border-color:${Qe}}:host(${x}:active) .checked-indicator{background-color:${wo}}:host(:focus-visible){outline:none}:host(${N}){background-color:${Xe};border-color:${At}}:host(${x}${N}) .checked-indicator{background-color:${At}}`.withBehaviors(J(p`
473
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${N}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${N}):hover) .checked-indicator{background-color:Highlight}:host(${N}){border-color:GrayText;color:GrayText}:host(${N}${x}) .checked-indicator{background-color:GrayText}`)),yb=f.partial(`
472
+ :host{--size:16px;aspect-ratio:1;background-color:${_};border:${j} solid ${ge};border-radius:${mt};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${mt};color:${Ue};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:${Nt} solid ${dt};border-radius:${P}}:host(:not([slot='input']):focus-visible)::after{border-color:${qt}}:host(:hover){border-color:${Ye}}:host(${x}){border-color:${Io}}:host(${x}) .checked-indicator{background-color:${Ke}}:host(${x}:hover) .checked-indicator{background-color:${xo}}:host(:active){border-color:${Qe}}:host(${x}:active) .checked-indicator{background-color:${wo}}:host(:focus-visible){outline:none}:host(${N}){background-color:${Xe};border-color:${Et}}:host(${x}${N}) .checked-indicator{background-color:${Et}}`.withBehaviors(J(p`
473
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${N}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${N}):hover) .checked-indicator{background-color:Highlight}:host(${N}){border-color:GrayText;color:GrayText}:host(${N}${x}) .checked-indicator{background-color:GrayText}`)),kb=f.partial(`
474
474
  <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
475
- `);function kb(o={}){return f`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${kt(o.checkedIndicator)}</slot></template>`}const xb=kb({checkedIndicator:yb}),wb=ka.compose({name:`${g.prefix}-radio`,template:xb,styles:vb});wb.define(g.registry);const Sb={neutral:"neutral",brand:"brand",marigold:"marigold"},Cb={small:"small",medium:"medium",large:"large"};var Ib=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,ce=(o,t,e,i)=>{for(var s=i>1?void 0:i?zb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ib(t,e,s),s};class Oe extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let t="",e;this.customIcon&&(e=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let s=0;s<this.getMaxIcons();s++){const r=(s+1)/2;t+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${r===i?"selected":""}>${e??'<use href="#star"></use>'}</svg>`}return t}}ce([a({converter:Z})],Oe.prototype,"count",2),ce([a({attribute:"icon-view-box"})],Oe.prototype,"iconViewBox",2),ce([a({converter:Z})],Oe.prototype,"max",2),ce([a({converter:Z})],Oe.prototype,"value",2),ce([k],Oe.prototype,"slottedIcon",2),ce([k],Oe.prototype,"customIcon",2);class ji extends Oe{constructor(){super(...arguments),this.compact=!1}colorChanged(t,e){m(this.elementInternals,t,e,Sb)}sizeChanged(t,e){m(this.elementInternals,t,e,Cb)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}ce([a],ji.prototype,"color",2),ce([a],ji.prototype,"size",2),ce([a({mode:"boolean"})],ji.prototype,"compact",2);const Tb=p`
475
+ `);function xb(o={}){return f`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${kt(o.checkedIndicator)}</slot></template>`}const wb=xb({checkedIndicator:kb}),Sb=ka.compose({name:`${g.prefix}-radio`,template:wb,styles:yb});Sb.define(g.registry);const Cb={neutral:"neutral",brand:"brand",marigold:"marigold"},Ib={small:"small",medium:"medium",large:"large"};var zb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,ce=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&zb(t,e,s),s};class Oe extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let t="",e;this.customIcon&&(e=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let s=0;s<this.getMaxIcons();s++){const r=(s+1)/2;t+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${r===i?"selected":""}>${e??'<use href="#star"></use>'}</svg>`}return t}}ce([a({converter:Z})],Oe.prototype,"count",2),ce([a({attribute:"icon-view-box"})],Oe.prototype,"iconViewBox",2),ce([a({converter:Z})],Oe.prototype,"max",2),ce([a({converter:Z})],Oe.prototype,"value",2),ce([k],Oe.prototype,"slottedIcon",2),ce([k],Oe.prototype,"customIcon",2);class ji extends Oe{constructor(){super(...arguments),this.compact=!1}colorChanged(t,e){m(this.elementInternals,t,e,Cb)}sizeChanged(t,e){m(this.elementInternals,t,e,Ib)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}ce([a],ji.prototype,"color",2),ce([a],ji.prototype,"size",2),ce([a({mode:"boolean"})],ji.prototype,"compact",2);const Bb=p`
476
476
  ${z("inline-flex")}
477
477
 
478
- :host{--icon-size:16px;--icon-color-filled:${Bd};--icon-color-empty:${Vn};align-items:center;color:${A};font-family:${y};font-size:${D};line-height:${et};contain:layout style;user-select:none}:host(${B}){--icon-size:12px}:host(${C}){--icon-size:20px;font-size:${O};line-height:${V}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${ut}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${gi}) svg{--icon-color-filled:${A}}:host(${Rt}) svg{--icon-color-filled:${Bs}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${gi}:is([value^='-'],[value='0'])) svg,:host(${gi}:not([value])) svg,:host(${gi}) svg[selected] ~ svg{--icon-color-empty:${Cs}}:host(${Rt}:is([value^='-'],[value='0'])) svg,:host(${Rt}:not([value])) svg,:host(${Rt}) svg[selected] ~ svg{--icon-color-empty:${Ps}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Nt};font-weight:${R}}:host(${B}) .value-label,:host(${B}) ::slotted([slot='value']){margin-inline-start:${ut}}:host(${C}) .value-label,:host(${C}) ::slotted([slot='value']){margin-inline-start:${wt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Nt}}:host(${B}) .count-label::before,:host(${B}) ::slotted([slot='count'])::before{margin-inline:${ut}}:host(${C}) .count-label::before,:host(${C}) ::slotted([slot='count'])::before{margin-inline:${wt}}`.withBehaviors(J(p`
479
- :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),Bb=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function Pb(){return f` ${o=>f`${kt(o.generateIcons())}`}<slot name="icon" ${rt({property:"slottedIcon",filter:De("svg")})}>${Bb}</slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const Ab=Pb(),Eb=ji.compose({name:`${g.prefix}-rating-display`,template:Ab,styles:Tb});Eb.define(g.registry);const Nb={small:"small",medium:"medium"},Ob=bt,Fb={singleValue:"single-value"};function Sa(o,t,e,i){let s=gs(0,1,(o-t)/(e-t));return i===Pt.rtl&&(s=1-s),s}var _b=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,it=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&_b(t,e,s),s};class U extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Pt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Fb.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case ci:t.preventDefault(),this.value=this.direction!==Pt.rtl&&this.orientation!==bt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case ai:t.preventDefault(),this.value=this.direction!==Pt.rtl&&this.orientation!==bt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case ri:case ni:t.shiftKey||(t.preventDefault(),this.increment());break;case si:case ii:t.shiftKey||(t.preventDefault(),this.decrement());break}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===bt.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,i=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const s=this.orientation===bt.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Ob.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){m(this.elementInternals,t,e,Nb)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
480
- :host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.setValidity({customError:!!t},t)}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,i)}}get value(){return $.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),i=gs(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(i!==t){this.value=i;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),$.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const t=parseFloat(this.min);if(!Number.isNaN(t))return t}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??bt.horizontal,m(this.elementInternals,t,e,bt),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=fs(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),$.getNotifier(this).subscribe(this,"max"),$.getNotifier(this).subscribe(this,"min"),$.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),$.getNotifier(this).unsubscribe(this,"max"),$.getNotifier(this).unsubscribe(this,"min"),$.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==Pt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),i=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=i}decrement(){const t=this.direction!==Pt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),i=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=i}setSliderPosition(t){const i=(1-Sa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,s=`calc(100% - ${i}%)`,r=this.orientation!==bt.vertical&&t===Pt.rtl?`${i}%`:`calc(100% - ${i}%)`;this.position=`--slider-thumb: ${s}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(t){this.setupTrackConstraints();const e=Sa(t,this.orientation===bt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===bt.vertical?this.trackHeight:this.trackWidth,this.direction),i=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const i=Math.round(e/this.stepAsNumber),s=e-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=s>=Number(this.stepAsNumber)/2?e-s+Number(this.stepAsNumber):e-s,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}U.formAssociated=!0,it([a],U.prototype,"size",2),it([a({attribute:"value",mode:"fromView"})],U.prototype,"initialValue",2),it([k],U.prototype,"direction",2),it([k],U.prototype,"isDragging",2),it([k],U.prototype,"position",2),it([k],U.prototype,"trackWidth",2),it([k],U.prototype,"trackMinWidth",2),it([k],U.prototype,"trackHeight",2),it([k],U.prototype,"trackLeft",2),it([k],U.prototype,"trackMinHeight",2),it([k],U.prototype,"valueTextFormatter",2),it([a({mode:"boolean"})],U.prototype,"disabled",2),it([a({converter:bs})],U.prototype,"min",2),it([a({converter:bs})],U.prototype,"max",2),it([a({converter:bs})],U.prototype,"step",2),it([a],U.prototype,"orientation",2),it([a],U.prototype,"mode",2);const Lb=p`
478
+ :host{--icon-size:16px;--icon-color-filled:${Pd};--icon-color-empty:${Vn};align-items:center;color:${A};font-family:${y};font-size:${D};line-height:${et};contain:layout style;user-select:none}:host(${B}){--icon-size:12px}:host(${C}){--icon-size:20px;font-size:${O};line-height:${V}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${ut}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${gi}) svg{--icon-color-filled:${A}}:host(${Rt}) svg{--icon-color-filled:${Bs}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${gi}:is([value^='-'],[value='0'])) svg,:host(${gi}:not([value])) svg,:host(${gi}) svg[selected] ~ svg{--icon-color-empty:${Cs}}:host(${Rt}:is([value^='-'],[value='0'])) svg,:host(${Rt}:not([value])) svg,:host(${Rt}) svg[selected] ~ svg{--icon-color-empty:${Ps}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Ot};font-weight:${R}}:host(${B}) .value-label,:host(${B}) ::slotted([slot='value']){margin-inline-start:${ut}}:host(${C}) .value-label,:host(${C}) ::slotted([slot='value']){margin-inline-start:${wt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Ot}}:host(${B}) .count-label::before,:host(${B}) ::slotted([slot='count'])::before{margin-inline:${ut}}:host(${C}) .count-label::before,:host(${C}) ::slotted([slot='count'])::before{margin-inline:${wt}}`.withBehaviors(J(p`
479
+ :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),Pb=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function Ab(){return f` ${o=>f`${kt(o.generateIcons())}`}<slot name="icon" ${rt({property:"slottedIcon",filter:De("svg")})}>${Pb}</slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const Eb=Ab(),Nb=ji.compose({name:`${g.prefix}-rating-display`,template:Eb,styles:Bb});Nb.define(g.registry);const Ob={small:"small",medium:"medium"},Fb=bt,_b={singleValue:"single-value"};function Sa(o,t,e,i){let s=gs(0,1,(o-t)/(e-t));return i===At.rtl&&(s=1-s),s}var Mb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,it=(o,t,e,i)=>{for(var s=i>1?void 0:i?Lb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Mb(t,e,s),s};class U extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=At.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=_b.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case ci:t.preventDefault(),this.value=this.direction!==At.rtl&&this.orientation!==bt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case ai:t.preventDefault(),this.value=this.direction!==At.rtl&&this.orientation!==bt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case ri:case ni:t.shiftKey||(t.preventDefault(),this.increment());break;case si:case ii:t.shiftKey||(t.preventDefault(),this.decrement());break}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===bt.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,i=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const s=this.orientation===bt.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Fb.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){m(this.elementInternals,t,e,Ob)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
480
+ :host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.setValidity({customError:!!t},t)}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,i)}}get value(){return $.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),i=gs(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(i!==t){this.value=i;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),$.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const t=parseFloat(this.min);if(!Number.isNaN(t))return t}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??bt.horizontal,m(this.elementInternals,t,e,bt),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=fs(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),$.getNotifier(this).subscribe(this,"max"),$.getNotifier(this).subscribe(this,"min"),$.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),$.getNotifier(this).unsubscribe(this,"max"),$.getNotifier(this).unsubscribe(this,"min"),$.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==At.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),i=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=i}decrement(){const t=this.direction!==At.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),i=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=i}setSliderPosition(t){const i=(1-Sa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,s=`calc(100% - ${i}%)`,r=this.orientation!==bt.vertical&&t===At.rtl?`${i}%`:`calc(100% - ${i}%)`;this.position=`--slider-thumb: ${s}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(t){this.setupTrackConstraints();const e=Sa(t,this.orientation===bt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===bt.vertical?this.trackHeight:this.trackWidth,this.direction),i=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const i=Math.round(e/this.stepAsNumber),s=e-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=s>=Number(this.stepAsNumber)/2?e-s+Number(this.stepAsNumber):e-s,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}U.formAssociated=!0,it([a],U.prototype,"size",2),it([a({attribute:"value",mode:"fromView"})],U.prototype,"initialValue",2),it([k],U.prototype,"direction",2),it([k],U.prototype,"isDragging",2),it([k],U.prototype,"position",2),it([k],U.prototype,"trackWidth",2),it([k],U.prototype,"trackMinWidth",2),it([k],U.prototype,"trackHeight",2),it([k],U.prototype,"trackLeft",2),it([k],U.prototype,"trackMinHeight",2),it([k],U.prototype,"valueTextFormatter",2),it([a({mode:"boolean"})],U.prototype,"disabled",2),it([a({converter:bs})],U.prototype,"min",2),it([a({converter:bs})],U.prototype,"max",2),it([a({converter:bs})],U.prototype,"step",2),it([a],U.prototype,"orientation",2),it([a],U.prototype,"mode",2);const Hb=p`
481
481
  ${z("inline-grid")}
482
482
 
483
483
  :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${Ke};--track-color:${ge};--slider-direction:90deg;--border-radius:${P};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${xo}}:host(:active){--rail-color:${wo}}:host(:disabled){--rail-color:${E};--track-color:${Xe}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${B}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Gt}}:host(${I}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${qt};outline:1px solid ${As}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
@@ -485,55 +485,56 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
485
485
  );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${I})::after,:host(${I}) .track{height:100%;width:var(--track-size)}:host(${I}) .track{top:var(--track-overhang);bottom:var(--track-overhang)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${I}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
486
486
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${_} calc(var(--step-rate) - 1px),${_} var(--step-rate)
487
487
  )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${I}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${mt};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${_} inset;border:calc(var(--thumb-size) * 0.05) solid ${se};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(J(p`
488
- .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function Hb(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${yt("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${yt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${kt(o.thumb)}</slot></div></template>`}const Vb=Hb({thumb:'<div class="thumb"></div>'}),Db=U.compose({name:`${g.prefix}-slider`,template:Vb,styles:Lb});Db.define(g.registry);const Rb={primary:"primary",inverted:"inverted"},jb={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"};var qb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,Ca=(o,t,e,i)=>{for(var s=i>1?void 0:i?Gb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qb(t,e,s),s};class Ub extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class Qs extends Ub{sizeChanged(t,e){m(this.elementInternals,t,e,jb)}appearanceChanged(t,e){m(this.elementInternals,t,e,Rb)}}Ca([a],Qs.prototype,"size",2),Ca([a],Qs.prototype,"appearance",2);const Wb=p`
488
+ .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function Vb(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${yt("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${yt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${kt(o.thumb)}</slot></div></template>`}const Db=Vb({thumb:'<div class="thumb"></div>'}),Rb=U.compose({name:`${g.prefix}-slider`,template:Db,styles:Hb});Rb.define(g.registry);const jb={primary:"primary",inverted:"inverted"},qb={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"};var Gb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Ca=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ub(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Gb(t,e,s),s};class Wb extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class Qs extends Wb{sizeChanged(t,e){m(this.elementInternals,t,e,qb)}appearanceChanged(t,e){m(this.elementInternals,t,e,jb)}}Ca([a],Qs.prototype,"size",2),Ca([a],Qs.prototype,"appearance",2);const Xb=p`
489
489
  ${z("inline-flex")}
490
490
 
491
- :host{--duration:1.5s;--indicatorSize:${nt};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${ko}){--indicatorSize:${Et};--size:20px}:host(${mo}){--indicatorSize:${Et};--size:24px}:host(${B}){--indicatorSize:${Et};--size:28px}:host(${C}){--indicatorSize:${nt};--size:36px}:host(${hi}){--indicatorSize:${nt};--size:40px}:host(${Yl}){--indicatorSize:${_s};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Ni}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Ps};border-radius:50%}:host(${pn}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${In};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${pn}) .indicator{color:${gd}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(J(p`
492
- .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),Xb=f`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,Kb=Qs.compose({name:`${g.prefix}-spinner`,template:Xb,styles:Wb});Kb.define(g.registry);class Yb extends It{constructor(){super(),this.elementInternals.role="switch"}}function Qb(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${kt(o.switch)}</slot></template>`}const Zb=Qb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Jb=p`
491
+ :host{--duration:1.5s;--indicatorSize:${nt};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${ko}){--indicatorSize:${Nt};--size:20px}:host(${mo}){--indicatorSize:${Nt};--size:24px}:host(${B}){--indicatorSize:${Nt};--size:28px}:host(${C}){--indicatorSize:${nt};--size:36px}:host(${hi}){--indicatorSize:${nt};--size:40px}:host(${Ql}){--indicatorSize:${_s};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Ni}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Ps};border-radius:50%}:host(${pn}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${In};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${pn}) .indicator{color:${bd}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(J(p`
492
+ .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),Kb=f`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,Yb=Qs.compose({name:`${g.prefix}-spinner`,template:Kb,styles:Xb});Yb.define(g.registry);class Qb extends It{constructor(){super(),this.elementInternals.role="switch"}}function Zb(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${kt(o.switch)}</slot></template>`}const Jb=Zb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),tf=p`
493
493
  ${z("inline-flex")}
494
494
 
495
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ut};width:40px;height:20px;background-color:${St};border:1px solid ${ge};border-radius:${mt};cursor:pointer}:host(:hover){background:none;border-color:${Ye}}:host(:active){border-color:${Qe}}:host(:disabled),:host([readonly]){border:1px solid ${At};background-color:none;pointer:default}:host(${x}){background:${Ke};border-color:${Ke}}:host(${x}:hover){background:${xo};border-color:${xo}}:host(${x}:active){background:${wo};border-color:${wo}}:host(${x}:disabled){background:${Xe};border-color:${At}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ft};transition-duration:${Ls};transition-timing-function:${Ni};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${Ue};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${od}}:host(${x}:active) .checked-indicator{background:${id}}:host(:hover) .checked-indicator{background-color:${Wc}}:host(:active) .checked-indicator{background-color:${Xc}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${E}}:host(${x}:disabled) .checked-indicator{background:${E}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${dt};outline:${Et} solid ${dt};box-shadow:${Bi},0 0 0 2px ${qt}}`.withBehaviors(J(p`
496
- :host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}`)),tf=Yb.compose({name:`${g.prefix}-switch`,template:Zb,styles:Jb});tf.define(g.registry);class ef extends S{}function of(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const sf=of(),rf=p`
495
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ut};width:40px;height:20px;background-color:${St};border:1px solid ${ge};border-radius:${mt};cursor:pointer}:host(:hover){background:none;border-color:${Ye}}:host(:active){border-color:${Qe}}:host(:disabled),:host([readonly]){border:1px solid ${Et};background-color:none;pointer:default}:host(${x}){background:${Ke};border-color:${Ke}}:host(${x}:hover){background:${xo};border-color:${xo}}:host(${x}:active){background:${wo};border-color:${wo}}:host(${x}:disabled){background:${Xe};border-color:${Et}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ft};transition-duration:${Ls};transition-timing-function:${Ni};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${Ue};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${id}}:host(${x}:active) .checked-indicator{background:${sd}}:host(:hover) .checked-indicator{background-color:${Xc}}:host(:active) .checked-indicator{background-color:${Kc}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${E}}:host(${x}:disabled) .checked-indicator{background:${E}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${dt};outline:${Nt} solid ${dt};box-shadow:${Bi},0 0 0 2px ${qt}}`.withBehaviors(J(p`
496
+ :host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}`)),ef=Qb.compose({name:`${g.prefix}-switch`,template:Jb,styles:tf});ef.define(g.registry);class of extends S{}function sf(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const rf=sf(),nf=p`
497
497
  ${z("block")}
498
498
 
499
- :host{box-sizing:border-box;padding:${$t} ${pt}}`,nf=ef.compose({name:`${g.prefix}-tab-panel`,template:sf,styles:rf});nf.define(g.registry);var af=Object.defineProperty,lf=Object.getOwnPropertyDescriptor,cf=(o,t,e,i)=>{for(var s=i>1?void 0:i?lf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&af(t,e,s),s};class Zs extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
500
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}cf([a({mode:"boolean"})],Zs.prototype,"disabled",2),Zt(Zs,Yt);function df(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Qt(o)}<span class="tab-content"><slot></slot></span>${he(o)}</template>`}const hf=df({}),uf=p`
499
+ :host{box-sizing:border-box;padding:${$t} ${pt}}`,af=of.compose({name:`${g.prefix}-tab-panel`,template:rf,styles:nf});af.define(g.registry);var lf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,df=(o,t,e,i)=>{for(var s=i>1?void 0:i?cf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&lf(t,e,s),s};class Zs extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
500
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}df([a({mode:"boolean"})],Zs.prototype,"disabled",2),Zt(Zs,Yt);function hf(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Qt(o)}<span class="tab-content"><slot></slot></span>${he(o)}</template>`}const uf=hf({}),pf=p`
501
501
  ${z("inline-flex")}
502
502
 
503
503
  :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${V};font-family:${y};font-size:${O};color:${jt};fill:currentcolor;grid-row:1;padding:${$t} ${pt};border-radius:${P}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${A};font-weight:${R}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${V};font-weight:${R}}:host([aria-selected='true'])::after{background-color:${Io};border-radius:${mt};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${So};border-radius:${mt};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${E}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${E};color:${E}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Gt};box-shadow:0 0 0 3px ${qt};outline:1px solid ${As}}`.withBehaviors(J(p`
504
- :host([aria-selected='true'])::after{background-color:Highlight}`)),pf=Zs.compose({name:`${g.prefix}-tab`,template:hf,styles:uf});pf.define(g.registry);const gf={subtle:"subtle",transparent:"transparent"},qi=bt;var bf=Object.defineProperty,ff=Object.getOwnPropertyDescriptor,Fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?ff(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&bf(t,e,s),s};class Mo extends S{constructor(){super(...arguments),this.orientation=qi.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case si:t.preventDefault(),this.adjustBackward(t);break;case ri:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case ni:t.preventDefault(),this.adjustBackward(t);break;case ii:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case ci:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ai:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((s,r)=>{if(s.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(s),d=this.tabIds[r],u=this.tabpanelIds[r];s.setAttribute("id",d),s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("aria-controls",u),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=s,this.activeid=d)}s.style[t]="",s.style[e]="",s.style[i]=`${r+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],s=this.tabpanelIds[e];t.setAttribute("id",s),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${je()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${je()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===qi.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),i=e.indexOf(this.activetab),s=gs(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else{if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}}adjustBackward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else i-1<0?i=e.length-1:i-=1}moveToTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Fe([a],Mo.prototype,"orientation",2),Fe([a],Mo.prototype,"activeid",2),Fe([k],Mo.prototype,"tabs",2),Fe([k],Mo.prototype,"tabpanels",2);class Lo extends Mo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=gf.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===qi.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===qi.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
504
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),gf=Zs.compose({name:`${g.prefix}-tab`,template:uf,styles:pf});gf.define(g.registry);const bf={subtle:"subtle",transparent:"transparent"},qi=bt;var ff=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,Fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?mf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ff(t,e,s),s};class Mo extends S{constructor(){super(...arguments),this.orientation=qi.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case si:t.preventDefault(),this.adjustBackward(t);break;case ri:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case ni:t.preventDefault(),this.adjustBackward(t);break;case ii:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case ci:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ai:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((s,r)=>{if(s.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(s),d=this.tabIds[r],u=this.tabpanelIds[r];s.setAttribute("id",d),s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("aria-controls",u),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=s,this.activeid=d)}s.style[t]="",s.style[e]="",s.style[i]=`${r+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],s=this.tabpanelIds[e];t.setAttribute("id",s),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${je()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${je()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===qi.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),i=e.indexOf(this.activetab),s=gs(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else{if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}}adjustBackward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else i-1<0?i=e.length-1:i-=1}moveToTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Fe([a],Mo.prototype,"orientation",2),Fe([a],Mo.prototype,"activeid",2),Fe([k],Mo.prototype,"tabs",2),Fe([k],Mo.prototype,"tabpanels",2);class Lo extends Mo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=bf.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===qi.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===qi.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
505
505
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
506
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Fe([a],Lo.prototype,"appearance",2),Fe([a({mode:"boolean"})],Lo.prototype,"disabled",2),Fe([a],Lo.prototype,"size",2),Zt(Lo,Yt);function mf(o={}){return f` ${Qt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${rt("tabs")}></slot></div>${he(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${rt("tabpanels")}></slot></div>`}const $f=mf({}),vf=p`
506
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Fe([a],Lo.prototype,"appearance",2),Fe([a({mode:"boolean"})],Lo.prototype,"disabled",2),Fe([a],Lo.prototype,"size",2),Zt(Lo,Yt);function $f(o={}){return f` ${Qt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${rt("tabs")}></slot></div>${he(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${rt("tabpanels")}></slot></div>`}const vf=$f({}),yf=p`
507
507
  ${z("grid")}
508
508
 
509
- :host{box-sizing:border-box;font-family:${y};font-size:${O};line-height:${V};color:${jt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${E}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${E}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${E}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${E}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${P}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${E}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${wi};color:${xs};fill:${vn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${We};fill:${We};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${O};line-height:${V};padding:${be} ${wt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ht};line-height:${xt};padding:${Ai} ${pt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${ea};transition-timing-function:${Vs}}:host ::slotted(fluent-tab)::after{height:${nt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${nt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${nt};border-radius:${mt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${nt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${nt};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${nt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${be};padding-bottom:${be}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${To};padding-bottom:${To}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${at};padding-bottom:${at}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${wt};left:${wt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${pt};left:${pt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${pt};left:${pt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${be};bottom:${be}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${at};bottom:${at}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Je};bottom:${Je}}`,yf=Lo.compose({name:`${g.prefix}-tabs`,template:$f,styles:vf});yf.define(g.registry);const kf=o=>o.getAttribute("aria-disabled")==="true",xf=o=>o.hasAttribute("hidden"),Gi=o=>!kf(o)&&!xf(o),Ia={subtle:"subtle",transparent:"transparent"},wf={small:"small",medium:"medium",large:"large"},lo=bt;var Sf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,co=(o,t,e,i)=>{for(var s=i>1?void 0:i?Cf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Sf(t,e,s),s};class Ho extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=lo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Gi(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=fs(this);switch(t.key){case si:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case ri:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case ni:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case ii:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case ci:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ai:t.preventDefault(),this.adjust(this.tabs.filter(i=>Gi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??lo.horizontal,m(this.elementInternals,t,e,lo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const i=this.activeTabIndex===e&&Gi(t),s=this.tabIds[e];t.setAttribute("id",s),t.setAttribute("aria-selected",i?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=t,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${je()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===lo.horizontal}adjust(t){const e=this.tabs.filter(n=>Gi(n)),i=e.indexOf(this.activetab),s=fl(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}co([a({mode:"boolean"})],Ho.prototype,"disabled",2),co([a],Ho.prototype,"orientation",2),co([a],Ho.prototype,"activeid",2),co([k],Ho.prototype,"tabs",2);class Js extends Ho{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ia.transparent}appearanceChanged(t,e){m(this.elementInternals,t,e,Ia)}sizeChanged(t,e){m(this.elementInternals,t,e,wf)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===lo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===lo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}co([a],Js.prototype,"appearance",2),co([a],Js.prototype,"size",2);const If=f`<template role="tablist"><slot name="tab" ${rt("tabs")}></slot></template>`,zf=p`
509
+ :host{box-sizing:border-box;font-family:${y};font-size:${O};line-height:${V};color:${jt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${E}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${E}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${E}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${E}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${P}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${E}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${wi};color:${xs};fill:${vn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${We};fill:${We};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${O};line-height:${V};padding:${be} ${wt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ht};line-height:${xt};padding:${Ai} ${pt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${ea};transition-timing-function:${Vs}}:host ::slotted(fluent-tab)::after{height:${nt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${nt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${nt};border-radius:${mt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${nt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${nt};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${nt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${be};padding-bottom:${be}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${To};padding-bottom:${To}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${at};padding-bottom:${at}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${wt};left:${wt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${pt};left:${pt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${pt};left:${pt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${be};bottom:${be}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${at};bottom:${at}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Je};bottom:${Je}}`,kf=Lo.compose({name:`${g.prefix}-tabs`,template:vf,styles:yf});kf.define(g.registry);const xf=o=>o.getAttribute("aria-disabled")==="true",wf=o=>o.hasAttribute("hidden"),Gi=o=>!xf(o)&&!wf(o),Ia={subtle:"subtle",transparent:"transparent"},Sf={small:"small",medium:"medium",large:"large"},lo=bt;var Cf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,co=(o,t,e,i)=>{for(var s=i>1?void 0:i?If(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Cf(t,e,s),s};class Ho extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=lo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Gi(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=fs(this);switch(t.key){case si:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case ri:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case ni:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case ii:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case ci:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ai:t.preventDefault(),this.adjust(this.tabs.filter(i=>Gi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??lo.horizontal,m(this.elementInternals,t,e,lo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const i=this.activeTabIndex===e&&Gi(t),s=this.tabIds[e];t.setAttribute("id",s),t.setAttribute("aria-selected",i?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=t,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${je()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===lo.horizontal}adjust(t){const e=this.tabs.filter(n=>Gi(n)),i=e.indexOf(this.activetab),s=ml(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}co([a({mode:"boolean"})],Ho.prototype,"disabled",2),co([a],Ho.prototype,"orientation",2),co([a],Ho.prototype,"activeid",2),co([k],Ho.prototype,"tabs",2);class Js extends Ho{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ia.transparent}appearanceChanged(t,e){m(this.elementInternals,t,e,Ia)}sizeChanged(t,e){m(this.elementInternals,t,e,Sf)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===lo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===lo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}co([a],Js.prototype,"appearance",2),co([a],Js.prototype,"size",2);const zf=f`<template role="tablist"><slot name="tab" ${rt("tabs")}></slot></template>`,Tf=p`
510
510
  ${z("flex")}
511
511
 
512
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${jt};flex-direction:row}:host(${I}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${ea};transition-timing-function:${Vs}}:host ::slotted([slot='tab'])::after{height:${nt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${I}) ::slotted([slot='tab'])::after{width:${nt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${nt};border-radius:${mt};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${E}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${nt};margin-block-start:auto;transform-origin:left}:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${nt};margin-inline-end:auto;transform-origin:top}:host(:where(${B},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${B}) ::slotted([slot='tab']){--tabPaddingBlock:${be};--tabPaddingInline:${wt};font-size:${O};line-height:${V}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${Ai};--tabPaddingInline:${pt};font-size:${ht};line-height:${xt}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${pt}}:host(${B}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${wt}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${pt}}:host(${I}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${I}) ::slotted([slot='tab']){--tabPaddingBlock:${at}}:host(${I}${B}) ::slotted([slot='tab']){--tabPaddingBlock:${To}}:host(${I}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${at}}:host(${I}) ::slotted([slot='tab'])::after,:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${I}){--tabIndicatorInsetBlock:${at}}:host(${I}${B}){--tabIndicatorInsetBlock:${be}}:host(${I}${C}){--tabIndicatorInsetBlock:${Je}}:host(${N}){cursor:not-allowed;color:${E}}:host(${N}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${E}}:host(${N}) ::slotted([slot='tab']:after){background-color:${E}}:host(${N}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${E}}:host(${N}) ::slotted([slot='tab']:hover):before{content:unset}:host(${T}) ::slotted([slot='tab']:hover){background-color:${wi};color:${xs};fill:${vn}}:host(${T}) ::slotted([slot='tab']:active){background-color:${We};fill:${We};color:${A}}`,Tf=Js.compose({name:`${g.prefix}-tablist`,template:If,styles:zf});Tf.define(g.registry);const Bf={small:"small",medium:"medium",large:"large"},Vo={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Pf=[Vo.filledLighter,Vo.filledDarker],Ui={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Af=Object.defineProperty,Ef=Object.getOwnPropertyDescriptor,W=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ef(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Af(t,e,s),s};class Y extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Ui.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){m(this.elementInternals,t,e,Ui,"resize-"),v(this.elementInternals,"resize",vs(Ui,e)&&e!==Ui.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Y.formAssociated=!0,W([k],Y.prototype,"defaultSlottedNodes",2),W([k],Y.prototype,"labelSlottedNodes",2),W([a],Y.prototype,"autocomplete",2),W([a({attribute:"auto-resize",mode:"boolean"})],Y.prototype,"autoResize",2),W([a({attribute:"dirname"})],Y.prototype,"dirName",2),W([a({mode:"boolean"})],Y.prototype,"disabled",2),W([a({attribute:"display-shadow",mode:"boolean"})],Y.prototype,"displayShadow",2),W([a({attribute:"form"})],Y.prototype,"initialForm",2),W([a({attribute:"maxlength",converter:Z})],Y.prototype,"maxLength",2),W([a({attribute:"minlength",converter:Z})],Y.prototype,"minLength",2),W([a],Y.prototype,"name",2),W([a],Y.prototype,"placeholder",2),W([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),W([a({mode:"boolean"})],Y.prototype,"required",2),W([a({mode:"fromView"})],Y.prototype,"resize",2),W([a({mode:"boolean"})],Y.prototype,"spellcheck",2);class Wi extends Y{constructor(){super(...arguments),this.appearance=Vo.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){v(this.elementInternals,t,!1),vs(Vo,e)?v(this.elementInternals,e,!0):this.appearance=Vo.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(t,e){m(this.elementInternals,t,e,Bf)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),$.getNotifier(this).subscribe(this,"appearance"),$.getNotifier(this).subscribe(this,"displayShadow"),$.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this,"appearance"),$.getNotifier(this).unsubscribe(this,"displayShadow"),$.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&Pf.includes(this.appearance))}}W([a({mode:"fromView"})],Wi.prototype,"appearance",2),W([a({mode:"boolean"})],Wi.prototype,"block",2),W([a],Wi.prototype,"size",2);const Nf=p`
512
+ :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${jt};flex-direction:row}:host(${I}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${ea};transition-timing-function:${Vs}}:host ::slotted([slot='tab'])::after{height:${nt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${I}) ::slotted([slot='tab'])::after{width:${nt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${nt};border-radius:${mt};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${E}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${nt};margin-block-start:auto;transform-origin:left}:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${nt};margin-inline-end:auto;transform-origin:top}:host(:where(${B},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${B}) ::slotted([slot='tab']){--tabPaddingBlock:${be};--tabPaddingInline:${wt};font-size:${O};line-height:${V}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${Ai};--tabPaddingInline:${pt};font-size:${ht};line-height:${xt}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${pt}}:host(${B}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${wt}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${pt}}:host(${I}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${I}) ::slotted([slot='tab']){--tabPaddingBlock:${at}}:host(${I}${B}) ::slotted([slot='tab']){--tabPaddingBlock:${To}}:host(${I}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${at}}:host(${I}) ::slotted([slot='tab'])::after,:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${I}){--tabIndicatorInsetBlock:${at}}:host(${I}${B}){--tabIndicatorInsetBlock:${be}}:host(${I}${C}){--tabIndicatorInsetBlock:${Je}}:host(${N}){cursor:not-allowed;color:${E}}:host(${N}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${E}}:host(${N}) ::slotted([slot='tab']:after){background-color:${E}}:host(${N}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${E}}:host(${N}) ::slotted([slot='tab']:hover):before{content:unset}:host(${T}) ::slotted([slot='tab']:hover){background-color:${wi};color:${xs};fill:${vn}}:host(${T}) ::slotted([slot='tab']:active){background-color:${We};fill:${We};color:${A}}`,Bf=Js.compose({name:`${g.prefix}-tablist`,template:zf,styles:Tf});Bf.define(g.registry);const Pf={small:"small",medium:"medium",large:"large"},Vo={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Af=[Vo.filledLighter,Vo.filledDarker],Ui={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Ef=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,W=(o,t,e,i)=>{for(var s=i>1?void 0:i?Nf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ef(t,e,s),s};class Y extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Ui.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){m(this.elementInternals,t,e,Ui,"resize-"),v(this.elementInternals,"resize",vs(Ui,e)&&e!==Ui.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Y.formAssociated=!0,W([k],Y.prototype,"defaultSlottedNodes",2),W([k],Y.prototype,"labelSlottedNodes",2),W([a],Y.prototype,"autocomplete",2),W([a({attribute:"auto-resize",mode:"boolean"})],Y.prototype,"autoResize",2),W([a({attribute:"dirname"})],Y.prototype,"dirName",2),W([a({mode:"boolean"})],Y.prototype,"disabled",2),W([a({attribute:"display-shadow",mode:"boolean"})],Y.prototype,"displayShadow",2),W([a({attribute:"form"})],Y.prototype,"initialForm",2),W([a({attribute:"maxlength",converter:Z})],Y.prototype,"maxLength",2),W([a({attribute:"minlength",converter:Z})],Y.prototype,"minLength",2),W([a],Y.prototype,"name",2),W([a],Y.prototype,"placeholder",2),W([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),W([a({mode:"boolean"})],Y.prototype,"required",2),W([a({mode:"fromView"})],Y.prototype,"resize",2),W([a({mode:"boolean"})],Y.prototype,"spellcheck",2);class Wi extends Y{constructor(){super(...arguments),this.appearance=Vo.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){v(this.elementInternals,t,!1),vs(Vo,e)?v(this.elementInternals,e,!0):this.appearance=Vo.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(t,e){m(this.elementInternals,t,e,Pf)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),$.getNotifier(this).subscribe(this,"appearance"),$.getNotifier(this).subscribe(this,"displayShadow"),$.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this,"appearance"),$.getNotifier(this).unsubscribe(this,"displayShadow"),$.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&Af.includes(this.appearance))}}W([a({mode:"fromView"})],Wi.prototype,"appearance",2),W([a({mode:"boolean"})],Wi.prototype,"block",2),W([a],Wi.prototype,"size",2);const Of=p`
513
513
  ${z("inline-block")}
514
514
 
515
- :host{--font-size:${O};--line-height:${V};--padding-inline:${pt};--padding-block:${be};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${j};--control-padding-inline:${ut};--color:${A};--background-color:${_};--border-color:${se};--border-block-end-color:${ge};--placeholder-color:${$n};--focus-indicator-color:${Io};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${y};font-size:var(--font-size);font-weight:${H};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${So};--border-block-end-color:${Ye}}:host(:active){--border-color:${Si};--border-block-end-color:${Qe}}:host(:focus-within){outline:none}:host(${bo}:not([hidden])){display:block}:host(${B}){--font-size:${D};--line-height:${et};--min-block-size:40px;--padding-block:${Pi};--padding-inline:${wt};--control-padding-inline:${ut}}:host(${C}){--font-size:${ht};--line-height:${xt};--min-block-size:64px;--padding-block:${at};--padding-inline:${$t};--control-padding-inline:${wt}}:host(${yc}:not(:disabled)){--resize:both}:host(${kc}:not(:disabled)){--resize:horizontal}:host(${xc}:not(:disabled)){--resize:vertical}:host(${dn}){--block-size:auto;--contain-size:inline-size}:host(${qe}){--background-color:${ki};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Ge}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${qe}${hn}),:host(${Ge}${hn}){--box-shadow:${Fs}}:host(${Dc}){--border-color:${Es};--border-block-end-color:${Es}}:host(:disabled){--color:${E};--background-color:${St};--border-color:${At};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${E};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${P};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${bo}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${P} ${P};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${P});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${to};transition-duration:${ta};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ls};transition-delay:${eo}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Pi};padding-inline-end:${Nt}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${dn}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${Ue};background-color:${xn}}`.withBehaviors(J(p`
516
- :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function Of(){return f`<template><label ${yt("labelEl")} for="control" part="label"><slot name="label" ${rt({property:"labelSlottedNodes",filter:ms})}></slot></label><div class="root" part="root"><textarea ${yt("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${rt({property:"defaultSlottedNodes",filter:ms})}></slot></div></template>`}const Ff=Of(),_f=Wi.compose({name:`${g.prefix}-textarea`,template:Ff,styles:Nf,shadowOptions:{delegatesFocus:!0}});_f.define(g.registry);const Mf={small:"small",medium:"medium",large:"large"},Lf={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Hf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Vf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Df=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,M=(o,t,e,i)=>{for(var s=i>1?void 0:i?Rf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Df(t,e,s),s};class L extends S{constructor(){super(...arguments),this.type=Hf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(t,e){this.value=e}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return $.track(this,"value"),this.currentValue}set value(t){this.currentValue=t,this.$fastController.isConnected&&(this.control.value=t??"",this.setFormValue(t),this.setValidity(),$.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(s=>s.getAttribute("type")==="submit");if(e){e.click();return}t.filter(s=>Vf.includes(s.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}}L.formAssociated=!0,M([a],L.prototype,"autocomplete",2),M([a({mode:"boolean"})],L.prototype,"autofocus",2),M([a({attribute:"current-value"})],L.prototype,"currentValue",2),M([k],L.prototype,"defaultSlottedNodes",2),M([a],L.prototype,"dirname",2),M([a({mode:"boolean"})],L.prototype,"disabled",2),M([a({attribute:"form"})],L.prototype,"formAttribute",2),M([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),M([a],L.prototype,"list",2),M([a({converter:Z})],L.prototype,"maxlength",2),M([a({converter:Z})],L.prototype,"minlength",2),M([a({mode:"boolean"})],L.prototype,"multiple",2),M([a],L.prototype,"name",2),M([a],L.prototype,"pattern",2),M([a],L.prototype,"placeholder",2),M([a({attribute:"readonly",mode:"boolean"})],L.prototype,"readOnly",2),M([a({mode:"boolean"})],L.prototype,"required",2),M([a({converter:Z})],L.prototype,"size",2),M([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],L.prototype,"spellcheck",2),M([a],L.prototype,"type",2),M([k],L.prototype,"controlLabel",2);class Xi extends L{appearanceChanged(t,e){m(this.elementInternals,t,e,Lf)}controlSizeChanged(t,e){m(this.elementInternals,t,e,Mf)}}M([a],Xi.prototype,"appearance",2),M([a({attribute:"control-size"})],Xi.prototype,"controlSize",2),Zt(Xi,Yt);const jf=p`
515
+ :host{--font-size:${O};--line-height:${V};--padding-inline:${pt};--padding-block:${be};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${j};--control-padding-inline:${ut};--color:${A};--background-color:${_};--border-color:${se};--border-block-end-color:${ge};--placeholder-color:${$n};--focus-indicator-color:${Io};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${y};font-size:var(--font-size);font-weight:${H};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${So};--border-block-end-color:${Ye}}:host(:active){--border-color:${Si};--border-block-end-color:${Qe}}:host(:focus-within){outline:none}:host(${bo}:not([hidden])){display:block}:host(${B}){--font-size:${D};--line-height:${et};--min-block-size:40px;--padding-block:${Pi};--padding-inline:${wt};--control-padding-inline:${ut}}:host(${C}){--font-size:${ht};--line-height:${xt};--min-block-size:64px;--padding-block:${at};--padding-inline:${$t};--control-padding-inline:${wt}}:host(${kc}:not(:disabled)){--resize:both}:host(${xc}:not(:disabled)){--resize:horizontal}:host(${wc}:not(:disabled)){--resize:vertical}:host(${dn}){--block-size:auto;--contain-size:inline-size}:host(${qe}){--background-color:${ki};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Ge}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${qe}${hn}),:host(${Ge}${hn}){--box-shadow:${Fs}}:host(${Rc}){--border-color:${Es};--border-block-end-color:${Es}}:host(:disabled){--color:${E};--background-color:${St};--border-color:${Et};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${E};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${P};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${bo}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${P} ${P};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${P});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${to};transition-duration:${ta};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ls};transition-delay:${eo}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Pi};padding-inline-end:${Ot}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${dn}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${Ue};background-color:${xn}}`.withBehaviors(J(p`
516
+ :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function Ff(){return f`<template><label ${yt("labelEl")} for="control" part="label"><slot name="label" ${rt({property:"labelSlottedNodes",filter:ms})}></slot></label><div class="root" part="root"><textarea ${yt("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${rt({property:"defaultSlottedNodes",filter:ms})}></slot></div></template>`}const _f=Ff(),Mf=Wi.compose({name:`${g.prefix}-textarea`,template:_f,styles:Of,shadowOptions:{delegatesFocus:!0}});Mf.define(g.registry);const Lf={small:"small",medium:"medium",large:"large"},Hf={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Vf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Df=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Rf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,M=(o,t,e,i)=>{for(var s=i>1?void 0:i?jf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Rf(t,e,s),s};class L extends S{constructor(){super(...arguments),this.type=Vf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(t,e){this.value=e}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return $.track(this,"value"),this.currentValue}set value(t){this.currentValue=t,this.$fastController.isConnected&&(this.control.value=t??"",this.setFormValue(t),this.setValidity(),$.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(s=>s.getAttribute("type")==="submit");if(e){e.click();return}t.filter(s=>Df.includes(s.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}}L.formAssociated=!0,M([a],L.prototype,"autocomplete",2),M([a({mode:"boolean"})],L.prototype,"autofocus",2),M([a({attribute:"current-value"})],L.prototype,"currentValue",2),M([k],L.prototype,"defaultSlottedNodes",2),M([a],L.prototype,"dirname",2),M([a({mode:"boolean"})],L.prototype,"disabled",2),M([a({attribute:"form"})],L.prototype,"formAttribute",2),M([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),M([a],L.prototype,"list",2),M([a({converter:Z})],L.prototype,"maxlength",2),M([a({converter:Z})],L.prototype,"minlength",2),M([a({mode:"boolean"})],L.prototype,"multiple",2),M([a],L.prototype,"name",2),M([a],L.prototype,"pattern",2),M([a],L.prototype,"placeholder",2),M([a({attribute:"readonly",mode:"boolean"})],L.prototype,"readOnly",2),M([a({mode:"boolean"})],L.prototype,"required",2),M([a({converter:Z})],L.prototype,"size",2),M([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],L.prototype,"spellcheck",2),M([a],L.prototype,"type",2),M([k],L.prototype,"controlLabel",2);class Xi extends L{appearanceChanged(t,e){m(this.elementInternals,t,e,Hf)}controlSizeChanged(t,e){m(this.elementInternals,t,e,Lf)}}M([a],Xi.prototype,"appearance",2),M([a({attribute:"control-size"})],Xi.prototype,"controlSize",2),Zt(Xi,Yt);const qf=p`
517
517
  ${z("block")}
518
518
 
519
- :host{font-family:${y};font-size:${O};font-weight:${H};line-height:${V};max-width:400px}.label{display:flex;color:${A};padding-bottom:${Pi};flex-shrink:0;padding-inline-end:${Nt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${j} solid ${se};border-bottom-color:${ge};border-radius:${P};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${ut};padding:0 ${pt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Es}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${P});border-radius:0 0 ${P} ${P};border-bottom:2px solid ${Io};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${ta};transition-delay:${to}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${P};background:${St};font-family:${y};font-weight:${H};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${$n}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ft};font-size:${Ze}}:host ::slotted([slot='start']){padding-right:${ut}}:host ::slotted([slot='end']){padding-left:${ut};gap:${Nt}}:host(:hover) .root{border-color:${So};border-bottom-color:${Ye}}:host(:active) .root{border-color:${Si}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ls};transition-delay:${eo}}:host(:focus-within:active) .root:after{border-bottom-color:${zn}}:host(${X}:focus-within) .root{border:${j} solid ${se}}:host(:focus-within) .control{color:${A}}:host([disabled]) .root{background:${St};border:${j} solid ${At}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${E}}::selection{color:${Ue};background-color:${xn}}:host(${B}) .control{font-size:${D};font-weight:${H};line-height:${et}}:host(${B}) .root{height:24px;gap:${ut};padding:0 ${wt}}:host(${B}) ::slotted([slot='start']),:host(${B}) ::slotted([slot='end']){font-size:${ht}}:host(${C}) .control{font-size:${ht};font-weight:${H};line-height:${xt}}:host(${C}) .root{height:40px;gap:${re};padding:0 ${$t}}:host(${C}) ::slotted([slot='start']),:host(${C}) ::slotted([slot='end']){font-size:${Ci}}:host(${Te}) .root{background:${St};border:0;border-radius:0;border-bottom:${j} solid ${ge}}:host(${Te}:hover) .root{border-bottom-color:${Ye}}:host(${Te}:active) .root{border-bottom-color:${Qe}}:host(${Te}:focus-within) .root{border:0;border-bottom-color:${Qe}}:host(${Te}[disabled]) .root{border-bottom-color:${At}}:host(${Ge}) .root,:host(${qe}) .root{border:${j} solid ${dt};box-shadow:${Fs}}:host(${Ge}) .root{background:${_}}:host(${qe}) .root{background:${ki}}:host(${Ge}:hover) .root,:host(${qe}:hover) .root{border-color:${Tn}}:host(${Ge}:active) .root,:host(${qe}:active) .root{border-color:${Tn};background:${ki}}`;function qf(o={}){return f`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${yt("controlLabel")}><slot ${rt({property:"defaultSlottedNodes",filter:ms})}></slot></label><div class="root" part="root">${Qt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${yt("control")} />${he(o)}</div></template>`}const Gf=qf(),Uf=Xi.compose({name:`${g.prefix}-text-input`,template:Gf,styles:jf,shadowOptions:{delegatesFocus:!0}});Uf.define(g.registry);const Wf={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},Xf={base:"base",numeric:"numeric",monospace:"monospace"},Kf={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},Yf={start:"start",end:"end",center:"center",justify:"justify"};var Qf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,Kt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Qf(t,e,s),s};class _t extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){m(this.elementInternals,t,e,Wf,"size-")}fontChanged(t,e){m(this.elementInternals,t,e,Xf)}weightChanged(t,e){m(this.elementInternals,t,e,Kf)}alignChanged(t,e){m(this.elementInternals,t,e,Yf)}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":v(this.elementInternals,e,!!this[e]);break}}}Kt([a({mode:"boolean"})],_t.prototype,"nowrap",2),Kt([a({mode:"boolean"})],_t.prototype,"truncate",2),Kt([a({mode:"boolean"})],_t.prototype,"italic",2),Kt([a({mode:"boolean"})],_t.prototype,"underline",2),Kt([a({mode:"boolean"})],_t.prototype,"strikethrough",2),Kt([a({mode:"boolean"})],_t.prototype,"block",2),Kt([a],_t.prototype,"size",2),Kt([a],_t.prototype,"font",2),Kt([a],_t.prototype,"weight",2),Kt([a],_t.prototype,"align",2);const Jf=p`
519
+ :host{font-family:${y};font-size:${O};font-weight:${H};line-height:${V};max-width:400px}.label{display:flex;color:${A};padding-bottom:${Pi};flex-shrink:0;padding-inline-end:${Ot}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${j} solid ${se};border-bottom-color:${ge};border-radius:${P};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${ut};padding:0 ${pt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Es}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${P});border-radius:0 0 ${P} ${P};border-bottom:2px solid ${Io};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${ta};transition-delay:${to}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${P};background:${St};font-family:${y};font-weight:${H};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${$n}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ft};font-size:${Ze}}:host ::slotted([slot='start']){padding-right:${ut}}:host ::slotted([slot='end']){padding-left:${ut};gap:${Ot}}:host(:hover) .root{border-color:${So};border-bottom-color:${Ye}}:host(:active) .root{border-color:${Si}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Ls};transition-delay:${eo}}:host(:focus-within:active) .root:after{border-bottom-color:${zn}}:host(${X}:focus-within) .root{border:${j} solid ${se}}:host(:focus-within) .control{color:${A}}:host([disabled]) .root{background:${St};border:${j} solid ${Et}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${E}}::selection{color:${Ue};background-color:${xn}}:host(${B}) .control{font-size:${D};font-weight:${H};line-height:${et}}:host(${B}) .root{height:24px;gap:${ut};padding:0 ${wt}}:host(${B}) ::slotted([slot='start']),:host(${B}) ::slotted([slot='end']){font-size:${ht}}:host(${C}) .control{font-size:${ht};font-weight:${H};line-height:${xt}}:host(${C}) .root{height:40px;gap:${re};padding:0 ${$t}}:host(${C}) ::slotted([slot='start']),:host(${C}) ::slotted([slot='end']){font-size:${Ci}}:host(${Te}) .root{background:${St};border:0;border-radius:0;border-bottom:${j} solid ${ge}}:host(${Te}:hover) .root{border-bottom-color:${Ye}}:host(${Te}:active) .root{border-bottom-color:${Qe}}:host(${Te}:focus-within) .root{border:0;border-bottom-color:${Qe}}:host(${Te}[disabled]) .root{border-bottom-color:${Et}}:host(${Ge}) .root,:host(${qe}) .root{border:${j} solid ${dt};box-shadow:${Fs}}:host(${Ge}) .root{background:${_}}:host(${qe}) .root{background:${ki}}:host(${Ge}:hover) .root,:host(${qe}:hover) .root{border-color:${Tn}}:host(${Ge}:active) .root,:host(${qe}:active) .root{border-color:${Tn};background:${ki}}`;function Gf(o={}){return f`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${yt("controlLabel")}><slot ${rt({property:"defaultSlottedNodes",filter:ms})}></slot></label><div class="root" part="root">${Qt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${yt("control")} />${he(o)}</div></template>`}const Uf=Gf(),Wf=Xi.compose({name:`${g.prefix}-text-input`,template:Uf,styles:qf,shadowOptions:{delegatesFocus:!0}});Wf.define(g.registry);const Xf={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},Kf={base:"base",numeric:"numeric",monospace:"monospace"},Yf={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},Qf={start:"start",end:"end",center:"center",justify:"justify"};var Zf=Object.defineProperty,Jf=Object.getOwnPropertyDescriptor,Kt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Jf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Zf(t,e,s),s};class Mt extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){m(this.elementInternals,t,e,Xf,"size-")}fontChanged(t,e){m(this.elementInternals,t,e,Kf)}weightChanged(t,e){m(this.elementInternals,t,e,Yf)}alignChanged(t,e){m(this.elementInternals,t,e,Qf)}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":v(this.elementInternals,e,!!this[e]);break}}}Kt([a({mode:"boolean"})],Mt.prototype,"nowrap",2),Kt([a({mode:"boolean"})],Mt.prototype,"truncate",2),Kt([a({mode:"boolean"})],Mt.prototype,"italic",2),Kt([a({mode:"boolean"})],Mt.prototype,"underline",2),Kt([a({mode:"boolean"})],Mt.prototype,"strikethrough",2),Kt([a({mode:"boolean"})],Mt.prototype,"block",2),Kt([a],Mt.prototype,"size",2),Kt([a],Mt.prototype,"font",2),Kt([a],Mt.prototype,"weight",2),Kt([a],Mt.prototype,"align",2);const tm=p`
520
520
  ${z("inline")}
521
521
 
522
- :host{contain:content;font-family:${y};font-size:${O};line-height:${V};font-weight:${H};text-align:start}:host(${gn}),:host(${gn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${mn}),:host(${mn}) ::slotted(*){text-overflow:ellipsis}:host(${bo}){display:block}:host(${Zl}){font-style:italic}:host(${Te}){text-decoration-line:underline}:host(${fn}){text-decoration-line:line-through}:host(${Te}${fn}){text-decoration-line:line-through underline}:host(${zc}){font-size:${zo};line-height:${zi}}:host(${Tc}){font-size:${D};line-height:${et}}:host(${Bc}){font-size:${ht};line-height:${xt}}:host(${Pc}){font-size:${Ze};line-height:${Ti}}:host(${Ac}){font-size:${Ci};line-height:${Wn}}:host(${Ec}){font-size:${jn};line-height:${Xn}}:host(${Nc}){font-size:${qn};line-height:${Kn}}:host(${Oc}){font-size:${Gn};line-height:${Yn}}:host(${Ic}){font-size:${Un};line-height:${Qn}}:host(${ac}){font-family:${Nh}}:host(${cc}){font-family:${Oh}}:host(${rc}){font-weight:${Fh}}:host(${bn}){font-weight:${R}}:host(${Pl}){font-weight:${Ii}}:host(${Ol}){text-align:center}:host(${Vl}){text-align:end}:host(${Jl}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,tm=f`<slot></slot>`,em=_t.compose({name:`${g.prefix}-text`,template:tm,styles:Jf});em.define(g.registry);var om=Object.defineProperty,im=Object.getOwnPropertyDescriptor,za=(o,t,e,i)=>{for(var s=i>1?void 0:i?im(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&om(t,e,s),s};class tr extends ne{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,v(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}za([a({mode:"boolean"})],tr.prototype,"pressed",2),za([a({mode:"boolean"})],tr.prototype,"mixed",2);const sm=p`
522
+ :host{contain:content;font-family:${y};font-size:${O};line-height:${V};font-weight:${H};text-align:start}:host(${gn}),:host(${gn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${mn}),:host(${mn}) ::slotted(*){text-overflow:ellipsis}:host(${bo}){display:block}:host(${Jl}){font-style:italic}:host(${Te}){text-decoration-line:underline}:host(${fn}){text-decoration-line:line-through}:host(${Te}${fn}){text-decoration-line:line-through underline}:host(${Tc}){font-size:${zo};line-height:${zi}}:host(${Bc}){font-size:${D};line-height:${et}}:host(${Pc}){font-size:${ht};line-height:${xt}}:host(${Ac}){font-size:${Ze};line-height:${Ti}}:host(${Ec}){font-size:${Ci};line-height:${Wn}}:host(${Nc}){font-size:${jn};line-height:${Xn}}:host(${Oc}){font-size:${qn};line-height:${Kn}}:host(${Fc}){font-size:${Gn};line-height:${Yn}}:host(${zc}){font-size:${Un};line-height:${Qn}}:host(${lc}){font-family:${Oh}}:host(${dc}){font-family:${Fh}}:host(${nc}){font-weight:${_h}}:host(${bn}){font-weight:${R}}:host(${Al}){font-weight:${Ii}}:host(${Fl}){text-align:center}:host(${Dl}){text-align:end}:host(${tc}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,em=f`<slot></slot>`,om=Mt.compose({name:`${g.prefix}-text`,template:em,styles:tm});om.define(g.registry);var im=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,za=(o,t,e,i)=>{for(var s=i>1?void 0:i?sm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&im(t,e,s),s};class tr extends ne{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,v(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}za([a({mode:"boolean"})],tr.prototype,"pressed",2),za([a({mode:"boolean"})],tr.prototype,"mixed",2);const rm=p`
523
523
  ${Fi}
524
524
 
525
- :host(${F}){border-color:${se};background-color:${kn};color:${A};border-width:${j}}:host(${F}:hover){border-color:${So};background-color:${Ss}}:host(${F}:active){border-color:${Si};background-color:${Cs}}:host(${F}${ct}){border-color:transparent;background-color:${hd};color:${ie}}:host(${F}${ct}:hover){background-color:${wn}}:host(${F}${ct}:active){background-color:${Sn}}:host(${F}${T}){border-color:transparent;background-color:${cd};color:${Gc}}:host(${F}${T}:hover){background-color:${wi};color:${mi}}:host(${F}${T}:active){background-color:${We};color:${$i}}:host(${F}${X}),:host(${F}${tt}){background-color:${dd}}:host(${F}${X}:hover),:host(${F}${tt}:hover){background-color:${Is}}:host(${F}${X}:active),:host(${F}${tt}:active){background-color:${zs}}:host(${F}${tt}){border-color:transparent;color:${Uc}}:host(${F}${tt}:hover){color:${vi}}:host(${F}${tt}:active){color:${yi}}`.withBehaviors(J(p`
526
- :host(${F}),:host(${F}${ct}),:host(${F}${T}),:host(${F}${X}),:host(${F}${tt}){background:SelectedItem;color:SelectedItemText}`)),rm=qs(),nm=tr.compose({name:`${g.prefix}-toggle-button`,template:rm,styles:sm});nm.define(g.registry);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,Ki=(o,t,e,i)=>{for(var s=i>1?void 0:i?lm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&am(t,e,s),s};const cm=CSS.supports("anchor-name: --a"),dm="anchor"in HTMLElement.prototype;class Do extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=je("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}get anchorElement(){const t=this.getRootNode();return(t instanceof ShadowRoot?t:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const t=this.anchorElement.style.anchorName||`--${this.anchor}`,e=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",e?`${e} ${this.id}`:this.id),cm)dm||(this.anchorElement.style.anchorName=t,this.style.positionAnchor=t);else{this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[i,s]=this.positioning?.split("-")??[];s===void 0&&(i==="above"||i==="below")&&(s="centerX"),s===void 0&&(i==="before"||i==="after")&&(s="centerY");const r={above:`bottom: anchor(${t} top);`,below:`top: anchor(${t} bottom);`,before:`right: anchor(${t} left);`,after:`left: anchor(${t} right);`},n=r[i]??r.above,d={start:`left: anchor(${t} left);`,end:`right: anchor(${t} right);`,top:`top: anchor(${t} top);`,bottom:`bottom: anchor(${t} bottom);`,centerX:`left: anchor(${t} center); translate: -50% 0;`,centerY:`top: anchor(${t} center); translate: 0 -50%;`},u=d[s]??d.centerX;this.anchorPositioningStyleElement.textContent=`
527
- #${this.anchor} {
528
- anchor-name: ${t};
529
- }
530
- #${this.id} {
531
- inset: unset;
532
- ${n}
533
- ${u}
534
- position: absolute;
535
- }
536
- `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler)}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(t=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},t)}hideTooltip(t=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(t);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},t)}}Ki([a],Do.prototype,"id",2),Ki([a({converter:Z})],Do.prototype,"delay",2),Ki([a],Do.prototype,"positioning",2),Ki([a],Do.prototype,"anchor",2);const Tt={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},hm=p`
525
+ :host(${F}){border-color:${se};background-color:${kn};color:${A};border-width:${j}}:host(${F}:hover){border-color:${So};background-color:${Ss}}:host(${F}:active){border-color:${Si};background-color:${Cs}}:host(${F}${ct}){border-color:transparent;background-color:${ud};color:${ie}}:host(${F}${ct}:hover){background-color:${wn}}:host(${F}${ct}:active){background-color:${Sn}}:host(${F}${T}){border-color:transparent;background-color:${dd};color:${Uc}}:host(${F}${T}:hover){background-color:${wi};color:${mi}}:host(${F}${T}:active){background-color:${We};color:${$i}}:host(${F}${X}),:host(${F}${tt}){background-color:${hd}}:host(${F}${X}:hover),:host(${F}${tt}:hover){background-color:${Is}}:host(${F}${X}:active),:host(${F}${tt}:active){background-color:${zs}}:host(${F}${tt}){border-color:transparent;color:${Wc}}:host(${F}${tt}:hover){color:${vi}}:host(${F}${tt}:active){color:${yi}}`.withBehaviors(J(p`
526
+ :host(${F}),:host(${F}${ct}),:host(${F}${T}),:host(${F}${X}),:host(${F}${tt}){background:SelectedItem;color:SelectedItemText}`)),nm=qs(),am=tr.compose({name:`${g.prefix}-toggle-button`,template:nm,styles:rm});am.define(g.registry);var lm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,Ki=(o,t,e,i)=>{for(var s=i>1?void 0:i?cm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&lm(t,e,s),s};const Ta=CSS.supports("anchor-name: --a"),dm="anchor"in HTMLElement.prototype;class Do extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=je("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){Ta||this.setFallbackStyles()}get anchorElement(){const t=this.getRootNode();return(t instanceof ShadowRoot?t:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const t=this.anchorElement.style.anchorName||`--${this.anchor}`,e=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",e?`${e} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Ta){dm||(this.anchorElement.style.anchorName=t,this.style.positionAnchor=t);return}Bt.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(t=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},t)}hideTooltip(t=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(t);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},t)}setFallbackStyles(){if(!this.anchorElement)return;const t=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[e,i]=this.positioning?.split("-")??[];i||((e==="above"||e==="below")&&(i="centerX"),(e==="before"||e==="after")&&(i="centerY"));const s={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},r=s[e]??s.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},d=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
527
+ #${this.anchor} {
528
+ anchor-name: ${t};
529
+ }
530
+ #${this.id} {
531
+ inset: unset;
532
+ position-anchor: ${t};
533
+ position: absolute;
534
+ ${r}
535
+ ${d}
536
+ }
537
+ `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}Ki([a],Do.prototype,"id",2),Ki([a({converter:Z})],Do.prototype,"delay",2),Ki([a],Do.prototype,"positioning",2),Ki([a],Do.prototype,"anchor",2);const Tt={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},hm=p`
537
538
  ${z("inline-flex")}
538
539
 
539
- :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Pi};--inline-offset:${Nt};background:${_};border-radius:${P};border:1px solid ${dt};box-sizing:border-box;color:${A};display:inline-flex;filter:drop-shadow(0 0 2px ${fd}) drop-shadow(0 4px 8px ${md});font-family:${y};font-size:${D};inset:unset;line-height:${et};margin:unset;max-width:240px;padding:4px ${pt} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Tt["above-start"]}}:host([positioning='above']){--position-area:${Tt.above}}:host([positioning='above-end']){--position-area:${Tt["above-end"]}}:host([positioning='below-start']){--position-area:${Tt["below-start"]}}:host([positioning='below']){--position-area:${Tt.below}}:host([positioning='below-end']){--position-area:${Tt.below}}:host([positioning='before-top']){--position-area:${Tt["before-top"]}}:host([positioning='before']){--position-area:${Tt.before}}:host([positioning='before-bottom']){--position-area:${Tt["before-bottom"]}}:host([positioning='after-top']){--position-area:${Tt["after-top"]}}:host([positioning='after']){--position-area:${Tt.after}}:host([positioning='after-bottom']){--position-area:${Tt["after-bottom"]}}`,um=f`<template popover aria-hidden="true"><slot></slot></template>`,pm=Do.compose({name:`${g.prefix}-tooltip`,template:um,styles:hm});pm.define(g.registry);
540
+ :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Pi};--inline-offset:${Ot};background:${_};border-radius:${P};border:1px solid ${dt};box-sizing:border-box;color:${A};display:inline-flex;filter:drop-shadow(0 0 2px ${md}) drop-shadow(0 4px 8px ${$d});font-family:${y};font-size:${D};inset:unset;line-height:${et};margin:unset;max-width:240px;overflow:visible;padding:4px ${pt} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Tt["above-start"]}}:host([positioning='above']){--position-area:${Tt.above}}:host([positioning='above-end']){--position-area:${Tt["above-end"]}}:host([positioning='below-start']){--position-area:${Tt["below-start"]}}:host([positioning='below']){--position-area:${Tt.below}}:host([positioning='below-end']){--position-area:${Tt["below-end"]}}:host([positioning='before-top']){--position-area:${Tt["before-top"]}}:host([positioning='before']){--position-area:${Tt.before}}:host([positioning='before-bottom']){--position-area:${Tt["before-bottom"]}}:host([positioning='after-top']){--position-area:${Tt["after-top"]}}:host([positioning='after']){--position-area:${Tt.after}}:host([positioning='after-bottom']){--position-area:${Tt["after-bottom"]}}`,um=f`<template popover aria-hidden="true"><slot></slot></template>`,pm=Do.compose({name:`${g.prefix}-tooltip`,template:um,styles:hm});pm.define(g.registry);