@fluentui/web-components 3.0.0-beta.76 → 3.0.0-beta.78
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 +22 -2
- package/dist/dts/dropdown/define.d.ts +1 -0
- package/dist/dts/dropdown/dropdown.d.ts +492 -0
- package/dist/dts/dropdown/dropdown.definition.d.ts +9 -0
- package/dist/dts/dropdown/dropdown.options.d.ts +53 -0
- package/dist/dts/dropdown/dropdown.styles.d.ts +6 -0
- package/dist/dts/dropdown/dropdown.template.d.ts +38 -0
- package/dist/dts/dropdown/index.d.ts +5 -0
- package/dist/dts/index-rollup.d.ts +3 -0
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/listbox/define.d.ts +1 -0
- package/dist/dts/listbox/index.d.ts +5 -0
- package/dist/dts/listbox/listbox.d.ts +116 -0
- package/dist/dts/listbox/listbox.definition.d.ts +9 -0
- package/dist/dts/listbox/listbox.options.d.ts +10 -0
- package/dist/dts/listbox/listbox.styles.d.ts +6 -0
- package/dist/dts/listbox/listbox.template.d.ts +17 -0
- package/dist/dts/option/define.d.ts +1 -0
- package/dist/dts/option/index.d.ts +5 -0
- package/dist/dts/option/option.d.ts +260 -0
- package/dist/dts/option/option.definition.d.ts +9 -0
- package/dist/dts/option/option.options.d.ts +20 -0
- package/dist/dts/option/option.styles.d.ts +6 -0
- package/dist/dts/option/option.template.d.ts +16 -0
- package/dist/dts/patterns/start-end.d.ts +16 -2
- package/dist/dts/styles/states/index.d.ts +34 -0
- package/dist/dts/utils/element-internals.d.ts +3 -6
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/language.d.ts +9 -0
- package/dist/dts/utils/support.d.ts +15 -0
- package/dist/dts/utils/unique-id.d.ts +9 -0
- package/dist/esm/accordion/accordion.js +2 -3
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +2 -4
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/avatar/avatar.js +11 -12
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/button/button.js +19 -23
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.template.js +1 -1
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +10 -11
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/compound-button/compound-button.template.js +1 -1
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +1 -2
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.template.js +2 -2
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -1
- package/dist/esm/divider/divider.js +4 -5
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/dropdown/define.js +4 -0
- package/dist/esm/dropdown/define.js.map +1 -0
- package/dist/esm/dropdown/dropdown.definition.js +20 -0
- package/dist/esm/dropdown/dropdown.definition.js.map +1 -0
- package/dist/esm/dropdown/dropdown.js +779 -0
- package/dist/esm/dropdown/dropdown.js.map +1 -0
- package/dist/esm/dropdown/dropdown.options.js +43 -0
- package/dist/esm/dropdown/dropdown.options.js.map +1 -0
- package/dist/esm/dropdown/dropdown.styles.js +213 -0
- package/dist/esm/dropdown/dropdown.styles.js.map +1 -0
- package/dist/esm/dropdown/dropdown.template.js +92 -0
- package/dist/esm/dropdown/dropdown.template.js.map +1 -0
- package/dist/esm/dropdown/index.js +6 -0
- package/dist/esm/dropdown/index.js.map +1 -0
- package/dist/esm/field/field.js +3 -4
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/form-associated/form-associated.js +3 -5
- package/dist/esm/form-associated/form-associated.js.map +1 -1
- package/dist/esm/index-rollup.js +3 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/listbox/define.js +4 -0
- package/dist/esm/listbox/define.js.map +1 -0
- package/dist/esm/listbox/index.js +6 -0
- package/dist/esm/listbox/index.js.map +1 -0
- package/dist/esm/listbox/listbox.definition.js +17 -0
- package/dist/esm/listbox/listbox.definition.js.map +1 -0
- package/dist/esm/listbox/listbox.js +175 -0
- package/dist/esm/listbox/listbox.js.map +1 -0
- package/dist/esm/listbox/listbox.options.js +15 -0
- package/dist/esm/listbox/listbox.options.js.map +1 -0
- package/dist/esm/listbox/listbox.styles.js +26 -0
- package/dist/esm/listbox/listbox.styles.js.map +1 -0
- package/dist/esm/listbox/listbox.template.js +33 -0
- package/dist/esm/listbox/listbox.template.js.map +1 -0
- package/dist/esm/menu/menu.js +23 -32
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +9 -14
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +4 -5
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/option/define.js +4 -0
- package/dist/esm/option/define.js.map +1 -0
- package/dist/esm/option/index.js +6 -0
- package/dist/esm/option/index.js.map +1 -0
- package/dist/esm/option/option.definition.js +17 -0
- package/dist/esm/option/option.definition.js.map +1 -0
- package/dist/esm/option/option.js +296 -0
- package/dist/esm/option/option.js.map +1 -0
- package/dist/esm/option/option.options.js +15 -0
- package/dist/esm/option/option.options.js.map +1 -0
- package/dist/esm/option/option.styles.js +127 -0
- package/dist/esm/option/option.styles.js.map +1 -0
- package/dist/esm/option/option.template.js +42 -0
- package/dist/esm/option/option.template.js.map +1 -0
- package/dist/esm/patterns/start-end.js +12 -0
- package/dist/esm/patterns/start-end.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +3 -4
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/radio-group/radio-group.js +27 -38
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/rating-display/rating-display.js +7 -13
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/slider/slider.js +13 -16
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +4 -4
- package/dist/esm/styles/states/index.js +34 -0
- package/dist/esm/styles/states/index.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +4 -0
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/tablist/tablist.js +5 -7
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/tabs/tabs.js +5 -8
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/text-input/text-input.js +13 -15
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/textarea.js +20 -29
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/esm/theme/set-theme.js +1 -2
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/tooltip/tooltip.js +13 -18
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/esm/utils/direction.js +1 -2
- package/dist/esm/utils/direction.js.map +1 -1
- package/dist/esm/utils/element-internals.js +8 -11
- package/dist/esm/utils/element-internals.js.map +1 -1
- package/dist/esm/utils/get-initials.js +2 -2
- package/dist/esm/utils/get-initials.js.map +1 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/language.js +12 -0
- package/dist/esm/utils/language.js.map +1 -0
- package/dist/esm/utils/support.js +16 -0
- package/dist/esm/utils/support.js.map +1 -0
- package/dist/esm/utils/unique-id.js +14 -0
- package/dist/esm/utils/unique-id.js.map +1 -0
- package/dist/esm/utils/whitespace-filter.js +1 -1
- package/dist/esm/utils/whitespace-filter.js.map +1 -1
- package/dist/web-components.d.ts +1928 -862
- package/dist/web-components.js +1668 -448
- package/dist/web-components.min.js +344 -322
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let jo;const sr="fast-kernel";try{if(document.currentScript)jo=document.currentScript.getAttribute(sr);else{const o=document.getElementsByTagName("script");jo=o[o.length-1].getAttribute(sr)}}catch{jo="isolate"}let ye;switch(jo){case"share":ye=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ye=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ye=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Me=o=>typeof o=="function",Ht=o=>typeof o=="string",rr=()=>{};var Ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ji<"u")Ji.globalThis=Ji;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const nr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},nr));const st=globalThis.FAST;if(st.getById===void 0){const o=Object.create(null);Reflect.defineProperty(st,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},nr))}st.error===void 0&&Object.assign(st,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ba=Object.freeze([]);function ts(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function ar(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function ke(o){o.prototype.toJSON=rr}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),lr=o=>o,Pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:lr}):{createHTML:lr};let qo=Object.freeze({createHTML(o){return Pa.createHTML(o)},protect(o,t,e,i){return i}});const Aa=qo,xe=Object.freeze({get policy(){return qo},setPolicy(o){if(qo!==Aa)throw st.error(1201);qo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),Bt=st.getById(ye.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(u){try{u.call()}catch(h){if(i)t.push(h),setTimeout(s,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let l=0,b=o.length-h;l<b;l++)o[l]=o[l+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class es{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);i!==-1&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.subject;if(e===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,t),r!==void 0&&r.handleChange(i,t)}else for(let s=0,r=e.length;s<r;++s)e[s].handleChange(i,t)}}class cr{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,i;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(i=this.subjectSubscribers)===null||i===void 0||i.notify(t)}subscribe(t,e){var i,s;let r;e?r=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new es(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new es(this.subject),r.subscribe(t)}unsubscribe(t,e){var i,s;e?(i=this.subscribers[e])===null||i===void 0||i.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const Go=Object.freeze({unknown:void 0,coupled:1}),$=st.getById(ye.observable,()=>{const o=Bt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=h=>{throw st.error(1101)};function r(h){var l;let b=(l=h.$fastController)!==null&&l!==void 0?l:e.get(h);return b===void 0&&(Array.isArray(h)?b=s(h):e.set(h,b=new cr(h))),b}const n=ar();class d{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,b){const w=this.field,gt=l[w];if(gt!==b){l[w]=b;const de=l[this.callback];Me(de)&&de.call(l,gt,b),r(l).notify(this.name)}}}class u extends es{constructor(l,b,w=!1){super(l,b),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const b=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),b}requiresUnbind(l){return l.sourceLifetime!==Go.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,b){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let gt;try{gt=this.expression(l,b)}finally{i=w}return gt}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,b){const w=this.last,gt=r(l),de=w===null?this.first:{};if(de.propertySource=l,de.propertyName=b,de.notifier=gt,gt.subscribe(this,b),w!==null){if(!this.needsRefresh){let ir;i=void 0,ir=w.propertySource[w.propertyName],i=this,l===ir&&(this.needsRefresh=!0)}w.next=de}this.last=de}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ke(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,l){i&&i.watch(h,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,l){r(h).notify(l)},defineProperty(h,l){Ht(l)&&(l=new d(l)),n(h).push(l),Reflect.defineProperty(h,l.name,{enumerable:!0,get(){return l.getValue(this)},set(b){l.setValue(this,b)}})},getAccessors:n,binding(h,l,b=this.isVolatileBinding(h)){return new u(h,l,b)},isVolatileBinding(h){return t.test(h.toString())}})});function k(o,t){$.defineProperty(o,t)}function Ea(o,t,e){return Object.assign({},e,{get(){return $.trackVolatile(),e.get.apply(this)}})}const dr=st.getById(ye.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Le=Object.freeze({default:{index:0,length:0,get event(){return Le.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return dr.get()},setEvent(o){dr.set(o)}});class Uo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Na extends Uo{createObserver(t){return $.binding(this.evaluate,t,this.isVolatile)}}function os(o,t,e=$.isVolatileBinding(o)){return new Na(o,t,e)}class hr extends Uo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ke(hr);function ur(o,t){return new hr(o,t)}let pr;function gr(o){return o.map(t=>t instanceof vt?gr(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class vt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof vt?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(pr),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(gr(this.styles)),this}static setDefaultStrategy(t){pr=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new vt(t):t instanceof vt?t:new vt([t])}}vt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const is=ts(),ss=Object.freeze({getForInstance:is.getForInstance,getByType:is.getByType,define(o){return is.register({type:o}),o}});function rs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ns{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const i=t.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>rs(h,u.controller,u.observer))}}const s=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){rs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){rs(this,e.controller,e)}}ss.define(ns);const Oa=`${Math.random().toString(36).substring(2,8)}`;let Fa=0;const br=()=>`--v${Oa}${++Fa}`;function fr(o,t){const e=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=t[n];Me(u)?u=new ns(os(u),br()).createCSS(r):u instanceof Uo?u=new ns(u,br()).createCSS(r):ss.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof vt||u instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=fr(o,t),s=new vt(e);return i.length?s.withBehaviors(...i):s};class mr{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(Ht(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new vt(i))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}ss.define(mr),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=fr(o,t);return new mr(e,i)};const $r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,vr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,yr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,kr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,xr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,wr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Sr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Vt=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,t){return`fe-b$$start$$${o}$$${t}$$fe-b`},contentBindingEndMarker(o,t){return`fe-b$$end$$${o}$$${t}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return $r.test(o)},isContentBindingEndMarker(o){return vr.test(o)},isRepeatViewStartMarker(o){return yr.test(o)},isRepeatViewEndMarker(o){return kr.test(o)},isElementBoundaryStartMarker(o){return Sr(o)&&xr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Sr(o)&&wr.test(o.data)},parseAttributeBinding(o){const t=o.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseContentBindingStartMarker(o){return zr($r,o)},parseContentBindingEndMarker(o){return zr(vr,o)},parseRepeatStartMarker(o){return Cr(yr,o)},parseRepeatEndMarker(o){return Cr(kr,o)},parseElementBoundaryStartMarker(o){return Ir(xr,o.trim())},parseElementBoundaryEndMarker(o){return Ir(wr,o)}});function Cr(o,t){const e=o.exec(t);return e===null?e:parseInt(e[1])}function Ir(o,t){const e=o.exec(t);return e===null?e:e[1]}function zr(o,t){const e=o.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Wo=Symbol.for("fe-hydration");function Xo(o){return o[Wo]===Wo}const as=`fast-${Math.random().toString(36).substring(2,8)}`,Ko=`${as}{`,ho=`}${as}`,_a=ho.length;let Ma=0;const uo=()=>`${as}-${++Ma}`,Tr=Object.freeze({interpolation:o=>`${Ko}${o}${ho}`,attribute:o=>`${uo()}="${Ko}${o}${ho}"`,comment:o=>`<!--${Ko}${o}${ho}-->`}),Yo=Object.freeze({parse(o,t){const e=o.split(Ko);if(e.length===1)return null;const i=[];for(let s=0,r=e.length;s<r;++s){const n=e[s],d=n.indexOf(ho);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(t[h]),u=n.substring(d+_a)}u!==""&&i.push(u)}return i}}),ls=ts(),Pt=Object.freeze({getForInstance:ls.getForInstance,getByType:ls.getByType,define(o,t){return t=t||{},t.type=o,ls.register(t),o},assignAspect(o,t){if(!t){o.aspectType=Q.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=t,o.aspectType=Q.attribute;break}}});class cs{constructor(t){this.options=t}createHTML(t){return Tr.attribute(t(this))}createBehavior(){return this}}ke(cs);class Br extends Error{constructor(t,e,i){super(t),this.factories=e,this.node=i}}function ds(o){return o.nodeType===Node.COMMENT_NODE}function Pr(o){return o.nodeType===Node.TEXT_NODE}function Ar(o,t){const e=document.createRange();return e.setStart(o,0),e.setEnd(t,ds(t)||Pr(t)?t.data.length:t.childNodes.length),e}function La(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,t,e){const i=Ar(o,t),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{Va(u,e,n);break}case Node.COMMENT_NODE:{Da(u,r,e,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function Va(o,t,e){const i=Vt.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!t[s])throw new Br(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,o);Qo(t[s],o,e)}o.removeAttribute(Vt.attributeMarkerName)}}function Da(o,t,e,i,s){if(Vt.isElementBoundaryStartMarker(o)){Ra(o,t);return}if(Vt.isContentBindingStartMarker(o.data)){const r=Vt.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=e[n],h=[];let l=t.nextSibling();o.data="";const b=l;for(;l!==null;){if(ds(l)){const w=Vt.parseContentBindingEndMarker(l.data);if(w&&w[1]===d)break}h.push(l),l=t.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${La(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",h.length===1&&Pr(h[0]))Qo(u,h[0],i);else{l!==b&&l.previousSibling!==null&&(s[u.targetNodeId]={first:b,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Qo(u,w,i)}}}function Ra(o,t){const e=Vt.parseElementBoundaryStartMarker(o.data);let i=t.nextSibling();for(;i!==null;){if(ds(i)){const s=Vt.parseElementBoundaryEndMarker(i.data);if(s&&s===e)break}i=t.nextSibling()}}function Qo(o,t,e){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[o.targetNodeId]=t}var Er;function hs(o,t){const e=o.parentNode;let i=o,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(i),i=s}e.removeChild(t)}class Nr{constructor(){this.index=0,this.length=0}get event(){return Le.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Zo extends Nr{constructor(t,e,i){super(),this.fragment=t,this.factories=e,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Go.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i=this.firstChild,s;for(;i!==e;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(e)}dispose(){hs(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let i=this.behaviors;if(i===null){this.source=t,this.context=e,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){hs(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}ke(Zo),$.defineProperty(Zo.prototype,"index"),$.defineProperty(Zo.prototype,"length");const He={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ja extends Error{constructor(t,e,i,s){super(t),this.factory=e,this.fragment=i,this.templateString=s}}class qa extends Nr{constructor(t,e,i,s){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=i,this.hostBindingTarget=s,this[Er]=Wo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Go.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=He.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let i=this.firstChild,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(i),i=s}t.appendChild(e)}bind(t,e=this){var i,s;if(this.hydrationStage!==He.hydrated&&(this._hydrationStage=He.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:d,boundaries:u}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Br){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Qo(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const l=h.createBehavior();l.bind(this),r[d]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ja(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Ar(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=He.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){hs(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}}Er=Wo,ke(qa);function Ga(o){return o.create!==void 0}function Ua(o,t,e,i){if(e==null&&(e=""),Ga(e)){o.textContent="";let s=o.$fastView;if(s===void 0)if(Xo(i)&&Xo(e)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==He.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=e.hydrate(r.first,r.last)}else s=e.create();else o.$fastTemplate!==e&&(s.isComposed&&(s.remove(),s.unbind()),s=e.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=e)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=e}}function Wa(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[t];if(e!=null&&e.length){const h=e.split(/\s+/);for(let l=0,b=h.length;l<b;++l){const w=h[l];w!==""&&(n[w]=d,u.add(w))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const Xa={[Q.attribute]:xe.setAttribute,[Q.booleanAttribute]:xe.setBooleanAttribute,[Q.property]:(o,t,e)=>o[t]=e,[Q.content]:Ua,[Q.tokenList]:Wa,[Q.event]:()=>{}};class Ve{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=Q.content}createHTML(t){return Tr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Xa[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw st.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId],s=Xo(t)&&t.hydrationStage&&t.hydrationStage!==He.hydrated;switch(this.aspectType){case Q.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:t.onUnbind(this);default:const r=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=t,s&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){r.bind(t);break}this.updateTarget(i,this.targetAspect,r.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Le.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Le.setEvent(null),i!==!0&&t.preventDefault()}}handleChange(t,e){const i=e.target,s=e.controller;this.updateTarget(i,this.targetAspect,e.bind(s),s)}}Pt.define(Ve,{aspected:!0});const Or=(o,t)=>`${o}.${t}`,Fr={},Dt={index:0,node:null};function _r(o){o.startsWith("fast-")||st.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,t){_r(t);const e=Reflect.get(o,t);return Me(e)?e.bind(o):e},set(o,t,e){return _r(t),Reflect.set(o,t,e)}});class Ya{constructor(t,e,i){this.fragment=t,this.directives=e,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,i,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(n=t.id)!==null&&n!==void 0?n:uo(),t.targetNodeId=i,t.targetTagName=r,t.policy=(d=t.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,i){const s=this.descriptors;if(e==="r"||e==="h"||s[e])return;if(!s[t]){const n=t.lastIndexOf("."),d=t.substring(0,n),u=parseInt(t.substring(n+1));this.addTargetDescriptor(d,t,u)}let r=Fr[e];if(!r){const n=`_${e}`;Fr[e]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[t].childNodes[i]}}}s[e]=r}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??Ka;for(const s of this.nodeIds)i[s];return new Zo(e,this.factories,i)}}function Mr(o,t,e,i,s,r=!1){const n=e.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const l=n[u],b=l.value,w=Yo.parse(b,d);let gt=null;w===null?r&&(gt=new Ve(ur(()=>b,o.policy)),Pt.assignAspect(gt,l.name)):gt=us.aggregate(w,o.policy),gt!==null&&(e.removeAttributeNode(l),u--,h--,o.addFactory(gt,t,i,s,e.tagName))}}function Qa(o,t,e,i,s){const r=Yo.parse(t.textContent,o.directives);if(r===null)return Dt.node=t.nextSibling,Dt.index=s+1,Dt;let n,d=n=t;for(let u=0,h=r.length;u<h;++u){const l=r[u];u!==0&&(s++,i=Or(e,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Ht(l)?n.textContent=l:(n.textContent=" ",Pt.assignAspect(l),o.addFactory(l,e,i,s,null)),d=n}return Dt.index=s+1,Dt.node=d.nextSibling,Dt}function Lr(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=Za(o,e,s,i);s=r.node,i=r.index}}function Za(o,t,e,i){const s=Or(t,i);switch(e.nodeType){case 1:Mr(o,t,e,s,i),Lr(o,e,s);break;case 3:return Qa(o,e,t,s,i);case 8:const r=Yo.parse(e.data,o.directives);r!==null&&o.addFactory(us.aggregate(r),t,s,i,null);break}return Dt.index=i+1,Dt.node=e.nextSibling,Dt}function Ja(o,t){return o&&o.nodeType==8&&Yo.parse(o.data,t)!==null}const Hr="TEMPLATE",us={compile(o,t,e=xe.policy){let i;if(Ht(o)){i=document.createElement(Hr),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hr&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new Ya(s,t,e);return Mr(r,"",i,"h",0,!0),(Ja(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Lr(r,s,"r"),Dt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=xe.policy){if(o.length===1)return o[0];let e,i=!1,s;const r=o.length,n=o.map(h=>Ht(h)?()=>h:(e=h.sourceAspect||e,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,l)=>{let b="";for(let w=0;w<r;++w)b+=n[w](h,l);return b},u=new Ve(os(d,s??t,i));return Pt.assignAspect(u,e),u}},tl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,el=Object.create(null);class we{constructor(t,e=el){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}we.empty=new we(""),Pt.define(we);function ol(o,t,e,i=Pt.getForInstance(o)){if(i.aspected){const s=tl.exec(t);s!==null&&Pt.assignAspect(o,s[2])}return o.createHTML(e)}class Yi{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=us.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new we(Ht(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw st.error(1208);if(this.policy)throw st.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=uo();return r[h]=d,h};for(let d=0,u=t.length-1;d<u;++d){const h=t[d];let l=e[d],b;if(s+=h,Me(l))l=new Ve(os(l));else if(l instanceof Uo)l=new Ve(l);else if(!(b=Pt.getForInstance(l))){const w=l;l=new Ve(ur(()=>w))}s+=ol(l,h,n,b)}return new Yi(s+t[t.length-1],r,i)}}ke(Yi);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Yi.create(o,t);throw st.error(1206)};f.partial=o=>new we(o);class Vr extends cs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Pt.define(Vr);const yt=o=>new Vr(o),il=o=>o.nodeType===1,De=o=>o?t=>t.nodeType===1&&t.matches(o):il;class Dr extends cs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,Ba),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Rr="slotchange";class jr extends Dr{observe(t){t.addEventListener(Rr,this)}disconnect(t){t.removeEventListener(Rr,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}Pt.define(jr);function rt(o){return Ht(o)&&(o={property:o}),new jr(o)}class qr extends Dr{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=rr,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}Pt.define(qr);function sl(o){return Ht(o)&&(o={property:o}),new qr(o)}const Gr="boolean",Ur="reflect",Jo=Object.freeze({locate:ar()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Wr(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const Z={toView(o){const t=Wr(o);return t&&t.toString()},fromView:Wr};class Qi{constructor(t,e,i=e.toLowerCase(),s=Ur,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Gr&&r===void 0&&(this.converter=rl)}setValue(t,e){const i=t[this.fieldName],s=this.converter;s!==void 0&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return $.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||e==="fromView"||Bt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Ur:const r=this.converter;xe.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Gr:xe.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Jo.locate(t));for(let s=0,r=e.length;s<r;++s){const n=e[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Ht(h)?i.push(new Qi(t,h)):i.push(new Qi(t,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,t){let e;function i(s,r){arguments.length>1&&(e.property=r),Jo.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Xr={mode:"open"},Kr={},Yr=new Set,ti=st.getById(ye.elementRegistry,()=>ts());class Lt{constructor(t,e=t.definition){var i;this.platformDefined=!1,Ht(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(i=e.registry)!==null&&i!==void 0?i:customElements;const s=t.prototype,r=Qi.collect(t,e.attributes),n=new Array(r.length),d={},u={};for(let h=0,l=r.length;h<l;++h){const b=r[h];n[h]=b.attribute,d[b.name]=b,u[b.attribute]=b,$.defineProperty(s,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=e.shadowOptions===void 0?Xr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Xr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Kr:Object.assign(Object.assign({},Kr),e.elementOptions),this.styles=vt.normalize(e.styles),ti.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Yr.has(t)||ti.getByType(t)?new Lt(class extends t{},e):new Lt(t,e)}static registerBaseType(t){Yr.add(t)}}Lt.getByType=ti.getByType,Lt.getForInstance=ti.getForInstance;class nl extends MutationObserver{constructor(t){function e(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const t=[],e={};let i=null,s=!1;return{source:o,context:Le.default,targets:e,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,l;const b=r;b.id=(d=b.id)!==null&&d!==void 0?d:uo(),b.targetNodeId=(u=b.targetNodeId)!==null&&u!==void 0?u:uo(),b.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,b.policy=(l=b.policy)!==null&&l!==void 0?l:xe.policy,this.addTarget(b.targetNodeId,n),this.addBehavior(b.createBehavior())},addTarget(r,n){e[r]=n},addBehavior(r){t.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,t.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const al={bubbles:!0,composed:!0,cancelable:!0},ei="isConnected",Qr=new WeakMap;function po(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Qr.get(o))!==null&&e!==void 0?e:null}let Zr;class Re extends cr{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const i=e.shadowOptions;if(i!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(i),i.mode==="closed"&&Qr.set(t,r))}const s=$.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=t[u];h!==void 0&&(delete t[u],r[u]=h)}}}get isConnected(){return $.track(this,ei),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Le.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,i;const s=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(i=s.get(t))!==null&&i!==void 0?i:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,e=!1){const i=this.behaviors;if(i===null)return;const s=i.get(t);s!==void 0&&(s===1||e?(i.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):i.set(t,s-1))}addStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=po(i))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(i)){const s=t.behaviors;if(t.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=po(i))!==null&&e!==void 0?e:i).removeChild(t);else if(t.isAttachedTo(i)){const s=t.behaviors;if(t.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,$.notify(this,ei))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,i=Object.keys(e);for(let s=0,r=i.length;s<r;++s){const n=i[s];t[n]=e[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,$.notify(this,ei),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(t,e,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},al),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=po(i))!==null&&e!==void 0?e:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=Go.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=Lt.getForInstance(t);if(i===void 0)throw st.error(1401);return t.$fastController=new Zr(t,i)}static setStrategy(t){Zr=t}}ke(Re),Re.setStrategy(Re);function oi(o){var t;return"adoptedStyleSheets"in o?o:(t=po(o))!==null&&t!==void 0?t:o.getRootNode()}class Zi{constructor(t){const e=Zi.styleSheetCache;this.sheets=t.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=e.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),e.set(i,s)),s})}addStylesTo(t){tn(oi(t),this.sheets)}removeStylesFrom(t){en(oi(t),this.sheets)}}Zi.styleSheetCache=new Map;let ll=0;const cl=()=>`fast-${++ll}`;function Jr(o){return o===document?document.body:o}class dl{constructor(t){this.styles=t,this.styleClass=cl()}addStylesTo(t){t=Jr(oi(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const r=document.createElement("style");r.innerHTML=e[s],r.className=i,t.append(r)}}removeStylesFrom(t){t=Jr(oi(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let tn=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},en=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(vt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),tn=(o,t)=>{o.adoptedStyleSheets.push(...t)},en=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}vt.setDefaultStrategy(Zi)}else vt.setDefaultStrategy(dl);const on="defer-hydration",sn="needs-hydration";class _e extends Re{static hydrationObserverHandler(t){for(const e of t)_e.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(sn)!==null),this.source.hasAttribute(on)){_e.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(t=po(i))!==null&&t!==void 0?t:i;if(this.template)if(Xo(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Vt.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Vt.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(sn),this.needsInitialization=this.needsHydration=!1,$.notify(this,ei)}disconnect(){super.disconnect(),_e.hydrationObserver.unobserve(this.source)}static install(){Re.setStrategy(_e)}}_e.hydrationObserver=new nl(_e.hydrationObserverHandler);function rn(o){const t=class extends o{constructor(){super(),Re.forCustomElement(this)}$emit(e,i,s){return this.$fastController.emit(e,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,i,s){this.$fastController.onAttributeChangedCallback(e,i,s)}};return Lt.registerBaseType(t),t}function hl(o,t){return Me(o)?Lt.compose(o,t):Lt.compose(this,o)}function ul(o,t){return Me(o)?Lt.compose(o,t).define().type:Lt.compose(this,o).define().type}function pl(o){return rn(o)}const S=Object.assign(rn(HTMLElement),{from:pl,define:ul,compose:hl}),bt={horizontal:"horizontal",vertical:"vertical"};function gl(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function nn(...o){return o.every(t=>t instanceof HTMLElement)}const ii="ArrowDown",si="ArrowLeft",ri="ArrowRight",ni="ArrowUp",ai="End",li="Enter",bl="Escape",ci="Home",ps=" ",fl="Tab";var At;(function(o){o.ltr="ltr",o.rtl="rtl"})(At||(At={}));function ml(o,t,e){return e<o?t:e>t?o:e}function gs(o,t,e){return Math.min(Math.max(e,o),t)}let $l=0;function je(o=""){return`${o}${$l++}`}var vl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,q=(o,t,e,i)=>{for(var s=i>1?void 0:i?yl(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&vl(t,e,s),s};class G{}q([a({attribute:"aria-atomic"})],G.prototype,"ariaAtomic",2),q([a({attribute:"aria-busy"})],G.prototype,"ariaBusy",2),q([a({attribute:"aria-controls"})],G.prototype,"ariaControls",2),q([a({attribute:"aria-current"})],G.prototype,"ariaCurrent",2),q([a({attribute:"aria-describedby"})],G.prototype,"ariaDescribedby",2),q([a({attribute:"aria-details"})],G.prototype,"ariaDetails",2),q([a({attribute:"aria-disabled"})],G.prototype,"ariaDisabled",2),q([a({attribute:"aria-errormessage"})],G.prototype,"ariaErrormessage",2),q([a({attribute:"aria-flowto"})],G.prototype,"ariaFlowto",2),q([a({attribute:"aria-haspopup"})],G.prototype,"ariaHaspopup",2),q([a({attribute:"aria-hidden"})],G.prototype,"ariaHidden",2),q([a({attribute:"aria-invalid"})],G.prototype,"ariaInvalid",2),q([a({attribute:"aria-keyshortcuts"})],G.prototype,"ariaKeyshortcuts",2),q([a({attribute:"aria-label"})],G.prototype,"ariaLabel",2),q([a({attribute:"aria-labelledby"})],G.prototype,"ariaLabelledby",2),q([a({attribute:"aria-live"})],G.prototype,"ariaLive",2),q([a({attribute:"aria-owns"})],G.prototype,"ariaOwns",2),q([a({attribute:"aria-relevant"})],G.prototype,"ariaRelevant",2),q([a({attribute:"aria-roledescription"})],G.prototype,"ariaRoledescription",2);const bs={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},fs=o=>o.closest("[dir]")?.dir==="rtl"?At.rtl:At.ltr;function kt(o){return o?typeof o=="string"?new we(o):"inline"in o?o.inline():o:we.empty}const ms=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,kl=":host([hidden]){display:none}";function z(o){return`${kl}:host{display:${o}}`}class xl{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let i=this.listenerCache.get(t);i||(i=this.constructListener(t),this.listenerCache.set(t,i)),i.bind(e)(),e.addEventListener("change",i)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class Ro extends xl{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Ro(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(i),e=r):!r&&e&&(t.removeStyles(i),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const J=Ro.with(window.matchMedia("(forced-colors)"));Ro.with(window.matchMedia("(prefers-color-scheme: dark)")),Ro.with(window.matchMedia("(prefers-color-scheme: light)"));class Yt{}function he(o){return f`<slot name="end" ${yt("end")}>${kt(o.end)}</slot>`.inline()}function Qt(o){return f`<slot name="start" ${yt("start")}>${kt(o.start)}</slot>`.inline()}function Zt(o,...t){const e=Jo.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Jo.locate(i).forEach(r=>e.push(r))})}const an=CSS.supports("selector(:state(g))"),ln=new Map;function c(o){return ln.get(o)??ln.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,t,e){if(t){if(!an){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}}const $s=new WeakMap;function vs(o,t){if(!o||!t)return!1;if($s.has(o))return $s.get(o).has(t);const e=new Set(Object.values(o));return $s.set(o,e),e.has(t)}function m(o,t="",e="",i,s=""){v(o,`${s}${t}`,!1),(!i||vs(i,e))&&v(o,`${s}${e}`,!0)}const wl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Sl={start:"start",end:"end"};var Cl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,Se=(o,t,e,i)=>{for(var s=i>1?void 0:i?Il(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Cl(t,e,s),s};class Jt extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=je("accordion-")}expandedChanged(t,e){v(this.elementInternals,"expanded",e)}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}}Se([a({attribute:"heading-level",mode:"fromView",converter:Z})],Jt.prototype,"headinglevel",2),Se([a({mode:"boolean"})],Jt.prototype,"expanded",2),Se([a({mode:"boolean"})],Jt.prototype,"disabled",2),Se([a],Jt.prototype,"id",2);class go extends Jt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){m(this.elementInternals,t,e,wl)}markerPositionChanged(t,e){m(this.elementInternals,t,e,Sl,"align-")}blockChanged(t,e){v(this.elementInternals,"block",e)}}Se([a],go.prototype,"size",2),Se([a({attribute:"marker-position"})],go.prototype,"markerPosition",2),Se([a({mode:"boolean"})],go.prototype,"block",2),Zt(go,Yt);const te=c("align-end"),cn=c("align-start"),zl=c("anchor"),dn=c("auto-resize"),Tl=c("bad-input"),Bl=c("beige"),bo=c("block"),Pl=c("blue"),Al=c("bold"),El=c("bordered"),Rt=c("brand"),Nl=c("brass"),Ol=c("brown"),Fl=c("center"),x=c("checked"),fo=c("circular"),_l=c("cornflower"),Ml=c("cranberry"),Ll=c("custom-error"),di=c("danger"),Hl=c("dark-green"),Vl=c("dark-red"),N=c("disabled"),hn=c("display-shadow"),un=c("dot"),Dl=c("end"),ys=c("error"),Ce=c("expanded"),hi=c("extra-large"),mo=c("extra-small"),qe=c("filled-darker"),Ge=c("filled-lighter"),Rl=c("fit-center"),jl=c("fit-contain"),ql=c("fit-cover"),Gl=c("fit-none"),Ul=c("focus-visible"),Wl=c("forest"),ee=c("ghost"),Xl=c("gold"),Kl=c("grape"),Yl=c("has-message"),Ql=c("huge"),ue=c("icon"),ui=c("important"),Ie=c("indeterminate"),pi=c("informative"),Zl=c("inline"),ks=c("inset"),pn=c("inverted"),Jl=c("italic"),tc=c("justify"),C=c("large"),ec=c("lavender"),oc=c("light-teal"),ic=c("lilac"),sc=c("magenta"),rc=c("marigold"),nc=c("medium"),ac=c("mink"),lc=c("monospace"),$o=c("multiline"),cc=c("navy"),gi=c("neutral"),gn=c("nowrap"),dc=c("numeric"),X=c("outline"),hc=c("pattern-mismatch"),uc=c("peach"),pc=c("pink"),gc=c("platinum"),bc=c("plum"),F=c("pressed"),ct=c("primary"),fc=c("pumpkin"),mc=c("purple"),$c=c("range-overflow"),vc=c("range-underflow"),yc=c("red"),kc=c("resize-both"),xc=c("resize-horizontal"),wc=c("resize-vertical"),oe=c("rounded"),Sc=c("royal-blue"),Cc=c("seafoam"),bn=c("semibold"),bi=c("severe"),Ic=c("shadow"),zc=c("size-1000"),Tc=c("size-100"),Bc=c("size-200"),Pc=c("size-400"),Ac=c("size-500"),Ec=c("size-600"),Nc=c("size-700"),Oc=c("size-800"),Fc=c("size-900"),B=c("small"),vo=c("square"),_c=c("steel"),Mc=c("step-mismatch"),fn=c("strikethrough"),yo=c("strong"),fi=c("submenu"),T=c("subtle"),ze=c("success"),Lc=c("teal"),pe=c("tint"),ko=c("tiny"),Hc=c("too-long"),Vc=c("too-short"),tt=c("transparent"),mn=c("truncate"),Dc=c("type-mismatch"),Te=c("underline"),Rc=c("user-invalid"),jc=c("valid"),qc=c("value-missing"),I=c("vertical"),Be=c("warning"),A="var(--colorNeutralForeground1)",xs="var(--colorNeutralForeground1Hover)",Gc="var(--colorNeutralForeground1Pressed)",jt="var(--colorNeutralForeground2)",mi="var(--colorNeutralForeground2Hover)",$i="var(--colorNeutralForeground2Pressed)",Uc="var(--colorNeutralForeground2Selected)",vi="var(--colorNeutralForeground2BrandHover)",yi="var(--colorNeutralForeground2BrandPressed)",Wc="var(--colorNeutralForeground2BrandSelected)",ft="var(--colorNeutralForeground3)",Xc="var(--colorNeutralForeground3Hover)",Kc="var(--colorNeutralForeground3Pressed)",$n="var(--colorNeutralForeground4)",E="var(--colorNeutralForegroundDisabled)",Yc="var(--colorBrandForegroundLink)",Qc="var(--colorBrandForegroundLinkHover)",Zc="var(--colorBrandForegroundLinkPressed)",Jc="var(--colorNeutralForeground2Link)",td="var(--colorNeutralForeground2LinkHover)",ed="var(--colorNeutralForeground2LinkPressed)",vn="var(--colorCompoundBrandForeground1Hover)",od="var(--colorCompoundBrandForeground1Pressed)",ie="var(--colorNeutralForegroundOnBrand)",Ue="var(--colorNeutralForegroundInverted)",id="var(--colorNeutralForegroundInvertedHover)",sd="var(--colorNeutralForegroundInvertedPressed)",yn="var(--colorNeutralForegroundStaticInverted)",ws="var(--colorBrandForeground1)",rd="var(--colorBrandForeground2)",nd="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",Ss="var(--colorNeutralBackground1Hover)",Cs="var(--colorNeutralBackground1Pressed)",kn="var(--colorNeutralBackground1Selected)",ki="var(--colorNeutralBackground3)",ad="var(--colorNeutralBackground4)",ld="var(--colorNeutralBackground5)",xi="var(--colorNeutralBackground6)",xn="var(--colorNeutralBackgroundInverted)",cd="var(--colorSubtleBackground)",wi="var(--colorSubtleBackgroundHover)",We="var(--colorSubtleBackgroundPressed)",dd="var(--colorSubtleBackgroundSelected)",St="var(--colorTransparentBackground)",Is="var(--colorTransparentBackgroundHover)",zs="var(--colorTransparentBackgroundPressed)",hd="var(--colorTransparentBackgroundSelected)",Xe="var(--colorNeutralBackgroundDisabled)",Ts="var(--colorBackgroundOverlay)",Bs="var(--colorBrandBackground)",wn="var(--colorBrandBackgroundHover)",Sn="var(--colorBrandBackgroundPressed)",ud="var(--colorBrandBackgroundSelected)",Ke="var(--colorCompoundBrandBackground)",xo="var(--colorCompoundBrandBackgroundHover)",wo="var(--colorCompoundBrandBackgroundPressed)",Cn="var(--colorBrandBackgroundStatic)",pd="var(--colorBrandBackground2)",ge="var(--colorNeutralStrokeAccessible)",Ye="var(--colorNeutralStrokeAccessibleHover)",Qe="var(--colorNeutralStrokeAccessiblePressed)",se="var(--colorNeutralStroke1)",So="var(--colorNeutralStroke1Hover)",Si="var(--colorNeutralStroke1Pressed)",Co="var(--colorNeutralStroke2)",gd="var(--colorNeutralStroke3)",bd="var(--colorNeutralStrokeOnBrand2)",In="var(--colorBrandStroke1)",Ps="var(--colorBrandStroke2)",Io="var(--colorCompoundBrandStroke)",fd="var(--colorCompoundBrandStrokeHover)",zn="var(--colorCompoundBrandStrokePressed)",Et="var(--colorNeutralStrokeDisabled)",dt="var(--colorTransparentStroke)",Tn="var(--colorTransparentStrokeInteractive)",As="var(--colorStrokeFocus1)",qt="var(--colorStrokeFocus2)",md="var(--colorNeutralShadowAmbient)",$d="var(--colorNeutralShadowKey)",Bn="var(--colorPaletteRedBackground1)",vd="var(--colorPaletteRedBackground2)",Pn="var(--colorPaletteRedBackground3)",An="var(--colorPaletteRedBorder1)",Es="var(--colorPaletteRedBorder2)",En="var(--colorPaletteRedForeground1)",yd="var(--colorPaletteRedForeground2)",Nn="var(--colorPaletteRedForeground3)",On="var(--colorPaletteGreenBackground1)",Fn="var(--colorPaletteGreenBackground3)",kd="var(--colorPaletteGreenBorder1)",xd="var(--colorPaletteGreenBorder2)",wd="var(--colorPaletteGreenForeground1)",Sd="var(--colorPaletteGreenForeground2)",Cd="var(--colorPaletteGreenForeground3)",_n="var(--colorPaletteDarkOrangeBackground1)",Mn="var(--colorPaletteDarkOrangeBackground3)",Ln="var(--colorPaletteDarkOrangeBorder1)",Id="var(--colorPaletteDarkOrangeForeground1)",Hn="var(--colorPaletteDarkOrangeForeground3)",zd="var(--colorPaletteYellowBackground1)",Td="var(--colorPaletteYellowBackground3)",Bd="var(--colorPaletteYellowBorder1)",Ns="var(--colorPaletteYellowForeground2)",Vn="var(--colorPaletteMarigoldBackground2)",Pd="var(--colorPaletteMarigoldBackground3)",Ad="var(--colorPaletteMarigoldForeground2)",Ed="var(--colorPaletteAnchorBackground2)",Nd="var(--colorPaletteAnchorForeground2)",Od="var(--colorPaletteBeigeBackground2)",Fd="var(--colorPaletteBeigeForeground2)",_d="var(--colorPaletteBlueBackground2)",Md="var(--colorPaletteBlueForeground2)",Ld="var(--colorPaletteBrassBackground2)",Hd="var(--colorPaletteBrassForeground2)",Vd="var(--colorPaletteBrownBackground2)",Dd="var(--colorPaletteBrownForeground2)",Rd="var(--colorPaletteCornflowerBackground2)",jd="var(--colorPaletteCornflowerForeground2)",qd="var(--colorPaletteCranberryBackground2)",Gd="var(--colorPaletteCranberryForeground2)",Ud="var(--colorPaletteDarkGreenBackground2)",Wd="var(--colorPaletteDarkGreenForeground2)",Xd="var(--colorPaletteDarkRedBackground2)",Kd="var(--colorPaletteDarkRedForeground2)",Yd="var(--colorPaletteForestBackground2)",Qd="var(--colorPaletteForestForeground2)",Zd="var(--colorPaletteGoldBackground2)",Jd="var(--colorPaletteGoldForeground2)",th="var(--colorPaletteGrapeBackground2)",eh="var(--colorPaletteGrapeForeground2)",oh="var(--colorPaletteLavenderBackground2)",ih="var(--colorPaletteLavenderForeground2)",sh="var(--colorPaletteLightTealBackground2)",rh="var(--colorPaletteLightTealForeground2)",nh="var(--colorPaletteLilacBackground2)",ah="var(--colorPaletteLilacForeground2)",lh="var(--colorPaletteMagentaBackground2)",ch="var(--colorPaletteMagentaForeground2)",dh="var(--colorPaletteMinkBackground2)",hh="var(--colorPaletteMinkForeground2)",uh="var(--colorPaletteNavyBackground2)",ph="var(--colorPaletteNavyForeground2)",gh="var(--colorPalettePeachBackground2)",bh="var(--colorPalettePeachForeground2)",fh="var(--colorPalettePinkBackground2)",mh="var(--colorPalettePinkForeground2)",$h="var(--colorPalettePlatinumBackground2)",vh="var(--colorPalettePlatinumForeground2)",yh="var(--colorPalettePlumBackground2)",kh="var(--colorPalettePlumForeground2)",xh="var(--colorPalettePumpkinBackground2)",wh="var(--colorPalettePumpkinForeground2)",Sh="var(--colorPalettePurpleBackground2)",Ch="var(--colorPalettePurpleForeground2)",Ih="var(--colorPaletteRoyalBlueBackground2)",zh="var(--colorPaletteRoyalBlueForeground2)",Th="var(--colorPaletteSeafoamBackground2)",Bh="var(--colorPaletteSeafoamForeground2)",Ph="var(--colorPaletteSteelBackground2)",Ah="var(--colorPaletteSteelForeground2)",Eh="var(--colorPaletteTealBackground2)",Nh="var(--colorPaletteTealForeground2)",Os="var(--borderRadiusNone)",Gt="var(--borderRadiusSmall)",P="var(--borderRadiusMedium)",Dn="var(--borderRadiusLarge)",Rn="var(--borderRadiusXLarge)",mt="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",Oh="var(--fontFamilyMonospace)",Fh="var(--fontFamilyNumeric)",zo="var(--fontSizeBase100)",D="var(--fontSizeBase200)",O="var(--fontSizeBase300)",ht="var(--fontSizeBase400)",Ze="var(--fontSizeBase500)",Ci="var(--fontSizeBase600)",jn="var(--fontSizeHero700)",qn="var(--fontSizeHero800)",Gn="var(--fontSizeHero900)",Un="var(--fontSizeHero1000)",H="var(--fontWeightRegular)",_h="var(--fontWeightMedium)",R="var(--fontWeightSemibold)",Ii="var(--fontWeightBold)",zi="var(--lineHeightBase100)",et="var(--lineHeightBase200)",V="var(--lineHeightBase300)",xt="var(--lineHeightBase400)",Ti="var(--lineHeightBase500)",Wn="var(--lineHeightBase600)",Xn="var(--lineHeightHero700)",Kn="var(--lineHeightHero800)",Yn="var(--lineHeightHero900)",Qn="var(--lineHeightHero1000)",Fs="var(--shadow2)",Bi="var(--shadow4)",Mh="var(--shadow8)",Zn="var(--shadow16)",Lh="var(--shadow28)",Jn="var(--shadow64)",j="var(--strokeWidthThin)",Nt="var(--strokeWidthThick)",nt="var(--strokeWidthThicker)",_s="var(--strokeWidthThickest)",ut="var(--spacingHorizontalXXS)",Ot="var(--spacingHorizontalXS)",wt="var(--spacingHorizontalSNudge)",re="var(--spacingHorizontalS)",pt="var(--spacingHorizontalMNudge)",$t="var(--spacingHorizontalM)",Hh="var(--spacingHorizontalL)",Vh="var(--spacingHorizontalXL)",Dh="var(--spacingHorizontalXXL)",To="var(--spacingVerticalXXS)",Pi="var(--spacingVerticalXS)",be="var(--spacingVerticalSNudge)",at="var(--spacingVerticalS)",Je="var(--spacingVerticalMNudge)",Rh="var(--spacingVerticalM)",Ai="var(--spacingVerticalL)",Bo="var(--spacingVerticalXXL)",ta="var(--durationUltraFast)",Ms="var(--durationFaster)",Ls="var(--durationNormal)",Hs="var(--durationGentle)",ea="var(--durationSlow)",oa="var(--durationSlower)",Ei="var(--durationUltraSlow)",jh="var(--curveAccelerateMax)",to="var(--curveAccelerateMid)",qh="var(--curveAccelerateMin)",Vs="var(--curveDecelerateMax)",eo="var(--curveDecelerateMid)",Gh="var(--curveDecelerateMin)",Uh="var(--curveEasyEaseMax)",Ni="var(--curveEasyEase)",Ds="var(--curveLinear)",Wh=p`
|
|
2
|
-
${
|
|
1
|
+
const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let ii;const xr="fast-kernel";try{if(document.currentScript)ii=document.currentScript.getAttribute(xr);else{const o=document.getElementsByTagName("script");ii=o[o.length-1].getAttribute(xr)}}catch{ii="isolate"}let It;switch(ii){case"share":It=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":It=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)}`;It=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Zt=o=>typeof o=="function",Ge=o=>typeof o=="string",wr=()=>{};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ps<"u")ps.globalThis=ps;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}})();const Cr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Cr));const pe=globalThis.FAST;if(pe.getById===void 0){const o=Object.create(null);Reflect.defineProperty(pe,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},Cr))}pe.error===void 0&&Object.assign(pe,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Xa=Object.freeze([]);function bs(){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 Sr(){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 zt(o){o.prototype.toJSON=wr}const re=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ir=o=>o,Ka=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ir}):{createHTML:Ir};let si=Object.freeze({createHTML(o){return Ka.createHTML(o)},protect(o,e,t,i){return i}});const Ya=si,Pt=Object.freeze({get policy(){return si},setPolicy(o){if(si!==Ya)throw pe.error(1201);si=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)}}),ne=pe.getById(It.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function s(){if(e.length)throw e.shift()}function r(u){try{u.call()}catch(h){if(i)e.push(h),setTimeout(s,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let c=0,m=o.length-h;c<m;c++)o[c]=o[c+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class gs{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 s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,e),r!==void 0&&r.handleChange(i,e)}else for(let s=0,r=t.length;s<r;++s)t[s].handleChange(i,e)}}class zr{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,s;let r;t?r=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new gs(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new gs(this.subject),r.subscribe(e)}unsubscribe(e,t){var i,s;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(e)}}const ri=Object.freeze({unknown:void 0,coupled:1}),f=pe.getById(It.observable,()=>{const o=ne.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,s=h=>{throw pe.error(1101)};function r(h){var c;let m=(c=h.$fastController)!==null&&c!==void 0?c:t.get(h);return m===void 0&&(Array.isArray(h)?m=s(h):t.set(h,m=new zr(h))),m}const n=Sr();class d{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return i!==void 0&&i.watch(c,this.name),c[this.field]}setValue(c,m){const S=this.field,we=c[S];if(we!==m){c[S]=m;const ft=c[this.callback];Zt(ft)&&ft.call(c,we,m),r(c).notify(this.name)}}}class u extends gs{constructor(c,m,S=!1){super(c,m),this.expression=c,this.isVolatileBinding=S,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(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const m=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),m}requiresUnbind(c){return c.sourceLifetime!==ri.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,m){this.needsRefresh&&this.last!==null&&this.dispose();const S=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let we;try{we=this.expression(c,m)}finally{i=S}return we}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,m){const S=this.last,we=r(c),ft=S===null?this.first:{};if(ft.propertySource=c,ft.propertyName=m,ft.notifier=we,we.subscribe(this,m),S!==null){if(!this.needsRefresh){let kr;i=void 0,kr=S.propertySource[S.propertyName],i=this,c===kr&&(this.needsRefresh=!0)}S.next=ft}this.last=ft}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 c=this.first;for(;c!==void 0;)yield c,c=c.next}}return zt(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,c){i&&i.watch(h,c)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,c){r(h).notify(c)},defineProperty(h,c){Ge(c)&&(c=new d(c)),n(h).push(c),Reflect.defineProperty(h,c.name,{enumerable:!0,get(){return c.getValue(this)},set(m){c.setValue(this,m)}})},getAccessors:n,binding(h,c,m=this.isVolatileBinding(h)){return new u(h,c,m)},isVolatileBinding(h){return e.test(h.toString())}})});function $(o,e){f.defineProperty(o,e)}function fs(o,e,t){return Object.assign({},t,{get(){return f.trackVolatile(),t.get.apply(this)}})}const Pr=pe.getById(It.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Jt=Object.freeze({default:{index:0,length:0,get event(){return Jt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Pr.get()},setEvent(o){Pr.set(o)}});class ni{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Qa extends ni{createObserver(e){return f.binding(this.evaluate,e,this.isVolatile)}}function ms(o,e,t=f.isVolatileBinding(o)){return new Qa(o,e,t)}class Tr extends ni{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}zt(Tr);function Br(o,e){return new Tr(o,e)}let Ar;function Er(o){return o.map(e=>e instanceof Te?Er(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class Te{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof Te?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ar),this._strategy}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(Er(this.styles)),this}static setDefaultStrategy(e){Ar=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new Te(e):e instanceof Te?e:new Te([e])}}Te.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $s=bs(),vs=Object.freeze({getForInstance:$s.getForInstance,getByType:$s.getByType,define(o){return $s.register({type:o}),o}});function ys(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class ks{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 r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>ys(h,u.controller,u.observer))}}const s=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:s})}connectedCallback(e){ys(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){ys(this,t.controller,t)}}vs.define(ks);const Za=`${Math.random().toString(36).substring(2,8)}`;let Ja=0;const Or=()=>`--v${Za}${++Ja}`;function Fr(o,e){const t=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=e[n];Zt(u)?u=new ks(ms(u),Or()).createCSS(r):u instanceof ni?u=new ks(u,Or()).createCSS(r):vs.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof Te||u instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:s}}const p=(o,...e)=>{const{styles:t,behaviors:i}=Fr(o,e),s=new Te(t);return i.length?s.withBehaviors(...i):s};class Nr{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((s,r)=>(Ge(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new Te(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)}}vs.define(Nr),p.partial=(o,...e)=>{const{styles:t,behaviors:i}=Fr(o,e);return new Nr(t,i)};const _r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Mr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Dr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Lr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Vr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Hr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Rr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ue=Object.freeze({attributeMarkerName:"data-fe-b",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 _r.test(o)},isContentBindingEndMarker(o){return Mr.test(o)},isRepeatViewStartMarker(o){return Dr.test(o)},isRepeatViewEndMarker(o){return Lr.test(o)},isElementBoundaryStartMarker(o){return Rr(o)&&Vr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Rr(o)&&Hr.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Wr(_r,o)},parseContentBindingEndMarker(o){return Wr(Mr,o)},parseRepeatStartMarker(o){return jr(Dr,o)},parseRepeatEndMarker(o){return jr(Lr,o)},parseElementBoundaryStartMarker(o){return qr(Vr,o.trim())},parseElementBoundaryEndMarker(o){return qr(Hr,o)}});function jr(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function qr(o,e){const t=o.exec(e);return t===null?t:t[1]}function Wr(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const ai=Symbol.for("fe-hydration");function li(o){return o[ai]===ai}const xs=`fast-${Math.random().toString(36).substring(2,8)}`,ci=`${xs}{`,wo=`}${xs}`,el=wo.length;let tl=0;const Co=()=>`${xs}-${++tl}`,Gr=Object.freeze({interpolation:o=>`${ci}${o}${wo}`,attribute:o=>`${Co()}="${ci}${o}${wo}"`,comment:o=>`<!--${ci}${o}${wo}-->`}),di=Object.freeze({parse(o,e){const t=o.split(ci);if(t.length===1)return null;const i=[];for(let s=0,r=t.length;s<r;++s){const n=t[s],d=n.indexOf(wo);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(e[h]),u=n.substring(d+el)}u!==""&&i.push(u)}return i}}),ws=bs(),Me=Object.freeze({getForInstance:ws.getForInstance,getByType:ws.getByType,define(o,e){return e=e||{},e.type=o,ws.register(e),o},assignAspect(o,e){if(!e){o.aspectType=re.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?re.tokenList:re.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=re.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=re.event;break;default:o.targetAspect=e,o.aspectType=re.attribute;break}}});class Cs{constructor(e){this.options=e}createHTML(e){return Gr.attribute(e(this))}createBehavior(){return this}}zt(Cs);class Ur extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function Ss(o){return o.nodeType===Node.COMMENT_NODE}function Xr(o){return o.nodeType===Node.TEXT_NODE}function Kr(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Ss(e)||Xr(e)?e.data.length:e.childNodes.length),t}function ol(o){return o instanceof DocumentFragment&&"mode"in o}function il(o,e,t){const i=Kr(o,e),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{sl(u,t,n);break}case Node.COMMENT_NODE:{rl(u,r,t,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function sl(o,e,t){const i=Ue.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!e[s])throw new Ur(`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);hi(e[s],o,t)}o.removeAttribute(Ue.attributeMarkerName)}}function rl(o,e,t,i,s){if(Ue.isElementBoundaryStartMarker(o)){nl(o,e);return}if(Ue.isContentBindingStartMarker(o.data)){const r=Ue.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=t[n],h=[];let c=e.nextSibling();o.data="";const m=c;for(;c!==null;){if(Ss(c)){const S=Ue.parseContentBindingEndMarker(c.data);if(S&&S[1]===d)break}h.push(c),c=e.nextSibling()}if(c===null){const S=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ol(S)?S.host.nodeName:S.nodeName}".`)}if(c.data="",h.length===1&&Xr(h[0]))hi(u,h[0],i);else{c!==m&&c.previousSibling!==null&&(s[u.targetNodeId]={first:m,last:c.previousSibling});const S=c.parentNode.insertBefore(document.createTextNode(""),c);hi(u,S,i)}}}function nl(o,e){const t=Ue.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(Ss(i)){const s=Ue.parseElementBoundaryEndMarker(i.data);if(s&&s===t)break}i=e.nextSibling()}}function hi(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Yr;function Is(o,e){const t=o.parentNode;let i=o,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=s}t.removeChild(e)}class Qr{constructor(){this.index=0,this.length=0}get event(){return Jt.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 ui extends Qr{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=ri.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 s=this.firstChild,r;for(;s!==t;)r=s.nextSibling,i.insertBefore(s,e),s=r;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,e.appendChild(i),i=s;e.appendChild(t)}dispose(){Is(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 s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const 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){Is(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}zt(ui),f.defineProperty(ui.prototype,"index"),f.defineProperty(ui.prototype,"length");const eo={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class al extends Error{constructor(e,t,i,s){super(e),this.factory=t,this.fragment=i,this.templateString=s}}class ll extends Qr{constructor(e,t,i,s){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=s,this[Yr]=ai,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=eo.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(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 s=this.firstChild,r;for(;s!==t;)r=s.nextSibling,i.insertBefore(s,e),s=r;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,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=s}e.appendChild(t)}bind(e,t=this){var i,s;if(this.hydrationStage!==eo.hydrated&&(this._hydrationStage=eo.hydrating),this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:d,boundaries:u}=il(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Ur){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&hi(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const c=h.createBehavior();c.bind(this),r[d]=c}else{let c=this.sourceTemplate.html;throw typeof c!="string"&&(c=c.innerHTML),new al(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Kr(this.firstChild,this.lastChild).cloneContents(),c)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=eo.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Is(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}}Yr=ai,zt(ll);function cl(o){return o.create!==void 0}function dl(o,e,t,i){if(t==null&&(t=""),cl(t)){o.textContent="";let s=o.$fastView;if(s===void 0)if(li(i)&&li(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==eo.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=t.hydrate(r.first,r.last)}else s=t.create();else o.$fastTemplate!==t&&(s.isComposed&&(s.remove(),s.unbind()),s=t.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=t)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=t}}function hl(o,e,t){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[e];if(t!=null&&t.length){const h=t.split(/\s+/);for(let c=0,m=h.length;c<m;++c){const S=h[c];S!==""&&(n[S]=d,u.add(S))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const ul={[re.attribute]:Pt.setAttribute,[re.booleanAttribute]:Pt.setBooleanAttribute,[re.property]:(o,e,t)=>o[e]=t,[re.content]:dl,[re.tokenList]:hl,[re.event]:()=>{}};class to{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=re.content}createHTML(e){return Gr.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ul[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw pe.error(1205);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],s=li(e)&&e.hydrationStage&&e.hydrationStage!==eo.hydrated;switch(this.aspectType){case re.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case re.content:e.onUnbind(this);default:const r=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=e,s&&(this.aspectType===re.attribute||this.aspectType===re.booleanAttribute)){r.bind(e);break}this.updateTarget(i,this.targetAspect,r.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){Jt.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Jt.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,s=t.controller;this.updateTarget(i,this.targetAspect,t.bind(s),s)}}Me.define(to,{aspected:!0});const Zr=(o,e)=>`${o}.${e}`,Jr={},Xe={index:0,node:null};function en(o){o.startsWith("fast-")||pe.warn(1204,{name:o})}const pl=new Proxy(document.createElement("div"),{get(o,e){en(e);const t=Reflect.get(o,e);return Zt(t)?t.bind(o):t},set(o,e,t){return en(e),Reflect.set(o,e,t)}});class bl{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,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,s)),e.id=(n=e.id)!==null&&n!==void 0?n:Co(),e.targetNodeId=i,e.targetTagName=r,e.policy=(d=e.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const s=this.descriptors;if(t==="r"||t==="h"||s[t])return;if(!s[e]){const n=e.lastIndexOf("."),d=e.substring(0,n),u=parseInt(e.substring(n+1));this.addTargetDescriptor(d,e,u)}let r=Jr[t];if(!r){const n=`_${t}`;Jr[t]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[e].childNodes[i]}}}s[t]=r}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??pl;for(const s of this.nodeIds)i[s];return new ui(t,this.factories,i)}}function tn(o,e,t,i,s,r=!1){const n=t.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const c=n[u],m=c.value,S=di.parse(m,d);let we=null;S===null?r&&(we=new to(Br(()=>m,o.policy)),Me.assignAspect(we,c.name)):we=zs.aggregate(S,o.policy),we!==null&&(t.removeAttributeNode(c),u--,h--,o.addFactory(we,e,i,s,t.tagName))}}function gl(o,e,t,i,s){const r=di.parse(e.textContent,o.directives);if(r===null)return Xe.node=e.nextSibling,Xe.index=s+1,Xe;let n,d=n=e;for(let u=0,h=r.length;u<h;++u){const c=r[u];u!==0&&(s++,i=Zr(t,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Ge(c)?n.textContent=c:(n.textContent=" ",Me.assignAspect(c),o.addFactory(c,t,i,s,null)),d=n}return Xe.index=s+1,Xe.node=d.nextSibling,Xe}function on(o,e,t){let i=0,s=e.firstChild;for(;s;){const r=fl(o,t,s,i);s=r.node,i=r.index}}function fl(o,e,t,i){const s=Zr(e,i);switch(t.nodeType){case 1:tn(o,e,t,s,i),on(o,t,s);break;case 3:return gl(o,t,e,s,i);case 8:const r=di.parse(t.data,o.directives);r!==null&&o.addFactory(zs.aggregate(r),e,s,i,null);break}return Xe.index=i+1,Xe.node=t.nextSibling,Xe}function ml(o,e){return o&&o.nodeType==8&&di.parse(o.data,e)!==null}const sn="TEMPLATE",zs={compile(o,e,t=Pt.policy){let i;if(Ge(o)){i=document.createElement(sn),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===sn&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new bl(s,e,t);return tn(r,"",i,"h",0,!0),(ml(s.firstChild,e)||s.childNodes.length===1&&Object.keys(e).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),on(r,s,"r"),Xe.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Pt.policy){if(o.length===1)return o[0];let t,i=!1,s;const r=o.length,n=o.map(h=>Ge(h)?()=>h:(t=h.sourceAspect||t,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,c)=>{let m="";for(let S=0;S<r;++S)m+=n[S](h,c);return m},u=new to(ms(d,s??e,i));return Me.assignAspect(u,t),u}},$l=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,vl=Object.create(null);class Tt{constructor(e,t=vl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}Tt.empty=new Tt(""),Me.define(Tt);function yl(o,e,t,i=Me.getForInstance(o)){if(i.aspected){const s=$l.exec(e);s!==null&&Me.assignAspect(o,s[2])}return o.createHTML(t)}class ds{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=zs.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new Tt(Ge(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw pe.error(1208);if(this.policy)throw pe.error(1207);return this.policy=e,this}render(e,t,i){const s=this.create(i);return s.bind(e),s.appendTo(t),s}static create(e,t,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=Co();return r[h]=d,h};for(let d=0,u=e.length-1;d<u;++d){const h=e[d];let c=t[d],m;if(s+=h,Zt(c))c=new to(ms(c));else if(c instanceof ni)c=new to(c);else if(!(m=Me.getForInstance(c))){const S=c;c=new to(Br(()=>S))}s+=yl(c,h,n,m)}return new ds(s+e[e.length-1],r,i)}}zt(ds);const g=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ds.create(o,e);throw pe.error(1206)};g.partial=o=>new Tt(o);class rn extends Cs{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Me.define(rn);const X=o=>new rn(o),kl=o=>o.nodeType===1,Bt=o=>o?e=>e.nodeType===1&&e.matches(o):kl;class nn extends Cs{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,Xa),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 an="slotchange";class ln extends nn{observe(e){e.addEventListener(an,this)}disconnect(e){e.removeEventListener(an,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Me.define(ln);function K(o){return Ge(o)&&(o={property:o}),new ln(o)}class cn extends nn{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=wr,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Me.define(cn);function xl(o){return Ge(o)&&(o={property:o}),new cn(o)}const dn="boolean",hn="reflect",pi=Object.freeze({locate:Sr()}),wl={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 ae={toView(o){const e=un(o);return e&&e.toString()},fromView:un};class hs{constructor(e,t,i=t.toLowerCase(),s=hn,r){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,s===dn&&r===void 0&&(this.converter=wl)}setValue(e,t){const i=e[this.fieldName],s=this.converter;s!==void 0&&(t=s.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 f.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"||ne.enqueue(()=>{i.add(e);const s=e[this.fieldName];switch(t){case hn:const r=this.converter;Pt.setAttribute(e,this.attribute,r!==void 0?r.toView(s):s);break;case dn:Pt.setBooleanAttribute(e,this.attribute,s);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(pi.locate(e));for(let s=0,r=t.length;s<r;++s){const n=t[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Ge(h)?i.push(new hs(e,h)):i.push(new hs(e,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,e){let t;function i(s,r){arguments.length>1&&(t.property=r),pi.locate(s.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const pn={mode:"open"},bn={},gn=new Set,bi=pe.getById(It.elementRegistry,()=>bs());class We{constructor(e,t=e.definition){var i;this.platformDefined=!1,Ge(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const s=e.prototype,r=hs.collect(e,t.attributes),n=new Array(r.length),d={},u={};for(let h=0,c=r.length;h<c;++h){const m=r[h];n[h]=m.attribute,d[m.name]=m,u[m.attribute]=m,f.defineProperty(s,m)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?pn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},pn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?bn:Object.assign(Object.assign({},bn),t.elementOptions),this.styles=Te.normalize(t.styles),bi.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return gn.has(e)||bi.getByType(e)?new We(class extends e{},t):new We(e,t)}static registerBaseType(e){gn.add(e)}}We.getByType=bi.getByType,We.getForInstance=bi.getForInstance;class Cl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.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,s=!1;return{source:o,context:Jt.default,targets:t,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,c;const m=r;m.id=(d=m.id)!==null&&d!==void 0?d:Co(),m.targetNodeId=(u=m.targetNodeId)!==null&&u!==void 0?u:Co(),m.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,m.policy=(c=m.policy)!==null&&c!==void 0?c:Pt.policy,this.addTarget(m.targetNodeId,n),this.addBehavior(m.createBehavior())},addTarget(r,n){t[r]=n},addBehavior(r){e.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const Sl={bubbles:!0,composed:!0,cancelable:!0},gi="isConnected",fn=new WeakMap;function So(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:fn.get(o))!==null&&t!==void 0?t:null}let mn;class oo extends zr{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let r=e.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=e.attachShadow(i),i.mode==="closed"&&fn.set(e,r))}const s=f.getAccessors(e);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=e[u];h!==void 0&&(delete e[u],r[u]=h)}}}get isConnected(){return f.track(this,gi),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Jt.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 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))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const s=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,r=(i=s.get(e))!==null&&i!==void 0?i:0;r===0?(s.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):s.set(e,r+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const s=i.get(e);s!==void 0&&(s===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,s-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=So(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const s=e.behaviors;if(e.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=So(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const s=e.behaviors;if(e.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,f.notify(this,gi))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let s=0,r=i.length;s<r;++s){const n=i[s];e[n]=t[n]}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===1&&(this.stage=2,f.notify(this,gi),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const s=this.definition.attributeLookup[e];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},Sl),i))):!1}renderTemplate(e){var t;const i=this.source,s=(t=So(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 r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}e&&(this.view=e.render(i,s,i),this.view.sourceLifetime=ri.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=We.getForInstance(e);if(i===void 0)throw pe.error(1401);return e.$fastController=new mn(e,i)}static setStrategy(e){mn=e}}zt(oo),oo.setStrategy(oo);function fi(o){var e;return"adoptedStyleSheets"in o?o:(e=So(o))!==null&&e!==void 0?e:o.getRootNode()}class us{constructor(e){const t=us.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=t.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),t.set(i,s)),s})}addStylesTo(e){vn(fi(e),this.sheets)}removeStylesFrom(e){yn(fi(e),this.sheets)}}us.styleSheetCache=new Map;let Il=0;const zl=()=>`fast-${++Il}`;function $n(o){return o===document?document.body:o}class Pl{constructor(e){this.styles=e,this.styleClass=zl()}addStylesTo(e){e=$n(fi(e));const t=this.styles,i=this.styleClass;for(let s=0;s<t.length;s++){const r=document.createElement("style");r.innerHTML=t[s],r.className=i,e.append(r)}}removeStylesFrom(e){e=$n(fi(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=t.length;i<s;++i)e.removeChild(t[i])}}let vn=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},yn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(Te.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),vn=(o,e)=>{o.adoptedStyleSheets.push(...e)},yn=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}Te.setDefaultStrategy(us)}else Te.setDefaultStrategy(Pl);const kn="defer-hydration",xn="needs-hydration";class Qt extends oo{static hydrationObserverHandler(e){for(const t of e)Qt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(xn)!==null),this.source.hasAttribute(kn)){Qt.hydrationObserver.observe(this.source,{attributeFilter:[kn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(e=So(i))!==null&&e!==void 0?e:i;if(this.template)if(li(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Ue.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Ue.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(xn),this.needsInitialization=this.needsHydration=!1,f.notify(this,gi)}disconnect(){super.disconnect(),Qt.hydrationObserver.unobserve(this.source)}static install(){oo.setStrategy(Qt)}}Qt.hydrationObserver=new Cl(Qt.hydrationObserverHandler);function wn(o){const e=class extends o{constructor(){super(),oo.forCustomElement(this)}$emit(t,i,s){return this.$fastController.emit(t,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,s){this.$fastController.onAttributeChangedCallback(t,i,s)}};return We.registerBaseType(e),e}function Tl(o,e){return Zt(o)?We.compose(o,e):We.compose(this,o)}function Bl(o,e){return Zt(o)?We.compose(o,e).define().type:We.compose(this,o).define().type}function Al(o){return wn(o)}const w=Object.assign(wn(HTMLElement),{from:Al,define:Bl,compose:Tl}),Ce={horizontal:"horizontal",vertical:"vertical"};function El(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function Cn(...o){return o.every(e=>e instanceof HTMLElement)}const mi="ArrowDown",$i="ArrowLeft",vi="ArrowRight",yi="ArrowUp",ki="End",xi="Enter",Ol="Escape",wi="Home",Ps=" ",Fl="Tab";var De;(function(o){o.ltr="ltr",o.rtl="rtl"})(De||(De={}));function Nl(o,e,t){return t<o?e:t>e?o:t}function Ts(o,e,t){return Math.min(Math.max(t,o),e)}let _l=0;function io(o=""){return`${o}${_l++}`}var Ml=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var s=i>1?void 0:i?Dl(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ml(e,t,s),s};class Q{}Y([a({attribute:"aria-atomic"})],Q.prototype,"ariaAtomic",2),Y([a({attribute:"aria-busy"})],Q.prototype,"ariaBusy",2),Y([a({attribute:"aria-controls"})],Q.prototype,"ariaControls",2),Y([a({attribute:"aria-current"})],Q.prototype,"ariaCurrent",2),Y([a({attribute:"aria-describedby"})],Q.prototype,"ariaDescribedby",2),Y([a({attribute:"aria-details"})],Q.prototype,"ariaDetails",2),Y([a({attribute:"aria-disabled"})],Q.prototype,"ariaDisabled",2),Y([a({attribute:"aria-errormessage"})],Q.prototype,"ariaErrormessage",2),Y([a({attribute:"aria-flowto"})],Q.prototype,"ariaFlowto",2),Y([a({attribute:"aria-haspopup"})],Q.prototype,"ariaHaspopup",2),Y([a({attribute:"aria-hidden"})],Q.prototype,"ariaHidden",2),Y([a({attribute:"aria-invalid"})],Q.prototype,"ariaInvalid",2),Y([a({attribute:"aria-keyshortcuts"})],Q.prototype,"ariaKeyshortcuts",2),Y([a({attribute:"aria-label"})],Q.prototype,"ariaLabel",2),Y([a({attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledby",2),Y([a({attribute:"aria-live"})],Q.prototype,"ariaLive",2),Y([a({attribute:"aria-owns"})],Q.prototype,"ariaOwns",2),Y([a({attribute:"aria-relevant"})],Q.prototype,"ariaRelevant",2),Y([a({attribute:"aria-roledescription"})],Q.prototype,"ariaRoledescription",2);const Bs={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()}},As=o=>o.closest("[dir]")?.dir==="rtl"?De.rtl:De.ltr;function ve(o){return o?typeof o=="string"?new Tt(o):"inline"in o?o.inline():o:Tt.empty}const Es=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Ll=":host([hidden]){display:none}";function I(o){return`${Ll}:host{display:${o}}`}class Vl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class oi extends Vl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new oi(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!t?(e.addStyles(i),t=r):!r&&t&&(e.removeStyles(i),t=r)}}removedCallback(e){e.removeStyles(this.styles)}}const le=oi.with(window.matchMedia("(forced-colors)"));oi.with(window.matchMedia("(prefers-color-scheme: dark)")),oi.with(window.matchMedia("(prefers-color-scheme: light)"));const Sn=CSS.supports("anchor-name: --a"),Hl="anchor"in HTMLElement.prototype,In=CSS.supports("selector(:state(g))");class rt{}function mt(o){return g`<slot name="end" ${X("end")}>${ve(o.end)}</slot>`.inline()}function Ke(o){return g`<slot name="start" ${X("start")}>${ve(o.start)}</slot>`.inline()}function nt(o,...e){const t=pi.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),pi.locate(i).forEach(r=>t.push(r))})}const zn=new Map;function l(o){return zn.get(o)??zn.set(o,In?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,e,t){if(!(!e||!o)){if(!In){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Os=new WeakMap;function Fs(o,e){if(!o||!e)return!1;if(Os.has(o))return Os.get(o).has(e);const t=new Set(Object.values(o));return Os.set(o,t),t.has(e)}function y(o,e="",t="",i,s=""){v(o,`${s}${e}`,!1),(!i||Fs(i,t))&&v(o,`${s}${t}`,!0)}const Rl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},jl={start:"start",end:"end"};var ql=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,At=(o,e,t,i)=>{for(var s=i>1?void 0:i?Wl(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ql(e,t,s),s};class at extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=io("accordion-")}expandedChanged(e,t){v(this.elementInternals,"expanded",t)}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}}At([a({attribute:"heading-level",mode:"fromView",converter:ae})],at.prototype,"headinglevel",2),At([a({mode:"boolean"})],at.prototype,"expanded",2),At([a({mode:"boolean"})],at.prototype,"disabled",2),At([a],at.prototype,"id",2);class Io extends at{constructor(){super(...arguments),this.block=!1}sizeChanged(e,t){y(this.elementInternals,e,t,Rl)}markerPositionChanged(e,t){y(this.elementInternals,e,t,jl,"align-")}blockChanged(e,t){v(this.elementInternals,"block",t)}}At([a],Io.prototype,"size",2),At([a({attribute:"marker-position"})],Io.prototype,"markerPosition",2),At([a({mode:"boolean"})],Io.prototype,"block",2),nt(Io,rt);const Gl=l("active"),lt=l("align-end"),Pn=l("align-start"),Ul=l("anchor"),Tn=l("auto-resize"),Xl=l("bad-input"),Kl=l("beige"),zo=l("block"),Yl=l("blue"),Ql=l("bold"),Zl=l("bordered"),Ye=l("brand"),Jl=l("brass"),ec=l("brown"),tc=l("center"),x=l("checked"),Po=l("circular"),oc=l("cornflower"),ic=l("cranberry"),sc=l("custom-error"),Ci=l("danger"),rc=l("dark-green"),nc=l("dark-red"),ac=l("description"),_=l("disabled"),Bn=l("display-shadow"),An=l("dot"),lc=l("end"),Ns=l("error"),Et=l("expanded"),Si=l("extra-large"),To=l("extra-small"),$t=l("filled-darker"),Ot=l("filled-lighter"),cc=l("fit-center"),dc=l("fit-contain"),hc=l("fit-cover"),uc=l("fit-none"),pc=l("flip-block"),bc=l("focus-visible"),gc=l("forest"),ct=l("ghost"),fc=l("gold"),mc=l("grape"),$c=l("has-message"),vc=l("huge"),vt=l("icon"),Ii=l("important"),Ft=l("indeterminate"),zi=l("informative"),yc=l("inline"),_s=l("inset"),En=l("inverted"),kc=l("italic"),xc=l("justify"),C=l("large"),wc=l("lavender"),Cc=l("light-teal"),Sc=l("lilac"),Ic=l("magenta"),zc=l("marigold"),Pc=l("medium"),Tc=l("mink"),Bc=l("monospace"),Bo=l("multiline"),so=l("multiple"),Ac=l("navy"),Pi=l("neutral"),On=l("nowrap"),Ec=l("numeric"),Oc=l("open"),F=l("outline"),Fc=l("pattern-mismatch"),Nc=l("peach"),_c=l("pink"),Mc=l("placeholder-shown"),Dc=l("platinum"),Lc=l("plum"),D=l("pressed"),ye=l("primary"),Vc=l("pumpkin"),Hc=l("purple"),Rc=l("range-overflow"),jc=l("range-underflow"),qc=l("red"),Wc=l("resize-both"),Gc=l("resize-horizontal"),Uc=l("resize-vertical"),dt=l("rounded"),Xc=l("royal-blue"),Kc=l("seafoam"),Ms=l("selected"),Fn=l("semibold"),Ti=l("severe"),Yc=l("shadow"),Qc=l("size-1000"),Zc=l("size-100"),Jc=l("size-200"),ed=l("size-400"),td=l("size-500"),od=l("size-600"),id=l("size-700"),sd=l("size-800"),rd=l("size-900"),P=l("small"),Ao=l("square"),nd=l("steel"),ad=l("step-mismatch"),Nn=l("strikethrough"),Eo=l("strong"),Bi=l("submenu"),B=l("subtle"),Nt=l("success"),ld=l("teal"),yt=l("tint"),Oo=l("tiny"),cd=l("too-long"),dd=l("too-short"),H=l("transparent"),_n=l("truncate"),hd=l("type-mismatch"),_t=l("underline"),ud=l("user-invalid"),pd=l("valid"),bd=l("value-missing"),z=l("vertical"),Mt=l("warning"),O="var(--colorNeutralForeground1)",Ds="var(--colorNeutralForeground1Hover)",gd="var(--colorNeutralForeground1Pressed)",Le="var(--colorNeutralForeground2)",Fo="var(--colorNeutralForeground2Hover)",No="var(--colorNeutralForeground2Pressed)",fd="var(--colorNeutralForeground2Selected)",Ai="var(--colorNeutralForeground2BrandHover)",Ei="var(--colorNeutralForeground2BrandPressed)",md="var(--colorNeutralForeground2BrandSelected)",be="var(--colorNeutralForeground3)",$d="var(--colorNeutralForeground3Hover)",vd="var(--colorNeutralForeground3Pressed)",Ls="var(--colorNeutralForeground4)",A="var(--colorNeutralForegroundDisabled)",yd="var(--colorBrandForegroundLink)",kd="var(--colorBrandForegroundLinkHover)",xd="var(--colorBrandForegroundLinkPressed)",wd="var(--colorNeutralForeground2Link)",Cd="var(--colorNeutralForeground2LinkHover)",Sd="var(--colorNeutralForeground2LinkPressed)",Mn="var(--colorCompoundBrandForeground1Hover)",Id="var(--colorCompoundBrandForeground1Pressed)",ht="var(--colorNeutralForegroundOnBrand)",Dt="var(--colorNeutralForegroundInverted)",zd="var(--colorNeutralForegroundInvertedHover)",Pd="var(--colorNeutralForegroundInvertedPressed)",Dn="var(--colorNeutralForegroundStaticInverted)",Vs="var(--colorBrandForeground1)",Td="var(--colorBrandForeground2)",Bd="var(--colorNeutralForeground1Static)",E="var(--colorNeutralBackground1)",Oi="var(--colorNeutralBackground1Hover)",Fi="var(--colorNeutralBackground1Pressed)",Ln="var(--colorNeutralBackground1Selected)",_o="var(--colorNeutralBackground3)",Ad="var(--colorNeutralBackground4)",Ed="var(--colorNeutralBackground5)",Ni="var(--colorNeutralBackground6)",Vn="var(--colorNeutralBackgroundInverted)",Od="var(--colorSubtleBackground)",_i="var(--colorSubtleBackgroundHover)",ro="var(--colorSubtleBackgroundPressed)",Fd="var(--colorSubtleBackgroundSelected)",Be="var(--colorTransparentBackground)",Hs="var(--colorTransparentBackgroundHover)",Rs="var(--colorTransparentBackgroundPressed)",Nd="var(--colorTransparentBackgroundSelected)",kt="var(--colorNeutralBackgroundDisabled)",js="var(--colorBackgroundOverlay)",qs="var(--colorBrandBackground)",Hn="var(--colorBrandBackgroundHover)",Rn="var(--colorBrandBackgroundPressed)",_d="var(--colorBrandBackgroundSelected)",Lt="var(--colorCompoundBrandBackground)",no="var(--colorCompoundBrandBackgroundHover)",ao="var(--colorCompoundBrandBackgroundPressed)",jn="var(--colorBrandBackgroundStatic)",Md="var(--colorBrandBackground2)",Qe="var(--colorNeutralStrokeAccessible)",Vt="var(--colorNeutralStrokeAccessibleHover)",Ht="var(--colorNeutralStrokeAccessiblePressed)",Ze="var(--colorNeutralStroke1)",lo="var(--colorNeutralStroke1Hover)",Mo="var(--colorNeutralStroke1Pressed)",Do="var(--colorNeutralStroke2)",Dd="var(--colorNeutralStroke3)",Ld="var(--colorNeutralStrokeOnBrand2)",qn="var(--colorBrandStroke1)",Ws="var(--colorBrandStroke2)",Rt="var(--colorCompoundBrandStroke)",Vd="var(--colorCompoundBrandStrokeHover)",Wn="var(--colorCompoundBrandStrokePressed)",Ae="var(--colorNeutralStrokeDisabled)",ce="var(--colorTransparentStroke)",Gs="var(--colorTransparentStrokeInteractive)",Us="var(--colorStrokeFocus1)",Ve="var(--colorStrokeFocus2)",Hd="var(--colorNeutralShadowAmbient)",Rd="var(--colorNeutralShadowKey)",Gn="var(--colorPaletteRedBackground1)",jd="var(--colorPaletteRedBackground2)",Un="var(--colorPaletteRedBackground3)",Xn="var(--colorPaletteRedBorder1)",Xs="var(--colorPaletteRedBorder2)",Kn="var(--colorPaletteRedForeground1)",qd="var(--colorPaletteRedForeground2)",Yn="var(--colorPaletteRedForeground3)",Qn="var(--colorPaletteGreenBackground1)",Zn="var(--colorPaletteGreenBackground3)",Wd="var(--colorPaletteGreenBorder1)",Gd="var(--colorPaletteGreenBorder2)",Ud="var(--colorPaletteGreenForeground1)",Xd="var(--colorPaletteGreenForeground2)",Kd="var(--colorPaletteGreenForeground3)",Jn="var(--colorPaletteDarkOrangeBackground1)",ea="var(--colorPaletteDarkOrangeBackground3)",ta="var(--colorPaletteDarkOrangeBorder1)",Yd="var(--colorPaletteDarkOrangeForeground1)",oa="var(--colorPaletteDarkOrangeForeground3)",Qd="var(--colorPaletteYellowBackground1)",Zd="var(--colorPaletteYellowBackground3)",Jd="var(--colorPaletteYellowBorder1)",Ks="var(--colorPaletteYellowForeground2)",ia="var(--colorPaletteMarigoldBackground2)",eh="var(--colorPaletteMarigoldBackground3)",th="var(--colorPaletteMarigoldForeground2)",oh="var(--colorPaletteAnchorBackground2)",ih="var(--colorPaletteAnchorForeground2)",sh="var(--colorPaletteBeigeBackground2)",rh="var(--colorPaletteBeigeForeground2)",nh="var(--colorPaletteBlueBackground2)",ah="var(--colorPaletteBlueForeground2)",lh="var(--colorPaletteBrassBackground2)",ch="var(--colorPaletteBrassForeground2)",dh="var(--colorPaletteBrownBackground2)",hh="var(--colorPaletteBrownForeground2)",uh="var(--colorPaletteCornflowerBackground2)",ph="var(--colorPaletteCornflowerForeground2)",bh="var(--colorPaletteCranberryBackground2)",gh="var(--colorPaletteCranberryForeground2)",fh="var(--colorPaletteDarkGreenBackground2)",mh="var(--colorPaletteDarkGreenForeground2)",$h="var(--colorPaletteDarkRedBackground2)",vh="var(--colorPaletteDarkRedForeground2)",yh="var(--colorPaletteForestBackground2)",kh="var(--colorPaletteForestForeground2)",xh="var(--colorPaletteGoldBackground2)",wh="var(--colorPaletteGoldForeground2)",Ch="var(--colorPaletteGrapeBackground2)",Sh="var(--colorPaletteGrapeForeground2)",Ih="var(--colorPaletteLavenderBackground2)",zh="var(--colorPaletteLavenderForeground2)",Ph="var(--colorPaletteLightTealBackground2)",Th="var(--colorPaletteLightTealForeground2)",Bh="var(--colorPaletteLilacBackground2)",Ah="var(--colorPaletteLilacForeground2)",Eh="var(--colorPaletteMagentaBackground2)",Oh="var(--colorPaletteMagentaForeground2)",Fh="var(--colorPaletteMinkBackground2)",Nh="var(--colorPaletteMinkForeground2)",_h="var(--colorPaletteNavyBackground2)",Mh="var(--colorPaletteNavyForeground2)",Dh="var(--colorPalettePeachBackground2)",Lh="var(--colorPalettePeachForeground2)",Vh="var(--colorPalettePinkBackground2)",Hh="var(--colorPalettePinkForeground2)",Rh="var(--colorPalettePlatinumBackground2)",jh="var(--colorPalettePlatinumForeground2)",qh="var(--colorPalettePlumBackground2)",Wh="var(--colorPalettePlumForeground2)",Gh="var(--colorPalettePumpkinBackground2)",Uh="var(--colorPalettePumpkinForeground2)",Xh="var(--colorPalettePurpleBackground2)",Kh="var(--colorPalettePurpleForeground2)",Yh="var(--colorPaletteRoyalBlueBackground2)",Qh="var(--colorPaletteRoyalBlueForeground2)",Zh="var(--colorPaletteSeafoamBackground2)",Jh="var(--colorPaletteSeafoamForeground2)",eu="var(--colorPaletteSteelBackground2)",tu="var(--colorPaletteSteelForeground2)",ou="var(--colorPaletteTealBackground2)",iu="var(--colorPaletteTealForeground2)",Mi="var(--borderRadiusNone)",He="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",sa="var(--borderRadiusLarge)",ra="var(--borderRadiusXLarge)",Se="var(--borderRadiusCircular)",k="var(--fontFamilyBase)",su="var(--fontFamilyMonospace)",ru="var(--fontFamilyNumeric)",Lo="var(--fontSizeBase100)",G="var(--fontSizeBase200)",M="var(--fontSizeBase300)",ke="var(--fontSizeBase400)",co="var(--fontSizeBase500)",Di="var(--fontSizeBase600)",na="var(--fontSizeHero700)",aa="var(--fontSizeHero800)",la="var(--fontSizeHero900)",ca="var(--fontSizeHero1000)",R="var(--fontWeightRegular)",nu="var(--fontWeightMedium)",U="var(--fontWeightSemibold)",Li="var(--fontWeightBold)",Vi="var(--lineHeightBase100)",ee="var(--lineHeightBase200)",j="var(--lineHeightBase300)",Ie="var(--lineHeightBase400)",Hi="var(--lineHeightBase500)",da="var(--lineHeightBase600)",ha="var(--lineHeightHero700)",ua="var(--lineHeightHero800)",pa="var(--lineHeightHero900)",ba="var(--lineHeightHero1000)",Ys="var(--shadow2)",Ri="var(--shadow4)",au="var(--shadow8)",Qs="var(--shadow16)",lu="var(--shadow28)",ga="var(--shadow64)",N="var(--strokeWidthThin)",ze="var(--strokeWidthThick)",ge="var(--strokeWidthThicker)",Zs="var(--strokeWidthThickest)",te="var(--spacingHorizontalXXS)",Ee="var(--spacingHorizontalXS)",de="var(--spacingHorizontalSNudge)",Je="var(--spacingHorizontalS)",fe="var(--spacingHorizontalMNudge)",xe="var(--spacingHorizontalM)",cu="var(--spacingHorizontalL)",du="var(--spacingHorizontalXL)",hu="var(--spacingHorizontalXXL)",Vo="var(--spacingVerticalXXS)",ho="var(--spacingVerticalXS)",et="var(--spacingVerticalSNudge)",oe="var(--spacingVerticalS)",uo="var(--spacingVerticalMNudge)",uu="var(--spacingVerticalM)",ji="var(--spacingVerticalL)",Ho="var(--spacingVerticalXXL)",Js="var(--durationUltraFast)",er="var(--durationFaster)",qi="var(--durationNormal)",tr="var(--durationGentle)",fa="var(--durationSlow)",ma="var(--durationSlower)",Wi="var(--durationUltraSlow)",pu="var(--curveAccelerateMax)",jt="var(--curveAccelerateMid)",bu="var(--curveAccelerateMin)",or="var(--curveDecelerateMax)",qt="var(--curveDecelerateMid)",gu="var(--curveDecelerateMin)",fu="var(--curveEasyEaseMax)",Gi="var(--curveEasyEase)",ir="var(--curveLinear)",mu=p`
|
|
2
|
+
${I("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${xe} ${fe};border-radius:${T};font-family:${k};font-size:${M};font-weight:${R};line-height:${j};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${Be};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:${He}}: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:${Je};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${xe}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Je};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${He};outline:none;border:2px solid ${Us};box-shadow:inset 0 0 0 1px ${Ve}}:host(${_}) .button{color:${A}}:host(${_}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${Et}) .content{display:block}:host(${Et}) .default-marker-collapsed,:host(${Et}) ::slotted([slot='marker-collapsed']),:host(:not(${Et})) :is(.default-marker-expanded,.content),:host(:not(${Et})) ::slotted([slot='marker-expanded']){display:none}:host(${Et}) ::slotted([slot='marker-expanded']),:host(:not(${Et})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${M};line-height:${j}}:host(${P}) .heading{font-size:${G};line-height:${ee}}:host(${C}) .heading{font-size:${ke};line-height:${Ie}}:host(${Si}) .heading{font-size:${co};line-height:${Hi}}:host(${lt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${lt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Je};padding-inline-end:0}:host(${lt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${lt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${xe}}:host(${lt}:has([slot='start'])) .heading{padding-inline:${fe} ${xe}}:host(${zo}${lt}) .heading{grid-template-columns:auto 1fr}:host(${lt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,$u=g.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -14,7 +14,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
14
14
|
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
15
15
|
fill="currentColor"
|
|
16
16
|
/>
|
|
17
|
-
</svg>`),
|
|
17
|
+
</svg>`),vu=g.partial(`<svg
|
|
18
18
|
width="20"
|
|
19
19
|
height="20"
|
|
20
20
|
viewBox="0 0 20 20"
|
|
@@ -27,38 +27,38 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
27
27
|
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
28
28
|
fill="currentColor"
|
|
29
29
|
/>
|
|
30
|
-
</svg>`);function
|
|
31
|
-
${
|
|
30
|
+
</svg>`);function yu(o={}){return g`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${X("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${Ke(o)}<slot name="marker-expanded">${ve(o.expandedIcon)}</slot><slot name="marker-collapsed">${ve(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const ku=yu({collapsedIcon:$u,expandedIcon:vu}),xu=Io.compose({name:`${b.prefix}-accordion-item`,template:ku,styles:mu});xu.define(b.registry);const sr={single:"single",multi:"multi"};var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,$a=(o,e,t,i)=>{for(var s=i>1?void 0:i?Cu(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&wu(e,t,s),s};class rr extends w{constructor(){super(...arguments),this.expandmode=sr.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>f.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t instanceof at&&(t.addEventListener("click",this.expandedChangedHandler),f.getNotifier(t).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{f.getNotifier(t).unsubscribe(this,"disabled"),f.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof at&&(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.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof at&&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,s)=>{i instanceof at&&(this.activeItemIndex===s?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}$a([a({attribute:"expand-mode"})],rr.prototype,"expandmode",2),$a([$],rr.prototype,"slottedAccordionItems",2);const Su=p`
|
|
31
|
+
${I("flex")}
|
|
32
32
|
|
|
33
|
-
:host{flex-direction:column;width:100%;contain:content}`;function
|
|
34
|
-
${
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function Iu(){return g`<template><slot ${K({property:"slottedAccordionItems",filter:Bt()})}></slot></template>`}const zu=Iu(),Pu=rr.compose({name:`${b.prefix}-accordion`,template:zu,styles:Su});Pu.define(b.registry);const va={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},ya={circular:"circular",rounded:"rounded",square:"square"},ka={small:"small",medium:"medium",large:"large"},Ui={submit:"submit",reset:"reset",button:"button"},Tu=va,Bu=ya,Au=ka,Eu={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Ou=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Oe=(o,e,t,i)=>{for(var s=i>1?void 0:i?Fu(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ou(e,t,s),s};class tt extends w{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Eu){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===xi){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.ariaHidden="true",e.tabIndex=-1,e}}Oe([a],tt.prototype,"download",2),Oe([a],tt.prototype,"href",2),Oe([a],tt.prototype,"hreflang",2),Oe([a],tt.prototype,"ping",2),Oe([a],tt.prototype,"referrerpolicy",2),Oe([a],tt.prototype,"rel",2),Oe([a],tt.prototype,"target",2),Oe([a],tt.prototype,"type",2);class po extends tt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,Tu)}shapeChanged(e,t){y(this.elementInternals,e,t,Bu)}sizeChanged(e,t){y(this.elementInternals,e,t,Au)}iconOnlyChanged(e,t){v(this.elementInternals,"icon",!!t)}}Oe([a],po.prototype,"appearance",2),Oe([a],po.prototype,"shape",2),Oe([a],po.prototype,"size",2),Oe([a({attribute:"icon-only",mode:"boolean"})],po.prototype,"iconOnly",2),nt(po,rt);const xa=p`
|
|
34
|
+
${I("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${
|
|
37
|
-
${
|
|
36
|
+
:host{--icon-spacing:${de};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:${E};color:${O};border:${N} solid ${Ze};padding:0 ${xe};min-width:96px;border-radius:${T};font-size:${M};font-family:${k};font-weight:${U};line-height:${j};transition-duration:${er};transition-property:background,border,color;transition-timing-function:${Gi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Oi};color:${Ds};border-color:${lo}}:host(:hover:active){background-color:${Fi};border-color:${Mo};color:${gd};outline-style:none}:host(:focus-visible){border-color:${ce};outline:${ze} solid ${ce};box-shadow:${Ri},0 0 0 2px ${Ve}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){flex-shrink:0}:host(:not(${vt})) :is([slot='end'],:host(:not(${vt}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${vt}){min-width:32px;max-width:32px}:host(${P}){--icon-spacing:${Ee};min-height:24px;min-width:64px;padding:0 ${Je};border-radius:${He};font-size:${G};line-height:${ee};font-weight:${R}}:host(${P}${vt}){min-width:24px;max-width:24px}:host(${C}){min-height:40px;border-radius:${sa};padding:0 ${cu};font-size:${ke};line-height:${Ie}}:host(${C}${vt}){min-width:40px;max-width:40px}:host(${C}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Po},${Po}:focus-visible)){border-radius:${Se}}:host(:is(${Ao},${Ao}:focus-visible)){border-radius:${Mi}}:host(${ye}){background-color:${qs};color:${ht};border-color:transparent}:host(${ye}:hover){background-color:${Hn}}:host(${ye}:is(:hover,:hover:active)){border-color:transparent;color:${ht}}:host(${ye}:hover:active){background-color:${Rn}}:host(${ye}:focus-visible){border-color:${ht};box-shadow:${Ys},0 0 0 2px ${Ve}}:host(${F}){background-color:${Be}}:host(${F}:hover){background-color:${Hs}}:host(${F}:hover:active){background-color:${Rs}}:host(${B}){background-color:${Od};color:${Le};border-color:transparent}:host(${B}:hover){background-color:${_i};color:${Fo};border-color:transparent}:host(${B}:hover:active){background-color:${ro};color:${No};border-color:transparent}:host(${B}:hover) ::slotted(svg){fill:${Ai}}:host(${B}:hover:active) ::slotted(svg){fill:${Ei}}:host(${H}){background-color:${Be};color:${Le}}:host(${H}:hover){background-color:${Hs};color:${Ai}}:host(${H}:hover:active){background-color:${Rs};color:${Ei}}:host(:is(${H},${H}:is(:hover,:active))){border-color:transparent}`,Xi=p`
|
|
37
|
+
${xa}
|
|
38
38
|
|
|
39
|
-
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${
|
|
40
|
-
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${
|
|
41
|
-
${
|
|
39
|
+
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${kt};border-color:${Ae};color:${A};cursor:not-allowed}:host(${ye}:is(:disabled,[disabled-focusable])),:host(${ye}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${F}:is(:disabled,[disabled-focusable])),:host(${F}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Be}}:host(${B}:is(:disabled,[disabled-focusable])),:host(${B}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Be};border-color:transparent}:host(${H}:is(:disabled,[disabled-focusable])),:host(${H}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${Be}}`.withBehaviors(le(p`
|
|
40
|
+
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${ye}: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}`)),Nu=p`
|
|
41
|
+
${xa}
|
|
42
42
|
|
|
43
|
-
::slotted(a){position:absolute;inset:0}`.withBehaviors(
|
|
44
|
-
:host{border-color:LinkText;color:LinkText}`));function
|
|
45
|
-
${
|
|
46
|
-
${
|
|
43
|
+
::slotted(a){position:absolute;inset:0}`.withBehaviors(le(p`
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function _u(o={}){return g`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ke(o)}<span class="content" part="content"><slot></slot></span>${mt(o)}</template>`}const Mu=_u(),Du=po.compose({name:`${b.prefix}-anchor-button`,template:Mu,styles:Nu});Du.define(b.registry);const Lu=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Vu=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Hu=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Ru=/\s+/g,ju=/[\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 qu(o,e,t){let i="";const s=o.split(" ");return s.length!==0&&(i+=s[0].charAt(0).toUpperCase()),t||(s.length===2?i+=s[1].charAt(0).toUpperCase():s.length===3&&(i+=s[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function Wu(o){return o=o.replace(Lu,""),o=o.replace(Vu,""),o=o.replace(Ru," "),o=o.trim(),o}function Gu(o,e,t){return!o||(o=Wu(o),ju.test(o)||!t?.allowPhoneInitials&&Hu.test(o))?"":qu(o,e,t?.firstInitialOnly)}const wa={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Ca={neutral:"neutral",brand:"brand",colorful:"colorful",...wa};var Uu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,xt=(o,e,t,i)=>{for(var s=i>1?void 0:i?Xu(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Uu(e,t,s),s};class Ki extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}xt([a],Ki.prototype,"name",2),xt([a],Ki.prototype,"initials",2),xt([a],Ki.prototype,"active",2);const Wt=class vr extends Ki{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??Gu(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Ca.colorful,t=this.currentColor;this.currentColor=e&&this.colorId?this.colorId:e?vr.colors[Yu(this.name??"")%vr.colors.length]:this.color??Ca.neutral,y(this.elementInternals,t,this.currentColor)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}};Wt.colors=Object.values(wa),xt([a],Wt.prototype,"shape",2),xt([a],Wt.prototype,"appearance",2),xt([a({converter:ae})],Wt.prototype,"size",2),xt([a],Wt.prototype,"color",2),xt([a({attribute:"color-id"})],Wt.prototype,"colorId",2);let Ku=Wt;const Yu=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),s=t%8;e^=(i<<s)+(i>>8-s)}return e},wt={fastOutSlowInMax:or,fastOutSlowInMid:qt,fastOutSlowInMin:gu,slowOutFastInMax:pu,slowOutFastInMid:jt,slowOutFastInMin:bu,fastEase:fu,normalEase:Gi,nullEasing:ir},Qu=p`
|
|
45
|
+
${I("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${k};font-weight:${U};font-size:${M};border-radius:${Se};color:${be};background-color:${Ni};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${Se}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${N}) ${E}}: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 ${ze}) ${E}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Lo};font-weight:${R}}: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:${G}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ke}}: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:${co}}: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:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${He}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${sa}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${ra}}:host(${Ye}){color:${Dn};background-color:${jn}}:host(${nc}){color:${vh};background-color:${$h}}:host(${ic}){color:${gh};background-color:${bh}}:host(${qc}){color:${qd};background-color:${jd}}:host(${Vc}){color:${Uh};background-color:${Gh}}:host(${Nc}){color:${Lh};background-color:${Dh}}:host(${zc}){color:${th};background-color:${ia}}:host(${fc}){color:${wh};background-color:${xh}}:host(${Jl}){color:${ch};background-color:${lh}}:host(${ec}){color:${hh};background-color:${dh}}:host(${gc}){color:${kh};background-color:${yh}}:host(${Kc}){color:${Jh};background-color:${Zh}}:host(${rc}){color:${mh};background-color:${fh}}:host(${Cc}){color:${Th};background-color:${Ph}}:host(${ld}){color:${iu};background-color:${ou}}:host(${nd}){color:${tu};background-color:${eu}}:host(${Yl}){color:${ah};background-color:${nh}}:host(${Xc}){color:${Qh};background-color:${Yh}}:host(${oc}){color:${ph};background-color:${uh}}:host(${Ac}){color:${Mh};background-color:${_h}}:host(${wc}){color:${zh};background-color:${Ih}}:host(${Hc}){color:${Kh};background-color:${Xh}}:host(${mc}){color:${Sh};background-color:${Ch}}:host(${Sc}){color:${Ah};background-color:${Bh}}:host(${_c}){color:${Hh};background-color:${Vh}}:host(${Ic}){color:${Oh};background-color:${Eh}}:host(${Lc}){color:${Wh};background-color:${qh}}:host(${Kl}){color:${rh};background-color:${sh}}:host(${Tc}){color:${Nh};background-color:${Fh}}:host(${Dc}){color:${jh};background-color:${Rh}}:host(${Ul}){color:${ih};background-color:${oh}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Wi},${er};transition-delay:${wt.fastEase},${wt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Wi}),${ma};transition-delay:${wt.fastEase}),${wt.nullEasing})}:host([active])::before{box-shadow:${au};border-style:solid;border-color:${jn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ze});border-width:${ze}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}: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 * ${Zs});border-width:${Zs}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Ri}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Qs}}: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:${lu}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Wi},${er};transition-delay:${wt.fastOutSlowInMin},${wt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Wi},${ma};transition-delay:${wt.fastOutSlowInMin},${wt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,Zu=g`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function Ju(){return g`<slot>${o=>o.name||o.initials?o.generateInitials():Zu}</slot><slot name="badge"></slot>`}const ep=Ju(),tp=Ku.compose({name:`${b.prefix}-avatar`,template:ep,styles:Qu});tp.define(b.registry);const Sa={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ia={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},op={circular:"circular",rounded:"rounded",square:"square"},ip={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var sp=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,Yi=(o,e,t,i)=>{for(var s=i>1?void 0:i?rp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&sp(e,t,s),s};class bo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Sa.filled,this.color=Ia.brand}appearanceChanged(e,t){y(this.elementInternals,e,t,Sa)}colorChanged(e,t){y(this.elementInternals,e,t,Ia)}shapeChanged(e,t){y(this.elementInternals,e,t,op)}sizeChanged(e,t){y(this.elementInternals,e,t,ip)}}Yi([a],bo.prototype,"appearance",2),Yi([a],bo.prototype,"color",2),Yi([a],bo.prototype,"shape",2),Yi([a],bo.prototype,"size",2),nt(bo,rt);const za=p.partial`
|
|
46
|
+
${I("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-weight: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
line-height: ${
|
|
51
|
+
font-family: ${k};
|
|
52
|
+
font-weight: ${U};
|
|
53
|
+
font-size: ${G};
|
|
54
|
+
line-height: ${ee};
|
|
55
55
|
min-width: 20px;
|
|
56
56
|
height: 20px;
|
|
57
|
-
padding-inline: calc(${
|
|
58
|
-
border-radius: ${
|
|
59
|
-
border-color: ${
|
|
60
|
-
background-color: ${
|
|
61
|
-
color: ${
|
|
57
|
+
padding-inline: calc(${Ee} + ${te});
|
|
58
|
+
border-radius: ${Se};
|
|
59
|
+
border-color: ${ce};
|
|
60
|
+
background-color: ${qs};
|
|
61
|
+
color: ${ht};
|
|
62
62
|
contain: content;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
66
66
|
font-size: 12px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
:host(:not(${
|
|
69
|
+
:host(:not(${ct}))::after {
|
|
70
70
|
position: absolute;
|
|
71
71
|
content: '';
|
|
72
72
|
top: 0;
|
|
@@ -74,12 +74,12 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
74
74
|
bottom: 0;
|
|
75
75
|
right: 0;
|
|
76
76
|
border-style: solid;
|
|
77
|
-
border-width: ${
|
|
77
|
+
border-width: ${N};
|
|
78
78
|
border-color: inherit;
|
|
79
79
|
border-radius: inherit;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
82
|
-
:host(${
|
|
81
|
+
`,Pa=p.partial`
|
|
82
|
+
:host(${Oo}) {
|
|
83
83
|
width: 6px;
|
|
84
84
|
height: 6px;
|
|
85
85
|
font-size: 4px;
|
|
@@ -87,10 +87,10 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
87
87
|
padding-inline: 0;
|
|
88
88
|
min-width: unset;
|
|
89
89
|
}
|
|
90
|
-
:host(${
|
|
90
|
+
:host(${Oo}) ::slotted(svg) {
|
|
91
91
|
font-size: 6px;
|
|
92
92
|
}
|
|
93
|
-
:host(${
|
|
93
|
+
:host(${To}) {
|
|
94
94
|
width: 10px;
|
|
95
95
|
height: 10px;
|
|
96
96
|
font-size: 6px;
|
|
@@ -98,289 +98,289 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
98
98
|
padding-inline: 0;
|
|
99
99
|
min-width: unset;
|
|
100
100
|
}
|
|
101
|
-
:host(${
|
|
101
|
+
:host(${To}) ::slotted(svg) {
|
|
102
102
|
font-size: 10px;
|
|
103
103
|
}
|
|
104
|
-
:host(${
|
|
104
|
+
:host(${P}) {
|
|
105
105
|
min-width: 16px;
|
|
106
106
|
height: 16px;
|
|
107
|
-
font-size: ${
|
|
108
|
-
line-height: ${
|
|
109
|
-
padding-inline: calc(${
|
|
107
|
+
font-size: ${Lo};
|
|
108
|
+
line-height: ${Vi};
|
|
109
|
+
padding-inline: calc(${te} + ${te});
|
|
110
110
|
}
|
|
111
|
-
:host(${
|
|
111
|
+
:host(${P}) ::slotted(svg) {
|
|
112
112
|
font-size: 12px;
|
|
113
113
|
}
|
|
114
114
|
:host(${C}) {
|
|
115
115
|
min-width: 24px;
|
|
116
116
|
height: 24px;
|
|
117
|
-
font-size: ${
|
|
118
|
-
line-height: ${
|
|
119
|
-
padding-inline: calc(${
|
|
117
|
+
font-size: ${G};
|
|
118
|
+
line-height: ${ee};
|
|
119
|
+
padding-inline: calc(${Ee} + ${te});
|
|
120
120
|
}
|
|
121
121
|
:host(${C}) ::slotted(svg) {
|
|
122
122
|
font-size: 16px;
|
|
123
123
|
}
|
|
124
|
-
:host(${
|
|
124
|
+
:host(${Si}) {
|
|
125
125
|
min-width: 32px;
|
|
126
126
|
height: 32px;
|
|
127
|
-
font-size: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
padding-inline: calc(${
|
|
127
|
+
font-size: ${G};
|
|
128
|
+
line-height: ${ee};
|
|
129
|
+
padding-inline: calc(${de} + ${te});
|
|
130
130
|
}
|
|
131
|
-
:host(${
|
|
131
|
+
:host(${Si}) ::slotted(svg) {
|
|
132
132
|
font-size: 20px;
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
135
|
-
:host(${
|
|
136
|
-
background-color: ${
|
|
137
|
-
color: ${
|
|
134
|
+
`,Ta=p.partial`
|
|
135
|
+
:host(${Ci}) {
|
|
136
|
+
background-color: ${Un};
|
|
137
|
+
color: ${ht};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
:host(${
|
|
141
|
-
background-color: ${
|
|
142
|
-
color: ${
|
|
140
|
+
:host(${Ii}) {
|
|
141
|
+
background-color: ${O};
|
|
142
|
+
color: ${E};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
:host(${
|
|
146
|
-
background-color: ${
|
|
147
|
-
color: ${
|
|
145
|
+
:host(${zi}) {
|
|
146
|
+
background-color: ${Ed};
|
|
147
|
+
color: ${be};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
:host(${
|
|
151
|
-
background-color: ${
|
|
152
|
-
color: ${
|
|
150
|
+
:host(${Ti}) {
|
|
151
|
+
background-color: ${ea};
|
|
152
|
+
color: ${ht};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
:host(${
|
|
156
|
-
background-color: ${
|
|
157
|
-
color: ${
|
|
155
|
+
:host(${B}) {
|
|
156
|
+
background-color: ${E};
|
|
157
|
+
color: ${O};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
:host(${
|
|
161
|
-
background-color: ${
|
|
162
|
-
color: ${
|
|
160
|
+
:host(${Nt}) {
|
|
161
|
+
background-color: ${Zn};
|
|
162
|
+
color: ${ht};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
:host(${
|
|
166
|
-
background-color: ${
|
|
167
|
-
color: ${
|
|
165
|
+
:host(${Mt}) {
|
|
166
|
+
background-color: ${Zd};
|
|
167
|
+
color: ${Bd};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
170
|
-
:host(${
|
|
171
|
-
color: ${
|
|
169
|
+
`,Ba=p.partial`
|
|
170
|
+
:host(${ct}) {
|
|
171
|
+
color: ${Vs};
|
|
172
172
|
background-color: initial;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
:host(${
|
|
176
|
-
color: ${
|
|
175
|
+
:host(${ct}${Ci}) {
|
|
176
|
+
color: ${Yn};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
:host(${
|
|
180
|
-
color: ${
|
|
179
|
+
:host(${ct}${Ii}) {
|
|
180
|
+
color: ${O};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
:host(${
|
|
184
|
-
color: ${
|
|
183
|
+
:host(${ct}${zi}) {
|
|
184
|
+
color: ${be};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
:host(${
|
|
188
|
-
color: ${
|
|
187
|
+
:host(${ct}${Ti}) {
|
|
188
|
+
color: ${oa};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
:host(${
|
|
192
|
-
color: ${
|
|
191
|
+
:host(${ct}${B}) {
|
|
192
|
+
color: ${Dt};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
:host(${
|
|
196
|
-
color: ${
|
|
195
|
+
:host(${ct}${Nt}) {
|
|
196
|
+
color: ${Kd};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
:host(${
|
|
200
|
-
color: ${
|
|
199
|
+
:host(${ct}${Mt}) {
|
|
200
|
+
color: ${Ks};
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
203
|
-
:host(${
|
|
202
|
+
`,np=p.partial`
|
|
203
|
+
:host(${F}) {
|
|
204
204
|
border-color: currentColor;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${Vs};
|
|
206
206
|
background-color: initial;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
:host(${
|
|
210
|
-
color: ${
|
|
209
|
+
:host(${F}${Ci}) {
|
|
210
|
+
color: ${Yn};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
:host(${
|
|
214
|
-
color: ${
|
|
215
|
-
border-color: ${
|
|
213
|
+
:host(${F}${Ii}) {
|
|
214
|
+
color: ${be};
|
|
215
|
+
border-color: ${Qe};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
:host(${
|
|
219
|
-
color: ${
|
|
220
|
-
border-color: ${
|
|
218
|
+
:host(${F}${zi}) {
|
|
219
|
+
color: ${be};
|
|
220
|
+
border-color: ${Do};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
:host(${
|
|
224
|
-
color: ${
|
|
223
|
+
:host(${F}${Ti}) {
|
|
224
|
+
color: ${oa};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
:host(${
|
|
228
|
-
color: ${
|
|
227
|
+
:host(${F}${B}) {
|
|
228
|
+
color: ${Dn};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
:host(${
|
|
232
|
-
color: ${
|
|
231
|
+
:host(${F}${Nt}) {
|
|
232
|
+
color: ${Xd};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
:host(${
|
|
236
|
-
color: ${
|
|
235
|
+
:host(${F}${Mt}) {
|
|
236
|
+
color: ${Ks};
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
239
|
-
:host(${
|
|
240
|
-
background-color: ${
|
|
241
|
-
color: ${
|
|
242
|
-
border-color: ${
|
|
238
|
+
`,ap=p.partial`
|
|
239
|
+
:host(${yt}) {
|
|
240
|
+
background-color: ${Md};
|
|
241
|
+
color: ${Td};
|
|
242
|
+
border-color: ${Ws};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
:host(${
|
|
246
|
-
background-color: ${
|
|
247
|
-
color: ${
|
|
248
|
-
border-color: ${
|
|
245
|
+
:host(${yt}${Ci}) {
|
|
246
|
+
background-color: ${Gn};
|
|
247
|
+
color: ${Kn};
|
|
248
|
+
border-color: ${Xn};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
:host(${
|
|
252
|
-
background-color: ${
|
|
253
|
-
color: ${
|
|
254
|
-
border-color: ${
|
|
251
|
+
:host(${yt}${Ii}) {
|
|
252
|
+
background-color: ${be};
|
|
253
|
+
color: ${E};
|
|
254
|
+
border-color: ${ce};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
:host(${
|
|
258
|
-
background-color: ${
|
|
259
|
-
color: ${
|
|
260
|
-
border-color: ${
|
|
257
|
+
:host(${yt}${zi}) {
|
|
258
|
+
background-color: ${Ad};
|
|
259
|
+
color: ${be};
|
|
260
|
+
border-color: ${Do};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
:host(${
|
|
264
|
-
background-color: ${
|
|
265
|
-
color: ${
|
|
266
|
-
border-color: ${
|
|
263
|
+
:host(${yt}${Ti}) {
|
|
264
|
+
background-color: ${Jn};
|
|
265
|
+
color: ${Yd};
|
|
266
|
+
border-color: ${ta};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
:host(${
|
|
270
|
-
background-color: ${
|
|
271
|
-
color: ${
|
|
272
|
-
border-color: ${
|
|
269
|
+
:host(${yt}${B}) {
|
|
270
|
+
background-color: ${E};
|
|
271
|
+
color: ${be};
|
|
272
|
+
border-color: ${Do};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
:host(${
|
|
276
|
-
background-color: ${
|
|
277
|
-
color: ${
|
|
278
|
-
border-color: ${
|
|
275
|
+
:host(${yt}${Nt}) {
|
|
276
|
+
background-color: ${Qn};
|
|
277
|
+
color: ${Ud};
|
|
278
|
+
border-color: ${Gd};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
:host(${
|
|
282
|
-
background-color: ${
|
|
283
|
-
color: ${
|
|
284
|
-
border-color: ${
|
|
281
|
+
:host(${yt}${Mt}) {
|
|
282
|
+
background-color: ${Qd};
|
|
283
|
+
color: ${Ks};
|
|
284
|
+
border-color: ${Jd};
|
|
285
285
|
}
|
|
286
|
+
`,Aa=p.partial`
|
|
287
|
+
font-family: ${k};
|
|
288
|
+
font-size: ${M};
|
|
289
|
+
line-height: ${j};
|
|
290
|
+
font-weight: ${R};
|
|
286
291
|
`;p.partial`
|
|
287
|
-
font-family: ${
|
|
288
|
-
font-size: ${
|
|
289
|
-
line-height: ${
|
|
290
|
-
font-weight: ${
|
|
292
|
+
font-family: ${k};
|
|
293
|
+
font-size: ${M};
|
|
294
|
+
line-height: ${j};
|
|
295
|
+
font-weight: ${U};
|
|
291
296
|
`,p.partial`
|
|
292
|
-
font-family: ${
|
|
293
|
-
font-size: ${
|
|
294
|
-
line-height: ${
|
|
297
|
+
font-family: ${k};
|
|
298
|
+
font-size: ${M};
|
|
299
|
+
line-height: ${j};
|
|
300
|
+
font-weight: ${Li};
|
|
301
|
+
`;const lp=p.partial`
|
|
302
|
+
font-family: ${k};
|
|
303
|
+
font-size: ${ke};
|
|
304
|
+
line-height: ${Ie};
|
|
295
305
|
font-weight: ${R};
|
|
296
|
-
`,p.partial`
|
|
297
|
-
font-family: ${
|
|
298
|
-
font-size: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
font-weight: ${Ii};
|
|
301
|
-
`,p.partial`
|
|
302
|
-
font-family: ${y};
|
|
303
|
-
font-size: ${ht};
|
|
304
|
-
line-height: ${xt};
|
|
305
|
-
font-weight: ${H};
|
|
306
|
-
`,p.partial`
|
|
307
|
-
font-family: ${y};
|
|
308
|
-
font-size: ${D};
|
|
309
|
-
line-height: ${et};
|
|
310
|
-
font-weight: ${H};
|
|
311
|
-
`,p.partial`
|
|
312
|
-
font-family: ${y};
|
|
313
|
-
font-size: ${D};
|
|
314
|
-
line-height: ${et};
|
|
306
|
+
`,Ea=p.partial`
|
|
307
|
+
font-family: ${k};
|
|
308
|
+
font-size: ${G};
|
|
309
|
+
line-height: ${ee};
|
|
315
310
|
font-weight: ${R};
|
|
311
|
+
`;p.partial`
|
|
312
|
+
font-family: ${k};
|
|
313
|
+
font-size: ${G};
|
|
314
|
+
line-height: ${ee};
|
|
315
|
+
font-weight: ${U};
|
|
316
316
|
`,p.partial`
|
|
317
|
-
font-family: ${
|
|
318
|
-
font-size: ${
|
|
319
|
-
line-height: ${
|
|
320
|
-
font-weight: ${
|
|
321
|
-
`,p.partial`
|
|
322
|
-
font-family: ${y};
|
|
323
|
-
font-size: ${zo};
|
|
324
|
-
line-height: ${zi};
|
|
325
|
-
font-weight: ${H};
|
|
317
|
+
font-family: ${k};
|
|
318
|
+
font-size: ${G};
|
|
319
|
+
line-height: ${ee};
|
|
320
|
+
font-weight: ${Li};
|
|
326
321
|
`,p.partial`
|
|
327
|
-
font-family: ${
|
|
328
|
-
font-size: ${
|
|
329
|
-
line-height: ${
|
|
330
|
-
font-weight: ${R};
|
|
331
|
-
`;const Lu=p.partial`
|
|
332
|
-
font-family: ${y};
|
|
333
|
-
font-size: ${Ze};
|
|
334
|
-
line-height: ${Ti};
|
|
322
|
+
font-family: ${k};
|
|
323
|
+
font-size: ${Lo};
|
|
324
|
+
line-height: ${Vi};
|
|
335
325
|
font-weight: ${R};
|
|
326
|
+
`,p.partial`
|
|
327
|
+
font-family: ${k};
|
|
328
|
+
font-size: ${Lo};
|
|
329
|
+
line-height: ${Vi};
|
|
330
|
+
font-weight: ${U};
|
|
331
|
+
`;const cp=p.partial`
|
|
332
|
+
font-family: ${k};
|
|
333
|
+
font-size: ${co};
|
|
334
|
+
line-height: ${Hi};
|
|
335
|
+
font-weight: ${U};
|
|
336
336
|
`;p.partial`
|
|
337
|
-
font-family: ${
|
|
338
|
-
font-size: ${
|
|
339
|
-
line-height: ${
|
|
340
|
-
font-weight: ${
|
|
337
|
+
font-family: ${k};
|
|
338
|
+
font-size: ${ke};
|
|
339
|
+
line-height: ${Ie};
|
|
340
|
+
font-weight: ${U};
|
|
341
341
|
`,p.partial`
|
|
342
|
-
font-family: ${
|
|
343
|
-
font-size: ${
|
|
344
|
-
line-height: ${
|
|
345
|
-
font-weight: ${
|
|
342
|
+
font-family: ${k};
|
|
343
|
+
font-size: ${ke};
|
|
344
|
+
line-height: ${Ie};
|
|
345
|
+
font-weight: ${Li};
|
|
346
346
|
`,p.partial`
|
|
347
|
-
font-family: ${
|
|
348
|
-
font-size: ${
|
|
349
|
-
line-height: ${
|
|
350
|
-
font-weight: ${
|
|
347
|
+
font-family: ${k};
|
|
348
|
+
font-size: ${aa};
|
|
349
|
+
line-height: ${ua};
|
|
350
|
+
font-weight: ${U};
|
|
351
351
|
`,p.partial`
|
|
352
|
-
font-family: ${
|
|
353
|
-
font-size: ${
|
|
354
|
-
line-height: ${
|
|
355
|
-
font-weight: ${
|
|
352
|
+
font-family: ${k};
|
|
353
|
+
font-size: ${na};
|
|
354
|
+
line-height: ${ha};
|
|
355
|
+
font-weight: ${U};
|
|
356
356
|
`,p.partial`
|
|
357
|
-
font-family: ${
|
|
358
|
-
font-size: ${
|
|
359
|
-
line-height: ${
|
|
360
|
-
font-weight: ${
|
|
357
|
+
font-family: ${k};
|
|
358
|
+
font-size: ${Di};
|
|
359
|
+
line-height: ${da};
|
|
360
|
+
font-weight: ${U};
|
|
361
361
|
`,p.partial`
|
|
362
|
-
font-family: ${
|
|
363
|
-
font-size: ${
|
|
364
|
-
line-height: ${
|
|
365
|
-
font-weight: ${
|
|
362
|
+
font-family: ${k};
|
|
363
|
+
font-size: ${la};
|
|
364
|
+
line-height: ${pa};
|
|
365
|
+
font-weight: ${U};
|
|
366
366
|
`,p.partial`
|
|
367
|
-
font-family: ${
|
|
368
|
-
font-size: ${
|
|
369
|
-
line-height: ${
|
|
370
|
-
font-weight: ${
|
|
371
|
-
`;const
|
|
372
|
-
:host(${
|
|
373
|
-
${
|
|
374
|
-
${
|
|
375
|
-
${
|
|
376
|
-
${
|
|
377
|
-
${
|
|
378
|
-
`.withBehaviors(
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function
|
|
380
|
-
${
|
|
381
|
-
|
|
382
|
-
:host{--size:16px;background-color:${
|
|
383
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${
|
|
367
|
+
font-family: ${k};
|
|
368
|
+
font-size: ${ca};
|
|
369
|
+
line-height: ${ba};
|
|
370
|
+
font-weight: ${U};
|
|
371
|
+
`;const dp=p`
|
|
372
|
+
:host(${Ao}){border-radius:${Mi}}:host(${dt}){border-radius:${T}}:host(${dt}${Oo}),:host(${dt}${To}),:host(${dt}${P}){border-radius:${He}}${Pa}
|
|
373
|
+
${Ta}
|
|
374
|
+
${Ba}
|
|
375
|
+
${np}
|
|
376
|
+
${ap}
|
|
377
|
+
${za}
|
|
378
|
+
`.withBehaviors(le(p`
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Oa(o={}){return g` ${Ke(o)}<slot>${ve(o.defaultContent)}</slot>${mt(o)} `}const hp=Oa(),up=bo.compose({name:`${b.prefix}-badge`,template:hp,styles:dp});up.define(b.registry);var pp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,ie=(o,e,t,i)=>{for(var s=i>1?void 0:i?bp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&pp(e,t,s),s};class me extends w{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Ui.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}`}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===xi||e.key===Ps){this.click();return}return!0}press(){switch(this.type){case Ui.reset:{this.resetForm();break}case Ui.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Ui.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}me.formAssociated=!0,ie([a({mode:"boolean"})],me.prototype,"autofocus",2),ie([$],me.prototype,"defaultSlottedContent",2),ie([a({mode:"boolean"})],me.prototype,"disabled",2),ie([a({attribute:"disabled-focusable",mode:"boolean"})],me.prototype,"disabledFocusable",2),ie([a({attribute:"tabindex",mode:"fromView",converter:ae})],me.prototype,"tabIndex",2),ie([a({attribute:"formaction"})],me.prototype,"formAction",2),ie([a({attribute:"form"})],me.prototype,"formAttribute",2),ie([a({attribute:"formenctype"})],me.prototype,"formEnctype",2),ie([a({attribute:"formmethod"})],me.prototype,"formMethod",2),ie([a({attribute:"formnovalidate",mode:"boolean"})],me.prototype,"formNoValidate",2),ie([a({attribute:"formtarget"})],me.prototype,"formTarget",2),ie([a],me.prototype,"name",2),ie([a],me.prototype,"type",2),ie([a],me.prototype,"value",2);class ut extends me{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,va)}shapeChanged(e,t){y(this.elementInternals,e,t,ya)}sizeChanged(e,t){y(this.elementInternals,e,t,ka)}iconOnlyChanged(e,t){v(this.elementInternals,"icon",t)}}ie([a],ut.prototype,"appearance",2),ie([a],ut.prototype,"shape",2),ie([a],ut.prototype,"size",2),ie([a({attribute:"icon-only",mode:"boolean"})],ut.prototype,"iconOnly",2),nt(ut,rt);function nr(o={}){return g`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ke(o)}<span class="content" part="content"><slot ${K("defaultSlottedContent")}></slot></span>${mt(o)}</template>`}const gp=nr(),fp=ut.compose({name:`${b.prefix}-button`,template:gp,styles:Xi});fp.define(b.registry);const mp={circular:"circular",square:"square"},$p={medium:"medium",large:"large"};var vp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,Re=(o,e,t,i)=>{for(var s=i>1?void 0:i?yp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&vp(e,t,s),s};class Fe extends w{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return f.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),v(this.elementInternals,"checked",e),f.notify(this,"checked")}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",v(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.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const 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 f.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),f.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.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){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.$fastController.isConnected){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}}Fe.formAssociated=!0,Re([a({mode:"boolean"})],Fe.prototype,"autofocus",2),Re([$],Fe.prototype,"disabled",2),Re([a({attribute:"disabled",mode:"boolean"})],Fe.prototype,"disabledAttribute",2),Re([a({attribute:"form"})],Fe.prototype,"formAttribute",2),Re([a({attribute:"checked",mode:"boolean"})],Fe.prototype,"initialChecked",2),Re([a({attribute:"value",mode:"fromView"})],Fe.prototype,"initialValue",2),Re([a],Fe.prototype,"name",2),Re([a({mode:"boolean"})],Fe.prototype,"required",2);class Qi extends Fe{indeterminateChanged(e,t){this.setAriaChecked(),v(this.elementInternals,"indeterminate",t)}shapeChanged(e,t){y(this.elementInternals,e,t,mp)}sizeChanged(e,t){y(this.elementInternals,e,t,$p)}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)}}Re([$],Qi.prototype,"indeterminate",2),Re([a],Qi.prototype,"shape",2),Re([a],Qi.prototype,"size",2);const kp=p`
|
|
380
|
+
${I("inline-flex")}
|
|
381
|
+
|
|
382
|
+
:host{--size:16px;background-color:${E};border-radius:${He};border:${N} solid ${Qe};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Vt}}:host(:active){border-color:${Ht}}:host(${x}:hover){background-color:${no};border-color:${Vd}}:host(${x}:active){background-color:${ao};border-color:${Wn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ze} solid ${ce};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ve}}.indeterminate-indicator,.checked-indicator{color:${Dt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ft}){border-color:${Rt}}:host(${x}),:host(${Ft}) .indeterminate-indicator{background-color:${Lt}}:host(${Ft}) .indeterminate-indicator{border-radius:${He};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${C}){--size:20px}:host(${C}) ::slotted([slot='checked-indicator']),:host(${C}) .checked-indicator{width:16px}:host(${Po}),:host(${Po}) .indeterminate-indicator{border-radius:${Se}}:host([disabled]),:host([disabled]${x}){background-color:${kt};border-color:${Ae}}:host([disabled]){cursor:unset}:host([disabled]${Ft}) .indeterminate-indicator{background-color:${Ae}}:host([disabled]${x}) .checked-indicator{color:${Ae}}`.withBehaviors(le(p`
|
|
383
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Ft}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${Ft}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ft}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),xp=g.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
386
386
|
aria-hidden="true"
|
|
@@ -391,21 +391,21 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
391
391
|
xmlns="http://www.w3.org/2000/svg">
|
|
392
392
|
<path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
|
|
393
393
|
</svg>
|
|
394
|
-
`),
|
|
394
|
+
`),wp=g.partial(`
|
|
395
395
|
<span class="indeterminate-indicator"></span>
|
|
396
|
-
`);function
|
|
397
|
-
${
|
|
398
|
-
|
|
399
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${
|
|
400
|
-
::slotted([slot='description']){color:${
|
|
401
|
-
:host(${
|
|
402
|
-
${
|
|
403
|
-
${
|
|
404
|
-
${
|
|
405
|
-
|
|
406
|
-
:host(${
|
|
407
|
-
@layer base{:host{--dialog-backdrop:${
|
|
408
|
-
@layer base{dialog{border:${
|
|
396
|
+
`);function Cp(o={}){return g`<template tabindex="${e=>e.disabled?void 0:0}" @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">${ve(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ve(o.indeterminateIndicator)}</slot></template>`}const Sp=Cp({checkedIndicator:xp,indeterminateIndicator:wp}),Ip=Qi.compose({name:`${b.prefix}-checkbox`,template:Sp,styles:kp});Ip.define(b.registry);class zp extends ut{}const Pp=p`
|
|
397
|
+
${Xi}
|
|
398
|
+
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${M};line-height:${j}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Le};line-height:100%;font-size:${G};font-weight:${R}}::slotted(svg),:host(${C}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Fo}}:host(:active) ::slotted([slot='description']){color:${No}}:host(:is(${ye},${ye}:hover,${ye}:active)) ::slotted([slot='description']){color:${ht}}:host(:is(${B},${B}:hover,${B}:active)) ::slotted([slot='description']),:host(${H}) ::slotted([slot='description']){color:${Le}}:host(${H}:hover) ::slotted([slot='description']){color:${Ai}}:host(${H}:active) ::slotted([slot='description']){color:${Ei}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
400
|
+
::slotted([slot='description']){color:${A}}:host(${P}){padding:8px;padding-bottom:10px}:host(${vt}){min-width:52px;max-width:52px;padding:${de}}:host(${vt}${P}){min-width:48px;max-width:48px;padding:${Ee}}:host(${vt}${C}){min-width:56px;max-width:56px;padding:${Je}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ke};line-height:${Ie}}:host(${C}) ::slotted([slot='description']){font-size:${M}}`;function Tp(o={}){return g`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ke(o)}<span class="content" part="content"><slot ${K("defaultSlottedContent")}></slot><slot name="description"></slot></span>${mt(o)}</template>`}const Bp=Tp(),Ap=zp.compose({name:`${b.prefix}-compound-button`,template:Bp,styles:Pp});Ap.define(b.registry);const Ep={filled:"filled",ghost:"ghost"},Op={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Fp={circular:"circular",rounded:"rounded"},Np={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var _p=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,Ct=(o,e,t,i)=>{for(var s=i>1?void 0:i?Mp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&_p(e,t,s),s};class ot extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,Ep)}colorChanged(e,t){y(this.elementInternals,e,t,Op)}shapeChanged(e,t){y(this.elementInternals,e,t,Fp)}sizeChanged(e,t){y(this.elementInternals,e,t,Np)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(e,t){v(this.elementInternals,"dot",!!t)}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Ct([a],ot.prototype,"appearance",2),Ct([a],ot.prototype,"color",2),Ct([a],ot.prototype,"shape",2),Ct([a],ot.prototype,"size",2),Ct([a({converter:ae})],ot.prototype,"count",2),Ct([a({attribute:"overflow-count",converter:ae})],ot.prototype,"overflowCount",2),Ct([a({attribute:"show-zero",mode:"boolean"})],ot.prototype,"showZero",2),Ct([a({mode:"boolean"})],ot.prototype,"dot",2),nt(ot,rt);const Dp=p`
|
|
401
|
+
:host(${dt}){border-radius:${T}}:host(${dt}${Oo}),:host(${dt}${To}),:host(${dt}${P}){border-radius:${He}}${Pa}
|
|
402
|
+
${Ta}
|
|
403
|
+
${Ba}
|
|
404
|
+
${za}
|
|
405
|
+
|
|
406
|
+
:host(${An}),:host(${An}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Lp(o={}){return Oa({defaultContent:g`${e=>e.setCount()}`})}const Vp=Lp(),Hp=ot.compose({name:`${b.prefix}-counter-badge`,template:Vp,styles:Dp});Hp.define(b.registry);const it={modal:"modal",nonModal:"non-modal",alert:"alert"};var Rp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Zi=(o,e,t,i)=>{for(var s=i>1?void 0:i?jp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Rp(e,t,s),s};class Ro extends w{constructor(){super(...arguments),this.type=it.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){ne.enqueue(()=>{this.emitBeforeToggle(),this.type===it.alert||this.type===it.modal?this.dialog.showModal():this.type===it.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==it.alert&&e.target===this.dialog&&this.hide(),!0}}Zi([$],Ro.prototype,"dialog",2),Zi([a({attribute:"aria-describedby"})],Ro.prototype,"ariaDescribedby",2),Zi([a({attribute:"aria-labelledby"})],Ro.prototype,"ariaLabelledby",2),Zi([a],Ro.prototype,"type",2);const qp=g`<dialog role="${o=>o.type===it.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===it.modal||o.type===it.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.type===it.alert?e.event.preventDefault():o.hide()}" ${X("dialog")}><slot></slot></dialog>`,Wp=p`
|
|
407
|
+
@layer base{:host{--dialog-backdrop:${js};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${E};border-radius:${ra};border:none;box-shadow:${ga};color:${O};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${tr};transition-timing-function:${qt};opacity:0}::backdrop{transition-timing-function:${ir}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${jt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(le(p`
|
|
408
|
+
@layer base{dialog{border:${N} solid ${ce}}}`)),Gp=Ro.compose({name:`${b.prefix}-dialog`,template:qp,styles:Wp});Gp.define(b.registry);var Up=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Kp=(o,e,t,i)=>{for(var s=i>1?void 0:i?Xp(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Up(e,t,s),s};class Fa extends w{constructor(){super(...arguments),this.noTitleAction=!1}}Kp([a({mode:"boolean",attribute:"no-title-action"})],Fa.prototype,"noTitleAction",2);const Yp=g.partial(`
|
|
409
409
|
<svg
|
|
410
410
|
fill="currentColor"
|
|
411
411
|
aria-hidden="true"
|
|
@@ -418,123 +418,145 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
418
418
|
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
419
419
|
fill="currentColor"
|
|
420
420
|
></path>
|
|
421
|
-
</svg>`),
|
|
422
|
-
${
|
|
421
|
+
</svg>`),Qp=g`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===it.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${X("defaultTitleAction")}>${Yp}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Zp=p`
|
|
422
|
+
${I("grid")}
|
|
423
|
+
|
|
424
|
+
:host{background:${E};box-sizing:border-box;gap:${oe};padding:${Ho} ${hu};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${E};color:${O};column-gap:8px;display:flex;font-family:${k};font-size:${co};font-weight:${U};inset-block-start:0;justify-content:space-between;line-height:${Hi};margin-block-end:calc(${oe} * -1);margin-block-start:calc(${Ho} * -1);padding-block-end:${oe};padding-block-start:${Ho};position:sticky;z-index:1}.content{box-sizing:border-box;color:${O};font-family:${k};font-size:${M};font-weight:${R};line-height:${j};min-height:32px}.actions{box-sizing:border-box;background:${E};display:flex;flex-direction:column;gap:${oe};inset-block-end:0;margin-block-end:calc(${Ho} * -1);padding-block-end:${Ho};padding-block-start:${ji};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${oe} * -1);padding-block-start:${oe}}}`,Jp=Fa.compose({name:`${b.prefix}-dialog-body`,template:Qp,styles:Zp});Jp.define(b.registry);const jo={separator:"separator",presentation:"presentation"},Na=Ce,eb={center:"center",start:"start",end:"end"},tb={strong:"strong",brand:"brand",subtle:"subtle"};var ob=Object.defineProperty,ib=Object.getOwnPropertyDescriptor,qo=(o,e,t,i)=>{for(var s=i>1?void 0:i?ib(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ob(e,t,s),s};class ar extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??jo.separator,this.role!==jo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Na.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??jo.separator}`),t===jo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==jo.presentation?t??null:null,y(this.elementInternals,e,t,Na)}}qo([a],ar.prototype,"role",2),qo([a],ar.prototype,"orientation",2);class Ji extends ar{alignContentChanged(e,t){y(this.elementInternals,e,t,eb,"align-")}appearanceChanged(e,t){y(this.elementInternals,e,t,tb)}insetChanged(e,t){v(this.elementInternals,"inset",t)}}qo([a({attribute:"align-content"})],Ji.prototype,"alignContent",2),qo([a],Ji.prototype,"appearance",2),qo([a({mode:"boolean"})],Ji.prototype,"inset",2);function sb(){return g`<slot></slot>`}const rb=sb(),nb=p`
|
|
425
|
+
${I("flex")}
|
|
423
426
|
|
|
424
|
-
:host{background:${
|
|
425
|
-
|
|
427
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${Do};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${N}}:host(${_s}){padding:0 12px}:host ::slotted(*){color:${Le};font-family:${k};font-size:${G};font-weight:${R};margin:0;padding:0 12px}:host(${Pn})::before,:host(${lt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${z}){height:100%;min-height:84px}:host(${z}):empty{min-height:20px}:host(${z}){flex-direction:column;align-items:center}:host(${z}${_s})::before{margin-top:12px}:host(${z}${_s})::after{margin-bottom:12px}:host(${z}):empty::before,:host(${z}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${z})::before,:host(${z})::after{width:${N};min-height:20px;height:100%}:host(${z}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${z}${Pn})::before{min-height:8px}:host(${z}${lt})::after{min-height:8px}:host(${Eo})::before,:host(${Eo})::after{background:${Ze}}:host(${Eo}) ::slotted(*){color:${O}}:host(${Ye})::before,:host(${Ye})::after{background:${qn}}:host(${Ye}) ::slotted(*){color:${Vs}}:host(${B})::before,:host(${B})::after{background:${Dd}}:host(${B}) ::slotted(*){color:${be}}`.withBehaviors(le(p`
|
|
428
|
+
:host(${Eo})::before,:host(${Eo})::after,:host(${Ye})::before,:host(${Ye})::after,:host(${B})::before,:host(${B})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),ab=Ji.compose({name:`${b.prefix}-divider`,template:rb,styles:nb});ab.define(b.registry);const lb={start:"start",end:"end"},cb={small:"small",medium:"medium",large:"large",full:"full"},lr={nonModal:"non-modal",modal:"modal",inline:"inline"};var db=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,go=(o,e,t,i)=>{for(var s=i>1?void 0:i?hb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&db(e,t,s),s};class Gt extends w{constructor(){super(...arguments),this.type=lr.modal,this.position=lb.start,this.size=cb.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){ne.enqueue(()=>{this.emitBeforeToggle(),this.type===lr.inline||this.type===lr.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}}go([a],Gt.prototype,"type",2),go([a({attribute:"aria-labelledby"})],Gt.prototype,"ariaLabelledby",2),go([a({attribute:"aria-describedby"})],Gt.prototype,"ariaDescribedby",2),go([a],Gt.prototype,"position",2),go([a({attribute:"size"})],Gt.prototype,"size",2),go([$],Gt.prototype,"dialog",2);const ub=p`
|
|
429
|
+
${I("block")}
|
|
426
430
|
|
|
427
|
-
:host{
|
|
428
|
-
|
|
429
|
-
${z("block")}
|
|
431
|
+
:host{--dialog-backdrop:${js}}: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:${M};line-height:${j};font-family:${k};font-weight:${R};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:${ce};border-inline-start-color:var(--drawer-separator,${ce});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${ga};border:${N} solid ${ce};background:${E}}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:${tr};transition-timing-function:${qt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${jt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${jt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${tr};transition-timing-function:${qt};background:var(--dialog-backdrop,${js});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${ir}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function pb(){return g`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.hide()}" ${X("dialog")}><slot></slot></dialog>`}const bb=pb(),gb=Gt.compose({name:`${b.prefix}-drawer`,template:bb,styles:ub});gb.define(b.registry);class fb extends w{}const mb=p`
|
|
432
|
+
${I("grid")}
|
|
433
|
+
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${du};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${cp}}.footer{display:flex;justify-content:flex-start;gap:${xe}}`;function $b(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const vb=$b(),yb=fb.compose({name:`${b.prefix}-drawer-body`,template:vb,styles:mb});yb.define(b.registry);function _a(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function es(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ma(o){return o.closest("[lang]")?.lang??"en"}let kb=0;function Wo(o="id-"){const e=`${o}${kb++}`;return document.getElementById(e)?Wo(o):e}const Da={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},xb={small:"small",medium:"medium",large:"large"},cr={combobox:"combobox",dropdown:"dropdown",select:"select"},wb=g`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${X("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>`,Cb=g`<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}" ${X("control")} />`,Sb=g`<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" ${X("control")}>${o=>o.displayValue}</button>`;function Ib(o={}){return g`<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" ${X("controlSlot")}></slot><slot name="indicator" ${X("indicatorSlot")}>${ve(o.indicator)}</slot></div><slot ${X("listboxSlot")}></slot></template>`}const zb=Ib({indicator:wb});var Pb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,q=(o,e,t,i)=>{for(var s=i>1?void 0:i?Tb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Pb(e,t,s),s};class W extends w{constructor(){super(),this.activeIndex=0,this.id=Wo("dropdown-"),this.required=!1,this.type=cr.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",ne.enqueue(()=>{this.insertControl()})}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((s,r)=>{s.active=r===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Wo("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){ne.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return v(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Ma(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return v(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&f.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const i=f.getNotifier(this);i.subscribe(t);for(const s of["disabled","multiple"])i.notify(s);ne.enqueue(()=>{this.enabledOptions.filter(s=>s.defaultSelected).forEach((s,r)=>{s.selected=this.multiple||r===0})})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",v(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){ne.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){v(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)})}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===cr.combobox}get options(){return this.listbox?.options??[]}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.required=!0,e.checked=!1,this.validationFallbackMessage=e.validationMessage}return this.validationFallbackMessage}get value(){return f.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)),f.track(this,"value"))}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}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(es(t)&&!this.multiple){if(t.disabled)return;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(Ma(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}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.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===cr.combobox){Cb.render(this,this);return}Sb.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex),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!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let s=this.getEnabledIndexInBounds(i);return s===0&&this.freeformOption?.hidden&&(s=this.getEnabledIndexInBounds(i+t)),this.activeIndex=s,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!es(e.target)}selectOption(e=this.selectedIndex){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const s=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:s,...e},t??this.validationMessage,i??this.listbox.enabledOptions[0])}}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}}}W.formAssociated=!0,q([fs],W.prototype,"activeDescendant",1),q([$],W.prototype,"activeIndex",2),q([a({attribute:"aria-labelledby",mode:"fromView"})],W.prototype,"ariaLabelledBy",2),q([$],W.prototype,"control",2),q([a({mode:"boolean"})],W.prototype,"disabled",2),q([fs],W.prototype,"displayValue",1),q([a({attribute:"id"})],W.prototype,"id",2),q([$],W.prototype,"indicator",2),q([$],W.prototype,"indicatorSlot",2),q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),q([$],W.prototype,"listbox",2),q([$],W.prototype,"listboxSlot",2),q([a({mode:"boolean"})],W.prototype,"multiple",2),q([a],W.prototype,"name",2),q([$],W.prototype,"open",2),q([a],W.prototype,"placeholder",2),q([a({mode:"boolean"})],W.prototype,"required",2),q([a],W.prototype,"type",2),q([a({attribute:"value"})],W.prototype,"valueAttribute",2);const dr=class xo extends W{constructor(){super(),this.appearance=Da.outline,this.addEventListener("connected",this.listboxConnectedHandler)}appearanceChanged(e,t){y(this.elementInternals,e,t,Da)}sizeChanged(e,t){y(this.elementInternals,e,t,xb)}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){xo.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;_a(t)&&(this.listbox=t)}openChanged(e,t){if(super.openChanged(e,t),t){xo.AnchorPositionFallbackObserver?.observe(this.listbox);return}xo.AnchorPositionFallbackObserver?.unobserve(this.listbox)}anchorPositionFallback(){xo.AnchorPositionFallbackObserver=xo.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:i,target:s})=>{if(_a(s)&&!i){if(t.bottom>window.innerHeight){v(s.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&v(s.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};q([a],dr.prototype,"appearance",2),q([a],dr.prototype,"size",2);let Bb=dr;const Ab=p`
|
|
434
|
+
${I("inline-flex")}
|
|
430
435
|
|
|
431
|
-
:host{
|
|
432
|
-
${
|
|
433
|
-
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Vh};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Lu}}.footer{display:flex;justify-content:flex-start;gap:${$t}}`;function Wp(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Xp=Wp(),Kp=Gp.compose({name:`${g.prefix}-drawer-body`,template:Xp,styles:Up});Kp.define(g.registry);const Yp={above:"above",after:"after",before:"before"},zt={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var Qp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,No=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Qp(t,e,s),s};class Oo extends S{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(v(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&v(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return v(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||je("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.elementInternals&&this.input&&(v(this.elementInternals,"disabled",!!this.input.disabled),v(this.elementInternals,"readonly",!!this.input.readOnly),v(this.elementInternals,"required",!!this.input.required),v(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(zt))v(this.elementInternals,e,this.input.validity[t])}}No([k],Oo.prototype,"labelSlot",2),No([k],Oo.prototype,"messageSlot",2),No([k],Oo.prototype,"slottedInputs",2),No([k],Oo.prototype,"input",2);class va extends Oo{constructor(){super(...arguments),this.labelPosition=Yp.above}}No([a({attribute:"label-position"})],va.prototype,"labelPosition",2);const Jp=p`
|
|
434
|
-
${z("inline-grid")}
|
|
436
|
+
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${O};cursor:pointer}:host(${Mc}){color:${Ls}}.control{appearance:none;background-color:${E};border-radius:${T};border:none;box-shadow:inset 0 0 0 ${N} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${te};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${et} ${fe};position:relative;text-align:start;width:100%;z-index:1;${Aa}}:host(${P}) .control{column-gap:${te};padding:${ho} ${de};${Ea}}:host(${C}) .control{column-gap:${Je};padding:${oe} ${xe};${lp}}::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:${be};display:inline-flex;justify-content:center;width:20px}:host(${P}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${C}) :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:${N}}.control::after{background-color:${Rt};height:${ze};scale:0 1;transition:scale ${Js} ${qt}}:host(:where(${Oc},:focus-within)) .control::after{scale:1 1;transition-duration:${qi};transition-timing-function:${jt}}:host(:where(${F},${H})) .control::before{background-color:${Qe}}:host(${H}) .control{--control-border-color:${Gs};background-color:${Be};border-radius:${Mi}}:host(${F}) .control{--control-border-color:${Ze}}:host(${F}) .control:hover{--control-border-color:${lo}}:host(:where(${F},${H})) .control:hover::before{background-color:${Vt}}:host(${F}) .control:hover::after{background-color:${no}}:host(${F}) .control:active{--control-border-color:${Mo}}:host(:where(${F},${H})) .control:active::before{background-color:${Ht}}:host(:where(${F},${H})) .control:active::after{background-color:${ao}}:host(${$t}) .control{background-color:${_o}}:host(:where(${Ot},${$t})) .control{--control-border-color:${ce}}: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:${Ae};background-color:${kt};color:${A}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${j} + (${et} * 2) + ${N});max-height:50vh}:host(${P}) ::slotted([popover]){margin-block-start:calc(${ee} + (${ho} * 2) + ${N})}:host(${C}) ::slotted([popover]){margin-block-start:calc(${Ie} + (${oe} * 2) + ${N})}:host(${pc}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,Eb=Bb.compose({name:`${b.prefix}-dropdown`,template:zb,styles:Ab,shadowOptions:{slotAssignment:"manual"}});Eb.define(b.registry);const Ob={above:"above",after:"after",before:"before"},Ne={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var Fb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,Go=(o,e,t,i)=>{for(var s=i>1?void 0:i?Nb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Fb(e,t,s),s};class Uo extends w{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){if(v(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&v(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return v(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||io("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(v(this.elementInternals,"disabled",!!this.input.disabled),v(this.elementInternals,"readonly",!!this.input.readOnly),v(this.elementInternals,"required",!!this.input.required),v(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(Ne))v(this.elementInternals,t,this.input.validity[e])}}Go([$],Uo.prototype,"labelSlot",2),Go([$],Uo.prototype,"messageSlot",2),Go([$],Uo.prototype,"slottedInputs",2),Go([$],Uo.prototype,"input",2);class La extends Uo{constructor(){super(...arguments),this.labelPosition=Ob.above}}Go([a({attribute:"label-position"})],La.prototype,"labelPosition",2);const _b=p`
|
|
437
|
+
${I("inline-grid")}
|
|
435
438
|
|
|
436
|
-
:host{color:${
|
|
437
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${
|
|
438
|
-
${
|
|
439
|
+
:host{color:${O};align-items:center;gap:0 ${xe};justify-items:start;position:relative}:has([slot='message']){color:${O};row-gap:${oe}}: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:${xe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Vo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${uu}}:host([label-position='below']:not(${$c})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${Vo};grid-area:message}:host(${bc}:focus-within){border-radius:${T};outline:${ze} solid ${Ve}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${k};font-size:${M};font-weight:${R};grid-area:label;line-height:${j};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};line-height:${ee}}:host([size='large']) ::slotted(label){font-size:${ke};line-height:${Ie}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${U}}:host(${_}){cursor:default}::slotted([flag]){display:none}:host(${Xl}) ::slotted([flag='${Ne.badInput}']),:host(${sc}) ::slotted([flag='${Ne.customError}']),:host(${Fc}) ::slotted([flag='${Ne.patternMismatch}']),:host(${Rc}) ::slotted([flag='${Ne.rangeOverflow}']),:host(${jc}) ::slotted([flag='${Ne.rangeUnderflow}']),:host(${ad}) ::slotted([flag='${Ne.stepMismatch}']),:host(${cd}) ::slotted([flag='${Ne.tooLong}']),:host(${dd}) ::slotted([flag='${Ne.tooShort}']),:host(${hd}) ::slotted([flag='${Ne.typeMismatch}']),:host(${bd}) ::slotted([flag='${Ne.valueMissing}']),:host(${pd}) ::slotted([flag='${Ne.valid}']){display:block}`,Mb=g`<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)}" ${xl({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:Bt()})}><slot name="label" part="label" ${K("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${K({property:"messageSlot",filter:Bt("[flag]")})}></slot></template>`,Db=La.compose({name:`${b.prefix}-field`,template:Mb,styles:_b,shadowOptions:{delegatesFocus:!0}});Db.define(b.registry);const Lb={none:"none",center:"center",contain:"contain",cover:"cover"},Vb={circular:"circular",rounded:"rounded",square:"square"};var Hb=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Xo=(o,e,t,i)=>{for(var s=i>1?void 0:i?Rb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Hb(e,t,s),s};class fo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(e,t){v(this.elementInternals,"block",t)}borderedChanged(e,t){v(this.elementInternals,"bordered",t)}shadowChanged(e,t){v(this.elementInternals,"shadow",t)}fitChanged(e,t){y(this.elementInternals,e,t,Lb,"fit-")}shapeChanged(e,t){y(this.elementInternals,e,t,Vb)}}Xo([a({mode:"boolean"})],fo.prototype,"block",2),Xo([a({mode:"boolean"})],fo.prototype,"bordered",2),Xo([a({mode:"boolean"})],fo.prototype,"shadow",2),Xo([a],fo.prototype,"fit",2),Xo([a],fo.prototype,"shape",2);const jb=g`<slot></slot>`,qb=p`
|
|
440
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${zo}) ::slotted(img){width:100%;height:auto}:host(${Zl}) ::slotted(img){border:${N} solid ${Do}}:host(${uc}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${cc}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${dc}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${hc}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${Yc}) ::slotted(img){box-shadow:${Ri}}:host(${Po}) ::slotted(img){border-radius:${Se}}:host(${dt}) ::slotted(img){border-radius:${T}}`,Wb=fo.compose({name:`${b.prefix}-image`,template:jb,styles:qb});Wb.define(b.registry);const Gb={small:"small",medium:"medium",large:"large"},Ub={regular:"regular",semibold:"semibold"};var Xb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,ts=(o,e,t,i)=>{for(var s=i>1?void 0:i?Kb(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Xb(e,t,s),s};class Ko extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(e,t){y(this.elementInternals,e,t,Gb)}weightChanged(e,t){y(this.elementInternals,e,t,Ub)}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}}ts([a],Ko.prototype,"size",2),ts([a],Ko.prototype,"weight",2),ts([a({mode:"boolean"})],Ko.prototype,"disabled",2),ts([a({mode:"boolean"})],Ko.prototype,"required",2);const Yb=p`
|
|
441
|
+
${I("inline-flex")}
|
|
439
442
|
|
|
440
|
-
:host{color:${
|
|
441
|
-
${
|
|
443
|
+
:host{color:${O};cursor:pointer;font-family:${k};font-size:${M};font-weight:${R};line-height:${j};user-select:none}.asterisk{color:${Kn};margin-inline-start:${Ee}}:host(${P}){font-size:${G};line-height:${ee}}:host(${C}){font-size:${ke};line-height:${Ie}}:host(:is(${C},${Fn})){font-weight:${U}}:host(${_}),:host(${_}) .asterisk{color:${A}}`;function Qb(){return g`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Zb=Qb(),Jb=Ko.compose({name:`${b.prefix}-label`,template:Zb,styles:Yb});Jb.define(b.registry);const eg={subtle:"subtle"};var tg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,Va=(o,e,t,i)=>{for(var s=i>1?void 0:i?og(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&tg(e,t,s),s};class hr extends tt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,eg)}inlineChanged(e,t){v(this.elementInternals,"inline",t)}}Va([a],hr.prototype,"appearance",2),Va([a({mode:"boolean"})],hr.prototype,"inline",2);const ig=p`
|
|
444
|
+
${I("inline")}
|
|
442
445
|
|
|
443
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${
|
|
444
|
-
:host{color:LinkText}`));function
|
|
446
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${yd};cursor:pointer;font-family:${k};font-size:${M};font-weight:${R};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${N};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${kd}}:host(:active){color:${xd}}:host(${B}:hover){color:${Cd}}:host(${B}:active){color:${Sd}}}:host(${B}){color:${wd}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${yc}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(le(p`
|
|
447
|
+
:host{color:LinkText}`));function sg(){return g`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const rg=sg(),ng=hr.compose({name:`${b.prefix}-link`,template:rg,styles:ig});ng.define(b.registry);var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Yo=(o,e,t,i)=>{for(var s=i>1?void 0:i?lg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&ag(e,t,s),s};class mo extends w{constructor(){super(),this.id=Wo("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",v(this.elementInternals,"multiple",t),ne.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,s)=>{i.elementInternals.ariaPosInSet=`${s+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){const t=e.target;return es(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),this.$emit("connected")}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,s)=>{const r=s===e;i.selected=r,r&&(t=s)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}}Yo([a({attribute:"id",mode:"fromView"})],mo.prototype,"id",2),Yo([$],mo.prototype,"multiple",2),Yo([$],mo.prototype,"options",2),Yo([$],mo.prototype,"selectedIndex",2),Yo([$],mo.prototype,"dropdown",2);const cg=p`
|
|
448
|
+
${I("inline-flex")}
|
|
449
|
+
|
|
450
|
+
:host{background-color:${E};border-radius:${T};border:none;box-shadow:${Qs};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${Ee};row-gap:${te};width:auto}`;function dg(){return g`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${K({property:"options",filter:o=>es(o)})}></slot></template>`}const hg=dg(),ug=mo.compose({name:`${b.prefix}-listbox`,template:hg,styles:cg});ug.define(b.registry);class pg extends ut{}const bg=nr({end:g.partial(`
|
|
445
451
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
446
452
|
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
447
453
|
</svg>
|
|
448
|
-
`)}),
|
|
449
|
-
${
|
|
450
|
-
|
|
451
|
-
:host{--indent:0;align-items:center;background:${_};border-radius:${P};color:${jt};contain:layout;cursor:pointer;flex-shrink:0;font:${H} ${O} / ${V} ${y};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Ss};color:${mi}}:host(:active){background-color:${kn};color:${$i}}:host(:active) ::slotted([slot='start']){color:${od}}:host(${N}){background-color:${Xe};color:${E}}:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){color:${E}}:host(:focus-visible){border-radius:${P};outline:2px solid ${qt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${fi})) .submenu-glyph,:host(:not(${fi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ft};font:${H} ${D} / ${et} ${y};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${fi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${fi}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(J(p`
|
|
452
|
-
:host(${N}),:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){color:GrayText}`)),Ag=f.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Eg=f.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Ng(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${kt(o.indicator)}</slot>${Qt(o)}<div part="content" class="content"><slot></slot></div>${he(o)}<slot name="submenu-glyph">${kt(o.submenuGlyph)}</slot><slot name="submenu" ${rt({property:"slottedSubmenu",filter:Bg()})}></slot></template>`}const Og=Ng({indicator:Ag,submenuGlyph:Eg}),Fg=_t.compose({name:`${g.prefix}-menu-item`,template:Og,styles:Pg});Fg.define(g.registry);var _g=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,Lg=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&_g(t,e,s),s};const Xs=class or extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,i=this.menuItems.indexOf(e);if(i!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===ot.menuitemradio&&(n.checked=!1),d==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===ot.menuitemradio&&(n.checked=!1),d==="separator")break}}},this.isMenuItemElement=t=>t instanceof _t||nn(t)&&t.getAttribute("role")in or.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Bt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case ii:this.setFocus(this.focusIndex+1,1);return;case ni:this.setFocus(this.focusIndex-1,-1);return;case ai:this.setFocus(this.menuItems.length-1,-1);return;case ci:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),$.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e&&e!==ot.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>$.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,d)=>{n.setAttribute("tabindex",d===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement),r=s?.reduce((n,d)=>{const u=or.elementIndent(d);return Math.max(n,u)},0);s?.forEach(n=>{n instanceof _t&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}};Xs.focusableElementRoles=ot,Lg([k],Xs.prototype,"items",2);let Hg=Xs;const Vg=p`
|
|
453
|
-
${z("flex")}
|
|
454
|
-
|
|
455
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${dt};border-radius:${P};box-shadow:${Zn};padding:4px;row-gap:2px}`;function Dg(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${rt("items")}></slot></template>`}const Rg=Dg(),jg=Hg.compose({name:`${g.prefix}-menu-list`,template:Rg,styles:Vg});jg.define(g.registry);var qg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,ve=(o,t,e,i)=>{for(var s=i>1?void 0:i?Gg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qg(t,e,s),s};class ae extends S{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof _t&&(t.target.getAttribute("role")===ot.menuitemcheckbox||t.target.getAttribute("role")===ot.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t.type==="toggle"&&t.newState){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case ps:case li:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Bt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Bt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Bt.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case bl:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case fl:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger&&t.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}ve([a({attribute:"open-on-hover",mode:"boolean"})],ae.prototype,"openOnHover",2),ve([a({attribute:"open-on-context",mode:"boolean"})],ae.prototype,"openOnContext",2),ve([a({attribute:"close-on-scroll",mode:"boolean"})],ae.prototype,"closeOnScroll",2),ve([a({attribute:"persist-on-item-click",mode:"boolean"})],ae.prototype,"persistOnItemClick",2),ve([a({mode:"boolean"})],ae.prototype,"split",2),ve([k],ae.prototype,"slottedMenuList",2),ve([k],ae.prototype,"slottedTriggers",2),ve([k],ae.prototype,"primaryAction",2);const Ug=p`
|
|
456
|
-
${z("inline-block")}
|
|
454
|
+
`)}),gg=pg.compose({name:`${b.prefix}-menu-button`,template:bg,styles:Xi});gg.define(b.registry);const he={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};he.menuitem+"",he.menuitemcheckbox+"",he.menuitemradio+"";var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,$o=(o,e,t,i)=>{for(var s=i>1?void 0:i?mg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&fg(e,t,s),s};const $g=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class je extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=he.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case xi:case Ps:return this.invoke(),!1;case vi:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case $i: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.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case he.menuitemcheckbox:this.checked=!this.checked;break;case he.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case he.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,v(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??he.menuitem}checkedChanged(e,t){const i=this.role!==he.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,v(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",v(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,v(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??he.menuitem,this.elementInternals.ariaChecked=this.role!==he.menuitem?`${!!this.checked}`:null}}$o([a({mode:"boolean"})],je.prototype,"disabled",2),$o([a],je.prototype,"role",2),$o([a({mode:"boolean"})],je.prototype,"checked",2),$o([a({mode:"boolean"})],je.prototype,"hidden",2),$o([$],je.prototype,"slottedSubmenu",2),$o([$],je.prototype,"submenu",2),nt(je,rt);const vg=p`
|
|
455
|
+
${I("grid")}
|
|
457
456
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
${z("block")}
|
|
457
|
+
:host{--indent:0;align-items:center;background:${E};border-radius:${T};color:${Le};contain:layout;cursor:pointer;flex-shrink:0;font:${R} ${M} / ${j} ${k};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Oi};color:${Fo}}:host(:active){background-color:${Ln};color:${No}}:host(:active) ::slotted([slot='start']){color:${Id}}:host(${_}){background-color:${kt};color:${A}}:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){color:${A}}:host(:focus-visible){border-radius:${T};outline:2px solid ${Ve}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${Bi})) .submenu-glyph,:host(:not(${Bi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${be};font:${R} ${G} / ${ee} ${k};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Bi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Bi}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(le(p`
|
|
458
|
+
:host(${_}),:host(${_}) ::slotted([slot='start']),:host(${_}) ::slotted([slot='end']){color:GrayText}`)),yg=g.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=g.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 xg(o={}){return g`<template @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.toggleHandler(t.event)}"><slot name="indicator">${ve(o.indicator)}</slot>${Ke(o)}<div part="content" class="content"><slot></slot></div>${mt(o)}<slot name="submenu-glyph">${ve(o.submenuGlyph)}</slot><slot name="submenu" ${K({property:"slottedSubmenu",filter:$g()})}></slot></template>`}const wg=xg({indicator:yg,submenuGlyph:kg}),Cg=je.compose({name:`${b.prefix}-menu-item`,template:wg,styles:vg});Cg.define(b.registry);var Sg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,zg=(o,e,t,i)=>{for(var s=i>1?void 0:i?Ig(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Sg(e,t,s),s};const ur=class yr extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Cn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===he.menuitemradio&&(n.checked=!1),d==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],d=n.getAttribute("role");if(d===he.menuitemradio&&(n.checked=!1),d==="separator")break}}},this.isMenuItemElement=e=>e instanceof je||Cn(e)&&e.getAttribute("role")in yr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),ne.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case mi:this.setFocus(this.focusIndex+1,1);return;case yi:this.setFocus(this.focusIndex-1,-1);return;case ki:this.setFocus(this.menuItems.length-1,-1);return;case wi:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),f.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==he.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>f.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,d)=>{n.setAttribute("tabindex",d===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement),r=s?.reduce((n,d)=>{const u=yr.elementIndent(d);return Math.max(n,u)},0);s?.forEach(n=>{n instanceof je&&n.setAttribute("data-indent",`${r}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};ur.focusableElementRoles=he,zg([$],ur.prototype,"items",2);let Pg=ur;const Tg=p`
|
|
459
|
+
${I("flex")}
|
|
462
460
|
|
|
463
|
-
:host{
|
|
464
|
-
|
|
465
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${ys}) .indicator{background-color:${Pn}}:host(${Be}) .indicator{background-color:${Mn}}:host(${ze}) .indicator{background-color:${Fn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(J(p`
|
|
466
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${ze},${Be},${ys})) .indicator{background-color:Highlight}`));function hb(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const ub=hb(),pb=Ys.compose({name:`${g.prefix}-progress-bar`,template:ub,styles:db});pb.define(g.registry);class ka extends It{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function xa(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const wa=bt;var gb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,Ne=(o,t,e,i)=>{for(var s=i>1?void 0:i?bb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&gb(t,e,s),s};class le extends S{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??wa.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??wa.horizontal}radiosChanged(t,e){const i=e?.length;if(!i)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const s=gl(this.enabledRadios,n=>n.initialChecked);e.forEach((n,d)=>{n.ariaPosInSet=`${d+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=d===s,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=s);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),Bt.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return $.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(i=>i.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),$.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(t=this.checkedIndex,e=!1){let i=this.checkedIndex;this.enabledRadios.forEach((s,r)=>{const n=r===t;s.checked=n,n&&(i=r,e&&s.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=fs(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===xa(this))??this.checkedIndex;let s=0;switch(t.key){case"ArrowLeft":{s=e?1:-1;break}case"ArrowUp":{s=-1;break}case"ArrowRight":{s=e?-1:1;break}case"ArrowDown":{s=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!s)return!0;const r=i+s;this.checkRadio(this.getEnabledIndexInBounds(r),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(xa(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((i,s)=>{i.tabIndex=s===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(t){Bt.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof ka)})}}le.formAssociated=!0,Ne([k],le.prototype,"checkedIndex",2),Ne([a({attribute:"disabled",mode:"boolean"})],le.prototype,"disabled",2),Ne([a({attribute:"value",mode:"fromView"})],le.prototype,"initialValue",2),Ne([a],le.prototype,"name",2),Ne([a],le.prototype,"orientation",2),Ne([k],le.prototype,"radios",2),Ne([a({mode:"boolean"})],le.prototype,"required",2);const fb=p`
|
|
467
|
-
${z("flex")}
|
|
461
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${E};border:1px solid ${ce};border-radius:${T};box-shadow:${Qs};padding:4px;row-gap:2px}`;function Bg(){return g`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${K("items")}></slot></template>`}const Ag=Bg(),Eg=Pg.compose({name:`${b.prefix}-menu-list`,template:Ag,styles:Tg});Eg.define(b.registry);var Og=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,St=(o,e,t,i)=>{for(var s=i>1?void 0:i?Fg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Og(e,t,s),s};class pt extends w{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof je&&(e.target.getAttribute("role")===he.menuitemcheckbox||e.target.getAttribute("role")===he.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._open=t,this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Ps:case xi:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),ne.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){ne.enqueue(()=>{this._menuList.focus()})}focusTrigger(){ne.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case Ol:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Fl: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}}}St([a({attribute:"open-on-hover",mode:"boolean"})],pt.prototype,"openOnHover",2),St([a({attribute:"open-on-context",mode:"boolean"})],pt.prototype,"openOnContext",2),St([a({attribute:"close-on-scroll",mode:"boolean"})],pt.prototype,"closeOnScroll",2),St([a({attribute:"persist-on-item-click",mode:"boolean"})],pt.prototype,"persistOnItemClick",2),St([a({mode:"boolean"})],pt.prototype,"split",2),St([$],pt.prototype,"slottedMenuList",2),St([$],pt.prototype,"slottedTriggers",2),St([$],pt.prototype,"primaryAction",2);const Ng=p`
|
|
462
|
+
${I("inline-block")}
|
|
468
463
|
|
|
469
|
-
|
|
470
|
-
${
|
|
464
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${N} solid ${Ze};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:${N} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function _g(){return g`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${X("primaryAction")}></slot><slot name="trigger" ${K({property:"slottedTriggers",filter:Bt()})}></slot><slot ${K({property:"slottedMenuList",filter:Bt()})}></slot></template>`}const Mg=_g(),Dg=pt.compose({name:`${b.prefix}-menu`,template:Mg,styles:Ng});Dg.define(b.registry);const Lg={multiline:"multiline",singleline:"singleline"},Vg={rounded:"rounded",square:"square"},Hg={success:"success",warning:"warning",error:"error",info:"info"};var Rg=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,pr=(o,e,t,i)=>{for(var s=i>1?void 0:i?jg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Rg(e,t,s),s};class os extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(e,t){y(this.elementInternals,e,t,Vg)}layoutChanged(e,t){y(this.elementInternals,e,t,Lg)}intentChanged(e,t){y(this.elementInternals,e,t,Hg)}}pr([a],os.prototype,"shape",2),pr([a],os.prototype,"layout",2),pr([a],os.prototype,"intent",2);const qg=p`
|
|
465
|
+
:host{display:grid;box-sizing:border-box;font-family:${k};font-size:${G};line-height:${ee};width:100%;background:${_o};border:1px solid ${Ze};padding-inline:${xe};border-radius:${T};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${Ao}){border-radius:0}:host(${Nt}){background-color:${Qn};border-color:${Wd}}:host(${Mt}){background-color:${Jn};border-color:${ta}}:host(${Ns}){background-color:${Gn};border-color:${Xn}}:host(${Bo}){grid-template-areas:'icon body dismiss'
|
|
466
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${uo};padding-inline:${xe}}.content{grid-area:body;max-width:520px;padding-block:${uo};padding-inline:0}:host(${Bo}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${be};margin-inline-end:${Je}}:host(${Bo}) ::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:${Je};gap:${Je}}:host(${Bo}) .actions{margin-block-start:${uo};margin-inline-end:0}:host(${Bo}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${oe}}::slotted(*){font-size:inherit}`;function Wg(){return g`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Gg=Wg(),Ug=os.compose({name:`${b.prefix}-message-bar`,template:Gg,styles:qg,shadowOptions:{mode:b.shadowRootMode}});Ug.define(b.registry);var Xg=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,Pe=(o,e,t,i)=>{for(var s=i>1?void 0:i?Kg(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Xg(e,t,s),s};class $e extends w{constructor(){super(),this.active=!1,this.id=Wo("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){v(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){v(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",v(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){v(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 f.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,ne.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",v(this.elementInternals,"selected",e))}),f.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 f.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}),f.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}}$e.formAssociated=!0,Pe([$],$e.prototype,"active",2),Pe([a({attribute:"current-selected",mode:"boolean"})],$e.prototype,"currentSelected",2),Pe([a({attribute:"selected",mode:"boolean"})],$e.prototype,"defaultSelected",2),Pe([$],$e.prototype,"descriptionSlot",2),Pe([$],$e.prototype,"disabled",2),Pe([a({attribute:"disabled",mode:"boolean"})],$e.prototype,"disabledAttribute",2),Pe([a({attribute:"form"})],$e.prototype,"formAttribute",2),Pe([a({mode:"boolean"})],$e.prototype,"freeform",2),Pe([a({attribute:"id"})],$e.prototype,"id",2),Pe([a({attribute:"value",mode:"fromView"})],$e.prototype,"initialValue",2),Pe([$],$e.prototype,"multiple",2),Pe([a],$e.prototype,"name",2),Pe([$],$e.prototype,"start",2),Pe([a({attribute:"text",mode:"fromView"})],$e.prototype,"textAttribute",2);const Yg=p`
|
|
467
|
+
${I("inline-grid")}
|
|
471
468
|
|
|
472
|
-
:host{
|
|
473
|
-
:
|
|
469
|
+
:host{-webkit-tap-highlight-color:transparent;${Aa}
|
|
470
|
+
align-items:center;background-color:${E};border-radius:${T};border:${ze} solid ${ce};box-sizing:border-box;color:${Le};column-gap:${Ee};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${de}}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Oi};color:${Fo}}:host(:active){background-color:${Fi};color:${No}}:host(:disabled){background-color:${E};color:${A};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(${Ms}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${so}) .checkmark-16-filled,:host(:not(${so})) .checkmark-12-regular{display:none}:host(${so}) .checkmark-12-regular{background-color:${E};border-radius:${He};border:${N} solid ${Qe};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${so}${Ms}) .checkmark-12-regular{background-color:${Lt};border-color:${Rt};fill:${Dt}}:host(:disabled${so}) .checkmark-12-regular{border-color:${Ae}}:host(:disabled${so}${Ms}) .checkmark-12-regular{background-color:${kt}}:host(${Gl}){border:${ze} solid ${Ve}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${de}}}:host(${ac}){column-gap:${de};grid-template-areas:'indicator start content'
|
|
471
|
+
'indicator start description'}::slotted([slot='description']){color:${be};grid-area:description;${Ea}}`,Qg=g.partial(`
|
|
472
|
+
<svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
|
|
473
|
+
<path
|
|
474
|
+
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"
|
|
475
|
+
/>
|
|
476
|
+
</svg>
|
|
477
|
+
<svg aria-hidden="true" class="checkmark-12-regular" viewBox="0 0 12 12">
|
|
478
|
+
<path
|
|
479
|
+
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"
|
|
480
|
+
/>
|
|
481
|
+
</svg>
|
|
482
|
+
`);function Zg(o={}){return g`<slot name="checked-indicator">${ve(o.checkedIndicator)}</slot>${Ke(o)}<div class="content" part="content"><slot ${K({property:"freeformOutputs",filter:Bt("output")})}></slot></div><div class="description" part="description"><slot name="description" ${K("descriptionSlot")}></slot></div>`}const Jg=Zg({checkedIndicator:Qg}),ef=$e.compose({name:`${b.prefix}-option`,template:Jg,styles:Yg});ef.define(b.registry);const tf={medium:"medium",large:"large"},of={rounded:"rounded",square:"square"},sf={success:"success",warning:"warning",error:"error"};var rf=Object.defineProperty,nf=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var s=i>1?void 0:i?nf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&rf(e,t,s),s};class vo extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){y(this.elementInternals,e,t,sf)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null}get percentComplete(){const e=this.min??0,t=this.max??100,i=this.value??0,s=t-e;return s===0?0:Math.fround((i-e)/s*100)}}Ut([a({attribute:"validation-state"})],vo.prototype,"validationState",2),Ut([a({converter:ae})],vo.prototype,"value",2),Ut([a({converter:ae})],vo.prototype,"min",2),Ut([a({converter:ae})],vo.prototype,"max",2),Ut([fs],vo.prototype,"percentComplete",1);class br extends vo{thicknessChanged(e,t){y(this.elementInternals,e,t,tf)}shapeChanged(e,t){y(this.elementInternals,e,t,of)}}Ut([a],br.prototype,"thickness",2),Ut([a],br.prototype,"shape",2);const af=p`
|
|
483
|
+
${I("block")}
|
|
484
|
+
|
|
485
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${Ni};border-radius:${T};contain:content}:host(${C}){height:4px}:host(${Ao}){border-radius:${Mi}}.indicator{background-color:${Lt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
486
|
+
to right,${Ni} 0%,${Be} 50%,${Ni} 100%
|
|
487
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ns}) .indicator{background-color:${Un}}:host(${Mt}) .indicator{background-color:${ea}}:host(${Nt}) .indicator{background-color:${Zn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(le(p`
|
|
488
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${Nt},${Mt},${Ns})) .indicator{background-color:Highlight}`));function lf(){return g`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const cf=lf(),df=br.compose({name:`${b.prefix}-progress-bar`,template:cf,styles:af});df.define(b.registry);class Ha extends Fe{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),t&&(this.tabIndex=-1),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function Ra(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const ja=Ce;var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Xt=(o,e,t,i)=>{for(var s=i>1?void 0:i?uf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&hf(e,t,s),s};class bt extends w{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ja.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled}),this.restrictFocus())}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??ja.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const s=El(this.enabledRadios,n=>n.initialChecked);t.forEach((n,d)=>{n.ariaPosInSet=`${d+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=d===s,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=s);const r=t.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),ne.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}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 f.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()),f.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((s,r)=>{const n=r===e;s.checked=n,n&&(i=r,t&&s.$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()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=As(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===Ra(this))??this.checkedIndex;let s=0;switch(e.key){case"ArrowLeft":{s=t?1:-1;break}case"ArrowUp":{s=-1;break}case"ArrowRight":{s=t?-1:1;break}case"ArrowDown":{s=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!s)return!0;const r=i+s;this.checkRadio(this.getEnabledIndexInBounds(r),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(Ra(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,s)=>{i.tabIndex=s===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){ne.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof Ha)})}}bt.formAssociated=!0,Xt([$],bt.prototype,"checkedIndex",2),Xt([a({attribute:"disabled",mode:"boolean"})],bt.prototype,"disabled",2),Xt([a({attribute:"value",mode:"fromView"})],bt.prototype,"initialValue",2),Xt([a],bt.prototype,"name",2),Xt([a],bt.prototype,"orientation",2),Xt([$],bt.prototype,"radios",2),Xt([a({mode:"boolean"})],bt.prototype,"required",2);const pf=p`
|
|
489
|
+
${I("flex")}
|
|
490
|
+
|
|
491
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ji}}:host(${_}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${be}}::slotted(:hover){color:${Le}}::slotted(:active){color:${O}}::slotted(${_}){color:${A}}::slotted(${x}){color:${O}}`;function bf(){return g`<template @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)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const gf=bf(),ff=bt.compose({name:`${b.prefix}-radio-group`,template:gf,styles:pf});ff.define(b.registry);const mf=p`
|
|
492
|
+
${I("inline-flex")}
|
|
493
|
+
|
|
494
|
+
:host{--size:16px;aspect-ratio:1;background-color:${E};border:${N} solid ${Qe};border-radius:${Se};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${Se};color:${Dt};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:${ze} solid ${ce};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ve}}:host(:hover){border-color:${Vt}}:host(${x}){border-color:${Rt}}:host(${x}) .checked-indicator{background-color:${Lt}}:host(${x}:hover) .checked-indicator{background-color:${no}}:host(:active){border-color:${Ht}}:host(${x}:active) .checked-indicator{background-color:${ao}}:host(:focus-visible){outline:none}:host(${_}){background-color:${kt};border-color:${Ae}}:host(${x}${_}) .checked-indicator{background-color:${Ae}}`.withBehaviors(le(p`
|
|
495
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${_}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${_}):hover) .checked-indicator{background-color:Highlight}:host(${_}){border-color:GrayText;color:GrayText}:host(${_}${x}) .checked-indicator{background-color:GrayText}`)),$f=g.partial(`
|
|
474
496
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
475
|
-
`);function
|
|
476
|
-
${
|
|
497
|
+
`);function vf(o={}){return g`<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">${ve(o.checkedIndicator)}</slot></template>`}const yf=vf({checkedIndicator:$f}),kf=Ha.compose({name:`${b.prefix}-radio`,template:yf,styles:mf});kf.define(b.registry);const xf={neutral:"neutral",brand:"brand",marigold:"marigold"},wf={small:"small",medium:"medium",large:"large"};var Cf=Object.defineProperty,Sf=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var s=i>1?void 0:i?Sf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Cf(e,t,s),s};class Kt extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let s=0;s<this.getMaxIcons();s++){const r=(s+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${r===i?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}gt([a({converter:ae})],Kt.prototype,"count",2),gt([a({attribute:"icon-view-box"})],Kt.prototype,"iconViewBox",2),gt([a({converter:ae})],Kt.prototype,"max",2),gt([a({converter:ae})],Kt.prototype,"value",2),gt([$],Kt.prototype,"slottedIcon",2),gt([$],Kt.prototype,"customIcon",2);class is extends Kt{constructor(){super(...arguments),this.compact=!1}colorChanged(e,t){y(this.elementInternals,e,t,xf)}sizeChanged(e,t){y(this.elementInternals,e,t,wf)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}gt([a],is.prototype,"color",2),gt([a],is.prototype,"size",2),gt([a({mode:"boolean"})],is.prototype,"compact",2);const If=p`
|
|
498
|
+
${I("inline-flex")}
|
|
477
499
|
|
|
478
|
-
:host{--icon-size:16px;--icon-color-filled:${
|
|
479
|
-
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),
|
|
480
|
-
:host{--step-rate:${
|
|
481
|
-
${
|
|
500
|
+
:host{--icon-size:16px;--icon-color-filled:${eh};--icon-color-empty:${ia};align-items:center;color:${O};font-family:${k};font-size:${G};line-height:${ee};contain:layout style;user-select:none}:host(${P}){--icon-size:12px}:host(${C}){--icon-size:20px;font-size:${M};line-height:${j}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${te}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Pi}) svg{--icon-color-filled:${O}}:host(${Ye}) svg{--icon-color-filled:${qs}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${Pi}:is([value^='-'],[value='0'])) svg,:host(${Pi}:not([value])) svg,:host(${Pi}) svg[selected] ~ svg{--icon-color-empty:${Fi}}:host(${Ye}:is([value^='-'],[value='0'])) svg,:host(${Ye}:not([value])) svg,:host(${Ye}) svg[selected] ~ svg{--icon-color-empty:${Ws}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Ee};font-weight:${U}}:host(${P}) .value-label,:host(${P}) ::slotted([slot='value']){margin-inline-start:${te}}:host(${C}) .value-label,:host(${C}) ::slotted([slot='value']){margin-inline-start:${de}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Ee}}:host(${P}) .count-label::before,:host(${P}) ::slotted([slot='count'])::before{margin-inline:${te}}:host(${C}) .count-label::before,:host(${C}) ::slotted([slot='count'])::before{margin-inline:${de}}`.withBehaviors(le(p`
|
|
501
|
+
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),zf=g`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function Pf(){return g` ${o=>g`${ve(o.generateIcons())}`}<slot name="icon" ${K({property:"slottedIcon",filter:Bt("svg")})}>${zf}</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 Tf=Pf(),Bf=is.compose({name:`${b.prefix}-rating-display`,template:Tf,styles:If});Bf.define(b.registry);const Af={small:"small",medium:"medium"},Ef=Ce,Of={singleValue:"single-value"};function qa(o,e,t,i){let s=Ts(0,1,(o-e)/(t-e));return i===De.rtl&&(s=1-s),s}var Ff=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,ue=(o,e,t,i)=>{for(var s=i>1?void 0:i?Nf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Ff(e,t,s),s};class Z extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=De.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=Of.singleValue,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case wi:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==Ce.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case ki:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==Ce.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case vi:case yi:e.shiftKey||(e.preventDefault(),this.increment());break;case $i:case mi:e.shiftKey||(e.preventDefault(),this.decrement());break}},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.setupListeners=(e=!1)=>{this.addEventListener("keydown",this.keypressHandler),e&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.orientation===Ce.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;if(t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove),e){this.setupTrackConstraints();const s=this.orientation===Ce.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Ef.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(e,t){y(this.elementInternals,e,t,Af)}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition(this.direction);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=p`
|
|
502
|
+
: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.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return f.track(this,"value"),this._value.toString()}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=Ts(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.direction),this.$emit("change"),this.setFormValue(e),f.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}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)}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,y(this.elementInternals,e,t,Ce),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=As(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),f.getNotifier(this).subscribe(this,"max"),f.getNotifier(this).subscribe(this,"min"),f.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),f.getNotifier(this).unsubscribe(this,"max"),f.getNotifier(this).unsubscribe(this,"min"),f.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==De.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!==De.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}setSliderPosition(e){const i=(1-qa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,e))*100,s=`calc(100% - ${i}%)`,r=this.orientation!==Ce.vertical&&e===De.rtl?`${i}%`:`calc(100% - ${i}%)`;this.position=`--slider-thumb: ${s}; --slider-progress: ${r}`}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=qa(e,this.orientation===Ce.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Ce.vertical?this.trackHeight:this.trackWidth,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),s=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=s>=Number(this.stepAsNumber)/2?t-s+Number(this.stepAsNumber):t-s,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}Z.formAssociated=!0,ue([a],Z.prototype,"size",2),ue([a({attribute:"value",mode:"fromView"})],Z.prototype,"initialValue",2),ue([$],Z.prototype,"direction",2),ue([$],Z.prototype,"isDragging",2),ue([$],Z.prototype,"position",2),ue([$],Z.prototype,"trackWidth",2),ue([$],Z.prototype,"trackMinWidth",2),ue([$],Z.prototype,"trackHeight",2),ue([$],Z.prototype,"trackLeft",2),ue([$],Z.prototype,"trackMinHeight",2),ue([$],Z.prototype,"valueTextFormatter",2),ue([a({mode:"boolean"})],Z.prototype,"disabled",2),ue([a({converter:Bs})],Z.prototype,"min",2),ue([a({converter:Bs})],Z.prototype,"max",2),ue([a({converter:Bs})],Z.prototype,"step",2),ue([a],Z.prototype,"orientation",2),ue([a],Z.prototype,"mode",2);const _f=p`
|
|
503
|
+
${I("inline-grid")}
|
|
482
504
|
|
|
483
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${
|
|
505
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${Lt};--track-color:${Qe};--slider-direction:90deg;--border-radius:${T};--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:${no}}:host(:active){--rail-color:${ao}}:host(:disabled){--rail-color:${A};--track-color:${kt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${P}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${He}}:host(${z}){--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 ${Ve};outline:1px solid ${Us}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
484
506
|
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
485
|
-
);border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${
|
|
486
|
-
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${
|
|
487
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${
|
|
488
|
-
.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function
|
|
489
|
-
${
|
|
490
|
-
|
|
491
|
-
:host{--duration:1.5s;--indicatorSize:${
|
|
492
|
-
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-
|
|
493
|
-
${
|
|
494
|
-
|
|
495
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${
|
|
496
|
-
:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}`)),
|
|
497
|
-
${
|
|
498
|
-
|
|
499
|
-
:host{box-sizing:border-box;padding:${
|
|
500
|
-
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}
|
|
501
|
-
${
|
|
502
|
-
|
|
503
|
-
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${
|
|
504
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),
|
|
507
|
+
);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(${z})::after,:host(${z}) .track{height:100%;width:var(--track-size)}:host(${z}) .track{top:var(--track-overhang);bottom:var(--track-overhang)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${z}) .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(
|
|
508
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${E} calc(var(--step-rate) - 1px),${E} var(--step-rate)
|
|
509
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${z}) .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:${Se};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${E} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ze};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(le(p`
|
|
510
|
+
.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 Mf(o={}){return g`<template tabindex="${e=>e.disabled?null:0}" @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}"><div ${X("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${X("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${ve(o.thumb)}</slot></div></template>`}const Df=Mf({thumb:'<div class="thumb"></div>'}),Lf=Z.compose({name:`${b.prefix}-slider`,template:Df,styles:_f});Lf.define(b.registry);const Vf={primary:"primary",inverted:"inverted"},Hf={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"};var Rf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,Wa=(o,e,t,i)=>{for(var s=i>1?void 0:i?jf(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Rf(e,t,s),s};class qf extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class gr extends qf{sizeChanged(e,t){y(this.elementInternals,e,t,Hf)}appearanceChanged(e,t){y(this.elementInternals,e,t,Vf)}}Wa([a],gr.prototype,"size",2),Wa([a],gr.prototype,"appearance",2);const Wf=p`
|
|
511
|
+
${I("inline-flex")}
|
|
512
|
+
|
|
513
|
+
:host{--duration:1.5s;--indicatorSize:${ge};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${Oo}){--indicatorSize:${ze};--size:20px}:host(${To}){--indicatorSize:${ze};--size:24px}:host(${P}){--indicatorSize:${ze};--size:28px}:host(${C}){--indicatorSize:${ge};--size:36px}:host(${Si}){--indicatorSize:${ge};--size:40px}:host(${vc}){--indicatorSize:${Zs};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Gi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Ws};border-radius:50%}:host(${En}) .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:${qn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host(${En}) .indicator{color:${Ld}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(le(p`
|
|
514
|
+
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),Gf=g`<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>`,Uf=gr.compose({name:`${b.prefix}-spinner`,template:Gf,styles:Wf});Uf.define(b.registry);class Xf extends Fe{constructor(){super(),this.elementInternals.role="switch"}}function Kf(o={}){return g`<template tabindex="${e=>e.disabled?void 0:0}" @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">${ve(o.switch)}</slot></template>`}const Yf=Kf({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Qf=p`
|
|
515
|
+
${I("inline-flex")}
|
|
516
|
+
|
|
517
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${te};width:40px;height:20px;background-color:${Be};border:1px solid ${Qe};border-radius:${Se};cursor:pointer}:host(:hover){background:none;border-color:${Vt}}:host(:active){border-color:${Ht}}:host(:disabled),:host([readonly]){border:1px solid ${Ae};background-color:none;pointer:default}:host(${x}){background:${Lt};border-color:${Lt}}:host(${x}:hover){background:${no};border-color:${no}}:host(${x}:active){background:${ao};border-color:${ao}}:host(${x}:disabled){background:${kt};border-color:${Ae}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${be};transition-duration:${qi};transition-timing-function:${Gi};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${Dt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${zd}}:host(${x}:active) .checked-indicator{background:${Pd}}:host(:hover) .checked-indicator{background-color:${$d}}:host(:active) .checked-indicator{background-color:${vd}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${A}}:host(${x}:disabled) .checked-indicator{background:${A}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${ce};outline:${ze} solid ${ce};box-shadow:${Ri},0 0 0 2px ${Ve}}`.withBehaviors(le(p`
|
|
518
|
+
:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),Zf=Xf.compose({name:`${b.prefix}-switch`,template:Yf,styles:Qf});Zf.define(b.registry);class Jf extends w{}function em(){return g`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const tm=em(),om=p`
|
|
519
|
+
${I("block")}
|
|
520
|
+
|
|
521
|
+
:host{box-sizing:border-box;padding:${xe} ${fe}}`,im=Jf.compose({name:`${b.prefix}-tab-panel`,template:tm,styles:om});im.define(b.registry);var sm=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,nm=(o,e,t,i)=>{for(var s=i>1?void 0:i?rm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&sm(e,t,s),s};class fr extends w{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
|
|
522
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}nm([a({mode:"boolean"})],fr.prototype,"disabled",2),nt(fr,rt);function am(o={}){return g`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ke(o)}<span class="tab-content"><slot></slot></span>${mt(o)}</template>`}const lm=am({}),cm=p`
|
|
523
|
+
${I("inline-flex")}
|
|
524
|
+
|
|
525
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${j};font-family:${k};font-size:${M};color:${Le};fill:currentcolor;grid-row:1;padding:${xe} ${fe};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${O};font-weight:${U}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${j};font-weight:${U}}:host([aria-selected='true'])::after{background-color:${Rt};border-radius:${Se};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${lo};border-radius:${Se};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${A}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${A};color:${A}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${He};box-shadow:0 0 0 3px ${Ve};outline:1px solid ${Us}}`.withBehaviors(le(p`
|
|
526
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),dm=fr.compose({name:`${b.prefix}-tab`,template:lm,styles:cm});dm.define(b.registry);const hm={subtle:"subtle",transparent:"transparent"},ss=Ce;var um=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,Yt=(o,e,t,i)=>{for(var s=i>1?void 0:i?pm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&um(e,t,s),s};class Qo extends w{constructor(){super(...arguments),this.orientation=ss.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case $i:e.preventDefault(),this.adjustBackward(e);break;case vi:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case yi:e.preventDefault(),this.adjustBackward(e);break;case mi:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case wi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case ki:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((s,r)=>{if(s.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(s),d=this.tabIds[r],u=this.tabpanelIds[r];s.setAttribute("id",d),s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("aria-controls",u),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=s,this.activeid=d)}s.style[e]="",s.style[t]="",s.style[i]=`${r+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",s),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${io()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${io()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ss.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),s=Ts(0,t.length-1,i+e),r=this.tabs.indexOf(t[s]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Yt([a],Qo.prototype,"orientation",2),Yt([a],Qo.prototype,"activeid",2),Yt([$],Qo.prototype,"tabs",2),Yt([$],Qo.prototype,"tabpanels",2);class Zo extends Qo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=hm.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===ss.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===ss.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
|
|
505
527
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
|
|
506
|
-
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t
|
|
507
|
-
${
|
|
528
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Yt([a],Zo.prototype,"appearance",2),Yt([a({mode:"boolean"})],Zo.prototype,"disabled",2),Yt([a],Zo.prototype,"size",2),nt(Zo,rt);function bm(o={}){return g` ${Ke(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${K("tabs")}></slot></div>${mt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${K("tabpanels")}></slot></div>`}const gm=bm({}),fm=p`
|
|
529
|
+
${I("grid")}
|
|
508
530
|
|
|
509
|
-
:host{box-sizing:border-box;font-family:${y};font-size:${O};line-height:${V};color:${jt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${E}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${E}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${E}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${E}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${P}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${E}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${wi};color:${xs};fill:${vn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${We};fill:${We};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${O};line-height:${V};padding:${be} ${wt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ht};line-height:${xt};padding:${Ai} ${pt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${ea};transition-timing-function:${Vs}}:host ::slotted(fluent-tab)::after{height:${nt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${nt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${nt};border-radius:${mt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${nt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${nt};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${nt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${be};padding-bottom:${be}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${To};padding-bottom:${To}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${at};padding-bottom:${at}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${wt};left:${wt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${pt};left:${pt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${pt};left:${pt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${be};bottom:${be}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${at};bottom:${at}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Je};bottom:${Je}}`,kf=Lo.compose({name:`${g.prefix}-tabs`,template:vf,styles:yf});kf.define(g.registry);const xf=o=>o.getAttribute("aria-disabled")==="true",wf=o=>o.hasAttribute("hidden"),Gi=o=>!xf(o)&&!wf(o),Ia={subtle:"subtle",transparent:"transparent"},Sf={small:"small",medium:"medium",large:"large"},lo=bt;var Cf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,co=(o,t,e,i)=>{for(var s=i>1?void 0:i?If(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Cf(t,e,s),s};class Ho extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=lo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Gi(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=fs(this);switch(t.key){case si:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case ri:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case ni:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case ii:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case ci:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ai:t.preventDefault(),this.adjust(this.tabs.filter(i=>Gi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??lo.horizontal,m(this.elementInternals,t,e,lo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const i=this.activeTabIndex===e&&Gi(t),s=this.tabIds[e];t.setAttribute("id",s),t.setAttribute("aria-selected",i?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=t,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${je()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===lo.horizontal}adjust(t){const e=this.tabs.filter(n=>Gi(n)),i=e.indexOf(this.activetab),s=ml(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}co([a({mode:"boolean"})],Ho.prototype,"disabled",2),co([a],Ho.prototype,"orientation",2),co([a],Ho.prototype,"activeid",2),co([k],Ho.prototype,"tabs",2);class Js extends Ho{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ia.transparent}appearanceChanged(t,e){m(this.elementInternals,t,e,Ia)}sizeChanged(t,e){m(this.elementInternals,t,e,Sf)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===lo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===lo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}co([a],Js.prototype,"appearance",2),co([a],Js.prototype,"size",2);const zf=f`<template role="tablist"><slot name="tab" ${rt("tabs")}></slot></template>`,Tf=p`
|
|
510
|
-
${
|
|
531
|
+
:host{box-sizing:border-box;font-family:${k};font-size:${M};line-height:${j};color:${Le};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${A}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${A}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${A}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${_i};color:${Ds};fill:${Mn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${ro};fill:${ro};color:${O}}:host([size='small']) ::slotted(fluent-tab){font-size:${M};line-height:${j};padding:${et} ${de}}:host([size='large']) ::slotted(fluent-tab){font-size:${ke};line-height:${Ie};padding:${ji} ${fe}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted(fluent-tab)::after{height:${ge};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${ge};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${ge};border-radius:${Se};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${ge};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${ge};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${ge}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${et};padding-bottom:${et}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Vo};padding-bottom:${Vo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${oe};padding-bottom:${oe}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${de};left:${de}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${fe};left:${fe}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${fe};left:${fe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${et};bottom:${et}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${oe};bottom:${oe}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${uo};bottom:${uo}}`,mm=Zo.compose({name:`${b.prefix}-tabs`,template:gm,styles:fm});mm.define(b.registry);const $m=o=>o.getAttribute("aria-disabled")==="true",vm=o=>o.hasAttribute("hidden"),rs=o=>!$m(o)&&!vm(o),Ga={subtle:"subtle",transparent:"transparent"},ym={small:"small",medium:"medium",large:"large"},yo=Ce;var km=Object.defineProperty,xm=Object.getOwnPropertyDescriptor,ko=(o,e,t,i)=>{for(var s=i>1?void 0:i?xm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&km(e,t,s),s};class Jo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=yo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&rs(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=As(this);switch(e.key){case $i:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case vi:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case yi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case mi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case wi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case ki:e.preventDefault(),this.adjust(this.tabs.filter(i=>rs(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){v(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??yo.horizontal,y(this.elementInternals,e,t,yo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const i=this.activeTabIndex===t&&rs(e),s=this.tabIds[t];e.setAttribute("id",s),e.setAttribute("aria-selected",i?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=e,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${io()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===yo.horizontal}adjust(e){const t=this.tabs.filter(n=>rs(n)),i=t.indexOf(this.activetab),s=Nl(0,t.length-1,i+e),r=this.tabs.indexOf(t[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}ko([a({mode:"boolean"})],Jo.prototype,"disabled",2),ko([a],Jo.prototype,"orientation",2),ko([a],Jo.prototype,"activeid",2),ko([$],Jo.prototype,"tabs",2);class mr extends Jo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ga.transparent}appearanceChanged(e,t){y(this.elementInternals,e,t,Ga)}sizeChanged(e,t){y(this.elementInternals,e,t,ym)}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===yo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===yo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}ko([a],mr.prototype,"appearance",2),ko([a],mr.prototype,"size",2);const wm=g`<template role="tablist"><slot name="tab" ${K("tabs")}></slot></template>`,Cm=p`
|
|
532
|
+
${I("flex")}
|
|
511
533
|
|
|
512
|
-
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${jt};flex-direction:row}:host(${I}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${ea};transition-timing-function:${Vs}}:host ::slotted([slot='tab'])::after{height:${nt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${I}) ::slotted([slot='tab'])::after{width:${nt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${nt};border-radius:${mt};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${E}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${nt};margin-block-start:auto;transform-origin:left}:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${nt};margin-inline-end:auto;transform-origin:top}:host(:where(${B},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${B}) ::slotted([slot='tab']){--tabPaddingBlock:${be};--tabPaddingInline:${wt};font-size:${O};line-height:${V}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${Ai};--tabPaddingInline:${pt};font-size:${ht};line-height:${xt}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${pt}}:host(${B}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${wt}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${pt}}:host(${I}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${I}) ::slotted([slot='tab']){--tabPaddingBlock:${at}}:host(${I}${B}) ::slotted([slot='tab']){--tabPaddingBlock:${To}}:host(${I}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${at}}:host(${I}) ::slotted([slot='tab'])::after,:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${I}){--tabIndicatorInsetBlock:${at}}:host(${I}${B}){--tabIndicatorInsetBlock:${be}}:host(${I}${C}){--tabIndicatorInsetBlock:${Je}}:host(${N}){cursor:not-allowed;color:${E}}:host(${N}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${E}}:host(${N}) ::slotted([slot='tab']:after){background-color:${E}}:host(${N}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${E}}:host(${N}) ::slotted([slot='tab']:hover):before{content:unset}:host(${T}) ::slotted([slot='tab']:hover){background-color:${wi};color:${xs};fill:${vn}}:host(${T}) ::slotted([slot='tab']:active){background-color:${We};fill:${We};color:${A}}`,Bf=Js.compose({name:`${g.prefix}-tablist`,template:zf,styles:Tf});Bf.define(g.registry);const Pf={small:"small",medium:"medium",large:"large"},Vo={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Af=[Vo.filledLighter,Vo.filledDarker],Ui={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Ef=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,W=(o,t,e,i)=>{for(var s=i>1?void 0:i?Nf(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ef(t,e,s),s};class Y extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Ui.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){m(this.elementInternals,t,e,Ui,"resize-"),v(this.elementInternals,"resize",vs(Ui,e)&&e!==Ui.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Y.formAssociated=!0,W([k],Y.prototype,"defaultSlottedNodes",2),W([k],Y.prototype,"labelSlottedNodes",2),W([a],Y.prototype,"autocomplete",2),W([a({attribute:"auto-resize",mode:"boolean"})],Y.prototype,"autoResize",2),W([a({attribute:"dirname"})],Y.prototype,"dirName",2),W([a({mode:"boolean"})],Y.prototype,"disabled",2),W([a({attribute:"display-shadow",mode:"boolean"})],Y.prototype,"displayShadow",2),W([a({attribute:"form"})],Y.prototype,"initialForm",2),W([a({attribute:"maxlength",converter:Z})],Y.prototype,"maxLength",2),W([a({attribute:"minlength",converter:Z})],Y.prototype,"minLength",2),W([a],Y.prototype,"name",2),W([a],Y.prototype,"placeholder",2),W([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),W([a({mode:"boolean"})],Y.prototype,"required",2),W([a({mode:"fromView"})],Y.prototype,"resize",2),W([a({mode:"boolean"})],Y.prototype,"spellcheck",2);class Wi extends Y{constructor(){super(...arguments),this.appearance=Vo.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){v(this.elementInternals,t,!1),vs(Vo,e)?v(this.elementInternals,e,!0):this.appearance=Vo.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(t,e){m(this.elementInternals,t,e,Pf)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),$.getNotifier(this).subscribe(this,"appearance"),$.getNotifier(this).subscribe(this,"displayShadow"),$.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this,"appearance"),$.getNotifier(this).unsubscribe(this,"displayShadow"),$.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&Af.includes(this.appearance))}}W([a({mode:"fromView"})],Wi.prototype,"appearance",2),W([a({mode:"boolean"})],Wi.prototype,"block",2),W([a],Wi.prototype,"size",2);const Of=p`
|
|
513
|
-
${
|
|
534
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Le};flex-direction:row}:host(${z}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted([slot='tab'])::after{height:${ge};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${z}) ::slotted([slot='tab'])::after{width:${ge};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${ge};border-radius:${Se};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:${A}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${ge};margin-block-start:auto;transform-origin:left}:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${ge};margin-inline-end:auto;transform-origin:top}:host(:where(${P},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${et};--tabPaddingInline:${de};font-size:${M};line-height:${j}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${ji};--tabPaddingInline:${fe};font-size:${ke};line-height:${Ie}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${fe}}:host(${P}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${de}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${fe}}:host(${z}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${z}) ::slotted([slot='tab']){--tabPaddingBlock:${oe}}:host(${z}${P}) ::slotted([slot='tab']){--tabPaddingBlock:${Vo}}:host(${z}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${oe}}:host(${z}) ::slotted([slot='tab'])::after,:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${z}){--tabIndicatorInsetBlock:${oe}}:host(${z}${P}){--tabIndicatorInsetBlock:${et}}:host(${z}${C}){--tabIndicatorInsetBlock:${uo}}:host(${_}){cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']:after){background-color:${A}}:host(${_}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${A}}:host(${_}) ::slotted([slot='tab']:hover):before{content:unset}:host(${B}) ::slotted([slot='tab']:hover){background-color:${_i};color:${Ds};fill:${Mn}}:host(${B}) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${O}}`,Sm=mr.compose({name:`${b.prefix}-tablist`,template:wm,styles:Cm});Sm.define(b.registry);const Im={small:"small",medium:"medium",large:"large"},ei={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},zm=[ei.filledLighter,ei.filledDarker],ns={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Pm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var s=i>1?void 0:i?Tm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Pm(e,t,s),s};class se extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=ns.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){y(this.elementInternals,e,t,ns,"resize-"),v(this.elementInternals,"resize",Fs(ns,t)&&t!==ns.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(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}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.$fastController.isConnected&&(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()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((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")}}se.formAssociated=!0,J([$],se.prototype,"defaultSlottedNodes",2),J([$],se.prototype,"labelSlottedNodes",2),J([a],se.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],se.prototype,"autoResize",2),J([a({attribute:"dirname"})],se.prototype,"dirName",2),J([a({mode:"boolean"})],se.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],se.prototype,"displayShadow",2),J([a({attribute:"form"})],se.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:ae})],se.prototype,"maxLength",2),J([a({attribute:"minlength",converter:ae})],se.prototype,"minLength",2),J([a],se.prototype,"name",2),J([a],se.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],se.prototype,"readOnly",2),J([a({mode:"boolean"})],se.prototype,"required",2),J([a({mode:"fromView"})],se.prototype,"resize",2),J([a({mode:"boolean"})],se.prototype,"spellcheck",2);class as extends se{constructor(){super(...arguments),this.appearance=ei.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}appearanceChanged(e,t){v(this.elementInternals,e,!1),Fs(ei,t)?v(this.elementInternals,t,!0):this.appearance=ei.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(e,t){y(this.elementInternals,e,t,Im)}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&zm.includes(this.appearance))}}J([a({mode:"fromView"})],as.prototype,"appearance",2),J([a({mode:"boolean"})],as.prototype,"block",2),J([a],as.prototype,"size",2);const Bm=p`
|
|
535
|
+
${I("inline-block")}
|
|
514
536
|
|
|
515
|
-
:host{--font-size:${
|
|
516
|
-
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function
|
|
517
|
-
${
|
|
537
|
+
:host{--font-size:${M};--line-height:${j};--padding-inline:${fe};--padding-block:${et};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${N};--control-padding-inline:${te};--color:${O};--background-color:${E};--border-color:${Ze};--border-block-end-color:${Qe};--placeholder-color:${Ls};--focus-indicator-color:${Rt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${k};font-size:var(--font-size);font-weight:${R};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${lo};--border-block-end-color:${Vt}}:host(:active){--border-color:${Mo};--border-block-end-color:${Ht}}:host(:focus-within){outline:none}:host(${zo}:not([hidden])){display:block}:host(${P}){--font-size:${G};--line-height:${ee};--min-block-size:40px;--padding-block:${ho};--padding-inline:${de};--control-padding-inline:${te}}:host(${C}){--font-size:${ke};--line-height:${Ie};--min-block-size:64px;--padding-block:${oe};--padding-inline:${xe};--control-padding-inline:${de}}:host(${Wc}:not(:disabled)){--resize:both}:host(${Gc}:not(:disabled)){--resize:horizontal}:host(${Uc}:not(:disabled)){--resize:vertical}:host(${Tn}){--block-size:auto;--contain-size:inline-size}:host(${$t}){--background-color:${_o};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Ot}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${$t}${Bn}),:host(${Ot}${Bn}){--box-shadow:${Ys}}:host(${ud}){--border-color:${Xs};--border-block-end-color:${Xs}}:host(:disabled){--color:${A};--background-color:${Be};--border-color:${Ae};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${A};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:${T};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(${zo}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${T} ${T};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${T});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${jt};transition-duration:${Js};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${qi};transition-delay:${qt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${ho};padding-inline-end:${Ee}}: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(${Tn}) .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:${Dt};background-color:${Vn}}`.withBehaviors(le(p`
|
|
538
|
+
: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 Am(){return g`<template><label ${X("labelEl")} for="control" part="label"><slot name="label" ${K({property:"labelSlottedNodes",filter:Es})}></slot></label><div class="root" part="root"><textarea ${X("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 ${K({property:"defaultSlottedNodes",filter:Es})}></slot></div></template>`}const Em=Am(),Om=as.compose({name:`${b.prefix}-textarea`,template:Em,styles:Bm,shadowOptions:{delegatesFocus:!0}});Om.define(b.registry);const Fm={small:"small",medium:"medium",large:"large"},Nm={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},_m={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Mm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Dm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,L=(o,e,t,i)=>{for(var s=i>1?void 0:i?Lm(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Dm(e,t,s),s};class V extends w{constructor(){super(...arguments),this.type=_m.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}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}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return f.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),f.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}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()}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(s=>s.getAttribute("type")==="submit");if(t){t.click();return}e.filter(s=>Mm.includes(s.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=this.control.validity,t=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t,i)}}}V.formAssociated=!0,L([a],V.prototype,"autocomplete",2),L([a({mode:"boolean"})],V.prototype,"autofocus",2),L([a({attribute:"current-value"})],V.prototype,"currentValue",2),L([$],V.prototype,"defaultSlottedNodes",2),L([a],V.prototype,"dirname",2),L([a({mode:"boolean"})],V.prototype,"disabled",2),L([a({attribute:"form"})],V.prototype,"formAttribute",2),L([a({attribute:"value",mode:"fromView"})],V.prototype,"initialValue",2),L([a],V.prototype,"list",2),L([a({converter:ae})],V.prototype,"maxlength",2),L([a({converter:ae})],V.prototype,"minlength",2),L([a({mode:"boolean"})],V.prototype,"multiple",2),L([a],V.prototype,"name",2),L([a],V.prototype,"pattern",2),L([a],V.prototype,"placeholder",2),L([a({attribute:"readonly",mode:"boolean"})],V.prototype,"readOnly",2),L([a({mode:"boolean"})],V.prototype,"required",2),L([a({converter:ae})],V.prototype,"size",2),L([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],V.prototype,"spellcheck",2),L([a],V.prototype,"type",2),L([$],V.prototype,"controlLabel",2);class ls extends V{appearanceChanged(e,t){y(this.elementInternals,e,t,Nm)}controlSizeChanged(e,t){y(this.elementInternals,e,t,Fm)}}L([a],ls.prototype,"appearance",2),L([a({attribute:"control-size"})],ls.prototype,"controlSize",2),nt(ls,rt);const Vm=p`
|
|
539
|
+
${I("block")}
|
|
518
540
|
|
|
519
|
-
:host{font-family:${
|
|
520
|
-
${
|
|
541
|
+
:host{font-family:${k};font-size:${M};font-weight:${R};line-height:${j};max-width:400px}.label{display:flex;color:${O};padding-bottom:${ho};flex-shrink:0;padding-inline-end:${Ee}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${E};border:${N} solid ${Ze};border-bottom-color:${Qe};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${te};padding:0 ${fe};position:relative;width:100%}:has(.control:user-invalid){border-color:${Xs}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Rt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Js};transition-delay:${jt}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${T};background:${Be};font-family:${k};font-weight:${R};font-size:${M};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ls}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${be};font-size:${co}}:host ::slotted([slot='start']){padding-right:${te}}:host ::slotted([slot='end']){padding-left:${te};gap:${Ee}}:host(:hover) .root{border-color:${lo};border-bottom-color:${Vt}}: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:${qi};transition-delay:${qt}}:host(:focus-within:active) .root:after{border-bottom-color:${Wn}}:host(${F}:focus-within) .root{border:${N} solid ${Ze}}:host(:focus-within) .control{color:${O}}:host([disabled]) .root{background:${Be};border:${N} solid ${Ae}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${A}}::selection{color:${Dt};background-color:${Vn}}:host(${P}) .control{font-size:${G};font-weight:${R};line-height:${ee}}:host(${P}) .root{height:24px;gap:${te};padding:0 ${de}}:host(${P}) ::slotted([slot='start']),:host(${P}) ::slotted([slot='end']){font-size:${ke}}:host(${C}) .control{font-size:${ke};font-weight:${R};line-height:${Ie}}:host(${C}) .root{height:40px;gap:${Je};padding:0 ${xe}}:host(${C}) ::slotted([slot='start']),:host(${C}) ::slotted([slot='end']){font-size:${Di}}:host(${_t}) .root{background:${Be};border:0;border-radius:0;border-bottom:${N} solid ${Qe}}:host(${_t}:hover) .root{border-bottom-color:${Vt}}:host(${_t}:active) .root{border-bottom-color:${Ht}}:host(${_t}:focus-within) .root{border:0;border-bottom-color:${Ht}}:host(${_t}[disabled]) .root{border-bottom-color:${Ae}}:host(${Ot}) .root,:host(${$t}) .root{border:${N} solid ${ce};box-shadow:${Ys}}:host(${Ot}) .root{background:${E}}:host(${$t}) .root{background:${_o}}:host(${Ot}:hover) .root,:host(${$t}:hover) .root{border-color:${Gs}}:host(${Ot}:active) .root,:host(${$t}:active) .root{border-color:${Gs};background:${_o}}`;function Hm(o={}){return g`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${X("controlLabel")}><slot ${K({property:"defaultSlottedNodes",filter:Es})}></slot></label><div class="root" part="root">${Ke(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.initialValue}" ${X("control")} />${mt(o)}</div></template>`}const Rm=Hm(),jm=ls.compose({name:`${b.prefix}-text-input`,template:Rm,styles:Vm,shadowOptions:{delegatesFocus:!0}});jm.define(b.registry);const qm={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},Wm={base:"base",numeric:"numeric",monospace:"monospace"},Gm={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},Um={start:"start",end:"end",center:"center",justify:"justify"};var Xm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,st=(o,e,t,i)=>{for(var s=i>1?void 0:i?Km(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Xm(e,t,s),s};class qe extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(e,t){y(this.elementInternals,e,t,qm,"size-")}fontChanged(e,t){y(this.elementInternals,e,t,Wm)}weightChanged(e,t){y(this.elementInternals,e,t,Gm)}alignChanged(e,t){y(this.elementInternals,e,t,Um)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)})}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(e,t){switch(t){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":v(this.elementInternals,t,!!this[t]);break}}}st([a({mode:"boolean"})],qe.prototype,"nowrap",2),st([a({mode:"boolean"})],qe.prototype,"truncate",2),st([a({mode:"boolean"})],qe.prototype,"italic",2),st([a({mode:"boolean"})],qe.prototype,"underline",2),st([a({mode:"boolean"})],qe.prototype,"strikethrough",2),st([a({mode:"boolean"})],qe.prototype,"block",2),st([a],qe.prototype,"size",2),st([a],qe.prototype,"font",2),st([a],qe.prototype,"weight",2),st([a],qe.prototype,"align",2);const Ym=p`
|
|
542
|
+
${I("inline")}
|
|
521
543
|
|
|
522
|
-
:host{contain:content;font-family:${
|
|
523
|
-
${
|
|
544
|
+
:host{contain:content;font-family:${k};font-size:${M};line-height:${j};font-weight:${R};text-align:start}:host(${On}),:host(${On}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${_n}),:host(${_n}) ::slotted(*){text-overflow:ellipsis}:host(${zo}){display:block}:host(${kc}){font-style:italic}:host(${_t}){text-decoration-line:underline}:host(${Nn}){text-decoration-line:line-through}:host(${_t}${Nn}){text-decoration-line:line-through underline}:host(${Zc}){font-size:${Lo};line-height:${Vi}}:host(${Jc}){font-size:${G};line-height:${ee}}:host(${ed}){font-size:${ke};line-height:${Ie}}:host(${td}){font-size:${co};line-height:${Hi}}:host(${od}){font-size:${Di};line-height:${da}}:host(${id}){font-size:${na};line-height:${ha}}:host(${sd}){font-size:${aa};line-height:${ua}}:host(${rd}){font-size:${la};line-height:${pa}}:host(${Qc}){font-size:${ca};line-height:${ba}}:host(${Bc}){font-family:${su}}:host(${Ec}){font-family:${ru}}:host(${Pc}){font-weight:${nu}}:host(${Fn}){font-weight:${U}}:host(${Ql}){font-weight:${Li}}:host(${tc}){text-align:center}:host(${lc}){text-align:end}:host(${xc}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Qm=g`<slot></slot>`,Zm=qe.compose({name:`${b.prefix}-text`,template:Qm,styles:Ym});Zm.define(b.registry);var Jm=Object.defineProperty,e$=Object.getOwnPropertyDescriptor,Ua=(o,e,t,i)=>{for(var s=i>1?void 0:i?e$(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&Jm(e,t,s),s};class $r extends ut{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,v(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ua([a({mode:"boolean"})],$r.prototype,"pressed",2),Ua([a({mode:"boolean"})],$r.prototype,"mixed",2);const t$=p`
|
|
545
|
+
${Xi}
|
|
524
546
|
|
|
525
|
-
:host(${
|
|
526
|
-
:host(${
|
|
547
|
+
:host(${D}){border-color:${Ze};background-color:${Ln};color:${O};border-width:${N}}:host(${D}:hover){border-color:${lo};background-color:${Oi}}:host(${D}:active){border-color:${Mo};background-color:${Fi}}:host(${D}${ye}){border-color:transparent;background-color:${_d};color:${ht}}:host(${D}${ye}:hover){background-color:${Hn}}:host(${D}${ye}:active){background-color:${Rn}}:host(${D}${B}){border-color:transparent;background-color:${Fd};color:${fd}}:host(${D}${B}:hover){background-color:${_i};color:${Fo}}:host(${D}${B}:active){background-color:${ro};color:${No}}:host(${D}${F}),:host(${D}${H}){background-color:${Nd}}:host(${D}${F}:hover),:host(${D}${H}:hover){background-color:${Hs}}:host(${D}${F}:active),:host(${D}${H}:active){background-color:${Rs}}:host(${D}${H}){border-color:transparent;color:${md}}:host(${D}${H}:hover){color:${Ai}}:host(${D}${H}:active){color:${Ei}}`.withBehaviors(le(p`
|
|
548
|
+
:host(${D}),:host(${D}${ye}),:host(${D}${B}),:host(${D}${F}),:host(${D}${H}){background:SelectedItem;color:SelectedItemText}`)),o$=nr(),i$=$r.compose({name:`${b.prefix}-toggle-button`,template:o$,styles:t$});i$.define(b.registry);var s$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,cs=(o,e,t,i)=>{for(var s=i>1?void 0:i?r$(e,t):e,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(e,t,s):n(s))||s);return i&&s&&s$(e,t,s),s};class ti extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=io("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){Sn||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!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),Sn){Hl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}ne.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){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)}setFallbackStyles(){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 s={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},r=s[t]??s.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},d=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
527
549
|
#${this.anchor} {
|
|
528
|
-
anchor-name: ${
|
|
550
|
+
anchor-name: ${e};
|
|
529
551
|
}
|
|
530
552
|
#${this.id} {
|
|
531
553
|
inset: unset;
|
|
532
|
-
position-anchor: ${
|
|
554
|
+
position-anchor: ${e};
|
|
533
555
|
position: absolute;
|
|
534
556
|
${r}
|
|
535
557
|
${d}
|
|
536
558
|
}
|
|
537
|
-
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}
|
|
538
|
-
${
|
|
559
|
+
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}cs([a],ti.prototype,"id",2),cs([a({converter:ae})],ti.prototype,"delay",2),cs([a],ti.prototype,"positioning",2),cs([a],ti.prototype,"anchor",2);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"},n$=p`
|
|
560
|
+
${I("inline-flex")}
|
|
539
561
|
|
|
540
|
-
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${
|
|
562
|
+
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${ho};--inline-offset:${Ee};background:${E};border-radius:${T};border:1px solid ${ce};box-sizing:border-box;color:${O};display:inline-flex;filter:drop-shadow(0 0 2px ${Hd}) drop-shadow(0 4px 8px ${Rd});font-family:${k};font-size:${G};inset:unset;line-height:${ee};margin:unset;max-width:240px;overflow:visible;padding:4px ${fe} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${_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"]}}`,a$=g`<template popover aria-hidden="true"><slot></slot></template>`,l$=ti.compose({name:`${b.prefix}-tooltip`,template:a$,styles:n$});l$.define(b.registry);
|