@fluentui/web-components 3.0.0-beta.83 → 3.0.0-beta.84
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 +11 -2
- package/dist/dts/accordion-item/accordion-item.base.d.ts +71 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +1 -71
- package/dist/dts/accordion-item/index.d.ts +2 -1
- package/dist/dts/anchor-button/anchor-button.base.d.ts +144 -0
- package/dist/dts/anchor-button/anchor-button.d.ts +2 -144
- package/dist/dts/anchor-button/index.d.ts +2 -1
- package/dist/dts/avatar/avatar.base.d.ts +42 -0
- package/dist/dts/avatar/avatar.d.ts +2 -42
- package/dist/dts/avatar/index.d.ts +2 -1
- package/dist/dts/button/button.base.d.ts +242 -0
- package/dist/dts/button/button.d.ts +2 -242
- package/dist/dts/button/index.d.ts +2 -1
- package/dist/dts/checkbox/checkbox.base.d.ts +288 -0
- package/dist/dts/checkbox/checkbox.d.ts +1 -288
- package/dist/dts/checkbox/index.d.ts +2 -1
- package/dist/dts/divider/divider.base.d.ts +49 -0
- package/dist/dts/divider/divider.d.ts +2 -49
- package/dist/dts/divider/index.d.ts +2 -1
- package/dist/dts/dropdown/dropdown.base.d.ts +418 -0
- package/dist/dts/dropdown/dropdown.d.ts +2 -418
- package/dist/dts/dropdown/dropdown.options.d.ts +1 -1
- package/dist/dts/dropdown/dropdown.template.d.ts +1 -1
- package/dist/dts/dropdown/index.d.ts +2 -1
- package/dist/dts/field/field.base.d.ts +120 -0
- package/dist/dts/field/field.d.ts +2 -120
- package/dist/dts/field/index.d.ts +2 -1
- package/dist/dts/link/link.d.ts +1 -1
- package/dist/dts/listbox/listbox.d.ts +1 -1
- package/dist/dts/progress-bar/index.d.ts +2 -1
- package/dist/dts/progress-bar/progress-bar.base.d.ts +73 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +2 -73
- package/dist/dts/radio/radio.d.ts +1 -1
- package/dist/dts/rating-display/index.d.ts +2 -1
- package/dist/dts/rating-display/rating-display.base.d.ts +89 -0
- package/dist/dts/rating-display/rating-display.d.ts +1 -89
- package/dist/dts/spinner/index.d.ts +2 -1
- package/dist/dts/spinner/spinner.base.d.ts +14 -0
- package/dist/dts/spinner/spinner.d.ts +1 -14
- package/dist/dts/switch/switch.d.ts +1 -1
- package/dist/dts/tablist/index.d.ts +2 -1
- package/dist/dts/tablist/tablist.base.d.ts +95 -0
- package/dist/dts/tablist/tablist.d.ts +2 -95
- package/dist/dts/tabs/tabs.base.d.ts +90 -0
- package/dist/dts/tabs/tabs.d.ts +2 -90
- package/dist/dts/text-input/index.d.ts +2 -1
- package/dist/dts/text-input/text-input.base.d.ts +393 -0
- package/dist/dts/text-input/text-input.d.ts +2 -393
- package/dist/dts/textarea/index.d.ts +2 -1
- package/dist/dts/textarea/textarea.base.d.ts +347 -0
- package/dist/dts/textarea/textarea.d.ts +2 -347
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.base.js +94 -0
- package/dist/esm/accordion-item/accordion-item.base.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +2 -91
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/index.js +2 -1
- package/dist/esm/accordion-item/index.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.base.js +147 -0
- package/dist/esm/anchor-button/anchor-button.base.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.js +3 -145
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/index.js +2 -1
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.base.js +28 -0
- package/dist/esm/avatar/avatar.base.js.map +1 -0
- package/dist/esm/avatar/avatar.js +2 -26
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/index.js +2 -1
- package/dist/esm/avatar/index.js.map +1 -1
- package/dist/esm/button/button.base.js +283 -0
- package/dist/esm/button/button.base.js.map +1 -0
- package/dist/esm/button/button.js +3 -281
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.styles.js +2 -1
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/index.js +2 -1
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.base.js +366 -0
- package/dist/esm/checkbox/checkbox.base.js.map +1 -0
- package/dist/esm/checkbox/checkbox.js +2 -363
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/index.js +2 -1
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/divider/divider.base.js +61 -0
- package/dist/esm/divider/divider.base.js.map +1 -0
- package/dist/esm/divider/divider.js +3 -58
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/index.js +2 -1
- package/dist/esm/divider/index.js.map +1 -1
- package/dist/esm/dropdown/dropdown.base.js +677 -0
- package/dist/esm/dropdown/dropdown.base.js.map +1 -0
- package/dist/esm/dropdown/dropdown.js +3 -674
- package/dist/esm/dropdown/dropdown.js.map +1 -1
- package/dist/esm/dropdown/index.js +2 -1
- package/dist/esm/dropdown/index.js.map +1 -1
- package/dist/esm/field/field.base.js +189 -0
- package/dist/esm/field/field.base.js.map +1 -0
- package/dist/esm/field/field.js +3 -187
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/field/index.js +2 -1
- package/dist/esm/field/index.js.map +1 -1
- package/dist/esm/link/link.js +1 -1
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/progress-bar/index.js +2 -1
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.js +90 -0
- package/dist/esm/progress-bar/progress-bar.base.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +3 -87
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/radio/radio.js +1 -1
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/rating-display/index.js +2 -1
- package/dist/esm/rating-display/index.js.map +1 -1
- package/dist/esm/rating-display/rating-display.base.js +94 -0
- package/dist/esm/rating-display/rating-display.base.js.map +1 -0
- package/dist/esm/rating-display/rating-display.js +2 -92
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/spinner/index.js +2 -1
- package/dist/esm/spinner/index.js.map +1 -1
- package/dist/esm/spinner/spinner.base.js +18 -0
- package/dist/esm/spinner/spinner.base.js.map +1 -0
- package/dist/esm/spinner/spinner.js +2 -17
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/switch/switch.js +1 -1
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/tablist/index.js +2 -1
- package/dist/esm/tablist/index.js.map +1 -1
- package/dist/esm/tablist/tablist.base.js +248 -0
- package/dist/esm/tablist/tablist.base.js.map +1 -0
- package/dist/esm/tablist/tablist.js +3 -245
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/tabs/tabs.base.js +279 -0
- package/dist/esm/tabs/tabs.base.js.map +1 -0
- package/dist/esm/tabs/tabs.js +2 -276
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/text-input/index.js +2 -1
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.base.js +409 -0
- package/dist/esm/text-input/text-input.base.js.map +1 -0
- package/dist/esm/text-input/text-input.js +3 -407
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/index.js +2 -1
- package/dist/esm/textarea/index.js.map +1 -1
- package/dist/esm/textarea/textarea.base.js +494 -0
- package/dist/esm/textarea/textarea.base.js.map +1 -0
- package/dist/esm/textarea/textarea.js +3 -491
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/web-components.js +682 -555
- package/dist/web-components.min.js +269 -269
- package/package.json +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let ii;const kr="fast-kernel";try{if(document.currentScript)ii=document.currentScript.getAttribute(kr);else{const o=document.getElementsByTagName("script");ii=o[o.length-1].getAttribute(kr)}}catch{ii="isolate"}let Se;switch(ii){case"share":Se=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":Se=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)}`;Se=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Qe=o=>typeof o=="function",Wt=o=>typeof o=="string",wr=()=>{};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ps<"u")ps.globalThis=ps;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const Cr={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Cr));const pt=globalThis.FAST;if(pt.getById===void 0){const o=Object.create(null);Reflect.defineProperty(pt,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},Cr))}pt.error===void 0&&Object.assign(pt,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Xa=Object.freeze([]);function bs(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function Sr(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ie(o){o.prototype.toJSON=wr}const rt=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ir=o=>o,Ka=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ir}):{createHTML:Ir};let si=Object.freeze({createHTML(o){return Ka.createHTML(o)},protect(o,t,e,i){return i}});const Ya=si,ze=Object.freeze({get policy(){return si},setPolicy(o){if(si!==Ya)throw pt.error(1201);si=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),nt=pt.getById(Se.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(u){try{u.call()}catch(h){if(i)t.push(h),setTimeout(s,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(r(o[h]),h++,h>1024){for(let c=0,m=o.length-h;c<m;c++)o[c]=o[c+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class gs{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);i!==-1&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.subject;if(e===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,t),r!==void 0&&r.handleChange(i,t)}else for(let s=0,r=e.length;s<r;++s)e[s].handleChange(i,t)}}class zr{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,i;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(i=this.subjectSubscribers)===null||i===void 0||i.notify(t)}subscribe(t,e){var i,s;let r;e?r=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new gs(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new gs(this.subject),r.subscribe(t)}unsubscribe(t,e){var i,s;e?(i=this.subscribers[e])===null||i===void 0||i.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const ri=Object.freeze({unknown:void 0,coupled:1}),f=pt.getById(Se.observable,()=>{const o=nt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=h=>{throw pt.error(1101)};function r(h){var c;let m=(c=h.$fastController)!==null&&c!==void 0?c:e.get(h);return m===void 0&&(Array.isArray(h)?m=s(h):e.set(h,m=new zr(h))),m}const n=Sr();class d{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return i!==void 0&&i.watch(c,this.name),c[this.field]}setValue(c,m){const S=this.field,wt=c[S];if(wt!==m){c[S]=m;const fe=c[this.callback];Qe(fe)&&fe.call(c,wt,m),r(c).notify(this.name)}}}class u extends gs{constructor(c,m,S=!1){super(c,m),this.expression=c,this.isVolatileBinding=S,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const m=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),m}requiresUnbind(c){return c.sourceLifetime!==ri.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,m){this.needsRefresh&&this.last!==null&&this.dispose();const S=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let wt;try{wt=this.expression(c,m)}finally{i=S}return wt}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,m){const S=this.last,wt=r(c),fe=S===null?this.first:{};if(fe.propertySource=c,fe.propertyName=m,fe.notifier=wt,wt.subscribe(this,m),S!==null){if(!this.needsRefresh){let xr;i=void 0,xr=S.propertySource[S.propertyName],i=this,c===xr&&(this.needsRefresh=!0)}S.next=fe}this.last=fe}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return Ie(u),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,c){i&&i.watch(h,c)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,c){r(h).notify(c)},defineProperty(h,c){Wt(c)&&(c=new d(c)),n(h).push(c),Reflect.defineProperty(h,c.name,{enumerable:!0,get(){return c.getValue(this)},set(m){c.setValue(this,m)}})},getAccessors:n,binding(h,c,m=this.isVolatileBinding(h)){return new u(h,c,m)},isVolatileBinding(h){return t.test(h.toString())}})});function $(o,t){f.defineProperty(o,t)}function fs(o,t,e){return Object.assign({},e,{get(){return f.trackVolatile(),e.get.apply(this)}})}const Pr=pt.getById(Se.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Ze=Object.freeze({default:{index:0,length:0,get event(){return Ze.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Pr.get()},setEvent(o){Pr.set(o)}});class ni{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Qa extends ni{createObserver(t){return f.binding(this.evaluate,t,this.isVolatile)}}function ms(o,t,e=f.isVolatileBinding(o)){return new Qa(o,t,e)}class Tr extends ni{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ie(Tr);function Br(o,t){return new Tr(o,t)}let Ar;function Or(o){return o.map(t=>t instanceof Pt?Or(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class Pt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof Pt?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ar),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(Or(this.styles)),this}static setDefaultStrategy(t){Ar=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new Pt(t):t instanceof Pt?t:new Pt([t])}}Pt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $s=bs(),vs=Object.freeze({getForInstance:$s.getForInstance,getByType:$s.getByType,define(o){return $s.register({type:o}),o}});function ys(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class xs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const i=t.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,d)=>{r.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>ys(h,u.controller,u.observer))}}const s=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){ys(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){ys(this,e.controller,e)}}vs.define(xs);const Za=`${Math.random().toString(36).substring(2,8)}`;let Ja=0;const Er=()=>`--v${Za}${++Ja}`;function Nr(o,t){const e=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=t[n];Qe(u)?u=new xs(ms(u),Er()).createCSS(r):u instanceof ni?u=new xs(u,Er()).createCSS(r):vs.getForInstance(u)!==void 0&&(u=u.createCSS(r)),u instanceof Pt||u instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=Nr(o,t),s=new Pt(e);return i.length?s.withBehaviors(...i):s};class Fr{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(Wt(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new Pt(i))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}vs.define(Fr),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=Nr(o,t);return new Fr(e,i)};const _r=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Mr=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Dr=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Vr=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Lr=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Hr=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Rr(o){return o&&o.nodeType===Node.COMMENT_NODE}const Gt=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,t){return`fe-b$$start$$${o}$$${t}$$fe-b`},contentBindingEndMarker(o,t){return`fe-b$$end$$${o}$$${t}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return _r.test(o)},isContentBindingEndMarker(o){return Mr.test(o)},isRepeatViewStartMarker(o){return Dr.test(o)},isRepeatViewEndMarker(o){return Vr.test(o)},isElementBoundaryStartMarker(o){return Rr(o)&&Lr.test(o.data.trim())},isElementBoundaryEndMarker(o){return Rr(o)&&Hr.test(o.data)},parseAttributeBinding(o){const t=o.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseContentBindingStartMarker(o){return Wr(_r,o)},parseContentBindingEndMarker(o){return Wr(Mr,o)},parseRepeatStartMarker(o){return jr(Dr,o)},parseRepeatEndMarker(o){return jr(Vr,o)},parseElementBoundaryStartMarker(o){return qr(Lr,o.trim())},parseElementBoundaryEndMarker(o){return qr(Hr,o)}});function jr(o,t){const e=o.exec(t);return e===null?e:parseInt(e[1])}function qr(o,t){const e=o.exec(t);return e===null?e:e[1]}function Wr(o,t){const e=o.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const ai=Symbol.for("fe-hydration");function li(o){return o[ai]===ai}const ks=`fast-${Math.random().toString(36).substring(2,8)}`,ci=`${ks}{`,wo=`}${ks}`,tl=wo.length;let el=0;const Co=()=>`${ks}-${++el}`,Gr=Object.freeze({interpolation:o=>`${ci}${o}${wo}`,attribute:o=>`${Co()}="${ci}${o}${wo}"`,comment:o=>`<!--${ci}${o}${wo}-->`}),di=Object.freeze({parse(o,t){const e=o.split(ci);if(e.length===1)return null;const i=[];for(let s=0,r=e.length;s<r;++s){const n=e[s],d=n.indexOf(wo);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(t[h]),u=n.substring(d+tl)}u!==""&&i.push(u)}return i}}),ws=bs(),Mt=Object.freeze({getForInstance:ws.getForInstance,getByType:ws.getByType,define(o,t){return t=t||{},t.type=o,ws.register(t),o},assignAspect(o,t){if(!t){o.aspectType=rt.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?rt.tokenList:rt.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=rt.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=rt.event;break;default:o.targetAspect=t,o.aspectType=rt.attribute;break}}});class Cs{constructor(t){this.options=t}createHTML(t){return Gr.attribute(t(this))}createBehavior(){return this}}Ie(Cs);class Ur extends Error{constructor(t,e,i){super(t),this.factories=e,this.node=i}}function Ss(o){return o.nodeType===Node.COMMENT_NODE}function Xr(o){return o.nodeType===Node.TEXT_NODE}function Kr(o,t){const e=document.createRange();return e.setStart(o,0),e.setEnd(t,Ss(t)||Xr(t)?t.data.length:t.childNodes.length),e}function ol(o){return o instanceof DocumentFragment&&"mode"in o}function il(o,t,e){const i=Kr(o,t),s=i.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=r.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{sl(u,e,n);break}case Node.COMMENT_NODE:{rl(u,r,e,n,d);break}}u=r.nextNode()}return i.detach(),{targets:n,boundaries:d}}function sl(o,t,e){const i=Gt.parseAttributeBinding(o);if(i!==null){for(const s of i){if(!t[s])throw new Ur(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,o);hi(t[s],o,e)}o.removeAttribute(Gt.attributeMarkerName)}}function rl(o,t,e,i,s){if(Gt.isElementBoundaryStartMarker(o)){nl(o,t);return}if(Gt.isContentBindingStartMarker(o.data)){const r=Gt.parseContentBindingStartMarker(o.data);if(r===null)return;const[n,d]=r,u=e[n],h=[];let c=t.nextSibling();o.data="";const m=c;for(;c!==null;){if(Ss(c)){const S=Gt.parseContentBindingEndMarker(c.data);if(S&&S[1]===d)break}h.push(c),c=t.nextSibling()}if(c===null){const S=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${ol(S)?S.host.nodeName:S.nodeName}".`)}if(c.data="",h.length===1&&Xr(h[0]))hi(u,h[0],i);else{c!==m&&c.previousSibling!==null&&(s[u.targetNodeId]={first:m,last:c.previousSibling});const S=c.parentNode.insertBefore(document.createTextNode(""),c);hi(u,S,i)}}}function nl(o,t){const e=Gt.parseElementBoundaryStartMarker(o.data);let i=t.nextSibling();for(;i!==null;){if(Ss(i)){const s=Gt.parseElementBoundaryEndMarker(i.data);if(s&&s===e)break}i=t.nextSibling()}}function hi(o,t,e){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[o.targetNodeId]=t}var Yr;function Is(o,t){const e=o.parentNode;let i=o,s;for(;i!==t;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(i),i=s}e.removeChild(t)}class Qr{constructor(){this.index=0,this.length=0}get event(){return Ze.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class ui extends Qr{constructor(t,e,i){super(),this.fragment=t,this.factories=e,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i=this.firstChild,s;for(;i!==e;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(e)}dispose(){Is(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let i=this.behaviors;if(i===null){this.source=t,this.context=e,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const d=s[r].createBehavior();d.bind(this),i[r]=d}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Is(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}Ie(ui),f.defineProperty(ui.prototype,"index"),f.defineProperty(ui.prototype,"length");const Je={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class al extends Error{constructor(t,e,i,s){super(t),this.factory=e,this.fragment=i,this.templateString=s}}class ll extends Qr{constructor(t,e,i,s){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=i,this.hostBindingTarget=s,this[Yr]=ai,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=ri.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Je.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let i=this.firstChild,s;for(;i!==e;){if(s=i.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(i),i=s}t.appendChild(e)}bind(t,e=this){var i,s;if(this.hydrationStage!==Je.hydrated&&(this._hydrationStage=Je.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=e;try{const{targets:d,boundaries:u}=il(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof Ur){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&hi(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const c=h.createBehavior();c.bind(this),r[d]=c}else{let c=this.sourceTemplate.html;throw typeof c!="string"&&(c=c.innerHTML),new al(`HydrationView was unable to successfully target bindings inside "${(s=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Kr(this.firstChild,this.lastChild).cloneContents(),c)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,d=r.length;n<d;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Je.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Is(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}}Yr=ai,Ie(ll);function cl(o){return o.create!==void 0}function dl(o,t,e,i){if(e==null&&(e=""),cl(e)){o.textContent="";let s=o.$fastView;if(s===void 0)if(li(i)&&li(e)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Je.hydrated){const r=i.bindingViewBoundaries[this.targetNodeId];s=e.hydrate(r.first,r.last)}else s=e.create();else o.$fastTemplate!==e&&(s.isComposed&&(s.remove(),s.unbind()),s=e.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=e)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=e}}function hl(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let d=r.v;const u=o[t];if(e!=null&&e.length){const h=e.split(/\s+/);for(let c=0,m=h.length;c<m;++c){const S=h[c];S!==""&&(n[S]=d,u.add(S))}}if(r.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const ul={[rt.attribute]:ze.setAttribute,[rt.booleanAttribute]:ze.setBooleanAttribute,[rt.property]:(o,t,e)=>o[t]=e,[rt.content]:dl,[rt.tokenList]:hl,[rt.event]:()=>{}};class to{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=rt.content}createHTML(t){return Gr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=ul[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw pt.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId],s=li(t)&&t.hydrationStage&&t.hydrationStage!==Je.hydrated;switch(this.aspectType){case rt.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case rt.content:t.onUnbind(this);default:const r=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);if(r.target=i,r.controller=t,s&&(this.aspectType===rt.attribute||this.aspectType===rt.booleanAttribute)){r.bind(t);break}this.updateTarget(i,this.targetAspect,r.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Ze.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Ze.setEvent(null),i!==!0&&t.preventDefault()}}handleChange(t,e){const i=e.target,s=e.controller;this.updateTarget(i,this.targetAspect,e.bind(s),s)}}Mt.define(to,{aspected:!0});const Zr=(o,t)=>`${o}.${t}`,Jr={},Ut={index:0,node:null};function tn(o){o.startsWith("fast-")||pt.warn(1204,{name:o})}const pl=new Proxy(document.createElement("div"),{get(o,t){tn(t);const e=Reflect.get(o,t);return Qe(e)?e.bind(o):e},set(o,t,e){return tn(t),Reflect.set(o,t,e)}});class bl{constructor(t,e,i){this.fragment=t,this.directives=e,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,i,s,r){var n,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(n=t.id)!==null&&n!==void 0?n:Co(),t.targetNodeId=i,t.targetTagName=r,t.policy=(d=t.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,i){const s=this.descriptors;if(e==="r"||e==="h"||s[e])return;if(!s[t]){const n=t.lastIndexOf("."),d=t.substring(0,n),u=parseInt(t.substring(n+1));this.addTargetDescriptor(d,t,u)}let r=Jr[e];if(!r){const n=`_${e}`;Jr[e]=r={get(){var d;return(d=this[n])!==null&&d!==void 0?d:this[n]=this[t].childNodes[i]}}}s[e]=r}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??pl;for(const s of this.nodeIds)i[s];return new ui(e,this.factories,i)}}function en(o,t,e,i,s,r=!1){const n=e.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const c=n[u],m=c.value,S=di.parse(m,d);let wt=null;S===null?r&&(wt=new to(Br(()=>m,o.policy)),Mt.assignAspect(wt,c.name)):wt=zs.aggregate(S,o.policy),wt!==null&&(e.removeAttributeNode(c),u--,h--,o.addFactory(wt,t,i,s,e.tagName))}}function gl(o,t,e,i,s){const r=di.parse(t.textContent,o.directives);if(r===null)return Ut.node=t.nextSibling,Ut.index=s+1,Ut;let n,d=n=t;for(let u=0,h=r.length;u<h;++u){const c=r[u];u!==0&&(s++,i=Zr(e,s),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Wt(c)?n.textContent=c:(n.textContent=" ",Mt.assignAspect(c),o.addFactory(c,e,i,s,null)),d=n}return Ut.index=s+1,Ut.node=d.nextSibling,Ut}function on(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=fl(o,e,s,i);s=r.node,i=r.index}}function fl(o,t,e,i){const s=Zr(t,i);switch(e.nodeType){case 1:en(o,t,e,s,i),on(o,e,s);break;case 3:return gl(o,e,t,s,i);case 8:const r=di.parse(e.data,o.directives);r!==null&&o.addFactory(zs.aggregate(r),t,s,i,null);break}return Ut.index=i+1,Ut.node=e.nextSibling,Ut}function ml(o,t){return o&&o.nodeType==8&&di.parse(o.data,t)!==null}const sn="TEMPLATE",zs={compile(o,t,e=ze.policy){let i;if(Wt(o)){i=document.createElement(sn),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===sn&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new bl(s,t,e);return en(r,"",i,"h",0,!0),(ml(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),on(r,s,"r"),Ut.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=ze.policy){if(o.length===1)return o[0];let e,i=!1,s;const r=o.length,n=o.map(h=>Wt(h)?()=>h:(e=h.sourceAspect||e,i=i||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,c)=>{let m="";for(let S=0;S<r;++S)m+=n[S](h,c);return m},u=new to(ms(d,s??t,i));return Mt.assignAspect(u,e),u}},$l=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,vl=Object.create(null);class Pe{constructor(t,e=vl){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}Pe.empty=new Pe(""),Mt.define(Pe);function yl(o,t,e,i=Mt.getForInstance(o)){if(i.aspected){const s=$l.exec(t);s!==null&&Mt.assignAspect(o,s[2])}return o.createHTML(e)}class ds{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=zs.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new Pe(Wt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw pt.error(1208);if(this.policy)throw pt.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=Co();return r[h]=d,h};for(let d=0,u=t.length-1;d<u;++d){const h=t[d];let c=e[d],m;if(s+=h,Qe(c))c=new to(ms(c));else if(c instanceof ni)c=new to(c);else if(!(m=Mt.getForInstance(c))){const S=c;c=new to(Br(()=>S))}s+=yl(c,h,n,m)}return new ds(s+t[t.length-1],r,i)}}Ie(ds);const g=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ds.create(o,t);throw pt.error(1206)};g.partial=o=>new Pe(o);class rn extends Cs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Mt.define(rn);const X=o=>new rn(o),xl=o=>o.nodeType===1,Te=o=>o?t=>t.nodeType===1&&t.matches(o):xl;class nn extends Cs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,Xa),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const an="slotchange";class ln extends nn{observe(t){t.addEventListener(an,this)}disconnect(t){t.removeEventListener(an,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}Mt.define(ln);function K(o){return Wt(o)&&(o={property:o}),new ln(o)}class cn extends nn{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=wr,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}Mt.define(cn);function kl(o){return Wt(o)&&(o={property:o}),new cn(o)}const dn="boolean",hn="reflect",pi=Object.freeze({locate:Sr()}),wl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function un(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const at={toView(o){const t=un(o);return t&&t.toString()},fromView:un};class hs{constructor(t,e,i=e.toLowerCase(),s=hn,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===dn&&r===void 0&&(this.converter=wl)}setValue(t,e){const i=t[this.fieldName],s=this.converter;s!==void 0&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return f.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||e==="fromView"||nt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case hn:const r=this.converter;ze.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case dn:ze.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(pi.locate(t));for(let s=0,r=e.length;s<r;++s){const n=e[s];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Wt(h)?i.push(new hs(t,h)):i.push(new hs(t,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,t){let e;function i(s,r){arguments.length>1&&(e.property=r),pi.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const pn={mode:"open"},bn={},gn=new Set,bi=pt.getById(Se.elementRegistry,()=>bs());class qt{constructor(t,e=t.definition){var i;this.platformDefined=!1,Wt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(i=e.registry)!==null&&i!==void 0?i:customElements;const s=t.prototype,r=hs.collect(t,e.attributes),n=new Array(r.length),d={},u={};for(let h=0,c=r.length;h<c;++h){const m=r[h];n[h]=m.attribute,d[m.name]=m,u[m.attribute]=m,f.defineProperty(s,m)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=e.shadowOptions===void 0?pn:e.shadowOptions===null?void 0:Object.assign(Object.assign({},pn),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?bn:Object.assign(Object.assign({},bn),e.elementOptions),this.styles=Pt.normalize(e.styles),bi.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return gn.has(t)||bi.getByType(t)?new qt(class extends t{},e):new qt(t,e)}static registerBaseType(t){gn.add(t)}}qt.getByType=bi.getByType,qt.getForInstance=bi.getForInstance;class Cl extends MutationObserver{constructor(t){function e(i){this.callback.call(null,i.filter(s=>this.observedNodes.has(s.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const t=[],e={};let i=null,s=!1;return{source:o,context:Ze.default,targets:e,get isBound(){return s},addBehaviorFactory(r,n){var d,u,h,c;const m=r;m.id=(d=m.id)!==null&&d!==void 0?d:Co(),m.targetNodeId=(u=m.targetNodeId)!==null&&u!==void 0?u:Co(),m.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,m.policy=(c=m.policy)!==null&&c!==void 0?c:ze.policy,this.addTarget(m.targetNodeId,n),this.addBehavior(m.createBehavior())},addTarget(r,n){e[r]=n},addBehavior(r){t.push(r),s&&r.bind(this)},onUnbind(r){i===null&&(i=[]),i.push(r)},connectedCallback(r){s||(s=!0,t.forEach(n=>n.bind(this)))},disconnectedCallback(r){s&&(s=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const Sl={bubbles:!0,composed:!0,cancelable:!0},gi="isConnected",fn=new WeakMap;function So(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:fn.get(o))!==null&&e!==void 0?e:null}let mn;class eo extends zr{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const i=e.shadowOptions;if(i!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(i),i.mode==="closed"&&fn.set(t,r))}const s=f.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,d=s.length;n<d;++n){const u=s[n].name,h=t[u];h!==void 0&&(delete t[u],r[u]=h)}}}get isConnected(){return f.track(this,gi),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Ze.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,i;const s=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(i=s.get(t))!==null&&i!==void 0?i:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,e=!1){const i=this.behaviors;if(i===null)return;const s=i.get(t);s!==void 0&&(s===1||e?(i.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):i.set(t,s-1))}addStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=So(i))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(i)){const s=t.behaviors;if(t.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=So(i))!==null&&e!==void 0?e:i).removeChild(t);else if(t.isAttachedTo(i)){const s=t.behaviors;if(t.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,f.notify(this,gi))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,i=Object.keys(e);for(let s=0,r=i.length;s<r;++s){const n=i[s];t[n]=e[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,f.notify(this,gi),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(t,e,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Sl),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=So(i))!==null&&e!==void 0?e:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=ri.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=qt.getForInstance(t);if(i===void 0)throw pt.error(1401);return t.$fastController=new mn(t,i)}static setStrategy(t){mn=t}}Ie(eo),eo.setStrategy(eo);function fi(o){var t;return"adoptedStyleSheets"in o?o:(t=So(o))!==null&&t!==void 0?t:o.getRootNode()}class us{constructor(t){const e=us.styleSheetCache;this.sheets=t.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=e.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),e.set(i,s)),s})}addStylesTo(t){vn(fi(t),this.sheets)}removeStylesFrom(t){yn(fi(t),this.sheets)}}us.styleSheetCache=new Map;let Il=0;const zl=()=>`fast-${++Il}`;function $n(o){return o===document?document.body:o}class Pl{constructor(t){this.styles=t,this.styleClass=zl()}addStylesTo(t){t=$n(fi(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const r=document.createElement("style");r.innerHTML=e[s],r.className=i,t.append(r)}}removeStylesFrom(t){t=$n(fi(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let vn=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},yn=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(Pt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),vn=(o,t)=>{o.adoptedStyleSheets.push(...t)},yn=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}Pt.setDefaultStrategy(us)}else Pt.setDefaultStrategy(Pl);const xn="defer-hydration",kn="needs-hydration";class Ye extends eo{static hydrationObserverHandler(t){for(const e of t)Ye.hydrationObserver.unobserve(e.target),e.target.$fastController.connect()}connect(){var t,e;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(kn)!==null),this.source.hasAttribute(xn)){Ye.hydrationObserver.observe(this.source,{attributeFilter:[xn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,s=(t=So(i))!==null&&t!==void 0?t:i;if(this.template)if(li(this.template)){let r=s.firstChild,n=s.lastChild;i.shadowRoot===null&&(Gt.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),Gt.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(r,n,i),(e=this.view)===null||e===void 0||e.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(kn),this.needsInitialization=this.needsHydration=!1,f.notify(this,gi)}disconnect(){super.disconnect(),Ye.hydrationObserver.unobserve(this.source)}static install(){eo.setStrategy(Ye)}}Ye.hydrationObserver=new Cl(Ye.hydrationObserverHandler);function wn(o){const t=class extends o{constructor(){super(),eo.forCustomElement(this)}$emit(e,i,s){return this.$fastController.emit(e,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,i,s){this.$fastController.onAttributeChangedCallback(e,i,s)}};return qt.registerBaseType(t),t}function Tl(o,t){return Qe(o)?qt.compose(o,t):qt.compose(this,o)}function Bl(o,t){return Qe(o)?qt.compose(o,t).define().type:qt.compose(this,o).define().type}function Al(o){return wn(o)}const w=Object.assign(wn(HTMLElement),{from:Al,define:Bl,compose:Tl}),Tt={horizontal:"horizontal",vertical:"vertical"};function Ol(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function Cn(...o){return o.every(t=>t instanceof HTMLElement)}const mi="ArrowDown",$i="ArrowLeft",vi="ArrowRight",yi="ArrowUp",xi="End",ki="Enter",El="Escape",wi="Home",Ps=" ",Nl="Tab";var Xt;(function(o){o.ltr="ltr",o.rtl="rtl"})(Xt||(Xt={}));function Fl(o,t,e){return e<o?t:e>t?o:e}function Ts(o,t,e){return Math.min(Math.max(e,o),t)}let _l=0;function oo(o=""){return`${o}${_l++}`}var Ml=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Y=(o,t,e,i)=>{for(var s=i>1?void 0:i?Dl(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ml(t,e,s),s};class Q{}Y([a({attribute:"aria-atomic"})],Q.prototype,"ariaAtomic",2),Y([a({attribute:"aria-busy"})],Q.prototype,"ariaBusy",2),Y([a({attribute:"aria-controls"})],Q.prototype,"ariaControls",2),Y([a({attribute:"aria-current"})],Q.prototype,"ariaCurrent",2),Y([a({attribute:"aria-describedby"})],Q.prototype,"ariaDescribedby",2),Y([a({attribute:"aria-details"})],Q.prototype,"ariaDetails",2),Y([a({attribute:"aria-disabled"})],Q.prototype,"ariaDisabled",2),Y([a({attribute:"aria-errormessage"})],Q.prototype,"ariaErrormessage",2),Y([a({attribute:"aria-flowto"})],Q.prototype,"ariaFlowto",2),Y([a({attribute:"aria-haspopup"})],Q.prototype,"ariaHaspopup",2),Y([a({attribute:"aria-hidden"})],Q.prototype,"ariaHidden",2),Y([a({attribute:"aria-invalid"})],Q.prototype,"ariaInvalid",2),Y([a({attribute:"aria-keyshortcuts"})],Q.prototype,"ariaKeyshortcuts",2),Y([a({attribute:"aria-label"})],Q.prototype,"ariaLabel",2),Y([a({attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledby",2),Y([a({attribute:"aria-live"})],Q.prototype,"ariaLive",2),Y([a({attribute:"aria-owns"})],Q.prototype,"ariaOwns",2),Y([a({attribute:"aria-relevant"})],Q.prototype,"ariaRelevant",2),Y([a({attribute:"aria-roledescription"})],Q.prototype,"ariaRoledescription",2);const Bs={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},As=o=>o.closest("[dir]")?.dir==="rtl"?Xt.rtl:Xt.ltr;function vt(o){return o?typeof o=="string"?new Pe(o):"inline"in o?o.inline():o:Pe.empty}const Os=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Vl=":host([hidden]){display:none}";function I(o){return`${Vl}:host{display:${o}}`}class Ll{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let i=this.listenerCache.get(t);i||(i=this.constructListener(t),this.listenerCache.set(t,i)),i.bind(e)(),e.addEventListener("change",i)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class oi extends Ll{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new oi(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(i),e=r):!r&&e&&(t.removeStyles(i),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const lt=oi.with(window.matchMedia("(forced-colors)"));oi.with(window.matchMedia("(prefers-color-scheme: dark)")),oi.with(window.matchMedia("(prefers-color-scheme: light)"));const Sn=CSS.supports("anchor-name: --a"),Hl="anchor"in HTMLElement.prototype,In=CSS.supports("selector(:state(g))");class re{}function me(o){return g`<slot name="end" ${X("end")}>${vt(o.end)}</slot>`.inline()}function Kt(o){return g`<slot name="start" ${X("start")}>${vt(o.start)}</slot>`.inline()}function ne(o,...t){const e=pi.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),pi.locate(i).forEach(r=>e.push(r))})}const zn=new Map;function l(o){return zn.get(o)??zn.set(o,In?`:state(${o})`:`[state--${o}]`).get(o)}function v(o,t,e){if(!(!t||!o)){if(!In){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}}const Es=new WeakMap;function Ns(o,t){if(!o||!t)return!1;if(Es.has(o))return Es.get(o).has(t);const e=new Set(Object.values(o));return Es.set(o,e),e.has(t)}function y(o,t="",e="",i,s=""){v(o,`${s}${t}`,!1),(!i||Ns(i,e))&&v(o,`${s}${e}`,!0)}const Rl={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},jl={start:"start",end:"end"};var ql=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Be=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wl(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ql(t,e,s),s};class ae extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=oo("accordion-")}expandedChanged(t,e){v(this.elementInternals,"expanded",e)}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}}Be([a({attribute:"heading-level",mode:"fromView",converter:at})],ae.prototype,"headinglevel",2),Be([a({mode:"boolean"})],ae.prototype,"expanded",2),Be([a({mode:"boolean"})],ae.prototype,"disabled",2),Be([a],ae.prototype,"id",2);class Io extends ae{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){y(this.elementInternals,t,e,Rl)}markerPositionChanged(t,e){y(this.elementInternals,t,e,jl,"align-")}blockChanged(t,e){v(this.elementInternals,"block",e)}}Be([a],Io.prototype,"size",2),Be([a({attribute:"marker-position"})],Io.prototype,"markerPosition",2),Be([a({mode:"boolean"})],Io.prototype,"block",2),ne(Io,re);const Gl=l("active"),le=l("align-end"),Pn=l("align-start"),Ul=l("anchor"),Tn=l("auto-resize"),Xl=l("bad-input"),Kl=l("beige"),zo=l("block"),Yl=l("blue"),Ql=l("bold"),Zl=l("bordered"),Yt=l("brand"),Jl=l("brass"),tc=l("brown"),ec=l("center"),k=l("checked"),Po=l("circular"),oc=l("cornflower"),ic=l("cranberry"),sc=l("custom-error"),Ci=l("danger"),rc=l("dark-green"),nc=l("dark-red"),ac=l("description"),_=l("disabled"),Bn=l("display-shadow"),An=l("dot"),lc=l("end"),Fs=l("error"),Ae=l("expanded"),Si=l("extra-large"),To=l("extra-small"),$e=l("filled-darker"),Oe=l("filled-lighter"),cc=l("fit-center"),dc=l("fit-contain"),hc=l("fit-cover"),uc=l("fit-none"),pc=l("flip-block"),bc=l("focus-visible"),gc=l("forest"),ce=l("ghost"),fc=l("gold"),mc=l("grape"),$c=l("has-message"),vc=l("huge"),io=l("icon"),Ii=l("important"),Ee=l("indeterminate"),zi=l("informative"),yc=l("inline"),_s=l("inset"),On=l("inverted"),xc=l("italic"),kc=l("justify"),C=l("large"),wc=l("lavender"),Cc=l("light-teal"),Sc=l("lilac"),Ic=l("magenta"),zc=l("marigold"),Pc=l("medium"),Tc=l("mink"),Bc=l("monospace"),Bo=l("multiline"),so=l("multiple"),Ac=l("navy"),Pi=l("neutral"),En=l("nowrap"),Oc=l("numeric"),Ec=l("open"),N=l("outline"),Nc=l("pattern-mismatch"),Fc=l("peach"),_c=l("pink"),Mc=l("placeholder-shown"),Dc=l("platinum"),Vc=l("plum"),D=l("pressed"),yt=l("primary"),Lc=l("pumpkin"),Hc=l("purple"),Rc=l("range-overflow"),jc=l("range-underflow"),qc=l("red"),Wc=l("resize-both"),Gc=l("resize-horizontal"),Uc=l("resize-vertical"),de=l("rounded"),Xc=l("royal-blue"),Kc=l("seafoam"),Ms=l("selected"),Nn=l("semibold"),Ti=l("severe"),Yc=l("shadow"),Qc=l("size-1000"),Zc=l("size-100"),Jc=l("size-200"),td=l("size-400"),ed=l("size-500"),od=l("size-600"),id=l("size-700"),sd=l("size-800"),rd=l("size-900"),P=l("small"),Ao=l("square"),nd=l("steel"),ad=l("step-mismatch"),Fn=l("strikethrough"),Oo=l("strong"),Bi=l("submenu"),B=l("subtle"),Ne=l("success"),ld=l("teal"),ve=l("tint"),Eo=l("tiny"),cd=l("too-long"),dd=l("too-short"),H=l("transparent"),_n=l("truncate"),hd=l("type-mismatch"),Fe=l("underline"),ud=l("user-invalid"),pd=l("valid"),bd=l("value-missing"),z=l("vertical"),_e=l("warning"),E="var(--colorNeutralForeground1)",Ds="var(--colorNeutralForeground1Hover)",gd="var(--colorNeutralForeground1Pressed)",Dt="var(--colorNeutralForeground2)",No="var(--colorNeutralForeground2Hover)",Fo="var(--colorNeutralForeground2Pressed)",fd="var(--colorNeutralForeground2Selected)",Ai="var(--colorNeutralForeground2BrandHover)",Oi="var(--colorNeutralForeground2BrandPressed)",md="var(--colorNeutralForeground2BrandSelected)",bt="var(--colorNeutralForeground3)",$d="var(--colorNeutralForeground3Hover)",vd="var(--colorNeutralForeground3Pressed)",Vs="var(--colorNeutralForeground4)",A="var(--colorNeutralForegroundDisabled)",yd="var(--colorBrandForegroundLink)",xd="var(--colorBrandForegroundLinkHover)",kd="var(--colorBrandForegroundLinkPressed)",wd="var(--colorNeutralForeground2Link)",Cd="var(--colorNeutralForeground2LinkHover)",Sd="var(--colorNeutralForeground2LinkPressed)",Mn="var(--colorCompoundBrandForeground1Hover)",Id="var(--colorCompoundBrandForeground1Pressed)",he="var(--colorNeutralForegroundOnBrand)",Me="var(--colorNeutralForegroundInverted)",zd="var(--colorNeutralForegroundInvertedHover)",Pd="var(--colorNeutralForegroundInvertedPressed)",Dn="var(--colorNeutralForegroundStaticInverted)",Ls="var(--colorBrandForeground1)",Td="var(--colorBrandForeground2)",Bd="var(--colorNeutralForeground1Static)",O="var(--colorNeutralBackground1)",Ei="var(--colorNeutralBackground1Hover)",Ni="var(--colorNeutralBackground1Pressed)",Vn="var(--colorNeutralBackground1Selected)",_o="var(--colorNeutralBackground3)",Ad="var(--colorNeutralBackground4)",Od="var(--colorNeutralBackground5)",Fi="var(--colorNeutralBackground6)",Ln="var(--colorNeutralBackgroundInverted)",Ed="var(--colorSubtleBackground)",_i="var(--colorSubtleBackgroundHover)",ro="var(--colorSubtleBackgroundPressed)",Nd="var(--colorSubtleBackgroundSelected)",Bt="var(--colorTransparentBackground)",Hs="var(--colorTransparentBackgroundHover)",Rs="var(--colorTransparentBackgroundPressed)",Fd="var(--colorTransparentBackgroundSelected)",ye="var(--colorNeutralBackgroundDisabled)",js="var(--colorBackgroundOverlay)",qs="var(--colorBrandBackground)",Hn="var(--colorBrandBackgroundHover)",Rn="var(--colorBrandBackgroundPressed)",_d="var(--colorBrandBackgroundSelected)",De="var(--colorCompoundBrandBackground)",no="var(--colorCompoundBrandBackgroundHover)",ao="var(--colorCompoundBrandBackgroundPressed)",jn="var(--colorBrandBackgroundStatic)",Md="var(--colorBrandBackground2)",Qt="var(--colorNeutralStrokeAccessible)",Ve="var(--colorNeutralStrokeAccessibleHover)",Le="var(--colorNeutralStrokeAccessiblePressed)",Zt="var(--colorNeutralStroke1)",lo="var(--colorNeutralStroke1Hover)",Mo="var(--colorNeutralStroke1Pressed)",Do="var(--colorNeutralStroke2)",Dd="var(--colorNeutralStroke3)",Vd="var(--colorNeutralStrokeOnBrand2)",qn="var(--colorBrandStroke1)",Ws="var(--colorBrandStroke2)",He="var(--colorCompoundBrandStroke)",Ld="var(--colorCompoundBrandStrokeHover)",Wn="var(--colorCompoundBrandStrokePressed)",At="var(--colorNeutralStrokeDisabled)",ct="var(--colorTransparentStroke)",Gs="var(--colorTransparentStrokeInteractive)",Us="var(--colorStrokeFocus1)",Vt="var(--colorStrokeFocus2)",Hd="var(--colorNeutralShadowAmbient)",Rd="var(--colorNeutralShadowKey)",Gn="var(--colorPaletteRedBackground1)",jd="var(--colorPaletteRedBackground2)",Un="var(--colorPaletteRedBackground3)",Xn="var(--colorPaletteRedBorder1)",Xs="var(--colorPaletteRedBorder2)",Kn="var(--colorPaletteRedForeground1)",qd="var(--colorPaletteRedForeground2)",Yn="var(--colorPaletteRedForeground3)",Qn="var(--colorPaletteGreenBackground1)",Zn="var(--colorPaletteGreenBackground3)",Wd="var(--colorPaletteGreenBorder1)",Gd="var(--colorPaletteGreenBorder2)",Ud="var(--colorPaletteGreenForeground1)",Xd="var(--colorPaletteGreenForeground2)",Kd="var(--colorPaletteGreenForeground3)",Jn="var(--colorPaletteDarkOrangeBackground1)",ta="var(--colorPaletteDarkOrangeBackground3)",ea="var(--colorPaletteDarkOrangeBorder1)",Yd="var(--colorPaletteDarkOrangeForeground1)",oa="var(--colorPaletteDarkOrangeForeground3)",Qd="var(--colorPaletteYellowBackground1)",Zd="var(--colorPaletteYellowBackground3)",Jd="var(--colorPaletteYellowBorder1)",Ks="var(--colorPaletteYellowForeground2)",ia="var(--colorPaletteMarigoldBackground2)",th="var(--colorPaletteMarigoldBackground3)",eh="var(--colorPaletteMarigoldForeground2)",oh="var(--colorPaletteAnchorBackground2)",ih="var(--colorPaletteAnchorForeground2)",sh="var(--colorPaletteBeigeBackground2)",rh="var(--colorPaletteBeigeForeground2)",nh="var(--colorPaletteBlueBackground2)",ah="var(--colorPaletteBlueForeground2)",lh="var(--colorPaletteBrassBackground2)",ch="var(--colorPaletteBrassForeground2)",dh="var(--colorPaletteBrownBackground2)",hh="var(--colorPaletteBrownForeground2)",uh="var(--colorPaletteCornflowerBackground2)",ph="var(--colorPaletteCornflowerForeground2)",bh="var(--colorPaletteCranberryBackground2)",gh="var(--colorPaletteCranberryForeground2)",fh="var(--colorPaletteDarkGreenBackground2)",mh="var(--colorPaletteDarkGreenForeground2)",$h="var(--colorPaletteDarkRedBackground2)",vh="var(--colorPaletteDarkRedForeground2)",yh="var(--colorPaletteForestBackground2)",xh="var(--colorPaletteForestForeground2)",kh="var(--colorPaletteGoldBackground2)",wh="var(--colorPaletteGoldForeground2)",Ch="var(--colorPaletteGrapeBackground2)",Sh="var(--colorPaletteGrapeForeground2)",Ih="var(--colorPaletteLavenderBackground2)",zh="var(--colorPaletteLavenderForeground2)",Ph="var(--colorPaletteLightTealBackground2)",Th="var(--colorPaletteLightTealForeground2)",Bh="var(--colorPaletteLilacBackground2)",Ah="var(--colorPaletteLilacForeground2)",Oh="var(--colorPaletteMagentaBackground2)",Eh="var(--colorPaletteMagentaForeground2)",Nh="var(--colorPaletteMinkBackground2)",Fh="var(--colorPaletteMinkForeground2)",_h="var(--colorPaletteNavyBackground2)",Mh="var(--colorPaletteNavyForeground2)",Dh="var(--colorPalettePeachBackground2)",Vh="var(--colorPalettePeachForeground2)",Lh="var(--colorPalettePinkBackground2)",Hh="var(--colorPalettePinkForeground2)",Rh="var(--colorPalettePlatinumBackground2)",jh="var(--colorPalettePlatinumForeground2)",qh="var(--colorPalettePlumBackground2)",Wh="var(--colorPalettePlumForeground2)",Gh="var(--colorPalettePumpkinBackground2)",Uh="var(--colorPalettePumpkinForeground2)",Xh="var(--colorPalettePurpleBackground2)",Kh="var(--colorPalettePurpleForeground2)",Yh="var(--colorPaletteRoyalBlueBackground2)",Qh="var(--colorPaletteRoyalBlueForeground2)",Zh="var(--colorPaletteSeafoamBackground2)",Jh="var(--colorPaletteSeafoamForeground2)",tu="var(--colorPaletteSteelBackground2)",eu="var(--colorPaletteSteelForeground2)",ou="var(--colorPaletteTealBackground2)",iu="var(--colorPaletteTealForeground2)",Mi="var(--borderRadiusNone)",Lt="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",sa="var(--borderRadiusLarge)",ra="var(--borderRadiusXLarge)",Ct="var(--borderRadiusCircular)",x="var(--fontFamilyBase)",su="var(--fontFamilyMonospace)",ru="var(--fontFamilyNumeric)",Vo="var(--fontSizeBase100)",G="var(--fontSizeBase200)",M="var(--fontSizeBase300)",xt="var(--fontSizeBase400)",co="var(--fontSizeBase500)",Di="var(--fontSizeBase600)",na="var(--fontSizeHero700)",aa="var(--fontSizeHero800)",la="var(--fontSizeHero900)",ca="var(--fontSizeHero1000)",R="var(--fontWeightRegular)",nu="var(--fontWeightMedium)",U="var(--fontWeightSemibold)",Vi="var(--fontWeightBold)",Li="var(--lineHeightBase100)",tt="var(--lineHeightBase200)",j="var(--lineHeightBase300)",St="var(--lineHeightBase400)",Hi="var(--lineHeightBase500)",da="var(--lineHeightBase600)",ha="var(--lineHeightHero700)",ua="var(--lineHeightHero800)",pa="var(--lineHeightHero900)",ba="var(--lineHeightHero1000)",Ys="var(--shadow2)",Ri="var(--shadow4)",au="var(--shadow8)",Qs="var(--shadow16)",lu="var(--shadow28)",ga="var(--shadow64)",F="var(--strokeWidthThin)",It="var(--strokeWidthThick)",gt="var(--strokeWidthThicker)",Zs="var(--strokeWidthThickest)",et="var(--spacingHorizontalXXS)",Ot="var(--spacingHorizontalXS)",dt="var(--spacingHorizontalSNudge)",Jt="var(--spacingHorizontalS)",ft="var(--spacingHorizontalMNudge)",kt="var(--spacingHorizontalM)",cu="var(--spacingHorizontalL)",du="var(--spacingHorizontalXL)",hu="var(--spacingHorizontalXXL)",Lo="var(--spacingVerticalXXS)",ho="var(--spacingVerticalXS)",te="var(--spacingVerticalSNudge)",ot="var(--spacingVerticalS)",uo="var(--spacingVerticalMNudge)",uu="var(--spacingVerticalM)",ji="var(--spacingVerticalL)",Ho="var(--spacingVerticalXXL)",Js="var(--durationUltraFast)",tr="var(--durationFaster)",qi="var(--durationNormal)",er="var(--durationGentle)",fa="var(--durationSlow)",ma="var(--durationSlower)",Wi="var(--durationUltraSlow)",pu="var(--curveAccelerateMax)",Re="var(--curveAccelerateMid)",bu="var(--curveAccelerateMin)",or="var(--curveDecelerateMax)",je="var(--curveDecelerateMid)",gu="var(--curveDecelerateMin)",fu="var(--curveEasyEaseMax)",Gi="var(--curveEasyEase)",ir="var(--curveLinear)",mu=p`
|
|
1
|
+
const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Zo;const Ts="fast-kernel";try{if(document.currentScript)Zo=document.currentScript.getAttribute(Ts);else{const o=document.getElementsByTagName("script");Zo=o[o.length-1].getAttribute(Ts)}}catch{Zo="isolate"}let wt;switch(Zo){case"share":wt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":wt=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)}`;wt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Gt=o=>typeof o=="function",Re=o=>typeof o=="string",Os=()=>{};var br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof br<"u")br.globalThis=br;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 As={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},As));const he=globalThis.FAST;if(he.getById===void 0){const o=Object.create(null);Reflect.defineProperty(he,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},As))}he.error===void 0&&Object.assign(he,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const al=Object.freeze([]);function gr(){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 _s(){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 Ct(o){o.prototype.toJSON=Os}const ie=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Es=o=>o,ll=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Es}):{createHTML:Es};let Jo=Object.freeze({createHTML(o){return ll.createHTML(o)},protect(o,e,t,i){return i}});const cl=Jo,St=Object.freeze({get policy(){return Jo},setPolicy(o){if(Jo!==cl)throw he.error(1201);Jo=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)}}),re=he.getById(wt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(u){try{u.call()}catch(h){if(i)e.push(h),setTimeout(r,0);else throw o.length=0,h}}function n(){let h=0;for(;h<o.length;)if(s(o[h]),h++,h>1024){for(let c=0,m=o.length-h;c<m;c++)o[c]=o[c+h];o.length-=h,h=0}o.length=0}function d(u){o.push(u),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:d,next:()=>new Promise(d),process:n,setMode:u=>i=u})});class fr{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 Ns{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 fr(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new fr(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 ei=Object.freeze({unknown:void 0,coupled:1}),f=he.getById(wt.observable,()=>{const o=re.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=h=>{throw he.error(1101)};function s(h){var c;let m=(c=h.$fastController)!==null&&c!==void 0?c:t.get(h);return m===void 0&&(Array.isArray(h)?m=r(h):t.set(h,m=new Ns(h))),m}const n=_s();class d{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return i!==void 0&&i.watch(c,this.name),c[this.field]}setValue(c,m){const S=this.field,ke=c[S];if(ke!==m){c[S]=m;const pt=c[this.callback];Gt(pt)&&pt.call(c,ke,m),s(c).notify(this.name)}}}class u extends fr{constructor(c,m,S=!1){super(c,m),this.expression=c,this.isVolatileBinding=S,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const m=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),m}requiresUnbind(c){return c.sourceLifetime!==ei.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,m){this.needsRefresh&&this.last!==null&&this.dispose();const S=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ke;try{ke=this.expression(c,m)}finally{i=S}return ke}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,m){const S=this.last,ke=s(c),pt=S===null?this.first:{};if(pt.propertySource=c,pt.propertyName=m,pt.notifier=ke,ke.subscribe(this,m),S!==null){if(!this.needsRefresh){let Bs;i=void 0,Bs=S.propertySource[S.propertyName],i=this,c===Bs&&(this.needsRefresh=!0)}S.next=pt}this.last=pt}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return Ct(u),Object.freeze({setArrayObserverFactory(h){r=h},getNotifier:s,track(h,c){i&&i.watch(h,c)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(h,c){s(h).notify(c)},defineProperty(h,c){Re(c)&&(c=new d(c)),n(h).push(c),Reflect.defineProperty(h,c.name,{enumerable:!0,get(){return c.getValue(this)},set(m){c.setValue(this,m)}})},getAccessors:n,binding(h,c,m=this.isVolatileBinding(h)){return new u(h,c,m)},isVolatileBinding(h){return e.test(h.toString())}})});function v(o,e){f.defineProperty(o,e)}function mr(o,e,t){return Object.assign({},t,{get(){return f.trackVolatile(),t.get.apply(this)}})}const Fs=he.getById(wt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Ut=Object.freeze({default:{index:0,length:0,get event(){return Ut.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Fs.get()},setEvent(o){Fs.set(o)}});class ti{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class dl extends ti{createObserver(e){return f.binding(this.evaluate,e,this.isVolatile)}}function vr(o,e,t=f.isVolatileBinding(o)){return new dl(o,e,t)}class Ms extends ti{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}Ct(Ms);function Ds(o,e){return new Ms(o,e)}let Ls;function Vs(o){return o.map(e=>e instanceof ze?Vs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ze{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ze?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Ls),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(Vs(this.styles)),this}static setDefaultStrategy(e){Ls=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ze(e):e instanceof ze?e:new ze([e])}}ze.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $r=gr(),yr=Object.freeze({getForInstance:$r.getForInstance,getByType:$r.getByType,define(o){return $r.register({type:o}),o}});function xr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class kr{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,d)=>{s.call(i,n,d),n==="style"&&i.$cssBindings.forEach((u,h)=>xr(h,u.controller,u.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){xr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){xr(this,t.controller,t)}}yr.define(kr);const hl=`${Math.random().toString(36).substring(2,8)}`;let ul=0;const Hs=()=>`--v${hl}${++ul}`;function js(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,d=o.length-1;n<d;++n){i+=o[n];let u=e[n];Gt(u)?u=new kr(vr(u),Hs()).createCSS(s):u instanceof ti?u=new kr(u,Hs()).createCSS(s):yr.getForInstance(u)!==void 0&&(u=u.createCSS(s)),u instanceof ze||u instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(u)):i+=u}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const p=(o,...e)=>{const{styles:t,behaviors:i}=js(o,e),r=new ze(t);return i.length?r.withBehaviors(...i):r};class Rs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Re(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new ze(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)}}yr.define(Rs),p.partial=(o,...e)=>{const{styles:t,behaviors:i}=js(o,e);return new Rs(t,i)};const qs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Ws=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Gs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Us=/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 Ys(o){return o&&o.nodeType===Node.COMMENT_NODE}const qe=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 qs.test(o)},isContentBindingEndMarker(o){return Ws.test(o)},isRepeatViewStartMarker(o){return Gs.test(o)},isRepeatViewEndMarker(o){return Us.test(o)},isElementBoundaryStartMarker(o){return Ys(o)&&Xs.test(o.data.trim())},isElementBoundaryEndMarker(o){return Ys(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 Js(qs,o)},parseContentBindingEndMarker(o){return Js(Ws,o)},parseRepeatStartMarker(o){return Qs(Gs,o)},parseRepeatEndMarker(o){return Qs(Us,o)},parseElementBoundaryStartMarker(o){return Zs(Xs,o.trim())},parseElementBoundaryEndMarker(o){return Zs(Ks,o)}});function Qs(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Zs(o,e){const t=o.exec(e);return t===null?t:t[1]}function Js(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const oi=Symbol.for("fe-hydration");function ii(o){return o[oi]===oi}const wr=`fast-${Math.random().toString(36).substring(2,8)}`,ri=`${wr}{`,vo=`}${wr}`,pl=vo.length;let bl=0;const $o=()=>`${wr}-${++bl}`,en=Object.freeze({interpolation:o=>`${ri}${o}${vo}`,attribute:o=>`${$o()}="${ri}${o}${vo}"`,comment:o=>`<!--${ri}${o}${vo}-->`}),si=Object.freeze({parse(o,e){const t=o.split(ri);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],d=n.indexOf(vo);let u;if(d===-1)u=n;else{const h=n.substring(0,d);i.push(e[h]),u=n.substring(d+pl)}u!==""&&i.push(u)}return i}}),Cr=gr(),Fe=Object.freeze({getForInstance:Cr.getForInstance,getByType:Cr.getByType,define(o,e){return e=e||{},e.type=o,Cr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=ie.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?ie.tokenList:ie.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=ie.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=ie.event;break;default:o.targetAspect=e,o.aspectType=ie.attribute;break}}});class Sr{constructor(e){this.options=e}createHTML(e){return en.attribute(e(this))}createBehavior(){return this}}Ct(Sr);class tn extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function Ir(o){return o.nodeType===Node.COMMENT_NODE}function on(o){return o.nodeType===Node.TEXT_NODE}function rn(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Ir(e)||on(e)?e.data.length:e.childNodes.length),t}function gl(o){return o instanceof DocumentFragment&&"mode"in o}function fl(o,e,t){const i=rn(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return i.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},d={};let u=s.currentNode=o;for(;u!==null;){switch(u.nodeType){case Node.ELEMENT_NODE:{ml(u,t,n);break}case Node.COMMENT_NODE:{vl(u,s,t,n,d);break}}u=s.nextNode()}return i.detach(),{targets:n,boundaries:d}}function ml(o,e,t){const i=qe.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new tn(`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);ni(e[r],o,t)}o.removeAttribute(qe.attributeMarkerName)}}function vl(o,e,t,i,r){if(qe.isElementBoundaryStartMarker(o)){$l(o,e);return}if(qe.isContentBindingStartMarker(o.data)){const s=qe.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,d]=s,u=t[n],h=[];let c=e.nextSibling();o.data="";const m=c;for(;c!==null;){if(Ir(c)){const S=qe.parseContentBindingEndMarker(c.data);if(S&&S[1]===d)break}h.push(c),c=e.nextSibling()}if(c===null){const S=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${gl(S)?S.host.nodeName:S.nodeName}".`)}if(c.data="",h.length===1&&on(h[0]))ni(u,h[0],i);else{c!==m&&c.previousSibling!==null&&(r[u.targetNodeId]={first:m,last:c.previousSibling});const S=c.parentNode.insertBefore(document.createTextNode(""),c);ni(u,S,i)}}}function $l(o,e){const t=qe.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(Ir(i)){const r=qe.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function ni(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var sn;function Pr(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 nn{constructor(){this.index=0,this.length=0}get event(){return Ut.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 ai extends nn{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=ei.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(){Pr(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 d=r[s].createBehavior();d.bind(this),i[s]=d}}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){Pr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}Ct(ai),f.defineProperty(ai.prototype,"index"),f.defineProperty(ai.prototype,"length");const Xt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class yl extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class xl extends nn{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[sn]=oi,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=ei.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Xt.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!==Xt.hydrated&&(this._hydrationStage=Xt.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:d,boundaries:u}=fl(this.firstChild,this.lastChild,this.factories);this._targets=d,this._bindingViewBoundaries=u}catch(d){if(d instanceof tn){let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML),d.templateString=u}throw d}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let d=0,u=n.length;d<u;++d){const h=n[d];if(h.targetNodeId==="h"&&this.hostBindingTarget&&ni(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const c=h.createBehavior();c.bind(this),s[d]=c}else{let c=this.sourceTemplate.html;throw typeof c!="string"&&(c=c.innerHTML),new yl(`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}".`,h,rn(this.firstChild,this.lastChild).cloneContents(),c)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,d=s.length;n<d;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=Xt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Pr(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}}sn=oi,Ct(xl);function kl(o){return o.create!==void 0}function wl(o,e,t,i){if(t==null&&(t=""),kl(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(ii(i)&&ii(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Xt.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 Cl(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 d=s.v;const u=o[e];if(t!=null&&t.length){const h=t.split(/\s+/);for(let c=0,m=h.length;c<m;++c){const S=h[c];S!==""&&(n[S]=d,u.add(S))}}if(s.v=d+1,d!==0){d-=1;for(const h in n)n[h]===d&&u.remove(h)}}const Sl={[ie.attribute]:St.setAttribute,[ie.booleanAttribute]:St.setBooleanAttribute,[ie.property]:(o,e,t)=>o[e]=t,[ie.content]:wl,[ie.tokenList]:Cl,[ie.event]:()=>{}};class Kt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=ie.content}createHTML(e){return en.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Sl[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw he.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=ii(e)&&e.hydrationStage&&e.hydrationStage!==Xt.hydrated;switch(this.aspectType){case ie.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case ie.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===ie.attribute||this.aspectType===ie.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){Ut.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Ut.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(Kt,{aspected:!0});const an=(o,e)=>`${o}.${e}`,ln={},We={index:0,node:null};function cn(o){o.startsWith("fast-")||he.warn(1204,{name:o})}const Il=new Proxy(document.createElement("div"),{get(o,e){cn(e);const t=Reflect.get(o,e);return Gt(t)?t.bind(o):t},set(o,e,t){return cn(e),Reflect.set(o,e,t)}});class Pl{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,d;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:$o(),e.targetNodeId=i,e.targetTagName=s,e.policy=(d=e.policy)!==null&&d!==void 0?d:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),d=e.substring(0,n),u=parseInt(e.substring(n+1));this.addTargetDescriptor(d,e,u)}let s=ln[t];if(!s){const n=`_${t}`;ln[t]=s={get(){var d;return(d=this[n])!==null&&d!==void 0?d: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??Il;for(const r of this.nodeIds)i[r];return new ai(t,this.factories,i)}}function dn(o,e,t,i,r,s=!1){const n=t.attributes,d=o.directives;for(let u=0,h=n.length;u<h;++u){const c=n[u],m=c.value,S=si.parse(m,d);let ke=null;S===null?s&&(ke=new Kt(Ds(()=>m,o.policy)),Fe.assignAspect(ke,c.name)):ke=zr.aggregate(S,o.policy),ke!==null&&(t.removeAttributeNode(c),u--,h--,o.addFactory(ke,e,i,r,t.tagName))}}function zl(o,e,t,i,r){const s=si.parse(e.textContent,o.directives);if(s===null)return We.node=e.nextSibling,We.index=r+1,We;let n,d=n=e;for(let u=0,h=s.length;u<h;++u){const c=s[u];u!==0&&(r++,i=an(t,r),n=d.parentNode.insertBefore(document.createTextNode(""),d.nextSibling)),Re(c)?n.textContent=c:(n.textContent=" ",Fe.assignAspect(c),o.addFactory(c,t,i,r,null)),d=n}return We.index=r+1,We.node=d.nextSibling,We}function hn(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Bl(o,t,r,i);r=s.node,i=s.index}}function Bl(o,e,t,i){const r=an(e,i);switch(t.nodeType){case 1:dn(o,e,t,r,i),hn(o,t,r);break;case 3:return zl(o,t,e,r,i);case 8:const s=si.parse(t.data,o.directives);s!==null&&o.addFactory(zr.aggregate(s),e,r,i,null);break}return We.index=i+1,We.node=t.nextSibling,We}function Tl(o,e){return o&&o.nodeType==8&&si.parse(o.data,e)!==null}const un="TEMPLATE",zr={compile(o,e,t=St.policy){let i;if(Re(o)){i=document.createElement(un),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===un&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Pl(r,e,t);return dn(s,"",i,"h",0,!0),(Tl(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),hn(s,r,"r"),We.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=St.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(h=>Re(h)?()=>h:(t=h.sourceAspect||t,i=i||h.dataBinding.isVolatile,r=r||h.dataBinding.policy,h.dataBinding.evaluate)),d=(h,c)=>{let m="";for(let S=0;S<s;++S)m+=n[S](h,c);return m},u=new Kt(vr(d,r??e,i));return Fe.assignAspect(u,t),u}},Ol=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Al=Object.create(null);class It{constructor(e,t=Al){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}It.empty=new It(""),Fe.define(It);function _l(o,e,t,i=Fe.getForInstance(o)){if(i.aspected){const r=Ol.exec(e);r!==null&&Fe.assignAspect(o,r[2])}return o.createHTML(t)}class hr{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=zr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new It(Re(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw he.error(1208);if(this.policy)throw he.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=d=>{var u;const h=(u=d.id)!==null&&u!==void 0?u:d.id=$o();return s[h]=d,h};for(let d=0,u=e.length-1;d<u;++d){const h=e[d];let c=t[d],m;if(r+=h,Gt(c))c=new Kt(vr(c));else if(c instanceof ti)c=new Kt(c);else if(!(m=Fe.getForInstance(c))){const S=c;c=new Kt(Ds(()=>S))}r+=_l(c,h,n,m)}return new hr(r+e[e.length-1],s,i)}}Ct(hr);const g=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return hr.create(o,e);throw he.error(1206)};g.partial=o=>new It(o);class pn extends Sr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Fe.define(pn);const U=o=>new pn(o),El=o=>o.nodeType===1,Pt=o=>o?e=>e.nodeType===1&&e.matches(o):El;class bn extends Sr{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,al),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 gn="slotchange";class fn extends bn{observe(e){e.addEventListener(gn,this)}disconnect(e){e.removeEventListener(gn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Fe.define(fn);function X(o){return Re(o)&&(o={property:o}),new fn(o)}class mn extends bn{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const r=i.target;this.updateTarget(this.getSource(r),this.computeNodes(r))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=Os,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Fe.define(mn);function Nl(o){return Re(o)&&(o={property:o}),new mn(o)}const vn="boolean",$n="reflect",li=Object.freeze({locate:_s()}),Fl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function yn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const se={toView(o){const e=yn(o);return e&&e.toString()},fromView:yn};class ur{constructor(e,t,i=t.toLowerCase(),r=$n,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===vn&&s===void 0&&(this.converter=Fl)}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 f.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||re.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case $n:const s=this.converter;St.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case vn:St.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(li.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let d=0,u=n.length;d<u;++d){const h=n[d];Re(h)?i.push(new ur(e,h)):i.push(new ur(e,h.property,h.attribute,h.mode,h.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),li.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const xn={mode:"open"},kn={},wn=new Set,ci=he.getById(wt.elementRegistry,()=>gr());class je{constructor(e,t=e.definition){var i;this.platformDefined=!1,Re(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=ur.collect(e,t.attributes),n=new Array(s.length),d={},u={};for(let h=0,c=s.length;h<c;++h){const m=s[h];n[h]=m.attribute,d[m.name]=m,u[m.attribute]=m,f.defineProperty(r,m)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=d,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?xn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},xn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?kn:Object.assign(Object.assign({},kn),t.elementOptions),this.styles=ze.normalize(t.styles),ci.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 wn.has(e)||ci.getByType(e)?new je(class extends e{},t):new je(e,t)}static registerBaseType(e){wn.add(e)}}je.getByType=ci.getByType,je.getForInstance=ci.getForInstance;class Ml 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:Ut.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var d,u,h,c;const m=s;m.id=(d=m.id)!==null&&d!==void 0?d:$o(),m.targetNodeId=(u=m.targetNodeId)!==null&&u!==void 0?u:$o(),m.targetTagName=(h=n.tagName)!==null&&h!==void 0?h:null,m.policy=(c=m.policy)!==null&&c!==void 0?c:St.policy,this.addTarget(m.targetNodeId,n),this.addBehavior(m.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 Dl={bubbles:!0,composed:!0,cancelable:!0},di="isConnected",Cn=new WeakMap;function yo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Cn.get(o))!==null&&t!==void 0?t:null}let Sn;class Yt extends Ns{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"&&Cn.set(e,s))}const r=f.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,d=r.length;n<d;++n){const u=r[n].name,h=e[u];h!==void 0&&(delete e[u],s[u]=h)}}}get isConnected(){return f.track(this,di),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:Ut.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=yo(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=yo(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,f.notify(this,di))}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,f.notify(this,di),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},Dl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=yo(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=ei.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=je.getForInstance(e);if(i===void 0)throw he.error(1401);return e.$fastController=new Sn(e,i)}static setStrategy(e){Sn=e}}Ct(Yt),Yt.setStrategy(Yt);function hi(o){var e;return"adoptedStyleSheets"in o?o:(e=yo(o))!==null&&e!==void 0?e:o.getRootNode()}class pr{constructor(e){const t=pr.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){Pn(hi(e),this.sheets)}removeStylesFrom(e){zn(hi(e),this.sheets)}}pr.styleSheetCache=new Map;let Ll=0;const Vl=()=>`fast-${++Ll}`;function In(o){return o===document?document.body:o}class Hl{constructor(e){this.styles=e,this.styleClass=Vl()}addStylesTo(e){e=In(hi(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=In(hi(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Pn=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},zn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ze.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Pn=(o,e)=>{o.adoptedStyleSheets.push(...e)},zn=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ze.setDefaultStrategy(pr)}else ze.setDefaultStrategy(Hl);const Bn="defer-hydration",Tn="needs-hydration";class Wt extends Yt{static hydrationObserverHandler(e){for(const t of e)Wt.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(Bn)){Wt.hydrationObserver.observe(this.source,{attributeFilter:[Bn]});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=yo(i))!==null&&e!==void 0?e:i;if(this.template)if(ii(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(qe.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),qe.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(Tn),this.needsInitialization=this.needsHydration=!1,f.notify(this,di)}disconnect(){super.disconnect(),Wt.hydrationObserver.unobserve(this.source)}static install(){Yt.setStrategy(Wt)}}Wt.hydrationObserver=new Ml(Wt.hydrationObserverHandler);function On(o){const e=class extends o{constructor(){super(),Yt.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 je.registerBaseType(e),e}function jl(o,e){return Gt(o)?je.compose(o,e):je.compose(this,o)}function Rl(o,e){return Gt(o)?je.compose(o,e).define().type:je.compose(this,o).define().type}function ql(o){return On(o)}const w=Object.assign(On(HTMLElement),{from:ql,define:Rl,compose:jl});var Wl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,K=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gl(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&&Wl(e,t,r),r};class Y{}K([a({attribute:"aria-atomic"})],Y.prototype,"ariaAtomic",2),K([a({attribute:"aria-busy"})],Y.prototype,"ariaBusy",2),K([a({attribute:"aria-controls"})],Y.prototype,"ariaControls",2),K([a({attribute:"aria-current"})],Y.prototype,"ariaCurrent",2),K([a({attribute:"aria-describedby"})],Y.prototype,"ariaDescribedby",2),K([a({attribute:"aria-details"})],Y.prototype,"ariaDetails",2),K([a({attribute:"aria-disabled"})],Y.prototype,"ariaDisabled",2),K([a({attribute:"aria-errormessage"})],Y.prototype,"ariaErrormessage",2),K([a({attribute:"aria-flowto"})],Y.prototype,"ariaFlowto",2),K([a({attribute:"aria-haspopup"})],Y.prototype,"ariaHaspopup",2),K([a({attribute:"aria-hidden"})],Y.prototype,"ariaHidden",2),K([a({attribute:"aria-invalid"})],Y.prototype,"ariaInvalid",2),K([a({attribute:"aria-keyshortcuts"})],Y.prototype,"ariaKeyshortcuts",2),K([a({attribute:"aria-label"})],Y.prototype,"ariaLabel",2),K([a({attribute:"aria-labelledby"})],Y.prototype,"ariaLabelledby",2),K([a({attribute:"aria-live"})],Y.prototype,"ariaLive",2),K([a({attribute:"aria-owns"})],Y.prototype,"ariaOwns",2),K([a({attribute:"aria-relevant"})],Y.prototype,"ariaRelevant",2),K([a({attribute:"aria-roledescription"})],Y.prototype,"ariaRoledescription",2);const Br={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 Ul(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function An(...o){return o.every(e=>e instanceof HTMLElement)}const ui="ArrowDown",pi="ArrowLeft",bi="ArrowRight",gi="ArrowUp",fi="End",mi="Enter",Xl="Escape",vi="Home",Tr=" ",Kl="Tab";var Ge;(function(o){o.ltr="ltr",o.rtl="rtl"})(Ge||(Ge={}));function Yl(o,e,t){return t<o?e:t>e?o:t}function Or(o,e,t){return Math.min(Math.max(t,o),e)}let Ql=0;function Qt(o=""){return`${o}${Ql++}`}const Ar=o=>o.closest("[dir]")?.dir==="rtl"?Ge.rtl:Ge.ltr;function ve(o){return o?typeof o=="string"?new It(o):"inline"in o?o.inline():o:It.empty}const _r=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Zl=":host([hidden]){display:none}";function I(o){return`${Zl}:host{display:${o}}`}class Jl{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 Qo extends Jl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Qo(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 ne=Qo.with(window.matchMedia("(forced-colors)"));Qo.with(window.matchMedia("(prefers-color-scheme: dark)")),Qo.with(window.matchMedia("(prefers-color-scheme: light)"));const _n=CSS.supports("anchor-name: --a"),ec="anchor"in HTMLElement.prototype,En=CSS.supports("selector(:state(g))");class it{}function bt(o){return g`<slot name="end" ${U("end")}>${ve(o.end)}</slot>`.inline()}function Ue(o){return g`<slot name="start" ${U("start")}>${ve(o.start)}</slot>`.inline()}function rt(o,...e){const t=li.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),li.locate(i).forEach(s=>t.push(s))})}const Nn=new Map;function l(o){return Nn.get(o)??Nn.set(o,En?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!En){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Er=new WeakMap;function Nr(o,e){if(!o||!e)return!1;if(Er.has(o))return Er.get(o).has(e);const t=new Set(Object.values(o));return Er.set(o,t),t.has(e)}function y(o,e="",t="",i,r=""){$(o,`${r}${e}`,!1),(!i||Nr(i,t))&&$(o,`${r}${t}`,!0)}var tc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,$i=(o,e,t,i)=>{for(var r=i>1?void 0:i?oc(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&&tc(e,t,r),r};class st extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Qt("accordion-")}expandedChanged(e,t){$(this.elementInternals,"expanded",t)}disabledChanged(e,t){$(this.elementInternals,"disabled",t)}}$i([a({attribute:"heading-level",mode:"fromView",converter:se})],st.prototype,"headinglevel",2),$i([a({mode:"boolean"})],st.prototype,"expanded",2),$i([a({mode:"boolean"})],st.prototype,"disabled",2),$i([a],st.prototype,"id",2);const ic={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},rc={start:"start",end:"end"};var sc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,Fr=(o,e,t,i)=>{for(var r=i>1?void 0:i?nc(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&&sc(e,t,r),r};class xo extends st{constructor(){super(...arguments),this.block=!1}sizeChanged(e,t){y(this.elementInternals,e,t,ic)}markerPositionChanged(e,t){y(this.elementInternals,e,t,rc,"align-")}blockChanged(e,t){$(this.elementInternals,"block",t)}}Fr([a],xo.prototype,"size",2),Fr([a({attribute:"marker-position"})],xo.prototype,"markerPosition",2),Fr([a({mode:"boolean"})],xo.prototype,"block",2),rt(xo,it);const ac=l("active"),nt=l("align-end"),Fn=l("align-start"),lc=l("anchor"),Mn=l("auto-resize"),cc=l("bad-input"),dc=l("beige"),ko=l("block"),hc=l("blue"),uc=l("bold"),pc=l("bordered"),Xe=l("brand"),bc=l("brass"),gc=l("brown"),fc=l("center"),k=l("checked"),wo=l("circular"),mc=l("cornflower"),vc=l("cranberry"),$c=l("custom-error"),yi=l("danger"),yc=l("dark-green"),xc=l("dark-red"),kc=l("description"),F=l("disabled"),Dn=l("display-shadow"),Ln=l("dot"),wc=l("end"),Mr=l("error"),zt=l("expanded"),xi=l("extra-large"),Co=l("extra-small"),gt=l("filled-darker"),Bt=l("filled-lighter"),Cc=l("fit-center"),Sc=l("fit-contain"),Ic=l("fit-cover"),Pc=l("fit-none"),zc=l("flip-block"),Bc=l("focus-visible"),Tc=l("forest"),at=l("ghost"),Oc=l("gold"),Ac=l("grape"),_c=l("has-message"),Ec=l("huge"),Zt=l("icon"),ki=l("important"),Tt=l("indeterminate"),wi=l("informative"),Nc=l("inline"),Dr=l("inset"),Vn=l("inverted"),Fc=l("italic"),Mc=l("justify"),C=l("large"),Dc=l("lavender"),Lc=l("light-teal"),Vc=l("lilac"),Hc=l("magenta"),jc=l("marigold"),Rc=l("medium"),qc=l("mink"),Wc=l("monospace"),So=l("multiline"),Jt=l("multiple"),Gc=l("navy"),Ci=l("neutral"),Hn=l("nowrap"),Uc=l("numeric"),Xc=l("open"),E=l("outline"),Kc=l("pattern-mismatch"),Yc=l("peach"),Qc=l("pink"),Zc=l("placeholder-shown"),Jc=l("platinum"),ed=l("plum"),D=l("pressed"),$e=l("primary"),td=l("pumpkin"),od=l("purple"),id=l("range-overflow"),rd=l("range-underflow"),sd=l("red"),nd=l("resize-both"),ad=l("resize-horizontal"),ld=l("resize-vertical"),lt=l("rounded"),cd=l("royal-blue"),dd=l("seafoam"),Lr=l("selected"),jn=l("semibold"),Si=l("severe"),hd=l("shadow"),ud=l("size-1000"),pd=l("size-100"),bd=l("size-200"),gd=l("size-400"),fd=l("size-500"),md=l("size-600"),vd=l("size-700"),$d=l("size-800"),yd=l("size-900"),z=l("small"),Io=l("square"),xd=l("steel"),kd=l("step-mismatch"),Rn=l("strikethrough"),Po=l("strong"),Ii=l("submenu"),T=l("subtle"),Ot=l("success"),wd=l("teal"),ft=l("tint"),zo=l("tiny"),Cd=l("too-long"),Sd=l("too-short"),V=l("transparent"),qn=l("truncate"),Id=l("type-mismatch"),At=l("underline"),Pd=l("user-invalid"),zd=l("valid"),Bd=l("value-missing"),P=l("vertical"),_t=l("warning"),_="var(--colorNeutralForeground1)",Vr="var(--colorNeutralForeground1Hover)",Td="var(--colorNeutralForeground1Pressed)",Me="var(--colorNeutralForeground2)",Bo="var(--colorNeutralForeground2Hover)",To="var(--colorNeutralForeground2Pressed)",Od="var(--colorNeutralForeground2Selected)",Pi="var(--colorNeutralForeground2BrandHover)",zi="var(--colorNeutralForeground2BrandPressed)",Ad="var(--colorNeutralForeground2BrandSelected)",ue="var(--colorNeutralForeground3)",_d="var(--colorNeutralForeground3Hover)",Ed="var(--colorNeutralForeground3Pressed)",Hr="var(--colorNeutralForeground4)",O="var(--colorNeutralForegroundDisabled)",Nd="var(--colorBrandForegroundLink)",Fd="var(--colorBrandForegroundLinkHover)",Md="var(--colorBrandForegroundLinkPressed)",Dd="var(--colorNeutralForeground2Link)",Ld="var(--colorNeutralForeground2LinkHover)",Vd="var(--colorNeutralForeground2LinkPressed)",Wn="var(--colorCompoundBrandForeground1Hover)",Hd="var(--colorCompoundBrandForeground1Pressed)",ct="var(--colorNeutralForegroundOnBrand)",Et="var(--colorNeutralForegroundInverted)",jd="var(--colorNeutralForegroundInvertedHover)",Rd="var(--colorNeutralForegroundInvertedPressed)",Gn="var(--colorNeutralForegroundStaticInverted)",jr="var(--colorBrandForeground1)",qd="var(--colorBrandForeground2)",Wd="var(--colorNeutralForeground1Static)",A="var(--colorNeutralBackground1)",Bi="var(--colorNeutralBackground1Hover)",Ti="var(--colorNeutralBackground1Pressed)",Un="var(--colorNeutralBackground1Selected)",Oo="var(--colorNeutralBackground3)",Gd="var(--colorNeutralBackground4)",Ud="var(--colorNeutralBackground5)",Oi="var(--colorNeutralBackground6)",Xn="var(--colorNeutralBackgroundInverted)",Xd="var(--colorSubtleBackground)",Ai="var(--colorSubtleBackgroundHover)",eo="var(--colorSubtleBackgroundPressed)",Kd="var(--colorSubtleBackgroundSelected)",Te="var(--colorTransparentBackground)",Rr="var(--colorTransparentBackgroundHover)",qr="var(--colorTransparentBackgroundPressed)",Yd="var(--colorTransparentBackgroundSelected)",mt="var(--colorNeutralBackgroundDisabled)",Wr="var(--colorBackgroundOverlay)",Gr="var(--colorBrandBackground)",Kn="var(--colorBrandBackgroundHover)",Yn="var(--colorBrandBackgroundPressed)",Qd="var(--colorBrandBackgroundSelected)",Nt="var(--colorCompoundBrandBackground)",to="var(--colorCompoundBrandBackgroundHover)",oo="var(--colorCompoundBrandBackgroundPressed)",Qn="var(--colorBrandBackgroundStatic)",Zd="var(--colorBrandBackground2)",Ke="var(--colorNeutralStrokeAccessible)",Ft="var(--colorNeutralStrokeAccessibleHover)",Mt="var(--colorNeutralStrokeAccessiblePressed)",Ye="var(--colorNeutralStroke1)",io="var(--colorNeutralStroke1Hover)",Ao="var(--colorNeutralStroke1Pressed)",_o="var(--colorNeutralStroke2)",Jd="var(--colorNeutralStroke3)",eh="var(--colorNeutralStrokeOnBrand2)",Zn="var(--colorBrandStroke1)",Ur="var(--colorBrandStroke2)",Dt="var(--colorCompoundBrandStroke)",th="var(--colorCompoundBrandStrokeHover)",Jn="var(--colorCompoundBrandStrokePressed)",Oe="var(--colorNeutralStrokeDisabled)",ae="var(--colorTransparentStroke)",Xr="var(--colorTransparentStrokeInteractive)",Kr="var(--colorStrokeFocus1)",De="var(--colorStrokeFocus2)",oh="var(--colorNeutralShadowAmbient)",ih="var(--colorNeutralShadowKey)",ea="var(--colorPaletteRedBackground1)",rh="var(--colorPaletteRedBackground2)",ta="var(--colorPaletteRedBackground3)",oa="var(--colorPaletteRedBorder1)",Yr="var(--colorPaletteRedBorder2)",ia="var(--colorPaletteRedForeground1)",sh="var(--colorPaletteRedForeground2)",ra="var(--colorPaletteRedForeground3)",sa="var(--colorPaletteGreenBackground1)",na="var(--colorPaletteGreenBackground3)",nh="var(--colorPaletteGreenBorder1)",ah="var(--colorPaletteGreenBorder2)",lh="var(--colorPaletteGreenForeground1)",ch="var(--colorPaletteGreenForeground2)",dh="var(--colorPaletteGreenForeground3)",aa="var(--colorPaletteDarkOrangeBackground1)",la="var(--colorPaletteDarkOrangeBackground3)",ca="var(--colorPaletteDarkOrangeBorder1)",hh="var(--colorPaletteDarkOrangeForeground1)",da="var(--colorPaletteDarkOrangeForeground3)",uh="var(--colorPaletteYellowBackground1)",ph="var(--colorPaletteYellowBackground3)",bh="var(--colorPaletteYellowBorder1)",Qr="var(--colorPaletteYellowForeground2)",ha="var(--colorPaletteMarigoldBackground2)",gh="var(--colorPaletteMarigoldBackground3)",fh="var(--colorPaletteMarigoldForeground2)",mh="var(--colorPaletteAnchorBackground2)",vh="var(--colorPaletteAnchorForeground2)",$h="var(--colorPaletteBeigeBackground2)",yh="var(--colorPaletteBeigeForeground2)",xh="var(--colorPaletteBlueBackground2)",kh="var(--colorPaletteBlueForeground2)",wh="var(--colorPaletteBrassBackground2)",Ch="var(--colorPaletteBrassForeground2)",Sh="var(--colorPaletteBrownBackground2)",Ih="var(--colorPaletteBrownForeground2)",Ph="var(--colorPaletteCornflowerBackground2)",zh="var(--colorPaletteCornflowerForeground2)",Bh="var(--colorPaletteCranberryBackground2)",Th="var(--colorPaletteCranberryForeground2)",Oh="var(--colorPaletteDarkGreenBackground2)",Ah="var(--colorPaletteDarkGreenForeground2)",_h="var(--colorPaletteDarkRedBackground2)",Eh="var(--colorPaletteDarkRedForeground2)",Nh="var(--colorPaletteForestBackground2)",Fh="var(--colorPaletteForestForeground2)",Mh="var(--colorPaletteGoldBackground2)",Dh="var(--colorPaletteGoldForeground2)",Lh="var(--colorPaletteGrapeBackground2)",Vh="var(--colorPaletteGrapeForeground2)",Hh="var(--colorPaletteLavenderBackground2)",jh="var(--colorPaletteLavenderForeground2)",Rh="var(--colorPaletteLightTealBackground2)",qh="var(--colorPaletteLightTealForeground2)",Wh="var(--colorPaletteLilacBackground2)",Gh="var(--colorPaletteLilacForeground2)",Uh="var(--colorPaletteMagentaBackground2)",Xh="var(--colorPaletteMagentaForeground2)",Kh="var(--colorPaletteMinkBackground2)",Yh="var(--colorPaletteMinkForeground2)",Qh="var(--colorPaletteNavyBackground2)",Zh="var(--colorPaletteNavyForeground2)",Jh="var(--colorPalettePeachBackground2)",eu="var(--colorPalettePeachForeground2)",tu="var(--colorPalettePinkBackground2)",ou="var(--colorPalettePinkForeground2)",iu="var(--colorPalettePlatinumBackground2)",ru="var(--colorPalettePlatinumForeground2)",su="var(--colorPalettePlumBackground2)",nu="var(--colorPalettePlumForeground2)",au="var(--colorPalettePumpkinBackground2)",lu="var(--colorPalettePumpkinForeground2)",cu="var(--colorPalettePurpleBackground2)",du="var(--colorPalettePurpleForeground2)",hu="var(--colorPaletteRoyalBlueBackground2)",uu="var(--colorPaletteRoyalBlueForeground2)",pu="var(--colorPaletteSeafoamBackground2)",bu="var(--colorPaletteSeafoamForeground2)",gu="var(--colorPaletteSteelBackground2)",fu="var(--colorPaletteSteelForeground2)",mu="var(--colorPaletteTealBackground2)",vu="var(--colorPaletteTealForeground2)",_i="var(--borderRadiusNone)",Le="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",ua="var(--borderRadiusLarge)",pa="var(--borderRadiusXLarge)",we="var(--borderRadiusCircular)",x="var(--fontFamilyBase)",$u="var(--fontFamilyMonospace)",yu="var(--fontFamilyNumeric)",Eo="var(--fontSizeBase100)",W="var(--fontSizeBase200)",M="var(--fontSizeBase300)",ye="var(--fontSizeBase400)",ro="var(--fontSizeBase500)",Ei="var(--fontSizeBase600)",ba="var(--fontSizeHero700)",ga="var(--fontSizeHero800)",fa="var(--fontSizeHero900)",ma="var(--fontSizeHero1000)",H="var(--fontWeightRegular)",xu="var(--fontWeightMedium)",G="var(--fontWeightSemibold)",Ni="var(--fontWeightBold)",Fi="var(--lineHeightBase100)",J="var(--lineHeightBase200)",j="var(--lineHeightBase300)",Ce="var(--lineHeightBase400)",Mi="var(--lineHeightBase500)",va="var(--lineHeightBase600)",$a="var(--lineHeightHero700)",ya="var(--lineHeightHero800)",xa="var(--lineHeightHero900)",ka="var(--lineHeightHero1000)",Zr="var(--shadow2)",Di="var(--shadow4)",ku="var(--shadow8)",Jr="var(--shadow16)",wu="var(--shadow28)",wa="var(--shadow64)",N="var(--strokeWidthThin)",Se="var(--strokeWidthThick)",pe="var(--strokeWidthThicker)",es="var(--strokeWidthThickest)",ee="var(--spacingHorizontalXXS)",Ae="var(--spacingHorizontalXS)",le="var(--spacingHorizontalSNudge)",Qe="var(--spacingHorizontalS)",be="var(--spacingHorizontalMNudge)",xe="var(--spacingHorizontalM)",Cu="var(--spacingHorizontalL)",Su="var(--spacingHorizontalXL)",Iu="var(--spacingHorizontalXXL)",No="var(--spacingVerticalXXS)",so="var(--spacingVerticalXS)",Ze="var(--spacingVerticalSNudge)",te="var(--spacingVerticalS)",no="var(--spacingVerticalMNudge)",Pu="var(--spacingVerticalM)",Li="var(--spacingVerticalL)",Fo="var(--spacingVerticalXXL)",ts="var(--durationUltraFast)",os="var(--durationFaster)",Vi="var(--durationNormal)",is="var(--durationGentle)",Ca="var(--durationSlow)",Sa="var(--durationSlower)",Hi="var(--durationUltraSlow)",zu="var(--curveAccelerateMax)",Lt="var(--curveAccelerateMid)",Bu="var(--curveAccelerateMin)",rs="var(--curveDecelerateMax)",Vt="var(--curveDecelerateMid)",Tu="var(--curveDecelerateMin)",Ou="var(--curveEasyEaseMax)",ji="var(--curveEasyEase)",ss="var(--curveLinear)",Au=p`
|
|
2
2
|
${I("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${xe} ${be};border-radius:${B};font-family:${x};font-size:${M};font-weight:${H};line-height:${j};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${Te};border:none;box-sizing:border-box;color:${_};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:${Le}}: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:${Qe};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${xe}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Qe};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Le};outline:none;border:2px solid ${Kr};box-shadow:inset 0 0 0 1px ${De}}:host(${F}) .button{color:${O}}:host(${F}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${zt}) .content{display:block}:host(${zt}) .default-marker-collapsed,:host(${zt}) ::slotted([slot='marker-collapsed']),:host(:not(${zt})) :is(.default-marker-expanded,.content),:host(:not(${zt})) ::slotted([slot='marker-expanded']){display:none}:host(${zt}) ::slotted([slot='marker-expanded']),:host(:not(${zt})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${M};line-height:${j}}:host(${z}) .heading{font-size:${W};line-height:${J}}:host(${C}) .heading{font-size:${ye};line-height:${Ce}}:host(${xi}) .heading{font-size:${ro};line-height:${Mi}}:host(${nt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${nt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Qe};padding-inline-end:0}:host(${nt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${nt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${xe}}:host(${nt}:has([slot='start'])) .heading{padding-inline:${be} ${xe}}:host(${ko}${nt}) .heading{grid-template-columns:auto 1fr}:host(${nt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,_u=g.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -14,7 +14,7 @@ const b=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>`),Eu=g.partial(`<svg
|
|
18
18
|
width="20"
|
|
19
19
|
height="20"
|
|
20
20
|
viewBox="0 0 20 20"
|
|
@@ -27,38 +27,38 @@ const b=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
|
|
30
|
+
</svg>`);function Nu(o={}){return g`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${U("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>${Ue(o)}<slot name="marker-expanded">${ve(o.expandedIcon)}</slot><slot name="marker-collapsed">${ve(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Fu=Nu({collapsedIcon:_u,expandedIcon:Eu}),Mu=xo.compose({name:`${b.prefix}-accordion-item`,template:Fu,styles:Au});Mu.define(b.registry);const ns={single:"single",multi:"multi"};var Du=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Ia=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lu(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&&Du(e,t,r),r};class as extends w{constructor(){super(...arguments),this.expandmode=ns.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>f.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t instanceof st&&(t.addEventListener("click",this.expandedChangedHandler),f.getNotifier(t).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{f.getNotifier(t).unsubscribe(this,"disabled"),f.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof st&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===ns.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof st&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===ns.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof st&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}Ia([a({attribute:"expand-mode"})],as.prototype,"expandmode",2),Ia([v],as.prototype,"slottedAccordionItems",2);const Vu=p`
|
|
31
31
|
${I("flex")}
|
|
32
32
|
|
|
33
|
-
:host{flex-direction:column;width:100%;contain:content}`;function
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function Hu(){return g`<template><slot ${X({property:"slottedAccordionItems",filter:Pt()})}></slot></template>`}const ju=Hu(),Ru=as.compose({name:`${b.prefix}-accordion`,template:ju,styles:Vu});Ru.define(b.registry);const Pa={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},za={circular:"circular",rounded:"rounded",square:"square"},Ba={small:"small",medium:"medium",large:"large"},Ri={submit:"submit",reset:"reset",button:"button"},qu=Pa,Wu=za,Gu=Ba,Uu={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,vt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ku(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&&Xu(e,t,r),r};class Je extends w{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Uu){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===mi){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}}vt([a],Je.prototype,"download",2),vt([a],Je.prototype,"href",2),vt([a],Je.prototype,"hreflang",2),vt([a],Je.prototype,"ping",2),vt([a],Je.prototype,"referrerpolicy",2),vt([a],Je.prototype,"rel",2),vt([a],Je.prototype,"target",2),vt([a],Je.prototype,"type",2);var Yu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,qi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qu(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&&Yu(e,t,r),r};class ao extends Je{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,qu)}shapeChanged(e,t){y(this.elementInternals,e,t,Wu)}sizeChanged(e,t){y(this.elementInternals,e,t,Gu)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}qi([a],ao.prototype,"appearance",2),qi([a],ao.prototype,"shape",2),qi([a],ao.prototype,"size",2),qi([a({attribute:"icon-only",mode:"boolean"})],ao.prototype,"iconOnly",2),rt(ao,it);const Ta=p`
|
|
34
34
|
${I("inline-flex")}
|
|
35
35
|
|
|
36
|
-
:host{--icon-spacing:${
|
|
37
|
-
${
|
|
36
|
+
:host{--icon-spacing:${le};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:${A};color:${_};border:${N} solid ${Ye};padding:0 ${xe};min-width:96px;border-radius:${B};font-size:${M};font-family:${x};font-weight:${G};line-height:${j};transition-duration:${os};transition-property:background,border,color;transition-timing-function:${ji};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Bi};color:${Vr};border-color:${io}}:host(:hover:active){background-color:${Ti};border-color:${Ao};color:${Td};outline-style:none}:host(:focus-visible){border-color:${ae};outline:${Se} solid ${ae};box-shadow:${Di},0 0 0 2px ${De}}@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(${Zt}){min-width:32px;max-width:32px}:host(${z}){--icon-spacing:${Ae};min-height:24px;min-width:64px;padding:0 ${Qe};border-radius:${Le};font-size:${W};line-height:${J};font-weight:${H}}:host(${z}${Zt}){min-width:24px;max-width:24px}:host(${C}){min-height:40px;border-radius:${ua};padding:0 ${Cu};font-size:${ye};line-height:${Ce}}:host(${C}${Zt}){min-width:40px;max-width:40px}:host(${C}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${wo},${wo}:focus-visible)){border-radius:${we}}:host(:is(${Io},${Io}:focus-visible)){border-radius:${_i}}:host(${$e}){background-color:${Gr};color:${ct};border-color:transparent}:host(${$e}:hover){background-color:${Kn}}:host(${$e}:is(:hover,:hover:active)){border-color:transparent;color:${ct}}:host(${$e}:hover:active){background-color:${Yn}}:host(${$e}:focus-visible){border-color:${ct};box-shadow:${Zr},0 0 0 2px ${De}}:host(${E}){background-color:${Te}}:host(${E}:hover){background-color:${Rr}}:host(${E}:hover:active){background-color:${qr}}:host(${T}){background-color:${Xd};color:${Me};border-color:transparent}:host(${T}:hover){background-color:${Ai};color:${Bo};border-color:transparent}:host(${T}:hover:active){background-color:${eo};color:${To};border-color:transparent}:host(${T}:hover) ::slotted(svg){fill:${Pi}}:host(${T}:hover:active) ::slotted(svg){fill:${zi}}:host(${V}){background-color:${Te};color:${Me}}:host(${V}:hover){background-color:${Rr};color:${Pi}}:host(${V}:hover:active){background-color:${qr};color:${zi}}:host(:is(${V},${V}:is(:hover,:active))){border-color:transparent}`,Wi=p`
|
|
37
|
+
${Ta}
|
|
38
38
|
|
|
39
|
-
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${
|
|
40
|
-
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${
|
|
41
|
-
${
|
|
39
|
+
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${mt};border-color:${Oe};color:${O};cursor:not-allowed}:host(${$e}:is(:disabled,[disabled-focusable])),:host(${$e}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${E}:is(:disabled,[disabled-focusable])),:host(${E}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Te}}:host(${T}:is(:disabled,[disabled-focusable])),:host(${T}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Te};border-color:transparent}:host(${V}:is(:disabled,[disabled-focusable])),:host(${V}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${Te}}`.withBehaviors(ne(p`
|
|
40
|
+
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${$e}: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}`)),Zu=p`
|
|
41
|
+
${Ta}
|
|
42
42
|
|
|
43
|
-
::slotted(a){position:absolute;inset:0}`.withBehaviors(
|
|
44
|
-
:host{border-color:LinkText;color:LinkText}`));function
|
|
45
|
-
${I("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${x};font-weight:${
|
|
43
|
+
::slotted(a){position:absolute;inset:0}`.withBehaviors(ne(p`
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function Ju(o={}){return g`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ue(o)}<span class="content" part="content"><slot></slot></span>${bt(o)}</template>`}const ep=Ju(),tp=ao.compose({name:`${b.prefix}-anchor-button`,template:ep,styles:Zu});tp.define(b.registry);const op=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,ip=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,rp=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,sp=/\s+/g,np=/[\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 ap(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function lp(o){return o=o.replace(op,""),o=o.replace(ip,""),o=o.replace(sp," "),o=o.trim(),o}function cp(o,e,t){return!o||(o=lp(o),np.test(o)||!t?.allowPhoneInitials&&rp.test(o))?"":ap(o,e,t?.firstInitialOnly)}var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,ls=(o,e,t,i)=>{for(var r=i>1?void 0:i?hp(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&&dp(e,t,r),r};class Gi extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}ls([a],Gi.prototype,"name",2),ls([a],Gi.prototype,"initials",2),ls([a],Gi.prototype,"active",2);const Oa={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"},Aa={neutral:"neutral",brand:"brand",colorful:"colorful",...Oa};var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,Mo=(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};const Ht=class Ps extends Gi{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??cp(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Aa.colorful,t=this.currentColor;this.currentColor=e&&this.colorId?this.colorId:e?Ps.colors[gp(this.name??"")%Ps.colors.length]:this.color??Aa.neutral,y(this.elementInternals,t,this.currentColor)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}};Ht.colors=Object.values(Oa),Mo([a],Ht.prototype,"shape",2),Mo([a],Ht.prototype,"appearance",2),Mo([a({converter:se})],Ht.prototype,"size",2),Mo([a],Ht.prototype,"color",2),Mo([a({attribute:"color-id"})],Ht.prototype,"colorId",2);let bp=Ht;const gp=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},$t={fastOutSlowInMax:rs,fastOutSlowInMid:Vt,fastOutSlowInMin:Tu,slowOutFastInMax:zu,slowOutFastInMid:Lt,slowOutFastInMin:Bu,fastEase:Ou,normalEase:ji,nullEasing:ss},fp=p`
|
|
45
|
+
${I("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${x};font-weight:${G};font-size:${M};border-radius:${we};color:${ue};background-color:${Oi};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${we}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${N}) ${A}}: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 ${Se}) ${A}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Eo};font-weight:${H}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${W}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ye}}: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:${ro}}: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:${Ei}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${B}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Le}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${ua}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${pa}}:host(${Xe}){color:${Gn};background-color:${Qn}}:host(${xc}){color:${Eh};background-color:${_h}}:host(${vc}){color:${Th};background-color:${Bh}}:host(${sd}){color:${sh};background-color:${rh}}:host(${td}){color:${lu};background-color:${au}}:host(${Yc}){color:${eu};background-color:${Jh}}:host(${jc}){color:${fh};background-color:${ha}}:host(${Oc}){color:${Dh};background-color:${Mh}}:host(${bc}){color:${Ch};background-color:${wh}}:host(${gc}){color:${Ih};background-color:${Sh}}:host(${Tc}){color:${Fh};background-color:${Nh}}:host(${dd}){color:${bu};background-color:${pu}}:host(${yc}){color:${Ah};background-color:${Oh}}:host(${Lc}){color:${qh};background-color:${Rh}}:host(${wd}){color:${vu};background-color:${mu}}:host(${xd}){color:${fu};background-color:${gu}}:host(${hc}){color:${kh};background-color:${xh}}:host(${cd}){color:${uu};background-color:${hu}}:host(${mc}){color:${zh};background-color:${Ph}}:host(${Gc}){color:${Zh};background-color:${Qh}}:host(${Dc}){color:${jh};background-color:${Hh}}:host(${od}){color:${du};background-color:${cu}}:host(${Ac}){color:${Vh};background-color:${Lh}}:host(${Vc}){color:${Gh};background-color:${Wh}}:host(${Qc}){color:${ou};background-color:${tu}}:host(${Hc}){color:${Xh};background-color:${Uh}}:host(${ed}){color:${nu};background-color:${su}}:host(${dc}){color:${yh};background-color:${$h}}:host(${qc}){color:${Yh};background-color:${Kh}}:host(${Jc}){color:${ru};background-color:${iu}}:host(${lc}){color:${vh};background-color:${mh}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Hi},${os};transition-delay:${$t.fastEase},${$t.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Hi}),${Sa};transition-delay:${$t.fastEase}),${$t.nullEasing})}:host([active])::before{box-shadow:${ku};border-style:solid;border-color:${Qn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Se});border-width:${Se}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${pe});border-width:${pe}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${es});border-width:${es}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Di}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Jr}}: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:${wu}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Hi},${os};transition-delay:${$t.fastOutSlowInMin},${$t.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Hi},${Sa};transition-delay:${$t.fastOutSlowInMin},${$t.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}}`,mp=g`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function vp(){return g`<slot>${o=>o.name||o.initials?o.generateInitials():mp}</slot><slot name="badge"></slot>`}const $p=vp(),yp=bp.compose({name:`${b.prefix}-avatar`,template:$p,styles:fp});yp.define(b.registry);const _a={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ea={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},xp={circular:"circular",rounded:"rounded",square:"square"},kp={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var wp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Ui=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cp(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&&wp(e,t,r),r};class lo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=_a.filled,this.color=Ea.brand}appearanceChanged(e,t){y(this.elementInternals,e,t,_a)}colorChanged(e,t){y(this.elementInternals,e,t,Ea)}shapeChanged(e,t){y(this.elementInternals,e,t,xp)}sizeChanged(e,t){y(this.elementInternals,e,t,kp)}}Ui([a],lo.prototype,"appearance",2),Ui([a],lo.prototype,"color",2),Ui([a],lo.prototype,"shape",2),Ui([a],lo.prototype,"size",2),rt(lo,it);const Na=p.partial`
|
|
46
46
|
${I("inline-flex")} :host {
|
|
47
47
|
position: relative;
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
51
51
|
font-family: ${x};
|
|
52
|
-
font-weight: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
line-height: ${
|
|
52
|
+
font-weight: ${G};
|
|
53
|
+
font-size: ${W};
|
|
54
|
+
line-height: ${J};
|
|
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(${Ae} + ${ee});
|
|
58
|
+
border-radius: ${we};
|
|
59
|
+
border-color: ${ae};
|
|
60
|
+
background-color: ${Gr};
|
|
61
|
+
color: ${ct};
|
|
62
62
|
contain: content;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
66
66
|
font-size: 12px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
:host(:not(${
|
|
69
|
+
:host(:not(${at}))::after {
|
|
70
70
|
position: absolute;
|
|
71
71
|
content: '';
|
|
72
72
|
top: 0;
|
|
@@ -74,12 +74,12 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
74
74
|
bottom: 0;
|
|
75
75
|
right: 0;
|
|
76
76
|
border-style: solid;
|
|
77
|
-
border-width: ${
|
|
77
|
+
border-width: ${N};
|
|
78
78
|
border-color: inherit;
|
|
79
79
|
border-radius: inherit;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
82
|
-
:host(${
|
|
81
|
+
`,Fa=p.partial`
|
|
82
|
+
:host(${zo}) {
|
|
83
83
|
width: 6px;
|
|
84
84
|
height: 6px;
|
|
85
85
|
font-size: 4px;
|
|
@@ -87,10 +87,10 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
87
87
|
padding-inline: 0;
|
|
88
88
|
min-width: unset;
|
|
89
89
|
}
|
|
90
|
-
:host(${
|
|
90
|
+
:host(${zo}) ::slotted(svg) {
|
|
91
91
|
font-size: 6px;
|
|
92
92
|
}
|
|
93
|
-
:host(${
|
|
93
|
+
:host(${Co}) {
|
|
94
94
|
width: 10px;
|
|
95
95
|
height: 10px;
|
|
96
96
|
font-size: 6px;
|
|
@@ -98,289 +98,289 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
98
98
|
padding-inline: 0;
|
|
99
99
|
min-width: unset;
|
|
100
100
|
}
|
|
101
|
-
:host(${
|
|
101
|
+
:host(${Co}) ::slotted(svg) {
|
|
102
102
|
font-size: 10px;
|
|
103
103
|
}
|
|
104
|
-
:host(${
|
|
104
|
+
:host(${z}) {
|
|
105
105
|
min-width: 16px;
|
|
106
106
|
height: 16px;
|
|
107
|
-
font-size: ${
|
|
108
|
-
line-height: ${
|
|
109
|
-
padding-inline: calc(${
|
|
107
|
+
font-size: ${Eo};
|
|
108
|
+
line-height: ${Fi};
|
|
109
|
+
padding-inline: calc(${ee} + ${ee});
|
|
110
110
|
}
|
|
111
|
-
:host(${
|
|
111
|
+
:host(${z}) ::slotted(svg) {
|
|
112
112
|
font-size: 12px;
|
|
113
113
|
}
|
|
114
114
|
:host(${C}) {
|
|
115
115
|
min-width: 24px;
|
|
116
116
|
height: 24px;
|
|
117
|
-
font-size: ${
|
|
118
|
-
line-height: ${
|
|
119
|
-
padding-inline: calc(${
|
|
117
|
+
font-size: ${W};
|
|
118
|
+
line-height: ${J};
|
|
119
|
+
padding-inline: calc(${Ae} + ${ee});
|
|
120
120
|
}
|
|
121
121
|
:host(${C}) ::slotted(svg) {
|
|
122
122
|
font-size: 16px;
|
|
123
123
|
}
|
|
124
|
-
:host(${
|
|
124
|
+
:host(${xi}) {
|
|
125
125
|
min-width: 32px;
|
|
126
126
|
height: 32px;
|
|
127
|
-
font-size: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
padding-inline: calc(${
|
|
127
|
+
font-size: ${W};
|
|
128
|
+
line-height: ${J};
|
|
129
|
+
padding-inline: calc(${le} + ${ee});
|
|
130
130
|
}
|
|
131
|
-
:host(${
|
|
131
|
+
:host(${xi}) ::slotted(svg) {
|
|
132
132
|
font-size: 20px;
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
135
|
-
:host(${
|
|
136
|
-
background-color: ${
|
|
137
|
-
color: ${
|
|
134
|
+
`,Ma=p.partial`
|
|
135
|
+
:host(${yi}) {
|
|
136
|
+
background-color: ${ta};
|
|
137
|
+
color: ${ct};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
:host(${
|
|
141
|
-
background-color: ${
|
|
142
|
-
color: ${
|
|
140
|
+
:host(${ki}) {
|
|
141
|
+
background-color: ${_};
|
|
142
|
+
color: ${A};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
:host(${
|
|
146
|
-
background-color: ${
|
|
147
|
-
color: ${
|
|
145
|
+
:host(${wi}) {
|
|
146
|
+
background-color: ${Ud};
|
|
147
|
+
color: ${ue};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
:host(${
|
|
151
|
-
background-color: ${
|
|
152
|
-
color: ${
|
|
150
|
+
:host(${Si}) {
|
|
151
|
+
background-color: ${la};
|
|
152
|
+
color: ${ct};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
:host(${
|
|
156
|
-
background-color: ${
|
|
157
|
-
color: ${
|
|
155
|
+
:host(${T}) {
|
|
156
|
+
background-color: ${A};
|
|
157
|
+
color: ${_};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
:host(${
|
|
161
|
-
background-color: ${
|
|
162
|
-
color: ${
|
|
160
|
+
:host(${Ot}) {
|
|
161
|
+
background-color: ${na};
|
|
162
|
+
color: ${ct};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
:host(${
|
|
166
|
-
background-color: ${
|
|
167
|
-
color: ${
|
|
165
|
+
:host(${_t}) {
|
|
166
|
+
background-color: ${ph};
|
|
167
|
+
color: ${Wd};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
170
|
-
:host(${
|
|
171
|
-
color: ${
|
|
169
|
+
`,Da=p.partial`
|
|
170
|
+
:host(${at}) {
|
|
171
|
+
color: ${jr};
|
|
172
172
|
background-color: initial;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
:host(${
|
|
176
|
-
color: ${
|
|
175
|
+
:host(${at}${yi}) {
|
|
176
|
+
color: ${ra};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
:host(${
|
|
180
|
-
color: ${
|
|
179
|
+
:host(${at}${ki}) {
|
|
180
|
+
color: ${_};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
:host(${
|
|
184
|
-
color: ${
|
|
183
|
+
:host(${at}${wi}) {
|
|
184
|
+
color: ${ue};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
:host(${
|
|
188
|
-
color: ${
|
|
187
|
+
:host(${at}${Si}) {
|
|
188
|
+
color: ${da};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
:host(${
|
|
192
|
-
color: ${
|
|
191
|
+
:host(${at}${T}) {
|
|
192
|
+
color: ${Et};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
:host(${
|
|
196
|
-
color: ${
|
|
195
|
+
:host(${at}${Ot}) {
|
|
196
|
+
color: ${dh};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
:host(${
|
|
200
|
-
color: ${
|
|
199
|
+
:host(${at}${_t}) {
|
|
200
|
+
color: ${Qr};
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
203
|
-
:host(${
|
|
202
|
+
`,Sp=p.partial`
|
|
203
|
+
:host(${E}) {
|
|
204
204
|
border-color: currentColor;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${jr};
|
|
206
206
|
background-color: initial;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
:host(${
|
|
210
|
-
color: ${
|
|
209
|
+
:host(${E}${yi}) {
|
|
210
|
+
color: ${ra};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
:host(${
|
|
214
|
-
color: ${
|
|
215
|
-
border-color: ${
|
|
213
|
+
:host(${E}${ki}) {
|
|
214
|
+
color: ${ue};
|
|
215
|
+
border-color: ${Ke};
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
:host(${
|
|
219
|
-
color: ${
|
|
220
|
-
border-color: ${
|
|
218
|
+
:host(${E}${wi}) {
|
|
219
|
+
color: ${ue};
|
|
220
|
+
border-color: ${_o};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
:host(${
|
|
224
|
-
color: ${
|
|
223
|
+
:host(${E}${Si}) {
|
|
224
|
+
color: ${da};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
:host(${
|
|
228
|
-
color: ${
|
|
227
|
+
:host(${E}${T}) {
|
|
228
|
+
color: ${Gn};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
:host(${
|
|
232
|
-
color: ${
|
|
231
|
+
:host(${E}${Ot}) {
|
|
232
|
+
color: ${ch};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
:host(${
|
|
236
|
-
color: ${
|
|
235
|
+
:host(${E}${_t}) {
|
|
236
|
+
color: ${Qr};
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
239
|
-
:host(${
|
|
240
|
-
background-color: ${
|
|
241
|
-
color: ${
|
|
242
|
-
border-color: ${
|
|
238
|
+
`,Ip=p.partial`
|
|
239
|
+
:host(${ft}) {
|
|
240
|
+
background-color: ${Zd};
|
|
241
|
+
color: ${qd};
|
|
242
|
+
border-color: ${Ur};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
:host(${
|
|
246
|
-
background-color: ${
|
|
247
|
-
color: ${
|
|
248
|
-
border-color: ${
|
|
245
|
+
:host(${ft}${yi}) {
|
|
246
|
+
background-color: ${ea};
|
|
247
|
+
color: ${ia};
|
|
248
|
+
border-color: ${oa};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
:host(${
|
|
252
|
-
background-color: ${
|
|
253
|
-
color: ${
|
|
254
|
-
border-color: ${
|
|
251
|
+
:host(${ft}${ki}) {
|
|
252
|
+
background-color: ${ue};
|
|
253
|
+
color: ${A};
|
|
254
|
+
border-color: ${ae};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
:host(${
|
|
258
|
-
background-color: ${
|
|
259
|
-
color: ${
|
|
260
|
-
border-color: ${
|
|
257
|
+
:host(${ft}${wi}) {
|
|
258
|
+
background-color: ${Gd};
|
|
259
|
+
color: ${ue};
|
|
260
|
+
border-color: ${_o};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
:host(${
|
|
264
|
-
background-color: ${
|
|
265
|
-
color: ${
|
|
266
|
-
border-color: ${
|
|
263
|
+
:host(${ft}${Si}) {
|
|
264
|
+
background-color: ${aa};
|
|
265
|
+
color: ${hh};
|
|
266
|
+
border-color: ${ca};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
:host(${
|
|
270
|
-
background-color: ${
|
|
271
|
-
color: ${
|
|
272
|
-
border-color: ${
|
|
269
|
+
:host(${ft}${T}) {
|
|
270
|
+
background-color: ${A};
|
|
271
|
+
color: ${ue};
|
|
272
|
+
border-color: ${_o};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
:host(${
|
|
276
|
-
background-color: ${
|
|
277
|
-
color: ${
|
|
278
|
-
border-color: ${
|
|
275
|
+
:host(${ft}${Ot}) {
|
|
276
|
+
background-color: ${sa};
|
|
277
|
+
color: ${lh};
|
|
278
|
+
border-color: ${ah};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
:host(${
|
|
282
|
-
background-color: ${
|
|
283
|
-
color: ${
|
|
284
|
-
border-color: ${
|
|
281
|
+
:host(${ft}${_t}) {
|
|
282
|
+
background-color: ${uh};
|
|
283
|
+
color: ${Qr};
|
|
284
|
+
border-color: ${bh};
|
|
285
285
|
}
|
|
286
|
-
`,
|
|
286
|
+
`,La=p.partial`
|
|
287
287
|
font-family: ${x};
|
|
288
288
|
font-size: ${M};
|
|
289
289
|
line-height: ${j};
|
|
290
|
-
font-weight: ${
|
|
290
|
+
font-weight: ${H};
|
|
291
291
|
`;p.partial`
|
|
292
292
|
font-family: ${x};
|
|
293
293
|
font-size: ${M};
|
|
294
294
|
line-height: ${j};
|
|
295
|
-
font-weight: ${
|
|
295
|
+
font-weight: ${G};
|
|
296
296
|
`,p.partial`
|
|
297
297
|
font-family: ${x};
|
|
298
298
|
font-size: ${M};
|
|
299
299
|
line-height: ${j};
|
|
300
|
-
font-weight: ${
|
|
301
|
-
`;const
|
|
300
|
+
font-weight: ${Ni};
|
|
301
|
+
`;const Pp=p.partial`
|
|
302
302
|
font-family: ${x};
|
|
303
|
-
font-size: ${
|
|
304
|
-
line-height: ${
|
|
305
|
-
font-weight: ${
|
|
306
|
-
`,
|
|
303
|
+
font-size: ${ye};
|
|
304
|
+
line-height: ${Ce};
|
|
305
|
+
font-weight: ${H};
|
|
306
|
+
`,Va=p.partial`
|
|
307
307
|
font-family: ${x};
|
|
308
|
-
font-size: ${
|
|
309
|
-
line-height: ${
|
|
310
|
-
font-weight: ${
|
|
308
|
+
font-size: ${W};
|
|
309
|
+
line-height: ${J};
|
|
310
|
+
font-weight: ${H};
|
|
311
311
|
`;p.partial`
|
|
312
312
|
font-family: ${x};
|
|
313
|
-
font-size: ${
|
|
314
|
-
line-height: ${
|
|
315
|
-
font-weight: ${
|
|
313
|
+
font-size: ${W};
|
|
314
|
+
line-height: ${J};
|
|
315
|
+
font-weight: ${G};
|
|
316
316
|
`,p.partial`
|
|
317
317
|
font-family: ${x};
|
|
318
|
-
font-size: ${
|
|
319
|
-
line-height: ${
|
|
320
|
-
font-weight: ${
|
|
318
|
+
font-size: ${W};
|
|
319
|
+
line-height: ${J};
|
|
320
|
+
font-weight: ${Ni};
|
|
321
321
|
`,p.partial`
|
|
322
322
|
font-family: ${x};
|
|
323
|
-
font-size: ${
|
|
324
|
-
line-height: ${
|
|
325
|
-
font-weight: ${
|
|
323
|
+
font-size: ${Eo};
|
|
324
|
+
line-height: ${Fi};
|
|
325
|
+
font-weight: ${H};
|
|
326
326
|
`,p.partial`
|
|
327
327
|
font-family: ${x};
|
|
328
|
-
font-size: ${
|
|
329
|
-
line-height: ${
|
|
330
|
-
font-weight: ${
|
|
331
|
-
`;const
|
|
328
|
+
font-size: ${Eo};
|
|
329
|
+
line-height: ${Fi};
|
|
330
|
+
font-weight: ${G};
|
|
331
|
+
`;const zp=p.partial`
|
|
332
332
|
font-family: ${x};
|
|
333
|
-
font-size: ${
|
|
334
|
-
line-height: ${
|
|
335
|
-
font-weight: ${
|
|
333
|
+
font-size: ${ro};
|
|
334
|
+
line-height: ${Mi};
|
|
335
|
+
font-weight: ${G};
|
|
336
336
|
`;p.partial`
|
|
337
337
|
font-family: ${x};
|
|
338
|
-
font-size: ${
|
|
339
|
-
line-height: ${
|
|
340
|
-
font-weight: ${
|
|
338
|
+
font-size: ${ye};
|
|
339
|
+
line-height: ${Ce};
|
|
340
|
+
font-weight: ${G};
|
|
341
341
|
`,p.partial`
|
|
342
342
|
font-family: ${x};
|
|
343
|
-
font-size: ${
|
|
344
|
-
line-height: ${
|
|
345
|
-
font-weight: ${
|
|
343
|
+
font-size: ${ye};
|
|
344
|
+
line-height: ${Ce};
|
|
345
|
+
font-weight: ${Ni};
|
|
346
346
|
`,p.partial`
|
|
347
347
|
font-family: ${x};
|
|
348
|
-
font-size: ${
|
|
349
|
-
line-height: ${
|
|
350
|
-
font-weight: ${
|
|
348
|
+
font-size: ${ga};
|
|
349
|
+
line-height: ${ya};
|
|
350
|
+
font-weight: ${G};
|
|
351
351
|
`,p.partial`
|
|
352
352
|
font-family: ${x};
|
|
353
|
-
font-size: ${
|
|
354
|
-
line-height: ${
|
|
355
|
-
font-weight: ${
|
|
353
|
+
font-size: ${ba};
|
|
354
|
+
line-height: ${$a};
|
|
355
|
+
font-weight: ${G};
|
|
356
356
|
`,p.partial`
|
|
357
357
|
font-family: ${x};
|
|
358
|
-
font-size: ${
|
|
359
|
-
line-height: ${
|
|
360
|
-
font-weight: ${
|
|
358
|
+
font-size: ${Ei};
|
|
359
|
+
line-height: ${va};
|
|
360
|
+
font-weight: ${G};
|
|
361
361
|
`,p.partial`
|
|
362
362
|
font-family: ${x};
|
|
363
|
-
font-size: ${
|
|
364
|
-
line-height: ${
|
|
365
|
-
font-weight: ${
|
|
363
|
+
font-size: ${fa};
|
|
364
|
+
line-height: ${xa};
|
|
365
|
+
font-weight: ${G};
|
|
366
366
|
`,p.partial`
|
|
367
367
|
font-family: ${x};
|
|
368
|
-
font-size: ${
|
|
369
|
-
line-height: ${
|
|
370
|
-
font-weight: ${
|
|
371
|
-
`;const
|
|
372
|
-
:host(${
|
|
373
|
-
${
|
|
374
|
-
${
|
|
375
|
-
${
|
|
376
|
-
${
|
|
377
|
-
${
|
|
378
|
-
`.withBehaviors(
|
|
379
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function
|
|
368
|
+
font-size: ${ma};
|
|
369
|
+
line-height: ${ka};
|
|
370
|
+
font-weight: ${G};
|
|
371
|
+
`;const Bp=p`
|
|
372
|
+
:host(${Io}){border-radius:${_i}}:host(${lt}){border-radius:${B}}:host(${lt}${zo}),:host(${lt}${Co}),:host(${lt}${z}){border-radius:${Le}}${Fa}
|
|
373
|
+
${Ma}
|
|
374
|
+
${Da}
|
|
375
|
+
${Sp}
|
|
376
|
+
${Ip}
|
|
377
|
+
${Na}
|
|
378
|
+
`.withBehaviors(ne(p`
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Ha(o={}){return g` ${Ue(o)}<slot>${ve(o.defaultContent)}</slot>${bt(o)} `}const Tp=Ha(),Op=lo.compose({name:`${b.prefix}-badge`,template:Tp,styles:Bp});Op.define(b.registry);var Ap=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?_p(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&&Ap(e,t,r),r};class ge extends w{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==Ri.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===mi||e.key===Tr){this.click();return}return!0}press(){switch(this.type){case Ri.reset:{this.resetForm();break}case Ri.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Ri.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}ge.formAssociated=!0,Ie([a({mode:"boolean"})],ge.prototype,"autofocus",2),Ie([v],ge.prototype,"defaultSlottedContent",2),Ie([a({mode:"boolean"})],ge.prototype,"disabled",2),Ie([a({attribute:"disabled-focusable",mode:"boolean"})],ge.prototype,"disabledFocusable",2),Ie([a({attribute:"tabindex",mode:"fromView",converter:se})],ge.prototype,"tabIndex",2),Ie([a({attribute:"formaction"})],ge.prototype,"formAction",2),Ie([a({attribute:"form"})],ge.prototype,"formAttribute",2),Ie([a({attribute:"formenctype"})],ge.prototype,"formEnctype",2),Ie([a({attribute:"formmethod"})],ge.prototype,"formMethod",2),Ie([a({attribute:"formnovalidate",mode:"boolean"})],ge.prototype,"formNoValidate",2),Ie([a({attribute:"formtarget"})],ge.prototype,"formTarget",2),Ie([a],ge.prototype,"name",2),Ie([a],ge.prototype,"type",2),Ie([a],ge.prototype,"value",2);var Ep=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Xi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Np(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&&Ep(e,t,r),r};class dt extends ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,Pa)}shapeChanged(e,t){y(this.elementInternals,e,t,za)}sizeChanged(e,t){y(this.elementInternals,e,t,Ba)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",t)}}Xi([a],dt.prototype,"appearance",2),Xi([a],dt.prototype,"shape",2),Xi([a],dt.prototype,"size",2),Xi([a({attribute:"icon-only",mode:"boolean"})],dt.prototype,"iconOnly",2),rt(dt,it);function cs(o={}){return g`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ue(o)}<span class="content" part="content"><slot ${X("defaultSlottedContent")}></slot></span>${bt(o)}</template>`}const Fp=cs(),Mp=dt.compose({name:`${b.prefix}-button`,template:Fp,styles:Wi});Mp.define(b.registry);var Dp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,yt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lp(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&&Dp(e,t,r),r};class _e extends w{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return f.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),f.notify(this,"checked")}disabledChanged(e,t){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 f.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),f.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}_e.formAssociated=!0,yt([a({mode:"boolean"})],_e.prototype,"autofocus",2),yt([v],_e.prototype,"disabled",2),yt([a({attribute:"disabled",mode:"boolean"})],_e.prototype,"disabledAttribute",2),yt([a({attribute:"form"})],_e.prototype,"formAttribute",2),yt([a({attribute:"checked",mode:"boolean"})],_e.prototype,"initialChecked",2),yt([a({attribute:"value",mode:"fromView"})],_e.prototype,"initialValue",2),yt([a],_e.prototype,"name",2),yt([a({mode:"boolean"})],_e.prototype,"required",2);const Vp={circular:"circular",square:"square"},Hp={medium:"medium",large:"large"};var jp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,ds=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rp(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&&jp(e,t,r),r};class Ki extends _e{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}shapeChanged(e,t){y(this.elementInternals,e,t,Vp)}sizeChanged(e,t){y(this.elementInternals,e,t,Hp)}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)}}ds([v],Ki.prototype,"indeterminate",2),ds([a],Ki.prototype,"shape",2),ds([a],Ki.prototype,"size",2);const qp=p`
|
|
380
380
|
${I("inline-flex")}
|
|
381
381
|
|
|
382
|
-
:host{--size:16px;background-color:${
|
|
383
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${k}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${k}),:host(${
|
|
382
|
+
:host{--size:16px;background-color:${A};border-radius:${Le};border:${N} solid ${Ke};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ft}}:host(:active){border-color:${Mt}}:host(${k}:hover){background-color:${to};border-color:${th}}:host(${k}:active){background-color:${oo};border-color:${Jn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Se} solid ${ae};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${De}}.indeterminate-indicator,.checked-indicator{color:${Et};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(${k})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${k}),:host(${Tt}){border-color:${Dt}}:host(${k}),:host(${Tt}) .indeterminate-indicator{background-color:${Nt}}:host(${Tt}) .indeterminate-indicator{border-radius:${Le};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${C}){--size:20px}:host(${C}) ::slotted([slot='checked-indicator']),:host(${C}) .checked-indicator{width:16px}:host(${wo}),:host(${wo}) .indeterminate-indicator{border-radius:${we}}:host([disabled]),:host([disabled]${k}){background-color:${mt};border-color:${Oe}}:host([disabled]){cursor:unset}:host([disabled]${Tt}) .indeterminate-indicator{background-color:${Oe}}:host([disabled]${k}) .checked-indicator{color:${Oe}}`.withBehaviors(ne(p`
|
|
383
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${k}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${k}),:host(${Tt}) .indeterminate-indicator{background-color:FieldText}:host(${k}:not([disabled]):hover),:host(${Tt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Tt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${k}) .checked-indicator{color:GrayText}`)),Wp=g.partial(`
|
|
384
384
|
<svg
|
|
385
385
|
fill="currentColor"
|
|
386
386
|
aria-hidden="true"
|
|
@@ -391,21 +391,21 @@ const b=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
|
+
`),Gp=g.partial(`
|
|
395
395
|
<span class="indeterminate-indicator"></span>
|
|
396
|
-
`);function
|
|
397
|
-
${
|
|
398
|
-
|
|
399
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${M};line-height:${j}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${
|
|
400
|
-
::slotted([slot='description']){color:${
|
|
401
|
-
:host(${
|
|
402
|
-
${
|
|
403
|
-
${
|
|
404
|
-
${
|
|
405
|
-
|
|
406
|
-
:host(${
|
|
407
|
-
@layer base{:host{--dialog-backdrop:${
|
|
408
|
-
@layer base{dialog{border:${
|
|
396
|
+
`);function Up(o={}){return g`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ve(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ve(o.indeterminateIndicator)}</slot></template>`}const Xp=Up({checkedIndicator:Wp,indeterminateIndicator:Gp}),Kp=Ki.compose({name:`${b.prefix}-checkbox`,template:Xp,styles:qp});Kp.define(b.registry);class Yp extends dt{}const Qp=p`
|
|
397
|
+
${Wi}
|
|
398
|
+
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${M};line-height:${j}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Me};line-height:100%;font-size:${W};font-weight:${H}}::slotted(svg),:host(${C}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Bo}}:host(:active) ::slotted([slot='description']){color:${To}}:host(:is(${$e},${$e}:hover,${$e}:active)) ::slotted([slot='description']){color:${ct}}:host(:is(${T},${T}:hover,${T}:active)) ::slotted([slot='description']),:host(${V}) ::slotted([slot='description']){color:${Me}}:host(${V}:hover) ::slotted([slot='description']){color:${Pi}}:host(${V}:active) ::slotted([slot='description']){color:${zi}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
400
|
+
::slotted([slot='description']){color:${O}}:host(${z}){padding:8px;padding-bottom:10px}:host(${Zt}){min-width:52px;max-width:52px;padding:${le}}:host(${Zt}${z}){min-width:48px;max-width:48px;padding:${Ae}}:host(${Zt}${C}){min-width:56px;max-width:56px;padding:${Qe}}:host(${C}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ye};line-height:${Ce}}:host(${C}) ::slotted([slot='description']){font-size:${M}}`;function Zp(o={}){return g`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ue(o)}<span class="content" part="content"><slot ${X("defaultSlottedContent")}></slot><slot name="description"></slot></span>${bt(o)}</template>`}const Jp=Zp(),eb=Yp.compose({name:`${b.prefix}-compound-button`,template:Jp,styles:Qp});eb.define(b.registry);const tb={filled:"filled",ghost:"ghost"},ob={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},ib={circular:"circular",rounded:"rounded"},rb={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"};var sb=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,xt=(o,e,t,i)=>{for(var r=i>1?void 0:i?nb(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&&sb(e,t,r),r};class et extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,tb)}colorChanged(e,t){y(this.elementInternals,e,t,ob)}shapeChanged(e,t){y(this.elementInternals,e,t,ib)}sizeChanged(e,t){y(this.elementInternals,e,t,rb)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(e,t){$(this.elementInternals,"dot",!!t)}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}xt([a],et.prototype,"appearance",2),xt([a],et.prototype,"color",2),xt([a],et.prototype,"shape",2),xt([a],et.prototype,"size",2),xt([a({converter:se})],et.prototype,"count",2),xt([a({attribute:"overflow-count",converter:se})],et.prototype,"overflowCount",2),xt([a({attribute:"show-zero",mode:"boolean"})],et.prototype,"showZero",2),xt([a({mode:"boolean"})],et.prototype,"dot",2),rt(et,it);const ab=p`
|
|
401
|
+
:host(${lt}){border-radius:${B}}:host(${lt}${zo}),:host(${lt}${Co}),:host(${lt}${z}){border-radius:${Le}}${Fa}
|
|
402
|
+
${Ma}
|
|
403
|
+
${Da}
|
|
404
|
+
${Na}
|
|
405
|
+
|
|
406
|
+
:host(${Ln}),:host(${Ln}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function lb(o={}){return Ha({defaultContent:g`${e=>e.setCount()}`})}const cb=lb(),db=et.compose({name:`${b.prefix}-counter-badge`,template:cb,styles:ab});db.define(b.registry);const tt={modal:"modal",nonModal:"non-modal",alert:"alert"};var hb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,Yi=(o,e,t,i)=>{for(var r=i>1?void 0:i?ub(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&&hb(e,t,r),r};class Do extends w{constructor(){super(...arguments),this.type=tt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){re.enqueue(()=>{this.emitBeforeToggle(),this.type===tt.alert||this.type===tt.modal?this.dialog.showModal():this.type===tt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==tt.alert&&e.target===this.dialog&&this.hide(),!0}}Yi([v],Do.prototype,"dialog",2),Yi([a({attribute:"aria-describedby"})],Do.prototype,"ariaDescribedby",2),Yi([a({attribute:"aria-labelledby"})],Do.prototype,"ariaLabelledby",2),Yi([a],Do.prototype,"type",2);const pb=g`<dialog role="${o=>o.type===tt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===tt.modal||o.type===tt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.type===tt.alert?e.event.preventDefault():o.hide()}" ${U("dialog")}><slot></slot></dialog>`,bb=p`
|
|
407
|
+
@layer base{:host{--dialog-backdrop:${Wr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${A};border-radius:${pa};border:none;box-shadow:${wa};color:${_};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${is};transition-timing-function:${Vt};opacity:0}::backdrop{transition-timing-function:${ss}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Lt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(ne(p`
|
|
408
|
+
@layer base{dialog{border:${N} solid ${ae}}}`)),gb=Do.compose({name:`${b.prefix}-dialog`,template:pb,styles:bb});gb.define(b.registry);var fb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,vb=(o,e,t,i)=>{for(var r=i>1?void 0:i?mb(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&&fb(e,t,r),r};class ja extends w{constructor(){super(...arguments),this.noTitleAction=!1}}vb([a({mode:"boolean",attribute:"no-title-action"})],ja.prototype,"noTitleAction",2);const $b=g.partial(`
|
|
409
409
|
<svg
|
|
410
410
|
fill="currentColor"
|
|
411
411
|
aria-hidden="true"
|
|
@@ -418,57 +418,57 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
418
418
|
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
419
419
|
fill="currentColor"
|
|
420
420
|
></path>
|
|
421
|
-
</svg>`),
|
|
421
|
+
</svg>`),yb=g`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===tt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${U("defaultTitleAction")}>${$b}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,xb=p`
|
|
422
422
|
${I("grid")}
|
|
423
423
|
|
|
424
|
-
:host{background:${
|
|
424
|
+
:host{background:${A};box-sizing:border-box;gap:${te};padding:${Fo} ${Iu};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${A};color:${_};column-gap:8px;display:flex;font-family:${x};font-size:${ro};font-weight:${G};inset-block-start:0;justify-content:space-between;line-height:${Mi};margin-block-end:calc(${te} * -1);margin-block-start:calc(${Fo} * -1);padding-block-end:${te};padding-block-start:${Fo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${_};font-family:${x};font-size:${M};font-weight:${H};line-height:${j};min-height:32px}.actions{box-sizing:border-box;background:${A};display:flex;flex-direction:column;gap:${te};inset-block-end:0;margin-block-end:calc(${Fo} * -1);padding-block-end:${Fo};padding-block-start:${Li};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${te} * -1);padding-block-start:${te}}}`,kb=ja.compose({name:`${b.prefix}-dialog-body`,template:yb,styles:xb});kb.define(b.registry);const Lo={separator:"separator",presentation:"presentation"},Ra=Be,wb={center:"center",start:"start",end:"end"},Cb={strong:"strong",brand:"brand",subtle:"subtle"};var Sb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,qa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ib(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&&Sb(e,t,r),r};class hs extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Lo.separator,this.role!==Lo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Ra.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??Lo.separator}`),t===Lo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==Lo.presentation?t??null:null,y(this.elementInternals,e,t,Ra)}}qa([a],hs.prototype,"role",2),qa([a],hs.prototype,"orientation",2);var Pb=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,us=(o,e,t,i)=>{for(var r=i>1?void 0:i?zb(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&&Pb(e,t,r),r};class Qi extends hs{alignContentChanged(e,t){y(this.elementInternals,e,t,wb,"align-")}appearanceChanged(e,t){y(this.elementInternals,e,t,Cb)}insetChanged(e,t){$(this.elementInternals,"inset",t)}}us([a({attribute:"align-content"})],Qi.prototype,"alignContent",2),us([a],Qi.prototype,"appearance",2),us([a({mode:"boolean"})],Qi.prototype,"inset",2);function Bb(){return g`<slot></slot>`}const Tb=Bb(),Ob=p`
|
|
425
425
|
${I("flex")}
|
|
426
426
|
|
|
427
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${
|
|
428
|
-
:host(${
|
|
427
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${_o};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${N}}:host(${Dr}){padding:0 12px}:host ::slotted(*){color:${Me};font-family:${x};font-size:${W};font-weight:${H};margin:0;padding:0 12px}:host(${Fn})::before,:host(${nt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${P}){height:100%;min-height:84px}:host(${P}):empty{min-height:20px}:host(${P}){flex-direction:column;align-items:center}:host(${P}${Dr})::before{margin-top:12px}:host(${P}${Dr})::after{margin-bottom:12px}:host(${P}):empty::before,:host(${P}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${P})::before,:host(${P})::after{width:${N};min-height:20px;height:100%}:host(${P}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${P}${Fn})::before{min-height:8px}:host(${P}${nt})::after{min-height:8px}:host(${Po})::before,:host(${Po})::after{background:${Ye}}:host(${Po}) ::slotted(*){color:${_}}:host(${Xe})::before,:host(${Xe})::after{background:${Zn}}:host(${Xe}) ::slotted(*){color:${jr}}:host(${T})::before,:host(${T})::after{background:${Jd}}:host(${T}) ::slotted(*){color:${ue}}`.withBehaviors(ne(p`
|
|
428
|
+
:host(${Po})::before,:host(${Po})::after,:host(${Xe})::before,:host(${Xe})::after,:host(${T})::before,:host(${T})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Ab=Qi.compose({name:`${b.prefix}-divider`,template:Tb,styles:Ob});Ab.define(b.registry);const _b={start:"start",end:"end"},Eb={small:"small",medium:"medium",large:"large",full:"full"},ps={nonModal:"non-modal",modal:"modal",inline:"inline"};var Nb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,co=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fb(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&&Nb(e,t,r),r};class jt extends w{constructor(){super(...arguments),this.type=ps.modal,this.position=_b.start,this.size=Eb.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){re.enqueue(()=>{this.emitBeforeToggle(),this.type===ps.inline||this.type===ps.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}}co([a],jt.prototype,"type",2),co([a({attribute:"aria-labelledby"})],jt.prototype,"ariaLabelledby",2),co([a({attribute:"aria-describedby"})],jt.prototype,"ariaDescribedby",2),co([a],jt.prototype,"position",2),co([a({attribute:"size"})],jt.prototype,"size",2),co([v],jt.prototype,"dialog",2);const Mb=p`
|
|
429
429
|
${I("block")}
|
|
430
430
|
|
|
431
|
-
:host{--dialog-backdrop:${
|
|
431
|
+
:host{--dialog-backdrop:${Wr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${M};line-height:${j};font-family:${x};font-weight:${H};color:${_};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${ae};border-inline-start-color:var(--drawer-separator,${ae});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${wa};border:${N} solid ${ae};background:${A}}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:${is};transition-timing-function:${Vt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${Lt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${Lt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${is};transition-timing-function:${Vt};background:var(--dialog-backdrop,${Wr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${ss}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Db(){return g`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.hide()}" ${U("dialog")}><slot></slot></dialog>`}const Lb=Db(),Vb=jt.compose({name:`${b.prefix}-drawer`,template:Lb,styles:Mb});Vb.define(b.registry);class Hb extends w{}const jb=p`
|
|
432
432
|
${I("grid")}
|
|
433
|
-
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${du};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${cp}}.footer{display:flex;justify-content:flex-start;gap:${kt}}`;function $b(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const vb=$b(),yb=fb.compose({name:`${b.prefix}-drawer-body`,template:vb,styles:mb});yb.define(b.registry);function _a(o,t="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(t)}function ts(o,t="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(t)}function Ma(o){return o.closest("[lang]")?.lang??"en"}let xb=0;function Wo(o="id-"){const t=`${o}${xb++}`;return document.getElementById(t)?Wo(o):t}const Da={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},kb={small:"small",medium:"medium",large:"large"},cr={combobox:"combobox",dropdown:"dropdown",select:"select"},wb=g`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${X("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,Cb=g`<input @input="${(o,t)=>o.inputHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" ${X("control")} />`,Sb=g`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" ${X("control")}>${o=>o.displayValue}</button>`;function Ib(o={}){return g`<template @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><div class="control"><slot name="control" ${X("controlSlot")}></slot><slot name="indicator" ${X("indicatorSlot")}>${vt(o.indicator)}</slot></div><slot ${X("listboxSlot")}></slot></template>`}const zb=Ib({indicator:wb});var Pb=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,q=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tb(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Pb(t,e,s),s};class W extends w{constructor(){super(),this.activeIndex=0,this.id=Wo("dropdown-"),this.required=!1,this.type=cr.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",nt.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(t,e){if(typeof e=="number"){const i=this.matches(":has(:focus-visible)")?e:-1;this.enabledOptions.forEach((s,r)=>{s.active=r===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(t,e){e&&(e.id=e.id||Wo("input-"),this.controlSlot?.assign(e))}disabledChanged(t,e){nt.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return v(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Ma(this),{type:"conjunction",style:"narrow"});const t=this.listFormatter.format(this.selectedOptions.map(e=>e.text));return v(this.elementInternals,"placeholder-shown",!t),this.isCombobox?t:t||this.placeholder}listboxChanged(t,e){if(t&&f.getNotifier(this).unsubscribe(t),e){e.dropdown=this,e.popover="manual",this.listboxSlot.assign(e);const i=f.getNotifier(this);i.subscribe(e);for(const s of["disabled","multiple"])i.notify(s);nt.enqueue(()=>{this.enabledOptions.filter(s=>s.defaultSelected).forEach((s,r)=>{s.selected=this.multiple||r===0})})}}multipleChanged(t,e){this.elementInternals.ariaMultiSelectable=e?"true":"false",v(this.elementInternals,"multiple",e),this.value=null}nameChanged(t,e){nt.enqueue(()=>{this.options.forEach(i=>{i.name=e})})}openChanged(t,e){v(this.elementInternals,"open",e),this.elementInternals.ariaExpanded=e?"true":"false",this.activeIndex=this.selectedIndex??-1}typeChanged(t,e){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((t,e)=>{if(this.multiple){t.selected=!!t.defaultSelected;return}if(!t.defaultSelected){t.selected=!1;return}this.selectOption(e)})}get freeformOption(){return this.enabledOptions.find(t=>t.freeform)}get isCombobox(){return this.type===cr.combobox}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(t=>t.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this.validationFallbackMessage){const t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this.validationFallbackMessage=t.validationMessage}return this.validationFallbackMessage}get value(){return f.notify(this,"value"),this.enabledOptions.find(t=>t.selected)?.value??null}set value(t){this.multiple||(this.selectOption(this.enabledOptions.findIndex(e=>e.value===t)),f.track(this,"value"))}changeHandler(t){if(this===t.target)return!0;const e=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(t.target);return this.selectOption(e,!0),!0}clickHandler(t){if(this.disabled)return;const e=t.target;if(this.focus(),e===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(ts(e)){if(e.disabled)return;this.selectOption(this.enabledOptions.indexOf(e),!0),this.multiple||(this.isCombobox&&(this.control.value=e.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(t,e=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(Ma(this),{usage:"search",sensitivity:"base"})),e.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,t.length)),t)===0)}focus(t){this.disabled||this.control.focus(t)}focusoutHandler(t){const e=t.relatedTarget;return this.open&&!this.contains(e)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(t,e=this.enabledOptions.length||0){return e===0?-1:(t+e)%e}inputHandler(t){this.open||this.listbox.showPopover(),this.updateFreeformOption();const e=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(e)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(t=>this.removeChild(t)),this.type===cr.combobox){Cb.render(this,this);return}Sb.render(this,this)}keydownHandler(t){let e=0;switch(t.key){case"ArrowUp":{t.preventDefault(),e=-1;break}case"ArrowDown":{t.preventDefault(),e=1;break}case" ":{if(this.isCombobox)break;t.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),t.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!e)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=e;let s=this.getEnabledIndexInBounds(i);return s===0&&this.freeformOption?.hidden&&(s=this.getEnabledIndexInBounds(i+e)),this.activeIndex=s,!0}mousedownHandler(t){if(!(this.disabled||t.target===this.control&&!this.isCombobox))return!ts(t.target)}selectOption(t=this.selectedIndex,e=!1){this.listbox.selectOption(t),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),e&&this.$emit("change")}setValidity(t,e,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const s=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:s,...t},e??this.validationMessage,i??this.listbox.enabledOptions[0])}}updateFreeformOption(t=this.control.value){if(this.freeformOption){if(t===""||this.filterOptions(t,this.enabledOptions.filter(e=>!e.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=t,this.freeformOption.hidden=!1}}}W.formAssociated=!0,q([fs],W.prototype,"activeDescendant",1),q([$],W.prototype,"activeIndex",2),q([a({attribute:"aria-labelledby",mode:"fromView"})],W.prototype,"ariaLabelledBy",2),q([$],W.prototype,"control",2),q([a({mode:"boolean"})],W.prototype,"disabled",2),q([fs],W.prototype,"displayValue",1),q([a({attribute:"id"})],W.prototype,"id",2),q([$],W.prototype,"indicator",2),q([$],W.prototype,"indicatorSlot",2),q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),q([$],W.prototype,"listbox",2),q([$],W.prototype,"listboxSlot",2),q([a({mode:"boolean"})],W.prototype,"multiple",2),q([a],W.prototype,"name",2),q([$],W.prototype,"open",2),q([a],W.prototype,"placeholder",2),q([a({mode:"boolean"})],W.prototype,"required",2),q([a],W.prototype,"type",2),q([a({attribute:"value"})],W.prototype,"valueAttribute",2);const dr=class ko extends W{constructor(){super(),this.appearance=Da.outline,this.addEventListener("connected",this.listboxConnectedHandler)}appearanceChanged(t,e){y(this.elementInternals,t,e,Da)}sizeChanged(t,e){y(this.elementInternals,t,e,kb)}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){ko.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(t){const e=t.target;_a(e)&&(this.listbox=e)}openChanged(t,e){if(super.openChanged(t,e),e){ko.AnchorPositionFallbackObserver?.observe(this.listbox);return}ko.AnchorPositionFallbackObserver?.unobserve(this.listbox)}anchorPositionFallback(){ko.AnchorPositionFallbackObserver=ko.AnchorPositionFallbackObserver??new IntersectionObserver(t=>{t.forEach(({boundingClientRect:e,isIntersecting:i,target:s})=>{if(_a(s)&&!i){if(e.bottom>window.innerHeight){v(s.dropdown.elementInternals,"flip-block",!0);return}e.top<0&&v(s.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};q([a],dr.prototype,"appearance",2),q([a],dr.prototype,"size",2);let Bb=dr;const Ab=p`
|
|
433
|
+
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Su};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${zp}}.footer{display:flex;justify-content:flex-start;gap:${xe}}`;function Rb(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const qb=Rb(),Wb=Hb.compose({name:`${b.prefix}-drawer-body`,template:qb,styles:jb});Wb.define(b.registry);function Wa(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Zi(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ga(o){return o.closest("[lang]")?.lang??"en"}let Gb=0;function Vo(o="id-"){const e=`${o}${Gb++}`;return document.getElementById(e)?Vo(o):e}const Ua={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ub={small:"small",medium:"medium",large:"large"},bs={combobox:"combobox",dropdown:"dropdown",select:"select"},Xb=g`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${U("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>`,Kb=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}" ${U("control")} />`,Yb=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" ${U("control")}>${o=>o.displayValue}</button>`;function Qb(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" ${U("controlSlot")}></slot><slot name="indicator" ${U("indicatorSlot")}>${ve(o.indicator)}</slot></div><slot ${U("listboxSlot")}></slot></template>`}const Zb=Qb({indicator:Xb});var Jb=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,Q=(o,e,t,i)=>{for(var r=i>1?void 0:i?eg(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&&Jb(e,t,r),r};class R extends w{constructor(){super(),this.activeIndex=0,this.id=Vo("dropdown-"),this.required=!1,this.type=bs.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",re.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||Vo("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){re.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Ga(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&&f.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const i=f.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);re.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0})})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){re.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)})}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===bs.combobox}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this.validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this.validationFallbackMessage=e.validationMessage}return this.validationFallbackMessage}get value(){return f.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),f.track(this,"value"))}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Zi(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(Ga(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===bs.combobox){Kb.render(this,this);return}Yb.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!Zi(e.target)}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.listbox.enabledOptions[0])}}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}}R.formAssociated=!0,Q([mr],R.prototype,"activeDescendant",1),Q([v],R.prototype,"activeIndex",2),Q([a({attribute:"aria-labelledby",mode:"fromView"})],R.prototype,"ariaLabelledBy",2),Q([v],R.prototype,"control",2),Q([a({mode:"boolean"})],R.prototype,"disabled",2),Q([mr],R.prototype,"displayValue",1),Q([a({attribute:"id"})],R.prototype,"id",2),Q([v],R.prototype,"indicator",2),Q([v],R.prototype,"indicatorSlot",2),Q([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),Q([v],R.prototype,"listbox",2),Q([v],R.prototype,"listboxSlot",2),Q([a({mode:"boolean"})],R.prototype,"multiple",2),Q([a],R.prototype,"name",2),Q([v],R.prototype,"open",2),Q([a],R.prototype,"placeholder",2),Q([a({mode:"boolean"})],R.prototype,"required",2),Q([a],R.prototype,"type",2),Q([a({attribute:"value"})],R.prototype,"valueAttribute",2);var tg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,Xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?og(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&&tg(e,t,r),r};const gs=class mo extends R{constructor(){super(),this.appearance=Ua.outline,this.addEventListener("connected",this.listboxConnectedHandler)}appearanceChanged(e,t){y(this.elementInternals,e,t,Ua)}sizeChanged(e,t){y(this.elementInternals,e,t,Ub)}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){mo.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;Wa(t)&&(this.listbox=t)}openChanged(e,t){if(super.openChanged(e,t),t){mo.AnchorPositionFallbackObserver?.observe(this.listbox);return}mo.AnchorPositionFallbackObserver?.unobserve(this.listbox)}anchorPositionFallback(){mo.AnchorPositionFallbackObserver=mo.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:i,target:r})=>{if(Wa(r)&&!i){if(t.bottom>window.innerHeight){$(r.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&$(r.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};Xa([a],gs.prototype,"appearance",2),Xa([a],gs.prototype,"size",2);let ig=gs;const rg=p`
|
|
434
434
|
${I("inline-flex")}
|
|
435
435
|
|
|
436
|
-
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${
|
|
436
|
+
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${Zc}){color:${Hr}}.control{appearance:none;background-color:${A};border-radius:${B};border:none;box-shadow:inset 0 0 0 ${N} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${ee};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${Ze} ${be};position:relative;text-align:start;width:100%;z-index:1;${La}}:host(${z}) .control{column-gap:${ee};padding:${so} ${le};${Va}}:host(${C}) .control{column-gap:${Qe};padding:${te} ${xe};${Pp}}::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:${ue};display:inline-flex;justify-content:center;width:20px}:host(${z}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${C}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${N}}.control::after{background-color:${Dt};height:${Se};scale:0 1;transition:scale ${ts} ${Vt}}:host(:where(${Xc},:focus-within)) .control::after{scale:1 1;transition-duration:${Vi};transition-timing-function:${Lt}}:host(:where(${E},${V})) .control::before{background-color:${Ke}}:host(${V}) .control{--control-border-color:${Xr};background-color:${Te};border-radius:${_i}}:host(${E}) .control{--control-border-color:${Ye}}:host(${E}) .control:hover{--control-border-color:${io}}:host(:where(${E},${V})) .control:hover::before{background-color:${Ft}}:host(${E}) .control:hover::after{background-color:${to}}:host(${E}) .control:active{--control-border-color:${Ao}}:host(:where(${E},${V})) .control:active::before{background-color:${Mt}}:host(:where(${E},${V})) .control:active::after{background-color:${oo}}:host(${gt}) .control{background-color:${Oo}}:host(:where(${Bt},${gt})) .control{--control-border-color:${ae}}: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:${Oe};background-color:${mt};color:${O}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${j} + (${Ze} * 2) + ${N});max-height:50vh}:host(${z}) ::slotted([popover]){margin-block-start:calc(${J} + (${so} * 2) + ${N})}:host(${C}) ::slotted([popover]){margin-block-start:calc(${Ce} + (${te} * 2) + ${N})}:host(${zc}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,sg=ig.compose({name:`${b.prefix}-dropdown`,template:Zb,styles:rg,shadowOptions:{slotAssignment:"manual"}});sg.define(b.registry);const ng={above:"above",after:"after",before:"before"},Ee={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 ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Ji=(o,e,t,i)=>{for(var r=i>1?void 0:i?lg(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&&ag(e,t,r),r};class Ho extends w{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if($(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(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||Qt("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(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(Ee))$(this.elementInternals,t,this.input.validity[e])}}Ji([v],Ho.prototype,"labelSlot",2),Ji([v],Ho.prototype,"messageSlot",2),Ji([v],Ho.prototype,"slottedInputs",2),Ji([v],Ho.prototype,"input",2);var cg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,hg=(o,e,t,i)=>{for(var r=i>1?void 0:i?dg(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&&cg(e,t,r),r};class Ka extends Ho{constructor(){super(...arguments),this.labelPosition=ng.above}}hg([a({attribute:"label-position"})],Ka.prototype,"labelPosition",2);const ug=p`
|
|
437
437
|
${I("inline-grid")}
|
|
438
438
|
|
|
439
|
-
:host{color:${
|
|
440
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${
|
|
439
|
+
:host{color:${_};align-items:center;gap:0 ${xe};justify-items:start;position:relative}:has([slot='message']){color:${_};row-gap:${te}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${xe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${No}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Pu}}:host([label-position='below']:not(${_c})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${No};grid-area:message}:host(${Bc}:focus-within){border-radius:${B};outline:${Se} solid ${De}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${x};font-size:${M};font-weight:${H};grid-area:label;line-height:${j};user-select:none}:host([size='small']) ::slotted(label){font-size:${W};line-height:${J}}:host([size='large']) ::slotted(label){font-size:${ye};line-height:${Ce}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${G}}:host(${F}){cursor:default}::slotted([flag]){display:none}:host(${cc}) ::slotted([flag='${Ee.badInput}']),:host(${$c}) ::slotted([flag='${Ee.customError}']),:host(${Kc}) ::slotted([flag='${Ee.patternMismatch}']),:host(${id}) ::slotted([flag='${Ee.rangeOverflow}']),:host(${rd}) ::slotted([flag='${Ee.rangeUnderflow}']),:host(${kd}) ::slotted([flag='${Ee.stepMismatch}']),:host(${Cd}) ::slotted([flag='${Ee.tooLong}']),:host(${Sd}) ::slotted([flag='${Ee.tooShort}']),:host(${Id}) ::slotted([flag='${Ee.typeMismatch}']),:host(${Bd}) ::slotted([flag='${Ee.valueMissing}']),:host(${zd}) ::slotted([flag='${Ee.valid}']){display:block}`,pg=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)}" ${Nl({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:Pt()})}><slot name="label" part="label" ${X("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${X({property:"messageSlot",filter:Pt("[flag]")})}></slot></template>`,bg=Ka.compose({name:`${b.prefix}-field`,template:pg,styles:ug,shadowOptions:{delegatesFocus:!0}});bg.define(b.registry);const gg={none:"none",center:"center",contain:"contain",cover:"cover"},fg={circular:"circular",rounded:"rounded",square:"square"};var mg=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,jo=(o,e,t,i)=>{for(var r=i>1?void 0:i?vg(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&&mg(e,t,r),r};class ho extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(e,t){$(this.elementInternals,"block",t)}borderedChanged(e,t){$(this.elementInternals,"bordered",t)}shadowChanged(e,t){$(this.elementInternals,"shadow",t)}fitChanged(e,t){y(this.elementInternals,e,t,gg,"fit-")}shapeChanged(e,t){y(this.elementInternals,e,t,fg)}}jo([a({mode:"boolean"})],ho.prototype,"block",2),jo([a({mode:"boolean"})],ho.prototype,"bordered",2),jo([a({mode:"boolean"})],ho.prototype,"shadow",2),jo([a],ho.prototype,"fit",2),jo([a],ho.prototype,"shape",2);const $g=g`<slot></slot>`,yg=p`
|
|
440
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${ko}) ::slotted(img){width:100%;height:auto}:host(${pc}) ::slotted(img){border:${N} solid ${_o}}:host(${Pc}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${Cc}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${Sc}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${Ic}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${hd}) ::slotted(img){box-shadow:${Di}}:host(${wo}) ::slotted(img){border-radius:${we}}:host(${lt}) ::slotted(img){border-radius:${B}}`,xg=ho.compose({name:`${b.prefix}-image`,template:$g,styles:yg});xg.define(b.registry);const kg={small:"small",medium:"medium",large:"large"},wg={regular:"regular",semibold:"semibold"};var Cg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,er=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sg(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&&Cg(e,t,r),r};class Ro extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(e,t){y(this.elementInternals,e,t,kg)}weightChanged(e,t){y(this.elementInternals,e,t,wg)}disabledChanged(e,t){$(this.elementInternals,"disabled",t)}}er([a],Ro.prototype,"size",2),er([a],Ro.prototype,"weight",2),er([a({mode:"boolean"})],Ro.prototype,"disabled",2),er([a({mode:"boolean"})],Ro.prototype,"required",2);const Ig=p`
|
|
441
441
|
${I("inline-flex")}
|
|
442
442
|
|
|
443
|
-
:host{color:${
|
|
443
|
+
:host{color:${_};cursor:pointer;font-family:${x};font-size:${M};font-weight:${H};line-height:${j};user-select:none}.asterisk{color:${ia};margin-inline-start:${Ae}}:host(${z}){font-size:${W};line-height:${J}}:host(${C}){font-size:${ye};line-height:${Ce}}:host(:is(${C},${jn})){font-weight:${G}}:host(${F}),:host(${F}) .asterisk{color:${O}}`;function Pg(){return g`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const zg=Pg(),Bg=Ro.compose({name:`${b.prefix}-label`,template:zg,styles:Ig});Bg.define(b.registry);const Tg={subtle:"subtle"};var Og=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,Ya=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ag(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&&Og(e,t,r),r};class fs extends Je{constructor(){super(...arguments),this.inline=!1}appearanceChanged(e,t){y(this.elementInternals,e,t,Tg)}inlineChanged(e,t){$(this.elementInternals,"inline",t)}}Ya([a],fs.prototype,"appearance",2),Ya([a({mode:"boolean"})],fs.prototype,"inline",2);const _g=p`
|
|
444
444
|
${I("inline")}
|
|
445
445
|
|
|
446
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${
|
|
447
|
-
:host{color:LinkText}`));function
|
|
446
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${Nd};cursor:pointer;font-family:${x};font-size:${M};font-weight:${H};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${N};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Fd}}:host(:active){color:${Md}}:host(${T}:hover){color:${Ld}}:host(${T}:active){color:${Vd}}}:host(${T}){color:${Dd}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${Nc}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(ne(p`
|
|
447
|
+
:host{color:LinkText}`));function Eg(){return g`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Ng=Eg(),Fg=fs.compose({name:`${b.prefix}-link`,template:Ng,styles:_g});Fg.define(b.registry);var Mg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,qo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dg(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&&Mg(e,t,r),r};class uo extends w{constructor(){super(),this.id=Vo("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),re.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Zi(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),this.$emit("connected")}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const s=r===e;i.selected=s,s&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}}qo([a({attribute:"id",mode:"fromView"})],uo.prototype,"id",2),qo([v],uo.prototype,"multiple",2),qo([v],uo.prototype,"options",2),qo([v],uo.prototype,"selectedIndex",2),qo([v],uo.prototype,"dropdown",2);const Lg=p`
|
|
448
448
|
${I("inline-flex")}
|
|
449
449
|
|
|
450
|
-
:host{background-color:${
|
|
450
|
+
:host{background-color:${A};border-radius:${B};border:none;box-shadow:${Jr};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${Ae};row-gap:${ee};width:auto}`;function Vg(){return g`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${X({property:"options",filter:o=>Zi(o)})}></slot></template>`}const Hg=Vg(),jg=uo.compose({name:`${b.prefix}-listbox`,template:Hg,styles:Lg});jg.define(b.registry);class Rg extends dt{}const qg=cs({end:g.partial(`
|
|
451
451
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
452
452
|
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
453
453
|
</svg>
|
|
454
|
-
`)}),
|
|
454
|
+
`)}),Wg=Rg.compose({name:`${b.prefix}-menu-button`,template:qg,styles:Wi});Wg.define(b.registry);const ce={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ce.menuitem+"",ce.menuitemcheckbox+"",ce.menuitemradio+"";var Gg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,po=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ug(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&&Gg(e,t,r),r};class Ve extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ce.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case mi:case Tr:return this.invoke(),!1;case bi:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case pi: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 ce.menuitemcheckbox:this.checked=!this.checked;break;case ce.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ce.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ce.menuitem}checkedChanged(e,t){const i=this.role!==ce.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,$(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.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??ce.menuitem,this.elementInternals.ariaChecked=this.role!==ce.menuitem?`${!!this.checked}`:null}}po([a({mode:"boolean"})],Ve.prototype,"disabled",2),po([a],Ve.prototype,"role",2),po([a({mode:"boolean"})],Ve.prototype,"checked",2),po([a({mode:"boolean"})],Ve.prototype,"hidden",2),po([v],Ve.prototype,"slottedSubmenu",2),po([v],Ve.prototype,"submenu",2),rt(Ve,it);const Xg=p`
|
|
455
455
|
${I("grid")}
|
|
456
456
|
|
|
457
|
-
:host{--indent:0;align-items:center;background:${
|
|
458
|
-
:host(${
|
|
457
|
+
:host{--indent:0;align-items:center;background:${A};border-radius:${B};color:${Me};contain:layout;cursor:pointer;flex-shrink:0;font:${H} ${M} / ${j} ${x};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Bi};color:${Bo}}:host(:active){background-color:${Un};color:${To}}:host(:active) ::slotted([slot='start']){color:${Hd}}:host(${F}){background-color:${mt};color:${O}}:host(${F}) ::slotted([slot='start']),:host(${F}) ::slotted([slot='end']){color:${O}}:host(:focus-visible){border-radius:${B};outline:2px solid ${De}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${k})) .indicator,:host(:not(${k})) ::slotted([slot='indicator']),:host(:not(${Ii})) .submenu-glyph,:host(:not(${Ii})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ue};font:${H} ${W} / ${J} ${x};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Ii}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Ii}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(ne(p`
|
|
458
|
+
:host(${F}),:host(${F}) ::slotted([slot='start']),:host(${F}) ::slotted([slot='end']){color:GrayText}`)),Kg=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>'),Yg=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 Qg(o={}){return g`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${ve(o.indicator)}</slot>${Ue(o)}<div part="content" class="content"><slot></slot></div>${bt(o)}<slot name="submenu-glyph">${ve(o.submenuGlyph)}</slot><slot name="submenu" ${X({property:"slottedSubmenu"})}></slot></template>`}const Zg=Qg({indicator:Kg,submenuGlyph:Yg}),Jg=Ve.compose({name:`${b.prefix}-menu-item`,template:Zg,styles:Xg});Jg.define(b.registry);var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,of=(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};const ms=class zs extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&An(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],d=n.getAttribute("role");if(d===ce.menuitemradio&&(n.checked=!1),d==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],d=n.getAttribute("role");if(d===ce.menuitemradio&&(n.checked=!1),d==="separator")break}}},this.isMenuItemElement=e=>e instanceof Ve||An(e)&&e.getAttribute("role")in zs.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(),re.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 ui:this.setFocus(this.focusIndex+1,1);return;case gi:this.setFocus(this.focusIndex-1,-1);return;case fi:this.setFocus(this.menuItems.length-1,-1);return;case vi:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),f.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==ce.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>f.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,d)=>{n.setAttribute("tabindex",d===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,d)=>{const u=zs.elementIndent(d);return Math.max(n,u)},0);r?.forEach(n=>{n instanceof Ve&&n.setAttribute("data-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 i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};ms.focusableElementRoles=ce,of([v],ms.prototype,"items",2);let rf=ms;const sf=p`
|
|
459
459
|
${I("flex")}
|
|
460
460
|
|
|
461
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${
|
|
461
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${A};border:1px solid ${ae};border-radius:${B};box-shadow:${Jr};padding:4px;row-gap:2px}`;function nf(){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 ${X("items")}></slot></template>`}const af=nf(),lf=rf.compose({name:`${b.prefix}-menu-list`,template:af,styles:sf});lf.define(b.registry);var cf=Object.defineProperty,df=Object.getOwnPropertyDescriptor,kt=(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 ht extends w{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ve&&(e.target.getAttribute("role")===ce.menuitemcheckbox||e.target.getAttribute("role")===ce.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Tr:case mi:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),re.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){re.enqueue(()=>{this._menuList.focus()})}focusTrigger(){re.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 Xl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Kl: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}}}kt([a({attribute:"open-on-hover",mode:"boolean"})],ht.prototype,"openOnHover",2),kt([a({attribute:"open-on-context",mode:"boolean"})],ht.prototype,"openOnContext",2),kt([a({attribute:"close-on-scroll",mode:"boolean"})],ht.prototype,"closeOnScroll",2),kt([a({attribute:"persist-on-item-click",mode:"boolean"})],ht.prototype,"persistOnItemClick",2),kt([a({mode:"boolean"})],ht.prototype,"split",2),kt([v],ht.prototype,"slottedMenuList",2),kt([v],ht.prototype,"slottedTriggers",2),kt([v],ht.prototype,"primaryAction",2);const hf=p`
|
|
462
462
|
${I("inline-block")}
|
|
463
463
|
|
|
464
|
-
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${
|
|
465
|
-
:host{display:grid;box-sizing:border-box;font-family:${x};font-size:${
|
|
466
|
-
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${
|
|
464
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${N} solid ${Ye};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${N} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function uf(){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" ${U("primaryAction")}></slot><slot name="trigger" ${X({property:"slottedTriggers",filter:Pt()})}></slot><slot ${X({property:"slottedMenuList",filter:Pt()})}></slot></template>`}const pf=uf(),bf=ht.compose({name:`${b.prefix}-menu`,template:pf,styles:hf});bf.define(b.registry);const gf={multiline:"multiline",singleline:"singleline"},ff={rounded:"rounded",square:"square"},mf={success:"success",warning:"warning",error:"error",info:"info"};var vf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,vs=(o,e,t,i)=>{for(var r=i>1?void 0:i?$f(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&&vf(e,t,r),r};class tr extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(e,t){y(this.elementInternals,e,t,ff)}layoutChanged(e,t){y(this.elementInternals,e,t,gf)}intentChanged(e,t){y(this.elementInternals,e,t,mf)}}vs([a],tr.prototype,"shape",2),vs([a],tr.prototype,"layout",2),vs([a],tr.prototype,"intent",2);const yf=p`
|
|
465
|
+
:host{display:grid;box-sizing:border-box;font-family:${x};font-size:${W};line-height:${J};width:100%;background:${Oo};border:1px solid ${Ye};padding-inline:${xe};border-radius:${B};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${Io}){border-radius:0}:host(${Ot}){background-color:${sa};border-color:${nh}}:host(${_t}){background-color:${aa};border-color:${ca}}:host(${Mr}){background-color:${ea};border-color:${oa}}:host(${So}){grid-template-areas:'icon body dismiss'
|
|
466
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${no};padding-inline:${xe}}.content{grid-area:body;max-width:520px;padding-block:${no};padding-inline:0}:host(${So}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ue};margin-inline-end:${Qe}}:host(${So}) ::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:${Qe};gap:${Qe}}:host(${So}) .actions{margin-block-start:${no};margin-inline-end:0}:host(${So}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${te}}::slotted(*){font-size:inherit}`;function xf(){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 kf=xf(),wf=tr.compose({name:`${b.prefix}-message-bar`,template:kf,styles:yf,shadowOptions:{mode:b.shadowRootMode}});wf.define(b.registry);var Cf=Object.defineProperty,Sf=Object.getOwnPropertyDescriptor,Pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sf(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 fe extends w{constructor(){super(),this.active=!1,this.id=Vo("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)}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 f.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,re.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),f.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return f.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),f.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}fe.formAssociated=!0,Pe([v],fe.prototype,"active",2),Pe([a({attribute:"current-selected",mode:"boolean"})],fe.prototype,"currentSelected",2),Pe([a({attribute:"selected",mode:"boolean"})],fe.prototype,"defaultSelected",2),Pe([v],fe.prototype,"descriptionSlot",2),Pe([v],fe.prototype,"disabled",2),Pe([a({attribute:"disabled",mode:"boolean"})],fe.prototype,"disabledAttribute",2),Pe([a({attribute:"form"})],fe.prototype,"formAttribute",2),Pe([a({mode:"boolean"})],fe.prototype,"freeform",2),Pe([a({attribute:"id"})],fe.prototype,"id",2),Pe([a({attribute:"value",mode:"fromView"})],fe.prototype,"initialValue",2),Pe([v],fe.prototype,"multiple",2),Pe([a],fe.prototype,"name",2),Pe([v],fe.prototype,"start",2),Pe([a({attribute:"text",mode:"fromView"})],fe.prototype,"textAttribute",2);const If=p`
|
|
467
467
|
${I("inline-grid")}
|
|
468
468
|
|
|
469
|
-
:host{-webkit-tap-highlight-color:transparent;${
|
|
470
|
-
align-items:center;background-color:${
|
|
471
|
-
'indicator start description'}::slotted([slot='description']){color:${
|
|
469
|
+
:host{-webkit-tap-highlight-color:transparent;${La}
|
|
470
|
+
align-items:center;background-color:${A};border-radius:${B};border:${Se} solid ${ae};box-sizing:border-box;color:${Me};column-gap:${Ae};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${le}}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Bi};color:${Bo}}:host(:active){background-color:${Ti};color:${To}}:host(:disabled){background-color:${A};color:${O};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(${Lr}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Jt}) .checkmark-16-filled,:host(:not(${Jt})) .checkmark-12-regular{display:none}:host(${Jt}) .checkmark-12-regular{background-color:${A};border-radius:${Le};border:${N} solid ${Ke};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Jt}${Lr}) .checkmark-12-regular{background-color:${Nt};border-color:${Dt};fill:${Et}}:host(:disabled${Jt}) .checkmark-12-regular{border-color:${Oe}}:host(:disabled${Jt}${Lr}) .checkmark-12-regular{background-color:${mt}}:host(${ac}){border:${Se} solid ${De}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${le}}}:host(${kc}){column-gap:${le};grid-template-areas:'indicator start content'
|
|
471
|
+
'indicator start description'}::slotted([slot='description']){color:${ue};grid-area:description;${Va}}`,Pf=g.partial(`
|
|
472
472
|
<svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
|
|
473
473
|
<path
|
|
474
474
|
d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"
|
|
@@ -479,84 +479,84 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
479
479
|
d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"
|
|
480
480
|
/>
|
|
481
481
|
</svg>
|
|
482
|
-
`);function
|
|
482
|
+
`);function zf(o={}){return g`<slot name="checked-indicator">${ve(o.checkedIndicator)}</slot>${Ue(o)}<div class="content" part="content"><slot ${X({property:"freeformOutputs",filter:Pt("output")})}></slot></div><div class="description" part="description"><slot name="description" ${X("descriptionSlot")}></slot></div>`}const Bf=zf({checkedIndicator:Pf}),Tf=fe.compose({name:`${b.prefix}-option`,template:Bf,styles:If});Tf.define(b.registry);const Of={medium:"medium",large:"large"},Af={rounded:"rounded",square:"square"},_f={success:"success",warning:"warning",error:"error"};var Ef=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,Wo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nf(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 bo extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){y(this.elementInternals,e,t,_f)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null}get percentComplete(){const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e;return r===0?0:Math.fround((i-e)/r*100)}}Wo([a({attribute:"validation-state"})],bo.prototype,"validationState",2),Wo([a({converter:se})],bo.prototype,"value",2),Wo([a({converter:se})],bo.prototype,"min",2),Wo([a({converter:se})],bo.prototype,"max",2),Wo([mr],bo.prototype,"percentComplete",1);var Ff=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,Qa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mf(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&&Ff(e,t,r),r};class $s extends bo{thicknessChanged(e,t){y(this.elementInternals,e,t,Of)}shapeChanged(e,t){y(this.elementInternals,e,t,Af)}}Qa([a],$s.prototype,"thickness",2),Qa([a],$s.prototype,"shape",2);const Df=p`
|
|
483
483
|
${I("block")}
|
|
484
484
|
|
|
485
|
-
:host{width:100%;height:2px;overflow-x:hidden;background-color:${
|
|
486
|
-
to right,${
|
|
487
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${
|
|
488
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${
|
|
485
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${Oi};border-radius:${B};contain:content}:host(${C}){height:4px}:host(${Io}){border-radius:${_i}}.indicator{background-color:${Nt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
486
|
+
to right,${Oi} 0%,${Te} 50%,${Oi} 100%
|
|
487
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Mr}) .indicator{background-color:${ta}}:host(${_t}) .indicator{background-color:${la}}:host(${Ot}) .indicator{background-color:${na}}@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(ne(p`
|
|
488
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${Ot},${_t},${Mr})) .indicator{background-color:Highlight}`));function Lf(){return g`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Vf=Lf(),Hf=$s.compose({name:`${b.prefix}-progress-bar`,template:Vf,styles:Df});Hf.define(b.registry);class Za extends _e{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),t&&(this.tabIndex=-1),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function Ja(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const el=Be;var jf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Rt=(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&&jf(e,t,r),r};class ut extends w{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??el.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??el.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const r=Ul(this.enabledRadios,n=>n.initialChecked);t.forEach((n,d)=>{n.ariaPosInSet=`${d+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=d===r,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),re.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return f.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),f.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}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=Ar(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===Ja(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;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(Ja(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){re.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof Za)})}}ut.formAssociated=!0,Rt([v],ut.prototype,"checkedIndex",2),Rt([a({attribute:"disabled",mode:"boolean"})],ut.prototype,"disabled",2),Rt([a({attribute:"value",mode:"fromView"})],ut.prototype,"initialValue",2),Rt([a],ut.prototype,"name",2),Rt([a],ut.prototype,"orientation",2),Rt([v],ut.prototype,"radios",2),Rt([a({mode:"boolean"})],ut.prototype,"required",2);const qf=p`
|
|
489
489
|
${I("flex")}
|
|
490
490
|
|
|
491
|
-
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${
|
|
491
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Li}}:host(${F}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ue}}::slotted(:hover){color:${Me}}::slotted(:active){color:${_}}::slotted(${F}){color:${O}}::slotted(${k}){color:${_}}`;function Wf(){return g`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Gf=Wf(),Uf=ut.compose({name:`${b.prefix}-radio-group`,template:Gf,styles:qf});Uf.define(b.registry);const Xf=p`
|
|
492
492
|
${I("inline-flex")}
|
|
493
493
|
|
|
494
|
-
:host{--size:16px;aspect-ratio:1;background-color:${
|
|
495
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${
|
|
494
|
+
:host{--size:16px;aspect-ratio:1;background-color:${A};border:${N} solid ${Ke};border-radius:${we};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${we};color:${Et};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:${Se} solid ${ae};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${De}}:host(:hover){border-color:${Ft}}:host(${k}){border-color:${Dt}}:host(${k}) .checked-indicator{background-color:${Nt}}:host(${k}:hover) .checked-indicator{background-color:${to}}:host(:active){border-color:${Mt}}:host(${k}:active) .checked-indicator{background-color:${oo}}:host(:focus-visible){outline:none}:host(${F}){background-color:${mt};border-color:${Oe}}:host(${k}${F}) .checked-indicator{background-color:${Oe}}`.withBehaviors(ne(p`
|
|
495
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${F}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${k}) .checked-indicator{background-color:FieldText}:host(${k}:not(${F}):hover) .checked-indicator{background-color:Highlight}:host(${F}){border-color:GrayText;color:GrayText}:host(${F}${k}) .checked-indicator{background-color:GrayText}`)),Kf=g.partial(`
|
|
496
496
|
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
497
|
-
`);function
|
|
497
|
+
`);function Yf(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ve(o.checkedIndicator)}</slot></template>`}const Qf=Yf({checkedIndicator:Kf}),Zf=Za.compose({name:`${b.prefix}-radio`,template:Qf,styles:Xf});Zf.define(b.registry);var Jf=Object.defineProperty,em=Object.getOwnPropertyDescriptor,go=(o,e,t,i)=>{for(var r=i>1?void 0:i?em(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&&Jf(e,t,r),r};class qt extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let r=0;r<this.getMaxIcons();r++){const s=(r+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${s===i?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}go([a({converter:se})],qt.prototype,"count",2),go([a({attribute:"icon-view-box"})],qt.prototype,"iconViewBox",2),go([a({converter:se})],qt.prototype,"max",2),go([a({converter:se})],qt.prototype,"value",2),go([v],qt.prototype,"slottedIcon",2),go([v],qt.prototype,"customIcon",2);const tm={neutral:"neutral",brand:"brand",marigold:"marigold"},om={small:"small",medium:"medium",large:"large"};var im=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,ys=(o,e,t,i)=>{for(var r=i>1?void 0:i?rm(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&&im(e,t,r),r};class or extends qt{constructor(){super(...arguments),this.compact=!1}colorChanged(e,t){y(this.elementInternals,e,t,tm)}sizeChanged(e,t){y(this.elementInternals,e,t,om)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}ys([a],or.prototype,"color",2),ys([a],or.prototype,"size",2),ys([a({mode:"boolean"})],or.prototype,"compact",2);const sm=p`
|
|
498
498
|
${I("inline-flex")}
|
|
499
499
|
|
|
500
|
-
:host{--icon-size:16px;--icon-color-filled:${
|
|
501
|
-
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),
|
|
502
|
-
:host{--step-rate:${
|
|
500
|
+
:host{--icon-size:16px;--icon-color-filled:${gh};--icon-color-empty:${ha};align-items:center;color:${_};font-family:${x};font-size:${W};line-height:${J};contain:layout style;user-select:none}:host(${z}){--icon-size:12px}:host(${C}){--icon-size:20px;font-size:${M};line-height:${j}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${ee}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Ci}) svg{--icon-color-filled:${_}}:host(${Xe}) svg{--icon-color-filled:${Gr}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${Ci}:is([value^='-'],[value='0'])) svg,:host(${Ci}:not([value])) svg,:host(${Ci}) svg[selected] ~ svg{--icon-color-empty:${Ti}}:host(${Xe}:is([value^='-'],[value='0'])) svg,:host(${Xe}:not([value])) svg,:host(${Xe}) svg[selected] ~ svg{--icon-color-empty:${Ur}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Ae};font-weight:${G}}:host(${z}) .value-label,:host(${z}) ::slotted([slot='value']){margin-inline-start:${ee}}:host(${C}) .value-label,:host(${C}) ::slotted([slot='value']){margin-inline-start:${le}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Ae}}:host(${z}) .count-label::before,:host(${z}) ::slotted([slot='count'])::before{margin-inline:${ee}}:host(${C}) .count-label::before,:host(${C}) ::slotted([slot='count'])::before{margin-inline:${le}}`.withBehaviors(ne(p`
|
|
501
|
+
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),nm=g`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function am(){return g` ${o=>g`${ve(o.generateIcons())}`}<slot name="icon" ${X({property:"slottedIcon",filter:Pt("svg")})}>${nm}</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 lm=am(),cm=or.compose({name:`${b.prefix}-rating-display`,template:lm,styles:sm});cm.define(b.registry);const dm={small:"small",medium:"medium"},hm=Be,um={singleValue:"single-value"};function tl(o,e,t,i){let r=Or(0,1,(o-e)/(t-e));return i===Ge.rtl&&(r=1-r),r}var pm=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?bm(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&&pm(e,t,r),r};class Z extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Ge.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=um.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=>{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.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===Be.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===Be.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??hm.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(e,t){y(this.elementInternals,e,t,dm)}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=p`
|
|
502
|
+
:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return f.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=Or(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),f.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}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)}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??Be.horizontal,y(this.elementInternals,e,t,Be),this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=Ar(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),f.getNotifier(this).subscribe(this,"max"),f.getNotifier(this).subscribe(this,"min"),f.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"max"),f.getNotifier(this).unsubscribe(this,"min"),f.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Ge.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==Ge.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case vi:e.preventDefault(),this.value=this.direction!==Ge.rtl&&this.orientation!==Be.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case fi:e.preventDefault(),this.value=this.direction!==Ge.rtl&&this.orientation!==Be.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case bi:case gi:e.shiftKey||(e.preventDefault(),this.increment());break;case pi:case ui:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=tl(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,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=tl(e,this.orientation===Be.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Be.vertical?this.trackHeight:this.trackWidth,this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}Z.formAssociated=!0,de([a],Z.prototype,"size",2),de([a({attribute:"value",mode:"fromView"})],Z.prototype,"initialValue",2),de([v],Z.prototype,"direction",2),de([v],Z.prototype,"isDragging",2),de([v],Z.prototype,"position",2),de([v],Z.prototype,"trackWidth",2),de([v],Z.prototype,"trackMinWidth",2),de([v],Z.prototype,"trackHeight",2),de([v],Z.prototype,"trackLeft",2),de([v],Z.prototype,"trackMinHeight",2),de([v],Z.prototype,"valueTextFormatter",2),de([a({mode:"boolean"})],Z.prototype,"disabled",2),de([a({converter:Br})],Z.prototype,"min",2),de([a({converter:Br})],Z.prototype,"max",2),de([a({converter:Br})],Z.prototype,"step",2),de([a],Z.prototype,"orientation",2),de([a],Z.prototype,"mode",2);const gm=p`
|
|
503
503
|
${I("inline-grid")}
|
|
504
504
|
|
|
505
|
-
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${
|
|
505
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${Nt};--track-color:${Ke};--slider-direction:90deg;--border-radius:${B};--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:${to}}:host(:active){--rail-color:${oo}}:host(:disabled){--rail-color:${O};--track-color:${mt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${z}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Le}}:host(${P}){--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 ${De};outline:1px solid ${Kr}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
506
506
|
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
507
|
-
);border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${
|
|
508
|
-
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${
|
|
509
|
-
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${
|
|
510
|
-
.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function
|
|
507
|
+
);border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${P})::after,:host(${P}) .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(${P}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
|
|
508
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${A} calc(var(--step-rate) - 1px),${A} var(--step-rate)
|
|
509
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${P}) .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:${we};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${A} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ye};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(ne(p`
|
|
510
|
+
.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function fm(o={}){return g`<template tabindex="${e=>e.disabled?null:0}" @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${U("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${U("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${ve(o.thumb)}</slot></div></template>`}const mm=fm({thumb:'<div class="thumb"></div>'}),vm=Z.compose({name:`${b.prefix}-slider`,template:mm,styles:gm});vm.define(b.registry);class $m extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}const ym={primary:"primary",inverted:"inverted"},xm={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"};var km=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,ol=(o,e,t,i)=>{for(var r=i>1?void 0:i?wm(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&&km(e,t,r),r};class xs extends $m{sizeChanged(e,t){y(this.elementInternals,e,t,xm)}appearanceChanged(e,t){y(this.elementInternals,e,t,ym)}}ol([a],xs.prototype,"size",2),ol([a],xs.prototype,"appearance",2);const Cm=p`
|
|
511
511
|
${I("inline-flex")}
|
|
512
512
|
|
|
513
|
-
:host{--duration:1.5s;--indicatorSize:${
|
|
514
|
-
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),
|
|
513
|
+
:host{--duration:1.5s;--indicatorSize:${pe};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${zo}){--indicatorSize:${Se};--size:20px}:host(${Co}){--indicatorSize:${Se};--size:24px}:host(${z}){--indicatorSize:${Se};--size:28px}:host(${C}){--indicatorSize:${pe};--size:36px}:host(${xi}){--indicatorSize:${pe};--size:40px}:host(${Ec}){--indicatorSize:${es};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${ji}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${Ur};border-radius:50%}:host(${Vn}) .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:${Zn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host(${Vn}) .indicator{color:${eh}}.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(ne(p`
|
|
514
|
+
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),Sm=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>`,Im=xs.compose({name:`${b.prefix}-spinner`,template:Sm,styles:Cm});Im.define(b.registry);class Pm extends _e{constructor(){super(),this.elementInternals.role="switch"}}function zm(o={}){return g`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${ve(o.switch)}</slot></template>`}const Bm=zm({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Tm=p`
|
|
515
515
|
${I("inline-flex")}
|
|
516
516
|
|
|
517
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${
|
|
518
|
-
:host{border-color:InactiveBorder}:host(${k}),:host(${k}:active),:host(${k}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${k}) .checked-indicator,:host(${k}:hover) .checked-indicator,:host(${k}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${k}:disabled) .checked-indicator{background-color:GrayText}`)),
|
|
517
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${ee};width:40px;height:20px;background-color:${Te};border:1px solid ${Ke};border-radius:${we};cursor:pointer}:host(:hover){background:none;border-color:${Ft}}:host(:active){border-color:${Mt}}:host(:disabled),:host([readonly]){border:1px solid ${Oe};background-color:none;pointer:default}:host(${k}){background:${Nt};border-color:${Nt}}:host(${k}:hover){background:${to};border-color:${to}}:host(${k}:active){background:${oo};border-color:${oo}}:host(${k}:disabled){background:${mt};border-color:${Oe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ue};transition-duration:${Vi};transition-timing-function:${ji};transition-property:margin-inline-start}:host(${k}) .checked-indicator{background-color:${Et};margin-inline-start:calc(100% - 14px)}:host(${k}:hover) .checked-indicator{background:${jd}}:host(${k}:active) .checked-indicator{background:${Rd}}:host(:hover) .checked-indicator{background-color:${_d}}:host(:active) .checked-indicator{background-color:${Ed}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${O}}:host(${k}:disabled) .checked-indicator{background:${O}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${ae};outline:${Se} solid ${ae};box-shadow:${Di},0 0 0 2px ${De}}`.withBehaviors(ne(p`
|
|
518
|
+
:host{border-color:InactiveBorder}:host(${k}),:host(${k}:active),:host(${k}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${k}) .checked-indicator,:host(${k}:hover) .checked-indicator,:host(${k}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${k}:disabled) .checked-indicator{background-color:GrayText}`)),Om=Pm.compose({name:`${b.prefix}-switch`,template:Bm,styles:Tm});Om.define(b.registry);class Am extends w{}function _m(){return g`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Em=_m(),Nm=p`
|
|
519
519
|
${I("block")}
|
|
520
520
|
|
|
521
|
-
:host{box-sizing:border-box;padding:${
|
|
522
|
-
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}
|
|
521
|
+
:host{box-sizing:border-box;padding:${xe} ${be}}`,Fm=Am.compose({name:`${b.prefix}-tab-panel`,template:Em,styles:Nm});Fm.define(b.registry);var Mm=Object.defineProperty,Dm=Object.getOwnPropertyDescriptor,Lm=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dm(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&&Mm(e,t,r),r};class ks extends w{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
|
|
522
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Lm([a({mode:"boolean"})],ks.prototype,"disabled",2),rt(ks,it);function Vm(o={}){return g`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ue(o)}<span class="tab-content"><slot></slot></span>${bt(o)}</template>`}const Hm=Vm({}),jm=p`
|
|
523
523
|
${I("inline-flex")}
|
|
524
524
|
|
|
525
|
-
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${j};font-family:${x};font-size:${M};color:${
|
|
526
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),
|
|
525
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${j};font-family:${x};font-size:${M};color:${Me};fill:currentcolor;grid-row:1;padding:${xe} ${be};border-radius:${B}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${G}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${j};font-weight:${G}}:host([aria-selected='true'])::after{background-color:${Dt};border-radius:${we};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${io};border-radius:${we};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${O}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${O};color:${O}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Le};box-shadow:0 0 0 3px ${De};outline:1px solid ${Kr}}`.withBehaviors(ne(p`
|
|
526
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),Rm=ks.compose({name:`${b.prefix}-tab`,template:Hm,styles:jm});Rm.define(b.registry);const qm={subtle:"subtle",transparent:"transparent"},ir=Be;var Wm=Object.defineProperty,Gm=Object.getOwnPropertyDescriptor,rr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gm(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&&Wm(e,t,r),r};class Go extends w{constructor(){super(...arguments),this.orientation=ir.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case pi:e.preventDefault(),this.adjustBackward(e);break;case bi:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case gi:e.preventDefault(),this.adjustBackward(e);break;case ui:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case vi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case fi:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),d=this.tabIds[s],u=this.tabpanelIds[s];r.setAttribute("id",d),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",u),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=d)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Qt()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Qt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ir.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=Or(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}rr([a],Go.prototype,"orientation",2),rr([a],Go.prototype,"activeid",2),rr([v],Go.prototype,"tabs",2),rr([v],Go.prototype,"tabpanels",2);var Um=Object.defineProperty,Xm=Object.getOwnPropertyDescriptor,ws=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xm(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&&Um(e,t,r),r};class Uo extends Go{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=qm.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===ir.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===ir.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),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)}}setTabOffsetCSSVar(){this.styles=p`
|
|
527
527
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
|
|
528
|
-
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t
|
|
528
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}ws([a],Uo.prototype,"appearance",2),ws([a({mode:"boolean"})],Uo.prototype,"disabled",2),ws([a],Uo.prototype,"size",2),rt(Uo,it);function Km(o={}){return g` ${Ue(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${X("tabs")}></slot></div>${bt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${X("tabpanels")}></slot></div>`}const Ym=Km({}),Qm=p`
|
|
529
529
|
${I("grid")}
|
|
530
530
|
|
|
531
|
-
:host{box-sizing:border-box;font-family:${x};font-size:${M};line-height:${j};color:${Dt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${A}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${A}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${A}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${A}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${_i};color:${Ds};fill:${Mn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${ro};fill:${ro};color:${E}}:host([size='small']) ::slotted(fluent-tab){font-size:${M};line-height:${j};padding:${te} ${dt}}:host([size='large']) ::slotted(fluent-tab){font-size:${xt};line-height:${St};padding:${ji} ${ft}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted(fluent-tab)::after{height:${gt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${gt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${gt};border-radius:${Ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${gt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${gt};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:${gt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${te};padding-bottom:${te}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Lo};padding-bottom:${Lo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${ot};padding-bottom:${ot}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${dt};left:${dt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ft};left:${ft}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ft};left:${ft}}: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:${te};bottom:${te}}: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:${ot};bottom:${ot}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${uo};bottom:${uo}}`,fm=Zo.compose({name:`${b.prefix}-tabs`,template:bm,styles:gm});fm.define(b.registry);const mm=o=>o.getAttribute("aria-disabled")==="true",$m=o=>o.hasAttribute("hidden"),rs=o=>!mm(o)&&!$m(o),Ga={subtle:"subtle",transparent:"transparent"},vm={small:"small",medium:"medium",large:"large"},yo=Tt;var ym=Object.defineProperty,xm=Object.getOwnPropertyDescriptor,xo=(o,t,e,i)=>{for(var s=i>1?void 0:i?xm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ym(t,e,s),s};class Jo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=yo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&rs(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=As(this);switch(t.key){case $i:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case vi:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case yi:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case mi:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case wi:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case xi:t.preventDefault(),this.adjust(this.tabs.filter(i=>rs(i)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){v(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??yo.horizontal,y(this.elementInternals,t,e,yo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs(),t){const i=this.tabs[this.prevActiveTabIndex],s=this.tabPanelMap.get(i);s&&(s.hidden=!0)}if(e&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const t of this.tabs){const e=t.getAttribute("aria-controls")??"",s=this.getRootNode().getElementById(e);e&&s&&(s.role??(s.role="tabpanel"),s.hidden=this.activeid!==t.id,this.tabPanelMap.set(t,s))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const i=this.activeTabIndex===e&&rs(t),s=this.tabIds[e];t.setAttribute("id",s),t.setAttribute("aria-selected",i?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=t,this.activeid=s),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${oo()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===yo.horizontal}adjust(t){const e=this.tabs.filter(n=>rs(n)),i=e.indexOf(this.activetab),s=Fl(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}xo([a({mode:"boolean"})],Jo.prototype,"disabled",2),xo([a],Jo.prototype,"orientation",2),xo([a],Jo.prototype,"activeid",2),xo([$],Jo.prototype,"tabs",2);class mr extends Jo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ga.transparent}appearanceChanged(t,e){y(this.elementInternals,t,e,Ga)}sizeChanged(t,e){y(this.elementInternals,t,e,vm)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===yo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===yo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}xo([a],mr.prototype,"appearance",2),xo([a],mr.prototype,"size",2);const km=g`<template role="tablist"><slot name="tab" ${K("tabs")}></slot></template>`,wm=p`
|
|
531
|
+
:host{box-sizing:border-box;font-family:${x};font-size:${M};line-height:${j};color:${Me};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${O}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${O}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${O}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${O}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${B}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${O}}.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:${Ai};color:${Vr};fill:${Wn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${eo};fill:${eo};color:${_}}:host([size='small']) ::slotted(fluent-tab){font-size:${M};line-height:${j};padding:${Ze} ${le}}:host([size='large']) ::slotted(fluent-tab){font-size:${ye};line-height:${Ce};padding:${Li} ${be}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Ca};transition-timing-function:${rs}}:host ::slotted(fluent-tab)::after{height:${pe};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${pe};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${pe};border-radius:${we};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${pe};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${pe};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:${pe}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Ze};padding-bottom:${Ze}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${No};padding-bottom:${No}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${te};padding-bottom:${te}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${le};left:${le}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${be};left:${be}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${be};left:${be}}: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:${Ze};bottom:${Ze}}: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:${te};bottom:${te}}: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:${no};bottom:${no}}`,Zm=Uo.compose({name:`${b.prefix}-tabs`,template:Ym,styles:Qm});Zm.define(b.registry);const Jm=o=>o.getAttribute("aria-disabled")==="true",ev=o=>o.hasAttribute("hidden"),sr=o=>!Jm(o)&&!ev(o),il={subtle:"subtle",transparent:"transparent"},tv={small:"small",medium:"medium",large:"large"},fo=Be;var ov=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?iv(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&&ov(e,t,r),r};class Xo extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=fo.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&&sr(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=Ar(this);switch(e.key){case pi:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case bi:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case gi:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ui:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case vi:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case fi:e.preventDefault(),this.adjust(this.tabs.filter(i=>sr(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){$(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??fo.horizontal,y(this.elementInternals,e,t,fo),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)}}}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(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const i=this.activeTabIndex===t&&sr(e),r=this.tabIds[t];e.setAttribute("id",r),e.setAttribute("aria-selected",i?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=e,this.activeid=r),this.change()}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Qt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===fo.horizontal}adjust(e){const t=this.tabs.filter(n=>sr(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()}}nr([a({mode:"boolean"})],Xo.prototype,"disabled",2),nr([a],Xo.prototype,"orientation",2),nr([a],Xo.prototype,"activeid",2),nr([v],Xo.prototype,"tabs",2);var rv=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,rl=(o,e,t,i)=>{for(var r=i>1?void 0:i?sv(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&&rv(e,t,r),r};class Cs extends Xo{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=il.transparent}appearanceChanged(e,t){y(this.elementInternals,e,t,il)}sizeChanged(e,t){y(this.elementInternals,e,t,tv)}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===fo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===fo.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)}}rl([a],Cs.prototype,"appearance",2),rl([a],Cs.prototype,"size",2);const nv=g`<template role="tablist"><slot name="tab" ${X("tabs")}></slot></template>`,av=p`
|
|
532
532
|
${I("flex")}
|
|
533
533
|
|
|
534
|
-
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Dt};flex-direction:row}:host(${z}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${fa};transition-timing-function:${or}}:host ::slotted([slot='tab'])::after{height:${gt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${z}) ::slotted([slot='tab'])::after{width:${gt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${gt};border-radius:${Ct};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${A}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${gt};margin-block-start:auto;transform-origin:left}:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${gt};margin-inline-end:auto;transform-origin:top}:host(:where(${P},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${te};--tabPaddingInline:${dt};font-size:${M};line-height:${j}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${ji};--tabPaddingInline:${ft};font-size:${xt};line-height:${St}}: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:${ft}}:host(${P}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${dt}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ft}}:host(${z}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${z}) ::slotted([slot='tab']){--tabPaddingBlock:${ot}}:host(${z}${P}) ::slotted([slot='tab']){--tabPaddingBlock:${Lo}}:host(${z}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${ot}}:host(${z}) ::slotted([slot='tab'])::after,:host(${z}) ::slotted([slot='tab'])::before,:host(${z}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${z}){--tabIndicatorInsetBlock:${ot}}:host(${z}${P}){--tabIndicatorInsetBlock:${te}}:host(${z}${C}){--tabIndicatorInsetBlock:${uo}}:host(${_}){cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${A}}:host(${_}) ::slotted([slot='tab']:after){background-color:${A}}:host(${_}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${A}}:host(${_}) ::slotted([slot='tab']:hover):before{content:unset}:host(${B}) ::slotted([slot='tab']:hover){background-color:${_i};color:${Ds};fill:${Mn}}:host(${B}) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${E}}`,Cm=mr.compose({name:`${b.prefix}-tablist`,template:km,styles:wm});Cm.define(b.registry);const Sm={small:"small",medium:"medium",large:"large"},ti={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Im=[ti.filledLighter,ti.filledDarker],ns={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var zm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,J=(o,t,e,i)=>{for(var s=i>1?void 0:i?Pm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&zm(t,e,s),s};class st extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=ns.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),v(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){y(this.elementInternals,t,e,ns,"resize-"),v(this.elementInternals,"resize",Ns(ns,e)&&e!==ns.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){v(this.elementInternals,"user-invalid",!this.validity.valid),v(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}st.formAssociated=!0,J([$],st.prototype,"defaultSlottedNodes",2),J([$],st.prototype,"labelSlottedNodes",2),J([a],st.prototype,"autocomplete",2),J([a({attribute:"auto-resize",mode:"boolean"})],st.prototype,"autoResize",2),J([a({attribute:"dirname"})],st.prototype,"dirName",2),J([a({mode:"boolean"})],st.prototype,"disabled",2),J([a({attribute:"display-shadow",mode:"boolean"})],st.prototype,"displayShadow",2),J([a({attribute:"form"})],st.prototype,"initialForm",2),J([a({attribute:"maxlength",converter:at})],st.prototype,"maxLength",2),J([a({attribute:"minlength",converter:at})],st.prototype,"minLength",2),J([a],st.prototype,"name",2),J([a],st.prototype,"placeholder",2),J([a({attribute:"readonly",mode:"boolean"})],st.prototype,"readOnly",2),J([a({mode:"boolean"})],st.prototype,"required",2),J([a({mode:"fromView"})],st.prototype,"resize",2),J([a({mode:"boolean"})],st.prototype,"spellcheck",2);class as extends st{constructor(){super(...arguments),this.appearance=ti.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){v(this.elementInternals,t,!1),Ns(ti,e)?v(this.elementInternals,e,!0):this.appearance=ti.outline}blockChanged(){v(this.elementInternals,"block",this.block)}sizeChanged(t,e){y(this.elementInternals,t,e,Sm)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){v(this.elementInternals,"display-shadow",this.displayShadow&&Im.includes(this.appearance))}}J([a({mode:"fromView"})],as.prototype,"appearance",2),J([a({mode:"boolean"})],as.prototype,"block",2),J([a],as.prototype,"size",2);const Tm=p`
|
|
534
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Me};flex-direction:row}:host(${P}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Ca};transition-timing-function:${rs}}:host ::slotted([slot='tab'])::after{height:${pe};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${P}) ::slotted([slot='tab'])::after{width:${pe};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${pe};border-radius:${we};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:${O}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${pe};margin-block-start:auto;transform-origin:left}:host(${P}) ::slotted([slot='tab'])::before,:host(${P}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${pe};margin-inline-end:auto;transform-origin:top}:host(:where(${z},${C})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${z}) ::slotted([slot='tab']){--tabPaddingBlock:${Ze};--tabPaddingInline:${le};font-size:${M};line-height:${j}}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${Li};--tabPaddingInline:${be};font-size:${ye};line-height:${Ce}}: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:${be}}:host(${z}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${le}}:host(${C}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${be}}:host(${P}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${te}}:host(${P}${z}) ::slotted([slot='tab']){--tabPaddingBlock:${No}}:host(${P}${C}) ::slotted([slot='tab']){--tabPaddingBlock:${te}}:host(${P}) ::slotted([slot='tab'])::after,:host(${P}) ::slotted([slot='tab'])::before,:host(${P}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${P}){--tabIndicatorInsetBlock:${te}}:host(${P}${z}){--tabIndicatorInsetBlock:${Ze}}:host(${P}${C}){--tabIndicatorInsetBlock:${no}}:host(${F}){cursor:not-allowed;color:${O}}:host(${F}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${O}}:host(${F}) ::slotted([slot='tab']:after){background-color:${O}}:host(${F}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${O}}:host(${F}) ::slotted([slot='tab']:hover):before{content:unset}:host(${T}) ::slotted([slot='tab']:hover){background-color:${Ai};color:${Vr};fill:${Wn}}:host(${T}) ::slotted([slot='tab']:active){background-color:${eo};fill:${eo};color:${_}}`,lv=Cs.compose({name:`${b.prefix}-tablist`,template:nv,styles:av});lv.define(b.registry);const cv={small:"small",medium:"medium",large:"large"},Ko={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},dv=[Ko.filledLighter,Ko.filledDarker],ar={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var hv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,me=(o,e,t,i)=>{for(var r=i>1?void 0:i?uv(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&&hv(e,t,r),r};class oe extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=ar.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){y(this.elementInternals,e,t,ar,"resize-"),$(this.elementInternals,"resize",Nr(ar,t)&&t!==ar.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(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.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")}}oe.formAssociated=!0,me([v],oe.prototype,"defaultSlottedNodes",2),me([v],oe.prototype,"labelSlottedNodes",2),me([a],oe.prototype,"autocomplete",2),me([a({attribute:"auto-resize",mode:"boolean"})],oe.prototype,"autoResize",2),me([a({attribute:"dirname"})],oe.prototype,"dirName",2),me([a({mode:"boolean"})],oe.prototype,"disabled",2),me([a({attribute:"display-shadow",mode:"boolean"})],oe.prototype,"displayShadow",2),me([a({attribute:"form"})],oe.prototype,"initialForm",2),me([a({attribute:"maxlength",converter:se})],oe.prototype,"maxLength",2),me([a({attribute:"minlength",converter:se})],oe.prototype,"minLength",2),me([a],oe.prototype,"name",2),me([a],oe.prototype,"placeholder",2),me([a({attribute:"readonly",mode:"boolean"})],oe.prototype,"readOnly",2),me([a({mode:"boolean"})],oe.prototype,"required",2),me([a({mode:"fromView"})],oe.prototype,"resize",2),me([a({mode:"boolean"})],oe.prototype,"spellcheck",2);var pv=Object.defineProperty,bv=Object.getOwnPropertyDescriptor,Ss=(o,e,t,i)=>{for(var r=i>1?void 0:i?bv(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&&pv(e,t,r),r};class lr extends oe{constructor(){super(...arguments),this.appearance=Ko.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}appearanceChanged(e,t){$(this.elementInternals,e,!1),Nr(Ko,t)?$(this.elementInternals,t,!0):this.appearance=Ko.outline}blockChanged(){$(this.elementInternals,"block",this.block)}sizeChanged(e,t){y(this.elementInternals,e,t,cv)}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){$(this.elementInternals,"display-shadow",this.displayShadow&&dv.includes(this.appearance))}}Ss([a({mode:"fromView"})],lr.prototype,"appearance",2),Ss([a({mode:"boolean"})],lr.prototype,"block",2),Ss([a],lr.prototype,"size",2);const gv=p`
|
|
535
535
|
${I("inline-block")}
|
|
536
536
|
|
|
537
|
-
:host{--font-size:${M};--line-height:${j};--padding-inline:${
|
|
538
|
-
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function
|
|
537
|
+
:host{--font-size:${M};--line-height:${j};--padding-inline:${be};--padding-block:${Ze};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${N};--control-padding-inline:${ee};--color:${_};--background-color:${A};--border-color:${Ye};--border-block-end-color:${Ke};--placeholder-color:${Hr};--focus-indicator-color:${Dt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${x};font-size:var(--font-size);font-weight:${H};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${io};--border-block-end-color:${Ft}}:host(:active){--border-color:${Ao};--border-block-end-color:${Mt}}:host(:focus-within){outline:none}:host(${ko}:not([hidden])){display:block}:host(${z}){--font-size:${W};--line-height:${J};--min-block-size:40px;--padding-block:${so};--padding-inline:${le};--control-padding-inline:${ee}}:host(${C}){--font-size:${ye};--line-height:${Ce};--min-block-size:64px;--padding-block:${te};--padding-inline:${xe};--control-padding-inline:${le}}:host(${nd}:not(:disabled)){--resize:both}:host(${ad}:not(:disabled)){--resize:horizontal}:host(${ld}:not(:disabled)){--resize:vertical}:host(${Mn}){--block-size:auto;--contain-size:inline-size}:host(${gt}){--background-color:${Oo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Bt}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${gt}${Dn}),:host(${Bt}${Dn}){--box-shadow:${Zr}}:host(${Pd}){--border-color:${Yr};--border-block-end-color:${Yr}}:host(:disabled){--color:${O};--background-color:${Te};--border-color:${Oe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${O};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:${B};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(${ko}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${B} ${B};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${B});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${Lt};transition-duration:${ts};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Vi};transition-delay:${Vt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${so};padding-inline-end:${Ae}}: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(${Mn}) .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:${Et};background-color:${Xn}}`.withBehaviors(ne(p`
|
|
538
|
+
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function fv(){return g`<template><label ${U("labelEl")} for="control" part="label"><slot name="label" ${X({property:"labelSlottedNodes",filter:_r})}></slot></label><div class="root" part="root"><textarea ${U("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${X({property:"defaultSlottedNodes",filter:_r})}></slot></div></template>`}const mv=fv(),vv=lr.compose({name:`${b.prefix}-textarea`,template:mv,styles:gv,shadowOptions:{delegatesFocus:!0}});vv.define(b.registry);const $v={small:"small",medium:"medium",large:"large"},yv={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},xv={email:"email",password:"password",tel:"tel",text:"text",url:"url"},kv=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var wv=Object.defineProperty,Cv=Object.getOwnPropertyDescriptor,q=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cv(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&&wv(e,t,r),r};class L extends w{constructor(){super(...arguments),this.type=xv.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return f.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),f.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>kv.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t,i)}}}L.formAssociated=!0,q([a],L.prototype,"autocomplete",2),q([a({mode:"boolean"})],L.prototype,"autofocus",2),q([a({attribute:"current-value"})],L.prototype,"currentValue",2),q([v],L.prototype,"defaultSlottedNodes",2),q([a],L.prototype,"dirname",2),q([a({mode:"boolean"})],L.prototype,"disabled",2),q([a({attribute:"form"})],L.prototype,"formAttribute",2),q([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),q([a],L.prototype,"list",2),q([a({converter:se})],L.prototype,"maxlength",2),q([a({converter:se})],L.prototype,"minlength",2),q([a({mode:"boolean"})],L.prototype,"multiple",2),q([a],L.prototype,"name",2),q([a],L.prototype,"pattern",2),q([a],L.prototype,"placeholder",2),q([a({attribute:"readonly",mode:"boolean"})],L.prototype,"readOnly",2),q([a({mode:"boolean"})],L.prototype,"required",2),q([a({converter:se})],L.prototype,"size",2),q([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],L.prototype,"spellcheck",2),q([a],L.prototype,"type",2),q([v],L.prototype,"controlLabel",2);var Sv=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,sl=(o,e,t,i)=>{for(var r=i>1?void 0:i?Iv(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&&Sv(e,t,r),r};class cr extends L{appearanceChanged(e,t){y(this.elementInternals,e,t,yv)}controlSizeChanged(e,t){y(this.elementInternals,e,t,$v)}}sl([a],cr.prototype,"appearance",2),sl([a({attribute:"control-size"})],cr.prototype,"controlSize",2),rt(cr,it);const Pv=p`
|
|
539
539
|
${I("block")}
|
|
540
540
|
|
|
541
|
-
:host{font-family:${x};font-size:${M};font-weight:${
|
|
541
|
+
:host{font-family:${x};font-size:${M};font-weight:${H};line-height:${j};max-width:400px}.label{display:flex;color:${_};padding-bottom:${so};flex-shrink:0;padding-inline-end:${Ae}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${A};border:${N} solid ${Ye};border-bottom-color:${Ke};border-radius:${B};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${ee};padding:0 ${be};position:relative;width:100%}:has(.control:user-invalid){border-color:${Yr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${B});border-radius:0 0 ${B} ${B};border-bottom:2px solid ${Dt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${ts};transition-delay:${Lt}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${B};background:${Te};font-family:${x};font-weight:${H};font-size:${M};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Hr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ue};font-size:${ro}}:host ::slotted([slot='start']){padding-right:${ee}}:host ::slotted([slot='end']){padding-left:${ee};gap:${Ae}}:host(:hover) .root{border-color:${io};border-bottom-color:${Ft}}:host(:active) .root{border-color:${Ao}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Vi};transition-delay:${Vt}}:host(:focus-within:active) .root:after{border-bottom-color:${Jn}}:host(${E}:focus-within) .root{border:${N} solid ${Ye}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${Te};border:${N} solid ${Oe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${O}}::selection{color:${Et};background-color:${Xn}}:host(${z}) .control{font-size:${W};font-weight:${H};line-height:${J}}:host(${z}) .root{height:24px;gap:${ee};padding:0 ${le}}:host(${z}) ::slotted([slot='start']),:host(${z}) ::slotted([slot='end']){font-size:${ye}}:host(${C}) .control{font-size:${ye};font-weight:${H};line-height:${Ce}}:host(${C}) .root{height:40px;gap:${Qe};padding:0 ${xe}}:host(${C}) ::slotted([slot='start']),:host(${C}) ::slotted([slot='end']){font-size:${Ei}}:host(${At}) .root{background:${Te};border:0;border-radius:0;border-bottom:${N} solid ${Ke}}:host(${At}:hover) .root{border-bottom-color:${Ft}}:host(${At}:active) .root{border-bottom-color:${Mt}}:host(${At}:focus-within) .root{border:0;border-bottom-color:${Mt}}:host(${At}[disabled]) .root{border-bottom-color:${Oe}}:host(${Bt}) .root,:host(${gt}) .root{border:${N} solid ${ae};box-shadow:${Zr}}:host(${Bt}) .root{background:${A}}:host(${gt}) .root{background:${Oo}}:host(${Bt}:hover) .root,:host(${gt}:hover) .root{border-color:${Xr}}:host(${Bt}:active) .root,:host(${gt}:active) .root{border-color:${Xr};background:${Oo}}`;function zv(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" ${U("controlLabel")}><slot ${X({property:"defaultSlottedNodes",filter:_r})}></slot></label><div class="root" part="root">${Ue(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}" ${U("control")} />${bt(o)}</div></template>`}const Bv=zv(),Tv=cr.compose({name:`${b.prefix}-text-input`,template:Bv,styles:Pv,shadowOptions:{delegatesFocus:!0}});Tv.define(b.registry);const Ov={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},Av={base:"base",numeric:"numeric",monospace:"monospace"},_v={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},Ev={start:"start",end:"end",center:"center",justify:"justify"};var Nv=Object.defineProperty,Fv=Object.getOwnPropertyDescriptor,ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fv(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&&Nv(e,t,r),r};class He extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(e,t){y(this.elementInternals,e,t,Ov,"size-")}fontChanged(e,t){y(this.elementInternals,e,t,Av)}weightChanged(e,t){y(this.elementInternals,e,t,_v)}alignChanged(e,t){y(this.elementInternals,e,t,Ev)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)})}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(e,t){switch(t){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":$(this.elementInternals,t,!!this[t]);break}}}ot([a({mode:"boolean"})],He.prototype,"nowrap",2),ot([a({mode:"boolean"})],He.prototype,"truncate",2),ot([a({mode:"boolean"})],He.prototype,"italic",2),ot([a({mode:"boolean"})],He.prototype,"underline",2),ot([a({mode:"boolean"})],He.prototype,"strikethrough",2),ot([a({mode:"boolean"})],He.prototype,"block",2),ot([a],He.prototype,"size",2),ot([a],He.prototype,"font",2),ot([a],He.prototype,"weight",2),ot([a],He.prototype,"align",2);const Mv=p`
|
|
542
542
|
${I("inline")}
|
|
543
543
|
|
|
544
|
-
:host{contain:content;font-family:${x};font-size:${M};line-height:${j};font-weight:${
|
|
545
|
-
${
|
|
544
|
+
:host{contain:content;font-family:${x};font-size:${M};line-height:${j};font-weight:${H};text-align:start}:host(${Hn}),:host(${Hn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${qn}),:host(${qn}) ::slotted(*){text-overflow:ellipsis}:host(${ko}){display:block}:host(${Fc}){font-style:italic}:host(${At}){text-decoration-line:underline}:host(${Rn}){text-decoration-line:line-through}:host(${At}${Rn}){text-decoration-line:line-through underline}:host(${pd}){font-size:${Eo};line-height:${Fi}}:host(${bd}){font-size:${W};line-height:${J}}:host(${gd}){font-size:${ye};line-height:${Ce}}:host(${fd}){font-size:${ro};line-height:${Mi}}:host(${md}){font-size:${Ei};line-height:${va}}:host(${vd}){font-size:${ba};line-height:${$a}}:host(${$d}){font-size:${ga};line-height:${ya}}:host(${yd}){font-size:${fa};line-height:${xa}}:host(${ud}){font-size:${ma};line-height:${ka}}:host(${Wc}){font-family:${$u}}:host(${Uc}){font-family:${yu}}:host(${Rc}){font-weight:${xu}}:host(${jn}){font-weight:${G}}:host(${uc}){font-weight:${Ni}}:host(${fc}){text-align:center}:host(${wc}){text-align:end}:host(${Mc}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Dv=g`<slot></slot>`,Lv=He.compose({name:`${b.prefix}-text`,template:Dv,styles:Mv});Lv.define(b.registry);var Vv=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,nl=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hv(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&&Vv(e,t,r),r};class Is extends dt{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)}}}nl([a({mode:"boolean"})],Is.prototype,"pressed",2),nl([a({mode:"boolean"})],Is.prototype,"mixed",2);const jv=p`
|
|
545
|
+
${Wi}
|
|
546
546
|
|
|
547
|
-
:host(${D}){border-color:${
|
|
548
|
-
:host(${D}),:host(${D}${
|
|
547
|
+
:host(${D}){border-color:${Ye};background-color:${Un};color:${_};border-width:${N}}:host(${D}:hover){border-color:${io};background-color:${Bi}}:host(${D}:active){border-color:${Ao};background-color:${Ti}}:host(${D}${$e}){border-color:transparent;background-color:${Qd};color:${ct}}:host(${D}${$e}:hover){background-color:${Kn}}:host(${D}${$e}:active){background-color:${Yn}}:host(${D}${T}){border-color:transparent;background-color:${Kd};color:${Od}}:host(${D}${T}:hover){background-color:${Ai};color:${Bo}}:host(${D}${T}:active){background-color:${eo};color:${To}}:host(${D}${E}),:host(${D}${V}){background-color:${Yd}}:host(${D}${E}:hover),:host(${D}${V}:hover){background-color:${Rr}}:host(${D}${E}:active),:host(${D}${V}:active){background-color:${qr}}:host(${D}${V}){border-color:transparent;color:${Ad}}:host(${D}${V}:hover){color:${Pi}}:host(${D}${V}:active){color:${zi}}`.withBehaviors(ne(p`
|
|
548
|
+
:host(${D}),:host(${D}${$e}),:host(${D}${T}),:host(${D}${E}),:host(${D}${V}){background:SelectedItem;color:SelectedItemText}`)),Rv=cs(),qv=Is.compose({name:`${b.prefix}-toggle-button`,template:Rv,styles:jv});qv.define(b.registry);var Wv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,dr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gv(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&&Wv(e,t,r),r};class Yo extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Qt("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(){_n||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),_n){ec||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}re.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%;"},d=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
549
549
|
#${this.anchor} {
|
|
550
|
-
anchor-name: ${
|
|
550
|
+
anchor-name: ${e};
|
|
551
551
|
}
|
|
552
552
|
#${this.id} {
|
|
553
553
|
inset: unset;
|
|
554
|
-
position-anchor: ${
|
|
554
|
+
position-anchor: ${e};
|
|
555
555
|
position: absolute;
|
|
556
|
-
${
|
|
556
|
+
${s}
|
|
557
557
|
${d}
|
|
558
558
|
}
|
|
559
|
-
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}
|
|
559
|
+
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}dr([a],Yo.prototype,"id",2),dr([a({converter:se})],Yo.prototype,"delay",2),dr([a],Yo.prototype,"positioning",2),dr([a],Yo.prototype,"anchor",2);const Ne={"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"},Uv=p`
|
|
560
560
|
${I("inline-flex")}
|
|
561
561
|
|
|
562
|
-
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${
|
|
562
|
+
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${so};--inline-offset:${Ae};background:${A};border-radius:${B};border:1px solid ${ae};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${oh}) drop-shadow(0 4px 8px ${ih});font-family:${x};font-size:${W};inset:unset;line-height:${J};margin:unset;max-width:240px;overflow:visible;padding:4px ${be} 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:${Ne["above-start"]}}:host([positioning='above']){--position-area:${Ne.above}}:host([positioning='above-end']){--position-area:${Ne["above-end"]}}:host([positioning='below-start']){--position-area:${Ne["below-start"]}}:host([positioning='below']){--position-area:${Ne.below}}:host([positioning='below-end']){--position-area:${Ne["below-end"]}}:host([positioning='before-top']){--position-area:${Ne["before-top"]}}:host([positioning='before']){--position-area:${Ne.before}}:host([positioning='before-bottom']){--position-area:${Ne["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ne["after-top"]}}:host([positioning='after']){--position-area:${Ne.after}}:host([positioning='after-bottom']){--position-area:${Ne["after-bottom"]}}`,Xv=g`<template popover aria-hidden="true"><slot></slot></template>`,Kv=Yo.compose({name:`${b.prefix}-tooltip`,template:Xv,styles:Uv});Kv.define(b.registry);
|