@fluentui/web-components 3.0.0-rc.1 → 3.0.0-rc.11
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 +93 -2
- package/custom-elements.json +773 -1306
- package/dist/esm/anchor-button/anchor-button.base.js +4 -0
- package/dist/esm/anchor-button/anchor-button.base.js.map +1 -1
- package/dist/esm/avatar/avatar.base.d.ts +75 -1
- package/dist/esm/avatar/avatar.base.js +110 -1
- package/dist/esm/avatar/avatar.base.js.map +1 -1
- package/dist/esm/avatar/avatar.js +1 -1
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +24 -7
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/avatar/avatar.template.js +4 -3
- package/dist/esm/avatar/avatar.template.js.map +1 -1
- package/dist/esm/badge/badge.options.d.ts +3 -1
- package/dist/esm/badge/badge.options.js.map +1 -1
- package/dist/esm/button/button.base.d.ts +15 -1
- package/dist/esm/button/button.base.js +27 -24
- package/dist/esm/button/button.base.js.map +1 -1
- package/dist/esm/button/button.template.d.ts +3 -3
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +1 -1
- package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.d.ts +2 -1
- package/dist/esm/counter-badge/counter-badge.js +2 -1
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/dialog/dialog.d.ts +31 -11
- package/dist/esm/dialog/dialog.js +41 -26
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/dialog/dialog.template.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.js +1 -1
- package/dist/esm/dialog-body/dialog-body.js.map +1 -1
- package/dist/esm/drawer/drawer.d.ts +18 -9
- package/dist/esm/drawer/drawer.js +12 -7
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/drawer-body/drawer-body.js +1 -1
- package/dist/esm/drawer-body/drawer-body.js.map +1 -1
- package/dist/esm/dropdown/dropdown.base.d.ts +1 -0
- package/dist/esm/dropdown/dropdown.base.js +24 -15
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/index-rollup.d.ts +1 -2
- package/dist/esm/index-rollup.js +1 -2
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.d.ts +2 -4
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/listbox/listbox.d.ts +12 -7
- package/dist/esm/listbox/listbox.js +27 -17
- package/dist/esm/listbox/listbox.js.map +1 -1
- package/dist/esm/listbox/listbox.template.js +2 -3
- package/dist/esm/listbox/listbox.template.js.map +1 -1
- package/dist/esm/menu/menu.d.ts +7 -0
- package/dist/esm/menu/menu.js +22 -17
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +4 -4
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/message-bar/message-bar.d.ts +2 -1
- package/dist/esm/message-bar/message-bar.js +2 -1
- package/dist/esm/message-bar/message-bar.js.map +1 -1
- package/dist/esm/message-bar/message-bar.options.d.ts +6 -3
- package/dist/esm/message-bar/message-bar.options.js +6 -3
- package/dist/esm/message-bar/message-bar.options.js.map +1 -1
- package/dist/esm/option/option.js +1 -1
- package/dist/esm/option/option.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.d.ts +35 -8
- package/dist/esm/progress-bar/progress-bar.base.js +41 -20
- package/dist/esm/progress-bar/progress-bar.base.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.d.ts +8 -2
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/radio/radio.options.d.ts +9 -0
- package/dist/esm/radio/radio.options.js +12 -1
- package/dist/esm/radio/radio.options.js.map +1 -1
- package/dist/esm/radio-group/radio-group.d.ts +13 -7
- package/dist/esm/radio-group/radio-group.js +14 -21
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js +2 -2
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/rating-display/rating-display.base.d.ts +11 -1
- package/dist/esm/rating-display/rating-display.base.js +24 -11
- package/dist/esm/rating-display/rating-display.base.js.map +1 -1
- package/dist/esm/slider/slider.d.ts +7 -3
- package/dist/esm/slider/slider.js +46 -28
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.d.ts +2 -1
- package/dist/esm/styles/partials/badge.partials.js +2 -1
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/tab/tab.d.ts +13 -1
- package/dist/esm/tab/tab.js +16 -2
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tablist/tablist.base.d.ts +2 -1
- package/dist/esm/tablist/tablist.base.js +109 -95
- package/dist/esm/tablist/tablist.base.js.map +1 -1
- package/dist/esm/tablist/tablist.d.ts +2 -1
- package/dist/esm/tablist/tablist.js +2 -2
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/text-input/text-input.base.js +12 -5
- package/dist/esm/text-input/text-input.base.js.map +1 -1
- package/dist/esm/text-input/text-input.template.d.ts +1 -1
- package/dist/esm/text-input/text-input.template.js +2 -8
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/textarea.base.d.ts +12 -3
- package/dist/esm/textarea/textarea.base.js +42 -24
- package/dist/esm/textarea/textarea.base.js.map +1 -1
- package/dist/esm/textarea/textarea.template.js +1 -1
- package/dist/esm/textarea/textarea.template.js.map +1 -1
- package/dist/esm/theme/design-tokens.d.ts +115 -0
- package/dist/esm/theme/design-tokens.js +115 -0
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.d.ts +2 -2
- package/dist/esm/theme/set-theme.js +1 -1
- package/dist/esm/tree/tree.base.d.ts +9 -1
- package/dist/esm/tree/tree.base.js +17 -3
- package/dist/esm/tree/tree.base.js.map +1 -1
- package/dist/esm/tree/tree.d.ts +8 -2
- package/dist/esm/tree/tree.js +8 -2
- package/dist/esm/tree/tree.js.map +1 -1
- package/dist/esm/tree-item/tree-item.base.d.ts +15 -2
- package/dist/esm/tree-item/tree-item.base.js +22 -14
- package/dist/esm/tree-item/tree-item.base.js.map +1 -1
- package/dist/esm/utils/focusable-element.js +2 -1
- package/dist/esm/utils/focusable-element.js.map +1 -1
- package/dist/esm/utils/request-idle-callback.js +4 -9
- package/dist/esm/utils/request-idle-callback.js.map +1 -1
- package/dist/esm/utils/typings.d.ts +8 -0
- package/dist/esm/utils/typings.js +15 -1
- package/dist/esm/utils/typings.js.map +1 -1
- package/dist/web-components.d.ts +443 -318
- package/dist/web-components.js +1374 -1427
- package/dist/web-components.min.js +254 -248
- package/package.json +5 -6
- package/dist/esm/tab-panel/define.d.ts +0 -1
- package/dist/esm/tab-panel/define.js +0 -7
- package/dist/esm/tab-panel/define.js.map +0 -1
- package/dist/esm/tab-panel/index.d.ts +0 -4
- package/dist/esm/tab-panel/index.js +0 -5
- package/dist/esm/tab-panel/index.js.map +0 -1
- package/dist/esm/tab-panel/tab-panel.bench.d.ts +0 -3
- package/dist/esm/tab-panel/tab-panel.bench.js +0 -13
- package/dist/esm/tab-panel/tab-panel.bench.js.map +0 -1
- package/dist/esm/tab-panel/tab-panel.d.ts +0 -8
- package/dist/esm/tab-panel/tab-panel.definition.d.ts +0 -5
- package/dist/esm/tab-panel/tab-panel.definition.js +0 -13
- package/dist/esm/tab-panel/tab-panel.definition.js.map +0 -1
- package/dist/esm/tab-panel/tab-panel.js +0 -9
- package/dist/esm/tab-panel/tab-panel.js.map +0 -1
- package/dist/esm/tab-panel/tab-panel.styles.d.ts +0 -1
- package/dist/esm/tab-panel/tab-panel.styles.js +0 -12
- package/dist/esm/tab-panel/tab-panel.styles.js.map +0 -1
- package/dist/esm/tab-panel/tab-panel.template.d.ts +0 -7
- package/dist/esm/tab-panel/tab-panel.template.js +0 -13
- package/dist/esm/tab-panel/tab-panel.template.js.map +0 -1
- package/dist/esm/tabs/define.d.ts +0 -1
- package/dist/esm/tabs/define.js +0 -7
- package/dist/esm/tabs/define.js.map +0 -1
- package/dist/esm/tabs/index.d.ts +0 -6
- package/dist/esm/tabs/index.js +0 -6
- package/dist/esm/tabs/index.js.map +0 -1
- package/dist/esm/tabs/tabs.base.d.ts +0 -90
- package/dist/esm/tabs/tabs.base.js +0 -279
- package/dist/esm/tabs/tabs.base.js.map +0 -1
- package/dist/esm/tabs/tabs.bench.d.ts +0 -3
- package/dist/esm/tabs/tabs.bench.js +0 -32
- package/dist/esm/tabs/tabs.bench.js.map +0 -1
- package/dist/esm/tabs/tabs.d.ts +0 -100
- package/dist/esm/tabs/tabs.definition.d.ts +0 -5
- package/dist/esm/tabs/tabs.definition.js +0 -13
- package/dist/esm/tabs/tabs.definition.js.map +0 -1
- package/dist/esm/tabs/tabs.js +0 -180
- package/dist/esm/tabs/tabs.js.map +0 -1
- package/dist/esm/tabs/tabs.options.d.ts +0 -32
- package/dist/esm/tabs/tabs.options.js +0 -16
- package/dist/esm/tabs/tabs.options.js.map +0 -1
- package/dist/esm/tabs/tabs.styles.d.ts +0 -1
- package/dist/esm/tabs/tabs.styles.js +0 -230
- package/dist/esm/tabs/tabs.styles.js.map +0 -1
- package/dist/esm/tabs/tabs.template.d.ts +0 -8
- package/dist/esm/tabs/tabs.template.js +0 -19
- package/dist/esm/tabs/tabs.template.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Vo;const is="fast-kernel";try{if(document.currentScript)Vo=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Vo=o[o.length-1].getAttribute(is)}}catch{Vo="isolate"}let dt;switch(Vo){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=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)}`;dt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Ge=o=>typeof o=="string",Ba=()=>{};var Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Xi<"u")Xi.globalThis=Xi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const rs={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},rs));const oe=globalThis.FAST;if(oe.getById===void 0){const o=Object.create(null);Reflect.defineProperty(oe,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},rs))}oe.error===void 0&&Object.assign(oe,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Oa=Object.freeze([]);function Ki(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function ss(){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 ht(o){o.prototype.toJSON=Ba}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ns=o=>o,_a=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ns}):{createHTML:ns};let Ho=Object.freeze({createHTML(o){return _a.createHTML(o)},protect(o,e,t,i){return i}});const Aa=Ho,ut=Object.freeze({get policy(){return Ho},setPolicy(o){if(Ho!==Aa)throw oe.error(1201);Ho=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)}}),ie=oe.getById(dt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Yi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class as{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Yi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Yi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Lo=Object.freeze({unknown:void 0,coupled:1}),m=oe.getById(dt.observable,()=>{const o=ie.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw oe.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new as(d))),f}const n=ss();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,pe=l[w];if(pe!==f){l[w]=f;const et=l[this.callback];Ot(et)&&et.call(l,pe,f),s(l).notify(this.name)}}}class h extends Yi{constructor(l,f,w=!1){super(l,f),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 f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Lo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let pe;try{pe=this.expression(l,f)}finally{i=w}return pe}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,f){const w=this.last,pe=s(l),et=w===null?this.first:{};if(et.propertySource=l,et.propertyName=f,et.notifier=pe,pe.subscribe(this,f),w!==null){if(!this.needsRefresh){let os;i=void 0,os=w.propertySource[w.propertyName],i=this,l===os&&(this.needsRefresh=!0)}w.next=et}this.last=et}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 ht(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Ge(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function ls(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const cs=oe.getById(dt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return cs.get()},setEvent(o){cs.set(o)}});class jo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Ea extends jo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Qi(o,e,t=m.isVolatileBinding(o)){return new Ea(o,e,t)}class ds extends jo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ht(ds);function hs(o,e){return new ds(o,e)}let us;function ps(o){return o.map(e=>e instanceof we?ps(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class we{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof we?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(us),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(ps(this.styles)),this}static setDefaultStrategy(e){us=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new we(e):e instanceof we?e:new we([e])}}we.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Zi=Ki(),Ji=Object.freeze({getForInstance:Zi.getForInstance,getByType:Zi.getByType,define(o){return Zi.register({type:o}),o}});function er(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class tr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>er(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){er(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){er(this,t.controller,t)}}Ji.define(tr);const Na=`${Math.random().toString(36).substring(2,8)}`;let Fa=0;const bs=()=>`--v${Na}${++Fa}`;function gs(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];Ot(h)?h=new tr(Qi(h),bs()).createCSS(s):h instanceof jo?h=new tr(h,bs()).createCSS(s):Ji.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof we||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=gs(o,e),r=new we(t);return i.length?r.withBehaviors(...i):r};class fs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Ge(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new we(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Ji.define(fs),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=gs(o,e);return new fs(t,i)};const ms=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,vs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,ys=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,xs=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ks=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ws(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ne=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 ms.test(o)},isContentBindingEndMarker(o){return vs.test(o)},isRepeatViewStartMarker(o){return $s.test(o)},isRepeatViewEndMarker(o){return ys.test(o)},isElementBoundaryStartMarker(o){return ws(o)&&xs.test(o.data.trim())},isElementBoundaryEndMarker(o){return ws(o)&&ks.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 Ss(ms,o)},parseContentBindingEndMarker(o){return Ss(vs,o)},parseRepeatStartMarker(o){return Cs($s,o)},parseRepeatEndMarker(o){return Cs(ys,o)},parseElementBoundaryStartMarker(o){return Is(xs,o.trim())},parseElementBoundaryEndMarker(o){return Is(ks,o)}});function Cs(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ss(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ro=Symbol.for("fe-hydration");function qo(o){return o[Ro]===Ro}const or=`fast-${Math.random().toString(36).substring(2,8)}`,Wo=`${or}{`,no=`}${or}`,Ma=no.length;let Da=0;const ao=()=>`${or}-${++Da}`,Ps=Object.freeze({interpolation:o=>`${Wo}${o}${no}`,attribute:o=>`${ao()}="${Wo}${o}${no}"`,comment:o=>`<!--${Wo}${o}${no}-->`}),Go=Object.freeze({parse(o,e){const t=o.split(Wo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(no);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Ma)}h!==""&&i.push(h)}return i}}),ir=Ki(),Fe=Object.freeze({getForInstance:ir.getForInstance,getByType:ir.getByType,define(o,e){return e=e||{},e.type=o,ir.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class rr{constructor(e){this.options=e}createHTML(e){return Ps.attribute(e(this))}createBehavior(){return this}}ht(rr);class zs extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function sr(o){return o.nodeType===Node.COMMENT_NODE}function Ts(o){return o.nodeType===Node.TEXT_NODE}function Bs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,sr(e)||Ts(e)?e.data.length:e.childNodes.length),t}function Va(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,e,t){const i=Bs(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{La(h,t,n);break}case Node.COMMENT_NODE:{ja(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function La(o,e,t){const i=Ne.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new zs(`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);Uo(e[r],o,t)}o.removeAttribute(Ne.attributeMarkerName)}}function ja(o,e,t,i,r){if(Ne.isElementBoundaryStartMarker(o)){Ra(o,e);return}if(Ne.isContentBindingStartMarker(o.data)){const s=Ne.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(sr(l)){const w=Ne.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Va(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Ts(d[0]))Uo(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Uo(h,w,i)}}}function Ra(o,e){const t=Ne.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(sr(i)){const r=Ne.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Uo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Os;function nr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return _t.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Xo extends _s{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=Lo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){nr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){nr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ht(Xo),m.defineProperty(Xo.prototype,"index"),m.defineProperty(Xo.prototype,"length");const At={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class qa extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class Wa extends _s{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Os]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=At.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 r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==At.hydrated&&(this._hydrationStage=At.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof zs){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Uo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new qa(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,Bs(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=At.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){nr(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}}Os=Ro,ht(Wa);function Ga(o){return o.create!==void 0}function Ua(o,e,t,i){if(t==null&&(t=""),Ga(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(qo(i)&&qo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==At.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Xa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ka={[Q.attribute]:ut.setAttribute,[Q.booleanAttribute]:ut.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:Ua,[Q.tokenList]:Xa,[Q.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return Ps.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ka[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw oe.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],r=qo(e)&&e.hydrationStage&&e.hydrationStage!==At.hydrated;switch(this.aspectType){case Q.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.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){_t.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Fe.define(Et,{aspected:!0});const As=(o,e)=>`${o}.${e}`,Es={},Me={index:0,node:null};function Ns(o){o.startsWith("fast-")||oe.warn(1204,{name:o})}const Ya=new Proxy(document.createElement("div"),{get(o,e){Ns(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Ns(e),Reflect.set(o,e,t)}});class Qa{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:ao(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Es[t];if(!s){const n=`_${t}`;Es[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Ya;for(const r of this.nodeIds)i[r];return new Xo(t,this.factories,i)}}function Fs(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Go.parse(f,c);let pe=null;w===null?s&&(pe=new Et(hs(()=>f,o.policy)),Fe.assignAspect(pe,l.name)):pe=ar.aggregate(w,o.policy),pe!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(pe,e,i,r,t.tagName))}}function Za(o,e,t,i,r){const s=Go.parse(e.textContent,o.directives);if(s===null)return Me.node=e.nextSibling,Me.index=r+1,Me;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=As(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ge(l)?n.textContent=l:(n.textContent=" ",Fe.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return Me.index=r+1,Me.node=c.nextSibling,Me}function Ms(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Ja(o,t,r,i);r=s.node,i=s.index}}function Ja(o,e,t,i){const r=As(e,i);switch(t.nodeType){case 1:Fs(o,e,t,r,i),Ms(o,t,r);break;case 3:return Za(o,t,e,r,i);case 8:const s=Go.parse(t.data,o.directives);s!==null&&o.addFactory(ar.aggregate(s),e,r,i,null);break}return Me.index=i+1,Me.node=t.nextSibling,Me}function el(o,e){return o&&o.nodeType==8&&Go.parse(o.data,e)!==null}const Ds="TEMPLATE",ar={compile(o,e,t=ut.policy){let i;if(Ge(o)){i=document.createElement(Ds),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Ds&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Qa(r,e,t);return Fs(s,"",i,"h",0,!0),(el(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Ms(s,r,"r"),Me.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ut.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Ge(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Qi(c,r??e,i));return Fe.assignAspect(h,t),h}},tl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ol=Object.create(null);class pt{constructor(e,t=ol){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}pt.empty=new pt(""),Fe.define(pt);function il(o,e,t,i=Fe.getForInstance(o)){if(i.aspected){const r=tl.exec(e);r!==null&&Fe.assignAspect(o,r[2])}return o.createHTML(t)}class Wi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ar.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new pt(Ge(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw oe.error(1208);if(this.policy)throw oe.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=ao();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,Ot(l))l=new Et(Qi(l));else if(l instanceof jo)l=new Et(l);else if(!(f=Fe.getForInstance(l))){const w=l;l=new Et(hs(()=>w))}r+=il(l,d,n,f)}return new Wi(r+e[e.length-1],s,i)}}ht(Wi);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Wi.create(o,e);throw oe.error(1206)};b.partial=o=>new pt(o);class Vs extends rr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Fe.define(Vs);const E=o=>new Vs(o),rl=o=>o.nodeType===1,lo=o=>o?e=>e.nodeType===1&&e.matches(o):rl;class sl extends rr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Oa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Hs="slotchange";class Ls extends sl{observe(e){e.addEventListener(Hs,this)}disconnect(e){e.removeEventListener(Hs,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Fe.define(Ls);function G(o){return Ge(o)&&(o={property:o}),new Ls(o)}const js="boolean",Rs="reflect",Ko=Object.freeze({locate:ss()}),nl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function qs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=qs(o);return e&&e.toString()},fromView:qs};class Gi{constructor(e,t,i=t.toLowerCase(),r=Rs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===js&&s===void 0&&(this.converter=nl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||ie.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Rs:const s=this.converter;ut.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case js:ut.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Ge(d)?i.push(new Gi(e,d)):i.push(new Gi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Ws={mode:"open"},Gs={},Us=new Set,Yo=oe.getById(dt.elementRegistry,()=>Ki());class Ee{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 r=e.prototype,s=Gi.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Ws:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Ws),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Gs:Object.assign(Object.assign({},Gs),t.elementOptions),this.styles=we.normalize(t.styles),Yo.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 Us.has(e)||Yo.getByType(e)?new Ee(class extends e{},t):new Ee(e,t)}static registerBaseType(e){Us.add(e)}}Ee.getByType=Yo.getByType,Ee.getForInstance=Yo.getForInstance;class al extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:_t.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:ao(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:ao(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ut.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const ll={bubbles:!0,composed:!0,cancelable:!0},Qo="isConnected",Xs=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Xs.get(o))!==null&&t!==void 0?t:null}let Ks;class Nt extends as{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 s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Xs.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Qo),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:_t.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 r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}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,m.notify(this,Qo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];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,m.notify(this,Qo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},ll),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(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 s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Lo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Ee.getForInstance(e);if(i===void 0)throw oe.error(1401);return e.$fastController=new Ks(e,i)}static setStrategy(e){Ks=e}}ht(Nt),Nt.setStrategy(Nt);function Zo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class Ui{constructor(e){const t=Ui.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){Qs(Zo(e),this.sheets)}removeStylesFrom(e){Zs(Zo(e),this.sheets)}}Ui.styleSheetCache=new Map;let cl=0;const dl=()=>`fast-${++cl}`;function Ys(o){return o===document?document.body:o}class hl{constructor(e){this.styles=e,this.styleClass=dl()}addStylesTo(e){e=Ys(Zo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Ys(Zo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Qs=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Zs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Qs=(o,e)=>{o.adoptedStyleSheets.push(...e)},Zs=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}we.setDefaultStrategy(Ui)}else we.setDefaultStrategy(hl);const Js="defer-hydration",en="needs-hydration";class Bt extends Nt{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(en)!==null),this.source.hasAttribute(Js)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[Js]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(qo(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(Ne.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Ne.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,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(en),this.needsInitialization=this.needsHydration=!1,m.notify(this,Qo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Nt.setStrategy(Bt)}}Bt.hydrationObserver=new al(Bt.hydrationObserverHandler);function tn(o){const e=class extends o{constructor(){super(),Nt.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Ee.registerBaseType(e),e}function ul(o,e){return Ot(o)?Ee.compose(o,e):Ee.compose(this,o)}function pl(o,e){return Ot(o)?Ee.compose(o,e).define().type:Ee.compose(this,o).define().type}function bl(o){return tn(o)}const $=Object.assign(tn(HTMLElement),{from:bl,define:pl,compose:ul});var gl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?fl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gl(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const lr={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()}},be={horizontal:"horizontal",vertical:"vertical"};function ml(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function cr(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",vl="Escape",mo="Home",Jo=" ",$l="Tab";var De;(function(o){o.ltr="ltr",o.rtl="rtl"})(De||(De={}));function yl(o,e,t){return t<o?e:t>e?o:t}function dr(o,e,t){return Math.min(Math.max(t,o),e)}let xl=0;function Ft(o=""){return`${o}${xl++}`}const ei=o=>o.closest("[dir]")?.dir==="rtl"?De.rtl:De.ltr;function ge(o){return o?typeof o=="string"?new pt(o):"inline"in o?o.inline():o:pt.empty}const on=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,kl=":host([hidden]){display:none}";function k(o){return`${kl}:host{display:${o}}`}class wl{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 Do extends wl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Do(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const U=Do.with(window.matchMedia("(forced-colors)"));Do.with(window.matchMedia("(prefers-color-scheme: dark)")),Do.with(window.matchMedia("(prefers-color-scheme: light)"));const ti=CSS.supports("anchor-name: --a"),Cl="anchor"in HTMLElement.prototype,rn=CSS.supports("selector(:state(g))");class Ue{}function tt(o){return b`<slot name="end" ${E("end")}>${ge(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name="start" ${E("start")}>${ge(o.start)}</slot>`.inline()}function Xe(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Ko.locate(i).forEach(s=>t.push(s))})}var Il=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Il(e,t,r),r};class ot extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ft("accordion-")}}oi([a({attribute:"heading-level",mode:"fromView",converter:re})],ot.prototype,"headinglevel",2),oi([a({mode:"boolean"})],ot.prototype,"expanded",2),oi([a({mode:"boolean"})],ot.prototype,"disabled",2),oi([a],ot.prototype,"id",2);var Pl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,hr=(o,e,t,i)=>{for(var r=i>1?void 0:i?zl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pl(e,t,r),r};class vo extends ot{constructor(){super(...arguments),this.block=!1}}hr([a],vo.prototype,"size",2),hr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),hr([a({mode:"boolean"})],vo.prototype,"block",2),Xe(vo,Ue);const T="var(--colorNeutralForeground1)",ur="var(--colorNeutralForeground1Hover)",Tl="var(--colorNeutralForeground1Pressed)",Se="var(--colorNeutralForeground2)",Mt="var(--colorNeutralForeground2Hover)",Dt="var(--colorNeutralForeground2Pressed)",ii="var(--colorNeutralForeground2Selected)",ri="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",Bl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Ol="var(--colorNeutralForeground3Hover)",_l="var(--colorNeutralForeground3Pressed)",Al="var(--colorNeutralForeground3Selected)",pr="var(--colorNeutralForeground4)",I="var(--colorNeutralForegroundDisabled)",El="var(--colorBrandForegroundLink)",Nl="var(--colorBrandForegroundLinkHover)",Fl="var(--colorBrandForegroundLinkPressed)",Ml="var(--colorNeutralForeground2Link)",Dl="var(--colorNeutralForeground2LinkHover)",Vl="var(--colorNeutralForeground2LinkPressed)",sn="var(--colorCompoundBrandForeground1Hover)",Hl="var(--colorCompoundBrandForeground1Pressed)",Ke="var(--colorNeutralForegroundOnBrand)",bt="var(--colorNeutralForegroundInverted)",Ll="var(--colorNeutralForegroundInvertedHover)",jl="var(--colorNeutralForegroundInvertedPressed)",nn="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Rl="var(--colorBrandForeground2)",ql="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",br="var(--colorNeutralBackground1Pressed)",an="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",Wl="var(--colorNeutralBackground4)",Gl="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",ln="var(--colorNeutralBackgroundInverted)",cn="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",gt="var(--colorSubtleBackgroundPressed)",dn="var(--colorSubtleBackgroundSelected)",Ul="var(--colorSubtleBackgroundLightAlphaHover)",Xl="var(--colorSubtleBackgroundLightAlphaPressed)",Kl="var(--colorSubtleBackgroundLightAlphaSelected)",fe="var(--colorTransparentBackground)",li="var(--colorTransparentBackgroundHover)",ci="var(--colorTransparentBackgroundPressed)",hn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",gr="var(--colorBackgroundOverlay)",un="var(--colorBrandBackground)",pn="var(--colorBrandBackgroundHover)",bn="var(--colorBrandBackgroundPressed)",Yl="var(--colorBrandBackgroundSelected)",ft="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",gn="var(--colorBrandBackgroundStatic)",fn="var(--colorBrandBackground2)",He="var(--colorNeutralStrokeAccessible)",mt="var(--colorNeutralStrokeAccessibleHover)",vt="var(--colorNeutralStrokeAccessiblePressed)",Le="var(--colorNeutralStroke1)",Lt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Ql="var(--colorNeutralStroke3)",Zl="var(--colorNeutralStrokeOnBrand2)",mn="var(--colorBrandStroke1)",vn="var(--colorBrandStroke2)",$t="var(--colorCompoundBrandStroke)",Jl="var(--colorCompoundBrandStrokeHover)",$n="var(--colorCompoundBrandStrokePressed)",Ce="var(--colorNeutralStrokeDisabled)",X="var(--colorTransparentStroke)",fr="var(--colorTransparentStrokeInteractive)",di="var(--colorStrokeFocus1)",me="var(--colorStrokeFocus2)",ec="var(--colorNeutralShadowAmbient)",tc="var(--colorNeutralShadowKey)",yn="var(--colorPaletteRedBackground1)",oc="var(--colorPaletteRedBackground2)",xn="var(--colorPaletteRedBackground3)",kn="var(--colorPaletteRedBorder1)",mr="var(--colorPaletteRedBorder2)",vr="var(--colorPaletteRedForeground1)",ic="var(--colorPaletteRedForeground2)",wn="var(--colorPaletteRedForeground3)",Cn="var(--colorPaletteGreenBackground1)",In="var(--colorPaletteGreenBackground3)",rc="var(--colorPaletteGreenBorder1)",sc="var(--colorPaletteGreenBorder2)",nc="var(--colorPaletteGreenForeground1)",ac="var(--colorPaletteGreenForeground2)",lc="var(--colorPaletteGreenForeground3)",Sn="var(--colorPaletteDarkOrangeBackground1)",Pn="var(--colorPaletteDarkOrangeBackground3)",zn="var(--colorPaletteDarkOrangeBorder1)",cc="var(--colorPaletteDarkOrangeForeground1)",Tn="var(--colorPaletteDarkOrangeForeground3)",dc="var(--colorPaletteYellowBackground1)",hc="var(--colorPaletteYellowBackground3)",uc="var(--colorPaletteYellowBorder1)",$r="var(--colorPaletteYellowForeground2)",Bn="var(--colorPaletteMarigoldBackground2)",pc="var(--colorPaletteMarigoldBorderActive)",bc="var(--colorPaletteMarigoldForeground2)",gc="var(--colorPaletteAnchorBackground2)",fc="var(--colorPaletteAnchorForeground2)",mc="var(--colorPaletteBeigeBackground2)",vc="var(--colorPaletteBeigeForeground2)",$c="var(--colorPaletteBlueBackground2)",yc="var(--colorPaletteBlueForeground2)",xc="var(--colorPaletteBrassBackground2)",kc="var(--colorPaletteBrassForeground2)",wc="var(--colorPaletteBrownBackground2)",Cc="var(--colorPaletteBrownForeground2)",Ic="var(--colorPaletteCornflowerBackground2)",Sc="var(--colorPaletteCornflowerForeground2)",Pc="var(--colorPaletteCranberryBackground2)",zc="var(--colorPaletteCranberryForeground2)",Tc="var(--colorPaletteDarkGreenBackground2)",Bc="var(--colorPaletteDarkGreenForeground2)",Oc="var(--colorPaletteDarkRedBackground2)",_c="var(--colorPaletteDarkRedForeground2)",Ac="var(--colorPaletteForestBackground2)",Ec="var(--colorPaletteForestForeground2)",Nc="var(--colorPaletteGoldBackground2)",Fc="var(--colorPaletteGoldForeground2)",Mc="var(--colorPaletteGrapeBackground2)",Dc="var(--colorPaletteGrapeForeground2)",Vc="var(--colorPaletteLavenderBackground2)",Hc="var(--colorPaletteLavenderForeground2)",Lc="var(--colorPaletteLightTealBackground2)",jc="var(--colorPaletteLightTealForeground2)",Rc="var(--colorPaletteLilacBackground2)",qc="var(--colorPaletteLilacForeground2)",Wc="var(--colorPaletteMagentaBackground2)",Gc="var(--colorPaletteMagentaForeground2)",Uc="var(--colorPaletteMinkBackground2)",Xc="var(--colorPaletteMinkForeground2)",Kc="var(--colorPaletteNavyBackground2)",Yc="var(--colorPaletteNavyForeground2)",Qc="var(--colorPalettePeachBackground2)",Zc="var(--colorPalettePeachForeground2)",Jc="var(--colorPalettePinkBackground2)",ed="var(--colorPalettePinkForeground2)",td="var(--colorPalettePlatinumBackground2)",od="var(--colorPalettePlatinumForeground2)",id="var(--colorPalettePlumBackground2)",rd="var(--colorPalettePlumForeground2)",sd="var(--colorPalettePumpkinBackground2)",nd="var(--colorPalettePumpkinForeground2)",ad="var(--colorPalettePurpleBackground2)",ld="var(--colorPalettePurpleForeground2)",cd="var(--colorPaletteRoyalBlueBackground2)",dd="var(--colorPaletteRoyalBlueForeground2)",hd="var(--colorPaletteSeafoamBackground2)",ud="var(--colorPaletteSeafoamForeground2)",pd="var(--colorPaletteSteelBackground2)",bd="var(--colorPaletteSteelForeground2)",gd="var(--colorPaletteTealBackground2)",fd="var(--colorPaletteTealForeground2)",hi="var(--borderRadiusNone)",Be="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",On="var(--borderRadiusLarge)",_n="var(--borderRadiusXLarge)",ve="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",md="var(--fontFamilyMonospace)",vd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",F="var(--fontSizeBase200)",B="var(--fontSizeBase300)",he="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",ui="var(--fontSizeBase600)",An="var(--fontSizeHero700)",En="var(--fontSizeHero800)",Nn="var(--fontSizeHero900)",Fn="var(--fontSizeHero1000)",_="var(--fontWeightRegular)",$d="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",pi="var(--fontWeightBold)",bi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",A="var(--lineHeightBase300)",$e="var(--lineHeightBase400)",gi="var(--lineHeightBase500)",Mn="var(--lineHeightBase600)",Dn="var(--lineHeightHero700)",Vn="var(--lineHeightHero800)",Hn="var(--lineHeightHero900)",Ln="var(--lineHeightHero1000)",yr="var(--shadow2)",fi="var(--shadow4)",yd="var(--shadow8)",xr="var(--shadow16)",xd="var(--shadow28)",jn="var(--shadow64)",P="var(--strokeWidthThin)",ye="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",kr="var(--strokeWidthThickest)",V="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",J="var(--spacingHorizontalSNudge)",Oe="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",kd="var(--spacingHorizontalL)",wd="var(--spacingHorizontalXL)",wr="var(--spacingHorizontalXXL)",Cr="var(--spacingVerticalNone)",Rt="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",je="var(--spacingVerticalSNudge)",H="var(--spacingVerticalS)",Wt="var(--spacingVerticalMNudge)",Cd="var(--spacingVerticalM)",mi="var(--spacingVerticalL)",yt="var(--spacingVerticalXXL)",Id="var(--spacingVerticalXXXL)",Ir="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Sr="var(--durationGentle)",Rn="var(--durationSlow)",qn="var(--durationSlower)",yi="var(--durationUltraSlow)",Sd="var(--curveAccelerateMax)",xt="var(--curveAccelerateMid)",Pd="var(--curveAccelerateMin)",Pr="var(--curveDecelerateMax)",kt="var(--curveDecelerateMid)",zd="var(--curveDecelerateMin)",Wn="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",zr="var(--curveLinear)",Td=u`
|
|
2
|
-
${
|
|
1
|
+
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let No;const is="fast-kernel";try{if(document.currentScript)No=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");No=o[o.length-1].getAttribute(is)}}catch{No="isolate"}let dt;switch(No){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=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)}`;dt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Bt=o=>typeof o=="function",We=o=>typeof o=="string",Ba=()=>{};var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Kr<"u")Kr.globalThis=Kr;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 ss={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ss));const oe=globalThis.FAST;if(oe.getById===void 0){const o=Object.create(null);Reflect.defineProperty(oe,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},ss))}oe.error===void 0&&Object.assign(oe,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ta=Object.freeze([]);function Yr(){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 ns(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ht(o){o.prototype.toJSON=Ba}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),as=o=>o,_a=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:as}):{createHTML:as};let Fo=Object.freeze({createHTML(o){return _a.createHTML(o)},protect(o,e,t,r){return r}});const Oa=Fo,ut=Object.freeze({get policy(){return Fo},setPolicy(o){if(Fo!==Oa)throw oe.error(1201);Fo=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)}}),A=oe.getById(dt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class Qr{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 r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class ls{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new Qr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Qr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const Mo=Object.freeze({unknown:void 0,coupled:1}),m=oe.getById(dt.observable,()=>{const o=A.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw oe.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new ls(d))),f}const n=ns();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,f){const k=this.field,ce=l[k];if(ce!==f){l[k]=f;const Qe=l[this.callback];Bt(Qe)&&Qe.call(l,ce,f),s(l).notify(this.name)}}}class h extends Qr{constructor(l,f,k=!1){super(l,f),this.expression=l,this.isVolatileBinding=k,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 f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Mo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const k=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ce;try{ce=this.expression(l,f)}finally{r=k}return ce}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,f){const k=this.last,ce=s(l),Qe=k===null?this.first:{};if(Qe.propertySource=l,Qe.propertyName=f,Qe.notifier=ce,ce.subscribe(this,f),k!==null){if(!this.needsRefresh){let rs;r=void 0,rs=k.propertySource[k.propertyName],r=this,l===rs&&(this.needsRefresh=!0)}k.next=Qe}this.last=Qe}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 ht(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){We(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function b(o,e){m.defineProperty(o,e)}function cs(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ds=oe.getById(dt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Tt=Object.freeze({default:{index:0,length:0,get event(){return Tt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ds.get()},setEvent(o){ds.set(o)}});class Do{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Ea extends Do{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Zr(o,e,t=m.isVolatileBinding(o)){return new Ea(o,e,t)}class hs extends Do{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ht(hs);function us(o,e){return new hs(o,e)}let ps;function bs(o){return o.map(e=>e instanceof ve?bs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ve{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ve?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(ps),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(bs(this.styles)),this}static setDefaultStrategy(e){ps=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ve(e):e instanceof ve?e:new ve([e])}}ve.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Jr=Yr(),ei=Object.freeze({getForInstance:Jr.getForInstance,getByType:Jr.getByType,define(o){return Jr.register({type:o}),o}});function ti(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class oi{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const s=r.setAttribute;r.setAttribute=(n,c)=>{s.call(r,n,c),n==="style"&&r.$cssBindings.forEach((h,d)=>ti(d,h.controller,h.observer))}}const i=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:i})}connectedCallback(e){ti(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){ti(this,t.controller,t)}}ei.define(oi);const Aa=`${Math.random().toString(36).substring(2,8)}`;let Na=0;const gs=()=>`--v${Aa}${++Na}`;function fs(o,e){const t=[];let r="";const i=[],s=n=>{i.push(n)};for(let n=0,c=o.length-1;n<c;++n){r+=o[n];let h=e[n];Bt(h)?h=new oi(Zr(h),gs()).createCSS(s):h instanceof Do?h=new oi(h,gs()).createCSS(s):ei.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ve||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const u=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e),i=new ve(t);return r.length?i.withBehaviors(...r):i};class ms{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(We(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new ve(r))}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)}}ei.define(ms),u.partial=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e);return new ms(t,r)};const vs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ks=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ws=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Cs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ee=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 vs.test(o)},isContentBindingEndMarker(o){return $s.test(o)},isRepeatViewStartMarker(o){return ys.test(o)},isRepeatViewEndMarker(o){return xs.test(o)},isElementBoundaryStartMarker(o){return Cs(o)&&ks.test(o.data.trim())},isElementBoundaryEndMarker(o){return Cs(o)&&ws.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 Ps(vs,o)},parseContentBindingEndMarker(o){return Ps($s,o)},parseRepeatStartMarker(o){return Ss(ys,o)},parseRepeatEndMarker(o){return Ss(xs,o)},parseElementBoundaryStartMarker(o){return Is(ks,o.trim())},parseElementBoundaryEndMarker(o){return Is(ws,o)}});function Ss(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ps(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Lo=Symbol.for("fe-hydration");function Vo(o){return o[Lo]===Lo}const ri=`fast-${Math.random().toString(36).substring(2,8)}`,Ho=`${ri}{`,io=`}${ri}`,Fa=io.length;let Ma=0;const so=()=>`${ri}-${++Ma}`,zs=Object.freeze({interpolation:o=>`${Ho}${o}${io}`,attribute:o=>`${so()}="${Ho}${o}${io}"`,comment:o=>`<!--${Ho}${o}${io}-->`}),jo=Object.freeze({parse(o,e){const t=o.split(Ho);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(io);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Fa)}h!==""&&r.push(h)}return r}}),ii=Yr(),Ae=Object.freeze({getForInstance:ii.getForInstance,getByType:ii.getByType,define(o,e){return e=e||{},e.type=o,ii.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class si{constructor(e){this.options=e}createHTML(e){return zs.attribute(e(this))}createBehavior(){return this}}ht(si);class Bs extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function ni(o){return o.nodeType===Node.COMMENT_NODE}function Ts(o){return o.nodeType===Node.TEXT_NODE}function _s(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ni(e)||Ts(e)?e.data.length:e.childNodes.length),t}function Da(o){return o instanceof DocumentFragment&&"mode"in o}function La(o,e,t){const r=_s(o,e),i=r.commonAncestorContainer,s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Va(h,t,n);break}case Node.COMMENT_NODE:{Ha(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Va(o,e,t){const r=Ee.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new Bs(`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);Ro(e[i],o,t)}o.removeAttribute(Ee.attributeMarkerName)}}function Ha(o,e,t,r,i){if(Ee.isElementBoundaryStartMarker(o)){ja(o,e);return}if(Ee.isContentBindingStartMarker(o.data)){const s=Ee.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ni(l)){const k=Ee.parseContentBindingEndMarker(l.data);if(k&&k[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const k=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Da(k)?k.host.nodeName:k.nodeName}".`)}if(l.data="",d.length===1&&Ts(d[0]))Ro(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const k=l.parentNode.insertBefore(document.createTextNode(""),l);Ro(h,k,r)}}}function ja(o,e){const t=Ee.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(ni(r)){const i=Ee.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function Ro(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Os;function ai(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Es{constructor(){this.index=0,this.length=0}get event(){return Tt.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 qo extends Es{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Mo.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 r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){ai(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let s=0,n=i.length;s<n;++s){const c=i[s].createBehavior();c.bind(this),r[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=r.length;i<s;++i)r[i].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,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){ai(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}ht(qo),m.defineProperty(qo.prototype,"index"),m.defineProperty(qo.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ra extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class qa extends Es{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Os]=Lo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Mo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=_t.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.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 r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.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 r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){var r,i;if(this.hydrationStage!==_t.hydrated&&(this._hydrationStage=_t.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=La(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Bs){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Ro(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ra(`HydrationView was unable to successfully target bindings inside "${(i=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,d,_s(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=_t.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ai(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}Os=Lo,ht(qa);function Wa(o){return o.create!==void 0}function Ga(o,e,t,r){if(t==null&&(t=""),Wa(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Vo(r)&&Vo(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==_t.hydrated){const s=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(s.first,s.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Ua(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const k=d[l];k!==""&&(n[k]=c,h.add(k))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Xa={[Q.attribute]:ut.setAttribute,[Q.booleanAttribute]:ut.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:Ga,[Q.tokenList]:Ua,[Q.event]:()=>{}};class Ot{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return zs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Xa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw oe.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],i=Vo(e)&&e.hydrationStage&&e.hydrationStage!==_t.hydrated;switch(this.aspectType){case Q.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:const s=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(s.target=r,s.controller=e,i&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){s.bind(e);break}this.updateTarget(r,this.targetAspect,s.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Tt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Tt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Ae.define(Ot,{aspected:!0});const As=(o,e)=>`${o}.${e}`,Ns={},Ne={index:0,node:null};function Fs(o){o.startsWith("fast-")||oe.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,e){Fs(e);const t=Reflect.get(o,e);return Bt(t)?t.bind(o):t},set(o,e,t){return Fs(e),Reflect.set(o,e,t)}});class Ya{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:so(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Ns[t];if(!s){const n=`_${t}`;Ns[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[r]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Ka;for(const i of this.nodeIds)r[i];return new qo(t,this.factories,r)}}function Ms(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,k=jo.parse(f,c);let ce=null;k===null?s&&(ce=new Ot(us(()=>f,o.policy)),Ae.assignAspect(ce,l.name)):ce=li.aggregate(k,o.policy),ce!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(ce,e,r,i,t.tagName))}}function Qa(o,e,t,r,i){const s=jo.parse(e.textContent,o.directives);if(s===null)return Ne.node=e.nextSibling,Ne.index=i+1,Ne;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=As(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),We(l)?n.textContent=l:(n.textContent=" ",Ae.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return Ne.index=i+1,Ne.node=c.nextSibling,Ne}function Ds(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=Za(o,t,i,r);i=s.node,r=s.index}}function Za(o,e,t,r){const i=As(e,r);switch(t.nodeType){case 1:Ms(o,e,t,i,r),Ds(o,t,i);break;case 3:return Qa(o,t,e,i,r);case 8:const s=jo.parse(t.data,o.directives);s!==null&&o.addFactory(li.aggregate(s),e,i,r,null);break}return Ne.index=r+1,Ne.node=t.nextSibling,Ne}function Ja(o,e){return o&&o.nodeType==8&&jo.parse(o.data,e)!==null}const Ls="TEMPLATE",li={compile(o,e,t=ut.policy){let r;if(We(o)){r=document.createElement(Ls),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Ls&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ya(i,e,t);return Ms(s,"",r,"h",0,!0),(Ja(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ds(s,i,"r"),Ne.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ut.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>We(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let k=0;k<s;++k)f+=n[k](d,l);return f},h=new Ot(Zr(c,i??e,r));return Ae.assignAspect(h,t),h}},el=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tl=Object.create(null);class pt{constructor(e,t=tl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}pt.empty=new pt(""),Ae.define(pt);function ol(o,e,t,r=Ae.getForInstance(o)){if(r.aspected){const i=el.exec(e);i!==null&&Ae.assignAspect(o,i[2])}return o.createHTML(t)}class Gr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=li.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new pt(We(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw oe.error(1208);if(this.policy)throw oe.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=so();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(i+=d,Bt(l))l=new Ot(Zr(l));else if(l instanceof Do)l=new Ot(l);else if(!(f=Ae.getForInstance(l))){const k=l;l=new Ot(us(()=>k))}i+=ol(l,d,n,f)}return new Gr(i+e[e.length-1],s,r)}}ht(Gr);const g=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Gr.create(o,e);throw oe.error(1206)};g.partial=o=>new pt(o);class Vs extends si{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ae.define(Vs);const z=o=>new Vs(o),rl=o=>o.nodeType===1,no=o=>o?e=>e.nodeType===1&&e.matches(o):rl;class il extends si{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,Ta),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 Hs="slotchange";class js extends il{observe(e){e.addEventListener(Hs,this)}disconnect(e){e.removeEventListener(Hs,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ae.define(js);function U(o){return We(o)&&(o={property:o}),new js(o)}const Rs="boolean",qs="reflect",Wo=Object.freeze({locate:ns()}),sl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Ws(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=Ws(o);return e&&e.toString()},fromView:Ws};class Ur{constructor(e,t,r=t.toLowerCase(),i=qs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===Rs&&s===void 0&&(this.converter=sl)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||A.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case qs:const s=this.converter;ut.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Rs:ut.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Wo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];We(d)?r.push(new Ur(e,d)):r.push(new Ur(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),Wo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Gs={mode:"open"},Us={},Xs=new Set,Go=oe.getById(dt.elementRegistry,()=>Yr());class Oe{constructor(e,t=e.definition){var r;this.platformDefined=!1,We(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=Ur.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Gs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Gs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Us:Object.assign(Object.assign({},Us),t.elementOptions),this.styles=ve.normalize(t.styles),Go.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 Xs.has(e)||Go.getByType(e)?new Oe(class extends e{},t):new Oe(e,t)}static registerBaseType(e){Xs.add(e)}}Oe.getByType=Go.getByType,Oe.getForInstance=Go.getForInstance;class nl extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(i=>this.observedNodes.has(i.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 r=null,i=!1;return{source:o,context:Tt.default,targets:t,get isBound(){return i},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:so(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:so(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ut.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),i&&s.bind(this)},onUnbind(s){r===null&&(r=[]),r.push(s)},connectedCallback(s){i||(i=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){i&&(i=!1,r!==null&&r.forEach(n=>n.unbind(this)))}}}});const al={bubbles:!0,composed:!0,cancelable:!0},Uo="isConnected",Ks=new WeakMap;function ao(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Ks.get(o))!==null&&t!==void 0?t:null}let Ys;class Et extends ls{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 r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&Ks.set(e,s))}const i=m.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Uo),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:Tt.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,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}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,m.notify(this,Uo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,s=r.length;i<s;++i){const n=r[i];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,m.notify(this,Uo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},al),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=ao(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Mo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Oe.getForInstance(e);if(r===void 0)throw oe.error(1401);return e.$fastController=new Ys(e,r)}static setStrategy(e){Ys=e}}ht(Et),Et.setStrategy(Et);function Xo(o){var e;return"adoptedStyleSheets"in o?o:(e=ao(o))!==null&&e!==void 0?e:o.getRootNode()}class Xr{constructor(e){const t=Xr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){Zs(Xo(e),this.sheets)}removeStylesFrom(e){Js(Xo(e),this.sheets)}}Xr.styleSheetCache=new Map;let ll=0;const cl=()=>`fast-${++ll}`;function Qs(o){return o===document?document.body:o}class dl{constructor(e){this.styles=e,this.styleClass=cl()}addStylesTo(e){e=Qs(Xo(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=r,e.append(s)}}removeStylesFrom(e){e=Qs(Xo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Zs=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Js=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Zs=(o,e)=>{o.adoptedStyleSheets.push(...e)},Js=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ve.setDefaultStrategy(Xr)}else ve.setDefaultStrategy(dl);const en="defer-hydration",tn="needs-hydration";class zt extends Et{static hydrationObserverHandler(e){for(const t of e)zt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(tn)!==null),this.source.hasAttribute(en)){zt.hydrationObserver.observe(this.source,{attributeFilter:[en]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,i=(e=ao(r))!==null&&e!==void 0?e:r;if(this.template)if(Vo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Ee.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Ee.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,r),(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(tn),this.needsInitialization=this.needsHydration=!1,m.notify(this,Uo)}disconnect(){super.disconnect(),zt.hydrationObserver.unobserve(this.source)}static install(){Et.setStrategy(zt)}}zt.hydrationObserver=new nl(zt.hydrationObserverHandler);function on(o){const e=class extends o{constructor(){super(),Et.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Oe.registerBaseType(e),e}function hl(o,e){return Bt(o)?Oe.compose(o,e):Oe.compose(this,o)}function ul(o,e){return Bt(o)?Oe.compose(o,e).define().type:Oe.compose(this,o).define().type}function pl(o){return on(o)}const x=Object.assign(on(HTMLElement),{from:pl,define:ul,compose:hl});var bl=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,j=(o,e,t,r)=>{for(var i=r>1?void 0:r?gl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&bl(e,t,i),i};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const ci={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()}},$e={horizontal:"horizontal",vertical:"vertical"};function fl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function di(...o){return o.every(e=>e instanceof HTMLElement)}const Ko="ArrowDown",Yo="ArrowLeft",Qo="ArrowRight",Zo="ArrowUp",Jo="End",lo="Enter",ml="Escape",er="Home",tr=" ",vl="Tab";var Fe;(function(o){o.ltr="ltr",o.rtl="rtl"})(Fe||(Fe={}));function $l(o,e,t){return t<o?e:t>e?o:t}function rn(o,e,t){return Math.min(Math.max(t,o),e)}let yl=0;function co(o=""){return`${o}${yl++}`}const or=o=>o.closest("[dir]")?.dir==="rtl"?Fe.rtl:Fe.ltr;function xl(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function de(o){return o?typeof o=="string"?new pt(o):"inline"in o?o.inline():o:pt.empty}const kl=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,wl=":host([hidden]){display:none}";function w(o){return`${wl}:host{display:${o}}`}class Cl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Ao extends Cl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Ao(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(r),t=s):!s&&t&&(e.removeStyles(r),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const X=Ao.with(window.matchMedia("(forced-colors)"));Ao.with(window.matchMedia("(prefers-color-scheme: dark)")),Ao.with(window.matchMedia("(prefers-color-scheme: light)"));const rr=CSS.supports("anchor-name: --a"),Sl="anchor"in HTMLElement.prototype,sn=CSS.supports("selector(:state(g))");class Ze{}function bt(o){return g`<slot name="end" ${z("end")}>${de(o.end)}</slot>`.inline()}function Ge(o){return g`<slot name="start" ${z("start")}>${de(o.start)}</slot>`.inline()}function Je(o,...e){const t=Wo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Wo.locate(r).forEach(s=>t.push(s))})}var Il=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Il(e,t,i),i};class et extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=co("accordion-")}}ir([a({attribute:"heading-level",mode:"fromView",converter:re})],et.prototype,"headinglevel",2),ir([a({mode:"boolean"})],et.prototype,"expanded",2),ir([a({mode:"boolean"})],et.prototype,"disabled",2),ir([a],et.prototype,"id",2);var zl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,hi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&zl(e,t,i),i};class ho extends et{constructor(){super(...arguments),this.block=!1}}hi([a],ho.prototype,"size",2),hi([a({attribute:"marker-position"})],ho.prototype,"markerPosition",2),hi([a({mode:"boolean"})],ho.prototype,"block",2),Je(ho,Ze);const B="var(--colorNeutralForeground1)",nn="var(--colorNeutralForeground1Hover)",Tl="var(--colorNeutralForeground1Pressed)",Pe="var(--colorNeutralForeground2)",At="var(--colorNeutralForeground2Hover)",Nt="var(--colorNeutralForeground2Pressed)",sr="var(--colorNeutralForeground2Selected)",nr="var(--colorNeutralForeground2BrandHover)",ar="var(--colorNeutralForeground2BrandPressed)",_l="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Ol="var(--colorNeutralForeground3Hover)",El="var(--colorNeutralForeground3Pressed)",Al="var(--colorNeutralForeground3Selected)",ui="var(--colorNeutralForeground4)",_="var(--colorNeutralForegroundDisabled)",Nl="var(--colorBrandForegroundLink)",Fl="var(--colorBrandForegroundLinkHover)",Ml="var(--colorBrandForegroundLinkPressed)",Dl="var(--colorNeutralForeground2Link)",Ll="var(--colorNeutralForeground2LinkHover)",Vl="var(--colorNeutralForeground2LinkPressed)",Hl="var(--colorCompoundBrandForeground1Hover)",jl="var(--colorCompoundBrandForeground1Pressed)",Ue="var(--colorNeutralForegroundOnBrand)",gt="var(--colorNeutralForegroundInverted)",Rl="var(--colorNeutralForegroundInvertedHover)",ql="var(--colorNeutralForegroundInvertedPressed)",an="var(--colorNeutralForegroundStaticInverted)",lr="var(--colorBrandForeground1)",Wl="var(--colorBrandForeground2)",Gl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",cr="var(--colorNeutralBackground1Hover)",pi="var(--colorNeutralBackground1Pressed)",ln="var(--colorNeutralBackground1Selected)",uo="var(--colorNeutralBackground3)",Ul="var(--colorNeutralBackground4)",Xl="var(--colorNeutralBackground5)",po="var(--colorNeutralBackground6)",cn="var(--colorNeutralBackgroundInverted)",dn="var(--colorSubtleBackground)",dr="var(--colorSubtleBackgroundHover)",bo="var(--colorSubtleBackgroundPressed)",hn="var(--colorSubtleBackgroundSelected)",Kl="var(--colorSubtleBackgroundLightAlphaHover)",Yl="var(--colorSubtleBackgroundLightAlphaPressed)",Ql="var(--colorSubtleBackgroundLightAlphaSelected)",he="var(--colorTransparentBackground)",hr="var(--colorTransparentBackgroundHover)",ur="var(--colorTransparentBackgroundPressed)",un="var(--colorTransparentBackgroundSelected)",tt="var(--colorNeutralBackgroundDisabled)",bi="var(--colorBackgroundOverlay)",pn="var(--colorBrandBackground)",bn="var(--colorBrandBackgroundHover)",gn="var(--colorBrandBackgroundPressed)",Zl="var(--colorBrandBackgroundSelected)",ft="var(--colorCompoundBrandBackground)",Ft="var(--colorCompoundBrandBackgroundHover)",Mt="var(--colorCompoundBrandBackgroundPressed)",fn="var(--colorBrandBackgroundStatic)",mn="var(--colorBrandBackground2)",Me="var(--colorNeutralStrokeAccessible)",mt="var(--colorNeutralStrokeAccessibleHover)",vt="var(--colorNeutralStrokeAccessiblePressed)",De="var(--colorNeutralStroke1)",Dt="var(--colorNeutralStroke1Hover)",go="var(--colorNeutralStroke1Pressed)",fo="var(--colorNeutralStroke2)",Jl="var(--colorNeutralStroke3)",ec="var(--colorNeutralStrokeOnBrand2)",vn="var(--colorBrandStroke1)",$n="var(--colorBrandStroke2)",$t="var(--colorCompoundBrandStroke)",tc="var(--colorCompoundBrandStrokeHover)",yn="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",gi="var(--colorTransparentStrokeInteractive)",pr="var(--colorStrokeFocus1)",ue="var(--colorStrokeFocus2)",oc="var(--colorNeutralShadowAmbient)",rc="var(--colorNeutralShadowKey)",xn="var(--colorPaletteRedBackground1)",ic="var(--colorPaletteRedBackground2)",kn="var(--colorPaletteRedBackground3)",wn="var(--colorPaletteRedBorder1)",fi="var(--colorPaletteRedBorder2)",mi="var(--colorPaletteRedForeground1)",sc="var(--colorPaletteRedForeground2)",Cn="var(--colorPaletteRedForeground3)",Sn="var(--colorPaletteGreenBackground1)",In="var(--colorPaletteGreenBackground3)",nc="var(--colorPaletteGreenBorder1)",ac="var(--colorPaletteGreenBorder2)",lc="var(--colorPaletteGreenForeground1)",cc="var(--colorPaletteGreenForeground2)",dc="var(--colorPaletteGreenForeground3)",Pn="var(--colorPaletteDarkOrangeBackground1)",zn="var(--colorPaletteDarkOrangeBackground3)",Bn="var(--colorPaletteDarkOrangeBorder1)",hc="var(--colorPaletteDarkOrangeForeground1)",Tn="var(--colorPaletteDarkOrangeForeground3)",uc="var(--colorPaletteYellowBackground1)",pc="var(--colorPaletteYellowBackground3)",bc="var(--colorPaletteYellowBorder1)",vi="var(--colorPaletteYellowForeground2)",_n="var(--colorPaletteMarigoldBackground2)",gc="var(--colorPaletteMarigoldBorderActive)",fc="var(--colorPaletteMarigoldForeground2)",mc="var(--colorPaletteAnchorBackground2)",vc="var(--colorPaletteAnchorForeground2)",$c="var(--colorPaletteBeigeBackground2)",yc="var(--colorPaletteBeigeForeground2)",xc="var(--colorPaletteBlueBackground2)",kc="var(--colorPaletteBlueForeground2)",wc="var(--colorPaletteBrassBackground2)",Cc="var(--colorPaletteBrassForeground2)",Sc="var(--colorPaletteBrownBackground2)",Ic="var(--colorPaletteBrownForeground2)",Pc="var(--colorPaletteCornflowerBackground2)",zc="var(--colorPaletteCornflowerForeground2)",Bc="var(--colorPaletteCranberryBackground2)",Tc="var(--colorPaletteCranberryForeground2)",_c="var(--colorPaletteDarkGreenBackground2)",Oc="var(--colorPaletteDarkGreenForeground2)",Ec="var(--colorPaletteDarkRedBackground2)",Ac="var(--colorPaletteDarkRedForeground2)",Nc="var(--colorPaletteForestBackground2)",Fc="var(--colorPaletteForestForeground2)",Mc="var(--colorPaletteGoldBackground2)",Dc="var(--colorPaletteGoldForeground2)",Lc="var(--colorPaletteGrapeBackground2)",Vc="var(--colorPaletteGrapeForeground2)",Hc="var(--colorPaletteLavenderBackground2)",jc="var(--colorPaletteLavenderForeground2)",Rc="var(--colorPaletteLightTealBackground2)",qc="var(--colorPaletteLightTealForeground2)",Wc="var(--colorPaletteLilacBackground2)",Gc="var(--colorPaletteLilacForeground2)",Uc="var(--colorPaletteMagentaBackground2)",Xc="var(--colorPaletteMagentaForeground2)",Kc="var(--colorPaletteMinkBackground2)",Yc="var(--colorPaletteMinkForeground2)",Qc="var(--colorPaletteNavyBackground2)",Zc="var(--colorPaletteNavyForeground2)",Jc="var(--colorPalettePeachBackground2)",ed="var(--colorPalettePeachForeground2)",td="var(--colorPalettePinkBackground2)",od="var(--colorPalettePinkForeground2)",rd="var(--colorPalettePlatinumBackground2)",id="var(--colorPalettePlatinumForeground2)",sd="var(--colorPalettePlumBackground2)",nd="var(--colorPalettePlumForeground2)",ad="var(--colorPalettePumpkinBackground2)",ld="var(--colorPalettePumpkinForeground2)",cd="var(--colorPalettePurpleBackground2)",dd="var(--colorPalettePurpleForeground2)",hd="var(--colorPaletteRoyalBlueBackground2)",ud="var(--colorPaletteRoyalBlueForeground2)",pd="var(--colorPaletteSeafoamBackground2)",bd="var(--colorPaletteSeafoamForeground2)",gd="var(--colorPaletteSteelBackground2)",fd="var(--colorPaletteSteelForeground2)",md="var(--colorPaletteTealBackground2)",vd="var(--colorPaletteTealForeground2)",br="var(--borderRadiusNone)",ze="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",On="var(--borderRadiusLarge)",En="var(--borderRadiusXLarge)",xe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",$d="var(--fontFamilyMonospace)",yd="var(--fontFamilyNumeric)",mo="var(--fontSizeBase100)",F="var(--fontSizeBase200)",O="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",Lt="var(--fontSizeBase500)",gr="var(--fontSizeBase600)",An="var(--fontSizeHero700)",Nn="var(--fontSizeHero800)",Fn="var(--fontSizeHero900)",Mn="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",xd="var(--fontWeightMedium)",L="var(--fontWeightSemibold)",fr="var(--fontWeightBold)",mr="var(--lineHeightBase100)",q="var(--lineHeightBase200)",M="var(--lineHeightBase300)",ke="var(--lineHeightBase400)",vr="var(--lineHeightBase500)",Dn="var(--lineHeightBase600)",Ln="var(--lineHeightHero700)",Vn="var(--lineHeightHero800)",Hn="var(--lineHeightHero900)",jn="var(--lineHeightHero1000)",$i="var(--shadow2)",$r="var(--shadow4)",kd="var(--shadow8)",yi="var(--shadow16)",wd="var(--shadow28)",Rn="var(--shadow64)",I="var(--strokeWidthThin)",be="var(--strokeWidthThick)",Le="var(--strokeWidthThicker)",xi="var(--strokeWidthThickest)",V="var(--spacingHorizontalXXS)",ie="var(--spacingHorizontalXS)",ge="var(--spacingHorizontalSNudge)",Be="var(--spacingHorizontalS)",Ve="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",Cd="var(--spacingHorizontalL)",Sd="var(--spacingHorizontalXL)",ki="var(--spacingHorizontalXXL)",wi="var(--spacingVerticalNone)",yr="var(--spacingVerticalXXS)",Vt="var(--spacingVerticalXS)",vo="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",xr="var(--spacingVerticalMNudge)",Id="var(--spacingVerticalM)",Ci="var(--spacingVerticalL)",yt="var(--spacingVerticalXXL)",Pd="var(--spacingVerticalXXXL)",Si="var(--durationUltraFast)",kr="var(--durationFaster)",wr="var(--durationNormal)",Ii="var(--durationGentle)",zd="var(--durationSlow)",qn="var(--durationSlower)",Cr="var(--durationUltraSlow)",Bd="var(--curveAccelerateMax)",xt="var(--curveAccelerateMid)",Td="var(--curveAccelerateMin)",Wn="var(--curveDecelerateMax)",kt="var(--curveDecelerateMid)",_d="var(--curveDecelerateMin)",Gn="var(--curveEasyEaseMax)",Sr="var(--curveEasyEase)",Pi="var(--curveLinear)",Od=u`
|
|
2
|
+
${w("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:${ae} ${Ve};border-radius:${C};font-family:${v};font-size:${O};font-weight:${E};line-height:${M};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${he};border:none;box-sizing:border-box;color:${B};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:${ze}}: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:${Be};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ae}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Be};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${ze};outline:none;border:2px solid ${pr};box-shadow:inset 0 0 0 1px ${ue}}:host([disabled]) .button{color:${_}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${O};line-height:${M}}:host([size='small']) .heading{font-size:${F};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${ke}}:host([size='extra-large']) .heading{font-size:${Lt};line-height:${vr}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Be};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ae}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Ve} ${ae}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Ed=g.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -14,7 +14,7 @@ const p=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>`),Ad=g.partial(`<svg
|
|
18
18
|
width="20"
|
|
19
19
|
height="20"
|
|
20
20
|
viewBox="0 0 20 20"
|
|
@@ -27,38 +27,38 @@ const p=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 Nd(o={}){return g`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${z("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>${Ge(o)}<slot name="marker-expanded">${de(o.expandedIcon)}</slot><slot name="marker-collapsed">${de(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 Fd=Nd({collapsedIcon:Ed,expandedIcon:Ad}),Md=ho.compose({name:`${p.prefix}-accordion-item`,template:Fd,styles:Od});Md.define(p.registry);const zi={single:"single",multi:"multi"};var Dd=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,Un=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ld(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dd(e,t,i),i};class Bi extends x{constructor(){super(...arguments),this.expandmode=zi.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=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof et&&(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 r=this.findExpandedItem();if(r){if(t===zi.single){this.setSingleExpandMode(r);return}r?.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 et&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===zi.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{r instanceof et&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}}Un([a({attribute:"expand-mode"})],Bi.prototype,"expandmode",2),Un([b],Bi.prototype,"slottedAccordionItems",2);const Vd=u`
|
|
31
|
+
${w("flex")}
|
|
32
32
|
|
|
33
|
-
:host{flex-direction:column;width:100%;contain:content}`;function
|
|
34
|
-
${
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function Hd(){return g`<template><slot ${U({property:"slottedAccordionItems",filter:no()})}></slot></template>`}const jd=Hd(),Rd=Bi.compose({name:`${p.prefix}-accordion`,template:jd,styles:Vd});Rd.define(p.registry);const Xn=new Map;function P(o){return Xn.get(o)??Xn.set(o,sn?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!sn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Ti=new WeakMap;function Kn(o,e){if(!o||!e)return!1;if(Ti.has(o))return Ti.get(o).has(e);const t=new Set(Object.values(o));return Ti.set(o,t),t.has(e)}function wt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||Kn(r,t))&&$(o,`${i}${t}`,!0)}const qd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Wd={circular:"circular",rounded:"rounded",square:"square"},Gd={small:"small",medium:"medium",large:"large"},Ir={submit:"submit",reset:"reset",button:"button"},Ud=qd,Xd=Wd,Kd=Gd,Yd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Qd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,ot=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qd(e,t,i),i};class He extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Yd){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;t&&e.preventDefault(),this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===lo){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}}ot([a],He.prototype,"download",2),ot([a],He.prototype,"href",2),ot([a],He.prototype,"hreflang",2),ot([a],He.prototype,"ping",2),ot([a],He.prototype,"referrerpolicy",2),ot([a],He.prototype,"rel",2),ot([a],He.prototype,"target",2),ot([a],He.prototype,"type",2);var Jd=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?eh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jd(e,t,i),i};class Ht extends He{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){wt(this.elementInternals,e,t,Ud)}shapeChanged(e,t){wt(this.elementInternals,e,t,Xd)}sizeChanged(e,t){wt(this.elementInternals,e,t,Kd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Pr([a],Ht.prototype,"appearance",2),Pr([a],Ht.prototype,"shape",2),Pr([a],Ht.prototype,"size",2),Pr([a({attribute:"icon-only",mode:"boolean"})],Ht.prototype,"iconOnly",2),Je(Ht,Ze);const Yn=u`
|
|
34
|
+
${w("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${
|
|
37
|
-
${
|
|
36
|
+
:host{--icon-spacing:${ge};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:${S};color:${B};border:${I} solid ${De};padding:0 ${ae};min-width:96px;border-radius:${C};font-size:${O};font-family:${v};font-weight:${L};line-height:${M};transition-duration:${kr};transition-property:background,border,color;transition-timing-function:${Sr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${cr};color:${nn};border-color:${Dt}}:host(:hover:active){background-color:${pi};border-color:${go};color:${Tl};outline-style:none}:host(:focus-visible){border-color:${K};outline:${be} solid ${K};box-shadow:${$r},0 0 0 2px ${ue}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ie};min-height:24px;min-width:64px;padding:0 ${Be};border-radius:${ze};font-size:${F};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${On};padding:0 ${Cd};font-size:${pe};line-height:${ke}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${xe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${br}}:host([appearance='primary']){background-color:${pn};color:${Ue};border-color:transparent}:host([appearance='primary']:hover){background-color:${bn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ue}}:host([appearance='primary']:hover:active){background-color:${gn}}:host([appearance='primary']:focus-visible){border-color:${Ue};box-shadow:${$i},0 0 0 2px ${ue}}:host([appearance='outline']){background-color:${he}}:host([appearance='outline']:hover){background-color:${hr}}:host([appearance='outline']:hover:active){background-color:${ur}}:host([appearance='subtle']){background-color:${dn};color:${Pe};border-color:transparent}:host([appearance='subtle']:hover){background-color:${dr};color:${At};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${bo};color:${Nt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${nr}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ar}}:host([appearance='transparent']){background-color:${he};color:${Pe}}:host([appearance='transparent']:hover){background-color:${hr};color:${nr}}:host([appearance='transparent']:hover:active){background-color:${ur};color:${ar}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,zr=u`
|
|
37
|
+
${Yn}
|
|
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([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),
|
|
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:${tt};border-color:${ye};color:${_};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${he}}`.withBehaviors(X(u`
|
|
40
|
+
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),th=u`
|
|
41
|
+
${Yn}
|
|
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(X(u`
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function oh(o={}){return g`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ge(o)}<span class="content" part="content"><slot></slot></span>${bt(o)}</template>`}const rh=oh(),ih=Ht.compose({name:`${p.prefix}-anchor-button`,template:rh,styles:th});ih.define(p.registry);const sh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,nh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,ah=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,lh=/\s+/g,ch=/[\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 dh(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function hh(o){return o=o.replace(sh,""),o=o.replace(nh,""),o=o.replace(lh," "),o=o.trim(),o}function Qn(o,e,t){return!o||(o=hh(o),ch.test(o)||!t?.allowPhoneInitials&&ah.test(o))?"":dh(o,e,t?.firstInitialOnly)}var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,$o=(o,e,t,r)=>{for(var i=r>1?void 0:r?ph(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&uh(e,t,i),i};class jt extends x{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}A.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Qn(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}$o([b],jt.prototype,"defaultSlot",2),$o([b],jt.prototype,"monogram",2),$o([b],jt.prototype,"slottedDefaults",2),$o([a],jt.prototype,"name",2),$o([a],jt.prototype,"initials",2);const Zn={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"},Jn={neutral:"neutral",brand:"brand",colorful:"colorful",...Zn};var bh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,Rt=(o,e,t,r)=>{for(var i=r>1?void 0:r?gh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&bh(e,t,i),i};const rt=class ts extends jt{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||Qn(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Jn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?ts.colors[mh(this.name??"")%ts.colors.length]:this.color??Jn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};rt.colors=Object.values(Zn),Rt([a],rt.prototype,"active",2),Rt([a],rt.prototype,"shape",2),Rt([a],rt.prototype,"appearance",2),Rt([a({converter:re})],rt.prototype,"size",2),Rt([a],rt.prototype,"color",2),Rt([a({attribute:"color-id"})],rt.prototype,"colorId",2);let fh=rt;const mh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},it={fastOutSlowInMax:Wn,fastOutSlowInMid:kt,fastOutSlowInMin:_d,slowOutFastInMax:Bd,slowOutFastInMid:xt,slowOutFastInMin:Td,fastEase:Gn,normalEase:Sr,nullEasing:Pi},vh=u`
|
|
45
|
+
${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr / 1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${L};font-size:${O};border-radius:${xe};color:${Z};background-color:${po};contain:layout style}.monogram,.default-icon{grid-area:1 / 1 / -1 / -1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted) ~ .default-icon,.default-slot:is(.has-slotted,:has-slotted) ~ .monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${xe}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${S}}: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 ${be} ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${mo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${F}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Lt}}: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:${gr}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${ze}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${On}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${En}}:host([data-color='brand']){color:${an};background-color:${fn}}:host([data-color='dark-red']){color:${Ac};background-color:${Ec}}:host([data-color='cranberry']){color:${Tc};background-color:${Bc}}:host([data-color='red']){color:${sc};background-color:${ic}}:host([data-color='pumpkin']){color:${ld};background-color:${ad}}:host([data-color='peach']){color:${ed};background-color:${Jc}}:host([data-color='marigold']){color:${fc};background-color:${_n}}:host([data-color='gold']){color:${Dc};background-color:${Mc}}:host([data-color='brass']){color:${Cc};background-color:${wc}}:host([data-color='brown']){color:${Ic};background-color:${Sc}}:host([data-color='forest']){color:${Fc};background-color:${Nc}}:host([data-color='seafoam']){color:${bd};background-color:${pd}}:host([data-color='dark-green']){color:${Oc};background-color:${_c}}:host([data-color='light-teal']){color:${qc};background-color:${Rc}}:host([data-color='teal']){color:${vd};background-color:${md}}:host([data-color='steel']){color:${fd};background-color:${gd}}:host([data-color='blue']){color:${kc};background-color:${xc}}:host([data-color='royal-blue']){color:${ud};background-color:${hd}}:host([data-color='cornflower']){color:${zc};background-color:${Pc}}:host([data-color='navy']){color:${Zc};background-color:${Qc}}:host([data-color='lavender']){color:${jc};background-color:${Hc}}:host([data-color='purple']){color:${dd};background-color:${cd}}:host([data-color='grape']){color:${Vc};background-color:${Lc}}:host([data-color='lilac']){color:${Gc};background-color:${Wc}}:host([data-color='pink']){color:${od};background-color:${td}}:host([data-color='magenta']){color:${Xc};background-color:${Uc}}:host([data-color='plum']){color:${nd};background-color:${sd}}:host([data-color='beige']){color:${yc};background-color:${$c}}:host([data-color='mink']){color:${Yc};background-color:${Kc}}:host([data-color='platinum']){color:${id};background-color:${rd}}:host([data-color='anchor']){color:${vc};background-color:${mc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Cr},${kr};transition-delay:${it.fastEase},${it.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Cr},${qn};transition-delay:${it.fastEase},${it.nullEasing}}:host([active])::before{box-shadow:${kd};border-style:solid;border-color:${fn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${be});border-width:${be}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Le});border-width:${Le}}: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 * ${xi});border-width:${xi}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${$r}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${yi}}: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:${wd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Cr},${kr};transition-delay:${it.fastOutSlowInMin},${it.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Cr},${qn};transition-delay:${it.fastOutSlowInMin},${it.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}}`,$h=g`<svg width="1em" height="1em" viewBox="0 0 20 20" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function yh(){return g`<slot class="default-slot" ${U("slottedDefaults")} ${z("defaultSlot")}></slot><span class="monogram" ${z("monogram")}>${o=>o.initials}</span>${$h}<slot name="badge"></slot>`}const xh=yh(),kh=fh.compose({name:`${p.prefix}-avatar`,template:xh,styles:vh});kh.define(p.registry);const wh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ch={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Sh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Br=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ih(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Sh(e,t,i),i};class qt extends x{constructor(){super(...arguments),this.appearance=wh.filled,this.color=Ch.brand}}Br([a],qt.prototype,"appearance",2),Br([a],qt.prototype,"color",2),Br([a],qt.prototype,"shape",2),Br([a],qt.prototype,"size",2),Je(qt,Ze);const ea=u.partial`
|
|
46
|
+
${w("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
51
51
|
font-family: ${v};
|
|
52
|
-
font-weight: ${
|
|
52
|
+
font-weight: ${L};
|
|
53
53
|
font-size: ${F};
|
|
54
54
|
line-height: ${q};
|
|
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(${ie} + ${V});
|
|
58
|
+
border-radius: ${xe};
|
|
59
|
+
border-color: ${K};
|
|
60
|
+
background-color: ${pn};
|
|
61
|
+
color: ${Ue};
|
|
62
62
|
contain: content;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -74,11 +74,11 @@ const p=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: ${I};
|
|
78
78
|
border-color: inherit;
|
|
79
79
|
border-radius: inherit;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,ta=u.partial`
|
|
82
82
|
:host([size='tiny']) {
|
|
83
83
|
width: 6px;
|
|
84
84
|
height: 6px;
|
|
@@ -104,8 +104,8 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
104
104
|
:host([size='small']) {
|
|
105
105
|
min-width: 16px;
|
|
106
106
|
height: 16px;
|
|
107
|
-
font-size: ${
|
|
108
|
-
line-height: ${
|
|
107
|
+
font-size: ${mo};
|
|
108
|
+
line-height: ${mr};
|
|
109
109
|
padding-inline: calc(${V} + ${V});
|
|
110
110
|
}
|
|
111
111
|
:host([size='small']) ::slotted(svg) {
|
|
@@ -116,7 +116,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
116
116
|
height: 24px;
|
|
117
117
|
font-size: ${F};
|
|
118
118
|
line-height: ${q};
|
|
119
|
-
padding-inline: calc(${
|
|
119
|
+
padding-inline: calc(${ie} + ${V});
|
|
120
120
|
}
|
|
121
121
|
:host([size='large']) ::slotted(svg) {
|
|
122
122
|
font-size: 16px;
|
|
@@ -126,58 +126,58 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
126
126
|
height: 32px;
|
|
127
127
|
font-size: ${F};
|
|
128
128
|
line-height: ${q};
|
|
129
|
-
padding-inline: calc(${
|
|
129
|
+
padding-inline: calc(${ge} + ${V});
|
|
130
130
|
}
|
|
131
131
|
:host([size='extra-large']) ::slotted(svg) {
|
|
132
132
|
font-size: 20px;
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
134
|
+
`,oa=u.partial`
|
|
135
135
|
:host([color='danger']) {
|
|
136
|
-
background-color: ${
|
|
137
|
-
color: ${
|
|
136
|
+
background-color: ${kn};
|
|
137
|
+
color: ${Ue};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
:host([color='important']) {
|
|
141
|
-
background-color: ${
|
|
141
|
+
background-color: ${B};
|
|
142
142
|
color: ${S};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
:host([color='informative']) {
|
|
146
|
-
background-color: ${
|
|
146
|
+
background-color: ${Xl};
|
|
147
147
|
color: ${Z};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
:host([color='severe']) {
|
|
151
|
-
background-color: ${
|
|
152
|
-
color: ${
|
|
151
|
+
background-color: ${zn};
|
|
152
|
+
color: ${Ue};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
:host([color='subtle']) {
|
|
156
156
|
background-color: ${S};
|
|
157
|
-
color: ${
|
|
157
|
+
color: ${B};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
:host([color='success']) {
|
|
161
161
|
background-color: ${In};
|
|
162
|
-
color: ${
|
|
162
|
+
color: ${Ue};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
:host([color='warning']) {
|
|
166
|
-
background-color: ${
|
|
167
|
-
color: ${
|
|
166
|
+
background-color: ${pc};
|
|
167
|
+
color: ${Gl};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,ra=u.partial`
|
|
170
170
|
:host([appearance='ghost']) {
|
|
171
|
-
color: ${
|
|
171
|
+
color: ${lr};
|
|
172
172
|
background-color: initial;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
:host([appearance='ghost'][color='danger']) {
|
|
176
|
-
color: ${
|
|
176
|
+
color: ${Cn};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
:host([appearance='ghost'][color='important']) {
|
|
180
|
-
color: ${
|
|
180
|
+
color: ${B};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
:host([appearance='ghost'][color='informative']) {
|
|
@@ -189,35 +189,35 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
:host([appearance='ghost'][color='subtle']) {
|
|
192
|
-
color: ${
|
|
192
|
+
color: ${gt};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
:host([appearance='ghost'][color='success']) {
|
|
196
|
-
color: ${
|
|
196
|
+
color: ${dc};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
:host([appearance='ghost'][color='warning']) {
|
|
200
|
-
color: ${
|
|
200
|
+
color: ${vi};
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
202
|
+
`,Ph=u.partial`
|
|
203
203
|
:host([appearance='outline']) {
|
|
204
204
|
border-color: currentColor;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${lr};
|
|
206
206
|
background-color: initial;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
:host([appearance='outline'][color='danger']) {
|
|
210
|
-
color: ${
|
|
210
|
+
color: ${Cn};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
:host([appearance='outline'][color='important']) {
|
|
214
214
|
color: ${Z};
|
|
215
|
-
border-color: ${
|
|
215
|
+
border-color: ${Me};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
:host([appearance='outline'][color='informative']) {
|
|
219
219
|
color: ${Z};
|
|
220
|
-
border-color: ${
|
|
220
|
+
border-color: ${fo};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
:host([appearance='outline'][color='severe']) {
|
|
@@ -225,162 +225,162 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
:host([appearance='outline'][color='subtle']) {
|
|
228
|
-
color: ${
|
|
228
|
+
color: ${an};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
:host([appearance='outline'][color='success']) {
|
|
232
|
-
color: ${
|
|
232
|
+
color: ${cc};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
:host([appearance='outline'][color='warning']) {
|
|
236
|
-
color: ${
|
|
236
|
+
color: ${vi};
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
238
|
+
`,zh=u.partial`
|
|
239
239
|
:host([appearance='tint']) {
|
|
240
|
-
background-color: ${
|
|
241
|
-
color: ${
|
|
242
|
-
border-color: ${
|
|
240
|
+
background-color: ${mn};
|
|
241
|
+
color: ${Wl};
|
|
242
|
+
border-color: ${$n};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
:host([appearance='tint'][color='danger']) {
|
|
246
|
-
background-color: ${
|
|
247
|
-
color: ${
|
|
248
|
-
border-color: ${
|
|
246
|
+
background-color: ${xn};
|
|
247
|
+
color: ${mi};
|
|
248
|
+
border-color: ${wn};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
:host([appearance='tint'][color='important']) {
|
|
252
252
|
background-color: ${Z};
|
|
253
253
|
color: ${S};
|
|
254
|
-
border-color: ${
|
|
254
|
+
border-color: ${K};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
:host([appearance='tint'][color='informative']) {
|
|
258
|
-
background-color: ${
|
|
258
|
+
background-color: ${Ul};
|
|
259
259
|
color: ${Z};
|
|
260
|
-
border-color: ${
|
|
260
|
+
border-color: ${fo};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
:host([appearance='tint'][color='severe']) {
|
|
264
|
-
background-color: ${
|
|
265
|
-
color: ${
|
|
266
|
-
border-color: ${
|
|
264
|
+
background-color: ${Pn};
|
|
265
|
+
color: ${hc};
|
|
266
|
+
border-color: ${Bn};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
:host([appearance='tint'][color='subtle']) {
|
|
270
270
|
background-color: ${S};
|
|
271
271
|
color: ${Z};
|
|
272
|
-
border-color: ${
|
|
272
|
+
border-color: ${fo};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
:host([appearance='tint'][color='success']) {
|
|
276
|
-
background-color: ${
|
|
277
|
-
color: ${
|
|
278
|
-
border-color: ${
|
|
276
|
+
background-color: ${Sn};
|
|
277
|
+
color: ${lc};
|
|
278
|
+
border-color: ${ac};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
:host([appearance='tint'][color='warning']) {
|
|
282
|
-
background-color: ${
|
|
283
|
-
color: ${
|
|
284
|
-
border-color: ${
|
|
282
|
+
background-color: ${uc};
|
|
283
|
+
color: ${vi};
|
|
284
|
+
border-color: ${bc};
|
|
285
285
|
}
|
|
286
286
|
`,ia=u.partial`
|
|
287
287
|
font-family: ${v};
|
|
288
|
-
font-size: ${
|
|
289
|
-
line-height: ${
|
|
290
|
-
font-weight: ${
|
|
288
|
+
font-size: ${O};
|
|
289
|
+
line-height: ${M};
|
|
290
|
+
font-weight: ${E};
|
|
291
291
|
`;u.partial`
|
|
292
292
|
font-family: ${v};
|
|
293
|
-
font-size: ${
|
|
294
|
-
line-height: ${
|
|
295
|
-
font-weight: ${
|
|
293
|
+
font-size: ${O};
|
|
294
|
+
line-height: ${M};
|
|
295
|
+
font-weight: ${L};
|
|
296
296
|
`,u.partial`
|
|
297
297
|
font-family: ${v};
|
|
298
|
-
font-size: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
font-weight: ${
|
|
301
|
-
`;const
|
|
298
|
+
font-size: ${O};
|
|
299
|
+
line-height: ${M};
|
|
300
|
+
font-weight: ${fr};
|
|
301
|
+
`;const Bh=u.partial`
|
|
302
302
|
font-family: ${v};
|
|
303
|
-
font-size: ${
|
|
304
|
-
line-height: ${
|
|
305
|
-
font-weight: ${
|
|
306
|
-
`,
|
|
303
|
+
font-size: ${pe};
|
|
304
|
+
line-height: ${ke};
|
|
305
|
+
font-weight: ${E};
|
|
306
|
+
`,sa=u.partial`
|
|
307
307
|
font-family: ${v};
|
|
308
308
|
font-size: ${F};
|
|
309
309
|
line-height: ${q};
|
|
310
|
-
font-weight: ${
|
|
310
|
+
font-weight: ${E};
|
|
311
311
|
`;u.partial`
|
|
312
312
|
font-family: ${v};
|
|
313
313
|
font-size: ${F};
|
|
314
314
|
line-height: ${q};
|
|
315
|
-
font-weight: ${
|
|
315
|
+
font-weight: ${L};
|
|
316
316
|
`,u.partial`
|
|
317
317
|
font-family: ${v};
|
|
318
318
|
font-size: ${F};
|
|
319
319
|
line-height: ${q};
|
|
320
|
-
font-weight: ${
|
|
320
|
+
font-weight: ${fr};
|
|
321
321
|
`,u.partial`
|
|
322
322
|
font-family: ${v};
|
|
323
|
-
font-size: ${
|
|
324
|
-
line-height: ${
|
|
325
|
-
font-weight: ${
|
|
323
|
+
font-size: ${mo};
|
|
324
|
+
line-height: ${mr};
|
|
325
|
+
font-weight: ${E};
|
|
326
326
|
`,u.partial`
|
|
327
327
|
font-family: ${v};
|
|
328
|
-
font-size: ${
|
|
329
|
-
line-height: ${
|
|
330
|
-
font-weight: ${
|
|
331
|
-
`;const
|
|
328
|
+
font-size: ${mo};
|
|
329
|
+
line-height: ${mr};
|
|
330
|
+
font-weight: ${L};
|
|
331
|
+
`;const Th=u.partial`
|
|
332
332
|
font-family: ${v};
|
|
333
|
-
font-size: ${
|
|
334
|
-
line-height: ${
|
|
335
|
-
font-weight: ${
|
|
333
|
+
font-size: ${Lt};
|
|
334
|
+
line-height: ${vr};
|
|
335
|
+
font-weight: ${L};
|
|
336
336
|
`;u.partial`
|
|
337
337
|
font-family: ${v};
|
|
338
|
-
font-size: ${
|
|
339
|
-
line-height: ${
|
|
340
|
-
font-weight: ${
|
|
338
|
+
font-size: ${pe};
|
|
339
|
+
line-height: ${ke};
|
|
340
|
+
font-weight: ${L};
|
|
341
341
|
`,u.partial`
|
|
342
342
|
font-family: ${v};
|
|
343
|
-
font-size: ${
|
|
344
|
-
line-height: ${
|
|
345
|
-
font-weight: ${
|
|
343
|
+
font-size: ${pe};
|
|
344
|
+
line-height: ${ke};
|
|
345
|
+
font-weight: ${fr};
|
|
346
346
|
`,u.partial`
|
|
347
347
|
font-family: ${v};
|
|
348
|
-
font-size: ${
|
|
348
|
+
font-size: ${Nn};
|
|
349
349
|
line-height: ${Vn};
|
|
350
|
-
font-weight: ${
|
|
350
|
+
font-weight: ${L};
|
|
351
351
|
`,u.partial`
|
|
352
352
|
font-family: ${v};
|
|
353
353
|
font-size: ${An};
|
|
354
|
-
line-height: ${
|
|
355
|
-
font-weight: ${
|
|
354
|
+
line-height: ${Ln};
|
|
355
|
+
font-weight: ${L};
|
|
356
356
|
`,u.partial`
|
|
357
357
|
font-family: ${v};
|
|
358
|
-
font-size: ${
|
|
359
|
-
line-height: ${
|
|
360
|
-
font-weight: ${
|
|
358
|
+
font-size: ${gr};
|
|
359
|
+
line-height: ${Dn};
|
|
360
|
+
font-weight: ${L};
|
|
361
361
|
`,u.partial`
|
|
362
362
|
font-family: ${v};
|
|
363
|
-
font-size: ${
|
|
363
|
+
font-size: ${Fn};
|
|
364
364
|
line-height: ${Hn};
|
|
365
|
-
font-weight: ${
|
|
365
|
+
font-weight: ${L};
|
|
366
366
|
`,u.partial`
|
|
367
367
|
font-family: ${v};
|
|
368
|
-
font-size: ${
|
|
369
|
-
line-height: ${
|
|
370
|
-
font-weight: ${
|
|
371
|
-
`;const
|
|
372
|
-
:host([shape='square']){border-radius:${
|
|
373
|
-
${
|
|
368
|
+
font-size: ${Mn};
|
|
369
|
+
line-height: ${jn};
|
|
370
|
+
font-weight: ${L};
|
|
371
|
+
`;const _h=u`
|
|
372
|
+
:host([shape='square']){border-radius:${br}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${zh}
|
|
373
|
+
${Ph}
|
|
374
|
+
${ra}
|
|
374
375
|
${oa}
|
|
375
376
|
${ta}
|
|
376
377
|
${ea}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
${k("inline-flex")}
|
|
378
|
+
`.withBehaviors(X(u`
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function na(o={}){return g` ${Ge(o)}<slot>${de(o.defaultContent)}</slot>${bt(o)} `}const Oh=na(),Eh=qt.compose({name:`${p.prefix}-badge`,template:Oh,styles:_h});Eh.define(p.registry);var Ah=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,we=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ah(e,t,i),i};class le extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Ir.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===lo||e.key===tr){this.click();return}return!0}press(){switch(this.type){case Ir.reset:{this.resetForm();break}case Ir.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Ir.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}le.formAssociated=!0,we([a({mode:"boolean"})],le.prototype,"autofocus",2),we([b],le.prototype,"defaultSlottedContent",2),we([a({mode:"boolean"})],le.prototype,"disabled",2),we([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),we([a({attribute:"formaction"})],le.prototype,"formAction",2),we([a({attribute:"form"})],le.prototype,"formAttribute",2),we([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),we([a({attribute:"formmethod"})],le.prototype,"formMethod",2),we([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),we([a({attribute:"formtarget"})],le.prototype,"formTarget",2),we([a],le.prototype,"name",2),we([a],le.prototype,"type",2),we([a],le.prototype,"value",2);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Tr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fh(e,t,i),i};class Xe extends le{constructor(){super(...arguments),this.iconOnly=!1}}Tr([a],Xe.prototype,"appearance",2),Tr([a],Xe.prototype,"shape",2),Tr([a],Xe.prototype,"size",2),Tr([a({attribute:"icon-only",mode:"boolean"})],Xe.prototype,"iconOnly",2),Je(Xe,Ze);function _i(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ge(o)}<span class="content" part="content"><slot ${U("defaultSlottedContent")}></slot></span>${bt(o)}</template>`}const Dh=_i(),Lh=Xe.compose({name:`${p.prefix}-button`,template:Dh,styles:zr});Lh.define(p.registry);var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vh(e,t,i),i};class Ce extends x{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$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 m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.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,r){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,r)}}toggleChecked(e=!this.checked){this.checked=e}}Ce.formAssociated=!0,st([a({mode:"boolean"})],Ce.prototype,"autofocus",2),st([b],Ce.prototype,"disabled",2),st([a({attribute:"disabled",mode:"boolean"})],Ce.prototype,"disabledAttribute",2),st([a({attribute:"form"})],Ce.prototype,"formAttribute",2),st([a({attribute:"checked",mode:"boolean"})],Ce.prototype,"initialChecked",2),st([a({attribute:"value",mode:"fromView"})],Ce.prototype,"initialValue",2),st([a],Ce.prototype,"name",2),st([a({mode:"boolean"})],Ce.prototype,"required",2);var jh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Oi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jh(e,t,i),i};class _r extends Ce{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Oi([b],_r.prototype,"indeterminate",2),Oi([a],_r.prototype,"shape",2),Oi([a],_r.prototype,"size",2);const qh=P("active"),Wh=P("bad-input"),y=P("checked"),Gh=P("custom-error"),Uh=P("description"),fe=P("disabled");P("error");const Xh=P("flip-block"),Kh=P("focus-visible");P("has-message");const Ct=P("indeterminate"),Wt=P("multiple"),Yh=P("open"),Qh=P("pattern-mismatch"),Zh=P("placeholder-shown"),D=P("pressed"),Jh=P("range-overflow"),eu=P("range-underflow"),tu=P("required"),Ei=P("selected"),ou=P("step-mismatch"),Or=P("submenu"),ru=P("too-long"),iu=P("too-short"),su=P("type-mismatch"),nu=P("user-invalid"),au=P("valid"),lu=P("value-missing"),cu=u`
|
|
380
|
+
${w("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${S};border-radius:${
|
|
383
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${
|
|
382
|
+
:host{--size:16px;background-color:${S};border-radius:${ze};border:${I} solid ${Me};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${mt}}:host(:active){border-color:${vt}}:host(${y}:hover){background-color:${Ft};border-color:${tc}}:host(${y}:active){background-color:${Mt};border-color:${yn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${be} solid ${K};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ue}}.indeterminate-indicator,.checked-indicator{color:${gt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Ct}){border-color:${$t}}:host(${y}),:host(${Ct}) .indeterminate-indicator{background-color:${ft}}:host(${Ct}) .indeterminate-indicator{border-radius:${ze};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${xe}}:host([disabled]),:host([disabled]${y}){background-color:${tt};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${Ct}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}`.withBehaviors(X(u`
|
|
383
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Ct}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Ct}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ct}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}`)),du=g.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
386
386
|
aria-hidden="true"
|
|
@@ -391,74 +391,74 @@ const p=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
|
+
`),hu=g.partial(`
|
|
395
395
|
<span class="indeterminate-indicator"></span>
|
|
396
|
-
`);function
|
|
397
|
-
${
|
|
396
|
+
`);function uu(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${de(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${de(o.indeterminateIndicator)}</slot></template>`}const pu=uu({checkedIndicator:du,indeterminateIndicator:hu}),bu=_r.compose({name:`${p.prefix}-checkbox`,template:pu,styles:cu});bu.define(p.registry);class gu extends Xe{}const fu=u`
|
|
397
|
+
${zr}
|
|
398
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
|
-
::slotted([slot='description']){color:${
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${M}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Pe};line-height:100%;font-size:${F};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${At}}:host(:active) ::slotted([slot='description']){color:${Nt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ue}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
|
|
400
|
+
::slotted([slot='description']){color:${Pe}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${nr}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${ar}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
401
|
+
::slotted([slot='description']){color:${_}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ge}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ie}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Be}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}`.withBehaviors(X(u`
|
|
402
402
|
:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
|
|
403
|
-
::slotted([slot='description']){color:HighlightText}`));function
|
|
404
|
-
:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${
|
|
405
|
-
${ta}
|
|
403
|
+
::slotted([slot='description']){color:HighlightText}`));function mu(o={}){return g`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ge(o)}<span class="content" part="content"><slot ${U("defaultSlottedContent")}></slot><slot name="description"></slot></span>${bt(o)}</template>`}const vu=mu(),$u=gu.compose({name:`${p.prefix}-compound-button`,template:vu,styles:fu});$u.define(p.registry);var yu=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,nt=(o,e,t,r)=>{for(var i=r>1?void 0:r?xu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&yu(e,t,i),i};class je extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}nt([a],je.prototype,"appearance",2),nt([a],je.prototype,"color",2),nt([a],je.prototype,"shape",2),nt([a],je.prototype,"size",2),nt([a({converter:re})],je.prototype,"count",2),nt([a({attribute:"overflow-count",converter:re})],je.prototype,"overflowCount",2),nt([a({attribute:"show-zero",mode:"boolean"})],je.prototype,"showZero",2),nt([a({mode:"boolean"})],je.prototype,"dot",2),Je(je,Ze);const ku=u`
|
|
404
|
+
:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${ze}}${ta}
|
|
406
405
|
${oa}
|
|
407
|
-
${
|
|
406
|
+
${ra}
|
|
407
|
+
${ea}
|
|
408
408
|
|
|
409
|
-
:host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function
|
|
410
|
-
@layer base{:host{--dialog-backdrop:${
|
|
411
|
-
@layer base{dialog{border:${
|
|
412
|
-
${
|
|
409
|
+
:host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function wu(o={}){return na({defaultContent:g`${e=>e.setCount()}`})}const Cu=wu(),Su=je.compose({name:`${p.prefix}-counter-badge`,template:Cu,styles:ku});Su.define(p.registry);const St={modal:"modal",nonModal:"non-modal",alert:"alert"};function aa(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Iu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,yo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Iu(e,t,i),i};class Gt extends x{constructor(){super(...arguments),this.type=St.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"})}}dialogChanged(){this.updateDialogAttributes()}typeChanged(e,t){this.updateDialogAttributes()}show(){A.enqueue(()=>{this.emitBeforeToggle(),this.type===St.alert||this.type===St.modal?this.dialog.showModal():this.type===St.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==St.alert&&e.target===this.dialog&&this.hide(),!0}updateDialogAttributes(){this.dialog&&(this.type===St.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this.type!==St.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}}yo([b],Gt.prototype,"dialog",2),yo([a({attribute:"aria-describedby"})],Gt.prototype,"ariaDescribedby",2),yo([a({attribute:"aria-labelledby"})],Gt.prototype,"ariaLabelledby",2),yo([a({attribute:"aria-label"})],Gt.prototype,"ariaLabel",2),yo([a],Gt.prototype,"type",2);const zu=g`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${z("dialog")}><slot></slot></dialog>`,Bu=u`
|
|
410
|
+
@layer base{:host{--dialog-backdrop:${bi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${En};border:none;box-shadow:${Rn};color:${B};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ii};transition-timing-function:${kt};opacity:0}::backdrop{transition-timing-function:${Pi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${xt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(X(u`
|
|
411
|
+
@layer base{dialog{border:${I} solid ${K}}}`)),Tu=Gt.compose({name:`${p.prefix}-dialog`,template:zu,styles:Bu});Tu.define(p.registry);class _u extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;aa(t)&&t.hide()}return!0}}const Ou=g`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,Eu=u`
|
|
412
|
+
${w("grid")}
|
|
413
413
|
|
|
414
|
-
:host{background:${S};box-sizing:border-box;gap:${
|
|
415
|
-
${
|
|
414
|
+
:host{background:${S};box-sizing:border-box;gap:${se};padding:${yt} ${ki};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${B};column-gap:8px;display:flex;font-family:${v};font-size:${Lt};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${vr};margin-block-end:calc(${se} * -1);margin-block-start:calc(${yt} * -1);padding-block-end:${se};padding-block-start:${yt}}.content{box-sizing:border-box;color:${B};font-family:${v};font-size:${O};font-weight:${E};line-height:${M};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${yt} * -1);padding-block-end:${yt};padding-block-start:${Ci}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Au=_u.compose({name:`${p.prefix}-dialog-body`,template:Ou,styles:Eu});Au.define(p.registry);const xo={separator:"separator",presentation:"presentation"},la=$e;var Nu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nu(e,t,i),i};class Ai extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??xo.separator,this.role!==xo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??la.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??xo.separator}`),t===xo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==xo.presentation?t??null:null,wt(this.elementInternals,e,t,la)}}ca([a],Ai.prototype,"role",2),ca([a],Ai.prototype,"orientation",2);var Mu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,Ni=(o,e,t,r)=>{for(var i=r>1?void 0:r?Du(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mu(e,t,i),i};class Er extends Ai{}Ni([a({attribute:"align-content"})],Er.prototype,"alignContent",2),Ni([a],Er.prototype,"appearance",2),Ni([a({mode:"boolean"})],Er.prototype,"inset",2);function Lu(){return g`<slot></slot>`}const Vu=Lu(),Hu=u`
|
|
415
|
+
${w("flex")}
|
|
416
416
|
|
|
417
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${
|
|
418
|
-
:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),
|
|
419
|
-
${
|
|
417
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${fo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Pe};font-family:${v};font-size:${F};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${De}}:host([appearance='strong']) ::slotted(*){color:${B}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${vn}}:host([appearance='brand']) ::slotted(*){color:${lr}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Jl}}:host([appearance='subtle']) ::slotted(*){color:${Z}}`.withBehaviors(X(u`
|
|
418
|
+
:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),ju=Er.compose({name:`${p.prefix}-divider`,template:Vu,styles:Hu});ju.define(p.registry);const Ru={start:"start",end:"end"},qu={small:"small",medium:"medium",large:"large",full:"full"},ko={nonModal:"non-modal",modal:"modal",inline:"inline"};var Wu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Ut=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wu(e,t,i),i};class It extends x{constructor(){super(...arguments),this.type=ko.modal,this.position=Ru.start,this.size=qu.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"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===ko.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){A.enqueue(()=>{this.emitBeforeToggle(),this.type===ko.inline||this.type===ko.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}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){this.dialog&&(this.dialog.role=this.type===ko.modal?"dialog":this.role)}}Ut([a],It.prototype,"type",2),Ut([a({attribute:"aria-labelledby"})],It.prototype,"ariaLabelledby",2),Ut([a({attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",2),Ut([a],It.prototype,"position",2),Ut([a({attribute:"size"})],It.prototype,"size",2),Ut([b],It.prototype,"dialog",2);const Uu=u`
|
|
419
|
+
${w("block")}
|
|
420
420
|
|
|
421
|
-
:host{--dialog-backdrop:${
|
|
422
|
-
${
|
|
423
|
-
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${wd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${zh}}.footer{display:flex;justify-content:flex-start;gap:${le}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Qu(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Zu=Qu(),Ju=Ku.compose({name:`${p.prefix}-drawer-body`,template:Zu,styles:Yu});Ju.define(p.registry);function ca(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Oi(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function da(o){return o.closest("[lang]")?.lang??"en"}let ep=0;function Qt(o="id-"){const e=`${o}${ep++}`;return document.getElementById(e)?Qt(o):e}function tp(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},1)}function op(o){"cancelIdleCallback"in globalThis?globalThis.cancelIdleCallback(o):clearTimeout(o)}function ha(o,e,t){let i;const s=`${t?.shallow??!1?":scope > ":""}:not(:defined)`,n=t?.timeout??50,c=h=>{if(i&&(op(i),i=void 0),!o.querySelector(s)||h&&h.timeRemaining()<=0){e();return}i=tp(c,{timeout:n})};c()}const ip={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Dr={combobox:"combobox",dropdown:"dropdown",select:"select"},rp=b`<svg class="chevron-down-20-regular" aria-hidden="true" slot="indicator" viewBox="0 0 20 20" ${E("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>`,sp=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${E("control")} />`,np=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${E("control")}>${o=>o.displayValue}</button>`;function ap(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${E("controlSlot")}></slot><slot name="indicator" ${E("indicatorSlot")}>${ge(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const lp=ap({indicator:rp});var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,K=(o,e,t,i)=>{for(var r=i>1?void 0:i?dp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cp(e,t,r),r};const L=class so extends ${constructor(){super(),this.activeIndex=0,this.id=Qt("dropdown-"),this.required=!1,this.type=Dr.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||ei(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",ie.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((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Qt("input-"))}disabledChanged(e,t){ie.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(da(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);if(ie.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0}),this.setValidity()}),ti){const r=Qt("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){ie.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,ti||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Dr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}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.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Oi(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(da(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Dr.combobox){sp.render(this,this);return}np.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,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Oi(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}}slotchangeHandler(e){const t=e.target;ha(this,()=>{const i=t.assignedElements().find(r=>ca(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:s})=>{if(ca(s)){if(i.bottom>window.innerHeight){y(s.elementInternals,"flip-block",!0);return}i.top<0&&y(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};L.formAssociated=!0,K([ls],L.prototype,"activeDescendant",1),K([g],L.prototype,"activeIndex",2),K([a({attribute:"aria-labelledby",mode:"fromView"})],L.prototype,"ariaLabelledBy",2),K([g],L.prototype,"control",2),K([a({mode:"boolean"})],L.prototype,"disabled",2),K([ls],L.prototype,"displayValue",1),K([a({attribute:"id"})],L.prototype,"id",2),K([g],L.prototype,"indicator",2),K([g],L.prototype,"indicatorSlot",2),K([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),K([g],L.prototype,"listbox",2),K([a({mode:"boolean"})],L.prototype,"multiple",2),K([a],L.prototype,"name",2),K([g],L.prototype,"open",2),K([a],L.prototype,"placeholder",2),K([a({mode:"boolean"})],L.prototype,"required",2),K([a],L.prototype,"type",2),K([a({attribute:"value"})],L.prototype,"valueAttribute",2);let hp=L;var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?pp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&up(e,t,r),r};class Vr extends hp{constructor(){super(...arguments),this.appearance=ip.outline}}ua([a],Vr.prototype,"appearance",2),ua([a],Vr.prototype,"size",2);const bp=u`
|
|
424
|
-
${
|
|
421
|
+
:host{--dialog-backdrop:${bi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${O};line-height:${M};font-family:${v};font-weight:${E};color:${B};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Rn};border:${I} solid ${K};background:${S}}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:${Ii};transition-timing-function:${kt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${xt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${xt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ii};transition-timing-function:${kt};background:var(--dialog-backdrop,${bi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Pi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Xu(){return g`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${z("dialog")}><slot></slot></dialog>`}const Ku=Xu(),Yu=It.compose({name:`${p.prefix}-drawer`,template:Ku,styles:Uu});Yu.define(p.registry);class Qu extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;aa(t,"-drawer")&&t.hide()}return!0}}const Zu=u`
|
|
422
|
+
${w("grid")}
|
|
423
|
+
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Sd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Th}}.footer{display:flex;justify-content:flex-start;gap:${ae}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Ju(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const ep=Ju(),tp=Qu.compose({name:`${p.prefix}-drawer-body`,template:ep,styles:Zu});tp.define(p.registry);function da(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ar(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function ha(o){return o.closest("[lang]")?.lang??"en"}function op(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},1)}function wo(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,s=`${r?":scope > ":""}:not(:defined)`,n=c=>{if(o.querySelector(s)===null||c&&c.timeRemaining()<=0){requestAnimationFrame(e);return}op(n,{timeout:i})};n()}let rp=0;function Xt(o="id-"){const e=`${o}${rp++}`;return document.getElementById(e)?Xt(o):e}const ip={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Fi={combobox:"combobox",dropdown:"dropdown",select:"select"},sp=g`<svg class="chevron-down-20-regular" aria-hidden="true" slot="indicator" viewBox="0 0 20 20" ${z("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>`,np=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}" slot="control" ${z("control")} />`,ap=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" slot="control" ${z("control")}>${o=>o.displayValue}</button>`;function lp(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" ${z("controlSlot")}></slot><slot name="indicator" ${z("indicatorSlot")}>${de(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const cp=lp({indicator:sp});var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var i=r>1?void 0:r?hp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&dp(e,t,i),i};const H=class ro extends x{constructor(){super(),this.activeIndex=0,this.id=Xt("dropdown-"),this.required=!1,this.type=Fi.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||or(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Xt("input-"))}disabledChanged(e,t){this.listbox&&A.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),A.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()}),rr){const i=Xt("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&A.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,rr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Fi.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}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.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Ar(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ha(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Fi.combobox){np.render(this,this);return}ap.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,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Ar(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}}slotchangeHandler(e){const t=e.target;wo(this,()=>{const r=t.assignedElements().find(i=>da(i));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),A.enqueue(()=>{this.insertControl()})}disconnectedCallback(){ro.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(ro.AnchorPositionFallbackObserver||(ro.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:s})=>{if(da(s)){if(r.bottom>window.innerHeight){$(s.elementInternals,"flip-block",!0);return}r.top<0&&$(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,ro.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}ro.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};H.formAssociated=!0,Y([cs],H.prototype,"activeDescendant",1),Y([b],H.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],H.prototype,"ariaLabelledBy",2),Y([b],H.prototype,"control",2),Y([a({mode:"boolean"})],H.prototype,"disabled",2),Y([cs],H.prototype,"displayValue",1),Y([a({attribute:"id"})],H.prototype,"id",2),Y([b],H.prototype,"indicator",2),Y([b],H.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],H.prototype,"initialValue",2),Y([b],H.prototype,"listbox",2),Y([a({mode:"boolean"})],H.prototype,"multiple",2),Y([a],H.prototype,"name",2),Y([b],H.prototype,"open",2),Y([a],H.prototype,"placeholder",2),Y([a({mode:"boolean"})],H.prototype,"required",2),Y([a],H.prototype,"type",2),Y([a({attribute:"value"})],H.prototype,"valueAttribute",2);let up=H;var pp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,ua=(o,e,t,r)=>{for(var i=r>1?void 0:r?bp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&pp(e,t,i),i};class Mi extends up{constructor(){super(...arguments),this.appearance=ip.outline}}ua([a],Mi.prototype,"appearance",2),ua([a],Mi.prototype,"size",2);const gp=u`
|
|
424
|
+
${w("inline-flex")}
|
|
425
425
|
|
|
426
|
-
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${
|
|
427
|
-
${
|
|
426
|
+
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${B};cursor:pointer}:host(${Zh}){color:${ui}}.control{appearance:none;background-color:${S};border-radius:${C};border:${I} solid ${K};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${V};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${vo} ${Ve};position:relative;text-align:start;width:100%;z-index:1;${ia}}:host([size='small']) .control{column-gap:${V};padding:${Vt} ${ge};${sa}}:host([size='large']) .control{column-gap:${Be};padding:${se} ${ae};${Bh}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${$t};height:${be};scale:0 1;transition:scale ${Si} ${kt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${pr};outline:${be} solid ${ue}}:host(:where(${Yh},:focus-within)) .control::after{scale:1 1;transition-duration:${wr};transition-timing-function:${xt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Me}}:host([appearance='transparent']) .control{--control-border-color:${gi};background-color:${he};border-radius:${br}}:host([appearance='outline']) .control{--control-border-color:${De}}:host([appearance='outline']) .control:hover{--control-border-color:${Dt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${mt}}:host([appearance='outline']) .control:hover::after{background-color:${Ft}}:host([appearance='outline']) .control:active{--control-border-color:${go}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${vt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Mt}}:host([appearance='filled-darker']) .control{background-color:${uo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${ye};background-color:${tt};color:${_}}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${M} + (${vo} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${q} + (${Vt} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${ke} + (${se} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){color:GrayText}`,fp=Mi.compose({name:`${p.prefix}-dropdown`,template:cp,styles:gp});fp.define(p.registry);const mp={above:"above",after:"after",before:"before"},Se={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 vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Nr=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vp(e,t,i),i};class Co extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||co("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Se))$(this.elementInternals,t,this.input.validity[e])}}Nr([b],Co.prototype,"labelSlot",2),Nr([b],Co.prototype,"messageSlot",2),Nr([b],Co.prototype,"slottedInputs",2),Nr([b],Co.prototype,"input",2);var yp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,kp=(o,e,t,r)=>{for(var i=r>1?void 0:r?xp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&yp(e,t,i),i};class pa extends Co{constructor(){super(...arguments),this.labelPosition=mp.above}}kp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const wp=u`
|
|
427
|
+
${w("inline-grid")}
|
|
428
428
|
|
|
429
|
-
:host{color:${
|
|
430
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${
|
|
431
|
-
${
|
|
429
|
+
:host{color:${B};align-items:center;gap:0 ${ae};justify-items:start}:has([slot='message']){color:${B};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ae}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${yr}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Id}}:host(${tu}) ::slotted([slot='label'])::after{content:'*' / '';color:${mi};margin-inline-start:${ie}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${F};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${yr}}:host(${Kh}:focus-within){border-radius:${C};outline:${be} solid ${ue}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${O};font-weight:${E};grid-area:label;line-height:${M};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${F};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${fe}){cursor:default}::slotted([flag]){display:none}:host(${Wh}) ::slotted([flag='${Se.badInput}']),:host(${Gh}) ::slotted([flag='${Se.customError}']),:host(${Qh}) ::slotted([flag='${Se.patternMismatch}']),:host(${Jh}) ::slotted([flag='${Se.rangeOverflow}']),:host(${eu}) ::slotted([flag='${Se.rangeUnderflow}']),:host(${ou}) ::slotted([flag='${Se.stepMismatch}']),:host(${ru}) ::slotted([flag='${Se.tooLong}']),:host(${iu}) ::slotted([flag='${Se.tooShort}']),:host(${su}) ::slotted([flag='${Se.typeMismatch}']),:host(${lu}) ::slotted([flag='${Se.valueMissing}']),:host(${au}) ::slotted([flag='${Se.valid}']){display:block}`,Cp=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)}"><slot name="label" part="label" ${U("labelSlot")}></slot><slot name="input" part="input" ${U("slottedInputs")}></slot><slot name="message" part="message" ${U({property:"messageSlot",filter:no("[flag]")})}></slot></template>`,Sp=pa.compose({name:`${p.prefix}-field`,template:Cp,styles:wp,shadowOptions:{delegatesFocus:!0}});Sp.define(p.registry);var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,So=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ip(e,t,i),i};class Kt extends x{}So([a({mode:"boolean"})],Kt.prototype,"block",2),So([a({mode:"boolean"})],Kt.prototype,"bordered",2),So([a({mode:"boolean"})],Kt.prototype,"shadow",2),So([a],Kt.prototype,"fit",2),So([a],Kt.prototype,"shape",2);const zp=g`<slot></slot>`,Bp=u`
|
|
430
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${fo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${$r}}:host([shape='circular']) ::slotted(img){border-radius:${xe}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Tp=Kt.compose({name:`${p.prefix}-image`,template:zp,styles:Bp});Tp.define(p.registry);var _p=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,Fr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Op(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_p(e,t,i),i};class Io extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Fr([a],Io.prototype,"size",2),Fr([a],Io.prototype,"weight",2),Fr([a({mode:"boolean"})],Io.prototype,"disabled",2),Fr([a({mode:"boolean"})],Io.prototype,"required",2);const Ep=u`
|
|
431
|
+
${w("inline-flex")}
|
|
432
432
|
|
|
433
|
-
:host{color:${
|
|
434
|
-
${
|
|
433
|
+
:host{color:${B};cursor:pointer;font-family:${v};font-size:${O};font-weight:${E};line-height:${M};user-select:none}.asterisk{color:${mi};margin-inline-start:${ie}}:host([size='small']){font-size:${F};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${ke}}:host(:is([size='large'],[weight='semibold'])){font-weight:${L}}:host([disabled]),:host([disabled]) .asterisk{color:${_}}`;function Ap(){return g`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Np=Ap(),Fp=Io.compose({name:`${p.prefix}-label`,template:Np,styles:Ep});Fp.define(p.registry);var Mp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?Dp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mp(e,t,i),i};class Di extends He{constructor(){super(...arguments),this.inline=!1}}ba([a],Di.prototype,"appearance",2),ba([a({mode:"boolean"})],Di.prototype,"inline",2);const Lp=u`
|
|
434
|
+
${w("inline")}
|
|
435
435
|
|
|
436
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${
|
|
437
|
-
:host{color:LinkText}`));function Vp(){return
|
|
438
|
-
${
|
|
436
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${Nl};cursor:pointer;font-family:${v};font-size:${O};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Fl}}:host(:active){color:${Ml}}:host([appearance='subtle']:hover){color:${Ll}}:host([appearance='subtle']:active){color:${Vl}}}:host([appearance='subtle']){color:${Dl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
|
|
437
|
+
:host{color:LinkText}`));function Vp(){return g`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Hp=Vp(),jp=Di.compose({name:`${p.prefix}-link`,template:Hp,styles:Lp});jp.define(p.registry);var Rp=Object.defineProperty,qp=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?qp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Rp(e,t,i),i};class Yt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),A.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Ar(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),wo(this,()=>{this.id=this.id||Xt("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const s=i===e;r.selected=s,s&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){wo(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Ar(r));this.options=t}})}}Po([b],Yt.prototype,"defaultSlot",2),Po([b],Yt.prototype,"multiple",2),Po([b],Yt.prototype,"options",2),Po([b],Yt.prototype,"selectedIndex",2),Po([b],Yt.prototype,"dropdown",2);const Wp=u`
|
|
438
|
+
${w("inline-flex")}
|
|
439
439
|
|
|
440
|
-
:host{background-color:${S};border-radius:${C};border:${
|
|
440
|
+
:host{background-color:${S};border-radius:${C};border:${I} solid ${K};box-shadow:${yi};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ie};row-gap:${V};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Xh}){margin-block-start:revert;translate:0 -100%}}`;function Gp(){return g`<template @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${z("defaultSlot")} @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Up=Gp(),Xp=Yt.compose({name:`${p.prefix}-listbox`,template:Up,styles:Wp});Xp.define(p.registry);class Kp extends Xe{}const Yp=_i({end:g.partial(`
|
|
441
441
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
442
442
|
<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>
|
|
443
443
|
</svg>
|
|
444
|
-
`)}),
|
|
445
|
-
${
|
|
444
|
+
`)}),Qp=Kp.compose({name:`${p.prefix}-menu-button`,template:Yp,styles:zr});Qp.define(p.registry);const J={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};J.menuitem+"",J.menuitemcheckbox+"",J.menuitemradio+"";function Zp(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Jp=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,Qt=(o,e,t,r)=>{for(var i=r>1?void 0:r?eb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jp(e,t,i),i};class Ke extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=J.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case lo:case tr:return this.invoke(),!1;case Qo:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case Yo: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 J.menuitemcheckbox:this.checked=!this.checked;break;case J.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case J.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(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??J.menuitem}checkedChanged(e,t){const r=this.role!==J.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?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",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??J.menuitem,this.elementInternals.ariaChecked=this.role!==J.menuitem?`${!!this.checked}`:null}}Qt([a({mode:"boolean"})],Ke.prototype,"disabled",2),Qt([a],Ke.prototype,"role",2),Qt([a({mode:"boolean"})],Ke.prototype,"checked",2),Qt([a({mode:"boolean"})],Ke.prototype,"hidden",2),Qt([b],Ke.prototype,"slottedSubmenu",2),Qt([b],Ke.prototype,"submenu",2),Je(Ke,Ze);const tb=u`
|
|
445
|
+
${w("grid")}
|
|
446
446
|
|
|
447
|
-
:host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${
|
|
448
|
-
:host(${
|
|
449
|
-
${
|
|
447
|
+
:host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Pe};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${O} / ${M} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${cr};color:${At}}:host(:active){background-color:${ln};color:${Nt}}:host(:active) ::slotted([slot='start']){color:${jl}}:host(${fe}){background-color:${tt};color:${_}}:host(${fe}) ::slotted([slot='start']),:host(${fe}) ::slotted([slot='end']){color:${_}}:host(:focus-visible){border-radius:${C};outline:2px solid ${ue}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${Or})) .submenu-glyph,:host(:not(${Or})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${E} ${F} / ${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Or}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Or}){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,block-start,block-end;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(X(u`
|
|
448
|
+
:host(${fe}),:host(${fe}) ::slotted([slot='start']),:host(${fe}) ::slotted([slot='end']){color:GrayText}`)),ob=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>'),rb=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 ib(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">${de(o.indicator)}</slot>${Ge(o)}<div part="content" class="content"><slot></slot></div>${bt(o)}<slot name="submenu-glyph">${de(o.submenuGlyph)}</slot><slot name="submenu" ${U({property:"slottedSubmenu"})}></slot></template>`}const sb=ib({indicator:ob,submenuGlyph:rb}),nb=Ke.compose({name:`${p.prefix}-menu-item`,template:sb,styles:tb});nb.define(p.registry);var ab=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,cb=(o,e,t,r)=>{for(var i=r>1?void 0:r?lb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ab(e,t,i),i};const Li=class os extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&di(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,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.role;if(c===J.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuItems.length-1;for(let s=r+1;s<=i;++s){const n=this.menuItems[s],c=n.role;if(c===J.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>Zp(e)||di(e)&&!!e.role&&e.role in os.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(),A.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 Ko:this.setFocus(this.focusIndex+1,1);return;case Zo:this.setFocus(this.focusIndex-1,-1);return;case Jo:this.setFocus(this.menuItems.length-1,-1);return;case er:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==J.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),s=i?.reduce((n,c)=>{const h=os.elementIndent(c);return Math.max(n,h)},0);i?.forEach(n=>{n.dataset.indent=`${s}`})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};Li.focusableElementRoles=J,cb([b],Li.prototype,"items",2);let db=Li;const hb=u`
|
|
449
|
+
${w("flex")}
|
|
450
450
|
|
|
451
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${
|
|
452
|
-
${
|
|
451
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${K};border-radius:${C};box-shadow:${yi};padding:4px;row-gap:2px}`;function ub(){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 ${U("items")}></slot></template>`}const pb=ub(),bb=db.compose({name:`${p.prefix}-menu-list`,template:pb,styles:hb});bb.define(p.registry);var gb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,at=(o,e,t,r)=>{for(var i=r>1?void 0:r?fb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gb(e,t,i),i};class Ye extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ke&&(e.target.getAttribute("role")===J.menuitemcheckbox||e.target.getAttribute("role")===J.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._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case tr:case lo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this.setComponent()}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){wo(this,()=>{const e=this.slottedTriggers?.[0],t=this.slottedMenuList?.[0];if(!e||!t){this.removeListeners();return}this._trigger=e,this._menuList=t,this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.removeListeners(),this.addListeners()},{shallow:!0})}focusMenuList(){A.enqueue(()=>{this._menuList.focus()})}focusTrigger(){A.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 ml:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case vl: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}}}at([a({attribute:"open-on-hover",mode:"boolean"})],Ye.prototype,"openOnHover",2),at([a({attribute:"open-on-context",mode:"boolean"})],Ye.prototype,"openOnContext",2),at([a({attribute:"close-on-scroll",mode:"boolean"})],Ye.prototype,"closeOnScroll",2),at([a({attribute:"persist-on-item-click",mode:"boolean"})],Ye.prototype,"persistOnItemClick",2),at([a({mode:"boolean"})],Ye.prototype,"split",2),at([b],Ye.prototype,"slottedMenuList",2),at([b],Ye.prototype,"slottedTriggers",2),at([b],Ye.prototype,"primaryAction",2);const mb=u`
|
|
452
|
+
${w("inline-block")}
|
|
453
453
|
|
|
454
|
-
::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:${
|
|
455
|
-
:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${q};width:100%;background:${
|
|
456
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${
|
|
457
|
-
${
|
|
454
|
+
::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:${I} solid ${De};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:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function vb(){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" ${z("primaryAction")}></slot><slot name="trigger" ${U({property:"slottedTriggers",filter:no()})}></slot><slot ${U({property:"slottedMenuList",filter:no()})}></slot></template>`}const $b=vb(),yb=Ye.compose({name:`${p.prefix}-menu`,template:$b,styles:mb});yb.define(p.registry);var xb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,Vi=(o,e,t,r)=>{for(var i=r>1?void 0:r?kb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xb(e,t,i),i};class Mr extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Vi([a],Mr.prototype,"shape",2),Vi([a],Mr.prototype,"layout",2),Vi([a],Mr.prototype,"intent",2);const wb=u`
|
|
455
|
+
:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${q};width:100%;background:${uo};border:1px solid ${De};padding-inline:${ae};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${Sn};border-color:${nc}}:host([intent='warning']){background-color:${Pn};border-color:${Bn}}:host([intent='error']){background-color:${xn};border-color:${wn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
|
|
456
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${xr};padding-inline:${ae}}.content{grid-area:body;max-width:520px;padding-block:${xr};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Be}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Be};gap:${Be}}:host([layout='multiline']) .actions{margin-block-start:${xr};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Cb(){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 Sb=Cb(),Ib=Mr.compose({name:`${p.prefix}-message-bar`,template:Sb,styles:wb,shadowOptions:{mode:p.shadowRootMode}});Ib.define(p.registry);var Pb=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,me=(o,e,t,r)=>{for(var i=r>1?void 0:r?zb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Pb(e,t,i),i};class ne extends x{constructor(){super(),this.active=!1,this.id=Xt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,A.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ne.formAssociated=!0,me([b],ne.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),me([b],ne.prototype,"descriptionSlot",2),me([b],ne.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ne.prototype,"formAttribute",2),me([a({mode:"boolean"})],ne.prototype,"freeform",2),me([a({attribute:"id"})],ne.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),me([b],ne.prototype,"multiple",2),me([a],ne.prototype,"name",2),me([b],ne.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2);const Bb=u`
|
|
457
|
+
${w("inline-grid")}
|
|
458
458
|
|
|
459
459
|
:host{-webkit-tap-highlight-color:transparent;${ia}
|
|
460
|
-
align-items:center;background-color:${S};border-radius:${C};box-sizing:border-box;color:${
|
|
461
|
-
'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${
|
|
460
|
+
align-items:center;background-color:${S};border-radius:${C};box-sizing:border-box;color:${Pe};column-gap:${ie};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${cr};color:${At}}:host(:active){background-color:${pi};color:${Nt}}:host(:disabled){background-color:${S};color:${_};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(${Ei}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Wt}) .checkmark-16-filled,:host(:not(${Wt})) .checkmark-12-regular{display:none}:host(${Wt}) .checkmark-12-regular{background-color:${S};border-radius:${ze};border:${I} solid ${Me};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Wt}${Ei}) .checkmark-12-regular{background-color:${ft};border-color:${$t};fill:${gt}}:host(:disabled${Wt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Wt}${Ei}) .checkmark-12-regular{background-color:${tt}}:host(${qh}){border:${be} solid ${ue}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ge}}}:host(${Uh}){column-gap:${ge};grid-template-areas:'indicator start content'
|
|
461
|
+
'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${sa}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,Tb=g.partial(`
|
|
462
462
|
<svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
|
|
463
463
|
<path
|
|
464
464
|
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"
|
|
@@ -469,96 +469,88 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
469
469
|
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"
|
|
470
470
|
/>
|
|
471
471
|
</svg>
|
|
472
|
-
`);function
|
|
473
|
-
${
|
|
472
|
+
`);function _b(o={}){return g`<slot name="checked-indicator">${de(o.checkedIndicator)}</slot>${Ge(o)}<div class="content" part="content"><slot ${U({property:"freeformOutputs",filter:no("output")})}></slot></div><div class="description" part="description"><slot name="description" ${U("descriptionSlot")}></slot></div>`}const Ob=_b({checkedIndicator:Tb}),Eb=ne.compose({name:`${p.prefix}-option`,template:Ob,styles:Bb});Eb.define(p.registry);const Ab={success:"success",warning:"warning",error:"error"};var Nb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,zo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nb(e,t,i),i};class Zt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){wt(this.elementInternals,e,t,Ab)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||A.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,s=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${s}%`)})}}zo([b],Zt.prototype,"indicator",2),zo([a({attribute:"validation-state"})],Zt.prototype,"validationState",2),zo([a({converter:re})],Zt.prototype,"value",2),zo([a({converter:re})],Zt.prototype,"min",2),zo([a({converter:re})],Zt.prototype,"max",2);var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?Db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mb(e,t,i),i};class Hi extends Zt{}ga([a],Hi.prototype,"thickness",2),ga([a],Hi.prototype,"shape",2);const Lb=u`
|
|
473
|
+
${w("block")}
|
|
474
474
|
|
|
475
|
-
:host{width:100%;height:2px;overflow-x:hidden;background-color:${
|
|
476
|
-
to right,${
|
|
477
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${
|
|
478
|
-
:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Vb(){return
|
|
479
|
-
${
|
|
475
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${po};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${br}}.indicator{background-color:${ft};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
476
|
+
to right,${po} 0%,${he} 50%,${po} 100%
|
|
477
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${kn}}:host([validation-state='warning']) .indicator{background-color:${zn}}:host([validation-state='success']) .indicator{background-color:${In}}@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(X(u`
|
|
478
|
+
:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Vb(){return g`<div class="indicator" part="indicator" ${z("indicator")}></div>`}const Hb=Vb(),jb=Hi.compose({name:`${p.prefix}-progress-bar`,template:Hb,styles:Lb});jb.define(p.registry);function Rb(o,e="-radio"){return xl(e)(o)}function fa(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const ma=$e;var qb=Object.defineProperty,Wb=Object.getOwnPropertyDescriptor,lt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qb(e,t,i),i};class Re extends x{constructor(){super(),this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ma.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??ma.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const i=fl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===i,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),A.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>Rb(r))}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const n=s===e;i.checked=n,n&&(r=s,t&&i.$emit("change"))}),this.checkedIndex=r,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=or(this)==="rtl",r=this.enabledRadios.findIndex(n=>n===fa(this))??this.checkedIndex;let i=0;switch(e.key){case"ArrowLeft":{i=t?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=t?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const s=r+i;this.checkRadio(this.getEnabledIndexInBounds(s),!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(fa(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((r,i)=>{r.tabIndex=i===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const s={valueMissing:!0,...e},n=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(s,n,c):c.elementInternals.setValidity({})})}}}Re.formAssociated=!0,lt([b],Re.prototype,"checkedIndex",2),lt([a({attribute:"disabled",mode:"boolean"})],Re.prototype,"disabled",2),lt([a({attribute:"value",mode:"fromView"})],Re.prototype,"initialValue",2),lt([a],Re.prototype,"name",2),lt([a],Re.prototype,"orientation",2),lt([b],Re.prototype,"radios",2),lt([a({mode:"boolean"})],Re.prototype,"required",2),lt([b],Re.prototype,"slottedRadios",2);const Gb=u`
|
|
479
|
+
${w("flex")}
|
|
480
480
|
|
|
481
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${
|
|
482
|
-
${
|
|
481
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ci}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Pe}}::slotted(:active){color:${B}}::slotted(${fe}){color:${_}}::slotted(${y}){color:${B}}:host([slot='input']){margin:${se} ${Be}}`;function Ub(){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 ${U("slottedRadios")}></slot></template>`}const Xb=Ub(),Kb=Re.compose({name:`${p.prefix}-radio-group`,template:Xb,styles:Gb});Kb.define(p.registry);class Yb extends Ce{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}const Qb=u`
|
|
482
|
+
${w("inline-flex")}
|
|
483
483
|
|
|
484
|
-
:host{--size:16px;aspect-ratio:1;background-color:${S};border:${
|
|
485
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${
|
|
484
|
+
:host{--size:16px;aspect-ratio:1;background-color:${S};border:${I} solid ${Me};border-radius:${xe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${xe};color:${gt};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:${be} solid ${K};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ue}}:host(:hover){border-color:${mt}}:host(${y}){border-color:${$t}}:host(${y}) .checked-indicator{background-color:${ft}}:host(${y}:hover) .checked-indicator{background-color:${Ft}}:host(:active){border-color:${vt}}:host(${y}:active) .checked-indicator{background-color:${Mt}}:host(:focus-visible){outline:none}:host(${fe}){background-color:${tt};border-color:${ye}}:host(${y}${fe}) .checked-indicator{background-color:${ye}}`.withBehaviors(X(u`
|
|
485
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${fe}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${fe}):hover) .checked-indicator{background-color:Highlight}:host(${fe}){border-color:GrayText;color:GrayText}:host(${fe}${y}) .checked-indicator{background-color:GrayText}`)),Zb=g.partial(`
|
|
486
486
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
487
|
-
`);function
|
|
487
|
+
`);function Jb(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">${de(o.checkedIndicator)}</slot></template>`}const eg=Jb({checkedIndicator:Zb}),tg=Yb.compose({name:`${p.prefix}-radio`,template:eg,styles:Qb});tg.define(p.registry);var og=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,Bo=(o,e,t,r)=>{for(var i=r>1?void 0:r?rg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&og(e,t,i),i};const ig=CSS.supports("width: attr(value type(<number>))"),Jt={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Dr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class eo extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(Jt.maskImageFilled),this.display.style.removeProperty(Jt.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
|
|
488
488
|
<svg
|
|
489
|
-
viewBox="${
|
|
489
|
+
viewBox="${r}"
|
|
490
490
|
xmlns="http://www.w3.org/2000/svg"
|
|
491
491
|
>${t}</svg>`,s=`
|
|
492
492
|
<svg
|
|
493
|
-
viewBox="${
|
|
493
|
+
viewBox="${r}"
|
|
494
494
|
xmlns="http://www.w3.org/2000/svg"
|
|
495
495
|
fill="none"
|
|
496
496
|
stroke="black"
|
|
497
497
|
stroke-width="2"
|
|
498
|
-
>${t}</svg>`;this.display.style.setProperty(
|
|
499
|
-
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${
|
|
500
|
-
`,
|
|
498
|
+
>${t}</svg>`;this.display.style.setProperty(Jt.maskImageFilled,`url(${Dr(i)})`),this.display.style.setProperty(Jt.maskImageOutlined,`url(${Dr(s)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||ig)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(Jt[e]):this.display.style.setProperty(Jt[e],`${t}`)})}}Bo([b],eo.prototype,"iconSlot",2),Bo([a({converter:re})],eo.prototype,"count",2),Bo([a({attribute:"icon-view-box"})],eo.prototype,"iconViewBox",2),Bo([a({converter:re})],eo.prototype,"max",2),Bo([a({converter:re})],eo.prototype,"value",2);var sg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,ji=(o,e,t,r)=>{for(var i=r>1?void 0:r?ng(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&sg(e,t,i),i};class Lr extends eo{constructor(){super(...arguments),this.compact=!1}}ji([a],Lr.prototype,"color",2),ji([a],Lr.prototype,"size",2),ji([a({mode:"boolean"})],Lr.prototype,"compact",2);const va='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',ag=`
|
|
499
|
+
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${va}</svg>
|
|
500
|
+
`,lg=`
|
|
501
501
|
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
502
502
|
fill="none" stroke="black" stroke-width="2"
|
|
503
|
-
>${
|
|
504
|
-
`;function
|
|
505
|
-
${
|
|
503
|
+
>${va}</svg>
|
|
504
|
+
`;function cg(){return g`<div ${z("display")} class="display" aria-hidden="true"></div><slot name="icon" ${z("iconSlot")} @slotchange="${o=>o.handleSlotChange()}"></slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const dg=cg(),hg=u`
|
|
505
|
+
${w("inline-flex")}
|
|
506
506
|
|
|
507
|
-
:host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${
|
|
507
|
+
:host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${gc};--_icon-color-empty:${_n};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Dr(ag)});--_mask-image-outlined:url(${Dr(lg)});--_mask-position-x:left;align-items:center;color:${B};font-family:${v};font-size:${F};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${O};line-height:${M}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${B};--_icon-color-empty:${po}}:host([color='brand']){--_icon-color-value:${lr};--_icon-color-empty:${mn}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2) / 2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${V});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc(
|
|
508
508
|
var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment)
|
|
509
509
|
);background-image:linear-gradient(
|
|
510
510
|
var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px)
|
|
511
|
-
);block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V} / 2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${
|
|
512
|
-
.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1 / 1 / -1 / -1;mask:inherit;mask-image:var(--_mask-image-outlined)}`)),
|
|
513
|
-
: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,
|
|
514
|
-
${
|
|
511
|
+
);block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V} / 2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${ie};font-weight:${L}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${V}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${ie}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${V}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ge}}`.withBehaviors(X(u`
|
|
512
|
+
.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1 / 1 / -1 / -1;mask:inherit;mask-image:var(--_mask-image-outlined)}`)),ug=Lr.compose({name:`${p.prefix}-rating-display`,template:dg,styles:hg});ug.define(p.registry);function $a(o,e,t,r){let i=rn(0,1,(o-e)/(t-e));return r===Fe.rtl&&(i=1-i),i}const pg=$e,bg={singleValue:"single-value"};var gg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?fg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gg(e,t,i),i};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Fe.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=bg.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===$e.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;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.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===$e.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??pg.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
|
|
513
|
+
: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,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=rn(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??$e.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=or(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")})}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==Fe.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==Fe.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case er:e.preventDefault(),this.value=this.direction!==Fe.rtl&&this.orientation!==$e.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Jo:e.preventDefault(),this.value=this.direction!==Fe.rtl&&this.orientation!==$e.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case Qo:case Zo:e.shiftKey||(e.preventDefault(),this.increment());break;case Yo:case Ko:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=$a(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===$e.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=$a(e,this.orientation===$e.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===$e.vertical?this.trackHeight:this.trackWidth,this.orientation===$e.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){A.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,ee([a],W.prototype,"size",2),ee([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),ee([b],W.prototype,"direction",2),ee([b],W.prototype,"isDragging",2),ee([b],W.prototype,"position",2),ee([b],W.prototype,"trackWidth",2),ee([b],W.prototype,"trackMinWidth",2),ee([b],W.prototype,"trackHeight",2),ee([b],W.prototype,"trackLeft",2),ee([b],W.prototype,"trackMinHeight",2),ee([b],W.prototype,"valueTextFormatter",2),ee([a({mode:"boolean"})],W.prototype,"disabled",2),ee([a({converter:ci})],W.prototype,"min",2),ee([a({converter:ci})],W.prototype,"max",2),ee([a({converter:ci})],W.prototype,"step",2),ee([a],W.prototype,"orientation",2),ee([a],W.prototype,"mode",2);const mg=u`
|
|
514
|
+
${w("inline-grid")}
|
|
515
515
|
|
|
516
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${ft};--track-color:${
|
|
516
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${ft};--track-color:${Me};--slider-direction:90deg;--border-radius:${C};--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:${Ft}}:host(:active){--rail-color:${Mt}}:host(:disabled){--rail-color:${_};--track-color:${tt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${ze}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${ue};outline:1px solid ${pr}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
517
517
|
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
518
518
|
);border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
|
|
519
519
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${S} calc(var(--step-rate) - 1px),${S} var(--step-rate)
|
|
520
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${
|
|
521
|
-
.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
|
|
522
|
-
${
|
|
523
|
-
|
|
524
|
-
:host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ye};--size:20px}:host([size='extra-small']){--indicatorSize:${ye};--size:24px}:host([size='small']){--indicatorSize:${ye};--size:28px}:host([size='large']){--indicatorSize:${se};--size:36px}:host([size='extra-large']){--indicatorSize:${se};--size:40px}:host([size='huge']){--indicatorSize:${kr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${xi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${vn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${mn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Zl}}.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(U(u`
|
|
525
|
-
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),kg=b`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,wg=Wr.compose({name:`${p.prefix}-spinner`,template:kg,styles:xg});wg.define(p.registry);class Cg extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function Ig(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${ge(o.switch)}</slot></template>`}const Sg=Ig({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Pg=u`
|
|
526
|
-
${k("inline-flex")}
|
|
520
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${xe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${De};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(X(u`
|
|
521
|
+
.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 vg(o={}){return g`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${z("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${z("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${de(o.thumb)}</slot></div></template>`}const $g=vg({thumb:'<div class="thumb"></div>'}),yg=W.compose({name:`${p.prefix}-slider`,template:$g,styles:mg});yg.define(p.registry);class xg extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var kg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,ya=(o,e,t,r)=>{for(var i=r>1?void 0:r?wg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kg(e,t,i),i};class Ri extends xg{}ya([a],Ri.prototype,"size",2),ya([a],Ri.prototype,"appearance",2);const Cg=u`
|
|
522
|
+
${w("inline-flex")}
|
|
527
523
|
|
|
528
|
-
:host{
|
|
529
|
-
:
|
|
530
|
-
${
|
|
524
|
+
:host{--duration:1.5s;--indicatorSize:${Le};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${be};--size:20px}:host([size='extra-small']){--indicatorSize:${be};--size:24px}:host([size='small']){--indicatorSize:${be};--size:28px}:host([size='large']){--indicatorSize:${Le};--size:36px}:host([size='extra-large']){--indicatorSize:${Le};--size:40px}:host([size='huge']){--indicatorSize:${xi};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Sr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${$n};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${vn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${ec}}.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(X(u`
|
|
525
|
+
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),Sg=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>`,Ig=Ri.compose({name:`${p.prefix}-spinner`,template:Sg,styles:Cg});Ig.define(p.registry);class Pg extends Ce{constructor(){super(),this.elementInternals.role="switch"}}function zg(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${de(o.switch)}</slot></template>`}const Bg=zg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Tg=u`
|
|
526
|
+
${w("inline-flex")}
|
|
531
527
|
|
|
532
|
-
:host{box-sizing:border-box;padding:${
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${V};width:40px;height:20px;background-color:${he};border:1px solid ${Me};border-radius:${xe}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${mt}}:host(:active){border-color:${vt}}:host(:disabled),:host([readonly]){border:1px solid ${ye};background-color:none;pointer:default}:host(${y}){background:${ft};border-color:${ft}}:host(${y}:hover){background:${Ft};border-color:${Ft}}:host(${y}:active){background:${Mt};border-color:${Mt}}:host(${y}:disabled){background:${tt};border-color:${ye}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${wr};transition-timing-function:${Sr};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${gt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Rl}}:host(${y}:active) .checked-indicator{background:${ql}}:host(:hover) .checked-indicator{background-color:${Ol}}:host(:active) .checked-indicator{background-color:${El}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${_}}:host(${y}:disabled) .checked-indicator{background:${_}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${be} solid ${K};outline-offset:1px;box-shadow:${$r},0 0 0 2px ${ue}}`.withBehaviors(X(u`
|
|
529
|
+
:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}`)),_g=Pg.compose({name:`${p.prefix}-switch`,template:Bg,styles:Tg});_g.define(p.registry);var Og=Object.defineProperty,Eg=Object.getOwnPropertyDescriptor,Ag=(o,e,t,r)=>{for(var i=r>1?void 0:r?Eg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Og(e,t,i),i};class qi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.disabled&&this.setAttribute("aria-disabled","true"),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=u`
|
|
530
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Ag([a({mode:"boolean"})],qi.prototype,"disabled",2),Je(qi,Ze);function Ng(o={}){return g`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ge(o)}<span class="tab-content"><slot></slot></span>${bt(o)}</template>`}const Fg=Ng({}),Mg=u`
|
|
531
|
+
${w("inline-flex")}
|
|
535
532
|
|
|
536
|
-
:host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${
|
|
537
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),
|
|
538
|
-
|
|
539
|
-
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Ur([a],No.prototype,"appearance",2),Ur([a({mode:"boolean"})],No.prototype,"disabled",2),Ur([a],No.prototype,"size",2),Xe(No,Ue);function Gg(o={}){return b` ${Ve(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${G("tabs")}></slot></div>${tt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${G("tabpanels")}></slot></div>`}const Ug=Gg({}),Xg=u`
|
|
540
|
-
${k("grid")}
|
|
533
|
+
:host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${M};font-family:${v};font-size:${O};color:${Pe};fill:currentcolor;grid-row:1;padding:${ae} ${Ve};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${B};font-weight:${L}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${M};font-weight:${L}}:host([aria-selected='true'])::after{background-color:${$t};border-radius:${xe};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Dt};border-radius:${xe};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${_}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${_};color:${_}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${ze};box-shadow:0 0 0 3px ${ue};outline:1px solid ${pr}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(X(u`
|
|
534
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),Dg=qi.compose({name:`${p.prefix}-tab`,template:Fg,styles:Mg});Dg.define(p.registry);function Lg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Vg=o=>o.getAttribute("aria-disabled")==="true"||o.elementInternals?.ariaDisabled==="true",Hg=o=>o.hasAttribute("hidden"),Vr=o=>!Vg(o)&&!Hg(o),jg={subtle:"subtle",transparent:"transparent"},ct=$e;var Rg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?qg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Rg(e,t,i),i};class to extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=ct.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.disabled||this.disabled||t.nodeType===Node.ELEMENT_NODE&&Vr(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.disabled)return;const t=or(this);switch(e.key){case Yo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case Qo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case Zo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case Ko:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case er:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Jo:e.preventDefault(),this.adjust(this.tabs.filter(r=>Vr(r)).length-this.activeTabIndex-1);break}},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??ct.horizontal}disabledChanged(e,t){$(this.elementInternals,"disabled",t),this.setTabs()}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??ct.horizontal,wt(this.elementInternals,e,t,ct)),this.setTabs()}activeidChanged(e,t){if(this.tabs?.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs(),e){const r=this.tabs[this.prevActiveTabIndex],i=this.tabPanelMap.get(r);i&&(i.hidden=!0)}if(t&&this.activetab){const r=this.tabPanelMap.get(this.activetab);r&&(r.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Lg(r))??[]}tabsChanged(e,t){if(e?.length&&e.forEach(r=>{r.removeEventListener("click",this.handleTabClick),r.removeEventListener("keydown",this.handleTabKeyDown)}),this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const r of this.tabs){const i=r.getAttribute("aria-controls")??"",n=this.getRootNode().getElementById(i);i&&n&&(n.role??(n.role="tabpanel"),n.hidden=this.activeid!==r.id,this.tabPanelMap.set(r,n))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs?.some(t=>!!t.querySelector("[slot='start']"));this.tabs?.forEach((t,r)=>{if(t.slot==="tab"){const i=this.activeTabIndex===r&&Vr(t),s=this.tabIds[r];t.disabled||(this.disabled?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")),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),e&&this.orientation===ct.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${co()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===ct.horizontal}adjust(e){const t=this.tabs.filter(n=>Vr(n)),r=t.indexOf(this.activetab),i=$l(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),wo(this,()=>{this.tabIds=this.getTabIds(),this.setTabs()})}}To([a({mode:"boolean"})],to.prototype,"disabled",2),To([a],to.prototype,"orientation",2),To([a],to.prototype,"activeid",2),To([b],to.prototype,"slottedTabs",2),To([b],to.prototype,"tabs",2);var Wg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wg(e,t,i),i};class Wi extends to{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=jg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===ct.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===ct.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,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.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(e,t){super.tabsChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}xa([a],Wi.prototype,"appearance",2),xa([a],Wi.prototype,"size",2);const Ug=g`<template role="tablist"><slot name="tab" ${U("slottedTabs")}></slot></template>`,Xg=u`
|
|
535
|
+
${w("flex")}
|
|
541
536
|
|
|
542
|
-
:host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${A};color:${Se};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${I}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${I}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${I}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${I}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${I}}.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:${xo};color:${ur};fill:${sn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${gt};fill:${gt};color:${T}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${A};padding:${je} ${J}}:host([size='large']) ::slotted(fluent-tab){font-size:${he};line-height:${$e};padding:${mi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Rn};transition-timing-function:${Pr}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${ve};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};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:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${je};padding-bottom:${je}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Rt};padding-bottom:${Rt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${H};padding-bottom:${H}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${J};left:${J}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}: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:${je};bottom:${je}}: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:${H};bottom:${H}}: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:${Wt};bottom:${Wt}}`,Kg=No.compose({name:`${p.prefix}-tabs`,template:Ug,styles:Xg});Kg.define(p.registry);const Yg=o=>o.getAttribute("aria-disabled")==="true",Qg=o=>o.hasAttribute("hidden"),Hi=o=>!Yg(o)&&!Qg(o);function Zg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Jg={subtle:"subtle",transparent:"transparent"},zt=be;var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Fo=(o,e,t,i)=>{for(var r=i>1?void 0:i?tf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ef(e,t,r),r};class io extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=zt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Hi(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ei(this);switch(e.key){case uo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ho:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.filter(i=>Hi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t),this.$fastController.isConnected&&this.setTabs()}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??zt.horizontal,wt(this.elementInternals,e,t,zt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Zg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>!!t.querySelector("[slot='start']"));this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Hi(t),s=this.tabIds[i];console.log("disabled",this.disabled),t.disabled||(this.disabled?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")),t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===zt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===zt.horizontal}adjust(e){const t=this.tabs.filter(n=>Hi(n)),i=t.indexOf(this.activetab),r=yl(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}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()}}Fo([a({mode:"boolean"})],io.prototype,"disabled",2),Fo([a],io.prototype,"orientation",2),Fo([a],io.prototype,"activeid",2),Fo([g],io.prototype,"slottedTabs",2),Fo([g],io.prototype,"tabs",2);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?rf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&of(e,t,r),r};class Xr extends io{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=Jg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===zt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===zt.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(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.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)}}ka([a],Xr.prototype,"appearance",2),ka([a],Xr.prototype,"size",2);const sf=b`<template role="tablist"><slot name="tab" ${G("slottedTabs")}></slot></template>`,nf=u`
|
|
543
|
-
${
|
|
537
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Pe};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${zd};transition-timing-function:${Wn}}:host ::slotted([slot='tab'])::after{height:${Le};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Le};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${Le};border-radius:${xe};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:${_}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Le};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Le};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${vo};--tabPaddingInline:${ge};font-size:${O};line-height:${M}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${Ci};--tabPaddingInline:${Ve};font-size:${pe};line-height:${ke}}: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:${Ve}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ge}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${Ve}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${se}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${yr}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${se}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${se}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${vo}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${xr}}:host([disabled]){cursor:not-allowed;color:${_}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${_}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${_}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${_}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${dr};color:${nn};fill:${Hl}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${bo};fill:${bo};color:${B}}`,Kg=Wi.compose({name:`${p.prefix}-tablist`,template:Ug,styles:Xg});Kg.define(p.registry);const Yg={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Hr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,te=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qg(e,t,i),i};class G extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Hr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(kl),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.$fastController.isConnected&&this.setValidity()}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){wt(this.elementInternals,e,t,Hr,"resize-"),$(this.elementInternals,"resize",Kn(Hr,t)&&t!==Hr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl()})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(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")}}G.formAssociated=!0,te([b],G.prototype,"controlEl",2),te([b],G.prototype,"defaultSlottedNodes",2),te([b],G.prototype,"labelSlottedNodes",2),te([a],G.prototype,"autocomplete",2),te([a({attribute:"auto-resize",mode:"boolean"})],G.prototype,"autoResize",2),te([a({attribute:"dirname"})],G.prototype,"dirName",2),te([a({mode:"boolean"})],G.prototype,"disabled",2),te([a({attribute:"display-shadow",mode:"boolean"})],G.prototype,"displayShadow",2),te([a({attribute:"form"})],G.prototype,"initialForm",2),te([a({attribute:"maxlength",converter:re})],G.prototype,"maxLength",2),te([a({attribute:"minlength",converter:re})],G.prototype,"minLength",2),te([a],G.prototype,"name",2),te([a],G.prototype,"placeholder",2),te([a({attribute:"readonly",mode:"boolean"})],G.prototype,"readOnly",2),te([a({mode:"boolean"})],G.prototype,"required",2),te([a({mode:"fromView"})],G.prototype,"resize",2),te([a({mode:"boolean"})],G.prototype,"spellcheck",2);var Jg=Object.defineProperty,ef=Object.getOwnPropertyDescriptor,Gi=(o,e,t,r)=>{for(var i=r>1?void 0:r?ef(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jg(e,t,i),i};class jr extends G{constructor(){super(...arguments),this.appearance=Yg.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Gi([a({mode:"fromView"})],jr.prototype,"appearance",2),Gi([a({mode:"boolean"})],jr.prototype,"block",2),Gi([a],jr.prototype,"size",2);const tf=u`
|
|
538
|
+
${w("inline-block")}
|
|
544
539
|
|
|
545
|
-
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Se};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Rn};transition-timing-function:${Pr}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${ve};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:${I}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${je};--tabPaddingInline:${J};font-size:${B};line-height:${A}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${mi};--tabPaddingInline:${ae};font-size:${he};line-height:${$e}}: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:${ae}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${J}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Rt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${H}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${je}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Wt}}:host([disabled]){cursor:not-allowed;color:${I}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${I}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${I}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${I}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${xo};color:${ur};fill:${sn}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${gt};fill:${gt};color:${T}}`,af=Xr.compose({name:`${p.prefix}-tablist`,template:sf,styles:nf});af.define(p.registry);const lf={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Li={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var cf=Object.defineProperty,df=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cf(e,t,r),r};class Y extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Li.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(on),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(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.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){wt(this.elementInternals,e,t,Li,"resize-"),y(this.elementInternals,"resize",Xn(Li,t)&&t!==Li.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),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.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(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")}}Y.formAssociated=!0,de([g],Y.prototype,"defaultSlottedNodes",2),de([g],Y.prototype,"labelSlottedNodes",2),de([a],Y.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],Y.prototype,"autoResize",2),de([a({attribute:"dirname"})],Y.prototype,"dirName",2),de([a({mode:"boolean"})],Y.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],Y.prototype,"displayShadow",2),de([a({attribute:"form"})],Y.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:re})],Y.prototype,"maxLength",2),de([a({attribute:"minlength",converter:re})],Y.prototype,"minLength",2),de([a],Y.prototype,"name",2),de([a],Y.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),de([a({mode:"boolean"})],Y.prototype,"required",2),de([a({mode:"fromView"})],Y.prototype,"resize",2),de([a({mode:"boolean"})],Y.prototype,"spellcheck",2);var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Kr=(o,e,t,i)=>{for(var r=i>1?void 0:i?uf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&hf(e,t,r),r};class ji extends Y{constructor(){super(...arguments),this.appearance=lf.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Kr([a({mode:"fromView"})],ji.prototype,"appearance",2),Kr([a({mode:"boolean"})],ji.prototype,"block",2),Kr([a],ji.prototype,"size",2);const pf=u`
|
|
546
|
-
|
|
540
|
+
:host{--font-size:${O};--line-height:${M};--padding-inline:${Ve};--padding-block:${vo};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${B};--background-color:${S};--border-color:${De};--border-block-end-color:${Me};--placeholder-color:${ui};--focus-indicator-color:${$t};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Dt};--border-block-end-color:${mt}}:host(:active){--border-color:${go};--border-block-end-color:${vt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${F};--line-height:${q};--min-block-size:40px;--padding-block:${Vt};--padding-inline:${ge};--control-padding-inline:${V}}:host([size='large']){--font-size:${pe};--line-height:${ke};--min-block-size:64px;--padding-block:${se};--padding-inline:${ae};--control-padding-inline:${ge}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${uo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${$i}}:host(${nu}){--border-color:${fi};--border-block-end-color:${fi}}:host(:disabled){--color:${_};--background-color:${he};--border-color:${ye};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${_};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:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${xt};transition-duration:${Si};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${wr};transition-delay:${kt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Vt};padding-inline-end:${ie}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${gt};background-color:${cn}}`.withBehaviors(X(u`
|
|
541
|
+
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function of(){return g`<template><label ${z("labelEl")} for="control" part="label"><slot name="label" ${U("labelSlottedNodes")}></slot></label><div class="root" part="root" ${z("rootEl")}><textarea ${z("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 ${U("defaultSlottedNodes")}></slot></div></template>`}const rf=of(),sf=jr.compose({name:`${p.prefix}-textarea`,template:rf,styles:tf,shadowOptions:{delegatesFocus:!0}});sf.define(p.registry);const nf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},af=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var lf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,N=(o,e,t,r)=>{for(var i=r>1?void 0:r?cf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lf(e,t,i),i};class T extends x{constructor(){super(...arguments),this.type=nf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){A.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){A.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}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.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>af.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}T.formAssociated=!0,N([a],T.prototype,"autocomplete",2),N([a({mode:"boolean"})],T.prototype,"autofocus",2),N([a({attribute:"current-value"})],T.prototype,"currentValue",2),N([b],T.prototype,"defaultSlottedNodes",2),N([a],T.prototype,"dirname",2),N([a({mode:"boolean"})],T.prototype,"disabled",2),N([a({attribute:"form"})],T.prototype,"formAttribute",2),N([a({attribute:"value",mode:"fromView"})],T.prototype,"initialValue",2),N([a],T.prototype,"list",2),N([a({converter:re})],T.prototype,"maxlength",2),N([a({converter:re})],T.prototype,"minlength",2),N([a({mode:"boolean"})],T.prototype,"multiple",2),N([a],T.prototype,"name",2),N([a],T.prototype,"pattern",2),N([a],T.prototype,"placeholder",2),N([a({attribute:"readonly",mode:"boolean"})],T.prototype,"readOnly",2),N([a({mode:"boolean"})],T.prototype,"required",2),N([a({converter:re})],T.prototype,"size",2),N([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],T.prototype,"spellcheck",2),N([a],T.prototype,"type",2),N([b],T.prototype,"control",2),N([b],T.prototype,"controlLabel",2);var df=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,ka=(o,e,t,r)=>{for(var i=r>1?void 0:r?hf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&df(e,t,i),i};class Rr extends T{}ka([a],Rr.prototype,"appearance",2),ka([a({attribute:"control-size"})],Rr.prototype,"controlSize",2),Je(Rr,Ze);const uf=u`
|
|
542
|
+
${w("block")}
|
|
547
543
|
|
|
548
|
-
:host{
|
|
549
|
-
|
|
550
|
-
${k("block")}
|
|
544
|
+
:host{font-family:${v};font-size:${O};font-weight:${E};line-height:${M};max-width:400px}.label{display:flex;color:${B};padding-bottom:${Vt};flex-shrink:0;padding-inline-end:${ie}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${I} solid ${De};border-bottom-color:${Me};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Ve};position:relative;width:100%}:has(.control:user-invalid){border-color:${fi}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${$t};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Si};transition-delay:${xt}}.control{width:100%;height:100%;box-sizing:border-box;color:${B};border-radius:${C};background:${he};font-family:${v};font-weight:${E};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ui}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Lt}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${ie}}:host(:hover) .root{border-color:${Dt};border-bottom-color:${mt}}:host(:active) .root{border-color:${go}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${wr};transition-delay:${kt}}:host(:focus-within:active) .root:after{border-bottom-color:${yn}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${De}}:host(:focus-within) .control{color:${B}}:host([disabled]) .root{background:${he};border:${I} solid ${ye}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${_}}::selection{color:${gt};background-color:${cn}}:host([control-size='small']) .control{font-size:${F};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${ge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${E};line-height:${ke}}:host([control-size='large']) .root{height:40px;gap:${Be};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${gr}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${I} solid ${Me}}:host([appearance='underline']:hover) .root{border-bottom-color:${mt}}:host([appearance='underline']:active) .root{border-bottom-color:${vt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${vt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${ye}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${K};box-shadow:${$i}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${uo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${gi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${gi};background:${uo}}`;function pf(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" ${z("controlLabel")}><slot ${U("defaultSlottedNodes")}></slot></label><div class="root" part="root">${Ge(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}" ${z("control")} />${bt(o)}</div></template>`}const bf=pf(),gf=Rr.compose({name:`${p.prefix}-text-input`,template:bf,styles:uf,shadowOptions:{delegatesFocus:!0}});gf.define(p.registry);var ff=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,qe=(o,e,t,r)=>{for(var i=r>1?void 0:r?mf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ff(e,t,i),i};class Te extends x{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}}qe([a({mode:"boolean"})],Te.prototype,"nowrap",2),qe([a({mode:"boolean"})],Te.prototype,"truncate",2),qe([a({mode:"boolean"})],Te.prototype,"italic",2),qe([a({mode:"boolean"})],Te.prototype,"underline",2),qe([a({mode:"boolean"})],Te.prototype,"strikethrough",2),qe([a({mode:"boolean"})],Te.prototype,"block",2),qe([a],Te.prototype,"size",2),qe([a],Te.prototype,"font",2),qe([a],Te.prototype,"weight",2),qe([a],Te.prototype,"align",2);const vf=u`
|
|
545
|
+
${w("inline")}
|
|
551
546
|
|
|
552
|
-
:host{font-family:${v};font-size:${
|
|
553
|
-
${
|
|
547
|
+
:host{font-family:${v};font-size:${O};line-height:${M};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${mo};line-height:${mr}}:host([size='200']){font-size:${F};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${ke}}:host([size='500']){font-size:${Lt};line-height:${vr}}:host([size='600']){font-size:${gr};line-height:${Dn}}:host([size='700']){font-size:${An};line-height:${Ln}}:host([size='800']){font-size:${Nn};line-height:${Vn}}:host([size='900']){font-size:${Fn};line-height:${Hn}}:host([size='1000']){font-size:${Mn};line-height:${jn}}:host([font='monospace']){font-family:${$d}}:host([font='numeric']){font-family:${yd}}:host([weight='medium']){font-weight:${xd}}:host([weight='semibold']){font-weight:${L}}:host([weight='bold']){font-weight:${fr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,$f=g`<slot></slot>`,yf=Te.compose({name:`${p.prefix}-text`,template:$f,styles:vf});yf.define(p.registry);var xf=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,wa=(o,e,t,r)=>{for(var i=r>1?void 0:r?kf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xf(e,t,i),i};class Ui extends Xe{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,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}wa([a({mode:"boolean"})],Ui.prototype,"pressed",2),wa([a({mode:"boolean"})],Ui.prototype,"mixed",2);const wf=u`
|
|
548
|
+
${zr}
|
|
554
549
|
|
|
555
|
-
:host{
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
:host(${M}),:host(
|
|
560
|
-
${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
|
|
561
|
-
){background:SelectedItem;color:SelectedItemText}`)),Nf=Ar(),Ff=Yr.compose({name:`${p.prefix}-toggle-button`,template:Nf,styles:Ef});Ff.define(p.registry);var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,qi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mf(e,t,r),r};class Mo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ft("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(){ti||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),ti){Cl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}ie.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 r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=r[t]??r.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%;"},c=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
550
|
+
:host(${D}){border-color:${De};background-color:${ln};color:${B};border-width:${I}}:host(${D}:hover){border-color:${Dt};background-color:${cr}}:host(${D}:active){border-color:${go};background-color:${pi}}:host(${D}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${D}[appearance='primary']){background-color:${Zl};color:${Ue}}:host(${D}[appearance='primary']:hover){background-color:${bn}}:host(${D}[appearance='primary']:active){background-color:${gn}}:host(${D}[appearance='subtle']){border-color:transparent;background-color:${hn};color:${sr}}:host(${D}[appearance='subtle']:hover){background-color:${dr};color:${At}}:host(${D}[appearance='subtle']:active){background-color:${bo};color:${Nt}}:host(${D}[appearance='outline']),:host(${D}[appearance='transparent']){background-color:${un}}:host(${D}[appearance='outline']:hover),:host(${D}[appearance='transparent']:hover){background-color:${hr}}:host(${D}[appearance='outline']:active),:host(${D}[appearance='transparent']:active){background-color:${ur}}:host(${D}[appearance='transparent']){border-color:transparent;color:${_l}}:host(${D}[appearance='transparent']:hover){color:${nr}}:host(${D}[appearance='transparent']:active){color:${ar}}`.withBehaviors(X(u`
|
|
551
|
+
:host(${D}),:host(
|
|
552
|
+
${D}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
|
|
553
|
+
){background:SelectedItem;color:SelectedItemText}`)),Cf=_i(),Sf=Ui.compose({name:`${p.prefix}-toggle-button`,template:Cf,styles:wf});Sf.define(p.registry);var If=Object.defineProperty,Pf=Object.getOwnPropertyDescriptor,qr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&If(e,t,i),i};class _o extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=co("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(){rr||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),rr){Sl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}A.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,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=i[t]??i.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%;"},c=n[r]??n.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
562
554
|
#${this.anchor} {
|
|
563
555
|
anchor-name: ${e};
|
|
564
556
|
}
|
|
@@ -569,15 +561,29 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
569
561
|
${s}
|
|
570
562
|
${c}
|
|
571
563
|
}
|
|
572
|
-
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}
|
|
573
|
-
${
|
|
574
|
-
|
|
575
|
-
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${
|
|
576
|
-
${
|
|
577
|
-
|
|
578
|
-
:host{outline:none}`,
|
|
579
|
-
:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}connectedCallback(){super.connectedCallback(),this.updateTabindexBySelected()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>
|
|
580
|
-
${
|
|
581
|
-
|
|
582
|
-
:host{outline:none;font-size:${
|
|
583
|
-
${
|
|
564
|
+
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}qr([a],_o.prototype,"id",2),qr([a({converter:re})],_o.prototype,"delay",2),qr([a],_o.prototype,"positioning",2),qr([a],_o.prototype,"anchor",2);const Ie={"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"},zf=u`
|
|
565
|
+
${w("inline-flex")}
|
|
566
|
+
|
|
567
|
+
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Vt};--inline-offset:${ie};background:${S};border-radius:${C};border:1px solid ${K};box-sizing:border-box;color:${B};display:inline-flex;filter:drop-shadow(0 0 2px ${oc}) drop-shadow(0 4px 8px ${rc});font-family:${v};font-size:${F};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Ve} 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:${Ie["above-start"]}}:host([positioning='above']){--position-area:${Ie.above}}:host([positioning='above-end']){--position-area:${Ie["above-end"]}}:host([positioning='below-start']){--position-area:${Ie["below-start"]}}:host([positioning='below']){--position-area:${Ie.below}}:host([positioning='below-end']){--position-area:${Ie["below-end"]}}:host([positioning='before-top']){--position-area:${Ie["before-top"]}}:host([positioning='before']){--position-area:${Ie.before}}:host([positioning='before-bottom']){--position-area:${Ie["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ie["after-top"]}}:host([positioning='after']){--position-area:${Ie.after}}:host([positioning='after-bottom']){--position-area:${Ie["after-bottom"]}}`,Bf=g`<template popover aria-hidden="true"><slot></slot></template>`,Tf=_o.compose({name:`${p.prefix}-tooltip`,template:Bf,styles:zf});Tf.define(p.registry);const Ca={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Sa={small:"small",medium:"medium"};function _e(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var _f=Object.defineProperty,Of=Object.getOwnPropertyDescriptor,Xi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Of(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_f(e,t,i),i};class Wr extends x{constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!_e(t)||this.childTreeItems.length<1)return!0;const r=this.getVisibleNodes();switch(e.key){case er:{r.length&&r[0].focus();return}case Jo:{r.length&&r[r.length-1].focus();return}case Yo:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:_e(t.parentElement)&&t.parentElement.focus();return}case Qo:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case Ko:{this.focusNextNode(1,t);return}case Zo:{this.focusNextNode(-1,t);return}case lo:{this.clickHandler(e);return}case tr:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused&&this.currentFocused.tabIndex<0&&(this.currentFocused.tabIndex=0),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!_e(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!_e(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&_e(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(r=>r.selected);return t===-1&&(t=e.findIndex(r=>_e(r))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>_e(e)&&e.offsetParent!==null)}focusNextNode(e,t){const r=this.getVisibleNodes();if(!r.length)return;const i=r[r.indexOf(t)+e];di(i)&&i.focus()}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>_e(e))}}Xi([b],Wr.prototype,"currentSelected",2),Xi([b],Wr.prototype,"defaultSlot",2),Xi([b],Wr.prototype,"childTreeItems",2);var Ef=Object.defineProperty,Af=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?Af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ef(e,t,i),i};class Ki extends Wr{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ia([a],Ki.prototype,"size",2),Ia([a],Ki.prototype,"appearance",2);const Nf=u`
|
|
568
|
+
${w("block")}
|
|
569
|
+
|
|
570
|
+
:host{outline:none}`,Ff=g`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}"><slot ${z("defaultSlot")} @slotchange="${o=>o.handleDefaultSlotChange()}"></slot></template>`,Mf=Ki.compose({name:`${p.prefix}-tree`,template:Ff,styles:Nf});Mf.define(p.registry);var Df=Object.defineProperty,Lf=Object.getOwnPropertyDescriptor,oo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Df(e,t,i),i};class Pt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.updateTabindexBySelected(),this.$emit("change"),$(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
|
|
571
|
+
:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}connectedCallback(){super.connectedCallback(),A.enqueue(()=>{this.updateTabindexBySelected()})}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>_e(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return _e(this.parentElement)}updateTabindexBySelected(){this.tabIndex=this.selected?0:-1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>_e(e))}}oo([b],Pt.prototype,"itemSlot",2),oo([a({mode:"boolean"})],Pt.prototype,"expanded",2),oo([a({mode:"boolean"})],Pt.prototype,"selected",2),oo([a({mode:"boolean"})],Pt.prototype,"empty",2),oo([a({attribute:"data-indent"})],Pt.prototype,"dataIndent",2),oo([b],Pt.prototype,"childTreeItems",2);var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vf(e,t,i),i};class Yi extends Pt{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Pa([a],Yi.prototype,"size",2),Pa([a],Yi.prototype,"appearance",2);const jf=u`
|
|
572
|
+
${w("block")}
|
|
573
|
+
|
|
574
|
+
:host{outline:none;font-size:${O};line-height:${M}}:host(:focus-visible) .positioning-region{box-shadow:${wi} ${wi} ${wi} ${yr}
|
|
575
|
+
${ue} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Pd};padding-inline-start:calc(var(--indent) * ${ki});padding-inline-end:${se};border-radius:${C};background-color:${dn};color:${Pe};gap:${ie}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ue}}}.content{display:flex;align-items:center;gap:${ie}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${ki};height:${yt};transition:transform ${kr} ${Gn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${dr};color:${At}}.positioning-region:active{background-color:${bo};color:${Nt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${V}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${hn};color:${sr}}:host([selected]) .content,:host([selected]) .chevron{color:${Al}}:host([size='small']) .positioning-region{height:${yt};padding-inline-start:calc(var(--indent) * ${ae})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Kl}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Yl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Ql};color:${sr}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${hr}}:host([appearance='transparent']) .positioning-region:active{background-color:${ur}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${un};color:${sr}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Rf=g`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,qf=g`<template slot="${o=>o.isNestedItem?"item":void 0}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${Rf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${z("itemSlot")} @slotchange="${o=>o.handleItemSlotChange()}"></slot></div></template>`,Wf=Yi.compose({name:`${p.prefix}-tree-item`,template:qf,styles:jf});Wf.define(p.registry);const Gf="adoptedStyleSheets"in document,Uf="CSSScopeRule"in window,Qi=new Map,Zi=new Map,Oo=new Map,Ji=new Map,Eo=new CSSStyleSheet;function Xf(o,e=document){if(!(!e||!Kf(e))){if(!Gf||e instanceof HTMLElement&&!e.shadowRoot&&!Uf){const t=e===document?document.documentElement:e;em(o,t);return}[document,document.documentElement,document.body].includes(e)?Yf(o):Qf(o,e)}}function es(o){if(!Qi.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);Qi.set(o,e.join(""))}return Qi.get(o)}function Kf(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Yf(o){if(o===null){document.adoptedStyleSheets.includes(Eo)&&Eo.replaceSync("");return}Eo.replaceSync(`
|
|
576
|
+
html {
|
|
577
|
+
${es(o)}
|
|
578
|
+
}
|
|
579
|
+
`),document.adoptedStyleSheets.includes(Eo)||document.adoptedStyleSheets.push(Eo)}function Qf(o,e){if(o===null){e.shadowRoot&&Oo.has(e)?Oo.get(e).replaceSync(""):(delete e.dataset.fluentTheme,za(e));return}e.shadowRoot?Zf(e).replaceSync(`
|
|
580
|
+
:host {
|
|
581
|
+
${es(o)}
|
|
582
|
+
}
|
|
583
|
+
`):(e.dataset.fluentTheme=Jf(o),za(e))}function Zf(o){if(!Oo.has(o)){const e=new CSSStyleSheet;Oo.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return Oo.get(o)}function Jf(o){if(!Zi.has(o)){const e=co("fluent-theme-"),t=new CSSStyleSheet;Zi.set(o,e),t.replaceSync(`
|
|
584
|
+
@scope ([data-fluent-theme="${e}"]) {
|
|
585
|
+
:scope {
|
|
586
|
+
${es(o)}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`),document.adoptedStyleSheets.push(t)}return Zi.get(o)}function em(o,e){let t;if(o===null){if(!Ji.has(e))return;t=Ji.get(e)}else Ji.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:tm}=navigator,om=/\bAppleWebKit\/[\d+\.]+\b/.test(tm);function za(o){if(!om)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),A.process(),o.style.setProperty(e,r)}export{Xf as setTheme};
|