@fluentui/web-components 3.0.0-beta.34 → 3.0.0-beta.35
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/text/text.d.ts +40 -1
- package/dist/esm/text/text.js +91 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +56 -57
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/web-components.d.ts +40 -1
- package/dist/web-components.js +94 -3
- package/dist/web-components.min.js +91 -91
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let co;const Qs="fast-kernel";try{if(document.currentScript)co=document.currentScript.getAttribute(Qs);else{const s=document.getElementsByTagName("script");co=s[s.length-1].getAttribute(Qs)}}catch{co="isolate"}let ne;switch(co){case"share":ne=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ne=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const s=`-${Math.random().toString(36).substring(2,8)}`;ne=Object.freeze({updateQueue:`1.2${s}`,observable:`2.2${s}`,contextEvent:`3.2${s}`,elementRegistry:`4.2${s}`});break}const me=s=>typeof s=="function",wt=s=>typeof s=="string",Zs=()=>{};var is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof is<"u")is.globalThis=is;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 Js={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Js));const G=globalThis.FAST;if(G.getById===void 0){const s=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(t,e){let o=s[t];return o===void 0&&(o=e?s[t]=e():null),o}},Js))}G.error===void 0&&Object.assign(G,{warn(){},error(s){return new Error(`Error ${s}`)},addMessages(){}});const ti=Object.freeze([]);function rs(){const s=new Map;return Object.freeze({register(t){return s.has(t.type)?!1:(s.set(t.type,t),!0)},getByType(t){return s.get(t)},getForInstance(t){if(t!=null)return s.get(t.constructor)}})}function ei(){const s=new WeakMap;return function(t){let e=s.get(t);if(e===void 0){let o=Reflect.getPrototypeOf(t);for(;e===void 0&&o!==null;)e=s.get(o),o=Reflect.getPrototypeOf(o);e=e===void 0?[]:e.slice(0),s.set(t,e)}return e}}function ve(s){s.prototype.toJSON=Zs}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),oi=s=>s,tn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:oi}):{createHTML:oi};let ho=Object.freeze({createHTML(s){return tn.createHTML(s)},protect(s,t,e,o){return o}});const en=ho,$e=Object.freeze({get policy(){return ho},setPolicy(s){if(ho!==en)throw G.error(1201);ho=s},setAttribute(s,t,e){e==null?s.removeAttribute(t):s.setAttribute(t,e)},setBooleanAttribute(s,t,e){e?s.setAttribute(t,""):s.removeAttribute(t)}}),Mt=G.getById(ne.updateQueue,()=>{const s=[],t=[],e=globalThis.requestAnimationFrame;let o=!0;function i(){if(t.length)throw t.shift()}function r(p){try{p.call()}catch(u){if(o)t.push(u),setTimeout(i,0);else throw s.length=0,u}}function n(){let u=0;for(;u<s.length;)if(r(s[u]),u++,u>1024){for(let c=0,b=s.length-u;c<b;c++)s[c]=s[c+u];s.length-=u,u=0}s.length=0}function h(p){s.push(p),s.length<2&&(o?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:p=>o=p})});class ns{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 o=e.indexOf(t);o!==-1&&e.splice(o,1)}}notify(t){const e=this.spillover,o=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(o,t),r!==void 0&&r.handleChange(o,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(o,t)}}class si{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,o;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(o=this.subjectSubscribers)===null||o===void 0||o.notify(t)}subscribe(t,e){var o,i;let r;e?r=(o=this.subscribers[e])!==null&&o!==void 0?o:this.subscribers[e]=new ns(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new ns(this.subject),r.subscribe(t)}unsubscribe(t,e){var o,i;e?(o=this.subscribers[e])===null||o===void 0||o.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const as=Object.freeze({unknown:void 0,coupled:1}),$=G.getById(ne.observable,()=>{const s=Mt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let o,i=u=>{throw G.error(1101)};function r(u){var c;let b=(c=u.$fastController)!==null&&c!==void 0?c:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new si(u))),b}const n=ei();class h{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return o!==void 0&&o.watch(c,this.name),c[this.field]}setValue(c,b){const I=this.field,D=c[I];if(D!==b){c[I]=b;const Qt=c[this.callback];me(Qt)&&Qt.call(c,D,b),r(c).notify(this.name)}}}class p extends ns{constructor(c,b,I=!1){super(c,b),this.expression=c,this.isVolatileBinding=I,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 b=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),b}requiresUnbind(c){return c.sourceLifetime!==as.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,b){this.needsRefresh&&this.last!==null&&this.dispose();const I=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let D;try{D=this.expression(c,b)}finally{o=I}return D}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,b){const I=this.last,D=r(c),Qt=I===null?this.first:{};if(Qt.propertySource=c,Qt.propertyName=b,Qt.notifier=D,D.subscribe(this,b),I!==null){if(!this.needsRefresh){let Ys;o=void 0,Ys=I.propertySource[I.propertyName],o=this,c===Ys&&(this.needsRefresh=!0)}I.next=Qt}this.last=Qt}handleChange(){this.needsQueue?(this.needsQueue=!1,s(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 ve(p),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,c){o&&o.watch(u,c)},trackVolatile(){o&&(o.needsRefresh=!0)},notify(u,c){r(u).notify(c)},defineProperty(u,c){wt(c)&&(c=new h(c)),n(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get(){return c.getValue(this)},set(b){c.setValue(this,b)}})},getAccessors:n,binding(u,c,b=this.isVolatileBinding(u)){return new p(u,c,b)},isVolatileBinding(u){return t.test(u.toString())}})});function v(s,t){$.defineProperty(s,t)}function on(s,t,e){return Object.assign({},e,{get(){return $.trackVolatile(),e.get.apply(this)}})}const ii=G.getById(ne.contextEvent,()=>{let s=null;return{get(){return s},set(t){s=t}}}),Le=Object.freeze({default:{index:0,length:0,get event(){return Le.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ii.get()},setEvent(s){ii.set(s)}});class uo{constructor(t,e,o=!1){this.evaluate=t,this.policy=e,this.isVolatile=o}}class sn extends uo{createObserver(t){return $.binding(this.evaluate,t,this.isVolatile)}}function ri(s,t,e=$.isVolatileBinding(s)){return new sn(s,t,e)}class ni extends uo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ve(ni);function ai(s,t){return new ni(s,t)}let li;function ci(s){return s.map(t=>t instanceof it?ci(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class it{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof it?e.behaviors:null).reduce((e,o)=>o===null?e:e===null?o:e.concat(o),null)}get strategy(){return this._strategy===null&&this.withStrategy(li),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(ci(this.styles)),this}static setDefaultStrategy(t){li=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new it(t):t instanceof it?t:new it([t])}}it.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const ls=rs(),cs=Object.freeze({getForInstance:ls.getForInstance,getByType:ls.getByType,define(s){return ls.register({type:s}),s}});function ds(s,t,e){t.source.style.setProperty(s.targetAspect,e.bind(t))}class hs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const o=t.source;if(!o.$cssBindings){o.$cssBindings=new Map;const r=o.setAttribute;o.setAttribute=(n,h)=>{r.call(o,n,h),n==="style"&&o.$cssBindings.forEach((p,u)=>ds(u,p.controller,p.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){ds(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){ds(this,e.controller,e)}}cs.define(hs);const rn=`${Math.random().toString(36).substring(2,8)}`;let nn=0;const di=()=>`--v${rn}${++nn}`;function hi(s,t){const e=[];let o="";const i=[],r=n=>{i.push(n)};for(let n=0,h=s.length-1;n<h;++n){o+=s[n];let p=t[n];me(p)?p=new hs(ri(p),di()).createCSS(r):p instanceof uo?p=new hs(p,di()).createCSS(r):cs.getForInstance(p)!==void 0&&(p=p.createCSS(r)),p instanceof it||p instanceof CSSStyleSheet?(o.trim()!==""&&(e.push(o),o=""),e.push(p)):o+=p}return o+=s[s.length-1],o.trim()!==""&&e.push(o),{styles:e,behaviors:i}}const l=(s,...t)=>{const{styles:e,behaviors:o}=hi(s,t),i=new it(e);return o.length?i.withBehaviors(...o):i};class ui{constructor(t,e){this.behaviors=e,this.css="";const o=t.reduce((i,r)=>(wt(r)?this.css+=r:i.push(r),i),[]);o.length&&(this.styles=new it(o))}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)}}cs.define(ui),l.partial=(s,...t)=>{const{styles:e,behaviors:o}=hi(s,t);return new ui(e,o)};const us=`fast-${Math.random().toString(36).substring(2,8)}`,po=`${us}{`,He=`}${us}`,an=He.length;let ln=0;const ps=()=>`${us}-${++ln}`,pi=Object.freeze({interpolation:s=>`${po}${s}${He}`,attribute:s=>`${ps()}="${po}${s}${He}"`,comment:s=>`<!--${po}${s}${He}-->`}),fo=Object.freeze({parse(s,t){const e=s.split(po);if(e.length===1)return null;const o=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(He);let p;if(h===-1)p=n;else{const u=n.substring(0,h);o.push(t[u]),p=n.substring(h+an)}p!==""&&o.push(p)}return o}}),fs=rs(),gt=Object.freeze({getForInstance:fs.getForInstance,getByType:fs.getByType,define(s,t){return t=t||{},t.type=s,fs.register(t),s},assignAspect(s,t){if(!t){s.aspectType=K.content;return}switch(s.sourceAspect=t,t[0]){case":":s.targetAspect=t.substring(1),s.aspectType=s.targetAspect==="classList"?K.tokenList:K.property;break;case"?":s.targetAspect=t.substring(1),s.aspectType=K.booleanAttribute;break;case"@":s.targetAspect=t.substring(1),s.aspectType=K.event;break;default:s.targetAspect=t,s.aspectType=K.attribute;break}}});class gs{constructor(t){this.options=t}createHTML(t){return pi.attribute(t(this))}createBehavior(){return this}}ve(gs);function cn(s,t,e,o){if(e==null&&(e=""),e.create){s.textContent="";let i=s.$fastView;i===void 0?i=e.create():s.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(o.source,o.context)):(i.isComposed=!0,i.bind(o.source,o.context),i.insertBefore(s),s.$fastView=i,s.$fastTemplate=e)}else{const i=s.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),s.textContent=e}}function dn(s,t,e){var o;const i=`${this.id}-t`,r=(o=s[i])!==null&&o!==void 0?o:s[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const p=s[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let c=0,b=u.length;c<b;++c){const I=u[c];I!==""&&(n[I]=h,p.add(I))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&p.remove(u)}}const hn={[K.attribute]:$e.setAttribute,[K.booleanAttribute]:$e.setBooleanAttribute,[K.property]:(s,t,e)=>s[t]=e,[K.content]:cn,[K.tokenList]:dn,[K.event]:()=>{}};class ye{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=K.content}createHTML(t){return pi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=hn[this.aspectType],o=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw G.error(1205);this.data=`${this.id}-d`,this.updateTarget=o.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const o=t.targets[this.targetNodeId];switch(this.aspectType){case K.event:o[this.data]=t,o.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:t.onUnbind(this);default:const i=(e=o[this.data])!==null&&e!==void 0?e:o[this.data]=this.dataBinding.createObserver(this,this);i.target=o,i.controller=t,this.updateTarget(o,this.targetAspect,i.bind(t),t);break}}unbind(t){const o=t.targets[this.targetNodeId].$fastView;o!==void 0&&o.isComposed&&(o.unbind(),o.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Le.setEvent(t);const o=this.dataBinding.evaluate(e.source,e.context);Le.setEvent(null),o!==!0&&t.preventDefault()}}handleChange(t,e){const o=e.target,i=e.controller;this.updateTarget(o,this.targetAspect,e.bind(i),i)}}gt.define(ye,{aspected:!0});function fi(s,t){const e=s.parentNode;let o=s,i;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t)}class go{constructor(t,e,o){this.fragment=t,this.factories=e,this.targets=o,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=as.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Le.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}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 o=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,o.insertBefore(i,t),i=r;o.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let o=this.firstChild,i;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){fi(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let o=this.behaviors;if(o===null){this.source=t,this.context=e,this.behaviors=o=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),o[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=o.length;i<r;++i)o[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,o=t.length;e<o;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){fi(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,o=t.length;e<o;++e)t[e].unbind()}}}ve(go),$.defineProperty(go.prototype,"index"),$.defineProperty(go.prototype,"length");const gi=(s,t)=>`${s}.${t}`,bi={},Ct={index:0,node:null};function mi(s){s.startsWith("fast-")||G.warn(1204,{name:s})}const un=new Proxy(document.createElement("div"),{get(s,t){mi(t);const e=Reflect.get(s,t);return me(e)?e.bind(s):e},set(s,t,e){return mi(t),Reflect.set(s,t,e)}});class pn{constructor(t,e,o){this.fragment=t,this.directives=e,this.policy=o,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,o,i,r){var n,h;this.nodeIds.has(o)||(this.nodeIds.add(o),this.addTargetDescriptor(e,o,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ps(),t.targetNodeId=o,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,o){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),p=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,p)}let r=bi[e];if(!r){const n=`_${e}`;bi[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[o]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),o=Object.create(this.proto);o.r=e,o.h=t??un;for(const i of this.nodeIds)o[i];return new go(e,this.factories,o)}}function vi(s,t,e,o,i,r=!1){const n=e.attributes,h=s.directives;for(let p=0,u=n.length;p<u;++p){const c=n[p],b=c.value,I=fo.parse(b,h);let D=null;I===null?r&&(D=new ye(ai(()=>b,s.policy)),gt.assignAspect(D,c.name)):D=bs.aggregate(I,s.policy),D!==null&&(e.removeAttributeNode(c),p--,u--,s.addFactory(D,t,o,i,e.tagName))}}function fn(s,t,e,o,i){const r=fo.parse(t.textContent,s.directives);if(r===null)return Ct.node=t.nextSibling,Ct.index=i+1,Ct;let n,h=n=t;for(let p=0,u=r.length;p<u;++p){const c=r[p];p!==0&&(i++,o=gi(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),wt(c)?n.textContent=c:(n.textContent=" ",gt.assignAspect(c),s.addFactory(c,e,o,i,null)),h=n}return Ct.index=i+1,Ct.node=h.nextSibling,Ct}function $i(s,t,e){let o=0,i=t.firstChild;for(;i;){const r=gn(s,e,i,o);i=r.node,o=r.index}}function gn(s,t,e,o){const i=gi(t,o);switch(e.nodeType){case 1:vi(s,t,e,i,o),$i(s,e,i);break;case 3:return fn(s,e,t,i,o);case 8:const r=fo.parse(e.data,s.directives);r!==null&&s.addFactory(bs.aggregate(r),t,i,o,null);break}return Ct.index=o+1,Ct.node=e.nextSibling,Ct}function bn(s,t){return s&&s.nodeType==8&&fo.parse(s.data,t)!==null}const yi="TEMPLATE",bs={compile(s,t,e=$e.policy){let o;if(wt(s)){o=document.createElement(yi),o.innerHTML=e.createHTML(s);const n=o.content.firstElementChild;n!==null&&n.tagName===yi&&(o=n)}else o=s;!o.content.firstChild&&!o.content.lastChild&&o.content.appendChild(document.createComment(""));const i=document.adoptNode(o.content),r=new pn(i,t,e);return vi(r,"",o,"h",0,!0),(bn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),$i(r,i,"r"),Ct.node=null,r.freeze()},setDefaultStrategy(s){this.compile=s},aggregate(s,t=$e.policy){if(s.length===1)return s[0];let e,o,i=!1,r;const n=s.length,h=s.map(c=>wt(c)?()=>c:(e=c.sourceAspect||e,o=c.dataBinding||o,i=i||c.dataBinding.isVolatile,r=r||c.dataBinding.policy,c.dataBinding.evaluate)),p=(c,b)=>{let I="";for(let D=0;D<n;++D)I+=h[D](c,b);return I};o.evaluate=p,o.isVolatile=i,o.policy=r??t;const u=new ye(o);return gt.assignAspect(u,e),u}},mn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,vn=Object.create(null);class ae{constructor(t,e=vn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const o in e)t(e[o]);return this.html}}ae.empty=new ae(""),gt.define(ae);function $n(s,t,e,o=gt.getForInstance(s)){if(o.aspected){const i=mn.exec(t);i!==null&>.assignAspect(s,i[2])}return s.createHTML(e)}class es{constructor(t,e={},o){this.policy=o,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=bs.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ae(wt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw G.error(1208);if(this.policy)throw G.error(1207);return this.policy=t,this}render(t,e,o){const i=this.create(o);return i.bind(t),i.appendTo(e),i}static create(t,e,o){let i="";const r=Object.create(null),n=h=>{var p;const u=(p=h.id)!==null&&p!==void 0?p:h.id=ps();return r[u]=h,u};for(let h=0,p=t.length-1;h<p;++h){const u=t[h];let c=e[h],b;if(i+=u,me(c))c=new ye(ri(c));else if(c instanceof uo)c=new ye(c);else if(!(b=gt.getForInstance(c))){const I=c;c=new ye(ai(()=>I))}i+=$n(c,u,n,b)}return new es(i+t[t.length-1],r,o)}}ve(es);const g=(s,...t)=>{if(Array.isArray(s)&&Array.isArray(s.raw))return es.create(s,t);throw G.error(1206)};g.partial=s=>new ae(s);class ki extends gs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}gt.define(ki);const Et=s=>new ki(s),yn=s=>s.nodeType===1,le=s=>s?t=>t.nodeType===1&&t.matches(s):yn;class xi extends gs{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,ti),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 wi="slotchange";class Ci extends xi{observe(t){t.addEventListener(wi,this)}disconnect(t){t.removeEventListener(wi,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}gt.define(Ci);function rt(s){return wt(s)&&(s={property:s}),new Ci(s)}class Si extends xi{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,o)=>{const i=o.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=Zs,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)}}gt.define(Si);function kn(s){return wt(s)&&(s={property:s}),new Si(s)}const Ii="boolean",Pi="reflect",bo=Object.freeze({locate:ei()}),Bi={toView(s){return s?"true":"false"},fromView(s){return!(s==null||s==="false"||s===!1||s===0)}};function Ti(s){if(s==null)return null;const t=s*1;return isNaN(t)?null:t}const nt={toView(s){const t=Ti(s);return t&&t.toString()},fromView:Ti};class os{constructor(t,e,o=e.toLowerCase(),i=Pi,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=o,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===Ii&&r===void 0&&(this.converter=Bi)}setValue(t,e){const o=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),o!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](o,e),t.$fastController.notify(this.name))}getValue(t){return $.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,o=this.guards;o.has(t)||e==="fromView"||Mt.enqueue(()=>{o.add(t);const i=t[this.fieldName];switch(e){case Pi:const r=this.converter;$e.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Ii:$e.setBooleanAttribute(t,this.attribute,i);break}o.delete(t)})}static collect(t,...e){const o=[];e.push(bo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,p=n.length;h<p;++h){const u=n[h];wt(u)?o.push(new os(t,u)):o.push(new os(t,u.property,u.attribute,u.mode,u.converter))}}return o}}function a(s,t){let e;function o(i,r){arguments.length>1&&(e.property=r),bo.locate(i.constructor).push(e)}if(arguments.length>1){e={},o(s,t);return}return e=s===void 0?{}:s,o}const zi={mode:"open"},Fi={},Oi=new Set,mo=G.getById(ne.elementRegistry,()=>rs());class xt{constructor(t,e=t.definition){var o;this.platformDefined=!1,wt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(o=e.registry)!==null&&o!==void 0?o:customElements;const i=t.prototype,r=os.collect(t,e.attributes),n=new Array(r.length),h={},p={};for(let u=0,c=r.length;u<c;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,p[b.attribute]=b,$.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=p,this.shadowOptions=e.shadowOptions===void 0?zi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},zi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Fi:Object.assign(Object.assign({},Fi),e.elementOptions),this.styles=it.normalize(e.styles),mo.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 Oi.has(t)||mo.getByType(t)?new xt(class extends t{},e):new xt(t,e)}static registerBaseType(t){Oi.add(t)}}xt.getByType=mo.getByType,xt.getForInstance=mo.getForInstance;const xn={bubbles:!0,composed:!0,cancelable:!0},ms="isConnected",Ai=new WeakMap;function vo(s){var t,e;return(e=(t=s.shadowRoot)!==null&&t!==void 0?t:Ai.get(s))!==null&&e!==void 0?e:null}let _i;class $o extends si{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._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const o=e.shadowOptions;if(o!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(o),o.mode==="closed"&&Ai.set(t,r))}const i=$.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const p=i[n].name,u=t[p];u!==void 0&&(delete t[p],r[p]=u)}}}get isConnected(){return $.track(this,ms),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Le.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,o;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(o=i.get(t))!==null&&o!==void 0?o:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const o=this.behaviors;if(o===null)return;const i=o.get(t);i!==void 0&&(i===1||e?(o.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):o.set(t,i-1))}addStyles(t){var e;if(!t)return;const o=this.source;if(t instanceof HTMLElement)((e=vo(o))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(o)){const i=t.behaviors;if(t.addStylesTo(o),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const o=this.source;if(t instanceof HTMLElement)((e=vo(o))!==null&&e!==void 0?e:o).removeChild(t);else if(t.isAttachedTo(o)){const i=t.behaviors;if(t.removeStylesFrom(o),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,o=this.boundObservables,i=Object.keys(o);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=o[h]}this.boundObservables=null}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.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,$.notify(this,ms)}disconnect(){if(this.stage!==1)return;this.stage=2,$.notify(this,ms),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,o){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,o)}emit(t,e,o){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},xn),o))):!1}renderTemplate(t){var e;const o=this.source,i=(e=vo(o))!==null&&e!==void 0?e:o;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(o,i,o),this.view.sourceLifetime=as.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const o=xt.getForInstance(t);if(o===void 0)throw G.error(1401);return t.$fastController=new _i(t,o)}static setStrategy(t){_i=t}}ve($o),$o.setStrategy($o);function yo(s){var t;return"adoptedStyleSheets"in s?s:(t=vo(s))!==null&&t!==void 0?t:s.getRootNode()}class ss{constructor(t){const e=ss.styleSheetCache;this.sheets=t.map(o=>{if(o instanceof CSSStyleSheet)return o;let i=e.get(o);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(o),e.set(o,i)),i})}addStylesTo(t){Ei(yo(t),this.sheets)}removeStylesFrom(t){Li(yo(t),this.sheets)}}ss.styleSheetCache=new Map;let wn=0;const Cn=()=>`fast-${++wn}`;function Mi(s){return s===document?document.body:s}class Sn{constructor(t){this.styles=t,this.styleClass=Cn()}addStylesTo(t){t=Mi(yo(t));const e=this.styles,o=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=o,t.append(r)}}removeStylesFrom(t){t=Mi(yo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let o=0,i=e.length;o<i;++o)t.removeChild(e[o])}}let Ei=(s,t)=>{s.adoptedStyleSheets=[...s.adoptedStyleSheets,...t]},Li=(s,t)=>{s.adoptedStyleSheets=s.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(it.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ei=(s,t)=>{s.adoptedStyleSheets.push(...t)},Li=(s,t)=>{for(const e of t){const o=s.adoptedStyleSheets.indexOf(e);o!==-1&&s.adoptedStyleSheets.splice(o,1)}}}catch{}it.setDefaultStrategy(ss)}else it.setDefaultStrategy(Sn);function Hi(s){const t=class extends s{constructor(){super(),$o.forCustomElement(this)}$emit(e,o,i){return this.$fastController.emit(e,o,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,o,i){this.$fastController.onAttributeChangedCallback(e,o,i)}};return xt.registerBaseType(t),t}function In(s,t){return me(s)?xt.compose(s,t):xt.compose(this,s)}function Pn(s,t){return me(s)?xt.compose(s,t).define().type:xt.compose(this,s).define().type}function Bn(s){return Hi(s)}const x=Object.assign(Hi(HTMLElement),{from:Bn,define:Pn,compose:In}),Q={horizontal:"horizontal",vertical:"vertical"};function Ni(...s){return s.every(t=>t instanceof HTMLElement)}const ke="ArrowDown",xe="ArrowLeft",we="ArrowRight",Ce="ArrowUp",ko="End",Se="Enter",Tn="Escape",xo="Home",wo=" ",zn="Tab",Fn={ArrowDown:ke,ArrowLeft:xe,ArrowRight:we,ArrowUp:Ce};var dt;(function(s){s.ltr="ltr",s.rtl="rtl"})(dt||(dt={}));function On(s,t,e){return e<s?t:e>t?s:e}function vs(s,t,e){return Math.min(Math.max(e,s),t)}let An=0;function $s(s=""){return`${s}${An++}`}var _n=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,L=(s,t,e,o)=>{for(var i=o>1?void 0:o?Mn(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&_n(t,e,i),i};class H{}L([a({attribute:"aria-atomic"})],H.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],H.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],H.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],H.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],H.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],H.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],H.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],H.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],H.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],H.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],H.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],H.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],H.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],H.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],H.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],H.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],H.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],H.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],H.prototype,"ariaRoledescription",2);const Di=s=>s.closest("[dir]")?.dir==="rtl"?dt.rtl:dt.ltr;function ht(s){return s?typeof s=="string"?new ae(s):"inline"in s?s.inline():s:ae.empty}const Ri=s=>s.nodeType!==Node.TEXT_NODE||!!s.nodeValue?.trim().length,En=":host([hidden]){display:none}";function C(s){return`${En}:host{display:${s}}`}class Ln{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let o=this.listenerCache.get(t);o||(o=this.constructListener(t),this.listenerCache.set(t,o)),o.bind(e)(),e.addEventListener("change",o)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class lo extends Ln{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new lo(t,e)}constructListener(t){let e=!1;const o=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(o),e=r):!r&&e&&(t.removeStyles(o),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Z=lo.with(window.matchMedia("(forced-colors)"));lo.with(window.matchMedia("(prefers-color-scheme: dark)")),lo.with(window.matchMedia("(prefers-color-scheme: light)"));class Lt{}function Ht(s){return g`<slot name="end" ${Et("end")}>${ht(s.end)}</slot>`.inline()}function Nt(s){return g`<slot name="start" ${Et("start")}>${ht(s.start)}</slot>`.inline()}function Dt(s,...t){const e=bo.locate(s);t.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(s.prototype,r,Object.getOwnPropertyDescriptor(o.prototype,r))}),bo.locate(o).forEach(r=>e.push(r))})}var Hn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,ce=(s,t,e,o)=>{for(var i=o>1?void 0:o?Nn(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Hn(t,e,i),i};class J extends x{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=$s("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}ce([a({attribute:"heading-level",mode:"fromView",converter:nt})],J.prototype,"headinglevel",2),ce([a({mode:"boolean"})],J.prototype,"expanded",2),ce([a({mode:"boolean"})],J.prototype,"disabled",2),ce([a],J.prototype,"id",2),ce([a],J.prototype,"size",2),ce([a({mode:"boolean"})],J.prototype,"block",2),ce([a({attribute:"expand-icon-position"})],J.prototype,"expandIconPosition",2),Dt(J,Lt);const A="var(--colorNeutralForeground1)",Vi="var(--colorNeutralForeground1Hover)",Dn="var(--colorNeutralForeground1Pressed)",Rt="var(--colorNeutralForeground2)",Co="var(--colorNeutralForeground2Hover)",So="var(--colorNeutralForeground2Pressed)",Rn="var(--colorNeutralForeground2Selected)",Io="var(--colorNeutralForeground2BrandHover)",Po="var(--colorNeutralForeground2BrandPressed)",Vn="var(--colorNeutralForeground2BrandSelected)",tt="var(--colorNeutralForeground3)",jn="var(--colorNeutralForeground3Hover)",qn="var(--colorNeutralForeground3Pressed)",Gn="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",Wn="var(--colorBrandForegroundLink)",Un="var(--colorBrandForegroundLinkHover)",Xn="var(--colorBrandForegroundLinkPressed)",Kn="var(--colorNeutralForeground2Link)",Yn="var(--colorNeutralForeground2LinkHover)",Qn="var(--colorNeutralForeground2LinkPressed)",ji="var(--colorCompoundBrandForeground1)",qi="var(--colorCompoundBrandForeground1Hover)",Gi="var(--colorCompoundBrandForeground1Pressed)",Vt="var(--colorNeutralForegroundOnBrand)",Bo="var(--colorNeutralForegroundInverted)",Zn="var(--colorNeutralForegroundInvertedHover)",Jn="var(--colorNeutralForegroundInvertedPressed)",Wi="var(--colorNeutralForegroundStaticInverted)",ys="var(--colorBrandForeground1)",ta="var(--colorBrandForeground2)",ea="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",ks="var(--colorNeutralBackground1Hover)",Ui="var(--colorNeutralBackground1Pressed)",Xi="var(--colorNeutralBackground1Selected)",Ki="var(--colorNeutralBackground3)",oa="var(--colorNeutralBackground4)",sa="var(--colorNeutralBackground5)",To="var(--colorNeutralBackground6)",ia="var(--colorNeutralBackgroundInverted)",ra="var(--colorSubtleBackground)",xs="var(--colorSubtleBackgroundHover)",zo="var(--colorSubtleBackgroundPressed)",na="var(--colorSubtleBackgroundSelected)",bt="var(--colorTransparentBackground)",ws="var(--colorTransparentBackgroundHover)",Cs="var(--colorTransparentBackgroundPressed)",aa="var(--colorTransparentBackgroundSelected)",Ne="var(--colorNeutralBackgroundDisabled)",la="var(--colorBackgroundOverlay)",Ss="var(--colorBrandBackground)",Yi="var(--colorBrandBackgroundHover)",Qi="var(--colorBrandBackgroundPressed)",ca="var(--colorBrandBackgroundSelected)",De="var(--colorCompoundBrandBackground)",Re="var(--colorCompoundBrandBackgroundHover)",Ve="var(--colorCompoundBrandBackgroundPressed)",Zi="var(--colorBrandBackgroundStatic)",da="var(--colorBrandBackground2)",jt="var(--colorNeutralStrokeAccessible)",je="var(--colorNeutralStrokeAccessibleHover)",qe="var(--colorNeutralStrokeAccessiblePressed)",Ie="var(--colorNeutralStroke1)",Fo="var(--colorNeutralStroke1Hover)",Is="var(--colorNeutralStroke1Pressed)",Ge="var(--colorNeutralStroke2)",ha="var(--colorNeutralStroke3)",ua="var(--colorNeutralStrokeOnBrand2)",Ji="var(--colorBrandStroke1)",tr="var(--colorBrandStroke2)",Ps="var(--colorCompoundBrandStroke)",Bs="var(--colorCompoundBrandStrokeHover)",Ts="var(--colorCompoundBrandStrokePressed)",qt="var(--colorNeutralStrokeDisabled)",St="var(--colorTransparentStroke)",er="var(--colorTransparentStrokeInteractive)",Oo="var(--colorStrokeFocus1)",It="var(--colorStrokeFocus2)",pa="var(--colorPaletteRedBackground1)",fa="var(--colorPaletteRedBackground2)",or="var(--colorPaletteRedBackground3)",ga="var(--colorPaletteRedBorder1)",ba="var(--colorPaletteRedBorder2)",sr="var(--colorPaletteRedForeground1)",ma="var(--colorPaletteRedForeground2)",ir="var(--colorPaletteRedForeground3)",va="var(--colorPaletteGreenBackground1)",rr="var(--colorPaletteGreenBackground3)",$a="var(--colorPaletteGreenBorder2)",ya="var(--colorPaletteGreenForeground1)",ka="var(--colorPaletteGreenForeground2)",xa="var(--colorPaletteGreenForeground3)",wa="var(--colorPaletteDarkOrangeBackground1)",nr="var(--colorPaletteDarkOrangeBackground3)",Ca="var(--colorPaletteDarkOrangeBorder1)",Sa="var(--colorPaletteDarkOrangeForeground1)",ar="var(--colorPaletteDarkOrangeForeground3)",Ia="var(--colorPaletteYellowBackground1)",Pa="var(--colorPaletteYellowBackground3)",Ba="var(--colorPaletteYellowBorder1)",zs="var(--colorPaletteYellowForeground2)",Ta="var(--colorPaletteMarigoldBackground2)",za="var(--colorPaletteMarigoldForeground2)",Fa="var(--colorPaletteAnchorBackground2)",Oa="var(--colorPaletteAnchorForeground2)",Aa="var(--colorPaletteBeigeBackground2)",_a="var(--colorPaletteBeigeForeground2)",Ma="var(--colorPaletteBlueBackground2)",Ea="var(--colorPaletteBlueForeground2)",La="var(--colorPaletteBrassBackground2)",Ha="var(--colorPaletteBrassForeground2)",Na="var(--colorPaletteBrownBackground2)",Da="var(--colorPaletteBrownForeground2)",Ra="var(--colorPaletteCornflowerBackground2)",Va="var(--colorPaletteCornflowerForeground2)",ja="var(--colorPaletteCranberryBackground2)",qa="var(--colorPaletteCranberryForeground2)",Ga="var(--colorPaletteDarkGreenBackground2)",Wa="var(--colorPaletteDarkGreenForeground2)",Ua="var(--colorPaletteDarkRedBackground2)",Xa="var(--colorPaletteDarkRedForeground2)",Ka="var(--colorPaletteForestBackground2)",Ya="var(--colorPaletteForestForeground2)",Qa="var(--colorPaletteGoldBackground2)",Za="var(--colorPaletteGoldForeground2)",Ja="var(--colorPaletteGrapeBackground2)",tl="var(--colorPaletteGrapeForeground2)",el="var(--colorPaletteLavenderBackground2)",ol="var(--colorPaletteLavenderForeground2)",sl="var(--colorPaletteLightTealBackground2)",il="var(--colorPaletteLightTealForeground2)",rl="var(--colorPaletteLilacBackground2)",nl="var(--colorPaletteLilacForeground2)",al="var(--colorPaletteMagentaBackground2)",ll="var(--colorPaletteMagentaForeground2)",cl="var(--colorPaletteMinkBackground2)",dl="var(--colorPaletteMinkForeground2)",hl="var(--colorPaletteNavyBackground2)",ul="var(--colorPaletteNavyForeground2)",pl="var(--colorPalettePeachBackground2)",fl="var(--colorPalettePeachForeground2)",gl="var(--colorPalettePinkBackground2)",bl="var(--colorPalettePinkForeground2)",ml="var(--colorPalettePlatinumBackground2)",vl="var(--colorPalettePlatinumForeground2)",$l="var(--colorPalettePlumBackground2)",yl="var(--colorPalettePlumForeground2)",kl="var(--colorPalettePumpkinBackground2)",xl="var(--colorPalettePumpkinForeground2)",wl="var(--colorPalettePurpleBackground2)",Cl="var(--colorPalettePurpleForeground2)",Sl="var(--colorPaletteRoyalBlueBackground2)",Il="var(--colorPaletteRoyalBlueForeground2)",Pl="var(--colorPaletteSeafoamBackground2)",Bl="var(--colorPaletteSeafoamForeground2)",Tl="var(--colorPaletteSteelBackground2)",zl="var(--colorPaletteSteelForeground2)",Fl="var(--colorPaletteTealBackground2)",Ol="var(--colorPaletteTealForeground2)",Fs="var(--borderRadiusNone)",mt="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",lr="var(--borderRadiusLarge)",cr="var(--borderRadiusXLarge)",at="var(--borderRadiusCircular)",m="var(--fontFamilyBase)",Al="var(--fontFamilyMonospace)",_l="var(--fontFamilyNumeric)",We="var(--fontSizeBase100)",W="var(--fontSizeBase200)",z="var(--fontSizeBase300)",lt="var(--fontSizeBase400)",Pe="var(--fontSizeBase500)",Ao="var(--fontSizeBase600)",dr="var(--fontSizeHero700)",hr="var(--fontSizeHero800)",ur="var(--fontSizeHero900)",pr="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",Ml="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",_o="var(--fontWeightBold)",Mo="var(--lineHeightBase100)",ct="var(--lineHeightBase200)",M="var(--lineHeightBase300)",vt="var(--lineHeightBase400)",Eo="var(--lineHeightBase500)",fr="var(--lineHeightBase600)",gr="var(--lineHeightHero700)",br="var(--lineHeightHero800)",mr="var(--lineHeightHero900)",vr="var(--lineHeightHero1000)",$r="var(--shadow2)",Lo="var(--shadow4)",El="var(--shadow8)",yr="var(--shadow16)",Ll="var(--shadow28)",Hl="var(--shadow64)",Y="var(--strokeWidthThin)",de="var(--strokeWidthThick)",Zt="var(--strokeWidthThicker)",kr="var(--strokeWidthThickest)",he="var(--spacingHorizontalXXS)",Gt="var(--spacingHorizontalXS)",ue="var(--spacingHorizontalSNudge)",Pt="var(--spacingHorizontalS)",Wt="var(--spacingHorizontalMNudge)",Jt="var(--spacingHorizontalM)",Nl="var(--spacingHorizontalL)",Dl="var(--spacingHorizontalXXL)",Ho="var(--spacingVerticalXXS)",Rl="var(--spacingVerticalXS)",Ue="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",xr="var(--spacingVerticalMNudge)",wr="var(--spacingVerticalL)",Xe="var(--spacingVerticalXXL)",Vl="var(--durationUltraFast)",Os="var(--durationFaster)",Cr="var(--durationNormal)",jl="var(--durationGentle)",ql="var(--durationSlow)",Sr="var(--durationSlower)",No="var(--durationUltraSlow)",Gl="var(--curveAccelerateMax)",As="var(--curveAccelerateMid)",Wl="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",_s="var(--curveDecelerateMid)",Ul="var(--curveDecelerateMin)",Xl="var(--curveEasyEaseMax)",Ms="var(--curveEasyEase)",Pr="var(--curveLinear)",Kl=l`
|
|
1
|
+
const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let co;const Qs="fast-kernel";try{if(document.currentScript)co=document.currentScript.getAttribute(Qs);else{const s=document.getElementsByTagName("script");co=s[s.length-1].getAttribute(Qs)}}catch{co="isolate"}let ne;switch(co){case"share":ne=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ne=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const s=`-${Math.random().toString(36).substring(2,8)}`;ne=Object.freeze({updateQueue:`1.2${s}`,observable:`2.2${s}`,contextEvent:`3.2${s}`,elementRegistry:`4.2${s}`});break}const me=s=>typeof s=="function",wt=s=>typeof s=="string",Zs=()=>{};var is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof is<"u")is.globalThis=is;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 Js={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Js));const G=globalThis.FAST;if(G.getById===void 0){const s=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(t,e){let o=s[t];return o===void 0&&(o=e?s[t]=e():null),o}},Js))}G.error===void 0&&Object.assign(G,{warn(){},error(s){return new Error(`Error ${s}`)},addMessages(){}});const ti=Object.freeze([]);function rs(){const s=new Map;return Object.freeze({register(t){return s.has(t.type)?!1:(s.set(t.type,t),!0)},getByType(t){return s.get(t)},getForInstance(t){if(t!=null)return s.get(t.constructor)}})}function ei(){const s=new WeakMap;return function(t){let e=s.get(t);if(e===void 0){let o=Reflect.getPrototypeOf(t);for(;e===void 0&&o!==null;)e=s.get(o),o=Reflect.getPrototypeOf(o);e=e===void 0?[]:e.slice(0),s.set(t,e)}return e}}function ve(s){s.prototype.toJSON=Zs}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),oi=s=>s,rn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:oi}):{createHTML:oi};let ho=Object.freeze({createHTML(s){return rn.createHTML(s)},protect(s,t,e,o){return o}});const nn=ho,$e=Object.freeze({get policy(){return ho},setPolicy(s){if(ho!==nn)throw G.error(1201);ho=s},setAttribute(s,t,e){e==null?s.removeAttribute(t):s.setAttribute(t,e)},setBooleanAttribute(s,t,e){e?s.setAttribute(t,""):s.removeAttribute(t)}}),Mt=G.getById(ne.updateQueue,()=>{const s=[],t=[],e=globalThis.requestAnimationFrame;let o=!0;function i(){if(t.length)throw t.shift()}function r(p){try{p.call()}catch(u){if(o)t.push(u),setTimeout(i,0);else throw s.length=0,u}}function n(){let u=0;for(;u<s.length;)if(r(s[u]),u++,u>1024){for(let c=0,b=s.length-u;c<b;c++)s[c]=s[c+u];s.length-=u,u=0}s.length=0}function h(p){s.push(p),s.length<2&&(o?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:p=>o=p})});class ns{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 o=e.indexOf(t);o!==-1&&e.splice(o,1)}}notify(t){const e=this.spillover,o=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(o,t),r!==void 0&&r.handleChange(o,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(o,t)}}class si{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,o;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(o=this.subjectSubscribers)===null||o===void 0||o.notify(t)}subscribe(t,e){var o,i;let r;e?r=(o=this.subscribers[e])!==null&&o!==void 0?o:this.subscribers[e]=new ns(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new ns(this.subject),r.subscribe(t)}unsubscribe(t,e){var o,i;e?(o=this.subscribers[e])===null||o===void 0||o.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const as=Object.freeze({unknown:void 0,coupled:1}),m=G.getById(ne.observable,()=>{const s=Mt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let o,i=u=>{throw G.error(1101)};function r(u){var c;let b=(c=u.$fastController)!==null&&c!==void 0?c:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new si(u))),b}const n=ei();class h{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return o!==void 0&&o.watch(c,this.name),c[this.field]}setValue(c,b){const I=this.field,D=c[I];if(D!==b){c[I]=b;const Qt=c[this.callback];me(Qt)&&Qt.call(c,D,b),r(c).notify(this.name)}}}class p extends ns{constructor(c,b,I=!1){super(c,b),this.expression=c,this.isVolatileBinding=I,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 b=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),b}requiresUnbind(c){return c.sourceLifetime!==as.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,b){this.needsRefresh&&this.last!==null&&this.dispose();const I=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let D;try{D=this.expression(c,b)}finally{o=I}return D}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,b){const I=this.last,D=r(c),Qt=I===null?this.first:{};if(Qt.propertySource=c,Qt.propertyName=b,Qt.notifier=D,D.subscribe(this,b),I!==null){if(!this.needsRefresh){let Ys;o=void 0,Ys=I.propertySource[I.propertyName],o=this,c===Ys&&(this.needsRefresh=!0)}I.next=Qt}this.last=Qt}handleChange(){this.needsQueue?(this.needsQueue=!1,s(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 ve(p),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,c){o&&o.watch(u,c)},trackVolatile(){o&&(o.needsRefresh=!0)},notify(u,c){r(u).notify(c)},defineProperty(u,c){wt(c)&&(c=new h(c)),n(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get(){return c.getValue(this)},set(b){c.setValue(this,b)}})},getAccessors:n,binding(u,c,b=this.isVolatileBinding(u)){return new p(u,c,b)},isVolatileBinding(u){return t.test(u.toString())}})});function $(s,t){m.defineProperty(s,t)}function an(s,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const ii=G.getById(ne.contextEvent,()=>{let s=null;return{get(){return s},set(t){s=t}}}),Le=Object.freeze({default:{index:0,length:0,get event(){return Le.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ii.get()},setEvent(s){ii.set(s)}});class uo{constructor(t,e,o=!1){this.evaluate=t,this.policy=e,this.isVolatile=o}}class ln extends uo{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function ri(s,t,e=m.isVolatileBinding(s)){return new ln(s,t,e)}class ni extends uo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ve(ni);function ai(s,t){return new ni(s,t)}let li;function ci(s){return s.map(t=>t instanceof it?ci(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class it{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof it?e.behaviors:null).reduce((e,o)=>o===null?e:e===null?o:e.concat(o),null)}get strategy(){return this._strategy===null&&this.withStrategy(li),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(ci(this.styles)),this}static setDefaultStrategy(t){li=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new it(t):t instanceof it?t:new it([t])}}it.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const ls=rs(),cs=Object.freeze({getForInstance:ls.getForInstance,getByType:ls.getByType,define(s){return ls.register({type:s}),s}});function ds(s,t,e){t.source.style.setProperty(s.targetAspect,e.bind(t))}class hs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const o=t.source;if(!o.$cssBindings){o.$cssBindings=new Map;const r=o.setAttribute;o.setAttribute=(n,h)=>{r.call(o,n,h),n==="style"&&o.$cssBindings.forEach((p,u)=>ds(u,p.controller,p.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){ds(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){ds(this,e.controller,e)}}cs.define(hs);const cn=`${Math.random().toString(36).substring(2,8)}`;let dn=0;const di=()=>`--v${cn}${++dn}`;function hi(s,t){const e=[];let o="";const i=[],r=n=>{i.push(n)};for(let n=0,h=s.length-1;n<h;++n){o+=s[n];let p=t[n];me(p)?p=new hs(ri(p),di()).createCSS(r):p instanceof uo?p=new hs(p,di()).createCSS(r):cs.getForInstance(p)!==void 0&&(p=p.createCSS(r)),p instanceof it||p instanceof CSSStyleSheet?(o.trim()!==""&&(e.push(o),o=""),e.push(p)):o+=p}return o+=s[s.length-1],o.trim()!==""&&e.push(o),{styles:e,behaviors:i}}const l=(s,...t)=>{const{styles:e,behaviors:o}=hi(s,t),i=new it(e);return o.length?i.withBehaviors(...o):i};class ui{constructor(t,e){this.behaviors=e,this.css="";const o=t.reduce((i,r)=>(wt(r)?this.css+=r:i.push(r),i),[]);o.length&&(this.styles=new it(o))}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)}}cs.define(ui),l.partial=(s,...t)=>{const{styles:e,behaviors:o}=hi(s,t);return new ui(e,o)};const us=`fast-${Math.random().toString(36).substring(2,8)}`,po=`${us}{`,He=`}${us}`,hn=He.length;let un=0;const ps=()=>`${us}-${++un}`,pi=Object.freeze({interpolation:s=>`${po}${s}${He}`,attribute:s=>`${ps()}="${po}${s}${He}"`,comment:s=>`<!--${po}${s}${He}-->`}),fo=Object.freeze({parse(s,t){const e=s.split(po);if(e.length===1)return null;const o=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(He);let p;if(h===-1)p=n;else{const u=n.substring(0,h);o.push(t[u]),p=n.substring(h+hn)}p!==""&&o.push(p)}return o}}),fs=rs(),gt=Object.freeze({getForInstance:fs.getForInstance,getByType:fs.getByType,define(s,t){return t=t||{},t.type=s,fs.register(t),s},assignAspect(s,t){if(!t){s.aspectType=K.content;return}switch(s.sourceAspect=t,t[0]){case":":s.targetAspect=t.substring(1),s.aspectType=s.targetAspect==="classList"?K.tokenList:K.property;break;case"?":s.targetAspect=t.substring(1),s.aspectType=K.booleanAttribute;break;case"@":s.targetAspect=t.substring(1),s.aspectType=K.event;break;default:s.targetAspect=t,s.aspectType=K.attribute;break}}});class gs{constructor(t){this.options=t}createHTML(t){return pi.attribute(t(this))}createBehavior(){return this}}ve(gs);function pn(s,t,e,o){if(e==null&&(e=""),e.create){s.textContent="";let i=s.$fastView;i===void 0?i=e.create():s.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(o.source,o.context)):(i.isComposed=!0,i.bind(o.source,o.context),i.insertBefore(s),s.$fastView=i,s.$fastTemplate=e)}else{const i=s.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),s.textContent=e}}function fn(s,t,e){var o;const i=`${this.id}-t`,r=(o=s[i])!==null&&o!==void 0?o:s[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const p=s[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let c=0,b=u.length;c<b;++c){const I=u[c];I!==""&&(n[I]=h,p.add(I))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&p.remove(u)}}const gn={[K.attribute]:$e.setAttribute,[K.booleanAttribute]:$e.setBooleanAttribute,[K.property]:(s,t,e)=>s[t]=e,[K.content]:pn,[K.tokenList]:fn,[K.event]:()=>{}};class ye{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=K.content}createHTML(t){return pi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=gn[this.aspectType],o=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw G.error(1205);this.data=`${this.id}-d`,this.updateTarget=o.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const o=t.targets[this.targetNodeId];switch(this.aspectType){case K.event:o[this.data]=t,o.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:t.onUnbind(this);default:const i=(e=o[this.data])!==null&&e!==void 0?e:o[this.data]=this.dataBinding.createObserver(this,this);i.target=o,i.controller=t,this.updateTarget(o,this.targetAspect,i.bind(t),t);break}}unbind(t){const o=t.targets[this.targetNodeId].$fastView;o!==void 0&&o.isComposed&&(o.unbind(),o.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Le.setEvent(t);const o=this.dataBinding.evaluate(e.source,e.context);Le.setEvent(null),o!==!0&&t.preventDefault()}}handleChange(t,e){const o=e.target,i=e.controller;this.updateTarget(o,this.targetAspect,e.bind(i),i)}}gt.define(ye,{aspected:!0});function fi(s,t){const e=s.parentNode;let o=s,i;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t)}class go{constructor(t,e,o){this.fragment=t,this.factories=e,this.targets=o,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=as.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Le.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}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 o=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,o.insertBefore(i,t),i=r;o.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let o=this.firstChild,i;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){fi(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let o=this.behaviors;if(o===null){this.source=t,this.context=e,this.behaviors=o=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),o[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=o.length;i<r;++i)o[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,o=t.length;e<o;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){fi(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,o=t.length;e<o;++e)t[e].unbind()}}}ve(go),m.defineProperty(go.prototype,"index"),m.defineProperty(go.prototype,"length");const gi=(s,t)=>`${s}.${t}`,bi={},Ct={index:0,node:null};function mi(s){s.startsWith("fast-")||G.warn(1204,{name:s})}const bn=new Proxy(document.createElement("div"),{get(s,t){mi(t);const e=Reflect.get(s,t);return me(e)?e.bind(s):e},set(s,t,e){return mi(t),Reflect.set(s,t,e)}});class mn{constructor(t,e,o){this.fragment=t,this.directives=e,this.policy=o,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,o,i,r){var n,h;this.nodeIds.has(o)||(this.nodeIds.add(o),this.addTargetDescriptor(e,o,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ps(),t.targetNodeId=o,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,o){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),p=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,p)}let r=bi[e];if(!r){const n=`_${e}`;bi[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[o]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),o=Object.create(this.proto);o.r=e,o.h=t??bn;for(const i of this.nodeIds)o[i];return new go(e,this.factories,o)}}function vi(s,t,e,o,i,r=!1){const n=e.attributes,h=s.directives;for(let p=0,u=n.length;p<u;++p){const c=n[p],b=c.value,I=fo.parse(b,h);let D=null;I===null?r&&(D=new ye(ai(()=>b,s.policy)),gt.assignAspect(D,c.name)):D=bs.aggregate(I,s.policy),D!==null&&(e.removeAttributeNode(c),p--,u--,s.addFactory(D,t,o,i,e.tagName))}}function vn(s,t,e,o,i){const r=fo.parse(t.textContent,s.directives);if(r===null)return Ct.node=t.nextSibling,Ct.index=i+1,Ct;let n,h=n=t;for(let p=0,u=r.length;p<u;++p){const c=r[p];p!==0&&(i++,o=gi(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),wt(c)?n.textContent=c:(n.textContent=" ",gt.assignAspect(c),s.addFactory(c,e,o,i,null)),h=n}return Ct.index=i+1,Ct.node=h.nextSibling,Ct}function $i(s,t,e){let o=0,i=t.firstChild;for(;i;){const r=$n(s,e,i,o);i=r.node,o=r.index}}function $n(s,t,e,o){const i=gi(t,o);switch(e.nodeType){case 1:vi(s,t,e,i,o),$i(s,e,i);break;case 3:return vn(s,e,t,i,o);case 8:const r=fo.parse(e.data,s.directives);r!==null&&s.addFactory(bs.aggregate(r),t,i,o,null);break}return Ct.index=o+1,Ct.node=e.nextSibling,Ct}function yn(s,t){return s&&s.nodeType==8&&fo.parse(s.data,t)!==null}const yi="TEMPLATE",bs={compile(s,t,e=$e.policy){let o;if(wt(s)){o=document.createElement(yi),o.innerHTML=e.createHTML(s);const n=o.content.firstElementChild;n!==null&&n.tagName===yi&&(o=n)}else o=s;!o.content.firstChild&&!o.content.lastChild&&o.content.appendChild(document.createComment(""));const i=document.adoptNode(o.content),r=new mn(i,t,e);return vi(r,"",o,"h",0,!0),(yn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),$i(r,i,"r"),Ct.node=null,r.freeze()},setDefaultStrategy(s){this.compile=s},aggregate(s,t=$e.policy){if(s.length===1)return s[0];let e,o,i=!1,r;const n=s.length,h=s.map(c=>wt(c)?()=>c:(e=c.sourceAspect||e,o=c.dataBinding||o,i=i||c.dataBinding.isVolatile,r=r||c.dataBinding.policy,c.dataBinding.evaluate)),p=(c,b)=>{let I="";for(let D=0;D<n;++D)I+=h[D](c,b);return I};o.evaluate=p,o.isVolatile=i,o.policy=r??t;const u=new ye(o);return gt.assignAspect(u,e),u}},kn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,xn=Object.create(null);class ae{constructor(t,e=xn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const o in e)t(e[o]);return this.html}}ae.empty=new ae(""),gt.define(ae);function wn(s,t,e,o=gt.getForInstance(s)){if(o.aspected){const i=kn.exec(t);i!==null&>.assignAspect(s,i[2])}return s.createHTML(e)}class es{constructor(t,e={},o){this.policy=o,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=bs.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ae(wt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw G.error(1208);if(this.policy)throw G.error(1207);return this.policy=t,this}render(t,e,o){const i=this.create(o);return i.bind(t),i.appendTo(e),i}static create(t,e,o){let i="";const r=Object.create(null),n=h=>{var p;const u=(p=h.id)!==null&&p!==void 0?p:h.id=ps();return r[u]=h,u};for(let h=0,p=t.length-1;h<p;++h){const u=t[h];let c=e[h],b;if(i+=u,me(c))c=new ye(ri(c));else if(c instanceof uo)c=new ye(c);else if(!(b=gt.getForInstance(c))){const I=c;c=new ye(ai(()=>I))}i+=wn(c,u,n,b)}return new es(i+t[t.length-1],r,o)}}ve(es);const g=(s,...t)=>{if(Array.isArray(s)&&Array.isArray(s.raw))return es.create(s,t);throw G.error(1206)};g.partial=s=>new ae(s);class ki extends gs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}gt.define(ki);const Et=s=>new ki(s),Cn=s=>s.nodeType===1,le=s=>s?t=>t.nodeType===1&&t.matches(s):Cn;class xi extends gs{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,ti),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 wi="slotchange";class Ci extends xi{observe(t){t.addEventListener(wi,this)}disconnect(t){t.removeEventListener(wi,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}gt.define(Ci);function rt(s){return wt(s)&&(s={property:s}),new Ci(s)}class Si extends xi{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,o)=>{const i=o.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=Zs,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)}}gt.define(Si);function Sn(s){return wt(s)&&(s={property:s}),new Si(s)}const Ii="boolean",Pi="reflect",bo=Object.freeze({locate:ei()}),Bi={toView(s){return s?"true":"false"},fromView(s){return!(s==null||s==="false"||s===!1||s===0)}};function Ti(s){if(s==null)return null;const t=s*1;return isNaN(t)?null:t}const nt={toView(s){const t=Ti(s);return t&&t.toString()},fromView:Ti};class os{constructor(t,e,o=e.toLowerCase(),i=Pi,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=o,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===Ii&&r===void 0&&(this.converter=Bi)}setValue(t,e){const o=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),o!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](o,e),t.$fastController.notify(this.name))}getValue(t){return m.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,o=this.guards;o.has(t)||e==="fromView"||Mt.enqueue(()=>{o.add(t);const i=t[this.fieldName];switch(e){case Pi:const r=this.converter;$e.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Ii:$e.setBooleanAttribute(t,this.attribute,i);break}o.delete(t)})}static collect(t,...e){const o=[];e.push(bo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,p=n.length;h<p;++h){const u=n[h];wt(u)?o.push(new os(t,u)):o.push(new os(t,u.property,u.attribute,u.mode,u.converter))}}return o}}function a(s,t){let e;function o(i,r){arguments.length>1&&(e.property=r),bo.locate(i.constructor).push(e)}if(arguments.length>1){e={},o(s,t);return}return e=s===void 0?{}:s,o}const zi={mode:"open"},Fi={},Oi=new Set,mo=G.getById(ne.elementRegistry,()=>rs());class xt{constructor(t,e=t.definition){var o;this.platformDefined=!1,wt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(o=e.registry)!==null&&o!==void 0?o:customElements;const i=t.prototype,r=os.collect(t,e.attributes),n=new Array(r.length),h={},p={};for(let u=0,c=r.length;u<c;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,p[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=p,this.shadowOptions=e.shadowOptions===void 0?zi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},zi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Fi:Object.assign(Object.assign({},Fi),e.elementOptions),this.styles=it.normalize(e.styles),mo.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 Oi.has(t)||mo.getByType(t)?new xt(class extends t{},e):new xt(t,e)}static registerBaseType(t){Oi.add(t)}}xt.getByType=mo.getByType,xt.getForInstance=mo.getForInstance;const In={bubbles:!0,composed:!0,cancelable:!0},ms="isConnected",Ai=new WeakMap;function vo(s){var t,e;return(e=(t=s.shadowRoot)!==null&&t!==void 0?t:Ai.get(s))!==null&&e!==void 0?e:null}let _i;class $o extends si{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._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const o=e.shadowOptions;if(o!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(o),o.mode==="closed"&&Ai.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const p=i[n].name,u=t[p];u!==void 0&&(delete t[p],r[p]=u)}}}get isConnected(){return m.track(this,ms),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Le.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,o;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(o=i.get(t))!==null&&o!==void 0?o:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const o=this.behaviors;if(o===null)return;const i=o.get(t);i!==void 0&&(i===1||e?(o.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):o.set(t,i-1))}addStyles(t){var e;if(!t)return;const o=this.source;if(t instanceof HTMLElement)((e=vo(o))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(o)){const i=t.behaviors;if(t.addStylesTo(o),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const o=this.source;if(t instanceof HTMLElement)((e=vo(o))!==null&&e!==void 0?e:o).removeChild(t);else if(t.isAttachedTo(o)){const i=t.behaviors;if(t.removeStylesFrom(o),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,o=this.boundObservables,i=Object.keys(o);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=o[h]}this.boundObservables=null}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.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,ms)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,ms),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,o){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,o)}emit(t,e,o){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},In),o))):!1}renderTemplate(t){var e;const o=this.source,i=(e=vo(o))!==null&&e!==void 0?e:o;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(o,i,o),this.view.sourceLifetime=as.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const o=xt.getForInstance(t);if(o===void 0)throw G.error(1401);return t.$fastController=new _i(t,o)}static setStrategy(t){_i=t}}ve($o),$o.setStrategy($o);function yo(s){var t;return"adoptedStyleSheets"in s?s:(t=vo(s))!==null&&t!==void 0?t:s.getRootNode()}class ss{constructor(t){const e=ss.styleSheetCache;this.sheets=t.map(o=>{if(o instanceof CSSStyleSheet)return o;let i=e.get(o);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(o),e.set(o,i)),i})}addStylesTo(t){Ei(yo(t),this.sheets)}removeStylesFrom(t){Li(yo(t),this.sheets)}}ss.styleSheetCache=new Map;let Pn=0;const Bn=()=>`fast-${++Pn}`;function Mi(s){return s===document?document.body:s}class Tn{constructor(t){this.styles=t,this.styleClass=Bn()}addStylesTo(t){t=Mi(yo(t));const e=this.styles,o=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=o,t.append(r)}}removeStylesFrom(t){t=Mi(yo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let o=0,i=e.length;o<i;++o)t.removeChild(e[o])}}let Ei=(s,t)=>{s.adoptedStyleSheets=[...s.adoptedStyleSheets,...t]},Li=(s,t)=>{s.adoptedStyleSheets=s.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(it.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ei=(s,t)=>{s.adoptedStyleSheets.push(...t)},Li=(s,t)=>{for(const e of t){const o=s.adoptedStyleSheets.indexOf(e);o!==-1&&s.adoptedStyleSheets.splice(o,1)}}}catch{}it.setDefaultStrategy(ss)}else it.setDefaultStrategy(Tn);function Hi(s){const t=class extends s{constructor(){super(),$o.forCustomElement(this)}$emit(e,o,i){return this.$fastController.emit(e,o,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,o,i){this.$fastController.onAttributeChangedCallback(e,o,i)}};return xt.registerBaseType(t),t}function zn(s,t){return me(s)?xt.compose(s,t):xt.compose(this,s)}function Fn(s,t){return me(s)?xt.compose(s,t).define().type:xt.compose(this,s).define().type}function On(s){return Hi(s)}const x=Object.assign(Hi(HTMLElement),{from:On,define:Fn,compose:zn}),Q={horizontal:"horizontal",vertical:"vertical"};function Ni(...s){return s.every(t=>t instanceof HTMLElement)}const ke="ArrowDown",xe="ArrowLeft",we="ArrowRight",Ce="ArrowUp",ko="End",Se="Enter",An="Escape",xo="Home",wo=" ",_n="Tab",Mn={ArrowDown:ke,ArrowLeft:xe,ArrowRight:we,ArrowUp:Ce};var dt;(function(s){s.ltr="ltr",s.rtl="rtl"})(dt||(dt={}));function En(s,t,e){return e<s?t:e>t?s:e}function vs(s,t,e){return Math.min(Math.max(e,s),t)}let Ln=0;function $s(s=""){return`${s}${Ln++}`}var Hn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,L=(s,t,e,o)=>{for(var i=o>1?void 0:o?Nn(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Hn(t,e,i),i};class H{}L([a({attribute:"aria-atomic"})],H.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],H.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],H.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],H.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],H.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],H.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],H.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],H.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],H.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],H.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],H.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],H.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],H.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],H.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],H.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],H.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],H.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],H.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],H.prototype,"ariaRoledescription",2);const Di=s=>s.closest("[dir]")?.dir==="rtl"?dt.rtl:dt.ltr;function ht(s){return s?typeof s=="string"?new ae(s):"inline"in s?s.inline():s:ae.empty}const Ri=s=>s.nodeType!==Node.TEXT_NODE||!!s.nodeValue?.trim().length,Dn=":host([hidden]){display:none}";function C(s){return`${Dn}:host{display:${s}}`}class Rn{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let o=this.listenerCache.get(t);o||(o=this.constructListener(t),this.listenerCache.set(t,o)),o.bind(e)(),e.addEventListener("change",o)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class lo extends Rn{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new lo(t,e)}constructListener(t){let e=!1;const o=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(o),e=r):!r&&e&&(t.removeStyles(o),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Z=lo.with(window.matchMedia("(forced-colors)"));lo.with(window.matchMedia("(prefers-color-scheme: dark)")),lo.with(window.matchMedia("(prefers-color-scheme: light)"));class Lt{}function Ht(s){return g`<slot name="end" ${Et("end")}>${ht(s.end)}</slot>`.inline()}function Nt(s){return g`<slot name="start" ${Et("start")}>${ht(s.start)}</slot>`.inline()}function Dt(s,...t){const e=bo.locate(s);t.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(s.prototype,r,Object.getOwnPropertyDescriptor(o.prototype,r))}),bo.locate(o).forEach(r=>e.push(r))})}var Vn=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,ce=(s,t,e,o)=>{for(var i=o>1?void 0:o?jn(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Vn(t,e,i),i};class J extends x{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=$s("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}ce([a({attribute:"heading-level",mode:"fromView",converter:nt})],J.prototype,"headinglevel",2),ce([a({mode:"boolean"})],J.prototype,"expanded",2),ce([a({mode:"boolean"})],J.prototype,"disabled",2),ce([a],J.prototype,"id",2),ce([a],J.prototype,"size",2),ce([a({mode:"boolean"})],J.prototype,"block",2),ce([a({attribute:"expand-icon-position"})],J.prototype,"expandIconPosition",2),Dt(J,Lt);const A="var(--colorNeutralForeground1)",Vi="var(--colorNeutralForeground1Hover)",qn="var(--colorNeutralForeground1Pressed)",Rt="var(--colorNeutralForeground2)",Co="var(--colorNeutralForeground2Hover)",So="var(--colorNeutralForeground2Pressed)",Gn="var(--colorNeutralForeground2Selected)",Io="var(--colorNeutralForeground2BrandHover)",Po="var(--colorNeutralForeground2BrandPressed)",Wn="var(--colorNeutralForeground2BrandSelected)",tt="var(--colorNeutralForeground3)",Un="var(--colorNeutralForeground3Hover)",Xn="var(--colorNeutralForeground3Pressed)",Kn="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",Yn="var(--colorBrandForegroundLink)",Qn="var(--colorBrandForegroundLinkHover)",Zn="var(--colorBrandForegroundLinkPressed)",Jn="var(--colorNeutralForeground2Link)",ta="var(--colorNeutralForeground2LinkHover)",ea="var(--colorNeutralForeground2LinkPressed)",ji="var(--colorCompoundBrandForeground1)",qi="var(--colorCompoundBrandForeground1Hover)",Gi="var(--colorCompoundBrandForeground1Pressed)",Vt="var(--colorNeutralForegroundOnBrand)",Bo="var(--colorNeutralForegroundInverted)",oa="var(--colorNeutralForegroundInvertedHover)",sa="var(--colorNeutralForegroundInvertedPressed)",Wi="var(--colorNeutralForegroundStaticInverted)",ys="var(--colorBrandForeground1)",ia="var(--colorBrandForeground2)",ra="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",ks="var(--colorNeutralBackground1Hover)",Ui="var(--colorNeutralBackground1Pressed)",Xi="var(--colorNeutralBackground1Selected)",Ki="var(--colorNeutralBackground3)",na="var(--colorNeutralBackground4)",aa="var(--colorNeutralBackground5)",To="var(--colorNeutralBackground6)",la="var(--colorNeutralBackgroundInverted)",ca="var(--colorSubtleBackground)",xs="var(--colorSubtleBackgroundHover)",zo="var(--colorSubtleBackgroundPressed)",da="var(--colorSubtleBackgroundSelected)",bt="var(--colorTransparentBackground)",ws="var(--colorTransparentBackgroundHover)",Cs="var(--colorTransparentBackgroundPressed)",ha="var(--colorTransparentBackgroundSelected)",Ne="var(--colorNeutralBackgroundDisabled)",ua="var(--colorBackgroundOverlay)",Ss="var(--colorBrandBackground)",Yi="var(--colorBrandBackgroundHover)",Qi="var(--colorBrandBackgroundPressed)",pa="var(--colorBrandBackgroundSelected)",De="var(--colorCompoundBrandBackground)",Re="var(--colorCompoundBrandBackgroundHover)",Ve="var(--colorCompoundBrandBackgroundPressed)",Zi="var(--colorBrandBackgroundStatic)",fa="var(--colorBrandBackground2)",jt="var(--colorNeutralStrokeAccessible)",je="var(--colorNeutralStrokeAccessibleHover)",qe="var(--colorNeutralStrokeAccessiblePressed)",Ie="var(--colorNeutralStroke1)",Fo="var(--colorNeutralStroke1Hover)",Is="var(--colorNeutralStroke1Pressed)",Ge="var(--colorNeutralStroke2)",ga="var(--colorNeutralStroke3)",ba="var(--colorNeutralStrokeOnBrand2)",Ji="var(--colorBrandStroke1)",tr="var(--colorBrandStroke2)",Ps="var(--colorCompoundBrandStroke)",Bs="var(--colorCompoundBrandStrokeHover)",Ts="var(--colorCompoundBrandStrokePressed)",qt="var(--colorNeutralStrokeDisabled)",St="var(--colorTransparentStroke)",er="var(--colorTransparentStrokeInteractive)",Oo="var(--colorStrokeFocus1)",It="var(--colorStrokeFocus2)",ma="var(--colorPaletteRedBackground1)",va="var(--colorPaletteRedBackground2)",or="var(--colorPaletteRedBackground3)",$a="var(--colorPaletteRedBorder1)",ya="var(--colorPaletteRedBorder2)",sr="var(--colorPaletteRedForeground1)",ka="var(--colorPaletteRedForeground2)",ir="var(--colorPaletteRedForeground3)",xa="var(--colorPaletteGreenBackground1)",rr="var(--colorPaletteGreenBackground3)",wa="var(--colorPaletteGreenBorder2)",Ca="var(--colorPaletteGreenForeground1)",Sa="var(--colorPaletteGreenForeground2)",Ia="var(--colorPaletteGreenForeground3)",Pa="var(--colorPaletteDarkOrangeBackground1)",nr="var(--colorPaletteDarkOrangeBackground3)",Ba="var(--colorPaletteDarkOrangeBorder1)",Ta="var(--colorPaletteDarkOrangeForeground1)",ar="var(--colorPaletteDarkOrangeForeground3)",za="var(--colorPaletteYellowBackground1)",Fa="var(--colorPaletteYellowBackground3)",Oa="var(--colorPaletteYellowBorder1)",zs="var(--colorPaletteYellowForeground2)",Aa="var(--colorPaletteMarigoldBackground2)",_a="var(--colorPaletteMarigoldForeground2)",Ma="var(--colorPaletteAnchorBackground2)",Ea="var(--colorPaletteAnchorForeground2)",La="var(--colorPaletteBeigeBackground2)",Ha="var(--colorPaletteBeigeForeground2)",Na="var(--colorPaletteBlueBackground2)",Da="var(--colorPaletteBlueForeground2)",Ra="var(--colorPaletteBrassBackground2)",Va="var(--colorPaletteBrassForeground2)",ja="var(--colorPaletteBrownBackground2)",qa="var(--colorPaletteBrownForeground2)",Ga="var(--colorPaletteCornflowerBackground2)",Wa="var(--colorPaletteCornflowerForeground2)",Ua="var(--colorPaletteCranberryBackground2)",Xa="var(--colorPaletteCranberryForeground2)",Ka="var(--colorPaletteDarkGreenBackground2)",Ya="var(--colorPaletteDarkGreenForeground2)",Qa="var(--colorPaletteDarkRedBackground2)",Za="var(--colorPaletteDarkRedForeground2)",Ja="var(--colorPaletteForestBackground2)",tl="var(--colorPaletteForestForeground2)",el="var(--colorPaletteGoldBackground2)",ol="var(--colorPaletteGoldForeground2)",sl="var(--colorPaletteGrapeBackground2)",il="var(--colorPaletteGrapeForeground2)",rl="var(--colorPaletteLavenderBackground2)",nl="var(--colorPaletteLavenderForeground2)",al="var(--colorPaletteLightTealBackground2)",ll="var(--colorPaletteLightTealForeground2)",cl="var(--colorPaletteLilacBackground2)",dl="var(--colorPaletteLilacForeground2)",hl="var(--colorPaletteMagentaBackground2)",ul="var(--colorPaletteMagentaForeground2)",pl="var(--colorPaletteMinkBackground2)",fl="var(--colorPaletteMinkForeground2)",gl="var(--colorPaletteNavyBackground2)",bl="var(--colorPaletteNavyForeground2)",ml="var(--colorPalettePeachBackground2)",vl="var(--colorPalettePeachForeground2)",$l="var(--colorPalettePinkBackground2)",yl="var(--colorPalettePinkForeground2)",kl="var(--colorPalettePlatinumBackground2)",xl="var(--colorPalettePlatinumForeground2)",wl="var(--colorPalettePlumBackground2)",Cl="var(--colorPalettePlumForeground2)",Sl="var(--colorPalettePumpkinBackground2)",Il="var(--colorPalettePumpkinForeground2)",Pl="var(--colorPalettePurpleBackground2)",Bl="var(--colorPalettePurpleForeground2)",Tl="var(--colorPaletteRoyalBlueBackground2)",zl="var(--colorPaletteRoyalBlueForeground2)",Fl="var(--colorPaletteSeafoamBackground2)",Ol="var(--colorPaletteSeafoamForeground2)",Al="var(--colorPaletteSteelBackground2)",_l="var(--colorPaletteSteelForeground2)",Ml="var(--colorPaletteTealBackground2)",El="var(--colorPaletteTealForeground2)",Fs="var(--borderRadiusNone)",mt="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",lr="var(--borderRadiusLarge)",cr="var(--borderRadiusXLarge)",at="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Ll="var(--fontFamilyMonospace)",Hl="var(--fontFamilyNumeric)",We="var(--fontSizeBase100)",W="var(--fontSizeBase200)",z="var(--fontSizeBase300)",lt="var(--fontSizeBase400)",Pe="var(--fontSizeBase500)",Ao="var(--fontSizeBase600)",dr="var(--fontSizeHero700)",hr="var(--fontSizeHero800)",ur="var(--fontSizeHero900)",pr="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",Nl="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",_o="var(--fontWeightBold)",Mo="var(--lineHeightBase100)",ct="var(--lineHeightBase200)",M="var(--lineHeightBase300)",vt="var(--lineHeightBase400)",Eo="var(--lineHeightBase500)",fr="var(--lineHeightBase600)",gr="var(--lineHeightHero700)",br="var(--lineHeightHero800)",mr="var(--lineHeightHero900)",vr="var(--lineHeightHero1000)",$r="var(--shadow2)",Lo="var(--shadow4)",Dl="var(--shadow8)",yr="var(--shadow16)",Rl="var(--shadow28)",Vl="var(--shadow64)",Y="var(--strokeWidthThin)",de="var(--strokeWidthThick)",Zt="var(--strokeWidthThicker)",kr="var(--strokeWidthThickest)",he="var(--spacingHorizontalXXS)",Gt="var(--spacingHorizontalXS)",ue="var(--spacingHorizontalSNudge)",Pt="var(--spacingHorizontalS)",Wt="var(--spacingHorizontalMNudge)",Jt="var(--spacingHorizontalM)",jl="var(--spacingHorizontalL)",ql="var(--spacingHorizontalXXL)",Ho="var(--spacingVerticalXXS)",Gl="var(--spacingVerticalXS)",Ue="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",xr="var(--spacingVerticalMNudge)",wr="var(--spacingVerticalL)",Xe="var(--spacingVerticalXXL)",Wl="var(--durationUltraFast)",Os="var(--durationFaster)",Cr="var(--durationNormal)",Ul="var(--durationGentle)",Xl="var(--durationSlow)",Sr="var(--durationSlower)",No="var(--durationUltraSlow)",Kl="var(--curveAccelerateMax)",As="var(--curveAccelerateMid)",Yl="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",_s="var(--curveDecelerateMid)",Ql="var(--curveDecelerateMin)",Zl="var(--curveEasyEaseMax)",Ms="var(--curveEasyEase)",Pr="var(--curveLinear)",Jl=l`
|
|
2
2
|
${C("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${Jt} ${Wt};border-radius:${T};font-family:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${Jt} ${Wt};border-radius:${T};font-family:${v};font-size:${z};font-weight:${F};line-height:${M};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${A};background:${bt};line-height:${M};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${mt}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${Pt};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${Jt}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${Pt};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${mt};outline:none;border:2px solid ${Oo};box-shadow:inset 0 0 0 1px ${It}}:host([disabled]) .button{color:${k}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${z};line-height:${M}}:host([size='small']) .heading{font-size:${W};line-height:${ct}}:host([size='large']) .heading{font-size:${lt};line-height:${vt}}:host([size='extra-large']) .heading{font-size:${Pe};line-height:${Eo}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,tc=g.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -13,7 +13,7 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
13
13
|
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"
|
|
14
14
|
fill="currentColor"
|
|
15
15
|
/>
|
|
16
|
-
</svg>`),
|
|
16
|
+
</svg>`),ec=g.partial(`<svg
|
|
17
17
|
width="20"
|
|
18
18
|
height="20"
|
|
19
19
|
viewBox="0 0 20 20"
|
|
@@ -25,28 +25,28 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
25
25
|
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"
|
|
26
26
|
fill="currentColor"
|
|
27
27
|
/>
|
|
28
|
-
</svg>`);function
|
|
28
|
+
</svg>`);function oc(s={}){return g`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Et("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Nt(s)} ${Ht(s)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${ht(s.expandedIcon)}</slot><slot name="collapsed-icon">${ht(s.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const sc=oc({collapsedIcon:tc,expandedIcon:ec}),ic=J.compose({name:`${f.prefix}-accordion-item`,template:sc,styles:Jl});ic.define(f.registry);const Es={single:"single",multi:"multi"};var rc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,Br=(s,t,e,o)=>{for(var i=o>1?void 0:o?nc(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&rc(t,e,i),i};class Ls extends x{constructor(){super(...arguments),this.expandmode=Es.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>m.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,o)=>{e instanceof J&&(e.addEventListener("click",this.activeItemChange),e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus),m.getNotifier(e).subscribe(this,"expanded"));const i=this.accordionIds[o];e.setAttribute("id",typeof i!="string"?`accordion-${o+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,o)=>{m.getNotifier(e).unsubscribe(this,"disabled"),m.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{t.defaultPrevented||t.target!==t.currentTarget||(t.preventDefault(),this.handleExpandedChange(t.target))},this.handleExpandedChange=t=>{t instanceof J&&(this.activeid=t.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.change())},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case Ce:t.preventDefault(),this.adjust(-1);break;case ke:t.preventDefault(),this.adjust(1);break;case xo:this.activeItemIndex=0,this.focusItem();break;case ko:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,o=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==o&&o!==-1&&(this.activeItemIndex=o,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const o=this.findExpandedItem();o&&(e!==Es.single?o?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(o))}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof J&&t.expanded)??this.accordionItems[0]}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((o,i)=>{o instanceof J&&(this.activeItemIndex===i?(o.expanded=!0,o.expandbutton.setAttribute("aria-disabled","true")):(o.expanded=!1,o.hasAttribute("disabled")||o.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(t=>t.id)}isSingleExpandMode(){return this.expandmode===Es.single}adjust(t){this.activeItemIndex=En(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof J&&t.expandbutton.focus()}}Br([a({attribute:"expand-mode"})],Ls.prototype,"expandmode",2),Br([$],Ls.prototype,"slottedAccordionItems",2);const ac=l`
|
|
29
29
|
${C("flex")}
|
|
30
30
|
|
|
31
|
-
:host{flex-direction:column;width:100%;contain:content}`;function
|
|
31
|
+
:host{flex-direction:column;width:100%;contain:content}`;function lc(){return g`<template><slot ${rt({property:"slottedAccordionItems",filter:le()})}></slot></template>`}const cc=lc(),dc=Ls.compose({name:`${f.prefix}-accordion`,template:cc,styles:ac});dc.define(f.registry);const hc=CSS.supports("selector(:state(g))");function d(s,t,e){if(!hc){s.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!s.states.has(t),e){s.states.add(t);return}s.states.delete(t)}const Do={submit:"submit",reset:"reset",button:"button"},uc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var pc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,ut=(s,t,e,o)=>{for(var i=o>1?void 0:o?fc(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&pc(t,e,i),i};class Bt extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in uc){const o=this.$fastController.definition.attributeLookup[e]?.attribute;o&&this.handleProxyAttributeChange(o,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===Se){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}ut([a],Bt.prototype,"download",2),ut([a],Bt.prototype,"href",2),ut([a],Bt.prototype,"hreflang",2),ut([a],Bt.prototype,"ping",2),ut([a],Bt.prototype,"referrerpolicy",2),ut([a],Bt.prototype,"rel",2),ut([a],Bt.prototype,"target",2),ut([a],Bt.prototype,"type",2);class Be extends Bt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){d(this.elementInternals,"icon",!!e)}}ut([a],Be.prototype,"appearance",2),ut([a],Be.prototype,"shape",2),ut([a],Be.prototype,"size",2),ut([a({attribute:"icon-only",mode:"boolean"})],Be.prototype,"iconOnly",2),Dt(Be,Lt);const Ro=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Vo=l.partial`:is([state--filled-darker], :state(filled-darker))`,Ut=l.partial`:is([state--ghost], :state(ghost))`,Tr=l.partial`:is([state--inverted], :state(inverted))`,et=l.partial`:is([state--primary], :state(primary))`,R=l.partial`:is([state--outline], :state(outline))`,Ke=l.partial`:is([state--strong], :state(strong))`,w=l.partial`:is([state--subtle], :state(subtle))`,te=l.partial`:is([state--tint], :state(tint))`,Ye=l.partial`:is([state--underline], :state(underline))`,V=l.partial`:is([state--transparent], :state(transparent))`,Qe=l.partial`:is([state--circular], :state(circular))`,Xt=l.partial`:is([state--rounded], :state(rounded))`,jo=l.partial`:is([state--square], :state(square))`,Ze=l.partial`:is([state--tiny], :state(tiny))`,Je=l.partial`:is([state--extra-small], :state(extra-small))`,ot=l.partial`:is([state--small], :state(small))`,E=l.partial`:is([state--large], :state(large))`,Hs=l.partial`:is([state--extra-large], :state(extra-large))`,gc=l.partial`:is([state--huge], :state(huge))`,zr=l.partial`:is([state--align-start], :state(align-start))`,Fr=l.partial`:is([state--align-end], :state(align-end))`,Ns=l.partial`:is([state--inset], :state(inset))`,Te=l.partial`:is([state--icon], :state(icon))`,P=l.partial`:is([state--pressed], :state(pressed))`,to=l.partial`:is([state--brand], :state(brand))`,Or=l.partial`:is([state--error], :state(error))`,qo=l.partial`:is([state--danger], :state(danger))`,Go=l.partial`:is([state--important], :state(important))`,Wo=l.partial`:is([state--informative], :state(informative))`,Uo=l.partial`:is([state--severe], :state(severe))`,ze=l.partial`:is([state--success], :state(success))`,Fe=l.partial`:is([state--warning], :state(warning))`,pt=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`;const Ar=l`
|
|
32
32
|
${C("inline-flex")}
|
|
33
33
|
|
|
34
|
-
:host{--icon-spacing:${ue};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${_};color:${A};border:${Y} solid ${Ie};padding:0 ${Jt};min-width:96px;border-radius:${T};font-size:${z};font-family:${
|
|
34
|
+
:host{--icon-spacing:${ue};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${_};color:${A};border:${Y} solid ${Ie};padding:0 ${Jt};min-width:96px;border-radius:${T};font-size:${z};font-family:${v};font-weight:${N};line-height:${M};transition-duration:${Os};transition-property:background,border,color;transition-timing-function:${Ms};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ks};color:${Vi};border-color:${Fo}}:host(:hover:active){background-color:${Ui};border-color:${Is};color:${qn};outline-style:none}:host(:focus-visible){border-color:${St};outline:${de} solid ${St};box-shadow:${Lo},0 0 0 2px ${It}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${Te}){min-width:32px;max-width:32px}:host(${ot}){--icon-spacing:${Gt};min-height:24px;min-width:64px;padding:0 ${Pt};border-radius:${mt};font-size:${W};line-height:${ct};font-weight:${F}}:host(${ot}${Te}){min-width:24px;max-width:24px}:host(${E}){min-height:40px;border-radius:${lr};padding:0 ${jl};font-size:${lt};line-height:${vt}}:host(${E}${Te}){min-width:40px;max-width:40px}:host(${E}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Qe},${Qe}:focus-visible)){border-radius:${at}}:host(:is(${jo},${jo}:focus-visible)){border-radius:${Fs}}:host(${et}){background-color:${Ss};color:${Vt};border-color:transparent}:host(${et}:hover){background-color:${Yi}}:host(${et}:is(:hover,:hover:active)){border-color:transparent;color:${Vt}}:host(${et}:hover:active){background-color:${Qi}}:host(${et}:focus-visible){border-color:${Vt};box-shadow:${$r},0 0 0 2px ${It}}:host(${R}){background-color:${bt}}:host(${R}:hover){background-color:${ws}}:host(${R}:hover:active){background-color:${Cs}}:host(${w}){background-color:${ca};color:${Rt};border-color:transparent}:host(${w}:hover){background-color:${xs};color:${Co};border-color:transparent}:host(${w}:hover:active){background-color:${zo};color:${So};border-color:transparent}:host(${w}:hover) ::slotted(svg){fill:${Io}}:host(${w}:hover:active) ::slotted(svg){fill:${Po}}:host(${V}){background-color:${bt};color:${Rt}}:host(${V}:hover){background-color:${ws};color:${Io}}:host(${V}:hover:active){background-color:${Cs};color:${Po}}:host(:is(${V},${V}:is(:hover,:active))){border-color:transparent}`,Xo=l`
|
|
35
35
|
${Ar}
|
|
36
36
|
|
|
37
37
|
: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:${Ne};border-color:${qt};color:${k};cursor:not-allowed}:host(${et}:is(:disabled,[disabled-focusable])),:host(${et}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${R}:is(:disabled,[disabled-focusable])),:host(${R}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${bt}}:host(${w}:is(:disabled,[disabled-focusable])),:host(${w}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${bt};border-color:transparent}:host(${V}:is(:disabled,[disabled-focusable])),:host(${V}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${bt}}`.withBehaviors(Z(l`
|
|
38
|
-
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),
|
|
38
|
+
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),bc=l`
|
|
39
39
|
${Ar}
|
|
40
40
|
|
|
41
41
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
|
|
42
|
-
:host{border-color:LinkText;color:LinkText}`));function
|
|
43
|
-
${C("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${
|
|
42
|
+
:host{border-color:LinkText;color:LinkText}`));function mc(s={}){return g`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Nt(s)}<span class="content" part="content"><slot></slot></span>${Ht(s)}</template>`}const vc=mc(),$c=Be.compose({name:`${f.prefix}-anchor-button`,template:vc,styles:bc});$c.define(f.registry);const yc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,kc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,xc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,wc=/\s+/g,Cc=/[\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 Sc(s,t,e){let o="";const i=s.split(" ");return i.length!==0&&(o+=i[0].charAt(0).toUpperCase()),e||(i.length===2?o+=i[1].charAt(0).toUpperCase():i.length===3&&(o+=i[2].charAt(0).toUpperCase())),t&&o.length>1?o.charAt(1)+o.charAt(0):o}function Ic(s){return s=s.replace(yc,""),s=s.replace(kc,""),s=s.replace(wc," "),s=s.trim(),s}function Pc(s,t,e){return!s||(s=Ic(s),Cc.test(s)||!e?.allowPhoneInitials&&xc.test(s))?"":Sc(s,t,e?.firstInitialOnly)}const _r={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"},Mr={neutral:"neutral",brand:"brand",colorful:"colorful",..._r};var Bc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,ee=(s,t,e,o)=>{for(var i=o>1?void 0:o?Tc(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Bc(t,e,i),i};const Tt=class Xs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Mr.colorful,e=this.currentColor;d(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?Xs.colors[Fc(this.name??"")%Xs.colors.length]:this.color??Mr.neutral,d(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Pc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Tt.colors=Object.values(_r),ee([a],Tt.prototype,"name",2),ee([a],Tt.prototype,"initials",2),ee([a({converter:nt})],Tt.prototype,"size",2),ee([a],Tt.prototype,"shape",2),ee([a],Tt.prototype,"active",2),ee([a],Tt.prototype,"appearance",2),ee([a],Tt.prototype,"color",2),ee([a({attribute:"color-id"})],Tt.prototype,"colorId",2);let zc=Tt;const Fc=s=>{let t=0;for(let e=s.length-1;e>=0;e--){const o=s.charCodeAt(e),i=e%8;t^=(o<<i)+(o>>8-i)}return t},oe={fastOutSlowInMax:Ir,fastOutSlowInMid:_s,fastOutSlowInMin:Ql,slowOutFastInMax:Kl,slowOutFastInMid:As,slowOutFastInMin:Yl,fastEase:Zl,normalEase:Ms,nullEasing:Pr},Oc=l`
|
|
43
|
+
${C("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${N};font-size:${z};border-radius:${at};color:${tt};background-color:${To};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:${at}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${Y}) ${_}}: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 ${de}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${We};font-weight:${F}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${W}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${lt}}: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:${Pe}}: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:${Ao}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${mt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${lr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${cr}}:host(:is([state--brand],:state(brand))){color:${Wi};background-color:${Zi}}:host(:is([state--dark-red],:state(dark-red))){color:${Za};background-color:${Qa}}:host(:is([state--cranberry],:state(cranberry))){color:${Xa};background-color:${Ua}}:host(:is([state--red],:state(red))){color:${ka};background-color:${va}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Il};background-color:${Sl}}:host(:is([state--peach],:state(peach))){color:${vl};background-color:${ml}}:host(:is([state--marigold],:state(marigold))){color:${_a};background-color:${Aa}}:host(:is([state--gold],:state(gold))){color:${ol};background-color:${el}}:host(:is([state--brass],:state(brass))){color:${Va};background-color:${Ra}}:host(:is([state--brown],:state(brown))){color:${qa};background-color:${ja}}:host(:is([state--forest],:state(forest))){color:${tl};background-color:${Ja}}:host(:is([state--seafoam],:state(seafoam))){color:${Ol};background-color:${Fl}}:host(:is([state--dark-green],:state(dark-green))){color:${Ya};background-color:${Ka}}:host(:is([state--light-teal],:state(light-teal))){color:${ll};background-color:${al}}:host(:is([state--teal],:state(teal))){color:${El};background-color:${Ml}}:host(:is([state--steel],:state(steel))){color:${_l};background-color:${Al}}:host(:is([state--blue],:state(blue))){color:${Da};background-color:${Na}}:host(:is([state--royal-blue],:state(royal-blue))){color:${zl};background-color:${Tl}}:host(:is([state--cornflower],:state(cornflower))){color:${Wa};background-color:${Ga}}:host(:is([state--navy],:state(navy))){color:${bl};background-color:${gl}}:host(:is([state--lavender],:state(lavender))){color:${nl};background-color:${rl}}:host(:is([state--purple],:state(purple))){color:${Bl};background-color:${Pl}}:host(:is([state--grape],:state(grape))){color:${il};background-color:${sl}}:host(:is([state--lilac],:state(lilac))){color:${dl};background-color:${cl}}:host(:is([state--pink],:state(pink))){color:${yl};background-color:${$l}}:host(:is([state--magenta],:state(magenta))){color:${ul};background-color:${hl}}:host(:is([state--plum],:state(plum))){color:${Cl};background-color:${wl}}:host(:is([state--beige],:state(beige))){color:${Ha};background-color:${La}}:host(:is([state--mink],:state(mink))){color:${fl};background-color:${pl}}:host(:is([state--platinum],:state(platinum))){color:${xl};background-color:${kl}}:host(:is([state--anchor],:state(anchor))){color:${Ea};background-color:${Ma}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${No},${Os};transition-delay:${oe.fastEase},${oe.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${No}),${Sr};transition-delay:${oe.fastEase}),${oe.nullEasing})}:host([active])::before{box-shadow:${Dl};border-style:solid;border-color:${Zi}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${de});border-width:${de}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Zt});border-width:${Zt}}: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 * ${kr});border-width:${kr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Lo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${yr}}: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:${Rl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${No},${Os};transition-delay:${oe.fastOutSlowInMin},${oe.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${No},${Sr};transition-delay:${oe.fastOutSlowInMin},${oe.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}}`,Ac=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 _c(){return g`<slot>${s=>s.name||s.initials?s.generateInitials():Ac}</slot><slot name="badge"></slot>`}const Mc=_c(),Ec=zc.compose({name:`${f.prefix}-avatar`,template:Mc,styles:Oc});Ec.define(f.registry);const Lc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Hc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Nc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Ko=(s,t,e,o)=>{for(var i=o>1?void 0:o?Dc(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Nc(t,e,i),i};class Oe extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Lc.filled,this.color=Hc.brand}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}Ko([a],Oe.prototype,"appearance",2),Ko([a],Oe.prototype,"color",2),Ko([a],Oe.prototype,"shape",2),Ko([a],Oe.prototype,"size",2),Dt(Oe,Lt);const Yo=he,Er=l.partial`
|
|
44
44
|
${C("inline-flex")} :host {
|
|
45
45
|
position: relative;
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
align-items: center;
|
|
48
48
|
justify-content: center;
|
|
49
|
-
font-family: ${
|
|
49
|
+
font-family: ${v};
|
|
50
50
|
font-weight: ${N};
|
|
51
51
|
font-size: ${W};
|
|
52
52
|
line-height: ${ct};
|
|
@@ -141,7 +141,7 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
:host(${Wo}) {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${aa};
|
|
145
145
|
color: ${tt};
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -161,8 +161,8 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
:host(${Fe}) {
|
|
164
|
-
background-color: ${
|
|
165
|
-
color: ${
|
|
164
|
+
background-color: ${Fa};
|
|
165
|
+
color: ${ra};
|
|
166
166
|
}
|
|
167
167
|
`,Nr=l.partial`
|
|
168
168
|
:host(${Ut}) {
|
|
@@ -191,13 +191,13 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
:host(${Ut}${ze}) {
|
|
194
|
-
color: ${
|
|
194
|
+
color: ${Ia};
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
:host(${Ut}${Fe}) {
|
|
198
198
|
color: ${zs};
|
|
199
199
|
}
|
|
200
|
-
`,
|
|
200
|
+
`,Rc=l.partial`
|
|
201
201
|
:host(${R}) {
|
|
202
202
|
border-color: currentColor;
|
|
203
203
|
color: ${ys};
|
|
@@ -227,23 +227,23 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
:host(${R}${ze}) {
|
|
230
|
-
color: ${
|
|
230
|
+
color: ${Sa};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
:host(${R}${Fe}) {
|
|
234
234
|
color: ${zs};
|
|
235
235
|
}
|
|
236
|
-
`,
|
|
236
|
+
`,Vc=l.partial`
|
|
237
237
|
:host(${te}) {
|
|
238
|
-
background-color: ${
|
|
239
|
-
color: ${
|
|
238
|
+
background-color: ${fa};
|
|
239
|
+
color: ${ia};
|
|
240
240
|
border-color: ${tr};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
:host(${te}${qo}) {
|
|
244
|
-
background-color: ${
|
|
244
|
+
background-color: ${ma};
|
|
245
245
|
color: ${sr};
|
|
246
|
-
border-color: ${
|
|
246
|
+
border-color: ${$a};
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
:host(${te}${Go}) {
|
|
@@ -253,15 +253,15 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
:host(${te}${Wo}) {
|
|
256
|
-
background-color: ${
|
|
256
|
+
background-color: ${na};
|
|
257
257
|
color: ${tt};
|
|
258
258
|
border-color: ${Ge};
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
:host(${te}${Uo}) {
|
|
262
|
-
background-color: ${
|
|
263
|
-
color: ${
|
|
264
|
-
border-color: ${
|
|
262
|
+
background-color: ${Pa};
|
|
263
|
+
color: ${Ta};
|
|
264
|
+
border-color: ${Ba};
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
:host(${te}${w}) {
|
|
@@ -271,114 +271,114 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
:host(${te}${ze}) {
|
|
274
|
-
background-color: ${
|
|
275
|
-
color: ${
|
|
276
|
-
border-color: ${
|
|
274
|
+
background-color: ${xa};
|
|
275
|
+
color: ${Ca};
|
|
276
|
+
border-color: ${wa};
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
:host(${te}${Fe}) {
|
|
280
|
-
background-color: ${
|
|
280
|
+
background-color: ${za};
|
|
281
281
|
color: ${zs};
|
|
282
|
-
border-color: ${
|
|
282
|
+
border-color: ${Oa};
|
|
283
283
|
}
|
|
284
284
|
`;l.partial`
|
|
285
|
-
font-family: ${
|
|
285
|
+
font-family: ${v};
|
|
286
286
|
font-size: ${z};
|
|
287
287
|
line-height: ${M};
|
|
288
288
|
font-weight: ${F};
|
|
289
289
|
`,l.partial`
|
|
290
|
-
font-family: ${
|
|
290
|
+
font-family: ${v};
|
|
291
291
|
font-size: ${z};
|
|
292
292
|
line-height: ${M};
|
|
293
293
|
font-weight: ${N};
|
|
294
294
|
`,l.partial`
|
|
295
|
-
font-family: ${
|
|
295
|
+
font-family: ${v};
|
|
296
296
|
font-size: ${z};
|
|
297
297
|
line-height: ${M};
|
|
298
298
|
font-weight: ${_o};
|
|
299
299
|
`,l.partial`
|
|
300
|
-
font-family: ${
|
|
300
|
+
font-family: ${v};
|
|
301
301
|
font-size: ${lt};
|
|
302
302
|
line-height: ${vt};
|
|
303
303
|
font-weight: ${F};
|
|
304
304
|
`,l.partial`
|
|
305
|
-
font-family: ${
|
|
305
|
+
font-family: ${v};
|
|
306
306
|
font-size: ${W};
|
|
307
307
|
line-height: ${ct};
|
|
308
308
|
font-weight: ${F};
|
|
309
309
|
`,l.partial`
|
|
310
|
-
font-family: ${
|
|
310
|
+
font-family: ${v};
|
|
311
311
|
font-size: ${W};
|
|
312
312
|
line-height: ${ct};
|
|
313
313
|
font-weight: ${N};
|
|
314
314
|
`,l.partial`
|
|
315
|
-
font-family: ${
|
|
315
|
+
font-family: ${v};
|
|
316
316
|
font-size: ${W};
|
|
317
317
|
line-height: ${ct};
|
|
318
318
|
font-weight: ${_o};
|
|
319
319
|
`,l.partial`
|
|
320
|
-
font-family: ${
|
|
320
|
+
font-family: ${v};
|
|
321
321
|
font-size: ${We};
|
|
322
322
|
line-height: ${Mo};
|
|
323
323
|
font-weight: ${F};
|
|
324
324
|
`,l.partial`
|
|
325
|
-
font-family: ${
|
|
325
|
+
font-family: ${v};
|
|
326
326
|
font-size: ${We};
|
|
327
327
|
line-height: ${Mo};
|
|
328
328
|
font-weight: ${N};
|
|
329
329
|
`,l.partial`
|
|
330
|
-
font-family: ${
|
|
330
|
+
font-family: ${v};
|
|
331
331
|
font-size: ${Pe};
|
|
332
332
|
line-height: ${Eo};
|
|
333
333
|
font-weight: ${N};
|
|
334
334
|
`,l.partial`
|
|
335
|
-
font-family: ${
|
|
335
|
+
font-family: ${v};
|
|
336
336
|
font-size: ${lt};
|
|
337
337
|
line-height: ${vt};
|
|
338
338
|
font-weight: ${N};
|
|
339
339
|
`,l.partial`
|
|
340
|
-
font-family: ${
|
|
340
|
+
font-family: ${v};
|
|
341
341
|
font-size: ${lt};
|
|
342
342
|
line-height: ${vt};
|
|
343
343
|
font-weight: ${_o};
|
|
344
344
|
`,l.partial`
|
|
345
|
-
font-family: ${
|
|
345
|
+
font-family: ${v};
|
|
346
346
|
font-size: ${hr};
|
|
347
347
|
line-height: ${br};
|
|
348
348
|
font-weight: ${N};
|
|
349
349
|
`,l.partial`
|
|
350
|
-
font-family: ${
|
|
350
|
+
font-family: ${v};
|
|
351
351
|
font-size: ${dr};
|
|
352
352
|
line-height: ${gr};
|
|
353
353
|
font-weight: ${N};
|
|
354
354
|
`,l.partial`
|
|
355
|
-
font-family: ${
|
|
355
|
+
font-family: ${v};
|
|
356
356
|
font-size: ${Ao};
|
|
357
357
|
line-height: ${fr};
|
|
358
358
|
font-weight: ${N};
|
|
359
359
|
`,l.partial`
|
|
360
|
-
font-family: ${
|
|
360
|
+
font-family: ${v};
|
|
361
361
|
font-size: ${ur};
|
|
362
362
|
line-height: ${mr};
|
|
363
363
|
font-weight: ${N};
|
|
364
364
|
`,l.partial`
|
|
365
|
-
font-family: ${
|
|
365
|
+
font-family: ${v};
|
|
366
366
|
font-size: ${pr};
|
|
367
367
|
line-height: ${vr};
|
|
368
368
|
font-weight: ${N};
|
|
369
|
-
`;const
|
|
369
|
+
`;const jc=l`
|
|
370
370
|
:host(${jo}){border-radius:${Fs}}:host(${Xt}){border-radius:${T}}:host(${Xt}${Ze}),:host(${Xt}${Je}),:host(${Xt}${ot}){border-radius:${mt}}${Lr}
|
|
371
371
|
${Hr}
|
|
372
372
|
${Nr}
|
|
373
|
-
${
|
|
374
|
-
${
|
|
373
|
+
${Rc}
|
|
374
|
+
${Vc}
|
|
375
375
|
${Er}
|
|
376
376
|
`.withBehaviors(Z(l`
|
|
377
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Dr(s={}){return g` ${Nt(s)}<slot>${ht(s.defaultContent)}</slot>${Ht(s)} `}const
|
|
377
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Dr(s={}){return g` ${Nt(s)}<slot>${ht(s.defaultContent)}</slot>${Ht(s)} `}const qc=Dr(),Gc=Oe.compose({name:`${f.prefix}-badge`,template:qc,styles:jc});Gc.define(f.registry);var Wc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,j=(s,t,e,o)=>{for(var i=o>1?void 0:o?Uc(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Wc(t,e,i),i};class B extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}iconOnlyChanged(t,e){d(this.elementInternals,"icon",e)}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}typeChanged(t,e){e!==Do.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===Se||t.key===wo){this.click();return}return!0}press(){switch(this.type){case Do.reset:{this.resetForm();break}case Do.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Do.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)}}}}B.formAssociated=!0,j([a],B.prototype,"appearance",2),j([a({mode:"boolean"})],B.prototype,"autofocus",2),j([$],B.prototype,"defaultSlottedContent",2),j([a({mode:"boolean"})],B.prototype,"disabled",2),j([a({attribute:"disabled-focusable",mode:"boolean"})],B.prototype,"disabledFocusable",2),j([a({attribute:"formaction"})],B.prototype,"formAction",2),j([a({attribute:"form"})],B.prototype,"formAttribute",2),j([a({attribute:"formenctype"})],B.prototype,"formEnctype",2),j([a({attribute:"formmethod"})],B.prototype,"formMethod",2),j([a({attribute:"formnovalidate",mode:"boolean"})],B.prototype,"formNoValidate",2),j([a({attribute:"formtarget"})],B.prototype,"formTarget",2),j([a({attribute:"icon-only",mode:"boolean"})],B.prototype,"iconOnly",2),j([a],B.prototype,"name",2),j([a],B.prototype,"shape",2),j([a],B.prototype,"size",2),j([a],B.prototype,"type",2),j([a],B.prototype,"value",2),Dt(B,Lt);function Ds(s={}){return g`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Nt(s)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot></span>${Ht(s)}</template>`}const Xc=Ds(),Kc=B.compose({name:`${f.prefix}-button`,template:Xc,styles:Xo});Kc.define(f.registry);var Yc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,zt=(s,t,e,o)=>{for(var i=o>1?void 0:o?Qc(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Yc(t,e,i),i};class $t extends x{constructor(){super(),this.disabled=!1,this.initialValue="on",this._checked=this.initialChecked??!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue,this.elementInternals.role="checkbox"}get checked(){return m.track(this,"checked"),this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),d(this.elementInternals,"checked",t),m.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),d(this.elementInternals,"indeterminate",e)}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}setAriaChecked(){this.elementInternals.ariaChecked=this.indeterminate?"mixed":`${this.checked}`}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(!this.disabled)return this.dirtyChecked=!0,this.toggleChecked(),this.$emit("change"),this.$emit("input"),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.checked?this.value:null),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.elementInternals.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.indeterminate=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t={valueMissing:!!this.required&&!this.checked},e=this.validationMessage,o){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,o)}}toggleChecked(t=!this.checked){this.indeterminate=!1,this.checked=t}}$t.formAssociated=!0,zt([a({mode:"boolean"})],$t.prototype,"autofocus",2),zt([a({mode:"boolean"})],$t.prototype,"disabled",2),zt([a({attribute:"form"})],$t.prototype,"formAttribute",2),zt([$],$t.prototype,"indeterminate",2),zt([a({attribute:"checked",mode:"boolean"})],$t.prototype,"initialChecked",2),zt([a({attribute:"value",mode:"fromView"})],$t.prototype,"initialValue",2),zt([a],$t.prototype,"name",2),zt([a({mode:"boolean"})],$t.prototype,"required",2);class Rs extends $t{shapeChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}sizeChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}}zt([a],Rs.prototype,"shape",2),zt([a],Rs.prototype,"size",2);const yt=l.partial`:is([state--checked], :state(checked))`,pe=l.partial`:is([state--indeterminate], :state(indeterminate))`,Zc=l`
|
|
378
378
|
${C("inline-flex")}
|
|
379
379
|
|
|
380
380
|
:host{--size:16px;background-color:${_};border-radius:${mt};border:${Y} solid ${jt};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${je}}:host(:active){border-color:${qe}}:host(${yt}:hover){background-color:${Re};border-color:${Bs}}:host(${yt}:active){background-color:${Ve};border-color:${Ts}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${de} solid ${St};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${It}}.indeterminate-indicator,.checked-indicator{color:${Bo};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(${yt})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${yt}),:host(${pe}){border-color:${Ps}}:host(${yt}),:host(${pe}) .indeterminate-indicator{background-color:${De}}:host(${pe}) .indeterminate-indicator{border-radius:${mt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${E}){--size:20px}:host(${E}) ::slotted([slot='checked-indicator']),:host(${E}) .checked-indicator{width:16px}:host(${Qe}),:host(${Qe}) .indeterminate-indicator{border-radius:${at}}:host([disabled]),:host([disabled]${yt}){background-color:${Ne};border-color:${qt}}:host([disabled]){cursor:unset}:host([disabled]${pe}) .indeterminate-indicator{background-color:${qt}}:host([disabled]${yt}) .checked-indicator{color:${qt}}`.withBehaviors(Z(l`
|
|
381
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${yt}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${yt}),:host(${pe}) .indeterminate-indicator{background-color:FieldText}:host(${yt}:not([disabled]):hover),:host(${pe}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${pe}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${yt}) .checked-indicator{color:GrayText}`)),
|
|
381
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${yt}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${yt}),:host(${pe}) .indeterminate-indicator{background-color:FieldText}:host(${yt}:not([disabled]):hover),:host(${pe}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${pe}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${yt}) .checked-indicator{color:GrayText}`)),Jc=g.partial(`
|
|
382
382
|
<svg
|
|
383
383
|
fill="currentColor"
|
|
384
384
|
aria-hidden="true"
|
|
@@ -389,21 +389,21 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
389
389
|
xmlns="http://www.w3.org/2000/svg">
|
|
390
390
|
<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>
|
|
391
391
|
</svg>
|
|
392
|
-
`),
|
|
392
|
+
`),td=g.partial(`
|
|
393
393
|
<span class="indeterminate-indicator"></span>
|
|
394
|
-
`);function
|
|
394
|
+
`);function ed(s={}){return g`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ht(s.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ht(s.indeterminateIndicator)}</slot></template>`}const od=ed({checkedIndicator:Jc,indeterminateIndicator:td}),sd=Rs.compose({name:`${f.prefix}-checkbox`,template:od,styles:Zc});sd.define(f.registry);class id extends B{}const rd=l`
|
|
395
395
|
${Xo}
|
|
396
396
|
|
|
397
397
|
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${z};line-height:${M}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Rt};line-height:100%;font-size:${W};font-weight:${F}}::slotted(svg),:host(${E}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Co}}:host(:active) ::slotted([slot='description']){color:${So}}:host(:is(${et},${et}:hover,${et}:active)) ::slotted([slot='description']){color:${Vt}}:host(:is(${w},${w}:hover,${w}:active)) ::slotted([slot='description']),:host(${V}) ::slotted([slot='description']){color:${Rt}}:host(${V}:hover) ::slotted([slot='description']){color:${Io}}:host(${V}:active) ::slotted([slot='description']){color:${Po}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
398
|
-
::slotted([slot='description']){color:${k}}:host(${ot}){padding:8px;padding-bottom:10px}:host(${Te}){min-width:52px;max-width:52px;padding:${ue}}:host(${Te}${ot}){min-width:48px;max-width:48px;padding:${Gt}}:host(${Te}${E}){min-width:56px;max-width:56px;padding:${Pt}}:host(${E}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${lt};line-height:${vt}}:host(${E}) ::slotted([slot='description']){font-size:${z}}`;function
|
|
398
|
+
::slotted([slot='description']){color:${k}}:host(${ot}){padding:8px;padding-bottom:10px}:host(${Te}){min-width:52px;max-width:52px;padding:${ue}}:host(${Te}${ot}){min-width:48px;max-width:48px;padding:${Gt}}:host(${Te}${E}){min-width:56px;max-width:56px;padding:${Pt}}:host(${E}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${lt};line-height:${vt}}:host(${E}) ::slotted([slot='description']){font-size:${z}}`;function nd(s={}){return g`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${Nt(s)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Ht(s)}</template>`}const ad=nd(),ld=id.compose({name:`${f.prefix}-compound-button`,template:ad,styles:rd});ld.define(f.registry);var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,se=(s,t,e,o)=>{for(var i=o>1?void 0:o?dd(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&cd(t,e,i),i};class Ft extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){d(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}se([a],Ft.prototype,"appearance",2),se([a],Ft.prototype,"color",2),se([a],Ft.prototype,"shape",2),se([a],Ft.prototype,"size",2),se([a({converter:nt})],Ft.prototype,"count",2),se([a({attribute:"overflow-count",converter:nt})],Ft.prototype,"overflowCount",2),se([a({attribute:"show-zero",mode:"boolean"})],Ft.prototype,"showZero",2),se([a({mode:"boolean"})],Ft.prototype,"dot",2),Dt(Ft,Lt);const Rr=l.partial`:is([state--dot], :state(dot))`,hd=l`
|
|
399
399
|
:host(${Xt}){border-radius:${T}}:host(${Xt}${Ze}),:host(${Xt}${Je}),:host(${Xt}${ot}){border-radius:${mt}}${Lr}
|
|
400
400
|
${Hr}
|
|
401
401
|
${Nr}
|
|
402
402
|
${Er}
|
|
403
403
|
|
|
404
|
-
:host(${Rr}),:host(${Rr}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function
|
|
405
|
-
@layer base{:host{--dialog-backdrop:${
|
|
406
|
-
@layer base{dialog{border:${Y} solid ${St}}}`))
|
|
404
|
+
:host(${Rr}),:host(${Rr}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function ud(s={}){return Dr({defaultContent:g`${t=>t.setCount()}`})}const pd=ud(),fd=Ft.compose({name:`${f.prefix}-counter-badge`,template:pd,styles:hd});fd.define(f.registry);const Ot={modal:"modal",nonModal:"non-modal",alert:"alert"};var gd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,Qo=(s,t,e,o)=>{for(var i=o>1?void 0:o?bd(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&gd(t,e,i),i};class eo extends x{constructor(){super(...arguments),this.type=Ot.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(){Mt.enqueue(()=>{this.emitBeforeToggle(),this.type===Ot.alert||this.type===Ot.modal?this.dialog.showModal():this.type===Ot.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Ot.alert&&t.target===this.dialog&&this.hide(),!0}}Qo([$],eo.prototype,"dialog",2),Qo([a({attribute:"aria-describedby"})],eo.prototype,"ariaDescribedby",2),Qo([a({attribute:"aria-labelledby"})],eo.prototype,"ariaLabelledby",2),Qo([a],eo.prototype,"type",2);const md=g`<dialog role="${s=>s.type===Ot.alert?"alertdialog":"dialog"}" type="${s=>s.type}" class="dialog" part="dialog" aria-modal="${s=>s.type===Ot.modal||s.type===Ot.alert?"true":void 0}" aria-describedby="${s=>s.ariaDescribedby}" aria-labelledby="${s=>s.ariaLabelledby}" aria-label="${s=>s.ariaLabel}" @click="${(s,t)=>s.clickHandler(t.event)}" @cancel="${(s,t)=>s.type===Ot.alert?t.event.preventDefault():s.hide()}" ${Et("dialog")}><slot></slot></dialog>`,vd=l`
|
|
405
|
+
@layer base{:host{--dialog-backdrop:${ua};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${_};border-radius:${cr};border:none;box-shadow:${Vl};color:${A};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ul};transition-timing-function:${_s};opacity:0}::backdrop{transition-timing-function:${Pr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${As}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Z(l`
|
|
406
|
+
@layer base{dialog{border:${Y} solid ${St}}}`)),$d=eo.compose({name:`${f.prefix}-dialog`,template:md,styles:vd});$d.define(f.registry);var yd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,xd=(s,t,e,o)=>{for(var i=o>1?void 0:o?kd(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&yd(t,e,i),i};class Vr extends x{constructor(){super(...arguments),this.noTitleAction=!1}}xd([a({mode:"boolean",attribute:"no-title-action"})],Vr.prototype,"noTitleAction",2);const wd=g.partial(`
|
|
407
407
|
<svg
|
|
408
408
|
fill="currentColor"
|
|
409
409
|
aria-hidden="true"
|
|
@@ -416,84 +416,84 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
416
416
|
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"
|
|
417
417
|
fill="currentColor"
|
|
418
418
|
></path>
|
|
419
|
-
</svg>`),
|
|
419
|
+
</svg>`),Cd=g`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${s=>s.noTitleAction||s.parentNode?.type===Ot.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${s=>s.parentNode?.hide()} ${Et("defaultTitleAction")}>${wd}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Sd=l`
|
|
420
420
|
${C("grid")}
|
|
421
421
|
|
|
422
|
-
:host{background:${_};box-sizing:border-box;gap:${U};padding:${Xe} ${
|
|
422
|
+
:host{background:${_};box-sizing:border-box;gap:${U};padding:${Xe} ${ql};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${A};column-gap:8px;display:flex;font-family:${v};font-size:${Pe};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Eo};margin-block-end:calc(${U} * -1);margin-block-start:calc(${Xe} * -1);padding-block-end:${U};padding-block-start:${Xe};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${v};font-size:${z};font-weight:${F};line-height:${M};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${U};inset-block-end:0;margin-block-end:calc(${Xe} * -1);padding-block-end:${Xe};padding-block-start:${wr};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(${U} * -1);padding-block-start:${U}}}`,Id=Vr.compose({name:`${f.prefix}-dialog-body`,template:Cd,styles:Sd});Id.define(f.registry);const oo={separator:"separator",presentation:"presentation"},Pd=Q;var Bd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,so=(s,t,e,o)=>{for(var i=o>1?void 0:o?Td(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Bd(t,e,i),i};class Ae extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.inset=!1}alignContentChanged(t,e){t&&d(this.elementInternals,`align-${t}`,!1),e&&d(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}insetChanged(t,e){d(this.elementInternals,"inset",e)}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??oo.separator,this.role!==oo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Pd.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??oo.separator}`),e===oo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==oo.presentation?e:null,t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}so([a],Ae.prototype,"role",2),so([a],Ae.prototype,"orientation",2),so([a({attribute:"align-content"})],Ae.prototype,"alignContent",2),so([a],Ae.prototype,"appearance",2),so([a({mode:"boolean"})],Ae.prototype,"inset",2);function zd(){return g`<slot></slot>`}const Fd=zd(),Od=l`
|
|
423
423
|
${C("flex")}
|
|
424
424
|
|
|
425
|
-
:host{contain:content}:host::after,:host::before{align-self:center;background:${Ge};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${Y}}:host(${Ns}){padding:0 12px}:host ::slotted(*){color:${Rt};font-family:${
|
|
426
|
-
:host(${Ke})::before,:host(${Ke})::after,:host(${to})::before,:host(${to})::after,:host(${w})::before,:host(${w})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),
|
|
425
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${Ge};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${Y}}:host(${Ns}){padding:0 12px}:host ::slotted(*){color:${Rt};font-family:${v};font-size:${W};font-weight:${F};margin:0;padding:0 12px}:host(${zr})::before,:host(${Fr})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${pt}){height:100%;min-height:84px}:host(${pt}):empty{min-height:20px}:host(${pt}){flex-direction:column;align-items:center}:host(${pt}${Ns})::before{margin-top:12px}:host(${pt}${Ns})::after{margin-bottom:12px}:host(${pt}):empty::before,:host(${pt}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${pt})::before,:host(${pt})::after{width:${Y};min-height:20px;height:100%}:host(${pt}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${pt}${zr})::before{min-height:8px}:host(${pt}${Fr})::after{min-height:8px}:host(${Ke})::before,:host(${Ke})::after{background:${Ie}}:host(${Ke}) ::slotted(*){color:${A}}:host(${to})::before,:host(${to})::after{background:${Ji}}:host(${to}) ::slotted(*){color:${ys}}:host(${w})::before,:host(${w})::after{background:${ga}}:host(${w}) ::slotted(*){color:${tt}}`.withBehaviors(Z(l`
|
|
426
|
+
:host(${Ke})::before,:host(${Ke})::after,:host(${to})::before,:host(${to})::after,:host(${w})::before,:host(${w})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Ad=Ae.compose({name:`${f.prefix}-divider`,template:Fd,styles:Od});Ad.define(f.registry);const _d={above:"above",after:"after",before:"before"},y={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 Md=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Vs=(s,t,e,o)=>{for(var i=o>1?void 0:o?Ed(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Md(t,e,i),i};class Zo extends x{constructor(){super(...arguments),this.labelPosition=_d.above,this.elementInternals=this.attachInternals()}messageSlotChanged(t,e){if(!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){this.input=e?.[0],this.input&&this.setStates()}changeHandler(t){this.setStates()}clickHandler(t){if(this.isSameNode(t.target)){this.input.focus(),this.input.click();return}return!0}focusinHandler(t){return t.target.matches(":focus-visible")&&d(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return d(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(d(this.elementInternals,"disabled",!!this.input.disabled),d(this.elementInternals,"readonly",!!this.input.readOnly),d(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(y))d(this.elementInternals,e,!!this.input.validity[t])}}}Vs([a({attribute:"label-position"})],Zo.prototype,"labelPosition",2),Vs([$],Zo.prototype,"messageSlot",2),Vs([$],Zo.prototype,"slottedInputs",2);const Ld=l.partial`:is([state--disabled], :state(disabled))`,Hd=l.partial`:is([state--focus-visible], :state(focus-visible))`,Nd=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,Dd=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,Rd=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,Vd=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,jd=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,qd=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,Gd=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,Wd=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,Ud=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,Xd=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,Kd=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,Yd=l`
|
|
427
427
|
${C("inline-grid")}
|
|
428
428
|
|
|
429
|
-
:host{align-items:center;cursor:pointer;gap:0 ${Jt};justify-items:start;padding:${U}}:has([slot='message']){color:${A};row-gap:${U}}: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:${Jt}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Ho}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${Ho};grid-area:message}:host(${
|
|
430
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${Y} solid ${Ge}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${Lo}}:host(${Qe}) ::slotted(img){border-radius:${at}}:host(${Xt}) ::slotted(img){border-radius:${T}}`,
|
|
429
|
+
:host{align-items:center;cursor:pointer;gap:0 ${Jt};justify-items:start;padding:${U}}:has([slot='message']){color:${A};row-gap:${U}}: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:${Jt}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Ho}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${Ho};grid-area:message}:host(${Hd}:focus-within){border-radius:${T};outline:${de} solid ${It}}::slotted(label){display:inline-flex;color:${A};cursor:pointer;font-family:${v};font-size:${z};font-weight:${F};line-height:${M};user-select:none}:host([size='small']) ::slotted(label){font-size:${W};line-height:${ct}}:host([size='large']) ::slotted(label){font-size:${lt};line-height:${vt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${Ld}) ::slotted(label){color:${A};cursor:default}::slotted([flag]){display:none}:host(${Nd}) ::slotted([flag='${y.badInput}']),:host(${Dd}) ::slotted([flag='${y.customError}']),:host(${Rd}) ::slotted([flag='${y.patternMismatch}']),:host(${Vd}) ::slotted([flag='${y.rangeOverflow}']),:host(${jd}) ::slotted([flag='${y.rangeUnderflow}']),:host(${qd}) ::slotted([flag='${y.stepMismatch}']),:host(${Gd}) ::slotted([flag='${y.tooLong}']),:host(${Wd}) ::slotted([flag='${y.tooShort}']),:host(${Ud}) ::slotted([flag='${y.typeMismatch}']),:host(${Kd}) ::slotted([flag='${y.valueMissing}']),:host(${Xd}) ::slotted([flag='${y.valid}']){display:block}`,Qd=g`<template @click="${(s,t)=>s.clickHandler(t.event)}" @change="${(s,t)=>s.changeHandler(t.event)}" @focusin="${(s,t)=>s.focusinHandler(t.event)}" @focusout="${(s,t)=>s.focusoutHandler(t.event)}" ${Sn({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:le()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${rt({property:"messageSlot",filter:le("[flag]")})}></slot></template>`,Zd=Zo.compose({name:`${f.prefix}-field`,template:Qd,styles:Yd,shadowOptions:{delegatesFocus:!0}});Zd.define(f.registry);var Jd=Object.defineProperty,th=Object.getOwnPropertyDescriptor,io=(s,t,e,o)=>{for(var i=o>1?void 0:o?th(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Jd(t,e,i),i};class _e extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){d(this.elementInternals,"block",e)}borderedChanged(t,e){d(this.elementInternals,"bordered",e)}shadowChanged(t,e){d(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&d(this.elementInternals,`fit-${t}`,!1),e&&d(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}io([a({mode:"boolean"})],_e.prototype,"block",2),io([a({mode:"boolean"})],_e.prototype,"bordered",2),io([a({mode:"boolean"})],_e.prototype,"shadow",2),io([a],_e.prototype,"fit",2),io([a],_e.prototype,"shape",2);const eh=g`<slot></slot>`,oh=l`
|
|
430
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${Y} solid ${Ge}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${Lo}}:host(${Qe}) ::slotted(img){border-radius:${at}}:host(${Xt}) ::slotted(img){border-radius:${T}}`,sh=_e.compose({name:`${f.prefix}-image`,template:eh,styles:oh});sh.define(f.registry);var ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Jo=(s,t,e,o)=>{for(var i=o>1?void 0:o?rh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&ih(t,e,i),i};class ro extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){d(this.elementInternals,"disabled",e)}}Jo([a],ro.prototype,"size",2),Jo([a],ro.prototype,"weight",2),Jo([a({mode:"boolean"})],ro.prototype,"disabled",2),Jo([a({mode:"boolean"})],ro.prototype,"required",2);const nh=l`
|
|
431
431
|
${C("inline-flex")}
|
|
432
432
|
|
|
433
|
-
:host{color:${A};cursor:pointer;font-family:${
|
|
433
|
+
:host{color:${A};cursor:pointer;font-family:${v};font-size:${z};font-weight:${F};line-height:${M};user-select:none}.asterisk{color:${sr};margin-inline-start:${Gt}}:host(${ot}){font-size:${W};line-height:${ct}}:host(${E}){font-size:${lt};line-height:${vt}}:host(${E}),:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${k}}`;function ah(){return g`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${s=>!s.required}">*</span>`}const lh=ah(),ch=ro.compose({name:`${f.prefix}-label`,template:lh,styles:nh});ch.define(f.registry);var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,jr=(s,t,e,o)=>{for(var i=o>1?void 0:o?hh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&dh(t,e,i),i};class js extends Bt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){d(this.elementInternals,"inline",e)}}jr([a],js.prototype,"appearance",2),jr([a({mode:"boolean"})],js.prototype,"inline",2);const uh=l`
|
|
434
434
|
${C("inline")}
|
|
435
435
|
|
|
436
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${
|
|
437
|
-
:host{color:LinkText}`));function
|
|
436
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${Yn};cursor:pointer;font-family:${v};font-size:${z};font-weight:${F};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${Y};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Qn}}:host(:active){color:${Zn}}:host(${w}:hover){color:${ta}}:host(${w}:active){color:${ea}}}:host(${w}){color:${Jn}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
|
|
437
|
+
:host{color:LinkText}`));function ph(){return g`<template tabindex="0" @click="${(s,t)=>s.clickHandler(t.event)}" @keydown="${(s,t)=>s.keydownHandler(t.event)}"><slot></slot></template>`}const fh=ph(),gh=js.compose({name:`${f.prefix}-link`,template:fh,styles:uh});gh.define(f.registry);class bh extends B{}const mh=Ds({end:g.partial(`
|
|
438
438
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
439
439
|
<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>
|
|
440
440
|
</svg>
|
|
441
|
-
`)}),
|
|
441
|
+
`)}),vh=bh.compose({name:`${f.prefix}-menu-button`,template:mh,styles:Xo});vh.define(f.registry);const ft={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ft.menuitem+"",ft.menuitemcheckbox+"",ft.menuitemradio+"";var $h=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Me=(s,t,e,o)=>{for(var i=o>1?void 0:o?yh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&$h(t,e,i),i};class At extends x{constructor(){super(...arguments),this.role=ft.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Se:case wo:return this.invoke(),!1;case we:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case xe:return this.parentElement?.hasAttribute("popover")&&this.parentElement.togglePopover(!1),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.setAttribute("aria-expanded","true"),this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.setAttribute("aria-expanded","false"),this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case ft.menuitemcheckbox:this.checked=!this.checked;break;case ft.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ft.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),o=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[o]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length&&(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler))}}Me([a({mode:"boolean"})],At.prototype,"disabled",2),Me([a],At.prototype,"role",2),Me([a({mode:"boolean"})],At.prototype,"checked",2),Me([a({mode:"boolean"})],At.prototype,"hidden",2),Me([$],At.prototype,"slottedSubmenu",2),Me([$],At.prototype,"submenu",2),Dt(At,Lt);const kh=l`
|
|
442
442
|
${C("grid")}
|
|
443
443
|
|
|
444
|
-
:host{--indent:0;align-items:center;background:${_};border-radius:${T};color:${Rt};contain:layout;cursor:pointer;flex-shrink:0;font:${F} ${z} / ${M} ${
|
|
445
|
-
:host([disabled]),:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:GrayText}`)),
|
|
444
|
+
:host{--indent:0;align-items:center;background:${_};border-radius:${T};color:${Rt};contain:layout;cursor:pointer;flex-shrink:0;font:${F} ${z} / ${M} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ks};color:${Co}}:host([icon]:hover) ::slotted([slot='start']){color:${qi}}:host(:active){background-color:${Xi};color:${So}}:host(:active) ::slotted([slot='start']){color:${Gi}}:host([disabled]){background-color:${Ne};color:${k}}:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}:host(:focus-visible){border-radius:${T};outline:2px solid ${It}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not([checked])) .indicator,:host(:not([checked])) ::slotted([slot='indicator']),:host(:not([aria-haspopup='menu'])) .submenu-glyph,:host(:not([aria-haspopup='menu'])) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${tt};font:${F} ${W} / ${ct} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){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]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}}`.withBehaviors(Z(l`
|
|
445
|
+
:host([disabled]),:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:GrayText}`)),xh=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>'),wh=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 Ch(s={}){return g`<template aria-haspopup="${t=>t.submenu?"menu":void 0}" aria-checked="${t=>t.role!==ft.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.submenu?"false":void 0}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${ht(s.indicator)}</slot>${Nt(s)}<div part="content" class="content"><slot></slot></div>${Ht(s)}<slot name="submenu-glyph">${ht(s.submenuGlyph)}</slot><slot name="submenu" ${rt({property:"slottedSubmenu",filter:le("[role='menu']")})}></slot></template>`}const Sh=Ch({indicator:xh,submenuGlyph:wh}),Ih=At.compose({name:`${f.prefix}-menu-item`,template:Sh,styles:kh});Ih.define(f.registry);var Ph=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Th=(s,t,e,o)=>{for(var i=o>1?void 0:o?Bh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Ph(t,e,i),i};const qs=class Ks extends x{constructor(){super(...arguments),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Ni(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,o=this.menuItems.indexOf(e);if(o!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=o-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===ft.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=o+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===ft.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof At||Ni(t)&&t.getAttribute("role")in Ks.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Mt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case ke:this.setFocus(this.focusIndex+1,1);return;case Ce:this.setFocus(this.focusIndex-1,-1);return;case ko:this.setFocus(this.menuItems.length-1,-1);return;case xo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),m.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),o=t.querySelector("[slot=start]");return e&&e!==ft.menuitem?o?2:1:o?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const o=this.menuItems.filter(this.isMenuItemElement);o.length&&(this.focusIndex=0),o.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const p=Ks.elementIndent(h);return Math.max(n,p)},0);i?.forEach(n=>{n instanceof At&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const o=this.menuItems[t];if(this.isFocusableElement(o)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,o.setAttribute("tabindex","0"),o.focus();break}t+=e}}};qs.focusableElementRoles=ft,Th([$],qs.prototype,"items",2);let zh=qs;const Fh=l`
|
|
446
446
|
${C("flex")}
|
|
447
447
|
|
|
448
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${St};border-radius:${T};box-shadow:${yr};padding:4px;row-gap:2px}`;function
|
|
448
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${St};border-radius:${T};box-shadow:${yr};padding:4px;row-gap:2px}`;function Oh(){return g`<template slot="${s=>s.slot?s.slot:s.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(s,t)=>s.handleMenuKeyDown(t.event)}" @focusout="${(s,t)=>s.handleFocusOut(t.event)}"><slot ${rt("items")}></slot></template>`}const Ah=Oh(),_h=zh.compose({name:`${f.prefix}-menu-list`,template:Ah,styles:Fh});_h.define(f.registry);var Mh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Ee=(s,t,e,o)=>{for(var i=o>1?void 0:o?Eh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Mh(t,e,i),i};class fe extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=()=>{this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t instanceof ToggleEvent){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case wo:case Se:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Mt.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(){Mt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Mt.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("click",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("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case An:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case _n:this._open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}Ee([$,a({attribute:"open-on-hover",mode:"boolean"})],fe.prototype,"openOnHover",2),Ee([$,a({attribute:"open-on-context",mode:"boolean"})],fe.prototype,"openOnContext",2),Ee([$,a({attribute:"close-on-scroll",mode:"boolean"})],fe.prototype,"closeOnScroll",2),Ee([$,a({attribute:"persist-on-item-click",mode:"boolean"})],fe.prototype,"persistOnItemClick",2),Ee([$],fe.prototype,"slottedMenuList",2),Ee([$],fe.prototype,"slottedTriggers",2);const Lh=l`
|
|
449
449
|
${C("inline-block")}
|
|
450
450
|
|
|
451
|
-
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function
|
|
451
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function Hh(){return g`<template ?open-on-hover="${s=>s.openOnHover}" ?open-on-context="${s=>s.openOnContext}" ?close-on-scroll="${s=>s.closeOnScroll}" ?persist-on-item-click="${s=>s.persistOnItemClick}" @keydown="${(s,t)=>s.menuKeydownHandler(t.event)}"><slot name="trigger" ${rt({property:"slottedTriggers",filter:le()})}></slot><slot ${rt({property:"slottedMenuList",filter:le()})}></slot></template>`}const Nh=Hh(),Dh=fe.compose({name:`${f.prefix}-menu`,template:Nh,styles:Lh});Dh.define(f.registry);var Rh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,ge=(s,t,e,o)=>{for(var i=o>1?void 0:o?Vh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Rh(t,e,i),i};class ie extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}thicknessChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}validationStateChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,o=this.value??0,i=e-t;return i===0?0:Math.fround((o-t)/i*100)}}ge([a],ie.prototype,"thickness",2),ge([a],ie.prototype,"shape",2),ge([a({attribute:"validation-state"})],ie.prototype,"validationState",2),ge([a({converter:nt})],ie.prototype,"value",2),ge([a({converter:nt})],ie.prototype,"min",2),ge([a({converter:nt})],ie.prototype,"max",2),ge([an],ie.prototype,"percentComplete",1);const jh=l`
|
|
452
452
|
${C("block")}
|
|
453
453
|
|
|
454
454
|
:host{width:100%;height:2px;overflow-x:hidden;background-color:${To};border-radius:${T};contain:content}:host(${E}){height:4px}:host(${jo}){border-radius:${Fs}}.indicator{background-color:${De};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(
|
|
455
455
|
to right,${To} 0%,${bt} 50%,${To} 100%
|
|
456
456
|
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Or}) .indicator{background-color:${or}}:host(${Fe}) .indicator{background-color:${nr}}:host(${ze}) .indicator{background-color:${rr}}@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(Z(l`
|
|
457
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${ze},${Fe},${Or})) .indicator{background-color:Highlight}`));function Dh(){return g`<div class="indicator" part="indicator" style="${s=>typeof s.value=="number"?`width: ${s.percentComplete}%`:void 0}"></div>`}const Rh=Dh(),Vh=ie.compose({name:`${f.prefix}-progress-bar`,template:Rh,styles:Nh});Vh.define(f.registry);const qr="form-associated-proxy",Gr="ElementInternals",Wr=Gr in window&&"setFormValue"in window[Gr].prototype,Ur=new WeakMap;function Xr(s){const t=class extends s{constructor(...e){super(...e),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Wr}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?o.concat(Array.from(e)):o;return Object.freeze(i)}else return ti}valueChanged(e,o){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Mt.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Mt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Wr)return null;let e=Ur.get(this);return e||(e=this.attachInternals(),Ur.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,o,i){this.elementInternals?this.elementInternals.setValidity(e,o,i):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",qr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",qr)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,o){this.elementInternals&&this.elementInternals.setFormValue(e,o||e)}_keypressHandler(e){switch(e.key){case Se:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),v(t.prototype,"value"),t}function jh(s){class t extends Xr(s){}class e extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,r){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,r){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:Bi})(e.prototype,"currentChecked"),v(e.prototype,"defaultChecked"),v(e.prototype,"checked"),e}class qh extends x{}class Gh extends jh(qh){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Wh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,Kr=(s,t,e,o)=>{for(var i=o>1?void 0:o?Uh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Wh(t,e,i),i};class Kt extends Gh{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(t){switch(t.key){case wo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Kr([v],Kt.prototype,"name",2),Kr([v],Kt.prototype,"defaultSlottedNodes",2);const Yr=Q;var Xh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,re=(s,t,e,o)=>{for(var i=o>1?void 0:o?Kh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Xh(t,e,i),i};class Yt extends x{constructor(){super(...arguments),this.stacked=!1,this.orientation=Yr.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(o=>{o instanceof Kt&&o!==e&&(o.checked=!1,this.isInsideFoundationToolbar||o.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const o=t[e];this.isInsideToolbar||(o.setAttribute("tabindex","0"),o.checked=!0,this.selectedRadio=o),this.focusedRadio=o,o.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,o=t.target,i=o!==null?e.indexOf(o):0,r=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(r===0&&i===r||r===e.length-1&&r===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(n=>{o instanceof Kt&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=t=>{if(this.disabled){t.preventDefault();return}return!0},this.clickHandler=t=>{if(this.disabled)return;t.preventDefault();const e=t.target;e&&e instanceof Kt&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,o)=>t===e.length&&this.isInsideToolbar&&o===we,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===xe,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let o=0;if(o=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(o,e,t.key)){this.moveRightOffGroup();return}else o===e.length&&(o=0);for(;o<e.length&&e.length>1;)if(e[o].disabled){if(this.focusedRadio&&o===e.indexOf(this.focusedRadio))break;if(o+1>=e.length){if(this.isInsideToolbar)break;o=0}else o+=1}else{this.moveToRadioByIndex(e,o);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let o=0;if(o=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,o=o<0?e.length-1:o,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;o>=0&&e.length>1;)if(e[o].disabled){if(this.focusedRadio&&o===e.indexOf(this.focusedRadio))break;o-1<0?o=e.length-1:o-=1}else{this.moveToRadioByIndex(e,o);break}},this.keydownHandler=t=>{const e=t.key;if(e in Fn&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Se:{this.checkFocusedRadio();break}case we:case ke:{this.direction===dt.ltr?this.moveRight(t):this.moveLeft(t);break}case xe:case Ce:{this.direction===dt.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=Di(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),e=t?t.length:0;if(e>1){const i=t[e-1];i.checked=!0}let o=!1;if(this.slottedRadioButtons.forEach(i=>{i instanceof Kt&&(this.name!==void 0&&i.setAttribute("name",this.name),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),o=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=i!==null?i.length:0;if(r>0&&!o){const n=i[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}re([a({mode:"boolean"})],Yt.prototype,"stacked",2),re([a({attribute:"readonly",mode:"boolean"})],Yt.prototype,"readOnly",2),re([a({attribute:"disabled",mode:"boolean"})],Yt.prototype,"disabled",2),re([a],Yt.prototype,"name",2),re([a],Yt.prototype,"value",2),re([a],Yt.prototype,"orientation",2),re([v],Yt.prototype,"childItems",2),re([v],Yt.prototype,"slottedRadioButtons",2);const Yh=l`
|
|
457
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${ze},${Fe},${Or})) .indicator{background-color:Highlight}`));function qh(){return g`<div class="indicator" part="indicator" style="${s=>typeof s.value=="number"?`width: ${s.percentComplete}%`:void 0}"></div>`}const Gh=qh(),Wh=ie.compose({name:`${f.prefix}-progress-bar`,template:Gh,styles:jh});Wh.define(f.registry);const qr="form-associated-proxy",Gr="ElementInternals",Wr=Gr in window&&"setFormValue"in window[Gr].prototype,Ur=new WeakMap;function Xr(s){const t=class extends s{constructor(...e){super(...e),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Wr}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?o.concat(Array.from(e)):o;return Object.freeze(i)}else return ti}valueChanged(e,o){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Mt.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Mt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Wr)return null;let e=Ur.get(this);return e||(e=this.attachInternals(),Ur.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,o,i){this.elementInternals?this.elementInternals.setValidity(e,o,i):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",qr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",qr)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,o){this.elementInternals&&this.elementInternals.setFormValue(e,o||e)}_keypressHandler(e){switch(e.key){case Se:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),$(t.prototype,"value"),t}function Uh(s){class t extends Xr(s){}class e extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,r){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,r){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:Bi})(e.prototype,"currentChecked"),$(e.prototype,"defaultChecked"),$(e.prototype,"checked"),e}class Xh extends x{}class Kh extends Uh(Xh){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Yh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,Kr=(s,t,e,o)=>{for(var i=o>1?void 0:o?Qh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Yh(t,e,i),i};class Kt extends Kh{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(t){switch(t.key){case wo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Kr([$],Kt.prototype,"name",2),Kr([$],Kt.prototype,"defaultSlottedNodes",2);const Yr=Q;var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,re=(s,t,e,o)=>{for(var i=o>1?void 0:o?Jh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Zh(t,e,i),i};class Yt extends x{constructor(){super(...arguments),this.stacked=!1,this.orientation=Yr.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(o=>{o instanceof Kt&&o!==e&&(o.checked=!1,this.isInsideFoundationToolbar||o.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const o=t[e];this.isInsideToolbar||(o.setAttribute("tabindex","0"),o.checked=!0,this.selectedRadio=o),this.focusedRadio=o,o.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,o=t.target,i=o!==null?e.indexOf(o):0,r=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(r===0&&i===r||r===e.length-1&&r===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(n=>{o instanceof Kt&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=t=>{if(this.disabled){t.preventDefault();return}return!0},this.clickHandler=t=>{if(this.disabled)return;t.preventDefault();const e=t.target;e&&e instanceof Kt&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,o)=>t===e.length&&this.isInsideToolbar&&o===we,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===xe,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let o=0;if(o=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(o,e,t.key)){this.moveRightOffGroup();return}else o===e.length&&(o=0);for(;o<e.length&&e.length>1;)if(e[o].disabled){if(this.focusedRadio&&o===e.indexOf(this.focusedRadio))break;if(o+1>=e.length){if(this.isInsideToolbar)break;o=0}else o+=1}else{this.moveToRadioByIndex(e,o);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let o=0;if(o=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,o=o<0?e.length-1:o,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;o>=0&&e.length>1;)if(e[o].disabled){if(this.focusedRadio&&o===e.indexOf(this.focusedRadio))break;o-1<0?o=e.length-1:o-=1}else{this.moveToRadioByIndex(e,o);break}},this.keydownHandler=t=>{const e=t.key;if(e in Mn&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Se:{this.checkFocusedRadio();break}case we:case ke:{this.direction===dt.ltr?this.moveRight(t):this.moveLeft(t);break}case xe:case Ce:{this.direction===dt.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=Di(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),e=t?t.length:0;if(e>1){const i=t[e-1];i.checked=!0}let o=!1;if(this.slottedRadioButtons.forEach(i=>{i instanceof Kt&&(this.name!==void 0&&i.setAttribute("name",this.name),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),o=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=i!==null?i.length:0;if(r>0&&!o){const n=i[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}re([a({mode:"boolean"})],Yt.prototype,"stacked",2),re([a({attribute:"readonly",mode:"boolean"})],Yt.prototype,"readOnly",2),re([a({attribute:"disabled",mode:"boolean"})],Yt.prototype,"disabled",2),re([a],Yt.prototype,"name",2),re([a],Yt.prototype,"value",2),re([a],Yt.prototype,"orientation",2),re([$],Yt.prototype,"childItems",2),re([$],Yt.prototype,"slottedRadioButtons",2);const tu=l`
|
|
458
458
|
${C("flex")}
|
|
459
459
|
|
|
460
|
-
:host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${A};padding:${U} ${Pt} ${U} ${Gt};font:${F} ${z} / ${M} ${
|
|
460
|
+
:host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${A};padding:${U} ${Pt} ${U} ${Gt};font:${F} ${z} / ${M} ${v};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${Pt}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${Pt};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function eu(){return g`<template role="radiogroup" tabindex="${s=>s.disabled?-1:void 0}" aria-disabled="${s=>s.disabled}" aria-readonly="${s=>s.readOnly}" aria-orientation="${s=>s.orientation}" @click="${(s,t)=>s.clickHandler(t.event)}" @mousedown="${(s,t)=>s.handleDisabledClick(t.event)}" @keydown="${(s,t)=>s.keydownHandler(t.event)}" @focusout="${(s,t)=>s.focusOutHandler(t.event)}"><slot name="label"></slot><div class="positioning-region ${s=>s.orientation===Yr.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${rt({property:"slottedRadioButtons",filter:le("[role=radio]")})}></slot></div></template>`}const ou=eu(),su=Yt.compose({name:`${f.prefix}-radio-group`,template:ou,styles:tu});su.define(f.registry);const iu=l`
|
|
461
461
|
${C("inline-grid")}
|
|
462
462
|
|
|
463
|
-
:host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Gt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${tt});padding-inline-end:${Pt};--control-border-color:${jt};--checked-indicator-background-color:${ji};--state-color:${tt}}:host([disabled]){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}.label{cursor:pointer;font-family:${
|
|
464
|
-
:host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function
|
|
465
|
-
:host{--step-rate:${t}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){if(this.$fastController.isConnected){const o=parseFloat(e),i=vs(this.min,this.max,this.convertToConstrainedValue(o)).toString();if(i!==e){this.value=i;return}super.valueChanged(t,e),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=Di(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)
|
|
463
|
+
:host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Gt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${tt});padding-inline-end:${Pt};--control-border-color:${jt};--checked-indicator-background-color:${ji};--state-color:${tt}}:host([disabled]){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}.label{cursor:pointer;font-family:${v};font-size:${z};font-weight:${F};line-height:${M}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${jt});border-radius:${at};display:flex;height:16px;justify-content:center;margin:${U} ${Pt};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${at};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${Rt}}:host(:focus-visible){border-radius:${mt};box-shadow:0 0 0 3px ${It};outline:1px solid ${Oo}}:host(:hover) .control{border-color:${je}}:host(:active) .control{border-color:${qe}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${jt})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${ji})}:host([aria-checked='true']:hover) .control{border-color:${Bs}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${Bs}}:host([aria-checked='true']:active) .control{border-color:${Ts}}:host([aria-checked='true']:active) .checked-indicator{background:${Gi}}:host([disabled]){color:${k};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${k}}:host([disabled]) .checked-indicator{background:${k}}`.withBehaviors(Z(l`
|
|
464
|
+
:host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function ru(s={}){return g`<template role="radio" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" @keypress="${(t,e)=>t.keypressHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${ht(s.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${rt({property:"defaultSlottedNodes",filter:Ri})}></slot></label></template>`}const nu=ru({checkedIndicator:g`<div part="checked-indicator" class="checked-indicator"></div>`}),au=Kt.compose({name:`${f.prefix}-radio`,template:nu,styles:iu});au.define(f.registry);const lu={singleValue:"single-value"};class cu extends x{}class du extends Xr(cu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function Qr(s,t,e,o){let i=vs(0,1,(s-t)/(e-t));return o===dt.rtl&&(i=1-i),i}var hu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,X=(s,t,e,o)=>{for(var i=o>1?void 0:o?uu(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&hu(t,e,i),i};class q extends du{constructor(){super(...arguments),this.direction=dt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=Q.horizontal,this.mode=lu.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===xo)t.preventDefault(),this.direction!==dt.rtl&&this.orientation!==Q.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===ko)t.preventDefault(),this.direction!==dt.rtl&&this.orientation!==Q.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case we:case Ce:t.preventDefault(),this.increment();break;case xe:case ke:t.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),t&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("mouseup",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove,{passive:!0}),e("touchmove",this.handleMouseMove,{passive:!0}),e("touchend",this.handleWindowMouseUp),this.isDragging=t!==null},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,o=this.orientation===Q.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(o)}`},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{if(t===null||!this.disabled&&!this.readOnly){const e=t!==null?window.addEventListener:window.removeEventListener,o=t!==null?document.addEventListener:document.removeEventListener;if(e("mouseup",this.handleWindowMouseUp),o("mouseleave",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove),t){this.setupTrackConstraints();const i=this.orientation===Q.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`}}}}handleChange(t,e){switch(e){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
|
|
465
|
+
:host{--step-rate:${t}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){if(this.$fastController.isConnected){const o=parseFloat(e),i=vs(this.min,this.max,this.convertToConstrainedValue(o)).toString();if(i!==e){this.value=i;return}super.valueChanged(t,e),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=Di(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==dt.rtl&&this.orientation!==Q.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),e=this.convertToConstrainedValue(t),o=e<Number(this.max)?`${e}`:`${this.max}`;this.value=o}decrement(){const t=this.direction!==dt.rtl&&this.orientation!==Q.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),e=this.convertToConstrainedValue(t),o=e>Number(this.min)?`${e}`:`${this.min}`;this.value=o}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(t){const o=(1-Qr(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===Q.horizontal?this.position=this.isDragging?`right: ${o}%; transition: none;`:`right: ${o}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${o}%; transition: none;`:`top: ${o}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.stepValue+"",e=this.stepValue%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}calculateNewValue(t){this.setupTrackConstraints();const e=Qr(t,this.orientation===Q.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Q.horizontal?this.trackWidth:this.trackHeight,this.direction),o=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(o)}convertToConstrainedValue(t){isNaN(t)&&(t=this.min);let e=t-this.min;const o=Math.round(e/this.stepValue),i=e-o*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return e=i>=Number(this.stepValue)/2?e-i+Number(this.stepValue):e-i,e+this.min}}X([a],q.prototype,"size",2),X([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),X([$],q.prototype,"direction",2),X([$],q.prototype,"isDragging",2),X([$],q.prototype,"position",2),X([$],q.prototype,"trackWidth",2),X([$],q.prototype,"trackMinWidth",2),X([$],q.prototype,"trackHeight",2),X([$],q.prototype,"trackLeft",2),X([$],q.prototype,"trackMinHeight",2),X([$],q.prototype,"valueTextFormatter",2),X([a({converter:nt})],q.prototype,"min",2),X([a({converter:nt})],q.prototype,"max",2),X([a({converter:nt})],q.prototype,"step",2),X([a],q.prototype,"orientation",2),X([a],q.prototype,"mode",2);const pu=l`
|
|
466
466
|
${C("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${mt};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${It};outline:1px solid ${Oo}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${Ss};border-radius:${at};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${Ie}}.thumb-cursor:hover{background-color:${Re}}.thumb-cursor:active{background-color:${Ve}}:host([disabled]) .thumb-cursor{background-color:${k};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${qt}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${jt};border-radius:${T};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${T};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
|
|
467
467
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${_} calc(var(--step-rate) - 1px),${_} var(--step-rate)
|
|
468
468
|
)}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${Ne}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${De};position:absolute;height:100%;left:0;border-radius:${T}}:host([disabled]) .track-start{background-color:${k}}:host(:hover) .track-start{background-color:${Re}}:host([disabled]:hover) .track-start{background-color:${k}}.track-start:active{background-color:${Ve}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(Z(l`
|
|
469
|
-
.track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function
|
|
469
|
+
.track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function fu(s={}){return g`<template role="slider" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>t.disabled?!0:void 0}" aria-readonly="${t=>t.readOnly?!0:void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Et("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${Et("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @mousedown="${(t,e)=>t.handleThumbMouseDown(e.event)}" @touchstart="${(t,e)=>t.handleThumbMouseDown(e.event)}"><slot name="thumb">${ht(s.thumb)}</slot></div></div></template>`}const gu=fu({thumb:'<div class="thumb-cursor"></div>'}),bu=q.compose({name:`${f.prefix}-slider`,template:gu,styles:pu});bu.define(f.registry);var mu=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,Zr=(s,t,e,o)=>{for(var i=o>1?void 0:o?vu(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&mu(t,e,i),i};class Gs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}Zr([a],Gs.prototype,"size",2),Zr([a],Gs.prototype,"appearance",2);const $u=l`
|
|
470
470
|
${C("flex")}
|
|
471
471
|
|
|
472
|
-
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${Ze}){height:20px;width:20px}:host(${Je}){height:24px;width:24px}:host(${ot}){height:28px;width:28px}:host(${E}){height:36px;width:36px}:host(${Hs}){height:40px;width:40px}:host(${
|
|
472
|
+
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${Ze}){height:20px;width:20px}:host(${Je}){height:24px;width:24px}:host(${ot}){height:28px;width:28px}:host(${E}){height:36px;width:36px}:host(${Hs}){height:40px;width:40px}:host(${gc}){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${tr};stroke-width:1.5px}:host(${Tr}) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${Ji};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host(${Tr}) .indicator{stroke:${ba}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,yu=g`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,ku=Gs.compose({name:`${f.prefix}-spinner`,template:yu,styles:$u});ku.define(f.registry);class xu extends $t{}function wu(s={}){return g`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${ht(s.switch)}</slot></template>`}const Cu=wu({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),st=l.partial`:is([state--checked], :state(checked))`,Su=l`
|
|
473
473
|
${C("inline-flex")}
|
|
474
474
|
|
|
475
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${he};width:40px;height:20px;background-color:${bt};border:1px solid ${jt};border-radius:${at};cursor:pointer}:host(:hover){background:none;border-color:${je}}:host(:active){border-color:${qe}}:host(:disabled),:host([readonly]){border:1px solid ${qt};background-color:none;pointer:default}:host(${st}){background:${De};border-color:${De}}:host(${st}:hover){background:${Re};border-color:${Re}}:host(${st}:active){background:${Ve};border-color:${Ve}}:host(${st}:disabled){background:${Ne};border-color:${qt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${tt};transition-duration:${Cr};transition-timing-function:${Ms};transition-property:margin-inline-start}:host(${st}) .checked-indicator{background-color:${Bo};margin-inline-start:calc(100% - 14px)}:host(${st}:hover) .checked-indicator{background:${
|
|
476
|
-
:host{border-color:InactiveBorder}:host(${st}),:host(${st}:active),:host(${st}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${st}) .checked-indicator,:host(${st}:hover) .checked-indicator,:host(${st}:active) .checked-indicator{background-color:ButtonFace}`)),xu
|
|
475
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${he};width:40px;height:20px;background-color:${bt};border:1px solid ${jt};border-radius:${at};cursor:pointer}:host(:hover){background:none;border-color:${je}}:host(:active){border-color:${qe}}:host(:disabled),:host([readonly]){border:1px solid ${qt};background-color:none;pointer:default}:host(${st}){background:${De};border-color:${De}}:host(${st}:hover){background:${Re};border-color:${Re}}:host(${st}:active){background:${Ve};border-color:${Ve}}:host(${st}:disabled){background:${Ne};border-color:${qt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${tt};transition-duration:${Cr};transition-timing-function:${Ms};transition-property:margin-inline-start}:host(${st}) .checked-indicator{background-color:${Bo};margin-inline-start:calc(100% - 14px)}:host(${st}:hover) .checked-indicator{background:${oa}}:host(${st}:active) .checked-indicator{background:${sa}}:host(:hover) .checked-indicator{background-color:${Un}}:host(:active) .checked-indicator{background-color:${Xn}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${k}}:host(${st}:disabled) .checked-indicator{background:${k}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${St};outline:${de} solid ${St};box-shadow:${Lo},0 0 0 2px ${It}}`.withBehaviors(Z(l`
|
|
476
|
+
:host{border-color:InactiveBorder}:host(${st}),:host(${st}:active),:host(${st}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${st}) .checked-indicator,:host(${st}:hover) .checked-indicator,:host(${st}:active) .checked-indicator{background-color:ButtonFace}`)),Iu=xu.compose({name:`${f.prefix}-switch`,template:Cu,styles:Su});Iu.define(f.registry);class Pu extends x{}function Bu(){return g`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Tu=Bu(),zu=l`
|
|
477
477
|
${C("block")}
|
|
478
478
|
|
|
479
|
-
:host{box-sizing:border-box;padding:${Jt} ${Wt}}`,Pu
|
|
480
|
-
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}
|
|
479
|
+
:host{box-sizing:border-box;padding:${Jt} ${Wt}}`,Fu=Pu.compose({name:`${f.prefix}-tab-panel`,template:Tu,styles:zu});Fu.define(f.registry);var Ou=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,_u=(s,t,e,o)=>{for(var i=o>1?void 0:o?Au(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Ou(t,e,i),i};class Ws extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
|
|
480
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}_u([a({mode:"boolean"})],Ws.prototype,"disabled",2),Dt(Ws,Lt);function Mu(s={}){return g`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Nt(s)}<span class="tab-content"><slot></slot></span>${Ht(s)}</template>`}const Eu=Mu({}),Lu=l`
|
|
481
481
|
${C("inline-flex")}
|
|
482
482
|
|
|
483
|
-
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${M};font-family:${
|
|
484
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),
|
|
483
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${M};font-family:${v};font-size:${z};color:${Rt};fill:currentcolor;grid-row:1;padding:${Jt} ${Wt};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${A};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${M};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Ps};border-radius:${at};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Fo};border-radius:${at};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${k}}::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:${k};color:${k}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${mt};box-shadow:0 0 0 3px ${It};outline:1px solid ${Oo}}`.withBehaviors(Z(l`
|
|
484
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),Hu=Ws.compose({name:`${f.prefix}-tab`,template:Eu,styles:Lu});Hu.define(f.registry);const Nu={subtle:"subtle",transparent:"transparent"},ts=Q;var Du=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,be=(s,t,e,o)=>{for(var i=o>1?void 0:o?Ru(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Du(t,e,i),i};class no extends x{constructor(){super(...arguments),this.orientation=ts.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case xe:t.preventDefault(),this.adjustBackward(t);break;case we:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Ce:t.preventDefault(),this.adjustBackward(t);break;case ke:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case xo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ko:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(o=>o.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",o=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],p=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",p),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[o]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const o=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",o),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${$s()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${$s()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ts.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),o=e.indexOf(this.activetab),i=vs(0,e.length-1,o+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let o=0;for(o=this.activetab?e.indexOf(this.activetab)+1:1,o===e.length&&(o=0);o<e.length&&e.length>1;)if(this.isFocusableElement(e[o])){this.moveToTabByIndex(e,o);break}else{if(this.activetab&&o===e.indexOf(this.activetab))break;o+1>=e.length?o=0:o+=1}}adjustBackward(t){const e=this.tabs;let o=0;for(o=this.activetab?e.indexOf(this.activetab)-1:0,o=o<0?e.length-1:o;o>=0&&e.length>1;)if(this.isFocusableElement(e[o])){this.moveToTabByIndex(e,o);break}else o-1<0?o=e.length-1:o-=1}moveToTabByIndex(t,e){const o=t[e];this.activetab=o,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,o.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}be([a],no.prototype,"orientation",2),be([a],no.prototype,"activeid",2),be([$],no.prototype,"tabs",2),be([$],no.prototype,"tabpanels",2);class ao extends no{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=Nu.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===ts.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===ts.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,o=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:o.x-i.x,y:o.y-i.y,height:o.height,width:o.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
|
|
485
485
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=l`
|
|
486
|
-
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}be([a],ao.prototype,"appearance",2),be([a({mode:"boolean"})],ao.prototype,"disabled",2),be([a],ao.prototype,"size",2),Dt(ao,Lt);function
|
|
486
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}be([a],ao.prototype,"appearance",2),be([a({mode:"boolean"})],ao.prototype,"disabled",2),be([a],ao.prototype,"size",2),Dt(ao,Lt);function Vu(s={}){return g` ${Nt(s)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${rt("tabs")}></slot></div>${Ht(s)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${rt("tabpanels")}></slot></div>`}const ju=Vu({}),qu=l`
|
|
487
487
|
${C("grid")}
|
|
488
488
|
|
|
489
|
-
:host{box-sizing:border-box;font-family:${
|
|
489
|
+
:host{box-sizing:border-box;font-family:${v};font-size:${z};line-height:${M};color:${Rt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${k}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${k}}: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:${k}}.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:${xs};color:${Vi};fill:${qi}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${zo};fill:${zo};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${z};line-height:${M};padding:${Ue} ${ue}}:host([size='large']) ::slotted(fluent-tab){font-size:${lt};line-height:${vt};padding:${wr} ${Wt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Xl};transition-timing-function:${Ir}}:host ::slotted(fluent-tab)::after{height:${Zt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${Zt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${Zt};border-radius:${at};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${Zt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${Zt};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:${Zt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Ue};padding-bottom:${Ue}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Ho};padding-bottom:${Ho}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${U};padding-bottom:${U}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ue};left:${ue}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Wt};left:${Wt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Wt};left:${Wt}}: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:${Ue};bottom:${Ue}}: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:${U};bottom:${U}}: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:${xr};bottom:${xr}}`,Gu=ao.compose({name:`${f.prefix}-tabs`,template:ju,styles:qu});Gu.define(f.registry);const Wu={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Uu=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,O=(s,t,e,o)=>{for(var i=o>1?void 0:o?Ku(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Xu(t,e,i),i};class S extends x{constructor(){super(...arguments),this.type=Wu.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){this.isSameNode(t.target)&&this.control?.click()}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){this.control?.focus()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>Uu.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,o=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,o)}}}S.formAssociated=!0,O([a],S.prototype,"appearance",2),O([a],S.prototype,"autocomplete",2),O([a({mode:"boolean"})],S.prototype,"autofocus",2),O([a({attribute:"control-size"})],S.prototype,"controlSize",2),O([$],S.prototype,"defaultSlottedNodes",2),O([a],S.prototype,"dirname",2),O([a({mode:"boolean"})],S.prototype,"disabled",2),O([a({attribute:"form"})],S.prototype,"formAttribute",2),O([a({attribute:"value",mode:"fromView"})],S.prototype,"initialValue",2),O([a],S.prototype,"list",2),O([a({converter:nt})],S.prototype,"maxlength",2),O([a({converter:nt})],S.prototype,"minlength",2),O([a({mode:"boolean"})],S.prototype,"multiple",2),O([a],S.prototype,"name",2),O([a],S.prototype,"pattern",2),O([a],S.prototype,"placeholder",2),O([a({attribute:"readonly",mode:"boolean"})],S.prototype,"readOnly",2),O([a({mode:"boolean"})],S.prototype,"required",2),O([a({converter:nt})],S.prototype,"size",2),O([a({converter:{fromView:s=>typeof s=="string"?["true",""].includes(s.trim().toLowerCase()):null,toView:s=>s.toString()}})],S.prototype,"spellcheck",2),O([a],S.prototype,"type",2),O([$],S.prototype,"controlLabel",2),Dt(S,Lt);const Yu=l`
|
|
490
490
|
${C("block")}
|
|
491
491
|
|
|
492
|
-
:host{font-family:${
|
|
492
|
+
:host{font-family:${v};font-size:${z};font-weight:${F};line-height:${M};max-width:400px}.label{display:flex;color:${A};padding-bottom:${Gl};flex-shrink:0;padding-inline-end:${Gt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${Y} solid ${Ie};border-bottom-color:${jt};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${he};padding:0 ${Wt};position:relative;width:100%}:has(.control:user-invalid){border-color:${ya}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${Ps};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Wl};transition-delay:${As}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${T};background:${bt};font-family:${v};font-weight:${F};font-size:${z};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Kn}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${tt};font-size:${Pe}}:host ::slotted([slot='start']){padding-right:${he}}:host ::slotted([slot='end']){padding-left:${he};gap:${Gt}}:host(:hover) .root{border-color:${Fo};border-bottom-color:${je}}:host(:active) .root{border-color:${Is}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Cr};transition-delay:${_s}}:host(:focus-within:active) .root:after{border-bottom-color:${Ts}}:host(${R}:focus-within) .root{border:${Y} solid ${Ie}}:host(:focus-within) .control{color:${A}}:host([disabled]) .root{background:${bt};border:${Y} solid ${qt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}::selection{color:${Bo};background-color:${la}}:host(${ot}) .control{font-size:${W};font-weight:${F};line-height:${ct}}:host(${ot}) .root{height:24px;gap:${he};padding:0 ${ue}}:host(${ot}) ::slotted([slot='start']),:host(${ot}) ::slotted([slot='end']){font-size:${lt}}:host(${E}) .control{font-size:${lt};font-weight:${F};line-height:${vt}}:host(${E}) .root{height:40px;gap:${Pt};padding:0 ${Jt}}:host(${E}) ::slotted([slot='start']),:host(${E}) ::slotted([slot='end']){font-size:${Ao}}:host(${Ye}) .root{background:${bt};border:0;border-radius:0;border-bottom:${Y} solid ${jt}}:host(${Ye}:hover) .root{border-bottom-color:${je}}:host(${Ye}:active) .root{border-bottom-color:${qe}}:host(${Ye}:focus-within) .root{border:0;border-bottom-color:${qe}}:host(${Ye}[disabled]) .root{border-bottom-color:${qt}}:host(${Ro}) .root,:host(${Vo}) .root{border:${Y} solid ${St};box-shadow:${$r}}:host(${Ro}) .root{background:${_}}:host(${Vo}) .root{background:${Ki}}:host(${Ro}:hover) .root,:host(${Vo}:hover) .root{border-color:${er}}:host(${Ro}:active) .root,:host(${Vo}:active) .root{border-color:${er};background:${Ki}}`;function Qu(s={}){return g`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${Et("controlLabel")}><slot ${rt({property:"defaultSlottedNodes",filter:Ri})}></slot></label><div class="root" part="root">${Nt(s)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${Et("control")} />${Ht(s)}</div></template>`}const Zu=Qu(),Ju=S.compose({name:`${f.prefix}-text-input`,template:Zu,styles:Yu,shadowOptions:{delegatesFocus:!0}});Ju.define(f.registry);var tp=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,_t=(s,t,e,o)=>{for(var i=o>1?void 0:o?ep(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&tp(t,e,i),i};class kt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){t&&d(this.elementInternals,`size-${t}`,!1),e&&d(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}weightChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}alignChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":d(this.elementInternals,e,!!this[e]);break}}}_t([a({mode:"boolean"})],kt.prototype,"nowrap",2),_t([a({mode:"boolean"})],kt.prototype,"truncate",2),_t([a({mode:"boolean"})],kt.prototype,"italic",2),_t([a({mode:"boolean"})],kt.prototype,"underline",2),_t([a({mode:"boolean"})],kt.prototype,"strikethrough",2),_t([a({mode:"boolean"})],kt.prototype,"block",2),_t([a],kt.prototype,"size",2),_t([a],kt.prototype,"font",2),_t([a],kt.prototype,"weight",2),_t([a],kt.prototype,"align",2);const Jr=l.partial`:is([state--nowrap], :state(nowrap))`,tn=l.partial`:is([state--truncate], :state(truncate))`,en=l.partial`:is([state--underline], :state(underline))`,on=l.partial`:is([state--strikethrough], :state(strikethrough))`,op=l`
|
|
493
493
|
${C("inline")}
|
|
494
494
|
|
|
495
|
-
:host{contain:content
|
|
495
|
+
:host{contain:content;font-family:${v};font-size:${z};line-height:${M};font-weight:${F};text-align:start}:host(${Jr}),:host(${Jr}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${tn}),:host(${tn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${en}){text-decoration-line:underline}:host(${on}){text-decoration-line:line-through}:host(${en}${on}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${We};line-height:${Mo}}:host(:is([state--size-200],:state(size-200))){font-size:${W};line-height:${ct}}:host(:is([state--size-400],:state(size-400))){font-size:${lt};line-height:${vt}}:host(:is([state--size-500],:state(size-500))){font-size:${Pe};line-height:${Eo}}:host(:is([state--size-600],:state(size-600))){font-size:${Ao};line-height:${fr}}:host(:is([state--size-700],:state(size-700))){font-size:${dr};line-height:${gr}}:host(:is([state--size-800],:state(size-800))){font-size:${hr};line-height:${br}}:host(:is([state--size-900],:state(size-900))){font-size:${ur};line-height:${mr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${pr};line-height:${vr}}:host(:is([state--monospace],:state(monospace))){font-family:${Ll}}:host(:is([state--numeric],:state(numeric))){font-family:${Hl}}:host(:is([state--medium],:state(medium))){font-weight:${Nl}}:host(:is([state--semibold],:state(semibold))){font-weight:${N}}:host(:is([state--bold],:state(bold))){font-weight:${_o}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,sp=g`<slot></slot>`,ip=kt.compose({name:`${f.prefix}-text`,template:sp,styles:op});ip.define(f.registry);var rp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,sn=(s,t,e,o)=>{for(var i=o>1?void 0:o?np(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&rp(t,e,i),i};class Us extends B{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,d(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}sn([a({mode:"boolean"})],Us.prototype,"pressed",2),sn([a({mode:"boolean"})],Us.prototype,"mixed",2);const ap=l`
|
|
496
496
|
${Xo}
|
|
497
497
|
|
|
498
|
-
:host(${P}){border-color:${Ie};background-color:${Xi};color:${A};border-width:${Y}}:host(${P}:hover){border-color:${Fo};background-color:${ks}}:host(${P}:active){border-color:${Is};background-color:${Ui}}:host(${P}${et}){border-color:transparent;background-color:${
|
|
499
|
-
:host(${P}),:host(${P}${et}),:host(${P}${w}),:host(${P}${R}),:host(${P}${V}){background:SelectedItem;color:SelectedItemText}`)),
|
|
498
|
+
:host(${P}){border-color:${Ie};background-color:${Xi};color:${A};border-width:${Y}}:host(${P}:hover){border-color:${Fo};background-color:${ks}}:host(${P}:active){border-color:${Is};background-color:${Ui}}:host(${P}${et}){border-color:transparent;background-color:${pa};color:${Vt}}:host(${P}${et}:hover){background-color:${Yi}}:host(${P}${et}:active){background-color:${Qi}}:host(${P}${w}){border-color:transparent;background-color:${da};color:${Gn}}:host(${P}${w}:hover){background-color:${xs};color:${Co}}:host(${P}${w}:active){background-color:${zo};color:${So}}:host(${P}${R}),:host(${P}${V}){background-color:${ha}}:host(${P}${R}:hover),:host(${P}${V}:hover){background-color:${ws}}:host(${P}${R}:active),:host(${P}${V}:active){background-color:${Cs}}:host(${P}${V}){border-color:transparent;color:${Wn}}:host(${P}${V}:hover){color:${Io}}:host(${P}${V}:active){color:${Po}}`.withBehaviors(Z(l`
|
|
499
|
+
:host(${P}),:host(${P}${et}),:host(${P}${w}),:host(${P}${R}),:host(${P}${V}){background:SelectedItem;color:SelectedItemText}`)),lp=Ds(),cp=Us.compose({name:`${f.prefix}-toggle-button`,template:lp,styles:ap});cp.define(f.registry);
|