@fluentui/web-components 3.0.0-rc.25 → 3.0.0-rc.27
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.
- package/CHANGELOG.md +21 -2
- package/README.md +26 -0
- package/custom-elements.json +723 -356
- package/dist/esm/accordion/accordion.d.ts +1 -1
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion/accordion.styles.css +11 -7
- package/dist/esm/accordion/accordion.template.html +4 -3
- package/dist/esm/accordion-item/accordion-item.d.ts +2 -2
- package/dist/esm/accordion-item/accordion-item.js +2 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.css +174 -170
- package/dist/esm/accordion-item/accordion-item.template.html +38 -31
- package/dist/esm/anchor-button/anchor-button.d.ts +2 -2
- package/dist/esm/anchor-button/anchor-button.js +2 -0
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.css +224 -223
- package/dist/esm/anchor-button/anchor-button.template.html +8 -11
- package/dist/esm/avatar/avatar.d.ts +2 -0
- package/dist/esm/avatar/avatar.js +3 -1
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.css +475 -470
- package/dist/esm/avatar/avatar.template.html +10 -14
- package/dist/esm/badge/badge.d.ts +6 -1
- package/dist/esm/badge/badge.js +6 -1
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.styles.css +264 -266
- package/dist/esm/badge/badge.template.html +5 -2
- package/dist/esm/button/button.base.d.ts +0 -9
- package/dist/esm/button/button.base.js +2 -3
- package/dist/esm/button/button.base.js.map +1 -1
- package/dist/esm/button/button.styles.css +260 -259
- package/dist/esm/button/button.template.html +8 -10
- package/dist/esm/checkbox/checkbox.base.d.ts +3 -9
- package/dist/esm/checkbox/checkbox.base.js +5 -3
- package/dist/esm/checkbox/checkbox.base.js.map +1 -1
- package/dist/esm/checkbox/checkbox.d.ts +2 -2
- package/dist/esm/checkbox/checkbox.js +2 -2
- package/dist/esm/checkbox/checkbox.styles.css +146 -142
- package/dist/esm/checkbox/checkbox.template.html +21 -16
- package/dist/esm/compound-button/compound-button.d.ts +3 -0
- package/dist/esm/compound-button/compound-button.js +3 -0
- package/dist/esm/compound-button/compound-button.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.css +363 -365
- package/dist/esm/compound-button/compound-button.template.html +9 -11
- package/dist/esm/counter-badge/counter-badge.d.ts +3 -0
- package/dist/esm/counter-badge/counter-badge.js +3 -0
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.styles.css +177 -177
- package/dist/esm/counter-badge/counter-badge.template.html +5 -2
- package/dist/esm/dialog/dialog.d.ts +4 -0
- package/dist/esm/dialog/dialog.js +4 -0
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/dialog/dialog.styles.css +65 -66
- package/dist/esm/dialog/dialog.template.html +18 -15
- package/dist/esm/dialog-body/dialog-body.d.ts +9 -0
- package/dist/esm/dialog-body/dialog-body.js +9 -0
- package/dist/esm/dialog-body/dialog-body.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.styles.css +81 -76
- package/dist/esm/dialog-body/dialog-body.styles.js +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.template.html +2 -1
- package/dist/esm/divider/divider.styles.css +105 -101
- package/dist/esm/divider/divider.template.html +6 -1
- package/dist/esm/drawer/drawer.d.ts +3 -4
- package/dist/esm/drawer/drawer.js +3 -4
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/drawer/drawer.styles.css +124 -120
- package/dist/esm/drawer/drawer.styles.js +16 -17
- package/dist/esm/drawer/drawer.styles.js.map +1 -1
- package/dist/esm/drawer/drawer.template.html +5 -2
- package/dist/esm/drawer-body/drawer-body.styles.css +29 -26
- package/dist/esm/drawer-body/drawer-body.template.html +5 -2
- package/dist/esm/dropdown/dropdown.base.d.ts +3 -1
- package/dist/esm/dropdown/dropdown.base.js +5 -1
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.styles.css +192 -190
- package/dist/esm/dropdown/dropdown.styles.js +1 -0
- package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
- package/dist/esm/dropdown/dropdown.template.html +26 -19
- package/dist/esm/field/field.d.ts +7 -0
- package/dist/esm/field/field.js +7 -0
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/field/field.styles.css +125 -121
- package/dist/esm/field/field.template.html +3 -2
- package/dist/esm/image/image.d.ts +2 -0
- package/dist/esm/image/image.js +2 -0
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.styles.css +49 -50
- package/dist/esm/image/image.template.html +6 -1
- package/dist/esm/label/label.d.ts +3 -0
- package/dist/esm/label/label.js +3 -0
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.styles.css +34 -30
- package/dist/esm/label/label.template.html +5 -2
- package/dist/esm/link/link.styles.css +58 -54
- package/dist/esm/link/link.template.html +4 -7
- package/dist/esm/listbox/listbox.styles.css +40 -36
- package/dist/esm/listbox/listbox.template.html +4 -6
- package/dist/esm/menu/menu.styles.css +56 -52
- package/dist/esm/menu/menu.template.html +6 -5
- package/dist/esm/menu-button/menu-button.styles.css +260 -259
- package/dist/esm/menu-button/menu-button.template.html +23 -14
- package/dist/esm/menu-item/menu-item.d.ts +1 -1
- package/dist/esm/menu-item/menu-item.js +3 -1
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.styles.css +141 -137
- package/dist/esm/menu-item/menu-item.template.html +48 -17
- package/dist/esm/menu-list/menu-list.styles.css +19 -15
- package/dist/esm/menu-list/menu-list.template.html +4 -3
- package/dist/esm/message-bar/message-bar.d.ts +2 -0
- package/dist/esm/message-bar/message-bar.js +2 -0
- package/dist/esm/message-bar/message-bar.js.map +1 -1
- package/dist/esm/message-bar/message-bar.styles.css +83 -84
- package/dist/esm/message-bar/message-bar.template.html +7 -2
- package/dist/esm/option/option.d.ts +3 -0
- package/dist/esm/option/option.js +3 -0
- package/dist/esm/option/option.js.map +1 -1
- package/dist/esm/option/option.styles.css +117 -114
- package/dist/esm/option/option.template.html +17 -14
- package/dist/esm/progress-bar/progress-bar.base.d.ts +3 -3
- package/dist/esm/progress-bar/progress-bar.d.ts +1 -0
- package/dist/esm/progress-bar/progress-bar.js +1 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.css +83 -79
- package/dist/esm/progress-bar/progress-bar.template.html +4 -1
- package/dist/esm/radio/radio.d.ts +3 -2
- package/dist/esm/radio/radio.js +3 -2
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio/radio.styles.css +100 -96
- package/dist/esm/radio/radio.template.html +6 -9
- package/dist/esm/radio-group/radio-group.base.d.ts +2 -0
- package/dist/esm/radio-group/radio-group.base.js +2 -0
- package/dist/esm/radio-group/radio-group.base.js.map +1 -1
- package/dist/esm/radio-group/radio-group.d.ts +1 -0
- package/dist/esm/radio-group/radio-group.js +1 -0
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.styles.css +45 -41
- package/dist/esm/radio-group/radio-group.template.html +11 -10
- package/dist/esm/rating-display/rating-display.styles.css +136 -134
- package/dist/esm/rating-display/rating-display.template.html +5 -2
- package/dist/esm/slider/slider.d.ts +1 -1
- package/dist/esm/slider/slider.js +3 -1
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.styles.css +186 -182
- package/dist/esm/slider/slider.template.html +13 -15
- package/dist/esm/spinner/spinner.styles.css +155 -151
- package/dist/esm/spinner/spinner.template.html +16 -11
- package/dist/esm/switch/switch.d.ts +1 -0
- package/dist/esm/switch/switch.js +1 -0
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.css +112 -108
- package/dist/esm/switch/switch.template.html +9 -8
- package/dist/esm/tab/tab.js +2 -0
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.styles.css +112 -108
- package/dist/esm/tab/tab.template.html +6 -5
- package/dist/esm/tablist/tablist.d.ts +1 -0
- package/dist/esm/tablist/tablist.js +1 -0
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/tablist/tablist.styles.css +194 -190
- package/dist/esm/tablist/tablist.template.html +2 -5
- package/dist/esm/text/text.d.ts +2 -0
- package/dist/esm/text/text.js +2 -0
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.css +105 -101
- package/dist/esm/text/text.template.html +6 -1
- package/dist/esm/text-input/text-input.base.d.ts +4 -16
- package/dist/esm/text-input/text-input.base.js +7 -17
- package/dist/esm/text-input/text-input.base.js.map +1 -1
- package/dist/esm/text-input/text-input.d.ts +2 -0
- package/dist/esm/text-input/text-input.js +2 -0
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.css +199 -195
- package/dist/esm/text-input/text-input.template.html +34 -36
- package/dist/esm/text-input/text-input.template.js +1 -5
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/textarea.base.d.ts +2 -2
- package/dist/esm/textarea/textarea.base.js +4 -2
- package/dist/esm/textarea/textarea.base.js.map +1 -1
- package/dist/esm/textarea/textarea.styles.css +254 -250
- package/dist/esm/textarea/textarea.template.html +28 -27
- package/dist/esm/toggle-button/toggle-button.styles.css +360 -357
- package/dist/esm/toggle-button/toggle-button.template.html +8 -10
- package/dist/esm/tooltip/tooltip.d.ts +2 -0
- package/dist/esm/tooltip/tooltip.js +2 -0
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/esm/tooltip/tooltip.styles.css +81 -77
- package/dist/esm/tooltip/tooltip.template.html +6 -1
- package/dist/esm/tree/tree.styles.css +9 -5
- package/dist/esm/tree/tree.template.html +3 -2
- package/dist/esm/tree-item/tree-item.base.d.ts +9 -0
- package/dist/esm/tree-item/tree-item.base.js +11 -0
- package/dist/esm/tree-item/tree-item.base.js.map +1 -1
- package/dist/esm/tree-item/tree-item.d.ts +15 -0
- package/dist/esm/tree-item/tree-item.js +15 -0
- package/dist/esm/tree-item/tree-item.js.map +1 -1
- package/dist/esm/tree-item/tree-item.styles.css +157 -153
- package/dist/esm/tree-item/tree-item.template.html +8 -7
- package/dist/esm/utils/autofocus.d.ts +12 -0
- package/dist/esm/utils/autofocus.js +25 -0
- package/dist/esm/utils/autofocus.js.map +1 -0
- package/dist/web-components-all.js +24 -27
- package/dist/web-components-all.min.js +15 -15
- package/dist/web-components.d.ts +110 -54
- package/dist/web-components.js +24 -27
- package/dist/web-components.min.js +15 -15
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function sn(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function an(...o){return o.every(e=>e instanceof HTMLElement)}function Wi(o,e="-accordion-item"){return sn(e)(o)}const za=`${u.prefix}-accordion-item`;let Do;const ln="fast-kernel";try{if(document.currentScript)Do=document.currentScript.getAttribute(ln);else{const o=document.getElementsByTagName("script");Do=o[o.length-1].getAttribute(ln)}}catch{Do="isolate"}let mt;switch(Do){case"share":mt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":mt=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)}`;mt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}var He;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(He||(He={}));const vt=o=>typeof o=="function",Qe=o=>typeof o=="string",Ta=()=>{};var Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ui<"u")Ui.globalThis=Ui;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})(),function(){"requestIdleCallback"in globalThis||(globalThis.requestIdleCallback=function(t,i){const r=Date.now();return setTimeout(()=>{t({didTimeout:i?.timeout?Date.now()-r>=i.timeout:!1,timeRemaining:()=>0})},1)},globalThis.cancelIdleCallback=function(t){clearTimeout(t)})}();const cn={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},cn));const G=globalThis.FAST;if(G.getById===void 0){const o=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},cn))}G.error===void 0&&Object.assign(G,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const _a=Object.freeze([]);function Gi(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function dn(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function $t(o){o.prototype.toJSON=Ta}const J=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),hn=o=>o,Oa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:hn}):{createHTML:hn};let Lo=Object.freeze({createHTML(o){return Oa.createHTML(o)},protect(o,e,t,i){return i}});const Ba=Lo,yt=Object.freeze({get policy(){return Lo},setPolicy(o){if(Lo!==Ba)throw G.error(He.onlySetDOMPolicyOnce);Lo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}});class Xi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,n=this.sub2;r!==void 0&&r.handleChange(i,e),n!==void 0&&n.handleChange(i,e)}else for(let r=0,n=t.length;r<n;++r)t[r].handleChange(i,e)}}class un{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let n;t?n=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Xi(this.subject):n=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Xi(this.subject),n.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const A=G.getById(mt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function n(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function s(){let d=0;for(;d<o.length;)if(n(o[d]),d++,d>1024){for(let l=0,p=o.length-d;l<p;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(s):s())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:s,setMode:h=>i=h})}),Vo=Object.freeze({unknown:void 0,coupled:1}),m=G.getById(mt.observable,()=>{const o=A.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw G.error(He.needsArrayObservation)};function n(d){var l;let p=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return p===void 0&&(Array.isArray(d)?p=r(d):t.set(d,p=new un(d))),p}const s=dn();class c{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,p){const x=this.field,C=l[x];if(C!==p){l[x]=p;const Ne=l[this.callback];vt(Ne)&&Ne.call(l,C,p),n(l).notify(this.name)}}}class h extends Xi{constructor(l,p,x=!1){super(l,p),this.expression=l,this.isVolatileBinding=x,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 p=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),p}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,p){this.needsRefresh&&this.last!==null&&this.dispose();const x=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let C;try{C=this.expression(l,p)}finally{i=x}return C}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,p){const x=this.last,C=n(l),Ne=x===null?this.first:{};if(Ne.propertySource=l,Ne.propertyName=p,Ne.notifier=C,C.subscribe(this,p),x!==null){if(!this.needsRefresh){let bt;i=void 0,bt=x.propertySource[x.propertyName],i=this,l===bt&&(this.needsRefresh=!0)}x.next=Ne}this.last=Ne}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 $t(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:n,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){n(d).notify(l)},defineProperty(d,l){Qe(l)&&(l=new c(l)),s(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(p){l.setValue(this,p)}})},getAccessors:s,binding(d,l,p=this.isVolatileBinding(d)){return new h(d,l,p)},isVolatileBinding(d){return e.test(d.toString())}})});function f(o,e){m.defineProperty(o,e)}function $e(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const pn=G.getById(mt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),At=Object.freeze({default:{index:0,length:0,get event(){return At.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return pn.get()},setEvent(o){pn.set(o)}});class Ho{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Na extends Ho{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ki(o,e,t=m.isVolatileBinding(o)){return new Na(o,e,t)}class gn extends Ho{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}$t(gn);function fn(o,e){return new gn(o,e)}const Yi=Gi(),Ji=Object.freeze({getForInstance:Yi.getForInstance,getByType:Yi.getByType,define(o){return Yi.register({type:o}),o}});function Qi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Zi{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const n=i.setAttribute;i.setAttribute=(s,c)=>{n.call(i,s,c),s==="style"&&i.$cssBindings.forEach((h,d)=>Qi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Qi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Qi(this,t.controller,t)}}Ji.define(Zi);let bn;function mn(o){return o.map(e=>e instanceof ve?mn(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ve{get strategy(){return this._strategy===null&&this.withStrategy(bn),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ve?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(mn(this.styles)),this}static setDefaultStrategy(e){bn=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ve(e):e instanceof ve?e:new ve([e])}}ve.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Aa=`${Math.random().toString(36).substring(2,8)}`;let Ea=0;const vn=()=>`--v${Aa}${++Ea}`;function $n(o,e){const t=[];let i="";const r=[],n=s=>{r.push(s)};for(let s=0,c=o.length-1;s<c;++s){i+=o[s];let h=e[s];vt(h)?h=new Zi(Ki(h),vn()).createCSS(n):h instanceof Ho?h=new Zi(h,vn()).createCSS(n):Ji.getForInstance(h)!==void 0&&(h=h.createCSS(n)),h instanceof ve||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const g=(o,...e)=>{const{styles:t,behaviors:i}=$n(o,e),r=new ve(t);return i.length?r.withBehaviors(...i):r};class yn{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,n)=>(Qe(n)?this.css+=n:r.push(n),r),[]);i.length&&(this.styles=new ve(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Ji.define(yn),g.partial=(o,...e)=>{const{styles:t,behaviors:i}=$n(o,e);return new yn(t,i)};const er=`fast-${Math.random().toString(36).substring(2,8)}`,Ro=`${er}{`,so=`}${er}`,Fa=so.length;let Ma=0;const ao=()=>`${er}-${++Ma}`,xn=Object.freeze({interpolation:o=>`${Ro}${o}${so}`,attribute:o=>`${ao()}="${Ro}${o}${so}"`,comment:o=>`<!--${Ro}${o}${so}-->`}),jo=Object.freeze({parse(o,e){const t=o.split(Ro);if(t.length===1)return null;const i=[];for(let r=0,n=t.length;r<n;++r){const s=t[r],c=s.indexOf(so);let h;if(c===-1)h=s;else{const d=s.substring(0,c);i.push(e[d]),h=s.substring(c+Fa)}h!==""&&i.push(h)}return i}}),tr=Gi(),Re=Object.freeze({getForInstance:tr.getForInstance,getByType:tr.getByType,define(o,e){return e=e||{},e.type=o,tr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=J.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?J.tokenList:J.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=J.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=J.event;break;default:o.targetAspect=e,o.aspectType=J.attribute;break}}});class or{constructor(e){this.options=e}createHTML(e){return xn.attribute(e(this))}createBehavior(){return this}}$t(or);const Da=o=>o.nodeType===1,lo=o=>o?e=>e.nodeType===1&&e.matches(o):Da;class La extends or{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,_a),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const kn=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,wn=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Cn=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Sn=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,In=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Pn=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function zn(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ie=Object.freeze({attributeMarkerName:"data-fe-b",compactAttributeMarkerName:"data-fe-c",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return kn.test(o)},isContentBindingEndMarker(o){return wn.test(o)},isRepeatViewStartMarker(o){return Cn.test(o)},isRepeatViewEndMarker(o){return Sn.test(o)},isElementBoundaryStartMarker(o){return zn(o)&&In.test(o.data.trim())},isElementBoundaryEndMarker(o){return zn(o)&&Pn.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseEnumeratedAttributeBinding(o){const e=[],t=this.attributeMarkerName.length+1,i=`${this.attributeMarkerName}-`;for(const r of o.getAttributeNames())if(r.startsWith(i)){const n=Number(r.slice(t));if(!Number.isNaN(n))e.push(n);else throw G.error(1601,{name:r,expectedFormat:`${i}<number>`})}return e.length===0?null:e},parseCompactAttributeBinding(o){const e=`${this.compactAttributeMarkerName}-`,t=o.getAttributeNames().find(h=>h.startsWith(e));if(!t)return null;const r=t.slice(e.length).split("-"),n=parseInt(r[0],10),s=parseInt(r[1],10);if(r.length!==2||Number.isNaN(n)||Number.isNaN(s)||n<0||s<1)throw G.error(1604,{name:t,expectedFormat:`${this.compactAttributeMarkerName}-{index}-{count}`});const c=[];for(let h=0;h<s;h++)c.push(n+h);return c},parseContentBindingStartMarker(o){return On(kn,o)},parseContentBindingEndMarker(o){return On(wn,o)},parseRepeatStartMarker(o){return Tn(Cn,o)},parseRepeatEndMarker(o){return Tn(Sn,o)},parseElementBoundaryStartMarker(o){return _n(In,o.trim())},parseElementBoundaryEndMarker(o){return _n(Pn,o)}});function Tn(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function _n(o,e){const t=o.exec(e);return t===null?t:t[1]}function On(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const qo=Symbol.for("fe-hydration");function Wo(o){return o[qo]===qo}const Uo="defer-hydration";class Bn extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function ir(o){return o.nodeType===Node.COMMENT_NODE}function Nn(o){return o.nodeType===Node.TEXT_NODE}function An(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ir(e)||Nn(e)?e.data.length:e.childNodes.length),t}function Va(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,e,t){const i=An(o,e),r=i.commonAncestorContainer,n=Wa(t),s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return i.comparePoint(l,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),c={},h={};let d=s.currentNode=o;for(;d!==null;){switch(d.nodeType){case Node.ELEMENT_NODE:{Ra(d,t,c,n);break}case Node.COMMENT_NODE:{ja(d,s,t,c,h,n);break}}d=s.nextNode()}return i.detach(),{targets:c,boundaries:h}}function Ra(o,e,t,i){var r,n;const s=(n=(r=Ie.parseAttributeBinding(o))!==null&&r!==void 0?r:Ie.parseEnumeratedAttributeBinding(o))!==null&&n!==void 0?n:Ie.parseCompactAttributeBinding(o);if(s!==null){for(const c of s){const h=e[c+i];if(!h)throw new Bn(`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.`,e,o);Go(h,o,t)}o.removeAttribute(Ie.attributeMarkerName)}}function ja(o,e,t,i,r,n){if(Ie.isElementBoundaryStartMarker(o)){qa(o,e);return}if(Ie.isContentBindingStartMarker(o.data)){const s=Ie.parseContentBindingStartMarker(o.data);if(s===null)return;const[c,h]=s,d=t[c+n],l=[];let p=e.nextSibling();o.data="";const x=p;for(;p!==null;){if(ir(p)){const C=Ie.parseContentBindingEndMarker(p.data);if(C&&C[1]===h)break}l.push(p),p=e.nextSibling()}if(p===null){const C=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Va(C)?C.host.nodeName:C.nodeName}".`)}if(p.data="",l.length===1&&Nn(l[0]))Go(d,l[0],i);else{p!==x&&p.previousSibling!==null&&(r[d.targetNodeId]={first:x,last:p.previousSibling});const C=p.parentNode.insertBefore(document.createTextNode(""),p);Go(d,C,i)}}}function qa(o,e){const t=Ie.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(ir(i)){const r=Ie.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Wa(o){let e=0;for(let t=0,i=o.length;t<i&&o[t].targetNodeId==="h";++t)e++;return e}function Go(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var En;function rr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class Fn{constructor(){this.index=0,this.length=0}get event(){return At.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 Xo extends Fn{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,i.insertBefore(r,e),r=n;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){rr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let n=0,s=r.length;n<s;++n){const c=r[n].createBehavior();c.bind(this),i[n]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,n=i.length;r<n;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){rr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}$t(Xo),m.defineProperty(Xo.prototype,"index"),m.defineProperty(Xo.prototype,"length");const Et={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ua extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class Ga extends Fn{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[En]=qo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Et.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,i.insertBefore(r,e),r=n;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i;if(this.hydrationStage!==Et.hydrated&&(this._hydrationStage=Et.hydrating),this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:s,boundaries:c}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=s,this._bindingViewBoundaries=c}catch(s){if(s instanceof Bn){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),s.templateString=c}throw s}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let s=0,c=n.length;s<c;++s){const h=n[s];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Go(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const d=h.createBehavior();d.bind(this),r[s]=d}else{let d=this.sourceTemplate.html;typeof d!="string"&&(d=d.innerHTML);const l=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host,p=l?.nodeName||"unknown",x=h,C=[`HydrationView was unable to successfully target bindings inside "<${p.toLowerCase()}>".`,`
|
|
1
|
+
const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function an(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function ln(...o){return o.every(e=>e instanceof HTMLElement)}function Gi(o,e="-accordion-item"){return an(e)(o)}const Ta=`${u.prefix}-accordion-item`;let Lo;const cn="fast-kernel";try{if(document.currentScript)Lo=document.currentScript.getAttribute(cn);else{const o=document.getElementsByTagName("script");Lo=o[o.length-1].getAttribute(cn)}}catch{Lo="isolate"}let mt;switch(Lo){case"share":mt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":mt=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)}`;mt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}var He;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(He||(He={}));const vt=o=>typeof o=="function",Qe=o=>typeof o=="string",_a=()=>{};var Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Xi<"u")Xi.globalThis=Xi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})(),function(){"requestIdleCallback"in globalThis||(globalThis.requestIdleCallback=function(t,i){const r=Date.now();return setTimeout(()=>{t({didTimeout:i?.timeout?Date.now()-r>=i.timeout:!1,timeRemaining:()=>0})},1)},globalThis.cancelIdleCallback=function(t){clearTimeout(t)})}();const dn={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},dn));const G=globalThis.FAST;if(G.getById===void 0){const o=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},dn))}G.error===void 0&&Object.assign(G,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Oa=Object.freeze([]);function Ki(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function hn(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function $t(o){o.prototype.toJSON=_a}const J=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),un=o=>o,Ba=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:un}):{createHTML:un};let Vo=Object.freeze({createHTML(o){return Ba.createHTML(o)},protect(o,e,t,i){return i}});const Na=Vo,yt=Object.freeze({get policy(){return Vo},setPolicy(o){if(Vo!==Na)throw G.error(He.onlySetDOMPolicyOnce);Vo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}});class Yi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,n=this.sub2;r!==void 0&&r.handleChange(i,e),n!==void 0&&n.handleChange(i,e)}else for(let r=0,n=t.length;r<n;++r)t[r].handleChange(i,e)}}class pn{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let n;t?n=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Yi(this.subject):n=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Yi(this.subject),n.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const B=G.getById(mt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function n(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function s(){let d=0;for(;d<o.length;)if(n(o[d]),d++,d>1024){for(let l=0,p=o.length-d;l<p;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(s):s())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:s,setMode:h=>i=h})}),Ho=Object.freeze({unknown:void 0,coupled:1}),m=G.getById(mt.observable,()=>{const o=B.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw G.error(He.needsArrayObservation)};function n(d){var l;let p=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return p===void 0&&(Array.isArray(d)?p=r(d):t.set(d,p=new pn(d))),p}const s=hn();class c{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,p){const x=this.field,C=l[x];if(C!==p){l[x]=p;const Be=l[this.callback];vt(Be)&&Be.call(l,C,p),n(l).notify(this.name)}}}class h extends Yi{constructor(l,p,x=!1){super(l,p),this.expression=l,this.isVolatileBinding=x,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 p=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),p}requiresUnbind(l){return l.sourceLifetime!==Ho.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,p){this.needsRefresh&&this.last!==null&&this.dispose();const x=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let C;try{C=this.expression(l,p)}finally{i=x}return C}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,p){const x=this.last,C=n(l),Be=x===null?this.first:{};if(Be.propertySource=l,Be.propertyName=p,Be.notifier=C,C.subscribe(this,p),x!==null){if(!this.needsRefresh){let bt;i=void 0,bt=x.propertySource[x.propertyName],i=this,l===bt&&(this.needsRefresh=!0)}x.next=Be}this.last=Be}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 $t(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:n,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){n(d).notify(l)},defineProperty(d,l){Qe(l)&&(l=new c(l)),s(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(p){l.setValue(this,p)}})},getAccessors:s,binding(d,l,p=this.isVolatileBinding(d)){return new h(d,l,p)},isVolatileBinding(d){return e.test(d.toString())}})});function f(o,e){m.defineProperty(o,e)}function $e(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const gn=G.getById(mt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Et=Object.freeze({default:{index:0,length:0,get event(){return Et.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return gn.get()},setEvent(o){gn.set(o)}});class Ro{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Aa extends Ro{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ji(o,e,t=m.isVolatileBinding(o)){return new Aa(o,e,t)}class fn extends Ro{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}$t(fn);function bn(o,e){return new fn(o,e)}const Qi=Ki(),Zi=Object.freeze({getForInstance:Qi.getForInstance,getByType:Qi.getByType,define(o){return Qi.register({type:o}),o}});function er(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class tr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const n=i.setAttribute;i.setAttribute=(s,c)=>{n.call(i,s,c),s==="style"&&i.$cssBindings.forEach((h,d)=>er(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){er(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){er(this,t.controller,t)}}Zi.define(tr);let mn;function vn(o){return o.map(e=>e instanceof ve?vn(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ve{get strategy(){return this._strategy===null&&this.withStrategy(mn),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ve?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(vn(this.styles)),this}static setDefaultStrategy(e){mn=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ve(e):e instanceof ve?e:new ve([e])}}ve.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ea=`${Math.random().toString(36).substring(2,8)}`;let Fa=0;const $n=()=>`--v${Ea}${++Fa}`;function yn(o,e){const t=[];let i="";const r=[],n=s=>{r.push(s)};for(let s=0,c=o.length-1;s<c;++s){i+=o[s];let h=e[s];vt(h)?h=new tr(Ji(h),$n()).createCSS(n):h instanceof Ro?h=new tr(h,$n()).createCSS(n):Zi.getForInstance(h)!==void 0&&(h=h.createCSS(n)),h instanceof ve||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const g=(o,...e)=>{const{styles:t,behaviors:i}=yn(o,e),r=new ve(t);return i.length?r.withBehaviors(...i):r};class xn{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,n)=>(Qe(n)?this.css+=n:r.push(n),r),[]);i.length&&(this.styles=new ve(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Zi.define(xn),g.partial=(o,...e)=>{const{styles:t,behaviors:i}=yn(o,e);return new xn(t,i)};const or=`fast-${Math.random().toString(36).substring(2,8)}`,jo=`${or}{`,ao=`}${or}`,Ma=ao.length;let Da=0;const lo=()=>`${or}-${++Da}`,kn=Object.freeze({interpolation:o=>`${jo}${o}${ao}`,attribute:o=>`${lo()}="${jo}${o}${ao}"`,comment:o=>`<!--${jo}${o}${ao}-->`}),qo=Object.freeze({parse(o,e){const t=o.split(jo);if(t.length===1)return null;const i=[];for(let r=0,n=t.length;r<n;++r){const s=t[r],c=s.indexOf(ao);let h;if(c===-1)h=s;else{const d=s.substring(0,c);i.push(e[d]),h=s.substring(c+Ma)}h!==""&&i.push(h)}return i}}),ir=Ki(),Re=Object.freeze({getForInstance:ir.getForInstance,getByType:ir.getByType,define(o,e){return e=e||{},e.type=o,ir.register(e),o},assignAspect(o,e){if(!e){o.aspectType=J.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?J.tokenList:J.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=J.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=J.event;break;default:o.targetAspect=e,o.aspectType=J.attribute;break}}});class rr{constructor(e){this.options=e}createHTML(e){return kn.attribute(e(this))}createBehavior(){return this}}$t(rr);const La=o=>o.nodeType===1,co=o=>o?e=>e.nodeType===1&&e.matches(o):La;class Va extends rr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Oa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const wn=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Cn=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Sn=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,In=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Pn=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,zn=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Tn(o){return o&&o.nodeType===Node.COMMENT_NODE}const Se=Object.freeze({attributeMarkerName:"data-fe-b",compactAttributeMarkerName:"data-fe-c",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return wn.test(o)},isContentBindingEndMarker(o){return Cn.test(o)},isRepeatViewStartMarker(o){return Sn.test(o)},isRepeatViewEndMarker(o){return In.test(o)},isElementBoundaryStartMarker(o){return Tn(o)&&Pn.test(o.data.trim())},isElementBoundaryEndMarker(o){return Tn(o)&&zn.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseEnumeratedAttributeBinding(o){const e=[],t=this.attributeMarkerName.length+1,i=`${this.attributeMarkerName}-`;for(const r of o.getAttributeNames())if(r.startsWith(i)){const n=Number(r.slice(t));if(!Number.isNaN(n))e.push(n);else throw G.error(1601,{name:r,expectedFormat:`${i}<number>`})}return e.length===0?null:e},parseCompactAttributeBinding(o){const e=`${this.compactAttributeMarkerName}-`,t=o.getAttributeNames().find(h=>h.startsWith(e));if(!t)return null;const r=t.slice(e.length).split("-"),n=parseInt(r[0],10),s=parseInt(r[1],10);if(r.length!==2||Number.isNaN(n)||Number.isNaN(s)||n<0||s<1)throw G.error(1604,{name:t,expectedFormat:`${this.compactAttributeMarkerName}-{index}-{count}`});const c=[];for(let h=0;h<s;h++)c.push(n+h);return c},parseContentBindingStartMarker(o){return Bn(wn,o)},parseContentBindingEndMarker(o){return Bn(Cn,o)},parseRepeatStartMarker(o){return _n(Sn,o)},parseRepeatEndMarker(o){return _n(In,o)},parseElementBoundaryStartMarker(o){return On(Pn,o.trim())},parseElementBoundaryEndMarker(o){return On(zn,o)}});function _n(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function On(o,e){const t=o.exec(e);return t===null?t:t[1]}function Bn(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Wo=Symbol.for("fe-hydration");function Uo(o){return o[Wo]===Wo}const Go="defer-hydration";class Nn extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function nr(o){return o.nodeType===Node.COMMENT_NODE}function An(o){return o.nodeType===Node.TEXT_NODE}function En(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,nr(e)||An(e)?e.data.length:e.childNodes.length),t}function Ha(o){return o instanceof DocumentFragment&&"mode"in o}function Ra(o,e,t){const i=En(o,e),r=i.commonAncestorContainer,n=Ua(t),s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return i.comparePoint(l,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),c={},h={};let d=s.currentNode=o;for(;d!==null;){switch(d.nodeType){case Node.ELEMENT_NODE:{ja(d,t,c,n);break}case Node.COMMENT_NODE:{qa(d,s,t,c,h,n);break}}d=s.nextNode()}return i.detach(),{targets:c,boundaries:h}}function ja(o,e,t,i){var r,n;const s=(n=(r=Se.parseAttributeBinding(o))!==null&&r!==void 0?r:Se.parseEnumeratedAttributeBinding(o))!==null&&n!==void 0?n:Se.parseCompactAttributeBinding(o);if(s!==null){for(const c of s){const h=e[c+i];if(!h)throw new Nn(`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.`,e,o);Xo(h,o,t)}o.removeAttribute(Se.attributeMarkerName)}}function qa(o,e,t,i,r,n){if(Se.isElementBoundaryStartMarker(o)){Wa(o,e);return}if(Se.isContentBindingStartMarker(o.data)){const s=Se.parseContentBindingStartMarker(o.data);if(s===null)return;const[c,h]=s,d=t[c+n],l=[];let p=e.nextSibling();o.data="";const x=p;for(;p!==null;){if(nr(p)){const C=Se.parseContentBindingEndMarker(p.data);if(C&&C[1]===h)break}l.push(p),p=e.nextSibling()}if(p===null){const C=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ha(C)?C.host.nodeName:C.nodeName}".`)}if(p.data="",l.length===1&&An(l[0]))Xo(d,l[0],i);else{p!==x&&p.previousSibling!==null&&(r[d.targetNodeId]={first:x,last:p.previousSibling});const C=p.parentNode.insertBefore(document.createTextNode(""),p);Xo(d,C,i)}}}function Wa(o,e){const t=Se.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(nr(i)){const r=Se.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Ua(o){let e=0;for(let t=0,i=o.length;t<i&&o[t].targetNodeId==="h";++t)e++;return e}function Xo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Fn;function sr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class Mn{constructor(){this.index=0,this.length=0}get event(){return Et.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 Ko extends Mn{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ho.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,i.insertBefore(r,e),r=n;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){sr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let n=0,s=r.length;n<s;++n){const c=r[n].createBehavior();c.bind(this),i[n]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,n=i.length;r<n;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){sr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}$t(Ko),m.defineProperty(Ko.prototype,"index"),m.defineProperty(Ko.prototype,"length");const Ft={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ga extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class Xa extends Mn{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Fn]=Wo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ho.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Ft.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,i.insertBefore(r,e),r=n;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i;if(this.hydrationStage!==Ft.hydrated&&(this._hydrationStage=Ft.hydrating),this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:s,boundaries:c}=Ra(this.firstChild,this.lastChild,this.factories);this._targets=s,this._bindingViewBoundaries=c}catch(s){if(s instanceof Nn){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),s.templateString=c}throw s}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let s=0,c=n.length;s<c;++s){const h=n[s];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Xo(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const d=h.createBehavior();d.bind(this),r[s]=d}else{let d=this.sourceTemplate.html;typeof d!="string"&&(d=d.innerHTML);const l=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host,p=l?.nodeName||"unknown",x=h,C=[`HydrationView was unable to successfully target bindings inside "<${p.toLowerCase()}>".`,`
|
|
2
2
|
Mismatch Details:`,` - Expected target node ID: "${h.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(", ")||"none"}]`];throw h.targetTagName&&C.push(` - Expected tag name: "${h.targetTagName}"`),x.sourceAspect&&C.push(` - Source aspect: "${x.sourceAspect}"`),x.aspectType!==void 0&&C.push(` - Aspect type: ${x.aspectType}`),C.push(`
|
|
3
3
|
This usually means:`," 1. The server-rendered HTML doesn't match the client template"," 2. The hydration markers are missing or corrupted"," 3. The DOM structure was modified before hydration",`
|
|
4
|
-
Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new
|
|
5
|
-
`),h,An(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,s=r.length;n<s;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Et.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){rr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}En=qo,$t(Ga);function Xa(o){return o.create!==void 0}function Ka(o,e,t,i){if(t==null&&(t=""),Xa(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Wo(i)&&Wo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Et.hydrated){const n=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(n.first,n.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Ya(o,e,t){var i;const r=`${this.id}-t`,n=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},s=n.cv;let c=n.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const x=d[l];x!==""&&(s[x]=c,h.add(x))}}if(n.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const Ja={[J.attribute]:yt.setAttribute,[J.booleanAttribute]:yt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:Ka,[J.tokenList]:Ya,[J.event]:()=>{}};class Ft{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=J.content}createHTML(e){return xn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ja[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw G.error(He.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=Wo(e)&&e.hydrationStage&&e.hydrationStage!==Et.hydrated;switch(this.aspectType){case J.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const n=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(n.target=i,n.controller=e,r&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute)){n.bind(e);break}this.updateTarget(i,this.targetAspect,n.bind(e),e);break}}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){At.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);At.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.controller;if(!i.isBound)return;const r=t.target;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Re.define(Ft,{aspected:!0});const Mn=(o,e)=>`${o}.${e}`,Dn={},je={index:0,node:null};function Ln(o){o.startsWith("fast-")||G.warn(He.hostBindingWithoutHost,{name:o})}const Qa=new Proxy(document.createElement("div"),{get(o,e){Ln(e);const t=Reflect.get(o,e);return vt(t)?t.bind(o):t},set(o,e,t){return Ln(e),Reflect.set(o,e,t)}});class Za{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,n){var s,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(s=e.id)!==null&&s!==void 0?s:ao(),e.targetNodeId=i,e.targetTagName=n,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let n=Dn[t];if(!n){const s=`_${t}`;Dn[t]=n={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[i]}}}r[t]=n}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Qa;for(const r of this.nodeIds)Reflect.get(i,r);return new Xo(t,this.factories,i)}}function Vn(o,e,t,i,r,n=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,x=jo.parse(p,c);let C=null;x===null?n&&(C=new Ft(fn(()=>p,o.policy)),Re.assignAspect(C,l.name)):C=nr.aggregate(x,o.policy),C!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(C,e,i,r,t.tagName))}}function el(o,e,t,i,r){const n=jo.parse(e.textContent,o.directives);if(n===null)return je.node=e.nextSibling,je.index=r+1,je;let s,c=s=e;for(let h=0,d=n.length;h<d;++h){const l=n[h];h!==0&&(r++,i=Mn(t,r),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Qe(l)?s.textContent=l:(s.textContent=" ",Re.assignAspect(l),o.addFactory(l,t,i,r,null)),c=s}return je.index=r+1,je.node=c.nextSibling,je}function Hn(o,e,t){let i=0,r=e.firstChild;for(;r;){const n=tl(o,t,r,i);r=n.node,i=n.index}}function tl(o,e,t,i){const r=Mn(e,i);switch(t.nodeType){case 1:Vn(o,e,t,r,i),Hn(o,t,r);break;case 3:return el(o,t,e,r,i);case 8:{const n=jo.parse(t.data,o.directives);n!==null&&o.addFactory(nr.aggregate(n),e,r,i,null);break}}return je.index=i+1,je.node=t.nextSibling,je}function ol(o,e){return o&&o.nodeType===8&&jo.parse(o.data,e)!==null}const Rn="TEMPLATE",nr={compile(o,e,t=yt.policy){let i;if(Qe(o)){i=document.createElement(Rn),i.innerHTML=t.createHTML(o);const s=i.content.firstElementChild;s!==null&&s.tagName===Rn&&(i=s)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),n=new Za(r,e,t);return Vn(n,"",i,"h",0,!0),(ol(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Hn(n,r,"r"),je.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=yt.policy){if(o.length===1)return o[0];let t,i=!1,r;const n=o.length,s=o.map(d=>Qe(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let x=0;x<n;++x)p+=s[x](d,l);return p},h=new Ft(Ki(c,r??e,i));return Re.assignAspect(h,t),h}};class jn extends or{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Re.define(jn);const _=o=>new jn(o),qn="boolean",Wn="reflect",Ko=Object.freeze({locate:dn()}),il={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Un(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Un(o);return e&&e.toString()},fromView:Un};class Ri{constructor(e,t,i=t.toLowerCase(),r=Wn,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===qn&&n===void 0&&(this.converter=il)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||A.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Wn:const n=this.converter;yt.setAttribute(e,this.attribute,n!==void 0?n.toView(r):r);break;case qn:yt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,n=t.length;r<n;++r){const s=t[r];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];Qe(d)?i.push(new Ri(e,d)):i.push(new Ri(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,n){arguments.length>1&&(t.property=n),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}var rl=window&&window.__awaiter||function(o,e,t,i){function r(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function c(l){try{d(i.next(l))}catch(p){s(p)}}function h(l){try{d(i.throw(l))}catch(p){s(p)}}function d(l){l.done?n(l.value):r(l.value).then(c,h)}d((i=i.apply(o,e||[])).next())})},Ae;const Gn={mode:"open"},Xn={},sr=new Set,co=G.getById(mt.elementRegistry,()=>Gi()),nl={deferAndHydrate:"defer-and-hydrate"};class ce{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var i;this.platformDefined=!1,Qe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,n=Ri.collect(e,t.attributes),s=new Array(n.length),c={},h={};for(let d=0,l=n.length;d<l;++d){const p=n[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(r,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Gn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Gn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Xn:Object.assign(Object.assign({},Xn),t.elementOptions),this.styles=ve.normalize(t.styles),co.register(this),m.defineProperty(Ae.isRegistered,this.name),Ae.isRegistered[this.name]=this.type}define(e=this.registry){var t,i;const r=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,r,this.elementOptions),(i=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||i===void 0||i.call(t,this.name)),this}static compose(e,t){return sr.has(e)||co.getByType(e)?new Ae(class extends e{},t):new Ae(e,t)}static registerBaseType(e){sr.add(e)}static composeAsync(e,t){return new Promise(i=>{(sr.has(e)||co.getByType(e))&&i(new Ae(class extends e{},t));const r=new Ae(e,t);m.getNotifier(r).subscribe({handleChange:()=>{var n,s;(s=(n=r.lifecycleCallbacks)===null||n===void 0?void 0:n.templateDidUpdate)===null||s===void 0||s.call(n,r.name),i(r)}},"template")})}}Ae=ce,ce.isRegistered={},ce.getByType=co.getByType,ce.getForInstance=co.getForInstance,ce.registerAsync=o=>rl(void 0,void 0,void 0,function*(){return new Promise(e=>{Ae.isRegistered[o]&&e(Ae.isRegistered[o]),m.getNotifier(Ae.isRegistered).subscribe({handleChange:()=>e(Ae.isRegistered[o])},o)})}),m.defineProperty(ce.prototype,"template");const sl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,al=Object.create(null);class xt{constructor(e,t=al){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}xt.empty=new xt(""),Re.define(xt);function ll(o,e,t,i=Re.getForInstance(o)){if(i.aspected){const r=sl.exec(e);r!==null&&Re.assignAspect(o,r[2])}return o.createHTML(t)}class ji{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=nr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new xt(Qe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw G.error(He.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw G.error(He.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const n=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=ao();return n[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(r+=d,vt(l))l=new Ft(Ki(l));else if(l instanceof Ho)l=new Ft(l);else if(!(p=Re.getForInstance(l))){const x=l;l=new Ft(fn(()=>x))}r+=ll(l,d,s,p)}return new ji(r+e[e.length-1],n,i)}}$t(ji);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ji.create(o,e);throw G.error(He.directCallToHTMLTagNotAllowed)};b.partial=o=>new xt(o);const Kn="slotchange";class Yn extends La{observe(e){e.addEventListener(Kn,this)}disconnect(e){e.removeEventListener(Kn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Re.define(Yn);function X(o){return Qe(o)&&(o={property:o}),new Yn(o)}class cl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:At.default,targets:t,get isBound(){return r},addBehaviorFactory(n,s){var c,h,d,l;const p=n;p.id=(c=p.id)!==null&&c!==void 0?c:ao(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:ao(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:yt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(n,s){t[n]=s},addBehavior(n){e.push(n),r&&n.bind(this)},onUnbind(n){i===null&&(i=[]),i.push(n)},connectedCallback(n){r||(r=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(n){r&&(r=!1,i!==null&&i.forEach(s=>s.unbind(this)))}}}});const dl={bubbles:!0,composed:!0,cancelable:!0},Yo="isConnected",Jn=new WeakMap;function ho(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Jn.get(o))!==null&&t!==void 0?t:null}let Qn;var Q;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(Q||(Q={}));class Ve extends un{get isConnected(){return m.track(this,Yo),this.stage===Q.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:At.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Jn.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=Q.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const i=m.getAccessors(e);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const c=i[n].name,h=e[c];h!==void 0&&(delete e[c],r[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(i=r.get(e))!==null&&i!==void 0?i:0;n===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===Q.connected||this.stage===Q.connecting)&&e.connectedCallback(this)):r.set(e,n+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==Q.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=ho(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.addBehavior(r[n])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=ho(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.removeBehavior(r[n])}}connect(){this.stage===Q.disconnected&&(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=Q.connected,m.notify(this,Yo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,n=i.length;r<n;++r){const s=i[r];e[s]=t[s]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===Q.connected&&(this.stage=Q.disconnecting,m.notify(this,Yo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Q.disconnected)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===Q.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},dl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=ho(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let n=r.firstChild;n!==null;n=r.firstChild)r.removeChild(n)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e,t=!1){const i=e.$fastController;if(i!==void 0&&!t)return i;const r=ce.getForInstance(e);if(r===void 0)throw G.error(He.missingElementDefinition);return m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Qn(e,r)}static setStrategy(e){Qn=e}}$t(Ve),Ve.setStrategy(Ve);function Jo(o){var e;return"adoptedStyleSheets"in o?o:(e=ho(o))!==null&&e!==void 0?e:o.getRootNode()}class qi{constructor(e){const t=qi.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){es(Jo(e),this.sheets)}removeStylesFrom(e){ts(Jo(e),this.sheets)}}qi.styleSheetCache=new Map;let hl=0;const ul=()=>`fast-${++hl}`;function Zn(o){return o===document?document.body:o}class pl{constructor(e){this.styles=e,this.styleClass=ul()}addStylesTo(e){e=Zn(Jo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const n=document.createElement("style");n.innerHTML=t[r],n.className=i,e.append(n)}}removeStylesFrom(e){e=Zn(Jo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let es=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},ts=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),es=(o,e)=>{o.adoptedStyleSheets.push(...e)},ts=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ve.setDefaultStrategy(qi)}else ve.setDefaultStrategy(pl);const ar="needs-hydration";class I extends Ve{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===nl.deferAndHydrate&&(this.source.toggleAttribute(Uo,!0),this.source.toggleAttribute(ar,!0))}addHydratingInstance(){if(!I.hydratingInstances)return;const e=this.definition.name;let t=I.hydratingInstances.get(e);t||(t=new Set,I.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return I.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Uo)||(I.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,i,r;if(e.didTimeout){I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50});return}if(((t=I.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(r=(i=I.lifecycleCallbacks).hydrationComplete)===null||r===void 0||r.call(i)}catch{}Ve.setStrategy(Ve)}}connect(){var e,t,i,r,n,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(ar),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Uo)){this.addHydratingInstance(),I.hydrationObserver.observe(this.source,{attributeFilter:[Uo]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===Q.disconnected){if(!I.hydrationStarted){I.hydrationStarted=!0;try{(i=(t=I.lifecycleCallbacks).hydrationStarted)===null||i===void 0||i.call(t)}catch{}}try{(n=(r=I.lifecycleCallbacks).elementWillHydrate)===null||n===void 0||n.call(r,this.source)}catch{}if(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Wo(this.template)){const h=this.source,d=(s=ho(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Ie.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Ie.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=Q.connected,this.source.removeAttribute(ar),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Yo)}}removeHydratingInstance(){var e,t;if(!I.hydratingInstances)return;try{(t=(e=I.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const i=this.definition.name,r=I.hydratingInstances.get(i);r&&(r.delete(this.source),r.size||I.hydratingInstances.delete(i),I.idleCallbackId&&cancelIdleCallback(I.idleCallbackId),I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),I.hydrationObserver.unobserve(this.source)}static install(){Ve.setStrategy(I)}}I.hydrationObserver=new cl(I.hydrationObserverHandler),I.lifecycleCallbacks={},I.hydrationStarted=!1,I.idleCallbackId=null,I.hydratingInstances=new Map;function os(o){const e=class extends o{constructor(){super(),Ve.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return ce.registerBaseType(e),e}function gl(o,e){return vt(o)?ce.compose(o,e):ce.compose(this,o)}function fl(o,e){return vt(o)?new Promise(t=>{ce.composeAsync(o,e).then(i=>{t(i)})}).then(t=>t.define().type):new Promise(t=>{ce.composeAsync(this,o).then(i=>{t(i)})}).then(t=>t.define().type)}function bl(o,e){return vt(o)?ce.compose(o,e).define().type:ce.compose(this,o).define().type}function ml(o){return os(o)}const k=Object.assign(os(HTMLElement),{from:ml,define:bl,compose:gl,defineAsync:fl});function de(o){return o?typeof o=="string"?new xt(o):"inline"in o?o.inline():o:xt.empty}class rt{}function nt(o){return b`<slot name=end ${_("end")}>${de(o.end)}</slot>`.inline()}function qe(o){return b`<slot name=start ${_("start")}>${de(o.start)}</slot>`.inline()}function st(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),Ko.locate(i).forEach(n=>t.push(n))})}var vl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Qo=(o,e,t,i)=>{for(var r=i>1?void 0:i?$l(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&vl(e,t,r),r};class uo extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Qo([a({attribute:"heading-level",mode:"fromView",converter:ie})],uo.prototype,"headinglevel",2),Qo([a({mode:"boolean"})],uo.prototype,"expanded",2),Qo([a({mode:"boolean"})],uo.prototype,"disabled",2),Qo([f],uo.prototype,"expandbutton",2);var yl=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?xl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&yl(e,t,r),r};class po extends uo{constructor(){super(...arguments),this.block=!1}}lr([a],po.prototype,"size",2),lr([a({attribute:"marker-position"})],po.prototype,"markerPosition",2),lr([a({mode:"boolean"})],po.prototype,"block",2),st(po,rt);const kl=":host([hidden]){display:none}";function w(o){return`${kl}:host{display:${o}}`}const O="var(--colorNeutralForeground1)",is="var(--colorNeutralForeground1Hover)",wl="var(--colorNeutralForeground1Pressed)",Ee="var(--colorNeutralForeground2)",Mt="var(--colorNeutralForeground2Hover)",Dt="var(--colorNeutralForeground2Pressed)",Zo="var(--colorNeutralForeground2Selected)",ei="var(--colorNeutralForeground2BrandHover)",ti="var(--colorNeutralForeground2BrandPressed)",Cl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Sl="var(--colorNeutralForeground3Hover)",Il="var(--colorNeutralForeground3Pressed)",Pl="var(--colorNeutralForeground3Selected)",cr="var(--colorNeutralForeground4)",B="var(--colorNeutralForegroundDisabled)",zl="var(--colorBrandForegroundLink)",Tl="var(--colorBrandForegroundLinkHover)",_l="var(--colorBrandForegroundLinkPressed)",Ol="var(--colorNeutralForeground2Link)",Bl="var(--colorNeutralForeground2LinkHover)",Nl="var(--colorNeutralForeground2LinkPressed)",Al="var(--colorCompoundBrandForeground1Hover)",El="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",kt="var(--colorNeutralForegroundInverted)",Fl="var(--colorNeutralForegroundInvertedHover)",Ml="var(--colorNeutralForegroundInvertedPressed)",rs="var(--colorNeutralForegroundStaticInverted)",oi="var(--colorBrandForeground1)",Dl="var(--colorBrandForeground2)",Ll="var(--colorNeutralForeground1Static)",P="var(--colorNeutralBackground1)",ii="var(--colorNeutralBackground1Hover)",dr="var(--colorNeutralBackground1Pressed)",ns="var(--colorNeutralBackground1Selected)",go="var(--colorNeutralBackground3)",Vl="var(--colorNeutralBackground4)",Hl="var(--colorNeutralBackground5)",fo="var(--colorNeutralBackground6)",ss="var(--colorNeutralBackgroundInverted)",as="var(--colorSubtleBackground)",ri="var(--colorSubtleBackgroundHover)",bo="var(--colorSubtleBackgroundPressed)",ls="var(--colorSubtleBackgroundSelected)",Rl="var(--colorSubtleBackgroundLightAlphaHover)",jl="var(--colorSubtleBackgroundLightAlphaPressed)",ql="var(--colorSubtleBackgroundLightAlphaSelected)",he="var(--colorTransparentBackground)",ni="var(--colorTransparentBackgroundHover)",si="var(--colorTransparentBackgroundPressed)",cs="var(--colorTransparentBackgroundSelected)",at="var(--colorNeutralBackgroundDisabled)",hr="var(--colorBackgroundOverlay)",ds="var(--colorBrandBackground)",hs="var(--colorBrandBackgroundHover)",us="var(--colorBrandBackgroundPressed)",Wl="var(--colorBrandBackgroundSelected)",wt="var(--colorCompoundBrandBackground)",Lt="var(--colorCompoundBrandBackgroundHover)",Vt="var(--colorCompoundBrandBackgroundPressed)",ps="var(--colorBrandBackgroundStatic)",gs="var(--colorBrandBackground2)",We="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",St="var(--colorNeutralStrokeAccessiblePressed)",Ue="var(--colorNeutralStroke1)",It="var(--colorNeutralStroke1Hover)",mo="var(--colorNeutralStroke1Pressed)",vo="var(--colorNeutralStroke2)",Ul="var(--colorNeutralStroke3)",Gl="var(--colorNeutralStrokeOnBrand2)",fs="var(--colorBrandStroke1)",bs="var(--colorBrandStroke2)",lt="var(--colorCompoundBrandStroke)",Xl="var(--colorCompoundBrandStrokeHover)",ms="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",ur="var(--colorTransparentStrokeInteractive)",ai="var(--colorStrokeFocus1)",ue="var(--colorStrokeFocus2)",Kl="var(--colorNeutralShadowAmbient)",Yl="var(--colorNeutralShadowKey)",vs="var(--colorPaletteRedBackground1)",Jl="var(--colorPaletteRedBackground2)",$s="var(--colorPaletteRedBackground3)",ys="var(--colorPaletteRedBorder1)",pr="var(--colorPaletteRedBorder2)",gr="var(--colorPaletteRedForeground1)",Ql="var(--colorPaletteRedForeground2)",xs="var(--colorPaletteRedForeground3)",ks="var(--colorPaletteGreenBackground1)",ws="var(--colorPaletteGreenBackground3)",Zl="var(--colorPaletteGreenBorder1)",ec="var(--colorPaletteGreenBorder2)",tc="var(--colorPaletteGreenForeground1)",oc="var(--colorPaletteGreenForeground2)",ic="var(--colorPaletteGreenForeground3)",Cs="var(--colorPaletteDarkOrangeBackground1)",Ss="var(--colorPaletteDarkOrangeBackground3)",Is="var(--colorPaletteDarkOrangeBorder1)",rc="var(--colorPaletteDarkOrangeForeground1)",Ps="var(--colorPaletteDarkOrangeForeground3)",nc="var(--colorPaletteYellowBackground1)",sc="var(--colorPaletteYellowBackground3)",ac="var(--colorPaletteYellowBorder1)",fr="var(--colorPaletteYellowForeground2)",zs="var(--colorPaletteMarigoldBackground2)",lc="var(--colorPaletteMarigoldBorderActive)",cc="var(--colorPaletteMarigoldForeground2)",dc="var(--colorPaletteAnchorBackground2)",hc="var(--colorPaletteAnchorForeground2)",uc="var(--colorPaletteBeigeBackground2)",pc="var(--colorPaletteBeigeForeground2)",gc="var(--colorPaletteBlueBackground2)",fc="var(--colorPaletteBlueForeground2)",bc="var(--colorPaletteBrassBackground2)",mc="var(--colorPaletteBrassForeground2)",vc="var(--colorPaletteBrownBackground2)",$c="var(--colorPaletteBrownForeground2)",yc="var(--colorPaletteCornflowerBackground2)",xc="var(--colorPaletteCornflowerForeground2)",kc="var(--colorPaletteCranberryBackground2)",wc="var(--colorPaletteCranberryForeground2)",Cc="var(--colorPaletteDarkGreenBackground2)",Sc="var(--colorPaletteDarkGreenForeground2)",Ic="var(--colorPaletteDarkRedBackground2)",Pc="var(--colorPaletteDarkRedForeground2)",zc="var(--colorPaletteForestBackground2)",Tc="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Oc="var(--colorPaletteGoldForeground2)",Bc="var(--colorPaletteGrapeBackground2)",Nc="var(--colorPaletteGrapeForeground2)",Ac="var(--colorPaletteLavenderBackground2)",Ec="var(--colorPaletteLavenderForeground2)",Fc="var(--colorPaletteLightTealBackground2)",Mc="var(--colorPaletteLightTealForeground2)",Dc="var(--colorPaletteLilacBackground2)",Lc="var(--colorPaletteLilacForeground2)",Vc="var(--colorPaletteMagentaBackground2)",Hc="var(--colorPaletteMagentaForeground2)",Rc="var(--colorPaletteMinkBackground2)",jc="var(--colorPaletteMinkForeground2)",qc="var(--colorPaletteNavyBackground2)",Wc="var(--colorPaletteNavyForeground2)",Uc="var(--colorPalettePeachBackground2)",Gc="var(--colorPalettePeachForeground2)",Xc="var(--colorPalettePinkBackground2)",Kc="var(--colorPalettePinkForeground2)",Yc="var(--colorPalettePlatinumBackground2)",Jc="var(--colorPalettePlatinumForeground2)",Qc="var(--colorPalettePlumBackground2)",Zc="var(--colorPalettePlumForeground2)",ed="var(--colorPalettePumpkinBackground2)",td="var(--colorPalettePumpkinForeground2)",od="var(--colorPalettePurpleBackground2)",id="var(--colorPalettePurpleForeground2)",rd="var(--colorPaletteRoyalBlueBackground2)",nd="var(--colorPaletteRoyalBlueForeground2)",sd="var(--colorPaletteSeafoamBackground2)",ad="var(--colorPaletteSeafoamForeground2)",ld="var(--colorPaletteSteelBackground2)",cd="var(--colorPaletteSteelForeground2)",dd="var(--colorPaletteTealBackground2)",hd="var(--colorPaletteTealForeground2)",li="var(--borderRadiusNone)",Fe="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",Ts="var(--borderRadiusLarge)",_s="var(--borderRadiusXLarge)",pe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",ud="var(--fontFamilyMonospace)",pd="var(--fontFamilyNumeric)",$o="var(--fontSizeBase100)",D="var(--fontSizeBase200)",E="var(--fontSizeBase300)",ge="var(--fontSizeBase400)",Ht="var(--fontSizeBase500)",ci="var(--fontSizeBase600)",Os="var(--fontSizeHero700)",Bs="var(--fontSizeHero800)",Ns="var(--fontSizeHero900)",As="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",gd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",di="var(--fontWeightBold)",hi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",L="var(--lineHeightBase300)",xe="var(--lineHeightBase400)",ui="var(--lineHeightBase500)",Es="var(--lineHeightBase600)",Fs="var(--lineHeightHero700)",Ms="var(--lineHeightHero800)",Ds="var(--lineHeightHero900)",Ls="var(--lineHeightHero1000)",br="var(--shadow2)",pi="var(--shadow4)",fd="var(--shadow8)",mr="var(--shadow16)",bd="var(--shadow28)",Vs="var(--shadow64)",z="var(--strokeWidthThin)",fe="var(--strokeWidthThick)",Pe="var(--strokeWidthThicker)",vr="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",re="var(--spacingHorizontalXS)",ke="var(--spacingHorizontalSNudge)",Me="var(--spacingHorizontalS)",et="var(--spacingHorizontalMNudge)",ne="var(--spacingHorizontalM)",md="var(--spacingHorizontalL)",vd="var(--spacingHorizontalXL)",$r="var(--spacingHorizontalXXL)",yr="var(--spacingVerticalNone)",gi="var(--spacingVerticalXXS)",Rt="var(--spacingVerticalXS)",yo="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",fi="var(--spacingVerticalMNudge)",$d="var(--spacingVerticalM)",xr="var(--spacingVerticalL)",Pt="var(--spacingVerticalXXL)",yd="var(--spacingVerticalXXXL)",kr="var(--durationUltraFast)",bi="var(--durationFaster)",mi="var(--durationNormal)",wr="var(--durationGentle)",xd="var(--durationSlow)",Hs="var(--durationSlower)",vi="var(--durationUltraSlow)",kd="var(--curveAccelerateMax)",zt="var(--curveAccelerateMid)",wd="var(--curveAccelerateMin)",Rs="var(--curveDecelerateMax)",Tt="var(--curveDecelerateMid)",Cd="var(--curveDecelerateMin)",js="var(--curveEasyEaseMax)",$i="var(--curveEasyEase)",Cr="var(--curveLinear)",Sd=g`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ne} ${et};border-radius:${S};font-family:${v};font-size:${E};font-weight:${F};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${he};border:none;box-sizing:border-box;color:${O};cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Fe}}: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:${Me};grid-column:1/span 1;grid-row:1}.content{margin:0 ${ne}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Me};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Fe};outline:none;border:2px solid ${ai};box-shadow:inset 0 0 0 1px ${ue}}:host([disabled]) .button{color:${B}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${E};line-height:${L}}:host([size='small']) .heading{font-size:${D};line-height:${q}}:host([size='large']) .heading{font-size:${ge};line-height:${xe}}:host([size='extra-large']) .heading{font-size:${Ht};line-height:${ui}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Me};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ne}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${et} ${ne}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`,Id=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),Pd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function zd(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${_("expandbutton")}><slot name=heading></slot></button> ${qe(o)}<slot name=marker-expanded>${de(o.expandedIcon)}</slot><slot name=marker-collapsed>${de(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Td=zd({collapsedIcon:Id,expandedIcon:Pd}),_d=po.compose({name:za,template:Td,styles:Sd});_d.define(u.registry);const Sr={single:"single",multi:"multi"},Od=`${u.prefix}-accordion`;function qs(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function xo(o,e,t){const i=t?.shallow??!1,r=t?.timeout??50,n=t?.idleCallback??!1,s=`${i?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){n?qs(e,{timeout:r}):e();return}qs(c,{timeout:r})};c()}var Bd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Ws=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bd(e,t,r),r};class Ir extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{xo(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Wi(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Sr.single){this.setSingleExpandMode(i);return}i?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Wi(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Sr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{Wi(i)&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton?.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Sr.multi,this.setItems()}}Ws([a({attribute:"expand-mode"})],Ir.prototype,"expandmode",2),Ws([f],Ir.prototype,"slottedAccordionItems",2);const Ad=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Ed(){return b`<template><slot ${X({property:"slottedAccordionItems",filter:lo()})}></slot></template>`}const Fd=Ed(),Md=Ir.compose({name:Od,template:Fd,styles:Ad});Md.define(u.registry);const Dd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Ld={circular:"circular",rounded:"rounded",square:"square"},Vd={small:"small",medium:"medium",large:"large"},yi={submit:"submit",reset:"reset",button:"button"},Hd=`${u.prefix}-button`,Rd=Dd,jd=Ld,qd=Vd,Wd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Ud=`${u.prefix}-anchor-button`,xi=CSS.supports("anchor-name: --a"),Gd="anchor"in HTMLElement.prototype,Us=CSS.supports("selector(:state(g))"),Gs=new Map;function T(o){return Gs.get(o)??Gs.set(o,Us?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Us){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Pr=new WeakMap;function Xs(o,e){if(!o||!e)return!1;if(Pr.has(o))return Pr.get(o).has(e);const t=new Set(Object.values(o));return Pr.set(o,t),t.has(e)}function _t(o,e="",t="",i,r=""){$(o,`${r}${e}`,!1),(!i||Xs(i,t))&&$(o,`${r}${t}`,!0)}var Xd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Xd(e,t,r),r};class Ge extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Wd){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}ct([a],Ge.prototype,"download",2),ct([a],Ge.prototype,"href",2),ct([a],Ge.prototype,"hreflang",2),ct([a],Ge.prototype,"ping",2),ct([a],Ge.prototype,"referrerpolicy",2),ct([a],Ge.prototype,"rel",2),ct([a],Ge.prototype,"target",2),ct([a],Ge.prototype,"type",2);var Yd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,ki=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Yd(e,t,r),r};class jt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){_t(this.elementInternals,e,t,Rd)}shapeChanged(e,t){_t(this.elementInternals,e,t,jd)}sizeChanged(e,t){_t(this.elementInternals,e,t,qd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}ki([a],jt.prototype,"appearance",2),ki([a],jt.prototype,"shape",2),ki([a],jt.prototype,"size",2),ki([a({attribute:"icon-only",mode:"boolean"})],jt.prototype,"iconOnly",2),st(jt,rt);const Ks=g`${w("inline-flex")} :host{--icon-spacing:${ke};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${O};border:${z} solid ${Ue};padding:0 ${ne};min-width:96px;border-radius:${S};font-size:${E};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${bi};transition-property:background,border,color;transition-timing-function:${$i};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ii};color:${is};border-color:${It}}:host(:hover:active){background-color:${dr};border-color:${mo};color:${wl};outline-style:none}:host(:focus-visible){border-color:${K};outline:${fe} solid ${K};box-shadow:${pi},0 0 0 2px ${ue}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${re};min-height:24px;min-width:64px;padding:0 ${Me};border-radius:${Fe};font-size:${D};line-height:${q};font-weight:${F}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Ts};padding:0 ${md};font-size:${ge};line-height:${xe}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${pe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${li}}:host([appearance='primary']){background-color:${ds};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${hs}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${us}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${br},0 0 0 2px ${ue}}:host([appearance='outline']){background-color:${he}}:host([appearance='outline']:hover){background-color:${ni}}:host([appearance='outline']:hover:active){background-color:${si}}:host([appearance='subtle']){background-color:${as};color:${Ee};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ri};color:${Mt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${bo};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ei}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ti}}:host([appearance='transparent']){background-color:${he};color:${Ee}}:host([appearance='transparent']:hover){background-color:${ni};color:${ei}}:host([appearance='transparent']:hover:active){background-color:${si};color:${ti}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wi=g`${Ks} :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:${at};border-color:${ye};color:${B};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${he}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Qd=g`${Ks} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Zd(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${qe(o)} <span class=content part=content><slot></slot></span>${nt(o)}</template>`}const eh=Zd(),th=jt.compose({name:Ud,template:eh,styles:Qd});th.define(u.registry);const Ys={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"},Js={neutral:"neutral",brand:"brand",colorful:"colorful",...Ys},oh=`${u.prefix}-avatar`,ih=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,rh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,nh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,sh=/\s+/g,ah=/[\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 lh(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function ch(o){return o=o.replace(ih,""),o=o.replace(rh,""),o=o.replace(sh," "),o=o.trim(),o}function Qs(o,e,t){return!o||(o=ch(o),ah.test(o)||!t?.allowPhoneInitials&&nh.test(o))?"":lh(o,e,t?.firstInitialOnly)}var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,ko=(o,e,t,i)=>{for(var r=i>1?void 0:i?hh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&dh(e,t,r),r};class qt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}A.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Qs(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}ko([f],qt.prototype,"defaultSlot",2),ko([f],qt.prototype,"monogram",2),ko([f],qt.prototype,"slottedDefaults",2),ko([a],qt.prototype,"name",2),ko([a],qt.prototype,"initials",2);var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Wt=(o,e,t,i)=>{for(var r=i>1?void 0:i?ph(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&uh(e,t,r),r};const dt=class rn extends qt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||Qs(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Js.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?rn.colors[fh(this.name??"")%rn.colors.length]:this.color??Js.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};dt.colors=Object.values(Ys),Wt([a],dt.prototype,"active",2),Wt([a],dt.prototype,"shape",2),Wt([a],dt.prototype,"appearance",2),Wt([a({converter:ie})],dt.prototype,"size",2),Wt([a],dt.prototype,"color",2),Wt([a({attribute:"color-id"})],dt.prototype,"colorId",2);let gh=dt;const fh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},ht={fastOutSlowInMax:Rs,fastOutSlowInMid:Tt,fastOutSlowInMin:Cd,slowOutFastInMax:kd,slowOutFastInMid:zt,slowOutFastInMin:wd,fastEase:js,normalEase:$i,nullEasing:Cr},bh=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${E};border-radius:${pe};color:${Z};background-color:${fo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${pe}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${z} ${P}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${fe} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${$o};font-weight:${F}}: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:${ge}}: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:${Ht}}: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:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Fe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Ts}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${_s}}:host([data-color='brand']){color:${rs};background-color:${ps}}:host([data-color='dark-red']){color:${Pc};background-color:${Ic}}:host([data-color='cranberry']){color:${wc};background-color:${kc}}:host([data-color='red']){color:${Ql};background-color:${Jl}}:host([data-color='pumpkin']){color:${td};background-color:${ed}}:host([data-color='peach']){color:${Gc};background-color:${Uc}}:host([data-color='marigold']){color:${cc};background-color:${zs}}:host([data-color='gold']){color:${Oc};background-color:${_c}}:host([data-color='brass']){color:${mc};background-color:${bc}}:host([data-color='brown']){color:${$c};background-color:${vc}}:host([data-color='forest']){color:${Tc};background-color:${zc}}:host([data-color='seafoam']){color:${ad};background-color:${sd}}:host([data-color='dark-green']){color:${Sc};background-color:${Cc}}:host([data-color='light-teal']){color:${Mc};background-color:${Fc}}:host([data-color='teal']){color:${hd};background-color:${dd}}:host([data-color='steel']){color:${cd};background-color:${ld}}:host([data-color='blue']){color:${fc};background-color:${gc}}:host([data-color='royal-blue']){color:${nd};background-color:${rd}}:host([data-color='cornflower']){color:${xc};background-color:${yc}}:host([data-color='navy']){color:${Wc};background-color:${qc}}:host([data-color='lavender']){color:${Ec};background-color:${Ac}}:host([data-color='purple']){color:${id};background-color:${od}}:host([data-color='grape']){color:${Nc};background-color:${Bc}}:host([data-color='lilac']){color:${Lc};background-color:${Dc}}:host([data-color='pink']){color:${Kc};background-color:${Xc}}:host([data-color='magenta']){color:${Hc};background-color:${Vc}}:host([data-color='plum']){color:${Zc};background-color:${Qc}}:host([data-color='beige']){color:${pc};background-color:${uc}}:host([data-color='mink']){color:${jc};background-color:${Rc}}:host([data-color='platinum']){color:${Jc};background-color:${Yc}}:host([data-color='anchor']){color:${hc};background-color:${dc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${vi},${bi};transition-delay:${ht.fastEase},${ht.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${vi},${Hs};transition-delay:${ht.fastEase},${ht.nullEasing}}:host([active])::before{box-shadow:${fd};border-style:solid;border-color:${ps}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${fe});border-width:${fe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Pe});border-width:${Pe}}: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 * ${vr});border-width:${vr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${pi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${mr}}: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:${bd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${vi},${bi};transition-delay:${ht.fastOutSlowInMin},${ht.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${vi},${Hs};transition-delay:${ht.fastOutSlowInMin},${ht.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}}`,mh=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function vh(){return b`<slot class=default-slot ${X("slottedDefaults")} ${_("defaultSlot")}></slot><span class=monogram ${_("monogram")}>${o=>o.initials}</span> ${mh}<slot name=badge></slot>`}const $h=vh(),yh=gh.compose({name:oh,template:$h,styles:bh});yh.define(u.registry);const xh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},kh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},wh=`${u.prefix}-badge`;var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ch(e,t,r),r};class Ut extends k{constructor(){super(...arguments),this.appearance=xh.filled,this.color=kh.brand}}Ci([a],Ut.prototype,"appearance",2),Ci([a],Ut.prototype,"color",2),Ci([a],Ut.prototype,"shape",2),Ci([a],Ut.prototype,"size",2),st(Ut,rt);const Zs=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${D};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${re} + ${R});border-radius:${pe};border-color:${K};background-color:${ds};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${z};border-color:inherit;border-radius:inherit}`,ea=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${$o};line-height:${hi};padding-inline:calc(${R} + ${R})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${D};line-height:${q};padding-inline:calc(${re} + ${R})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${D};line-height:${q};padding-inline:calc(${ke} + ${R})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,ta=g.partial`:host([color='danger']){background-color:${$s};color:${Ze}}:host([color='important']){background-color:${O};color:${P}}:host([color='informative']){background-color:${Hl};color:${Z}}:host([color='severe']){background-color:${Ss};color:${Ze}}:host([color='subtle']){background-color:${P};color:${O}}:host([color='success']){background-color:${ws};color:${Ze}}:host([color='warning']){background-color:${sc};color:${Ll}}`,oa=g.partial`:host([appearance='ghost']){color:${oi};background-color:initial}:host([appearance='ghost'][color='danger']){color:${xs}}:host([appearance='ghost'][color='important']){color:${O}}:host([appearance='ghost'][color='informative']){color:${Z}}:host([appearance='ghost'][color='severe']){color:${Ps}}:host([appearance='ghost'][color='subtle']){color:${kt}}:host([appearance='ghost'][color='success']){color:${ic}}:host([appearance='ghost'][color='warning']){color:${fr}}`,Ih=g.partial`:host([appearance='outline']){border-color:currentColor;color:${oi};background-color:initial}:host([appearance='outline'][color='danger']){color:${xs}}:host([appearance='outline'][color='important']){color:${Z};border-color:${We}}:host([appearance='outline'][color='informative']){color:${Z};border-color:${vo}}:host([appearance='outline'][color='severe']){color:${Ps}}:host([appearance='outline'][color='subtle']){color:${rs}}:host([appearance='outline'][color='success']){color:${oc}}:host([appearance='outline'][color='warning']){color:${fr}}`,Ph=g.partial`:host([appearance='tint']){background-color:${gs};color:${Dl};border-color:${bs}}:host([appearance='tint'][color='danger']){background-color:${vs};color:${gr};border-color:${ys}}:host([appearance='tint'][color='important']){background-color:${Z};color:${P};border-color:${K}}:host([appearance='tint'][color='informative']){background-color:${Vl};color:${Z};border-color:${vo}}:host([appearance='tint'][color='severe']){background-color:${Cs};color:${rc};border-color:${Is}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${Z};border-color:${vo}}:host([appearance='tint'][color='success']){background-color:${ks};color:${tc};border-color:${ec}}:host([appearance='tint'][color='warning']){background-color:${nc};color:${fr};border-color:${ac}}`,zh=g`:host([shape='square']){border-radius:${li}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Fe}}${Ph} ${Ih} ${oa} ${ta} ${ea} ${Zs} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Th(o={}){return b`${qe(o)}<slot>${de(o.defaultContent)}</slot>${nt(o)}`}const _h=Th(),Oh=Ut.compose({name:wh,template:_h,styles:zh});Oh.define(u.registry);var Bh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,we=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bh(e,t,r),r};class le extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==yi.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case yi.reset:{this.resetForm();break}case yi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==yi.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}le.formAssociated=!0,we([a({mode:"boolean"})],le.prototype,"autofocus",2),we([f],le.prototype,"defaultSlottedContent",2),we([a({mode:"boolean"})],le.prototype,"disabled",2),we([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),we([a({attribute:"formaction"})],le.prototype,"formAction",2),we([a({attribute:"form"})],le.prototype,"formAttribute",2),we([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),we([a({attribute:"formmethod"})],le.prototype,"formMethod",2),we([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),we([a({attribute:"formtarget"})],le.prototype,"formTarget",2),we([a],le.prototype,"name",2),we([a],le.prototype,"type",2),we([a],le.prototype,"value",2);var Ah=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ah(e,t,r),r};class tt extends le{constructor(){super(...arguments),this.iconOnly=!1}}Si([a],tt.prototype,"appearance",2),Si([a],tt.prototype,"shape",2),Si([a],tt.prototype,"size",2),Si([a({attribute:"icon-only",mode:"boolean"})],tt.prototype,"iconOnly",2),st(tt,rt);function zr(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot></span>${nt(o)}</template>`}const Fh=zr(),Mh=tt.compose({name:Hd,template:Fh,styles:wi});Mh.define(u.registry);const Dh=`${u.prefix}-checkbox`;var Lh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?Vh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Lh(e,t,r),r};class ze extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}ze.formAssociated=!0,ut([a({mode:"boolean"})],ze.prototype,"autofocus",2),ut([f],ze.prototype,"disabled",2),ut([a({attribute:"disabled",mode:"boolean"})],ze.prototype,"disabledAttribute",2),ut([a({attribute:"form"})],ze.prototype,"formAttribute",2),ut([a({attribute:"checked",mode:"boolean"})],ze.prototype,"initialChecked",2),ut([a({attribute:"value",mode:"fromView"})],ze.prototype,"initialValue",2),ut([a],ze.prototype,"name",2),ut([a({mode:"boolean"})],ze.prototype,"required",2);var Hh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Tr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Hh(e,t,r),r};class Ii extends ze{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Tr([f],Ii.prototype,"indeterminate",2),Tr([a],Ii.prototype,"shape",2),Tr([a],Ii.prototype,"size",2);const jh=T("active"),qh=T("bad-input"),y=T("checked"),Wh=T("custom-error"),Uh=T("description"),be=T("disabled");T("error");const Gh=T("flip-block"),Xh=T("focus-visible");T("has-message");const Ot=T("indeterminate"),Gt=T("multiple"),Kh=T("open"),Yh=T("pattern-mismatch"),Jh=T("placeholder-shown"),V=T("pressed"),Qh=T("range-overflow"),Zh=T("range-underflow"),eu=T("required"),_r=T("selected"),tu=T("step-mismatch"),Pi=T("submenu"),ou=T("too-long"),iu=T("too-short"),ru=T("type-mismatch"),nu=T("user-invalid"),su=T("valid"),au=T("value-missing"),lu=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${Fe};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${St}}:host(${y}:hover){background-color:${Lt};border-color:${Xl}}:host(${y}:active){background-color:${Vt};border-color:${ms}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${fe} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${ue}}.indeterminate-indicator,.checked-indicator{color:${kt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Ot}){border-color:${lt}}:host(${y}),:host(${Ot}) .indeterminate-indicator{background-color:${wt}}:host(${Ot}) .indeterminate-indicator{border-radius:${Fe};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${pe}}:host([disabled]),:host([disabled]${y}){background-color:${at};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${Ot}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Ot}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Ot}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ot}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,cu=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),du=b.partial("<span class=indeterminate-indicator></span>");function hu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${de(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${de(o.indeterminateIndicator)}</slot></template>`}const uu=hu({checkedIndicator:cu,indeterminateIndicator:du}),pu=Ii.compose({name:Dh,template:uu,styles:lu});pu.define(u.registry);const gu=`${u.prefix}-compound-button`;class fu extends tt{}const bu=g`${wi} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${E};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ee};line-height:100%;font-size:${D};font-weight:${F}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Mt}}:host(:active) ::slotted([slot='description']){color:${Dt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ee}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ei}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${ti}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${B}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ke}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${re}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Me}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ge};line-height:${xe}}:host([size='large']) ::slotted([slot='description']){font-size:${E}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function mu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot><slot name=description></slot></span>${nt(o)}</template>`}const vu=mu(),$u=fu.compose({name:gu,template:vu,styles:bu});$u.define(u.registry);const yu=`${u.prefix}-counter-badge`;var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,wo=(o,e,t,i)=>{for(var r=i>1?void 0:i?ku(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&xu(e,t,r),r};class Xt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}wo([a({converter:ie})],Xt.prototype,"count",2),wo([a({attribute:"overflow-count",converter:ie})],Xt.prototype,"overflowCount",2),wo([a({attribute:"show-zero",mode:"boolean"})],Xt.prototype,"showZero",2),wo([a({mode:"boolean"})],Xt.prototype,"dot",2),wo([$e],Xt.prototype,"displayValue",1);var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,zi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wu(e,t,r),r};class Kt extends Xt{}zi([a],Kt.prototype,"appearance",2),zi([a],Kt.prototype,"color",2),zi([a],Kt.prototype,"shape",2),zi([a],Kt.prototype,"size",2),st(Kt,rt);const Su=g`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Fe}}${ea} ${ta} ${oa} ${Zs} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Iu(o={}){return b`${qe(o)} <span>${e=>e.displayValue}</span> ${nt(o)}`}const Pu=Iu(),zu=Kt.compose({name:yu,template:Pu,styles:Su});zu.define(u.registry);const Bt={modal:"modal",nonModal:"non-modal",alert:"alert"};function ia(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Tu=`${u.prefix}-dialog`;var _u=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ou(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&_u(e,t,r),r};class De extends k{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Bt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Bt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),A.enqueue(()=>{this.type=this.type??Bt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){A.enqueue(()=>{this.emitBeforeToggle(),this.type===Bt.alert||this.type===Bt.modal?this.dialog.showModal():this.type===Bt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Bt.alert&&e.target===this.dialog&&this.hide(),!0}}Xe([f],De.prototype,"dialog",2),Xe([a({attribute:"aria-describedby"})],De.prototype,"ariaDescribedby",2),Xe([a({attribute:"aria-labelledby"})],De.prototype,"ariaLabelledby",2),Xe([a({attribute:"aria-label"})],De.prototype,"ariaLabel",2),Xe([a],De.prototype,"type",2),Xe([$e],De.prototype,"dialogDescribedby",1),Xe([$e],De.prototype,"dialogLabel",1),Xe([$e],De.prototype,"dialogLabelledby",1),Xe([$e],De.prototype,"dialogModal",1),Xe([$e],De.prototype,"dialogRole",1);const Bu=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${_("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Nu=g`@layer base{:host{--dialog-backdrop:${hr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${_s};border:none;box-shadow:${Vs};color:${O};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${wr};transition-timing-function:${Tt};opacity:0}::backdrop{transition-timing-function:${Cr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${zt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${z} solid ${K}}}}`,Au=De.compose({name:Tu,template:Bu,styles:Nu});Au.define(u.registry);const Eu=`${u.prefix}-dialog-body`;class Fu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ia(t)&&t.hide()}return!0}}const Mu=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,Du=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${se};padding:${Pt} ${$r};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${O};column-gap:8px;display:flex;font-family:${v};font-size:${Ht};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${ui};margin-block-end:calc(${se} * -1);margin-block-start:calc(${Pt} * -1);padding-block-end:${se};padding-block-start:${Pt}}.content{box-sizing:border-box;color:${O};font-family:${v};font-size:${E};font-weight:${F};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${Pt} * -1);padding-block-end:${Pt};padding-block-start:${xr}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Lu=Fu.compose({name:Eu,template:Mu,styles:Du});Lu.define(u.registry);const Ce={horizontal:"horizontal",vertical:"vertical"},Co={separator:"separator",presentation:"presentation"},ra=Ce,Vu=`${u.prefix}-divider`;var Hu=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,na=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ru(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Hu(e,t,r),r};class Or extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Co.separator,this.role!==Co.presentation&&(this.elementInternals.ariaOrientation=this.orientation??ra.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??Co.separator}`),t===Co.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==Co.presentation?t??null:null,_t(this.elementInternals,e,t,ra)}}na([a],Or.prototype,"role",2),na([a],Or.prototype,"orientation",2);var ju=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Br=(o,e,t,i)=>{for(var r=i>1?void 0:i?qu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ju(e,t,r),r};class Ti extends Or{}Br([a({attribute:"align-content"})],Ti.prototype,"alignContent",2),Br([a],Ti.prototype,"appearance",2),Br([a({mode:"boolean"})],Ti.prototype,"inset",2);function Wu(){return b`<slot></slot>`}const Uu=Wu(),Gu=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${vo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${z}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ee};font-family:${v};font-size:${D};font-weight:${F};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${z};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ue}}:host([appearance='strong']) ::slotted(*){color:${O}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${fs}}:host([appearance='brand']) ::slotted(*){color:${oi}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ul}}:host([appearance='subtle']) ::slotted(*){color:${Z}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Xu=Ti.compose({name:Vu,template:Uu,styles:Gu});Xu.define(u.registry);const Ku={start:"start",end:"end"},Yu={small:"small",medium:"medium",large:"large",full:"full"},So={nonModal:"non-modal",modal:"modal",inline:"inline"},Ju=`${u.prefix}-drawer`;var Qu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Te=(o,e,t,i)=>{for(var r=i>1?void 0:i?Zu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Qu(e,t,r),r};class Se extends k{constructor(){super(...arguments),this.position=Ku.start,this.size=Yu.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===So.modal)return!0}get dialogRole(){return this.dialog&&this.type===So.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),A.enqueue(()=>{this.type=this.type??So.modal})}show(){A.enqueue(()=>{this.emitBeforeToggle(),this.type===So.inline||this.type===So.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}Te([a],Se.prototype,"type",2),Te([a({attribute:"aria-labelledby"})],Se.prototype,"ariaLabelledby",2),Te([a({attribute:"aria-describedby"})],Se.prototype,"ariaDescribedby",2),Te([a],Se.prototype,"position",2),Te([f],Se.prototype,"role",2),Te([a({attribute:"size"})],Se.prototype,"size",2),Te([f],Se.prototype,"dialog",2),Te([$e],Se.prototype,"dialogDescribedby",1),Te([$e],Se.prototype,"dialogLabel",1),Te([$e],Se.prototype,"dialogLabelledby",1),Te([$e],Se.prototype,"dialogModal",1),Te([$e],Se.prototype,"dialogRole",1);const ep=g`${w("block")} :host{--dialog-backdrop:${hr}}: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:${E};line-height:${L};font-family:${v};font-weight:${F};color:${O};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Vs};border:${z} solid ${K};background:${P}}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:${wr};transition-timing-function:${Tt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${zt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${zt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${wr};transition-timing-function:${Tt};background:var(--dialog-backdrop,${hr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Cr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function tp(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${_("dialog")}><slot></slot></dialog>`}const op=tp(),ip=Se.compose({name:Ju,template:op,styles:ep});ip.define(u.registry);const rp=`${u.prefix}-drawer-body`;class np extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ia(t,"-drawer")&&t.hide()}return!0}}const sa=g.partial`font-family:${v};font-size:${E};line-height:${L};font-weight:${F};`;g.partial`font-family:${v};font-size:${E};line-height:${L};font-weight:${H};`,g.partial`font-family:${v};font-size:${E};line-height:${L};font-weight:${di};`;const sp=g.partial`font-family:${v};font-size:${ge};line-height:${xe};font-weight:${F};`,aa=g.partial`font-family:${v};font-size:${D};line-height:${q};font-weight:${F};`;g.partial`font-family:${v};font-size:${D};line-height:${q};font-weight:${H};`,g.partial`font-family:${v};font-size:${D};line-height:${q};font-weight:${di};`,g.partial`font-family:${v};font-size:${$o};line-height:${hi};font-weight:${F};`,g.partial`font-family:${v};font-size:${$o};line-height:${hi};font-weight:${H};`;const ap=g.partial`font-family:${v};font-size:${Ht};line-height:${ui};font-weight:${H};`;g.partial`font-family:${v};font-size:${ge};line-height:${xe};font-weight:${H};`,g.partial`font-family:${v};font-size:${ge};line-height:${xe};font-weight:${di};`,g.partial`font-family:${v};font-size:${Bs};line-height:${Ms};font-weight:${H};`,g.partial`font-family:${v};font-size:${Os};line-height:${Fs};font-weight:${H};`,g.partial`font-family:${v};font-size:${ci};line-height:${Es};font-weight:${H};`,g.partial`font-family:${v};font-size:${Ns};line-height:${Ds};font-weight:${H};`,g.partial`font-family:${v};font-size:${As};line-height:${Ls};font-weight:${H};`;const lp=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${vd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${ap}}.footer{display:flex;justify-content:flex-start;gap:${ne}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function cp(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const dp=cp(),hp=np.compose({name:rp,template:dp,styles:lp});hp.define(u.registry);const up={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Nr={combobox:"combobox",dropdown:"dropdown",select:"select"},pp=`${u.prefix}-dropdown`;function la(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const gp=`${u.prefix}-listbox`;function Yt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const fp=`${u.prefix}-option`,pt={ltr:"ltr",rtl:"rtl"},ca=o=>o.closest("[dir]")?.dir==="rtl"?pt.rtl:pt.ltr;function da(o){return o.closest("[lang]")?.lang??"en"}let bp=0;function Ke(o="id-"){const e=`${o}${bp++}`;return document.getElementById(e)?Ke(o):e}const mp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${_("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,vp=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${_("control")}>`,$p=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${_("control")}>${o=>o.displayValue}</button>`;function yp(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${_("controlSlot")}></slot><slot name=indicator ${_("indicatorSlot")}>${de(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const xp=yp({indicator:mp});var kp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?wp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&kp(e,t,r),r};const j=class no extends k{constructor(){super(),this.activeIndex=0,this.id=Ke("dropdown-"),this.required=!1,this.type=Nr.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||ca(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,n)=>{r.active=n===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ke("input-"))}disabledChanged(e,t){this.listbox&&A.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(da(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);if(i.subscribe(t),i.notify("multiple"),A.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled,r.name=this.name}),this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,n)=>{r.selected=this.multiple||n===0}),this.setValidity()}),xi){const r=Ke("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&A.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,xi||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Yt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Nr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Yt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Yt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(da(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Nr.combobox){vp.render(this,this);return}$p.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let i=this.searchString.length>1?this.filterOptions(this.searchString):[],r=!1;if(!i.length&&t&&(i=this.filterOptions(e),r=!0),i.length){const n=this.enabledOptions[this.activeIndex],s=i.indexOf(n),c=r?i[this.getEnabledIndexInBounds(s+1,i.length)]:s>=0?n:i[0];this.activeIndex=this.enabledOptions.indexOf(c)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Yt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}slotchangeHandler(e){const t=e.target;xo(this,()=>{const i=t.assignedElements().find(r=>la(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),A.enqueue(()=>{this.insertControl()})}disconnectedCallback(){no.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(no.AnchorPositionFallbackObserver||(no.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:n})=>{if(la(n)){if(i.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}i.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,no.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}no.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,Y([$e],j.prototype,"activeDescendant",1),Y([f],j.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),Y([f],j.prototype,"control",2),Y([a({mode:"boolean"})],j.prototype,"disabled",2),Y([$e],j.prototype,"displayValue",1),Y([a({attribute:"id"})],j.prototype,"id",2),Y([f],j.prototype,"indicator",2),Y([f],j.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Y([f],j.prototype,"listbox",2),Y([a({mode:"boolean"})],j.prototype,"multiple",2),Y([a],j.prototype,"name",2),Y([f],j.prototype,"open",2),Y([a],j.prototype,"placeholder",2),Y([a({mode:"boolean"})],j.prototype,"required",2),Y([a],j.prototype,"type",2),Y([a({attribute:"value"})],j.prototype,"valueAttribute",2);let Cp=j;var Sp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,ha=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ip(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sp(e,t,r),r};class Ar extends Cp{constructor(){super(...arguments),this.appearance=up.outline}}ha([a],Ar.prototype,"appearance",2),ha([a],Ar.prototype,"size",2);const Pp=g`${w("inline-flex")} :host{box-sizing:border-box;color:${O};cursor:pointer}:host(${Jh}){color:${cr}}.control{appearance:none;background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:inset 0 0 0 ${z} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${yo} ${et};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${sa}}:host([size='small']) .control{column-gap:${R};padding:${Rt} ${ke};${aa}}:host([size='large']) .control{column-gap:${Me};padding:${se} ${ne};${sp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${z}}.control::after{background-color:${lt};height:${fe};scale:0 1;transition:scale ${kr} ${Tt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${ai};outline:${fe} solid ${ue}}:host(:where(${Kh},:focus-within)) .control::after{scale:1 1;transition-duration:${mi};transition-timing-function:${zt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${We}}:host([appearance='transparent']) .control{--control-border-color:${ur};background-color:${he};border-radius:${li}}:host([appearance='outline']) .control{--control-border-color:${Ue}}:host([appearance='outline']) .control:hover{--control-border-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Lt}}:host([appearance='outline']) .control:active{--control-border-color:${mo}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${St}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Vt}}:host([appearance='filled-darker']) .control{background-color:${go}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${ye};background-color:${at};color:${B}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${L} + (${yo} * 2) + ${z})}:host([size='small']){--margin-offset:calc(${q} + (${Rt} * 2) + ${z})}:host([size='large']){--margin-offset:calc(${xe} + (${se} * 2) + ${z})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`,zp=Ar.compose({name:pp,template:xp,styles:Pp});zp.define(u.registry);const Tp={above:"above",after:"after",before:"before"},_e={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"},_p=`${u.prefix}-field`;var Op=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Op(e,t,r),r};class Io extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ke("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(_e))$(this.elementInternals,t,this.input.validity[e])}}_i([f],Io.prototype,"labelSlot",2),_i([f],Io.prototype,"messageSlot",2),_i([f],Io.prototype,"slottedInputs",2),_i([f],Io.prototype,"input",2);var Np=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,Ep=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ap(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Np(e,t,r),r};class ua extends Io{constructor(){super(...arguments),this.labelPosition=Tp.above}}Ep([a({attribute:"label-position"})],ua.prototype,"labelPosition",2);const Fp=g`${w("inline-grid")} :host{color:${O};align-items:center;gap:0 ${ne};justify-items:start}:has([slot='message']){color:${O};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ne}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${gi}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${$d}}:host(${eu}) ::slotted([slot='label'])::after{content:'*'/'';color:${gr};margin-inline-start:${re}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${D};font-weight:${F};grid-area:message;line-height:${q};margin-block-start:${gi}}:host(${Xh}:focus-within){border-radius:${S};outline:${fe} solid ${ue}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${E};font-weight:${F};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${ge};line-height:${xe}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${be}){cursor:default}::slotted([flag]){display:none}:host(${qh}) ::slotted([flag='${_e.badInput}']),:host(${Wh}) ::slotted([flag='${_e.customError}']),:host(${Yh}) ::slotted([flag='${_e.patternMismatch}']),:host(${Qh}) ::slotted([flag='${_e.rangeOverflow}']),:host(${Zh}) ::slotted([flag='${_e.rangeUnderflow}']),:host(${tu}) ::slotted([flag='${_e.stepMismatch}']),:host(${ou}) ::slotted([flag='${_e.tooLong}']),:host(${iu}) ::slotted([flag='${_e.tooShort}']),:host(${ru}) ::slotted([flag='${_e.typeMismatch}']),:host(${au}) ::slotted([flag='${_e.valueMissing}']),:host(${su}) ::slotted([flag='${_e.valid}']){display:block}`,Mp=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${X("labelSlot")}></slot><slot name=input part=input ${X("slottedInputs")}></slot><slot name=message part=message ${X({property:"messageSlot",filter:lo("[flag]")})}></slot></template>`,Dp=ua.compose({name:_p,template:Mp,styles:Fp,shadowOptions:{delegatesFocus:!0}});Dp.define(u.registry);const Lp=`${u.prefix}-image`;var Vp=Object.defineProperty,Hp=Object.getOwnPropertyDescriptor,Po=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Vp(e,t,r),r};class Jt extends k{}Po([a({mode:"boolean"})],Jt.prototype,"block",2),Po([a({mode:"boolean"})],Jt.prototype,"bordered",2),Po([a({mode:"boolean"})],Jt.prototype,"shadow",2),Po([a],Jt.prototype,"fit",2),Po([a],Jt.prototype,"shape",2);const Rp=b`<slot></slot>`,jp=g`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${z} solid ${vo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${pi}}:host([shape='circular']) ::slotted(img){border-radius:${pe}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,qp=Jt.compose({name:Lp,template:Rp,styles:jp});qp.define(u.registry);const Wp=`${u.prefix}-label`;var Up=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,Oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Up(e,t,r),r};class zo extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Oi([a],zo.prototype,"size",2),Oi([a],zo.prototype,"weight",2),Oi([a({mode:"boolean"})],zo.prototype,"disabled",2),Oi([a({mode:"boolean"})],zo.prototype,"required",2);const Xp=g`${w("inline-flex")} :host{color:${O};cursor:pointer;font-family:${v};font-size:${E};font-weight:${F};line-height:${L};user-select:none}.asterisk{color:${gr};margin-inline-start:${re}}:host([size='small']){font-size:${D};line-height:${q}}:host([size='large']){font-size:${ge};line-height:${xe}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${B}}`;function Kp(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Yp=Kp(),Jp=zo.compose({name:Wp,template:Yp,styles:Xp});Jp.define(u.registry);const Qp=`${u.prefix}-link`;var Zp=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?eg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Zp(e,t,r),r};class Er extends Ge{constructor(){super(...arguments),this.inline=!1}}pa([a],Er.prototype,"appearance",2),pa([a({mode:"boolean"})],Er.prototype,"inline",2);const tg=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${zl};cursor:pointer;font-family:${v};font-size:${E};font-weight:${F};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${z};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Tl}}:host(:active){color:${_l}}:host([appearance='subtle']:hover){color:${Bl}}:host([appearance='subtle']:active){color:${Nl}}}:host([appearance='subtle']){color:${Ol}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function og(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const ig=og(),rg=Er.compose({name:Qp,template:ig,styles:tg});rg.define(u.registry);var ng=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,To=(o,e,t,i)=>{for(var r=i>1?void 0:i?sg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ng(e,t,r),r};class Qt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),A.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Yt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),xo(this,()=>{this.id=this.id||Ke("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const n=r===e;i.selected=n,n&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){xo(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(i=>Yt(i));this.options=t}})}}To([f],Qt.prototype,"defaultSlot",2),To([f],Qt.prototype,"multiple",2),To([f],Qt.prototype,"options",2),To([f],Qt.prototype,"selectedIndex",2),To([f],Qt.prototype,"dropdown",2);const ag=g`${w("inline-flex")} :host{background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:${mr};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${re};row-gap:${R};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(end);inset-inline-start:anchor(start);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${Gh}){margin-block-start:revert;translate:0 -100%}}`;function lg(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${_("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const cg=lg(),dg=Qt.compose({name:gp,template:cg,styles:ag});dg.define(u.registry);const hg=wi,ug=`${u.prefix}-menu-button`;class pg extends tt{}const gg=zr({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),fg=pg.compose({name:ug,template:gg,styles:hg});fg.define(u.registry);const ee={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ee.menuitem+"",ee.menuitemcheckbox+"",ee.menuitemradio+"";function bg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const mg=`${u.prefix}-menu-item`;var vg=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,Zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?$g(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&vg(e,t,r),r};class ot extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ee.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ee.menuitemcheckbox:this.checked=!this.checked;break;case ee.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ee.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ee.menuitem}checkedChanged(e,t){const i=this.role!==ee.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,$(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ee.menuitem,this.elementInternals.ariaChecked=this.role!==ee.menuitem?`${!!this.checked}`:null}}Zt([a({mode:"boolean"})],ot.prototype,"disabled",2),Zt([a],ot.prototype,"role",2),Zt([a({mode:"boolean"})],ot.prototype,"checked",2),Zt([a({mode:"boolean"})],ot.prototype,"hidden",2),Zt([f],ot.prototype,"slottedSubmenu",2),Zt([f],ot.prototype,"submenu",2),st(ot,rt);const yg=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${S};color:${Ee};contain:layout;cursor:pointer;flex-shrink:0;font:${F} ${E}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ii};color:${Mt}}:host(:active){background-color:${ns};color:${Dt}}:host(:active) ::slotted([slot='start']){color:${El}}:host(${be}){background-color:${at};color:${B}}:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:${B}}:host(:focus-visible){border-radius:${S};outline:2px solid ${ue}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Pi})) .submenu-glyph,:host(:not(${Pi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${F} ${D}/${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Pi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Pi}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(start);inset-inline-start:anchor(end);position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${be}),:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:GrayText}}`,xg=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),kg=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function wg(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${de(o.indicator)}</slot>${qe(o)}<div part=content class=content><slot></slot></div>${nt(o)}<slot name=submenu-glyph>${de(o.submenuGlyph)}</slot><slot name=submenu ${X({property:"slottedSubmenu"})}></slot></template>`}const Cg=wg({indicator:xg,submenuGlyph:kg}),Sg=ot.compose({name:mg,template:Cg,styles:yg});Sg.define(u.registry);const Ig=`${u.prefix}-menu-list`;var _o={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Fr={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Mr(o,e){return o.contains(e)}function Pg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function zg(o,e,t){const i="forward",r="backward",n="block",s="inline";if(Tg(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?r:i:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?n:s,x=d?s:n,C=d?c.endsWith("-rl")!==l:l,Ne=d&&l,bt={ArrowUp:{axis:x,dir:Ne?i:r},ArrowDown:{axis:x,dir:Ne?r:i},ArrowLeft:{axis:p,dir:C?i:r},ArrowRight:{axis:p,dir:C?r:i},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!bt||t&&bt.axis&&bt.axis!==t?null:bt.dir}function Tg(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var _g=globalThis.__FOCUSGROUP_POLYFILL__,Og=_g.o;function Dr(){for(const o of Og)o.takeRecords()}var Bi=class{#t;#e;#s=Fr.NONE;#u=void 0;#c=!1;#a=!0;#i;#o=null;#r=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(Pg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const i={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),i),this.#t.addEventListener("focusin",this.#y.bind(this),i),this.#t.addEventListener("focusout",this.#x.bind(this),i)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(_o.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Fr.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Fr.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(_o.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#i=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(_o.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(_o.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(zg(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#r&&(!o.relatedTarget||!Mr(this.#t,o.relatedTarget))){const i=this.#o||this.#i;this.#n(),i&&i.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#r&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const i=t??this.#i;i&&this.#v(i,e)}}#x(o){if(!o.relatedTarget||!Mr(this.#t,o.relatedTarget)){const i=this.#a?this.#o||this.#i:this.#i;i&&this.#m(i)}if(o.relatedTarget&&Mr(this.#t,o.relatedTarget)||this.#a||!this.#i)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#i||t!==this.#i){for(const{element:i,segmentBoundary:r}of this.#e.items())i.tabIndex=r?0:-1;t&&(t.tabIndex=0,this.#i=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(_o.AUTHOR_TABINDEX);this.#r||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#r=!0,Dr())}#n(){this.#r&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#r=!1,this.#l=null,this.#e.flush?.(),Dr())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Dr()}};class Ni{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),i=t.indexOf(e);return i===-1?null:t[i+1]??null}previous(e){const t=this.getItems(),i=t.indexOf(e);return i<=0?null:t[i-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Bg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Ag=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ng(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bg(e,t,r),r};const Lr=class nn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&an(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,i=this.menuChildren.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=i-1;n>=0;--n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}const r=this.menuChildren.length-1;for(let n=i+1;n<=r;++n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),A.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,i=e.querySelector("[slot=start]");return t&&t!==ee.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);e.forEach(i=>{m.getNotifier(i).subscribe(this,"hidden")}),this.menuChildren=e.filter(i=>!i.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((i,r)=>{const n=nn.elementIndent(r);return Math.max(i,n)},0);this.menuItems?.forEach(i=>{i.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return bg(e)||an(e)&&!!e.role&&e.role in nn.focusableElementRoles}};Lr.focusableElementRoles=ee,Ag([f],Lr.prototype,"items",2);let Eg=Lr;class Fg extends Eg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ni(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Bi(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Mg=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${K};border-radius:${S};box-shadow:${mr};padding:4px;row-gap:2px}`;function Dg(){return b`<template focusgroup=menu><slot ${X("items")}></slot></template>`}const Lg=Dg(),Vg=Fg.compose({name:Ig,template:Lg,styles:Mg});Vg.define(u.registry);const Hg=`${u.prefix}-menu`;var Rg=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?jg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Rg(e,t,r),r};class it extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof ot&&(e.target.getAttribute("role")===ee.menuitemcheckbox||e.target.getAttribute("role")===ee.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const i=t[0];this._trigger=i,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){A.enqueue(()=>{this._menuList.focus()})}focusTrigger(){A.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}gt([a({attribute:"open-on-hover",mode:"boolean"})],it.prototype,"openOnHover",2),gt([a({attribute:"open-on-context",mode:"boolean"})],it.prototype,"openOnContext",2),gt([a({attribute:"close-on-scroll",mode:"boolean"})],it.prototype,"closeOnScroll",2),gt([a({attribute:"persist-on-item-click",mode:"boolean"})],it.prototype,"persistOnItemClick",2),gt([a({mode:"boolean"})],it.prototype,"split",2),gt([f],it.prototype,"slottedMenuList",2),gt([f],it.prototype,"slottedTriggers",2),gt([f],it.prototype,"primaryAction",2);const qg=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(end);inset-inline-start:anchor(start);position-try-fallbacks:flip-block;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:auto;inset-inline-end:anchor(end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${z} solid ${Ue};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${z} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Wg(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${_("primaryAction")}></slot><slot name=trigger ${X({property:"slottedTriggers",filter:lo()})}></slot><slot ${X({property:"slottedMenuList",filter:lo()})}></slot></template>`}const Ug=Wg(),Gg=it.compose({name:Hg,template:Ug,styles:qg});Gg.define(u.registry);const Xg=`${u.prefix}-message-bar`;var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,Vr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Kg(e,t,r),r};class Ai extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Vr([a],Ai.prototype,"shape",2),Vr([a],Ai.prototype,"layout",2),Vr([a],Ai.prototype,"intent",2);const Jg=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${D};line-height:${q};width:100%;background:${go};border:1px solid ${Ue};padding-inline:${ne};border-radius:${S};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ks};border-color:${Zl}}:host([intent='warning']){background-color:${Cs};border-color:${Is}}:host([intent='error']){background-color:${vs};border-color:${ys}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${fi};padding-inline:${ne}}.content{grid-area:body;max-width:520px;padding-block:${fi};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Me}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Me};gap:${Me}}:host([layout='multiline']) .actions{margin-block-start:${fi};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Qg(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const Zg=Qg(),ef=Ai.compose({name:Xg,template:Zg,styles:Jg,shadowOptions:{mode:u.shadowRootMode}});ef.define(u.registry);var tf=Object.defineProperty,of=Object.getOwnPropertyDescriptor,me=(o,e,t,i)=>{for(var r=i>1?void 0:i?of(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&tf(e,t,r),r};class ae extends k{constructor(){super(),this.active=!1,this.id=Ke("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,A.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ae.formAssociated=!0,me([f],ae.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ae.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ae.prototype,"defaultSelected",2),me([f],ae.prototype,"descriptionSlot",2),me([f],ae.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ae.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ae.prototype,"formAttribute",2),me([a({mode:"boolean"})],ae.prototype,"freeform",2),me([a({attribute:"id"})],ae.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ae.prototype,"initialValue",2),me([f],ae.prototype,"multiple",2),me([a],ae.prototype,"name",2),me([f],ae.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ae.prototype,"textAttribute",2);const rf=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${sa} align-items:center;background-color:${P};border-radius:${S};box-sizing:border-box;color:${Ee};column-gap:${re};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ke};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ii};color:${Mt}}:host(:active){background-color:${dr};color:${Dt}}:host(:disabled){background-color:${P};color:${B};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${_r}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Gt}) .checkmark-16-filled,:host(:not(${Gt})) .checkmark-12-regular{display:none}:host(${Gt}) .checkmark-12-regular{background-color:${P};border-radius:${Fe};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Gt}${_r}) .checkmark-12-regular{background-color:${wt};border-color:${lt};fill:${kt}}:host(:disabled${Gt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Gt}${_r}) .checkmark-12-regular{background-color:${at}}:host(${jh}){border:${fe} solid ${ue}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ke}}}:host(${Uh}){column-gap:${ke};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${aa}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,nf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function sf(o={}){return b`<slot name=checked-indicator>${de(o.checkedIndicator)}</slot>${qe(o)}<div class=content part=content><slot ${X({property:"freeformOutputs",filter:lo("output")})}></slot></div><div class=description part=description><slot name=description ${X("descriptionSlot")}></slot></div>`}const af=sf({checkedIndicator:nf}),lf=ae.compose({name:fp,template:af,styles:rf});lf.define(u.registry);const cf={success:"success",warning:"warning",error:"error"},df=`${u.prefix}-progress-bar`;var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Oo=(o,e,t,i)=>{for(var r=i>1?void 0:i?uf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&hf(e,t,r),r};class eo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){_t(this.elementInternals,e,t,cf)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||A.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,n=r===0?0:Math.fround((i-e)/r*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Oo([f],eo.prototype,"indicator",2),Oo([a({attribute:"validation-state"})],eo.prototype,"validationState",2),Oo([a({converter:ie})],eo.prototype,"value",2),Oo([a({converter:ie})],eo.prototype,"min",2),Oo([a({converter:ie})],eo.prototype,"max",2);var pf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?gf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&pf(e,t,r),r};class Hr extends eo{}ga([a],Hr.prototype,"thickness",2),ga([a],Hr.prototype,"shape",2);const ff=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${fo};border-radius:${S};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${li}}.indicator{background-color:${wt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${fo} 0%,${he} 50%,${fo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${$s}}:host([validation-state='warning']) .indicator{background-color:${Ss}}:host([validation-state='success']) .indicator{background-color:${ws}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function bf(){return b`<div class=indicator part=indicator ${_("indicator")}></div>`}const mf=bf(),vf=Hr.compose({name:df,template:mf,styles:ff});vf.define(u.registry);const fa=Ce,$f=`${u.prefix}-radio-group`;function yf(o,e="-radio"){return sn(e)(o)}const xf=`${u.prefix}-radio`;var kf=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?wf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&kf(e,t,r),r};class Ye extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??fa.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??fa.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const r=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===r,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(i=>yf(i))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,n)=>{const s=n===e;r.checked=s,s&&(i=n,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(i=>{i.disabled&&i.checked&&(i.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(n,s,c):c.elementInternals.setValidity({})})}}}Ye.formAssociated=!0,ft([f],Ye.prototype,"checkedIndex",2),ft([a({attribute:"disabled",mode:"boolean"})],Ye.prototype,"disabled",2),ft([a({attribute:"value",mode:"fromView"})],Ye.prototype,"initialValue",2),ft([a],Ye.prototype,"name",2),ft([a],Ye.prototype,"orientation",2),ft([f],Ye.prototype,"radios",2),ft([a({mode:"boolean"})],Ye.prototype,"required",2),ft([f],Ye.prototype,"slottedRadios",2);class Cf extends Ye{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ni(()=>this.enabledRadios?.filter(i=>!i.hidden)??[],()=>this.enabledRadios?.find(i=>i.checked)??null)),this.fg?this.fg.update():this.fg=new Bi(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const Sf=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${xr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ee}}::slotted(:active){color:${O}}::slotted(${be}){color:${B}}::slotted(${y}){color:${O}}:host([slot='input']){margin:${se} ${Me}}`;function If(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${X("slottedRadios")}></slot></template>`}const Pf=If(),zf=Cf.compose({name:$f,template:Pf,styles:Sf});zf.define(u.registry);class Tf extends ze{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const _f=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${z} solid ${We};border-radius:${pe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${pe};color:${kt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${fe} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${ue}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${lt}}:host(${y}) .checked-indicator{background-color:${wt}}:host(${y}:hover) .checked-indicator{background-color:${Lt}}:host(:active){border-color:${St}}:host(${y}:active) .checked-indicator{background-color:${Vt}}:host(:focus-visible){outline:none}:host(${be}){background-color:${at};border-color:${ye}}:host(${y}${be}) .checked-indicator{background-color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${be}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${be}):hover) .checked-indicator{background-color:Highlight}:host(${be}){border-color:GrayText;color:GrayText}:host(${be}${y}) .checked-indicator{background-color:GrayText}}`,Of=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function Bf(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${de(o.checkedIndicator)}</slot></template>`}const Nf=Bf({checkedIndicator:Of}),Af=Tf.compose({name:xf,template:Nf,styles:_f});Af.define(u.registry);const Ef=`${u.prefix}-rating-display`;var Ff=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,Bo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ff(e,t,r),r};const Df=CSS.supports("width: attr(value type(<number>))"),to={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Ei(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class oo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(to.maskImageFilled),this.display.style.removeProperty(to.maskImageOutlined);return}const t=e.innerHTML,i=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,r=`
|
|
4
|
+
Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ga(C.join(`
|
|
5
|
+
`),h,En(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,s=r.length;n<s;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Ft.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){sr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Fn=Wo,$t(Xa);function Ka(o){return o.create!==void 0}function Ya(o,e,t,i){if(t==null&&(t=""),Ka(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Uo(i)&&Uo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Ft.hydrated){const n=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(n.first,n.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Ja(o,e,t){var i;const r=`${this.id}-t`,n=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},s=n.cv;let c=n.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const x=d[l];x!==""&&(s[x]=c,h.add(x))}}if(n.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const Qa={[J.attribute]:yt.setAttribute,[J.booleanAttribute]:yt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:Ya,[J.tokenList]:Ja,[J.event]:()=>{}};class Mt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=J.content}createHTML(e){return kn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Qa[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw G.error(He.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=Uo(e)&&e.hydrationStage&&e.hydrationStage!==Ft.hydrated;switch(this.aspectType){case J.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const n=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(n.target=i,n.controller=e,r&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute)){n.bind(e);break}this.updateTarget(i,this.targetAspect,n.bind(e),e);break}}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Et.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Et.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.controller;if(!i.isBound)return;const r=t.target;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Re.define(Mt,{aspected:!0});const Dn=(o,e)=>`${o}.${e}`,Ln={},je={index:0,node:null};function Vn(o){o.startsWith("fast-")||G.warn(He.hostBindingWithoutHost,{name:o})}const Za=new Proxy(document.createElement("div"),{get(o,e){Vn(e);const t=Reflect.get(o,e);return vt(t)?t.bind(o):t},set(o,e,t){return Vn(e),Reflect.set(o,e,t)}});class el{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,n){var s,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(s=e.id)!==null&&s!==void 0?s:lo(),e.targetNodeId=i,e.targetTagName=n,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let n=Ln[t];if(!n){const s=`_${t}`;Ln[t]=n={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[i]}}}r[t]=n}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Za;for(const r of this.nodeIds)Reflect.get(i,r);return new Ko(t,this.factories,i)}}function Hn(o,e,t,i,r,n=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,x=qo.parse(p,c);let C=null;x===null?n&&(C=new Mt(bn(()=>p,o.policy)),Re.assignAspect(C,l.name)):C=ar.aggregate(x,o.policy),C!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(C,e,i,r,t.tagName))}}function tl(o,e,t,i,r){const n=qo.parse(e.textContent,o.directives);if(n===null)return je.node=e.nextSibling,je.index=r+1,je;let s,c=s=e;for(let h=0,d=n.length;h<d;++h){const l=n[h];h!==0&&(r++,i=Dn(t,r),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Qe(l)?s.textContent=l:(s.textContent=" ",Re.assignAspect(l),o.addFactory(l,t,i,r,null)),c=s}return je.index=r+1,je.node=c.nextSibling,je}function Rn(o,e,t){let i=0,r=e.firstChild;for(;r;){const n=ol(o,t,r,i);r=n.node,i=n.index}}function ol(o,e,t,i){const r=Dn(e,i);switch(t.nodeType){case 1:Hn(o,e,t,r,i),Rn(o,t,r);break;case 3:return tl(o,t,e,r,i);case 8:{const n=qo.parse(t.data,o.directives);n!==null&&o.addFactory(ar.aggregate(n),e,r,i,null);break}}return je.index=i+1,je.node=t.nextSibling,je}function il(o,e){return o&&o.nodeType===8&&qo.parse(o.data,e)!==null}const jn="TEMPLATE",ar={compile(o,e,t=yt.policy){let i;if(Qe(o)){i=document.createElement(jn),i.innerHTML=t.createHTML(o);const s=i.content.firstElementChild;s!==null&&s.tagName===jn&&(i=s)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),n=new el(r,e,t);return Hn(n,"",i,"h",0,!0),(il(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Rn(n,r,"r"),je.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=yt.policy){if(o.length===1)return o[0];let t,i=!1,r;const n=o.length,s=o.map(d=>Qe(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let x=0;x<n;++x)p+=s[x](d,l);return p},h=new Mt(Ji(c,r??e,i));return Re.assignAspect(h,t),h}};class qn extends rr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Re.define(qn);const _=o=>new qn(o),Wn="boolean",Un="reflect",Yo=Object.freeze({locate:hn()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Gn(o);return e&&e.toString()},fromView:Gn};class qi{constructor(e,t,i=t.toLowerCase(),r=Un,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Wn&&n===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||B.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Un:const n=this.converter;yt.setAttribute(e,this.attribute,n!==void 0?n.toView(r):r);break;case Wn:yt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Yo.locate(e));for(let r=0,n=t.length;r<n;++r){const s=t[r];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];Qe(d)?i.push(new qi(e,d)):i.push(new qi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,n){arguments.length>1&&(t.property=n),Yo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}var nl=window&&window.__awaiter||function(o,e,t,i){function r(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function c(l){try{d(i.next(l))}catch(p){s(p)}}function h(l){try{d(i.throw(l))}catch(p){s(p)}}function d(l){l.done?n(l.value):r(l.value).then(c,h)}d((i=i.apply(o,e||[])).next())})},Ne;const Xn={mode:"open"},Kn={},lr=new Set,ho=G.getById(mt.elementRegistry,()=>Ki()),sl={deferAndHydrate:"defer-and-hydrate"};class le{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var i;this.platformDefined=!1,Qe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,n=qi.collect(e,t.attributes),s=new Array(n.length),c={},h={};for(let d=0,l=n.length;d<l;++d){const p=n[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(r,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Xn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Xn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Kn:Object.assign(Object.assign({},Kn),t.elementOptions),this.styles=ve.normalize(t.styles),ho.register(this),m.defineProperty(Ne.isRegistered,this.name),Ne.isRegistered[this.name]=this.type}define(e=this.registry){var t,i;const r=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,r,this.elementOptions),(i=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||i===void 0||i.call(t,this.name)),this}static compose(e,t){return lr.has(e)||ho.getByType(e)?new Ne(class extends e{},t):new Ne(e,t)}static registerBaseType(e){lr.add(e)}static composeAsync(e,t){return new Promise(i=>{(lr.has(e)||ho.getByType(e))&&i(new Ne(class extends e{},t));const r=new Ne(e,t);m.getNotifier(r).subscribe({handleChange:()=>{var n,s;(s=(n=r.lifecycleCallbacks)===null||n===void 0?void 0:n.templateDidUpdate)===null||s===void 0||s.call(n,r.name),i(r)}},"template")})}}Ne=le,le.isRegistered={},le.getByType=ho.getByType,le.getForInstance=ho.getForInstance,le.registerAsync=o=>nl(void 0,void 0,void 0,function*(){return new Promise(e=>{Ne.isRegistered[o]&&e(Ne.isRegistered[o]),m.getNotifier(Ne.isRegistered).subscribe({handleChange:()=>e(Ne.isRegistered[o])},o)})}),m.defineProperty(le.prototype,"template");const al=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ll=Object.create(null);class xt{constructor(e,t=ll){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}xt.empty=new xt(""),Re.define(xt);function cl(o,e,t,i=Re.getForInstance(o)){if(i.aspected){const r=al.exec(e);r!==null&&Re.assignAspect(o,r[2])}return o.createHTML(t)}class Wi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ar.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new xt(Qe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw G.error(He.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw G.error(He.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const n=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return n[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(r+=d,vt(l))l=new Mt(Ji(l));else if(l instanceof Ro)l=new Mt(l);else if(!(p=Re.getForInstance(l))){const x=l;l=new Mt(bn(()=>x))}r+=cl(l,d,s,p)}return new Wi(r+e[e.length-1],n,i)}}$t(Wi);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Wi.create(o,e);throw G.error(He.directCallToHTMLTagNotAllowed)};b.partial=o=>new xt(o);const Yn="slotchange";class Jn extends Va{observe(e){e.addEventListener(Yn,this)}disconnect(e){e.removeEventListener(Yn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Re.define(Jn);function X(o){return Qe(o)&&(o={property:o}),new Jn(o)}class dl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:Et.default,targets:t,get isBound(){return r},addBehaviorFactory(n,s){var c,h,d,l;const p=n;p.id=(c=p.id)!==null&&c!==void 0?c:lo(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:lo(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:yt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(n,s){t[n]=s},addBehavior(n){e.push(n),r&&n.bind(this)},onUnbind(n){i===null&&(i=[]),i.push(n)},connectedCallback(n){r||(r=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(n){r&&(r=!1,i!==null&&i.forEach(s=>s.unbind(this)))}}}});const hl={bubbles:!0,composed:!0,cancelable:!0},Jo="isConnected",Qn=new WeakMap;function uo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qn.get(o))!==null&&t!==void 0?t:null}let Zn;var Q;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(Q||(Q={}));class Ve extends pn{get isConnected(){return m.track(this,Jo),this.stage===Q.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Et.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Qn.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=Q.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const i=m.getAccessors(e);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const c=i[n].name,h=e[c];h!==void 0&&(delete e[c],r[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(i=r.get(e))!==null&&i!==void 0?i:0;n===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===Q.connected||this.stage===Q.connecting)&&e.connectedCallback(this)):r.set(e,n+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==Q.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.addBehavior(r[n])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let n=0,s=r.length;n<s;++n)this.removeBehavior(r[n])}}connect(){this.stage===Q.disconnected&&(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=Q.connected,m.notify(this,Jo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,n=i.length;r<n;++r){const s=i[r];e[s]=t[s]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===Q.connected&&(this.stage=Q.disconnecting,m.notify(this,Jo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Q.disconnected)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===Q.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},hl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=uo(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let n=r.firstChild;n!==null;n=r.firstChild)r.removeChild(n)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Ho.coupled)}static forCustomElement(e,t=!1){const i=e.$fastController;if(i!==void 0&&!t)return i;const r=le.getForInstance(e);if(r===void 0)throw G.error(He.missingElementDefinition);return m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Zn(e,r)}static setStrategy(e){Zn=e}}$t(Ve),Ve.setStrategy(Ve);function Qo(o){var e;return"adoptedStyleSheets"in o?o:(e=uo(o))!==null&&e!==void 0?e:o.getRootNode()}class Ui{constructor(e){const t=Ui.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){ts(Qo(e),this.sheets)}removeStylesFrom(e){os(Qo(e),this.sheets)}}Ui.styleSheetCache=new Map;let ul=0;const pl=()=>`fast-${++ul}`;function es(o){return o===document?document.body:o}class gl{constructor(e){this.styles=e,this.styleClass=pl()}addStylesTo(e){e=es(Qo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const n=document.createElement("style");n.innerHTML=t[r],n.className=i,e.append(n)}}removeStylesFrom(e){e=es(Qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let ts=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},os=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ts=(o,e)=>{o.adoptedStyleSheets.push(...e)},os=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ve.setDefaultStrategy(Ui)}else ve.setDefaultStrategy(gl);const cr="needs-hydration";class I extends Ve{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===sl.deferAndHydrate&&(this.source.toggleAttribute(Go,!0),this.source.toggleAttribute(cr,!0))}addHydratingInstance(){if(!I.hydratingInstances)return;const e=this.definition.name;let t=I.hydratingInstances.get(e);t||(t=new Set,I.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return I.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Go)||(I.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,i,r;if(e.didTimeout){I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50});return}if(((t=I.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(r=(i=I.lifecycleCallbacks).hydrationComplete)===null||r===void 0||r.call(i)}catch{}Ve.setStrategy(Ve)}}connect(){var e,t,i,r,n,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(cr),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Go)){this.addHydratingInstance(),I.hydrationObserver.observe(this.source,{attributeFilter:[Go]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===Q.disconnected){if(!I.hydrationStarted){I.hydrationStarted=!0;try{(i=(t=I.lifecycleCallbacks).hydrationStarted)===null||i===void 0||i.call(t)}catch{}}try{(n=(r=I.lifecycleCallbacks).elementWillHydrate)===null||n===void 0||n.call(r,this.source)}catch{}if(this.stage=Q.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Uo(this.template)){const h=this.source,d=(s=uo(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Se.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Se.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=Q.connected,this.source.removeAttribute(cr),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Jo)}}removeHydratingInstance(){var e,t;if(!I.hydratingInstances)return;try{(t=(e=I.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const i=this.definition.name,r=I.hydratingInstances.get(i);r&&(r.delete(this.source),r.size||I.hydratingInstances.delete(i),I.idleCallbackId&&cancelIdleCallback(I.idleCallbackId),I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),I.hydrationObserver.unobserve(this.source)}static install(){Ve.setStrategy(I)}}I.hydrationObserver=new dl(I.hydrationObserverHandler),I.lifecycleCallbacks={},I.hydrationStarted=!1,I.idleCallbackId=null,I.hydratingInstances=new Map;function is(o){const e=class extends o{constructor(){super(),Ve.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return le.registerBaseType(e),e}function fl(o,e){return vt(o)?le.compose(o,e):le.compose(this,o)}function bl(o,e){return vt(o)?new Promise(t=>{le.composeAsync(o,e).then(i=>{t(i)})}).then(t=>t.define().type):new Promise(t=>{le.composeAsync(this,o).then(i=>{t(i)})}).then(t=>t.define().type)}function ml(o,e){return vt(o)?le.compose(o,e).define().type:le.compose(this,o).define().type}function vl(o){return is(o)}const k=Object.assign(is(HTMLElement),{from:vl,define:ml,compose:fl,defineAsync:bl});function ce(o){return o?typeof o=="string"?new xt(o):"inline"in o?o.inline():o:xt.empty}class nt{}function st(o){return b`<slot name=end ${_("end")}>${ce(o.end)}</slot>`.inline()}function qe(o){return b`<slot name=start ${_("start")}>${ce(o.start)}</slot>`.inline()}function at(o,...e){const t=Yo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),Yo.locate(i).forEach(n=>t.push(n))})}var $l=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,Zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?yl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&$l(e,t,r),r};class po extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Zo([a({attribute:"heading-level",mode:"fromView",converter:ie})],po.prototype,"headinglevel",2),Zo([a({mode:"boolean"})],po.prototype,"expanded",2),Zo([a({mode:"boolean"})],po.prototype,"disabled",2),Zo([f],po.prototype,"expandbutton",2);var xl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,dr=(o,e,t,i)=>{for(var r=i>1?void 0:i?kl(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&xl(e,t,r),r};class go extends po{constructor(){super(...arguments),this.block=!1}}dr([a],go.prototype,"size",2),dr([a({attribute:"marker-position"})],go.prototype,"markerPosition",2),dr([a({mode:"boolean"})],go.prototype,"block",2),at(go,nt);const wl=":host([hidden]){display:none}";function w(o){return`${wl}:host{display:${o}}`}const O="var(--colorNeutralForeground1)",rs="var(--colorNeutralForeground1Hover)",Cl="var(--colorNeutralForeground1Pressed)",Ae="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Lt="var(--colorNeutralForeground2Pressed)",ei="var(--colorNeutralForeground2Selected)",ti="var(--colorNeutralForeground2BrandHover)",oi="var(--colorNeutralForeground2BrandPressed)",Sl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Il="var(--colorNeutralForeground3Hover)",Pl="var(--colorNeutralForeground3Pressed)",zl="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",N="var(--colorNeutralForegroundDisabled)",Tl="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",Ol="var(--colorBrandForegroundLinkPressed)",Bl="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Al="var(--colorNeutralForeground2LinkPressed)",El="var(--colorCompoundBrandForeground1Hover)",Fl="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",kt="var(--colorNeutralForegroundInverted)",Ml="var(--colorNeutralForegroundInvertedHover)",Dl="var(--colorNeutralForegroundInvertedPressed)",ns="var(--colorNeutralForegroundStaticInverted)",ii="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",P="var(--colorNeutralBackground1)",ri="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",ss="var(--colorNeutralBackground1Selected)",fo="var(--colorNeutralBackground3)",Hl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",bo="var(--colorNeutralBackground6)",as="var(--colorNeutralBackgroundInverted)",ls="var(--colorSubtleBackground)",ni="var(--colorSubtleBackgroundHover)",mo="var(--colorSubtleBackgroundPressed)",cs="var(--colorSubtleBackgroundSelected)",jl="var(--colorSubtleBackgroundLightAlphaHover)",ql="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",de="var(--colorTransparentBackground)",si="var(--colorTransparentBackgroundHover)",ai="var(--colorTransparentBackgroundPressed)",ds="var(--colorTransparentBackgroundSelected)",lt="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",hs="var(--colorBrandBackground)",us="var(--colorBrandBackgroundHover)",ps="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",wt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",gs="var(--colorBrandBackgroundStatic)",fs="var(--colorBrandBackground2)",We="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",St="var(--colorNeutralStrokeAccessiblePressed)",Ue="var(--colorNeutralStroke1)",It="var(--colorNeutralStroke1Hover)",vo="var(--colorNeutralStroke1Pressed)",$o="var(--colorNeutralStroke2)",Gl="var(--colorNeutralStroke3)",Xl="var(--colorNeutralStrokeOnBrand2)",bs="var(--colorBrandStroke1)",ms="var(--colorBrandStroke2)",ct="var(--colorCompoundBrandStroke)",Kl="var(--colorCompoundBrandStrokeHover)",vs="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",gr="var(--colorTransparentStrokeInteractive)",li="var(--colorStrokeFocus1)",he="var(--colorStrokeFocus2)",Yl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",$s="var(--colorPaletteRedBackground1)",Ql="var(--colorPaletteRedBackground2)",ys="var(--colorPaletteRedBackground3)",xs="var(--colorPaletteRedBorder1)",fr="var(--colorPaletteRedBorder2)",br="var(--colorPaletteRedForeground1)",Zl="var(--colorPaletteRedForeground2)",ks="var(--colorPaletteRedForeground3)",ws="var(--colorPaletteGreenBackground1)",Cs="var(--colorPaletteGreenBackground3)",ec="var(--colorPaletteGreenBorder1)",tc="var(--colorPaletteGreenBorder2)",oc="var(--colorPaletteGreenForeground1)",ic="var(--colorPaletteGreenForeground2)",rc="var(--colorPaletteGreenForeground3)",Ss="var(--colorPaletteDarkOrangeBackground1)",Is="var(--colorPaletteDarkOrangeBackground3)",Ps="var(--colorPaletteDarkOrangeBorder1)",nc="var(--colorPaletteDarkOrangeForeground1)",zs="var(--colorPaletteDarkOrangeForeground3)",sc="var(--colorPaletteYellowBackground1)",ac="var(--colorPaletteYellowBackground3)",lc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",Ts="var(--colorPaletteMarigoldBackground2)",cc="var(--colorPaletteMarigoldBorderActive)",dc="var(--colorPaletteMarigoldForeground2)",hc="var(--colorPaletteAnchorBackground2)",uc="var(--colorPaletteAnchorForeground2)",pc="var(--colorPaletteBeigeBackground2)",gc="var(--colorPaletteBeigeForeground2)",fc="var(--colorPaletteBlueBackground2)",bc="var(--colorPaletteBlueForeground2)",mc="var(--colorPaletteBrassBackground2)",vc="var(--colorPaletteBrassForeground2)",$c="var(--colorPaletteBrownBackground2)",yc="var(--colorPaletteBrownForeground2)",xc="var(--colorPaletteCornflowerBackground2)",kc="var(--colorPaletteCornflowerForeground2)",wc="var(--colorPaletteCranberryBackground2)",Cc="var(--colorPaletteCranberryForeground2)",Sc="var(--colorPaletteDarkGreenBackground2)",Ic="var(--colorPaletteDarkGreenForeground2)",Pc="var(--colorPaletteDarkRedBackground2)",zc="var(--colorPaletteDarkRedForeground2)",Tc="var(--colorPaletteForestBackground2)",_c="var(--colorPaletteForestForeground2)",Oc="var(--colorPaletteGoldBackground2)",Bc="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Ac="var(--colorPaletteGrapeForeground2)",Ec="var(--colorPaletteLavenderBackground2)",Fc="var(--colorPaletteLavenderForeground2)",Mc="var(--colorPaletteLightTealBackground2)",Dc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",Vc="var(--colorPaletteLilacForeground2)",Hc="var(--colorPaletteMagentaBackground2)",Rc="var(--colorPaletteMagentaForeground2)",jc="var(--colorPaletteMinkBackground2)",qc="var(--colorPaletteMinkForeground2)",Wc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Gc="var(--colorPalettePeachBackground2)",Xc="var(--colorPalettePeachForeground2)",Kc="var(--colorPalettePinkBackground2)",Yc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",Qc="var(--colorPalettePlatinumForeground2)",Zc="var(--colorPalettePlumBackground2)",ed="var(--colorPalettePlumForeground2)",td="var(--colorPalettePumpkinBackground2)",od="var(--colorPalettePumpkinForeground2)",id="var(--colorPalettePurpleBackground2)",rd="var(--colorPalettePurpleForeground2)",nd="var(--colorPaletteRoyalBlueBackground2)",sd="var(--colorPaletteRoyalBlueForeground2)",ad="var(--colorPaletteSeafoamBackground2)",ld="var(--colorPaletteSeafoamForeground2)",cd="var(--colorPaletteSteelBackground2)",dd="var(--colorPaletteSteelForeground2)",hd="var(--colorPaletteTealBackground2)",ud="var(--colorPaletteTealForeground2)",ci="var(--borderRadiusNone)",Ee="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",_s="var(--borderRadiusLarge)",Os="var(--borderRadiusXLarge)",ue="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",pd="var(--fontFamilyMonospace)",gd="var(--fontFamilyNumeric)",yo="var(--fontSizeBase100)",M="var(--fontSizeBase200)",A="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",di="var(--fontSizeBase600)",Bs="var(--fontSizeHero700)",Ns="var(--fontSizeHero800)",As="var(--fontSizeHero900)",Es="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",fd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",hi="var(--fontWeightBold)",ui="var(--lineHeightBase100)",q="var(--lineHeightBase200)",D="var(--lineHeightBase300)",xe="var(--lineHeightBase400)",pi="var(--lineHeightBase500)",Fs="var(--lineHeightBase600)",Ms="var(--lineHeightHero700)",Ds="var(--lineHeightHero800)",Ls="var(--lineHeightHero900)",Vs="var(--lineHeightHero1000)",vr="var(--shadow2)",gi="var(--shadow4)",bd="var(--shadow8)",$r="var(--shadow16)",md="var(--shadow28)",Hs="var(--shadow64)",z="var(--strokeWidthThin)",ge="var(--strokeWidthThick)",Ie="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",re="var(--spacingHorizontalXS)",ke="var(--spacingHorizontalSNudge)",Fe="var(--spacingHorizontalS)",et="var(--spacingHorizontalMNudge)",ne="var(--spacingHorizontalM)",vd="var(--spacingHorizontalL)",$d="var(--spacingHorizontalXL)",fi="var(--spacingHorizontalXXL)",xr="var(--spacingVerticalNone)",bi="var(--spacingVerticalXXS)",jt="var(--spacingVerticalXS)",xo="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",mi="var(--spacingVerticalMNudge)",yd="var(--spacingVerticalM)",kr="var(--spacingVerticalL)",Pt="var(--spacingVerticalXXL)",xd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Cr="var(--durationGentle)",kd="var(--durationSlow)",Rs="var(--durationSlower)",yi="var(--durationUltraSlow)",wd="var(--curveAccelerateMax)",zt="var(--curveAccelerateMid)",Cd="var(--curveAccelerateMin)",js="var(--curveDecelerateMax)",Tt="var(--curveDecelerateMid)",Sd="var(--curveDecelerateMin)",qs="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",Sr="var(--curveLinear)",Id=g`${w("block")} :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ne} ${et};border-radius:${S};font-family:${v};font-size:${A};font-weight:${E};line-height:${D};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${de};border:none;box-sizing:border-box;color:${O};cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Fe};grid-column:1/span 1;grid-row:1}.content{margin:0 ${ne}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Fe};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee};outline:none;border:2px solid ${li};box-shadow:inset 0 0 0 1px ${he}}:host([disabled]) .button{color:${N}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${A};line-height:${D}}:host([size='small']) .heading{font-size:${M};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${xe}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${pi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Fe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ne}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${et} ${ne}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`,Pd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),zd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Td(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${_("expandbutton")}><slot name=heading></slot></button> ${qe(o)}<slot name=marker-expanded>${ce(o.expandedIcon)}</slot><slot name=marker-collapsed>${ce(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const _d=Td({collapsedIcon:Pd,expandedIcon:zd}),Od=go.compose({name:Ta,template:_d,styles:Id});Od.define(u.registry);const Ir={single:"single",multi:"multi"},Bd=`${u.prefix}-accordion`;function Ws(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function ko(o,e,t){const i=t?.shallow??!1,r=t?.timeout??50,n=t?.idleCallback??!1,s=`${i?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){n?Ws(e,{timeout:r}):e();return}Ws(c,{timeout:r})};c()}var Nd=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Us=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ad(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Nd(e,t,r),r};class Pr extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{ko(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Gi(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Ir.single){this.setSingleExpandMode(i);return}i?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Gi(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ir.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{Gi(i)&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton?.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Ir.multi,this.setItems()}}Us([a({attribute:"expand-mode"})],Pr.prototype,"expandmode",2),Us([f],Pr.prototype,"slottedAccordionItems",2);const Ed=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${X({property:"slottedAccordionItems",filter:co()})}></slot></template>`}const Md=Fd(),Dd=Pr.compose({name:Bd,template:Md,styles:Ed});Dd.define(u.registry);const Ld={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Vd={circular:"circular",rounded:"rounded",square:"square"},Hd={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},Rd=`${u.prefix}-button`,jd=Ld,qd=Vd,Wd=Hd,Ud={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Gd=`${u.prefix}-anchor-button`,wi=CSS.supports("anchor-name: --a"),Xd="anchor"in HTMLElement.prototype,Gs=CSS.supports("selector(:state(g))"),Xs=new Map;function T(o){return Xs.get(o)??Xs.set(o,Gs?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Gs){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const zr=new WeakMap;function Ks(o,e){if(!o||!e)return!1;if(zr.has(o))return zr.get(o).has(e);const t=new Set(Object.values(o));return zr.set(o,t),t.has(e)}function _t(o,e="",t="",i,r=""){$(o,`${r}${e}`,!1),(!i||Ks(i,t))&&$(o,`${r}${t}`,!0)}var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Kd(e,t,r),r};class Ge extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Ud){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}dt([a],Ge.prototype,"download",2),dt([a],Ge.prototype,"href",2),dt([a],Ge.prototype,"hreflang",2),dt([a],Ge.prototype,"ping",2),dt([a],Ge.prototype,"referrerpolicy",2),dt([a],Ge.prototype,"rel",2),dt([a],Ge.prototype,"target",2),dt([a],Ge.prototype,"type",2);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,Ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Jd(e,t,r),r};class qt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){_t(this.elementInternals,e,t,jd)}shapeChanged(e,t){_t(this.elementInternals,e,t,qd)}sizeChanged(e,t){_t(this.elementInternals,e,t,Wd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Ci([a],qt.prototype,"appearance",2),Ci([a],qt.prototype,"shape",2),Ci([a],qt.prototype,"size",2),Ci([a({attribute:"icon-only",mode:"boolean"})],qt.prototype,"iconOnly",2),at(qt,nt);const Ys=g`${w("inline-flex")} :host{--icon-spacing:${ke};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${O};border:${z} solid ${Ue};padding:0 ${ne};min-width:96px;border-radius:${S};font-size:${A};font-family:${v};font-weight:${H};line-height:${D};transition-duration:${vi};transition-property:background,border,color;transition-timing-function:${xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ri};color:${rs};border-color:${It}}:host(:hover:active){background-color:${ur};border-color:${vo};color:${Cl};outline-style:none}:host(:focus-visible){border-color:${K};outline:${ge} solid ${K};box-shadow:${gi},0 0 0 2px ${he}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${re};min-height:24px;min-width:64px;padding:0 ${Fe};border-radius:${Ee};font-size:${M};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_s};padding:0 ${vd};font-size:${pe};line-height:${xe}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${ue}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${ci}}:host([appearance='primary']){background-color:${hs};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${us}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${ps}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${vr},0 0 0 2px ${he}}:host([appearance='outline']){background-color:${de}}:host([appearance='outline']:hover){background-color:${si}}:host([appearance='outline']:hover:active){background-color:${ai}}:host([appearance='subtle']){background-color:${ls};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ni};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mo};color:${Lt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ti}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${oi}}:host([appearance='transparent']){background-color:${de};color:${Ae}}:host([appearance='transparent']:hover){background-color:${si};color:${ti}}:host([appearance='transparent']:hover:active){background-color:${ai};color:${oi}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Si=g`${Ys} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${lt};border-color:${ye};color:${N};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${de}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${de};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${de}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,Zd=g`${Ys} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function eh(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${qe(o)} <span class=content part=content><slot></slot></span>${st(o)}</template>`}const th=eh(),oh=qt.compose({name:Gd,template:th,styles:Zd});oh.define(u.registry);const Js={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Qs={neutral:"neutral",brand:"brand",colorful:"colorful",...Js},ih=`${u.prefix}-avatar`,rh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,nh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,sh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ah=/\s+/g,lh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ch(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function dh(o){return o=o.replace(rh,""),o=o.replace(nh,""),o=o.replace(ah," "),o=o.trim(),o}function Zs(o,e,t){return!o||(o=dh(o),lh.test(o)||!t?.allowPhoneInitials&&sh.test(o))?"":ch(o,e,t?.firstInitialOnly)}var hh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,wo=(o,e,t,i)=>{for(var r=i>1?void 0:i?uh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&hh(e,t,r),r};class Wt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}B.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}wo([f],Wt.prototype,"defaultSlot",2),wo([f],Wt.prototype,"monogram",2),wo([f],Wt.prototype,"slottedDefaults",2),wo([a],Wt.prototype,"name",2),wo([a],Wt.prototype,"initials",2);var ph=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?gh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ph(e,t,r),r};const ht=class nn extends Wt{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Qs.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?nn.colors[bh(this.name??"")%nn.colors.length]:this.color??Qs.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};ht.colors=Object.values(Js),Ut([a],ht.prototype,"active",2),Ut([a],ht.prototype,"shape",2),Ut([a],ht.prototype,"appearance",2),Ut([a({converter:ie})],ht.prototype,"size",2),Ut([a],ht.prototype,"color",2),Ut([a({attribute:"color-id"})],ht.prototype,"colorId",2);let fh=ht;const bh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},ut={fastOutSlowInMax:js,fastOutSlowInMid:Tt,fastOutSlowInMin:Sd,slowOutFastInMax:wd,slowOutFastInMid:zt,slowOutFastInMin:Cd,fastEase:qs,normalEase:xi,nullEasing:Sr},mh=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${A};border-radius:${ue};color:${Z};background-color:${bo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ue}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${z} ${P}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ge} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${yo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${M}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Rt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${di}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ee}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${_s}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Os}}:host([data-color='brand']){color:${ns};background-color:${gs}}:host([data-color='dark-red']){color:${zc};background-color:${Pc}}:host([data-color='cranberry']){color:${Cc};background-color:${wc}}:host([data-color='red']){color:${Zl};background-color:${Ql}}:host([data-color='pumpkin']){color:${od};background-color:${td}}:host([data-color='peach']){color:${Xc};background-color:${Gc}}:host([data-color='marigold']){color:${dc};background-color:${Ts}}:host([data-color='gold']){color:${Bc};background-color:${Oc}}:host([data-color='brass']){color:${vc};background-color:${mc}}:host([data-color='brown']){color:${yc};background-color:${$c}}:host([data-color='forest']){color:${_c};background-color:${Tc}}:host([data-color='seafoam']){color:${ld};background-color:${ad}}:host([data-color='dark-green']){color:${Ic};background-color:${Sc}}:host([data-color='light-teal']){color:${Dc};background-color:${Mc}}:host([data-color='teal']){color:${ud};background-color:${hd}}:host([data-color='steel']){color:${dd};background-color:${cd}}:host([data-color='blue']){color:${bc};background-color:${fc}}:host([data-color='royal-blue']){color:${sd};background-color:${nd}}:host([data-color='cornflower']){color:${kc};background-color:${xc}}:host([data-color='navy']){color:${Uc};background-color:${Wc}}:host([data-color='lavender']){color:${Fc};background-color:${Ec}}:host([data-color='purple']){color:${rd};background-color:${id}}:host([data-color='grape']){color:${Ac};background-color:${Nc}}:host([data-color='lilac']){color:${Vc};background-color:${Lc}}:host([data-color='pink']){color:${Yc};background-color:${Kc}}:host([data-color='magenta']){color:${Rc};background-color:${Hc}}:host([data-color='plum']){color:${ed};background-color:${Zc}}:host([data-color='beige']){color:${gc};background-color:${pc}}:host([data-color='mink']){color:${qc};background-color:${jc}}:host([data-color='platinum']){color:${Qc};background-color:${Jc}}:host([data-color='anchor']){color:${uc};background-color:${hc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${yi},${Rs};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{box-shadow:${bd};border-style:solid;border-color:${gs}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ie});border-width:${Ie}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${yr});border-width:${yr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${gi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${$r}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${md}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yi},${Rs};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,vh=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function $h(){return b`<slot class=default-slot ${X("slottedDefaults")} ${_("defaultSlot")}></slot><span class=monogram ${_("monogram")}>${o=>o.initials}</span> ${vh}<slot name=badge></slot>`}const yh=$h(),xh=fh.compose({name:ih,template:yh,styles:mh});xh.define(u.registry);const kh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},wh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Ch=`${u.prefix}-badge`;var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sh(e,t,r),r};class Gt extends k{constructor(){super(...arguments),this.appearance=kh.filled,this.color=wh.brand}}Ii([a],Gt.prototype,"appearance",2),Ii([a],Gt.prototype,"color",2),Ii([a],Gt.prototype,"shape",2),Ii([a],Gt.prototype,"size",2),at(Gt,nt);const ea=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${M};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${re} + ${R});border-radius:${ue};border-color:${K};background-color:${hs};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${z};border-color:inherit;border-radius:inherit}`,ta=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${yo};line-height:${ui};padding-inline:calc(${R} + ${R})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${M};line-height:${q};padding-inline:calc(${re} + ${R})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${M};line-height:${q};padding-inline:calc(${ke} + ${R})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,oa=g.partial`:host([color='danger']){background-color:${ys};color:${Ze}}:host([color='important']){background-color:${O};color:${P}}:host([color='informative']){background-color:${Rl};color:${Z}}:host([color='severe']){background-color:${Is};color:${Ze}}:host([color='subtle']){background-color:${P};color:${O}}:host([color='success']){background-color:${Cs};color:${Ze}}:host([color='warning']){background-color:${ac};color:${Vl}}`,ia=g.partial`:host([appearance='ghost']){color:${ii};background-color:initial}:host([appearance='ghost'][color='danger']){color:${ks}}:host([appearance='ghost'][color='important']){color:${O}}:host([appearance='ghost'][color='informative']){color:${Z}}:host([appearance='ghost'][color='severe']){color:${zs}}:host([appearance='ghost'][color='subtle']){color:${kt}}:host([appearance='ghost'][color='success']){color:${rc}}:host([appearance='ghost'][color='warning']){color:${mr}}`,Ph=g.partial`:host([appearance='outline']){border-color:currentColor;color:${ii};background-color:initial}:host([appearance='outline'][color='danger']){color:${ks}}:host([appearance='outline'][color='important']){color:${Z};border-color:${We}}:host([appearance='outline'][color='informative']){color:${Z};border-color:${$o}}:host([appearance='outline'][color='severe']){color:${zs}}:host([appearance='outline'][color='subtle']){color:${ns}}:host([appearance='outline'][color='success']){color:${ic}}:host([appearance='outline'][color='warning']){color:${mr}}`,zh=g.partial`:host([appearance='tint']){background-color:${fs};color:${Ll};border-color:${ms}}:host([appearance='tint'][color='danger']){background-color:${$s};color:${br};border-color:${xs}}:host([appearance='tint'][color='important']){background-color:${Z};color:${P};border-color:${K}}:host([appearance='tint'][color='informative']){background-color:${Hl};color:${Z};border-color:${$o}}:host([appearance='tint'][color='severe']){background-color:${Ss};color:${nc};border-color:${Ps}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${Z};border-color:${$o}}:host([appearance='tint'][color='success']){background-color:${ws};color:${oc};border-color:${tc}}:host([appearance='tint'][color='warning']){background-color:${sc};color:${mr};border-color:${lc}}`,Th=g`:host([shape='square']){border-radius:${ci}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${zh} ${Ph} ${ia} ${oa} ${ta} ${ea} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function _h(o={}){return b`${qe(o)}<slot>${ce(o.defaultContent)}</slot>${st(o)}`}const Oh=_h(),Bh=Gt.compose({name:Ch,template:Oh,styles:Th});Bh.define(u.registry);function tt(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&B.enqueue(()=>{o.focus()})}var Nh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Nh(e,t,r),r};class fe extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==ki.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex(),tt(this)}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case ki.reset:{this.resetForm();break}case ki.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ki.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}fe.formAssociated=!0,Pe([f],fe.prototype,"defaultSlottedContent",2),Pe([a({mode:"boolean"})],fe.prototype,"disabled",2),Pe([a({attribute:"disabled-focusable",mode:"boolean"})],fe.prototype,"disabledFocusable",2),Pe([a({attribute:"formaction"})],fe.prototype,"formAction",2),Pe([a({attribute:"form"})],fe.prototype,"formAttribute",2),Pe([a({attribute:"formenctype"})],fe.prototype,"formEnctype",2),Pe([a({attribute:"formmethod"})],fe.prototype,"formMethod",2),Pe([a({attribute:"formnovalidate",mode:"boolean"})],fe.prototype,"formNoValidate",2),Pe([a({attribute:"formtarget"})],fe.prototype,"formTarget",2),Pe([a],fe.prototype,"name",2),Pe([a],fe.prototype,"type",2),Pe([a],fe.prototype,"value",2);var Eh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Eh(e,t,r),r};class ot extends fe{constructor(){super(...arguments),this.iconOnly=!1}}Pi([a],ot.prototype,"appearance",2),Pi([a],ot.prototype,"shape",2),Pi([a],ot.prototype,"size",2),Pi([a({attribute:"icon-only",mode:"boolean"})],ot.prototype,"iconOnly",2),at(ot,nt);function Tr(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot></span>${st(o)}</template>`}const Mh=Tr(),Dh=ot.compose({name:Rd,template:Mh,styles:Si});Dh.define(u.registry);const Lh=`${u.prefix}-checkbox`;var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Vh(e,t,r),r};class Me extends k{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity(),tt(this)}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Me.formAssociated=!0,Ot([f],Me.prototype,"disabled",2),Ot([a({attribute:"disabled",mode:"boolean"})],Me.prototype,"disabledAttribute",2),Ot([a({attribute:"form"})],Me.prototype,"formAttribute",2),Ot([a({attribute:"checked",mode:"boolean"})],Me.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],Me.prototype,"initialValue",2),Ot([a],Me.prototype,"name",2),Ot([a({mode:"boolean"})],Me.prototype,"required",2);var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?jh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Rh(e,t,r),r};class zi extends Me{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}_r([f],zi.prototype,"indeterminate",2),_r([a],zi.prototype,"shape",2),_r([a],zi.prototype,"size",2);const qh=T("active"),Wh=T("bad-input"),y=T("checked"),Uh=T("custom-error"),Gh=T("description"),be=T("disabled");T("error");const Xh=T("flip-block"),Kh=T("focus-visible");T("has-message");const Bt=T("indeterminate"),Xt=T("multiple"),Yh=T("open"),Jh=T("pattern-mismatch"),Qh=T("placeholder-shown"),L=T("pressed"),Zh=T("range-overflow"),eu=T("range-underflow"),tu=T("required"),Or=T("selected"),ou=T("step-mismatch"),Ti=T("submenu"),iu=T("too-long"),ru=T("too-short"),nu=T("type-mismatch"),su=T("user-invalid"),au=T("valid"),lu=T("value-missing"),cu=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${Ee};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${St}}:host(${y}:hover){background-color:${Vt};border-color:${Kl}}:host(${y}:active){background-color:${Ht};border-color:${vs}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${he}}.indeterminate-indicator,.checked-indicator{color:${kt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Bt}){border-color:${ct}}:host(${y}),:host(${Bt}) .indeterminate-indicator{background-color:${wt}}:host(${Bt}) .indeterminate-indicator{border-radius:${Ee};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ue}}:host([disabled]),:host([disabled]${y}){background-color:${lt};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${Bt}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Bt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Bt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Bt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,du=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),hu=b.partial("<span class=indeterminate-indicator></span>");function uu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ce(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ce(o.indeterminateIndicator)}</slot></template>`}const pu=uu({checkedIndicator:du,indeterminateIndicator:hu}),gu=zi.compose({name:Lh,template:pu,styles:cu});gu.define(u.registry);const fu=`${u.prefix}-compound-button`;class bu extends ot{}const mu=g`${Si} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${M};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Lt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ti}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${oi}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${N}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ke}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${re}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Fe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${xe}}:host([size='large']) ::slotted([slot='description']){font-size:${A}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function vu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${qe(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot><slot name=description></slot></span>${st(o)}</template>`}const $u=vu(),yu=bu.compose({name:fu,template:$u,styles:mu});yu.define(u.registry);const xu=`${u.prefix}-counter-badge`;var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Co=(o,e,t,i)=>{for(var r=i>1?void 0:i?wu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ku(e,t,r),r};class Kt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Co([a({converter:ie})],Kt.prototype,"count",2),Co([a({attribute:"overflow-count",converter:ie})],Kt.prototype,"overflowCount",2),Co([a({attribute:"show-zero",mode:"boolean"})],Kt.prototype,"showZero",2),Co([a({mode:"boolean"})],Kt.prototype,"dot",2),Co([$e],Kt.prototype,"displayValue",1);var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?Su(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Cu(e,t,r),r};class Yt extends Kt{}_i([a],Yt.prototype,"appearance",2),_i([a],Yt.prototype,"color",2),_i([a],Yt.prototype,"shape",2),_i([a],Yt.prototype,"size",2),at(Yt,nt);const Iu=g`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${ta} ${oa} ${ia} ${ea} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Pu(o={}){return b`${qe(o)} <span>${e=>e.displayValue}</span> ${st(o)}`}const zu=Pu(),Tu=Yt.compose({name:xu,template:zu,styles:Iu});Tu.define(u.registry);const Nt={modal:"modal",nonModal:"non-modal",alert:"alert"};function ra(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const _u=`${u.prefix}-dialog`;var Ou=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ou(e,t,r),r};class De extends k{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Nt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Nt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Nt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Nt.alert||this.type===Nt.modal?this.dialog.showModal():this.type===Nt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Nt.alert&&e.target===this.dialog&&this.hide(),!0}}Xe([f],De.prototype,"dialog",2),Xe([a({attribute:"aria-describedby"})],De.prototype,"ariaDescribedby",2),Xe([a({attribute:"aria-labelledby"})],De.prototype,"ariaLabelledby",2),Xe([a({attribute:"aria-label"})],De.prototype,"ariaLabel",2),Xe([a],De.prototype,"type",2),Xe([$e],De.prototype,"dialogDescribedby",1),Xe([$e],De.prototype,"dialogLabel",1),Xe([$e],De.prototype,"dialogLabelledby",1),Xe([$e],De.prototype,"dialogModal",1),Xe([$e],De.prototype,"dialogRole",1);const Nu=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${_("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Au=g`@layer base{:host{--dialog-backdrop:${pr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${Os};border:none;box-shadow:${Hs};color:${O};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${Tt};opacity:0}::backdrop{transition-timing-function:${Sr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${zt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${z} solid ${K}}}}`,Eu=De.compose({name:_u,template:Nu,styles:Au});Eu.define(u.registry);const Fu=`${u.prefix}-dialog-body`;class Mu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t)&&t.hide()}return!0}}const Du=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,Lu=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${se};padding:${Pt} ${fi};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${O};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${pi};margin-block-end:calc(${se} * -1);margin-block-start:calc(${Pt} * -1);padding-block-end:${se};padding-block-start:${Pt}}.content{box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${Pt} * -1);padding-block-end:${Pt};padding-block-start:${kr}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,Vu=Mu.compose({name:Fu,template:Du,styles:Lu});Vu.define(u.registry);const we={horizontal:"horizontal",vertical:"vertical"},So={separator:"separator",presentation:"presentation"},na=we,Hu=`${u.prefix}-divider`;var Ru=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?ju(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ru(e,t,r),r};class Br extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??So.separator,this.role!==So.presentation&&(this.elementInternals.ariaOrientation=this.orientation??na.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??So.separator}`),t===So.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==So.presentation?t??null:null,_t(this.elementInternals,e,t,na)}}sa([a],Br.prototype,"role",2),sa([a],Br.prototype,"orientation",2);var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&qu(e,t,r),r};class Oi extends Br{}Nr([a({attribute:"align-content"})],Oi.prototype,"alignContent",2),Nr([a],Oi.prototype,"appearance",2),Nr([a({mode:"boolean"})],Oi.prototype,"inset",2);function Uu(){return b`<slot></slot>`}const Gu=Uu(),Xu=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${$o};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${z}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${M};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${z};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ue}}:host([appearance='strong']) ::slotted(*){color:${O}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${bs}}:host([appearance='brand']) ::slotted(*){color:${ii}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Gl}}:host([appearance='subtle']) ::slotted(*){color:${Z}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`,Ku=Oi.compose({name:Hu,template:Gu,styles:Xu});Ku.define(u.registry);const Yu={start:"start",end:"end"},Ju={small:"small",medium:"medium",large:"large",full:"full"},Io={nonModal:"non-modal",modal:"modal",inline:"inline"},Qu=`${u.prefix}-drawer`;var Zu=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var r=i>1?void 0:i?ep(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Zu(e,t,r),r};class Ce extends k{constructor(){super(...arguments),this.position=Yu.start,this.size=Ju.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===Io.modal)return!0}get dialogRole(){return this.dialog&&this.type===Io.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Io.modal})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Io.inline||this.type===Io.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}ze([a],Ce.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedby",2),ze([a],Ce.prototype,"position",2),ze([f],Ce.prototype,"role",2),ze([a({attribute:"size"})],Ce.prototype,"size",2),ze([f],Ce.prototype,"dialog",2),ze([$e],Ce.prototype,"dialogDescribedby",1),ze([$e],Ce.prototype,"dialogLabel",1),ze([$e],Ce.prototype,"dialogLabelledby",1),ze([$e],Ce.prototype,"dialogModal",1),ze([$e],Ce.prototype,"dialogRole",1);const tp=g`${w("block")} :host{--dialog-backdrop:${pr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${P};border-radius:0;border:${z} solid ${K};border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});box-shadow:${Hs};box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${fi});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Cr};transition-timing-function:${Tt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${zt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${zt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${Tt};background:var(--dialog-backdrop,${pr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Sr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function op(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${_("dialog")}><slot></slot></dialog>`}const ip=op(),rp=Ce.compose({name:Qu,template:ip,styles:tp});rp.define(u.registry);const np=`${u.prefix}-drawer-body`;class sp extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t,"-drawer")&&t.hide()}return!0}}const aa=g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${E};`;g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${H};`,g.partial`font-family:${v};font-size:${A};line-height:${D};font-weight:${hi};`;const ap=g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${E};`,la=g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${E};`;g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${H};`,g.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${hi};`,g.partial`font-family:${v};font-size:${yo};line-height:${ui};font-weight:${E};`,g.partial`font-family:${v};font-size:${yo};line-height:${ui};font-weight:${H};`;const lp=g.partial`font-family:${v};font-size:${Rt};line-height:${pi};font-weight:${H};`;g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${H};`,g.partial`font-family:${v};font-size:${pe};line-height:${xe};font-weight:${hi};`,g.partial`font-family:${v};font-size:${Ns};line-height:${Ds};font-weight:${H};`,g.partial`font-family:${v};font-size:${Bs};line-height:${Ms};font-weight:${H};`,g.partial`font-family:${v};font-size:${di};line-height:${Fs};font-weight:${H};`,g.partial`font-family:${v};font-size:${As};line-height:${Ls};font-weight:${H};`,g.partial`font-family:${v};font-size:${Es};line-height:${Vs};font-weight:${H};`;const cp=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${$d};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${lp}}.footer{display:flex;justify-content:flex-start;gap:${ne}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function dp(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const hp=dp(),up=sp.compose({name:np,template:hp,styles:cp});up.define(u.registry);const pp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ar={combobox:"combobox",dropdown:"dropdown",select:"select"},gp=`${u.prefix}-dropdown`;function ca(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const fp=`${u.prefix}-listbox`;function Jt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bp=`${u.prefix}-option`,pt={ltr:"ltr",rtl:"rtl"},da=o=>o.closest("[dir]")?.dir==="rtl"?pt.rtl:pt.ltr;function ha(o){return o.closest("[lang]")?.lang??"en"}let mp=0;function Ke(o="id-"){const e=`${o}${mp++}`;return document.getElementById(e)?Ke(o):e}const vp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${_("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,$p=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${_("control")}>`,yp=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${_("control")}>${o=>o.displayValue}</button>`;function xp(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${_("controlSlot")}></slot><slot name=indicator ${_("indicatorSlot")}>${ce(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const kp=xp({indicator:vp});var wp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wp(e,t,r),r};const j=class so extends k{constructor(){super(),this.activeIndex=0,this.id=Ke("dropdown-"),this.required=!1,this.type=Ar.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||da(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,n)=>{r.active=n===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ke("input-"))}disabledChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);if(i.subscribe(t),i.notify("multiple"),B.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled,r.name=this.name}),this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,n)=>{r.selected=this.multiple||n===0}),this.setValidity()}),wi){const r=Ke("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,wi||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Ar.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Jt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ha(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Ar.combobox){$p.render(this,this);return}yp.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let i=this.searchString.length>1?this.filterOptions(this.searchString):[],r=!1;if(!i.length&&t&&(i=this.filterOptions(e),r=!0),i.length){const n=this.enabledOptions[this.activeIndex],s=i.indexOf(n),c=r?i[this.getEnabledIndexInBounds(s+1,i.length)]:s>=0?n:i[0];this.activeIndex=this.enabledOptions.indexOf(c)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Jt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}slotchangeHandler(e){const t=e.target;ko(this,()=>{const i=t.assignedElements().find(r=>ca(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.insertControl()}),tt(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:n})=>{if(ca(n)){if(i.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}i.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,Y([$e],j.prototype,"activeDescendant",1),Y([f],j.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),Y([f],j.prototype,"control",2),Y([a({mode:"boolean"})],j.prototype,"disabled",2),Y([$e],j.prototype,"displayValue",1),Y([a({attribute:"id"})],j.prototype,"id",2),Y([f],j.prototype,"indicator",2),Y([f],j.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Y([f],j.prototype,"listbox",2),Y([a({mode:"boolean"})],j.prototype,"multiple",2),Y([a],j.prototype,"name",2),Y([f],j.prototype,"open",2),Y([a],j.prototype,"placeholder",2),Y([a({mode:"boolean"})],j.prototype,"required",2),Y([a],j.prototype,"type",2),Y([a({attribute:"value"})],j.prototype,"valueAttribute",2);let Sp=j;var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ip(e,t,r),r};class Er extends Sp{constructor(){super(...arguments),this.appearance=pp.outline}}ua([a],Er.prototype,"appearance",2),ua([a],Er.prototype,"size",2);const zp=g`${w("inline-flex")} :host{box-sizing:border-box;color:${O};cursor:pointer}:host(${Qh}){color:${hr}}.control{appearance:none;background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:inset 0 0 0 ${z} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${xo} ${et};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${aa}}:host([size='small']) .control{column-gap:${R};padding:${jt} ${ke};${la}}:host([size='large']) .control{column-gap:${Fe};padding:${se} ${ne};${ap}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${z}}.control::after{background-color:${ct};height:${ge};scale:0 1;transition:scale ${wr} ${Tt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${li};outline:${ge} solid ${he}}:host(:where(${Yh},:focus-within)) .control::after{scale:1 1;transition-duration:${$i};transition-timing-function:${zt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${We}}:host([appearance='transparent']) .control{--control-border-color:${gr};background-color:${de};border-radius:${ci}}:host([appearance='outline']) .control{--control-border-color:${Ue}}:host([appearance='outline']) .control:hover{--control-border-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${vo}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${St}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${fo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${ye};background-color:${lt};color:${N}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${D} + (${xo} * 2) + ${z})}:host([size='small']){--margin-offset:calc(${q} + (${jt} * 2) + ${z})}:host([size='large']){--margin-offset:calc(${xe} + (${se} * 2) + ${z})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Tp=Er.compose({name:gp,template:kp,styles:zp});Tp.define(u.registry);const _p={above:"above",after:"after",before:"before"},Te={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},Op=`${u.prefix}-field`;var Bp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Bi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Np(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bp(e,t,r),r};class Po extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ke("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Te))$(this.elementInternals,t,this.input.validity[e])}}Bi([f],Po.prototype,"labelSlot",2),Bi([f],Po.prototype,"messageSlot",2),Bi([f],Po.prototype,"slottedInputs",2),Bi([f],Po.prototype,"input",2);var Ap=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Fp=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ep(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ap(e,t,r),r};class pa extends Po{constructor(){super(...arguments),this.labelPosition=_p.above}}Fp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const Mp=g`${w("inline-grid")} :host{color:${O};align-items:center;gap:0 ${ne};justify-items:start}:has([slot='message']){color:${O};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ne}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${bi}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${yd}}:host(${tu}) ::slotted([slot='label'])::after{content:'*'/'';color:${br};margin-inline-start:${re}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${M};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${bi}}:host(${Kh}:focus-within){border-radius:${S};outline:${ge} solid ${he}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${A};font-weight:${E};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${M};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${xe}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${be}){cursor:default}::slotted([flag]){display:none}:host(${Wh}) ::slotted([flag='${Te.badInput}']),:host(${Uh}) ::slotted([flag='${Te.customError}']),:host(${Jh}) ::slotted([flag='${Te.patternMismatch}']),:host(${Zh}) ::slotted([flag='${Te.rangeOverflow}']),:host(${eu}) ::slotted([flag='${Te.rangeUnderflow}']),:host(${ou}) ::slotted([flag='${Te.stepMismatch}']),:host(${iu}) ::slotted([flag='${Te.tooLong}']),:host(${ru}) ::slotted([flag='${Te.tooShort}']),:host(${nu}) ::slotted([flag='${Te.typeMismatch}']),:host(${lu}) ::slotted([flag='${Te.valueMissing}']),:host(${au}) ::slotted([flag='${Te.valid}']){display:block}`,Dp=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${X("labelSlot")}></slot><slot name=input part=input ${X("slottedInputs")}></slot><slot name=message part=message ${X({property:"messageSlot",filter:co("[flag]")})}></slot></template>`,Lp=pa.compose({name:Op,template:Dp,styles:Mp,shadowOptions:{delegatesFocus:!0}});Lp.define(u.registry);const Vp=`${u.prefix}-image`;var Hp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Hp(e,t,r),r};class Qt extends k{}zo([a({mode:"boolean"})],Qt.prototype,"block",2),zo([a({mode:"boolean"})],Qt.prototype,"bordered",2),zo([a({mode:"boolean"})],Qt.prototype,"shadow",2),zo([a],Qt.prototype,"fit",2),zo([a],Qt.prototype,"shape",2);const jp=b`<slot></slot>`,qp=g`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${z} solid ${$o}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${gi}}:host([shape='circular']) ::slotted(img){border-radius:${ue}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,Wp=Qt.compose({name:Vp,template:jp,styles:qp});Wp.define(u.registry);const Up=`${u.prefix}-label`;var Gp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Gp(e,t,r),r};class To extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Ni([a],To.prototype,"size",2),Ni([a],To.prototype,"weight",2),Ni([a({mode:"boolean"})],To.prototype,"disabled",2),Ni([a({mode:"boolean"})],To.prototype,"required",2);const Kp=g`${w("inline-flex")} :host{color:${O};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};line-height:${D};user-select:none}.asterisk{color:${br};margin-inline-start:${re}}:host([size='small']){font-size:${M};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${xe}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${N}}`;function Yp(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Jp=Yp(),Qp=To.compose({name:Up,template:Jp,styles:Kp});Qp.define(u.registry);const Zp=`${u.prefix}-link`;var eg=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?tg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&eg(e,t,r),r};class Fr extends Ge{constructor(){super(...arguments),this.inline=!1}}ga([a],Fr.prototype,"appearance",2),ga([a({mode:"boolean"})],Fr.prototype,"inline",2);const og=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Tl};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${z};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${_l}}:host(:active){color:${Ol}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Al}}}:host([appearance='subtle']){color:${Bl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function ig(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const rg=ig(),ng=Fr.compose({name:Zp,template:rg,styles:og});ng.define(u.registry);var sg=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,_o=(o,e,t,i)=>{for(var r=i>1?void 0:i?ag(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&sg(e,t,r),r};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),B.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Jt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),ko(this,()=>{this.id=this.id||Ke("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const n=r===e;i.selected=n,n&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){ko(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(i=>Jt(i));this.options=t}})}}_o([f],Zt.prototype,"defaultSlot",2),_o([f],Zt.prototype,"multiple",2),_o([f],Zt.prototype,"options",2),_o([f],Zt.prototype,"selectedIndex",2),_o([f],Zt.prototype,"dropdown",2);const lg=g`${w("inline-flex")} :host{background-color:${P};border-radius:${S};border:${z} solid ${K};box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${re};row-gap:${R};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(end);inset-inline-start:anchor(start);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${Xh}){margin-block-start:revert;translate:0 -100%}}`;function cg(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${_("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const dg=cg(),hg=Zt.compose({name:fp,template:dg,styles:lg});hg.define(u.registry);const ug=Si,pg=`${u.prefix}-menu-button`;class gg extends ot{}const fg=Tr({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),bg=gg.compose({name:pg,template:fg,styles:ug});bg.define(u.registry);const ee={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ee.menuitem+"",ee.menuitemcheckbox+"",ee.menuitemradio+"";function mg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vg=`${u.prefix}-menu-item`;var $g=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?yg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&$g(e,t,r),r};class it extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ee.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ee.menuitemcheckbox:this.checked=!this.checked;break;case ee.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ee.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ee.menuitem}checkedChanged(e,t){const i=this.role!==ee.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,$(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ee.menuitem,this.elementInternals.ariaChecked=this.role!==ee.menuitem?`${!!this.checked}`:null,tt(this)}}eo([a({mode:"boolean"})],it.prototype,"disabled",2),eo([a],it.prototype,"role",2),eo([a({mode:"boolean"})],it.prototype,"checked",2),eo([a({mode:"boolean"})],it.prototype,"hidden",2),eo([f],it.prototype,"slottedSubmenu",2),eo([f],it.prototype,"submenu",2),at(it,nt);const xg=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${S};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${A}/${D} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ri};color:${Dt}}:host(:active){background-color:${ss};color:${Lt}}:host(:active) ::slotted([slot='start']){color:${Fl}}:host(${be}){background-color:${lt};color:${N}}:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:${N}}:host(:focus-visible){border-radius:${S};outline:2px solid ${he}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Ti})) .submenu-glyph,:host(:not(${Ti})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${E} ${M}/${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Ti}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Ti}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(start);inset-inline-start:anchor(end);position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${be}),:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:GrayText}}`,kg=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),wg=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function Cg(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${ce(o.indicator)}</slot>${qe(o)}<div part=content class=content><slot></slot></div>${st(o)}<slot name=submenu-glyph>${ce(o.submenuGlyph)}</slot><slot name=submenu ${X({property:"slottedSubmenu"})}></slot></template>`}const Sg=Cg({indicator:kg,submenuGlyph:wg}),Ig=it.compose({name:vg,template:Sg,styles:xg});Ig.define(u.registry);const Pg=`${u.prefix}-menu-list`;var Oo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Mr={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Dr(o,e){return o.contains(e)}function zg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Tg(o,e,t){const i="forward",r="backward",n="block",s="inline";if(_g(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?r:i:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?n:s,x=d?s:n,C=d?c.endsWith("-rl")!==l:l,Be=d&&l,bt={ArrowUp:{axis:x,dir:Be?i:r},ArrowDown:{axis:x,dir:Be?r:i},ArrowLeft:{axis:p,dir:C?i:r},ArrowRight:{axis:p,dir:C?r:i},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!bt||t&&bt.axis&&bt.axis!==t?null:bt.dir}function _g(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Og=globalThis.__FOCUSGROUP_POLYFILL__,Bg=Og.o;function Lr(){for(const o of Bg)o.takeRecords()}var Ai=class{#t;#e;#s=Mr.NONE;#u=void 0;#c=!1;#a=!0;#i;#o=null;#r=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(zg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const i={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),i),this.#t.addEventListener("focusin",this.#y.bind(this),i),this.#t.addEventListener("focusout",this.#x.bind(this),i)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Mr.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Mr.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#i=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Oo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Oo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(Tg(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#r&&(!o.relatedTarget||!Dr(this.#t,o.relatedTarget))){const i=this.#o||this.#i;this.#n(),i&&i.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#r&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const i=t??this.#i;i&&this.#v(i,e)}}#x(o){if(!o.relatedTarget||!Dr(this.#t,o.relatedTarget)){const i=this.#a?this.#o||this.#i:this.#i;i&&this.#m(i)}if(o.relatedTarget&&Dr(this.#t,o.relatedTarget)||this.#a||!this.#i)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#i||t!==this.#i){for(const{element:i,segmentBoundary:r}of this.#e.items())i.tabIndex=r?0:-1;t&&(t.tabIndex=0,this.#i=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(Oo.AUTHOR_TABINDEX);this.#r||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#r=!0,Lr())}#n(){this.#r&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#r=!1,this.#l=null,this.#e.flush?.(),Lr())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Lr()}};class Ei{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),i=t.indexOf(e);return i===-1?null:t[i+1]??null}previous(e){const t=this.getItems(),i=t.indexOf(e);return i<=0?null:t[i-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Ng=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,Eg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ag(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ng(e,t,r),r};const Vr=class sn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&ln(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,i=this.menuChildren.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=i-1;n>=0;--n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}const r=this.menuChildren.length-1;for(let n=i+1;n<=r;++n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),B.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,i=e.querySelector("[slot=start]");return t&&t!==ee.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);e.forEach(i=>{m.getNotifier(i).subscribe(this,"hidden")}),this.menuChildren=e.filter(i=>!i.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((i,r)=>{const n=sn.elementIndent(r);return Math.max(i,n)},0);this.menuItems?.forEach(i=>{i.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return mg(e)||ln(e)&&!!e.role&&e.role in sn.focusableElementRoles}};Vr.focusableElementRoles=ee,Eg([f],Vr.prototype,"items",2);let Fg=Vr;class Mg extends Fg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ei(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}const Dg=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${K};border-radius:${S};box-shadow:${$r};padding:4px;row-gap:2px}`;function Lg(){return b`<template focusgroup=menu><slot ${X("items")}></slot></template>`}const Vg=Lg(),Hg=Mg.compose({name:Pg,template:Vg,styles:Dg});Hg.define(u.registry);const Rg=`${u.prefix}-menu`;var jg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?qg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&jg(e,t,r),r};class rt extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof it&&(e.target.getAttribute("role")===ee.menuitemcheckbox||e.target.getAttribute("role")===ee.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const i=t[0];this._trigger=i,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){B.enqueue(()=>{this._menuList.focus()})}focusTrigger(){B.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}gt([a({attribute:"open-on-hover",mode:"boolean"})],rt.prototype,"openOnHover",2),gt([a({attribute:"open-on-context",mode:"boolean"})],rt.prototype,"openOnContext",2),gt([a({attribute:"close-on-scroll",mode:"boolean"})],rt.prototype,"closeOnScroll",2),gt([a({attribute:"persist-on-item-click",mode:"boolean"})],rt.prototype,"persistOnItemClick",2),gt([a({mode:"boolean"})],rt.prototype,"split",2),gt([f],rt.prototype,"slottedMenuList",2),gt([f],rt.prototype,"slottedTriggers",2),gt([f],rt.prototype,"primaryAction",2);const Wg=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(end);inset-inline-start:anchor(start);position-try-fallbacks:flip-block;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:auto;inset-inline-end:anchor(end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${z} solid ${Ue};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${z} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function Ug(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${_("primaryAction")}></slot><slot name=trigger ${X({property:"slottedTriggers",filter:co()})}></slot><slot ${X({property:"slottedMenuList",filter:co()})}></slot></template>`}const Gg=Ug(),Xg=rt.compose({name:Rg,template:Gg,styles:Wg});Xg.define(u.registry);const Kg=`${u.prefix}-message-bar`;var Yg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Hr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Yg(e,t,r),r};class Fi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Hr([a],Fi.prototype,"shape",2),Hr([a],Fi.prototype,"layout",2),Hr([a],Fi.prototype,"intent",2);const Qg=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${M};line-height:${q};width:100%;background:${fo};border:1px solid ${Ue};padding-inline:${ne};border-radius:${S};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${ws};border-color:${ec}}:host([intent='warning']){background-color:${Ss};border-color:${Ps}}:host([intent='error']){background-color:${$s};border-color:${xs}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${mi};padding-inline:${ne}}.content{grid-area:body;max-width:520px;padding-block:${mi};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Fe}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Fe};gap:${Fe}}:host([layout='multiline']) .actions{margin-block-start:${mi};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Zg(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const ef=Zg(),tf=Fi.compose({name:Kg,template:ef,styles:Qg,shadowOptions:{mode:u.shadowRootMode}});tf.define(u.registry);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,me=(o,e,t,i)=>{for(var r=i>1?void 0:i?rf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&of(e,t,r),r};class ae extends k{constructor(){super(),this.active=!1,this.id=Ke("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,B.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ae.formAssociated=!0,me([f],ae.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ae.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ae.prototype,"defaultSelected",2),me([f],ae.prototype,"descriptionSlot",2),me([f],ae.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ae.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ae.prototype,"formAttribute",2),me([a({mode:"boolean"})],ae.prototype,"freeform",2),me([a({attribute:"id"})],ae.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ae.prototype,"initialValue",2),me([f],ae.prototype,"multiple",2),me([a],ae.prototype,"name",2),me([f],ae.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ae.prototype,"textAttribute",2);const nf=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${aa} align-items:center;background-color:${P};border-radius:${S};box-sizing:border-box;color:${Ae};column-gap:${re};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ke};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ri};color:${Dt}}:host(:active){background-color:${ur};color:${Lt}}:host(:disabled){background-color:${P};color:${N};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Or}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Xt}) .checkmark-16-filled,:host(:not(${Xt})) .checkmark-12-regular{display:none}:host(${Xt}) .checkmark-12-regular{background-color:${P};border-radius:${Ee};border:${z} solid ${We};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Xt}${Or}) .checkmark-12-regular{background-color:${wt};border-color:${ct};fill:${kt}}:host(:disabled${Xt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Xt}${Or}) .checkmark-12-regular{background-color:${lt}}:host(${qh}){border:${ge} solid ${he}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ke}}}:host(${Gh}){column-gap:${ke};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${la}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,sf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function af(o={}){return b`<slot name=checked-indicator>${ce(o.checkedIndicator)}</slot>${qe(o)}<div class=content part=content><slot ${X({property:"freeformOutputs",filter:co("output")})}></slot></div><div class=description part=description><slot name=description ${X("descriptionSlot")}></slot></div>`}const lf=af({checkedIndicator:sf}),cf=ae.compose({name:bp,template:lf,styles:nf});cf.define(u.registry);const df={success:"success",warning:"warning",error:"error"},hf=`${u.prefix}-progress-bar`;var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Bo=(o,e,t,i)=>{for(var r=i>1?void 0:i?pf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&uf(e,t,r),r};class to extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){_t(this.elementInternals,e,t,df)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||B.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,n=r===0?0:Math.fround((i-e)/r*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Bo([f],to.prototype,"indicator",2),Bo([a({attribute:"validation-state"})],to.prototype,"validationState",2),Bo([a({converter:ie})],to.prototype,"value",2),Bo([a({converter:ie})],to.prototype,"min",2),Bo([a({converter:ie})],to.prototype,"max",2);var gf=Object.defineProperty,ff=Object.getOwnPropertyDescriptor,fa=(o,e,t,i)=>{for(var r=i>1?void 0:i?ff(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&gf(e,t,r),r};class Rr extends to{}fa([a],Rr.prototype,"thickness",2),fa([a],Rr.prototype,"shape",2);const bf=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${bo};border-radius:${S};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${ci}}.indicator{background-color:${wt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${bo} 0%,${de} 50%,${bo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${ys}}:host([validation-state='warning']) .indicator{background-color:${Is}}:host([validation-state='success']) .indicator{background-color:${Cs}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function mf(){return b`<div class=indicator part=indicator ${_("indicator")}></div>`}const vf=mf(),$f=Rr.compose({name:hf,template:vf,styles:bf});$f.define(u.registry);const ba=we,yf=`${u.prefix}-radio-group`;function xf(o,e="-radio"){return an(e)(o)}const kf=`${u.prefix}-radio`;var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wf(e,t,r),r};class Ye extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const r=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===r,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(i=>xf(i))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,n)=>{const s=n===e;r.checked=s,s&&(i=n,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(i=>{i.disabled&&i.checked&&(i.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(n,s,c):c.elementInternals.setValidity({})})}}}Ye.formAssociated=!0,ft([f],Ye.prototype,"checkedIndex",2),ft([a({attribute:"disabled",mode:"boolean"})],Ye.prototype,"disabled",2),ft([a({attribute:"value",mode:"fromView"})],Ye.prototype,"initialValue",2),ft([a],Ye.prototype,"name",2),ft([a],Ye.prototype,"orientation",2),ft([f],Ye.prototype,"radios",2),ft([a({mode:"boolean"})],Ye.prototype,"required",2),ft([f],Ye.prototype,"slottedRadios",2);class Sf extends Ye{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ei(()=>this.enabledRadios?.filter(i=>!i.hidden)??[],()=>this.enabledRadios?.find(i=>i.checked)??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}const If=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${kr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${O}}::slotted(${be}){color:${N}}::slotted(${y}){color:${O}}:host([slot='input']){margin:${se} ${Fe}}`;function Pf(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${X("slottedRadios")}></slot></template>`}const zf=Pf(),Tf=Sf.compose({name:yf,template:zf,styles:If});Tf.define(u.registry);class _f extends Me{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const Of=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${z} solid ${We};border-radius:${ue};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ue};color:${kt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${he}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${ct}}:host(${y}) .checked-indicator{background-color:${wt}}:host(${y}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${St}}:host(${y}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${be}){background-color:${lt};border-color:${ye}}:host(${y}${be}) .checked-indicator{background-color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${be}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${be}):hover) .checked-indicator{background-color:Highlight}:host(${be}){border-color:GrayText;color:GrayText}:host(${be}${y}) .checked-indicator{background-color:GrayText}}`,Bf=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function Nf(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${ce(o.checkedIndicator)}</slot></template>`}const Af=Nf({checkedIndicator:Bf}),Ef=_f.compose({name:kf,template:Af,styles:Of});Ef.define(u.registry);const Ff=`${u.prefix}-rating-display`;var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,No=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mf(e,t,r),r};const Lf=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Mi(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class io extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,i=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,r=`
|
|
6
6
|
<svg
|
|
7
7
|
viewBox="${i}"
|
|
8
8
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -13,13 +13,13 @@ Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ua(C.join(`
|
|
|
13
13
|
fill="none"
|
|
14
14
|
stroke="black"
|
|
15
15
|
stroke-width="2"
|
|
16
|
-
>${t}</svg>`;this.display.style.setProperty(
|
|
17
|
-
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${
|
|
18
|
-
`,
|
|
16
|
+
>${t}</svg>`;this.display.style.setProperty(oo.maskImageFilled,`url(${Mi(r)})`),this.display.style.setProperty(oo.maskImageOutlined,`url(${Mi(n)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||Lf)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(oo[e]):this.display.style.setProperty(oo[e],`${t}`)})}}No([f],io.prototype,"iconSlot",2),No([a({converter:ie})],io.prototype,"count",2),No([a({attribute:"icon-view-box"})],io.prototype,"iconViewBox",2),No([a({converter:ie})],io.prototype,"max",2),No([a({converter:ie})],io.prototype,"value",2);var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Vf(e,t,r),r};class Di extends io{constructor(){super(...arguments),this.compact=!1}}jr([a],Di.prototype,"color",2),jr([a],Di.prototype,"size",2),jr([a({mode:"boolean"})],Di.prototype,"compact",2);const ma='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',Rf=`
|
|
17
|
+
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${ma}</svg>
|
|
18
|
+
`,jf=`
|
|
19
19
|
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
20
20
|
fill="none" stroke="black" stroke-width="2"
|
|
21
|
-
>${
|
|
22
|
-
`;function jf(){return b`<div ${_("display")} class=display aria-hidden=true></div><slot name=icon ${_("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></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 qf=jf(),Wf=g`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${lc};--_icon-color-empty:${zs};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Ei(Hf)});--_mask-image-outlined:url(${Ei(Rf)});--_mask-position-x:left;align-items:center;color:${O};font-family:${v};font-size:${D};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${E};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${O};--_icon-color-empty:${fo}}:host([color='brand']){--_icon-color-value:${oi};--_icon-color-empty:${gs}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${R});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${R}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${re};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${R}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ke}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${re}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${R}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ke}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Uf=Fi.compose({name:Ef,template:qf,styles:Wf});Uf.define(u.registry);const Gf=Ce,Xf={singleValue:"single-value"},Kf=`${u.prefix}-slider`;function ma(o,e,t){return Math.min(Math.max(t,o),e)}const jr={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function va(o,e,t,i){let r=ma(0,1,(o-e)/(t-e));return i===pt.rtl&&(r=1-r),r}var Yf=Object.defineProperty,Jf=Object.getOwnPropertyDescriptor,te=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Yf(e,t,r),r};class W extends k{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=Xf.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===Ce.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===Ce.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Gf.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=g`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}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(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=ma(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":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 e=parseFloat(this.min);if(!Number.isNaN(e))return e}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 e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Ce.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=ca(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")})}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==pt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==pt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==pt.rtl&&this.orientation!==Ce.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==pt.rtl&&this.orientation!==Ce.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=va(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===Ce.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}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(e){this.setupTrackConstraints();const t=va(e,this.orientation===Ce.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Ce.vertical?this.trackHeight:this.trackWidth,this.orientation===Ce.vertical?void 0:this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){A.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,te([a],W.prototype,"size",2),te([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),te([f],W.prototype,"direction",2),te([f],W.prototype,"isDragging",2),te([f],W.prototype,"position",2),te([f],W.prototype,"trackWidth",2),te([f],W.prototype,"trackMinWidth",2),te([f],W.prototype,"trackHeight",2),te([f],W.prototype,"trackLeft",2),te([f],W.prototype,"trackMinHeight",2),te([f],W.prototype,"valueTextFormatter",2),te([a({mode:"boolean"})],W.prototype,"disabled",2),te([a({converter:jr})],W.prototype,"min",2),te([a({converter:jr})],W.prototype,"max",2),te([a({converter:jr})],W.prototype,"step",2),te([a],W.prototype,"orientation",2),te([a],W.prototype,"mode",2);const Qf=g`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${wt};--track-color:${We};--slider-direction:90deg;--border-radius:${S};--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:${Lt}}:host(:active){--rail-color:${Vt}}:host(:disabled){--rail-color:${B};--track-color:${at}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Fe}}:host([orientation='vertical']){--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 ${ue};outline:1px solid ${ai}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );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([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .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( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${P} calc(var(--step-rate) - 1px),${P} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .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:${pe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${P} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ue};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.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 Zf(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${_("track")} part=track-container class=track style=${e=>e.position}></div><div ${_("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${de(o.thumb)}</slot></div></template>`}const eb=Zf({thumb:'<div class="thumb"></div>'}),tb=W.compose({name:Kf,template:eb,styles:Qf});tb.define(u.registry);const ob=`${u.prefix}-spinner`;class ib extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var rb=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,$a=(o,e,t,i)=>{for(var r=i>1?void 0:i?nb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&rb(e,t,r),r};class qr extends ib{}$a([a],qr.prototype,"size",2),$a([a],qr.prototype,"appearance",2);const sb=g`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Pe};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${fe};--size:20px}:host([size='extra-small']){--indicatorSize:${fe};--size:24px}:host([size='small']){--indicatorSize:${fe};--size:28px}:host([size='large']){--indicatorSize:${Pe};--size:36px}:host([size='extra-large']){--indicatorSize:${Pe};--size:40px}:host([size='huge']){--indicatorSize:${vr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${$i}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${bs};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${fs};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Gl}}.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)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,ab=b`<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>`,lb=qr.compose({name:ob,template:ab,styles:sb});lb.define(u.registry);const cb=`${u.prefix}-switch`;class db extends ze{constructor(){super(),this.elementInternals.role="switch"}}function hb(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${de(o.switch)}</slot></template>`}const ub=hb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),pb=g`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${he};border:1px solid ${We};border-radius:${pe}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${St}}:host(:disabled),:host([readonly]){border:1px solid ${ye};background-color:none;pointer:default}:host(${y}){background:${wt};border-color:${wt}}:host(${y}:hover){background:${Lt};border-color:${Lt}}:host(${y}:active){background:${Vt};border-color:${Vt}}:host(${y}:disabled){background:${at};border-color:${ye}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${mi};transition-timing-function:${$i};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${kt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Fl}}:host(${y}:active) .checked-indicator{background:${Ml}}:host(:hover) .checked-indicator{background-color:${Sl}}:host(:active) .checked-indicator{background-color:${Il}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${B}}:host(${y}:disabled) .checked-indicator{background:${B}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${fe} solid ${K};outline-offset:1px;box-shadow:${pi},0 0 0 2px ${ue}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`,gb=db.compose({name:cb,template:ub,styles:pb});gb.define(u.registry);function Wr(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const fb=`${u.prefix}-tab`;var bb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,vb=(o,e,t,i)=>{for(var r=i>1?void 0:i?mb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&bb(e,t,r),r};class Ur extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=g`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}vb([a({mode:"boolean"})],Ur.prototype,"disabled",2),st(Ur,rt);function $b(o={}){return b`<template slot=tab role=tab>${qe(o)} <span class=tab-content><slot></slot></span>${nt(o)}</template>`}const yb=$b({}),xb=g`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${v};font-size:${E};color:${Ee};fill:currentcolor;grid-row:1;padding:${ne} ${et};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${O};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${lt};border-radius:${pe};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${It};border-radius:${pe};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${It}}}:host([aria-selected='true'][disabled])::after{background-color:${B}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${B};color:${B};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Fe};box-shadow:0 0 0 3px ${ue};outline:1px solid ${ai}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`,kb=Ur.compose({name:fb,template:yb,styles:xb});kb.define(u.registry);const wb={subtle:"subtle",transparent:"transparent"},No=Ce,Cb=`${u.prefix}-tablist`;var Sb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Ao=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ib(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sb(e,t,r),r};class io extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=No.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??No.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??No.horizontal,_t(this.elementInternals,e,t,No)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Wr(i))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const i=this.tabs.some(s=>!!s.querySelector("[slot='start']")),r=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ke("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const c=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",c),s.setAttribute("aria-selected",c.toString()),s.toggleAttribute("data-hasIndent",i&&this.orientation===No.vertical),e){const h=s.getAttribute("aria-controls")??"",d=r.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Wr(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const i=this.getRootNode(),r=e?i.getElementById(e):null,n=i.getElementById(t);if(!Wr(n)||!this.contains(n))return;if(r){r.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(r);c&&(c.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),xo(this,()=>{this.setTabs()},{shallow:!0})}}Ao([a({mode:"boolean"})],io.prototype,"disabled",2),Ao([a],io.prototype,"orientation",2),Ao([a],io.prototype,"activeid",2),Ao([f],io.prototype,"slottedTabs",2),Ao([f],io.prototype,"tabs",2);var Pb=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,ya=(o,e,t,i)=>{for(var r=i>1?void 0:i?zb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Pb(e,t,r),r};class Gr extends io{constructor(){super(...arguments),this.appearance=wb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Ni(()=>this.tabs?.filter(i=>(i.getAttribute("aria-selected")==="true"||!i.disabled)&&!i.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Bi(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}ya([a],Gr.prototype,"appearance",2),ya([a],Gr.prototype,"size",2);const Tb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${X("slottedTabs")}></slot></template>`,_b=g`${w("flex")} :host{--tabPaddingInline:${et};--tabPaddingBlock:${ne};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ee};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${yo};--tabPaddingInline:${ke}}:host([size='large']){--tabPaddingBlock:${xr};--tabPaddingInline:${et}}:host([orientation='vertical']){--tabPaddingBlock:${se};--tabIndicatorInsetBlock:${se};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${gi};--tabIndicatorInsetBlock:${yo}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${se};--tabIndicatorInsetBlock:${fi}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Pe};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Pe};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Pe};border-radius:${pe};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:${B}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Pe};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Pe};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${E};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${ge};line-height:${xe}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${B}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${B}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${B}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${B}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ri};color:${is};fill:${Al}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${bo};fill:${bo};color:${O}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${lt};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${xd};transition-timing-function:${Rs};z-index:3;border-radius:${pe};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Pe}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Pe};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${B}}}`,Ob=Gr.compose({name:Cb,template:Tb,styles:_b});Ob.define(u.registry);const Bb={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Mi={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Nb=`${u.prefix}-textarea`,Ab=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var Eb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Eb(e,t,r),r};class U extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],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=Mi.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){A.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Ab),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(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&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){_t(this.elementInternals,e,t,Mi,"resize-"),$(this.elementInternals,"resize",Xs(Mi,t)&&t!==Mi.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(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl()})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(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.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.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")}}U.formAssociated=!0,oe([f],U.prototype,"controlEl",2),oe([f],U.prototype,"defaultSlottedNodes",2),oe([f],U.prototype,"labelSlottedNodes",2),oe([a],U.prototype,"autocomplete",2),oe([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),oe([a({attribute:"dirname"})],U.prototype,"dirName",2),oe([a({mode:"boolean"})],U.prototype,"disabled",2),oe([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),oe([a({attribute:"form"})],U.prototype,"initialForm",2),oe([a({attribute:"maxlength",converter:ie})],U.prototype,"maxLength",2),oe([a({attribute:"minlength",converter:ie})],U.prototype,"minLength",2),oe([a],U.prototype,"name",2),oe([a],U.prototype,"placeholder",2),oe([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),oe([a({mode:"boolean"})],U.prototype,"required",2),oe([a({mode:"fromView"})],U.prototype,"resize",2),oe([a({mode:"boolean"})],U.prototype,"spellcheck",2);var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Db(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mb(e,t,r),r};class Di extends U{constructor(){super(...arguments),this.appearance=Bb.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Xr([a({mode:"fromView"})],Di.prototype,"appearance",2),Xr([a({mode:"boolean"})],Di.prototype,"block",2),Xr([a],Di.prototype,"size",2);const Lb=g`${w("inline-block")} :host{--font-size:${E};--line-height:${L};--padding-inline:${et};--padding-block:${yo};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${z};--control-padding-inline:${R};--color:${O};--background-color:${P};--border-color:${Ue};--border-block-end-color:${We};--placeholder-color:${cr};--focus-indicator-color:${lt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${F};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${It};--border-block-end-color:${Ct}}:host(:active){--border-color:${mo};--border-block-end-color:${St}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${D};--line-height:${q};--min-block-size:40px;--padding-block:${Rt};--padding-inline:${ke};--control-padding-inline:${R}}:host([size='large']){--font-size:${ge};--line-height:${xe};--min-block-size:64px;--padding-block:${se};--padding-inline:${ne};--control-padding-inline:${ke}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${go};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${br}}:host(${nu}){--border-color:${pr};--border-block-end-color:${pr}}:host(:disabled){--color:${B};--background-color:${he};--border-color:${ye};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${B};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:${S};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([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${zt};transition-duration:${kr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${mi};transition-delay:${Tt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Rt};padding-inline-end:${re}}: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([auto-resize]) .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:${kt};background-color:${ss}}@media (forced-colors:active){: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 Vb(){return b`<template><label ${_("labelEl")} for=control part=label><slot name=label ${X("labelSlottedNodes")}></slot></label><div class=root part=root ${_("rootEl")}><textarea ${_("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 ${X("defaultSlottedNodes")}></slot></div></template>`}const Hb=Vb(),Rb=Di.compose({name:Nb,template:Hb,styles:Lb,shadowOptions:{delegatesFocus:!0}});Rb.define(u.registry);const jb={email:"email",password:"password",tel:"tel",text:"text",url:"url"},qb=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Wb=`${u.prefix}-text-input`;var Ub=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,M=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ub(e,t,r),r};class N extends k{constructor(){super(...arguments),this.type=jb.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){A.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(i=>i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE&&!!i.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){A.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.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 e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>qb.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,i){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}N.formAssociated=!0,M([a],N.prototype,"autocomplete",2),M([a({mode:"boolean"})],N.prototype,"autofocus",2),M([a({attribute:"current-value"})],N.prototype,"currentValue",2),M([f],N.prototype,"defaultSlottedNodes",2),M([a],N.prototype,"dirname",2),M([a({mode:"boolean"})],N.prototype,"disabled",2),M([a({attribute:"form"})],N.prototype,"formAttribute",2),M([a({attribute:"value",mode:"fromView"})],N.prototype,"initialValue",2),M([a],N.prototype,"list",2),M([a({converter:ie})],N.prototype,"maxlength",2),M([a({converter:ie})],N.prototype,"minlength",2),M([a({mode:"boolean"})],N.prototype,"multiple",2),M([a],N.prototype,"name",2),M([a],N.prototype,"pattern",2),M([a],N.prototype,"placeholder",2),M([a({attribute:"readonly",mode:"boolean"})],N.prototype,"readOnly",2),M([a({mode:"boolean"})],N.prototype,"required",2),M([a({converter:ie})],N.prototype,"size",2),M([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],N.prototype,"spellcheck",2),M([a],N.prototype,"type",2),M([f],N.prototype,"control",2),M([f],N.prototype,"controlLabel",2);var Xb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Xb(e,t,r),r};class Li extends N{}xa([a],Li.prototype,"appearance",2),xa([a({attribute:"control-size"})],Li.prototype,"controlSize",2),st(Li,rt);const Yb=g`${w("block")} :host{font-family:${v};font-size:${E};font-weight:${F};line-height:${L};max-width:400px}.label{display:flex;color:${O};padding-bottom:${Rt};flex-shrink:0;padding-inline-end:${re}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${P};border:${z} solid ${Ue};border-bottom-color:${We};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${et};position:relative;width:100%}:has(.control:user-invalid){border-color:${pr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${lt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${kr};transition-delay:${zt}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${S};background:${he};font-family:${v};font-weight:${F};font-size:${E};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${cr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Ht}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${re}}:host(:hover) .root{border-color:${It};border-bottom-color:${Ct}}:host(:active) .root{border-color:${mo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${mi};transition-delay:${Tt}}:host(:focus-within:active) .root:after{border-bottom-color:${ms}}:host([appearance='outline']:focus-within) .root{border:${z} solid ${Ue}}:host(:focus-within) .control{color:${O}}:host([disabled]) .root{background:${he};border:${z} solid ${ye}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${B}}::selection{color:${kt};background-color:${ss}}:host([control-size='small']) .control{font-size:${D};font-weight:${F};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${ke}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ge}}:host([control-size='large']) .control{font-size:${ge};font-weight:${F};line-height:${xe}}:host([control-size='large']) .root{height:40px;gap:${Me};padding:0 ${ne}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ci}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${z} solid ${We}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${St}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${St}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${ye}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${z} solid ${K};box-shadow:${br}}:host([appearance='filled-lighter']) .root{background:${P}}:host([appearance='filled-darker']) .root{background:${go}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${ur}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${ur};background:${go}}`;function Jb(o={}){return b`<template @focusin=${(e,t)=>e.focusinHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${_("controlLabel")}><slot ${X("defaultSlottedNodes")}></slot></label><div class=root part=root>${qe(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} ?autofocus=${e=>e.autofocus} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${_("control")}> ${nt(o)}</div></template>`}const Qb=Jb(),Zb=Li.compose({name:Wb,template:Qb,styles:Yb,shadowOptions:{delegatesFocus:!0}});Zb.define(u.registry);const em=`${u.prefix}-text`;var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Je=(o,e,t,i)=>{for(var r=i>1?void 0:i?om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&tm(e,t,r),r};class Le extends k{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}}Je([a({mode:"boolean"})],Le.prototype,"nowrap",2),Je([a({mode:"boolean"})],Le.prototype,"truncate",2),Je([a({mode:"boolean"})],Le.prototype,"italic",2),Je([a({mode:"boolean"})],Le.prototype,"underline",2),Je([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Je([a({mode:"boolean"})],Le.prototype,"block",2),Je([a],Le.prototype,"size",2),Je([a],Le.prototype,"font",2),Je([a],Le.prototype,"weight",2),Je([a],Le.prototype,"align",2);const im=g`${w("inline")} :host{font-family:${v};font-size:${E};line-height:${L};font-weight:${F};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${$o};line-height:${hi}}:host([size='200']){font-size:${D};line-height:${q}}:host([size='400']){font-size:${ge};line-height:${xe}}:host([size='500']){font-size:${Ht};line-height:${ui}}:host([size='600']){font-size:${ci};line-height:${Es}}:host([size='700']){font-size:${Os};line-height:${Fs}}:host([size='800']){font-size:${Bs};line-height:${Ms}}:host([size='900']){font-size:${Ns};line-height:${Ds}}:host([size='1000']){font-size:${As};line-height:${Ls}}:host([font='monospace']){font-family:${ud}}:host([font='numeric']){font-family:${pd}}:host([weight='medium']){font-weight:${gd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${di}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,rm=b`<slot></slot>`,nm=Le.compose({name:em,template:rm,styles:im});nm.define(u.registry);const sm=`${u.prefix}-toggle-button`;var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?lm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&am(e,t,r),r};class Kr extends tt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}ka([a({mode:"boolean"})],Kr.prototype,"pressed",2),ka([a({mode:"boolean"})],Kr.prototype,"mixed",2);const cm=g`${wi} :host(${V}){border-color:${Ue};background-color:${ns};color:${O};border-width:${z}}:host(${V}:hover){border-color:${It};background-color:${ii}}:host(${V}:active){border-color:${mo};background-color:${dr}}:host(${V}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${V}[appearance='primary']){background-color:${Wl};color:${Ze}}:host(${V}[appearance='primary']:hover){background-color:${hs}}:host(${V}[appearance='primary']:active){background-color:${us}}:host(${V}[appearance='subtle']){border-color:transparent;background-color:${ls};color:${Zo}}:host(${V}[appearance='subtle']:hover){background-color:${ri};color:${Mt}}:host(${V}[appearance='subtle']:active){background-color:${bo};color:${Dt}}:host(${V}[appearance='outline']),:host(${V}[appearance='transparent']){background-color:${cs}}:host(${V}[appearance='outline']:hover),:host(${V}[appearance='transparent']:hover){background-color:${ni}}:host(${V}[appearance='outline']:active),:host(${V}[appearance='transparent']:active){background-color:${si}}:host(${V}[appearance='transparent']){border-color:transparent;color:${Cl}}:host(${V}[appearance='transparent']:hover){color:${ei}}:host(${V}[appearance='transparent']:active){color:${ti}}@media (forced-colors:active){:host(${V}),:host( ${V}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem;color:SelectedItemText}}`,dm=zr(),hm=Kr.compose({name:sm,template:dm,styles:cm});hm.define(u.registry);const Oe={"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"},um=`${u.prefix}-tooltip`;var pm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,Vi=(o,e,t,i)=>{for(var r=i>1?void 0:i?gm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&pm(e,t,r),r};class Eo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ke("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.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${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),xi){Gd||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}A.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(i=>i!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(xi){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,i]=this.positioning?.split("-")??[];i||((t==="above"||t==="below")&&(i="centerX"),(t==="before"||t==="after")&&(i="centerY"));const r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=r[t]??r.above,s={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%;"},c=s[i]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
21
|
+
>${ma}</svg>
|
|
22
|
+
`;function qf(){return b`<div ${_("display")} class=display aria-hidden=true></div><slot name=icon ${_("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></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 Wf=qf(),Uf=g`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${cc};--_icon-color-empty:${Ts};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Mi(Rf)});--_mask-image-outlined:url(${Mi(jf)});--_mask-position-x:left;align-items:center;color:${O};font-family:${v};font-size:${M};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${A};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${O};--_icon-color-empty:${bo}}:host([color='brand']){--_icon-color-value:${ii};--_icon-color-empty:${fs}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${R});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${R}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${re};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${R}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ke}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${re}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${R}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ke}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Gf=Di.compose({name:Ff,template:Wf,styles:Uf});Gf.define(u.registry);const Xf=we,Kf={singleValue:"single-value"},Yf=`${u.prefix}-slider`;function va(o,e,t){return Math.min(Math.max(t,o),e)}const qr={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function $a(o,e,t,i){let r=va(0,1,(o-e)/(t-e));return i===pt.rtl&&(r=1-r),r}var Jf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,te=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Jf(e,t,r),r};class W extends k{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=Kf.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===we.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===we.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Xf.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=g`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}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(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=va(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":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 e=parseFloat(this.min);if(!Number.isNaN(e))return e}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 e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??we.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=da(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),tt(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==pt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==pt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==pt.rtl&&this.orientation!==we.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==pt.rtl&&this.orientation!==we.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=$a(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===we.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}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(e){this.setupTrackConstraints();const t=$a(e,this.orientation===we.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===we.vertical?this.trackHeight:this.trackWidth,this.orientation===we.vertical?void 0:this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){B.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,te([a],W.prototype,"size",2),te([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),te([f],W.prototype,"direction",2),te([f],W.prototype,"isDragging",2),te([f],W.prototype,"position",2),te([f],W.prototype,"trackWidth",2),te([f],W.prototype,"trackMinWidth",2),te([f],W.prototype,"trackHeight",2),te([f],W.prototype,"trackLeft",2),te([f],W.prototype,"trackMinHeight",2),te([f],W.prototype,"valueTextFormatter",2),te([a({mode:"boolean"})],W.prototype,"disabled",2),te([a({converter:qr})],W.prototype,"min",2),te([a({converter:qr})],W.prototype,"max",2),te([a({converter:qr})],W.prototype,"step",2),te([a],W.prototype,"orientation",2),te([a],W.prototype,"mode",2);const Zf=g`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${wt};--track-color:${We};--slider-direction:90deg;--border-radius:${S};--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:${Vt}}:host(:active){--rail-color:${Ht}}:host(:disabled){--rail-color:${N};--track-color:${lt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ee}}:host([orientation='vertical']){--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 ${he};outline:1px solid ${li}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );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([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .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( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${P} calc(var(--step-rate) - 1px),${P} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .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:${ue};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${P} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ue};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.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 eb(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${_("track")} part=track-container class=track style=${e=>e.position}></div><div ${_("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ce(o.thumb)}</slot></div></template>`}const tb=eb({thumb:'<div class="thumb"></div>'}),ob=W.compose({name:Yf,template:tb,styles:Zf});ob.define(u.registry);const ib=`${u.prefix}-spinner`;class rb extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var nb=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,ya=(o,e,t,i)=>{for(var r=i>1?void 0:i?sb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&nb(e,t,r),r};class Wr extends rb{}ya([a],Wr.prototype,"size",2),ya([a],Wr.prototype,"appearance",2);const ab=g`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Ie};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ge};--size:20px}:host([size='extra-small']){--indicatorSize:${ge};--size:24px}:host([size='small']){--indicatorSize:${ge};--size:28px}:host([size='large']){--indicatorSize:${Ie};--size:36px}:host([size='extra-large']){--indicatorSize:${Ie};--size:40px}:host([size='huge']){--indicatorSize:${yr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${xi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ms};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${bs};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Xl}}.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)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,lb=b`<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>`,cb=Wr.compose({name:ib,template:lb,styles:ab});cb.define(u.registry);const db=`${u.prefix}-switch`;class hb extends Me{constructor(){super(),this.elementInternals.role="switch"}}function ub(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${ce(o.switch)}</slot></template>`}const pb=ub({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),gb=g`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${de};border:1px solid ${We};border-radius:${ue}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${St}}:host(:disabled),:host([readonly]){border:1px solid ${ye};background-color:none;pointer:default}:host(${y}){background:${wt};border-color:${wt}}:host(${y}:hover){background:${Vt};border-color:${Vt}}:host(${y}:active){background:${Ht};border-color:${Ht}}:host(${y}:disabled){background:${lt};border-color:${ye}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${$i};transition-timing-function:${xi};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${kt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Ml}}:host(${y}:active) .checked-indicator{background:${Dl}}:host(:hover) .checked-indicator{background-color:${Il}}:host(:active) .checked-indicator{background-color:${Pl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${N}}:host(${y}:disabled) .checked-indicator{background:${N}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${ge} solid ${K};outline-offset:1px;box-shadow:${gi},0 0 0 2px ${he}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`,fb=hb.compose({name:db,template:pb,styles:gb});fb.define(u.registry);function Ur(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bb=`${u.prefix}-tab`;var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,$b=(o,e,t,i)=>{for(var r=i>1?void 0:i?vb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&mb(e,t,r),r};class Gr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=g`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),tt(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}$b([a({mode:"boolean"})],Gr.prototype,"disabled",2),at(Gr,nt);function yb(o={}){return b`<template slot=tab role=tab>${qe(o)} <span class=tab-content><slot></slot></span>${st(o)}</template>`}const xb=yb({}),kb=g`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${v};font-size:${A};color:${Ae};fill:currentcolor;grid-row:1;padding:${ne} ${et};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${O};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${ct};border-radius:${ue};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${It};border-radius:${ue};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${It}}}:host([aria-selected='true'][disabled])::after{background-color:${N}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${N};color:${N};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ee};box-shadow:0 0 0 3px ${he};outline:1px solid ${li}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`,wb=Gr.compose({name:bb,template:xb,styles:kb});wb.define(u.registry);const Cb={subtle:"subtle",transparent:"transparent"},Ao=we,Sb=`${u.prefix}-tablist`;var Ib=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,Eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ib(e,t,r),r};class ro extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Ao.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Ao.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Ao.horizontal,_t(this.elementInternals,e,t,Ao)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Ur(i))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const i=this.tabs.some(s=>!!s.querySelector("[slot='start']")),r=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ke("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const c=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",c),s.setAttribute("aria-selected",c.toString()),s.toggleAttribute("data-hasIndent",i&&this.orientation===Ao.vertical),e){const h=s.getAttribute("aria-controls")??"",d=r.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Ur(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const i=this.getRootNode(),r=e?i.getElementById(e):null,n=i.getElementById(t);if(!Ur(n)||!this.contains(n))return;if(r){r.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(r);c&&(c.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),ko(this,()=>{this.setTabs()},{shallow:!0})}}Eo([a({mode:"boolean"})],ro.prototype,"disabled",2),Eo([a],ro.prototype,"orientation",2),Eo([a],ro.prototype,"activeid",2),Eo([f],ro.prototype,"slottedTabs",2),Eo([f],ro.prototype,"tabs",2);var zb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Tb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&zb(e,t,r),r};class Xr extends ro{constructor(){super(...arguments),this.appearance=Cb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Ei(()=>this.tabs?.filter(i=>(i.getAttribute("aria-selected")==="true"||!i.disabled)&&!i.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}xa([a],Xr.prototype,"appearance",2),xa([a],Xr.prototype,"size",2);const _b=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${X("slottedTabs")}></slot></template>`,Ob=g`${w("flex")} :host{--tabPaddingInline:${et};--tabPaddingBlock:${ne};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ae};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${xo};--tabPaddingInline:${ke}}:host([size='large']){--tabPaddingBlock:${kr};--tabPaddingInline:${et}}:host([orientation='vertical']){--tabPaddingBlock:${se};--tabIndicatorInsetBlock:${se};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${bi};--tabIndicatorInsetBlock:${xo}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${se};--tabIndicatorInsetBlock:${mi}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Ie};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Ie};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Ie};border-radius:${ue};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:${N}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Ie};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Ie};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${A};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${pe};line-height:${xe}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${N}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${N}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${N}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${N}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ni};color:${rs};fill:${El}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${mo};fill:${mo};color:${O}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${ct};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${kd};transition-timing-function:${js};z-index:3;border-radius:${ue};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Ie}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Ie};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${N}}}`,Bb=Xr.compose({name:Sb,template:_b,styles:Ob});Bb.define(u.registry);const Nb={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Li={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Ab=`${u.prefix}-textarea`,Eb=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var Fb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Fb(e,t,r),r};class U extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],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=Li.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){B.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Eb),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(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&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){_t(this.elementInternals,e,t,Li,"resize-"),$(this.elementInternals,"resize",Ks(Li,t)&&t!==Li.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(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),tt(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(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.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.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")}}U.formAssociated=!0,oe([f],U.prototype,"controlEl",2),oe([f],U.prototype,"defaultSlottedNodes",2),oe([f],U.prototype,"labelSlottedNodes",2),oe([a],U.prototype,"autocomplete",2),oe([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),oe([a({attribute:"dirname"})],U.prototype,"dirName",2),oe([a({mode:"boolean"})],U.prototype,"disabled",2),oe([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),oe([a({attribute:"form"})],U.prototype,"initialForm",2),oe([a({attribute:"maxlength",converter:ie})],U.prototype,"maxLength",2),oe([a({attribute:"minlength",converter:ie})],U.prototype,"minLength",2),oe([a],U.prototype,"name",2),oe([a],U.prototype,"placeholder",2),oe([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),oe([a({mode:"boolean"})],U.prototype,"required",2),oe([a({mode:"fromView"})],U.prototype,"resize",2),oe([a({mode:"boolean"})],U.prototype,"spellcheck",2);var Db=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,Kr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Db(e,t,r),r};class Vi extends U{constructor(){super(...arguments),this.appearance=Nb.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Kr([a({mode:"fromView"})],Vi.prototype,"appearance",2),Kr([a({mode:"boolean"})],Vi.prototype,"block",2),Kr([a],Vi.prototype,"size",2);const Vb=g`${w("inline-block")} :host{--font-size:${A};--line-height:${D};--padding-inline:${et};--padding-block:${xo};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${z};--control-padding-inline:${R};--color:${O};--background-color:${P};--border-color:${Ue};--border-block-end-color:${We};--placeholder-color:${hr};--focus-indicator-color:${ct};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${It};--border-block-end-color:${Ct}}:host(:active){--border-color:${vo};--border-block-end-color:${St}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${M};--line-height:${q};--min-block-size:40px;--padding-block:${jt};--padding-inline:${ke};--control-padding-inline:${R}}:host([size='large']){--font-size:${pe};--line-height:${xe};--min-block-size:64px;--padding-block:${se};--padding-inline:${ne};--control-padding-inline:${ke}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${fo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${vr}}:host(${su}){--border-color:${fr};--border-block-end-color:${fr}}:host(:disabled){--color:${N};--background-color:${de};--border-color:${ye};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${N};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:${S};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([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${zt};transition-duration:${wr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${Tt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${jt};padding-inline-end:${re}}: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([auto-resize]) .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:${kt};background-color:${as}}@media (forced-colors:active){: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 Hb(){return b`<template><label ${_("labelEl")} for=control part=label><slot name=label ${X("labelSlottedNodes")}></slot></label><div class=root part=root ${_("rootEl")}><textarea ${_("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 ${X("defaultSlottedNodes")}></slot></div></template>`}const Rb=Hb(),jb=Vi.compose({name:Ab,template:Rb,styles:Vb,shadowOptions:{delegatesFocus:!0}});jb.define(u.registry);const qb={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Wb=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Ub=`${u.prefix}-text-input`;var Gb=Object.defineProperty,Xb=Object.getOwnPropertyDescriptor,V=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Gb(e,t,r),r};class F extends k{constructor(){super(...arguments),this.type=qb.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){B.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(i=>i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE&&!!i.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){B.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),tt(this)}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 e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>Wb.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,i){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}F.formAssociated=!0,V([a],F.prototype,"autocomplete",2),V([a({attribute:"current-value"})],F.prototype,"currentValue",2),V([f],F.prototype,"defaultSlottedNodes",2),V([a],F.prototype,"dirname",2),V([a({mode:"boolean"})],F.prototype,"disabled",2),V([a({attribute:"form"})],F.prototype,"formAttribute",2),V([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),V([a],F.prototype,"list",2),V([a({converter:ie})],F.prototype,"maxlength",2),V([a({converter:ie})],F.prototype,"minlength",2),V([a({mode:"boolean"})],F.prototype,"multiple",2),V([a],F.prototype,"name",2),V([a],F.prototype,"pattern",2),V([a],F.prototype,"placeholder",2),V([a({attribute:"readonly",mode:"boolean"})],F.prototype,"readOnly",2),V([a({mode:"boolean"})],F.prototype,"required",2),V([a({converter:ie})],F.prototype,"size",2),V([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],F.prototype,"spellcheck",2),V([a],F.prototype,"type",2),V([f],F.prototype,"control",2),V([f],F.prototype,"controlLabel",2);var Kb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Kb(e,t,r),r};class Hi extends F{}ka([a],Hi.prototype,"appearance",2),ka([a({attribute:"control-size"})],Hi.prototype,"controlSize",2),at(Hi,nt);const Jb=g`${w("block")} :host{font-family:${v};font-size:${A};font-weight:${E};line-height:${D};max-width:400px}.label{display:flex;color:${O};padding-bottom:${jt};flex-shrink:0;padding-inline-end:${re}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${P};border:${z} solid ${Ue};border-bottom-color:${We};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${et};position:relative;width:100%}:has(.control:user-invalid){border-color:${fr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${ct};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${wr};transition-delay:${zt}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${S};background:${de};font-family:${v};font-weight:${E};font-size:${A};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Rt}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${re}}:host(:hover) .root{border-color:${It};border-bottom-color:${Ct}}:host(:active) .root{border-color:${vo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${Tt}}:host(:focus-within:active) .root:after{border-bottom-color:${vs}}:host([appearance='outline']:focus-within) .root{border:${z} solid ${Ue}}:host(:focus-within) .control{color:${O}}:host([disabled]) .root{background:${de};border:${z} solid ${ye}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${N}}::selection{color:${kt};background-color:${as}}:host([control-size='small']) .control{font-size:${M};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${ke}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${E};line-height:${xe}}:host([control-size='large']) .root{height:40px;gap:${Fe};padding:0 ${ne}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${di}}:host([appearance='underline']) .root{background:${de};border:0;border-radius:0;border-bottom:${z} solid ${We}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${St}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${St}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${ye}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${z} solid ${K};box-shadow:${vr}}:host([appearance='filled-lighter']) .root{background:${P}}:host([appearance='filled-darker']) .root{background:${fo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${gr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${gr};background:${fo}}`;function Qb(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${_("controlLabel")}><slot ${X("defaultSlottedNodes")}></slot></label><div class=root part=root>${qe(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${_("control")}> ${st(o)}</div></template>`}const Zb=Qb(),em=Hi.compose({name:Ub,template:Zb,styles:Jb,shadowOptions:{delegatesFocus:!0}});em.define(u.registry);const tm=`${u.prefix}-text`;var om=Object.defineProperty,im=Object.getOwnPropertyDescriptor,Je=(o,e,t,i)=>{for(var r=i>1?void 0:i?im(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&om(e,t,r),r};class Le extends k{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}}Je([a({mode:"boolean"})],Le.prototype,"nowrap",2),Je([a({mode:"boolean"})],Le.prototype,"truncate",2),Je([a({mode:"boolean"})],Le.prototype,"italic",2),Je([a({mode:"boolean"})],Le.prototype,"underline",2),Je([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Je([a({mode:"boolean"})],Le.prototype,"block",2),Je([a],Le.prototype,"size",2),Je([a],Le.prototype,"font",2),Je([a],Le.prototype,"weight",2),Je([a],Le.prototype,"align",2);const rm=g`${w("inline")} :host{font-family:${v};font-size:${A};line-height:${D};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${yo};line-height:${ui}}:host([size='200']){font-size:${M};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${xe}}:host([size='500']){font-size:${Rt};line-height:${pi}}:host([size='600']){font-size:${di};line-height:${Fs}}:host([size='700']){font-size:${Bs};line-height:${Ms}}:host([size='800']){font-size:${Ns};line-height:${Ds}}:host([size='900']){font-size:${As};line-height:${Ls}}:host([size='1000']){font-size:${Es};line-height:${Vs}}:host([font='monospace']){font-family:${pd}}:host([font='numeric']){font-family:${gd}}:host([weight='medium']){font-weight:${fd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${hi}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,nm=b`<slot></slot>`,sm=Le.compose({name:tm,template:nm,styles:rm});sm.define(u.registry);const am=`${u.prefix}-toggle-button`;var lm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,wa=(o,e,t,i)=>{for(var r=i>1?void 0:i?cm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&lm(e,t,r),r};class Yr extends ot{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}wa([a({mode:"boolean"})],Yr.prototype,"pressed",2),wa([a({mode:"boolean"})],Yr.prototype,"mixed",2);const dm=g`${Si} :host(${L}){border-color:${Ue};background-color:${ss};color:${O};border-width:${z}}:host(${L}:hover){border-color:${It};background-color:${ri}}:host(${L}:active){border-color:${vo};background-color:${ur}}:host(${L}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${L}[appearance='primary']){background-color:${Ul};color:${Ze}}:host(${L}[appearance='primary']:hover){background-color:${us}}:host(${L}[appearance='primary']:active){background-color:${ps}}:host(${L}[appearance='subtle']){border-color:transparent;background-color:${cs};color:${ei}}:host(${L}[appearance='subtle']:hover){background-color:${ni};color:${Dt}}:host(${L}[appearance='subtle']:active){background-color:${mo};color:${Lt}}:host(${L}[appearance='outline']),:host(${L}[appearance='transparent']){background-color:${ds}}:host(${L}[appearance='outline']:hover),:host(${L}[appearance='transparent']:hover){background-color:${si}}:host(${L}[appearance='outline']:active),:host(${L}[appearance='transparent']:active){background-color:${ai}}:host(${L}[appearance='transparent']){border-color:transparent;color:${Sl}}:host(${L}[appearance='transparent']:hover){color:${ti}}:host(${L}[appearance='transparent']:active){color:${oi}}@media (forced-colors:active){:host(${L}),:host( ${L}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem;color:SelectedItemText}}`,hm=Tr(),um=Yr.compose({name:am,template:hm,styles:dm});um.define(u.registry);const _e={"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"},pm=`${u.prefix}-tooltip`;var gm=Object.defineProperty,fm=Object.getOwnPropertyDescriptor,Ri=(o,e,t,i)=>{for(var r=i>1?void 0:i?fm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&gm(e,t,r),r};class Fo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ke("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.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${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),wi){Xd||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}B.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(i=>i!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(wi){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,i]=this.positioning?.split("-")??[];i||((t==="above"||t==="below")&&(i="centerX"),(t==="before"||t==="after")&&(i="centerY"));const r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=r[t]??r.above,s={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%;"},c=s[i]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
23
23
|
#${this.anchor} {
|
|
24
24
|
anchor-name: ${e};
|
|
25
25
|
}
|
|
@@ -30,18 +30,18 @@ Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ua(C.join(`
|
|
|
30
30
|
${n}
|
|
31
31
|
${c}
|
|
32
32
|
}
|
|
33
|
-
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Vi([a],Eo.prototype,"id",2),Vi([a({converter:ie})],Eo.prototype,"delay",2),Vi([a],Eo.prototype,"positioning",2),Vi([a],Eo.prototype,"anchor",2);const fm=g`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Rt};--inline-offset:${re};background:${P};border-radius:${S};border:1px solid ${K};box-sizing:border-box;color:${O};display:inline-flex;filter:drop-shadow(0 0 2px ${Kl}) drop-shadow(0 4px 8px ${Yl});font-family:${v};font-size:${D};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${et} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks: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:${Oe["above-start"]}}:host([positioning='above']){--position-area:${Oe.above}}:host([positioning='above-end']){--position-area:${Oe["above-end"]}}:host([positioning='below-start']){--position-area:${Oe["below-start"]}}:host([positioning='below']){--position-area:${Oe.below}}:host([positioning='below-end']){--position-area:${Oe["below-end"]}}:host([positioning='before-top']){--position-area:${Oe["before-top"]}}:host([positioning='before']){--position-area:${Oe.before}}:host([positioning='before-bottom']){--position-area:${Oe["before-bottom"]}}:host([positioning='after-top']){--position-area:${Oe["after-top"]}}:host([positioning='after']){--position-area:${Oe.after}}:host([positioning='after-bottom']){--position-area:${Oe["after-bottom"]}}`,bm=b`<template popover aria-hidden=true><slot></slot></template>`,mm=Eo.compose({name:um,template:bm,styles:fm});mm.define(u.registry);const vm=`${u.prefix}-tree`,wa={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Ca={small:"small",medium:"medium"};function Be(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const $m=`${u.prefix}-tree-item`;var ym=Object.defineProperty,xm=Object.getOwnPropertyDescriptor,Yr=(o,e,t,i)=>{for(var r=i>1?void 0:i?xm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ym(e,t,r),r};class Hi extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Be(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Be(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Be(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Be(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Be(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Be(e))}get descendantTreeItems(){const e=[],t=i=>{if(i)for(const r of i)e.push(r),t(r.childTreeItems)};return t(this.childTreeItems),e}}Yr([f],Hi.prototype,"currentSelected",2),Yr([f],Hi.prototype,"defaultSlot",2),Yr([f],Hi.prototype,"childTreeItems",2);var km=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,Sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?wm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&km(e,t,r),r};class Jr extends Hi{constructor(){super(...arguments),this.size=Ca.small,this.appearance=wa.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Ni(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Bi(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Sa([a],Jr.prototype,"size",2),Sa([a],Jr.prototype,"appearance",2);const Cm=g`${w("block")} :host{outline:none}`,Sm=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${_("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Im=Jr.compose({name:vm,template:Sm,styles:Cm});Im.define(u.registry);var Pm=Object.defineProperty,zm=Object.getOwnPropertyDescriptor,ro=(o,e,t,i)=>{for(var r=i>1?void 0:i?zm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Pm(e,t,r),r};class Nt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Be(this.parentElement)&&(this.slot||(this.slot="item"))}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const i=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,r=>Be(r)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;i.nextNode();){const r=i.currentNode;t?r.removeAttribute("focusgroup"):(r.selected&&(r.selected=!1),r.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=g`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Be(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Be(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Be(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Be(e))}}ro([f],Nt.prototype,"itemSlot",2),ro([a({mode:"boolean"})],Nt.prototype,"expanded",2),ro([a({mode:"boolean"})],Nt.prototype,"selected",2),ro([a({mode:"boolean"})],Nt.prototype,"empty",2),ro([a({attribute:"data-indent"})],Nt.prototype,"dataIndent",2),ro([f],Nt.prototype,"childTreeItems",2);var Tm=Object.defineProperty,_m=Object.getOwnPropertyDescriptor,Ia=(o,e,t,i)=>{for(var r=i>1?void 0:i?_m(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Tm(e,t,r),r};class Qr extends Nt{constructor(){super(...arguments),this.size=Ca.small,this.appearance=wa.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ia([a],Qr.prototype,"size",2),Ia([a],Qr.prototype,"appearance",2);const Om=g`${w("block")} :host{outline:none;font-size:${E};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${yr} ${yr} ${yr} ${gi} ${ue} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${yd};padding-inline-start:calc(var(--indent) * ${$r});padding-inline-end:${se};border-radius:${S};background-color:${as};color:${Ee};gap:${re}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ue}}}.content{display:flex;align-items:center;gap:${re}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${$r};height:${Pt};transition:transform ${bi} ${js};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${ri};color:${Mt}}.positioning-region:active{background-color:${bo};color:${Dt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${R}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${ls};color:${Zo}}:host([selected]) .content,:host([selected]) .chevron{color:${Pl}}:host([size='small']) .positioning-region{height:${Pt};padding-inline-start:calc(var(--indent) * ${ne})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Rl}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${jl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${ql};color:${Zo}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${ni}}:host([appearance='transparent']) .positioning-region:active{background-color:${si}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${cs};color:${Zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Bm=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Nm=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Bm}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${_("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Am=Qr.compose({name:$m,template:Nm,styles:Om});Am.define(u.registry);const Em="adoptedStyleSheets"in document,Fm="CSSScopeRule"in window,Zr=new Map,en=new Map,Fo=new Map,tn=new Map,Mo=new CSSStyleSheet;function Mm(o,e=document){if(!(!e||!Dm(e))){if(!Em||e instanceof HTMLElement&&!e.shadowRoot&&!Fm){const t=e===document?document.documentElement:e;jm(o,t);return}[document,document.documentElement,document.body].includes(e)?Lm(o):Vm(o,e)}}function on(o){if(!Zr.has(o)){const e=[];for(const[t,i]of Object.entries(o))e.push(`--${t}:${i.toString()};`);Zr.set(o,e.join(""))}return Zr.get(o)}function Dm(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Lm(o){if(o===null){document.adoptedStyleSheets.includes(Mo)&&Mo.replaceSync("");return}Mo.replaceSync(`
|
|
33
|
+
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Ri([a],Fo.prototype,"id",2),Ri([a({converter:ie})],Fo.prototype,"delay",2),Ri([a],Fo.prototype,"positioning",2),Ri([a],Fo.prototype,"anchor",2);const bm=g`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${jt};--inline-offset:${re};background:${P};border-radius:${S};border:1px solid ${K};box-sizing:border-box;color:${O};display:inline-flex;filter:drop-shadow(0 0 2px ${Yl}) drop-shadow(0 4px 8px ${Jl});font-family:${v};font-size:${M};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${et} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks: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:${_e["above-start"]}}:host([positioning='above']){--position-area:${_e.above}}:host([positioning='above-end']){--position-area:${_e["above-end"]}}:host([positioning='below-start']){--position-area:${_e["below-start"]}}:host([positioning='below']){--position-area:${_e.below}}:host([positioning='below-end']){--position-area:${_e["below-end"]}}:host([positioning='before-top']){--position-area:${_e["before-top"]}}:host([positioning='before']){--position-area:${_e.before}}:host([positioning='before-bottom']){--position-area:${_e["before-bottom"]}}:host([positioning='after-top']){--position-area:${_e["after-top"]}}:host([positioning='after']){--position-area:${_e.after}}:host([positioning='after-bottom']){--position-area:${_e["after-bottom"]}}`,mm=b`<template popover aria-hidden=true><slot></slot></template>`,vm=Fo.compose({name:pm,template:mm,styles:bm});vm.define(u.registry);const $m=`${u.prefix}-tree`,Ca={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Sa={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ym=`${u.prefix}-tree-item`;var xm=Object.defineProperty,km=Object.getOwnPropertyDescriptor,Jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&xm(e,t,r),r};class ji extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=i=>{if(i)for(const r of i)e.push(r),t(r.childTreeItems)};return t(this.childTreeItems),e}}Jr([f],ji.prototype,"currentSelected",2),Jr([f],ji.prototype,"defaultSlot",2),Jr([f],ji.prototype,"childTreeItems",2);var wm=Object.defineProperty,Cm=Object.getOwnPropertyDescriptor,Ia=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&wm(e,t,r),r};class Qr extends ji{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Ei(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Ia([a],Qr.prototype,"size",2),Ia([a],Qr.prototype,"appearance",2);const Sm=g`${w("block")} :host{outline:none}`,Im=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${_("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Pm=Qr.compose({name:$m,template:Im,styles:Sm});Pm.define(u.registry);var zm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,no=(o,e,t,i)=>{for(var r=i>1?void 0:i?Tm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&zm(e,t,r),r};class At extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Oe(this.parentElement)&&(this.slot||(this.slot="item")),tt(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const i=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,r=>Oe(r)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;i.nextNode();){const r=i.currentNode;t?r.removeAttribute("focusgroup"):(r.selected&&(r.selected=!1),r.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=g`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}no([f],At.prototype,"itemSlot",2),no([a({mode:"boolean"})],At.prototype,"expanded",2),no([a({mode:"boolean"})],At.prototype,"selected",2),no([a({mode:"boolean"})],At.prototype,"empty",2),no([a({attribute:"data-indent"})],At.prototype,"dataIndent",2),no([f],At.prototype,"childTreeItems",2);var _m=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&_m(e,t,r),r};class Zr extends At{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Pa([a],Zr.prototype,"size",2),Pa([a],Zr.prototype,"appearance",2);const Bm=g`${w("block")} :host{outline:none;font-size:${A};line-height:${D}}:host(:focus-visible) .positioning-region{box-shadow:${xr} ${xr} ${xr} ${bi} ${he} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${xd};padding-inline-start:calc(var(--indent) * ${fi});padding-inline-end:${se};border-radius:${S};background-color:${ls};color:${Ae};gap:${re}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${he}}}.content{display:flex;align-items:center;gap:${re}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${fi};height:${Pt};transition:transform ${vi} ${qs};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${ni};color:${Dt}}.positioning-region:active{background-color:${mo};color:${Lt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${R}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${cs};color:${ei}}:host([selected]) .content,:host([selected]) .chevron{color:${zl}}:host([size='small']) .positioning-region{height:${Pt};padding-inline-start:calc(var(--indent) * ${ne})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${jl}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${ql}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Wl};color:${ei}}:host([appearance='transparent']) .positioning-region{background-color:${de}}:host([appearance='transparent']) .positioning-region:hover{background-color:${si}}:host([appearance='transparent']) .positioning-region:active{background-color:${ai}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${ds};color:${ei}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Nm=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Am=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Nm}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${_("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Em=Zr.compose({name:ym,template:Am,styles:Bm});Em.define(u.registry);const Fm="adoptedStyleSheets"in document,Mm="CSSScopeRule"in window,en=new Map,tn=new Map,Mo=new Map,on=new Map,Do=new CSSStyleSheet;function Dm(o,e=document){if(!(!e||!Lm(e))){if(!Fm||e instanceof HTMLElement&&!e.shadowRoot&&!Mm){const t=e===document?document.documentElement:e;qm(o,t);return}[document,document.documentElement,document.body].includes(e)?Vm(o):Hm(o,e)}}function rn(o){if(!en.has(o)){const e=[];for(const[t,i]of Object.entries(o))e.push(`--${t}:${i.toString()};`);en.set(o,e.join(""))}return en.get(o)}function Lm(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Vm(o){if(o===null){document.adoptedStyleSheets.includes(Do)&&Do.replaceSync("");return}Do.replaceSync(`
|
|
34
34
|
html {
|
|
35
|
-
${
|
|
35
|
+
${rn(o)}
|
|
36
36
|
}
|
|
37
|
-
`),document.adoptedStyleSheets.includes(
|
|
37
|
+
`),document.adoptedStyleSheets.includes(Do)||document.adoptedStyleSheets.push(Do)}function Hm(o,e){if(o===null){e.shadowRoot&&Mo.has(e)?Mo.get(e).replaceSync(""):(delete e.dataset.fluentTheme,za(e));return}e.shadowRoot?Rm(e).replaceSync(`
|
|
38
38
|
:host {
|
|
39
|
-
${
|
|
39
|
+
${rn(o)}
|
|
40
40
|
}
|
|
41
|
-
`):(e.dataset.fluentTheme=
|
|
41
|
+
`):(e.dataset.fluentTheme=jm(o),za(e))}function Rm(o){if(!Mo.has(o)){const e=new CSSStyleSheet;Mo.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return Mo.get(o)}function jm(o){if(!tn.has(o)){const e=Ke("fluent-theme-"),t=new CSSStyleSheet;tn.set(o,e),t.replaceSync(`
|
|
42
42
|
@scope ([data-fluent-theme="${e}"]) {
|
|
43
43
|
:scope {
|
|
44
|
-
${
|
|
44
|
+
${rn(o)}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
`),document.adoptedStyleSheets.push(t)}return
|
|
47
|
+
`),document.adoptedStyleSheets.push(t)}return tn.get(o)}function qm(o,e){let t;if(o===null){if(!on.has(e))return;t=on.get(e)}else on.set(e,o),t=o;for(const[i,r]of Object.entries(t))o===null?e.style.removeProperty(`--${i}`):e.style.setProperty(`--${i}`,r.toString())}const{userAgent:Wm}=navigator,Um=/\bAppleWebKit\/[\d+\.]+\b/.test(Wm);function za(o){if(!Um)return;const e="visibility",t="hidden",i=o.style.getPropertyValue(e);o.style.setProperty(e,t),B.process(),o.style.setProperty(e,i)}globalThis.Fluent={...globalThis.Fluent,setTheme:Dm};
|