@fluentui/web-components 1.6.2 → 1.6.3

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.
@@ -1,4 +1,4 @@
1
- const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e=Object.freeze([]),i=[],o=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let s=o;const n=[];function r(){if(n.length)throw n.shift()}function a(t){try{t.call()}catch(t){n.push(t),setTimeout(r,0)}}const l="fast-"+Math.random().toString(36).substring(2,8),c=l+"{",h="}"+l,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(s!==o)throw new Error("The HTML policy can only be set once.");s=t},createHTML:t=>s.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(l+":","")),createInterpolationPlaceholder:t=>`${c}${t}${h}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate(t){i.length<1&&window.requestAnimationFrame(d.processUpdates),i.push(t)},processUpdates(){let t=0;for(;t<i.length;)if(a(i[t]),t++,t>1024){for(let e=0,o=i.length-t;e<o;e++)i[e]=i[e+t];i.length-=t,t=0}i.length=0},nextUpdate:()=>new Promise(t=>{d.queueUpdate(t)}),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function u(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function p(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function g(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}function f(t){return-1!==this.spillover.indexOf(t)}class b{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=u,this.unsubscribe=p,this.notify=g,this.has=f,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,i=this.sub2,o=this.source;void 0!==e&&e.handleChange(o,t),void 0!==i&&i.handleChange(o,t)}}class m{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new b(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new b(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const v=/(:|&&|\|\||if)/,y=new WeakMap,x=new WeakMap;let $=void 0,w=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};class k{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==$&&$.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),I(t).notify(this.name)}}}const C=Object.freeze({setArrayObserverFactory(t){w=t},getNotifier(t){let e=t.$fastController||y.get(t);return void 0===e&&(Array.isArray(t)?e=w(t):y.set(t,e=new m(t))),e},track(t,e){void 0!==$&&$.watch(t,e)},trackVolatile(){void 0!==$&&($.needsRefresh=!0)},notify(t,e){I(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new k(e)),this.getAccessors(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors(t){let e=x.get(t);if(void 0===e){let i=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==i;)e=x.get(i),i=Reflect.getPrototypeOf(i);e=void 0===e?[]:e.slice(0),x.set(t,e)}return e},binding(t,e,i=this.isVolatileBinding(t)){return new O(t,e,i)},isVolatileBinding:t=>v.test(t.toString())}),I=C.getNotifier;C.trackVolatile;const T=d.queueUpdate;function F(t,e){C.defineProperty(t,e)}let D=null;function S(t){D=t}class E{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return D}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}}C.defineProperty(E.prototype,"index"),C.defineProperty(E.prototype,"length");const R=Object.seal(new E);class O extends b{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=$;$=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return $=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=I(t),s=null===i?this.first:{};if(s.propertySource=t,s.propertyName=e,s.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;$=void 0,e=i.propertySource[i.propertyName],$=this,t===e&&(this.needsRefresh=!0)}i.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,T(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}class L{constructor(){this.targetIndex=0}}class V extends L{constructor(){super(...arguments),this.createPlaceholder=d.createInterpolationPlaceholder}}class A extends L{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return d.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function P(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=C.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function H(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function z(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function M(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function N(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function B(t){d.setAttribute(this.target,this.targetName,t)}function j(t){d.setBooleanAttribute(this.target,this.targetName,t)}function U(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function q(t){this.target[this.targetName]=t}function _(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class G extends V{constructor(t){super(),this.binding=t,this.bind=P,this.unbind=z,this.updateTarget=B,this.isBindingVolatile=C.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=q,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>d.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=j;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=H,this.unbind=N;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=_)}}targetAtContent(){this.updateTarget=U,this.unbind=M}createBehavior(t){return new W(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class W{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){S(t);const e=this.binding(this.source,this.context);S(null),!0!==e&&t.preventDefault()}}let K=null;class X{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){K=this}static borrow(t){const e=K||new X;return e.directives=t,e.reset(),K=null,e}}function Y(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new G((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const Q=h.length;function Z(t,e){const i=e.split(c);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(h);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+Q)}""!==r&&o.push(r)}return o}function J(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=Z(t,a);let c=null;null===l?i&&(c=new G(()=>a),c.targetName=r.name):c=Y(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function tt(t,e,i){const o=Z(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const et=document.createRange();class it{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){et.setStartBefore(t[0].firstChild),et.setEndAfter(t[t.length-1].lastChild),et.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class ot{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=d.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=X.borrow(e);J(o,t,!0);const s=o.behaviorFactories;o.reset();const n=d.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:J(o,r);break;case 3:tt(o,r,n);break;case 8:d.isMarker(r)&&o.addFactory(e[d.extractDirectiveIndexFromMarker(r)])}let a=0;(d.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=d.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new it(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,R),o.appendTo(e),o}}const st=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function nt(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof ot){const t=r;r=()=>t}if("function"==typeof r&&(r=new G(r)),r instanceof V){const t=st.exec(n);null!==t&&(r.targetName=t[2])}r instanceof L?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new ot(o,i)}class rt{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function at(t){return t.map(t=>t instanceof rt?at(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function lt(t){return t.map(t=>t instanceof rt?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}rt.create=(()=>{if(d.supportsAdoptedStyleSheets){const t=new Map;return e=>new ct(e,t)}return t=>new dt(t)})();class ct extends rt{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=lt(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=at(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let ht=0;class dt extends rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=lt(t),this.styleSheets=at(t),this.styleClass="fast-style-class-"+ ++ht}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const ut={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},pt={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class gt{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=ut)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return C.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||d.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;d.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":d.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new gt(t,o)):i.push(new gt(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function ft(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const bt={mode:"open"},mt={},vt=new Map;class yt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=gt.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?bt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},bt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?mt:Object.assign(Object.assign({},mt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?rt.create(e.styles):e.styles instanceof rt?e.styles:rt.create([e.styles])}define(t=customElements){const e=this.type;if(!this.isDefined){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)C.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0}),vt.set(e,this),this.isDefined=!0}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}static forType(t){return vt.get(t)}}const xt=new WeakMap,$t={bubbles:!0,composed:!0,cancelable:!0};function wt(t){return t.shadowRoot||xt.get(t)||null}class kt extends m{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&xt.set(t,e)}const o=C.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return C.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,C.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,R)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,R);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,R);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},$t),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=wt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=yt.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new kt(t,i)}}function Ct(t){return class extends t{constructor(){super(),kt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const It=Object.assign(Ct(HTMLElement),{from:t=>Ct(t),define:(t,e)=>new yt(t,e).define().type});class Tt{createCSS(){return""}createBehavior(){}}function Ft(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof Tt){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof rt||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Dt(t,...e){const{styles:i,behaviors:o}=Ft(t,e),s=rt.create(i);return o.length&&s.withBehaviors(...o),s}class St extends Tt{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=rt.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function Et(t,...e){const{styles:i,behaviors:o}=Ft(t,e);return new St(i,o)}function Rt(t,e,i){return{index:t,removed:e,addedCount:i}}function Ot(t,i,o,s,n,r){let a=0,l=0;const c=Math.min(o-i,r-n);if(0===i&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),o===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(o-=l)-(i+=a)==0&&r-n==0)return e;if(i===o){const t=Rt(i,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[Rt(i,[],o-i)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,i,o,s,n,r)),d=[];let u=void 0,p=i,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=Rt(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=Rt(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=Rt(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const Lt=Array.prototype.push;function Vt(t,e,i,o){const s=Rt(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);Lt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);Lt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function At(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];Vt(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(Ot(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let Pt=!1;function Ht(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class zt extends b{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,t.$fastController=this}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?At(this.source,t):Ot(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Mt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Nt(t){return new A("fast-ref",Mt,t)}function Bt(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}function jt(t,e,i,o){t.bind(e[i],o)}function Ut(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}Object.freeze({positioning:!1});class qt{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=jt,this.itemsBindingObserver=C.binding(e,this,i),this.templateBindingObserver=C.binding(o,this,s),n.positioning&&(this.bindView=Ut)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=e);const i=this.itemsObserver,o=this.itemsObserver=C.getNotifier(this.items),s=i!==o;s&&null!==i&&i.unsubscribe(this),(s||t)&&o.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e<s;++e){const s=t[e],r=s.removed;o.push(...i.splice(s.index+n,r.length)),n-=s.addedCount}const r=this.items,a=this.template;for(let n=0,l=t.length;n<l;++n){const l=t[n];let c=l.index;const h=c+l.addedCount;for(;c<h;++c){const t=i[c],n=t?t.firstChild:this.location,l=o.length>0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;t<e;++t)o[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if((0===r||t)&&(it.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class _t extends L{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=d.createBlockPlaceholder,function(){if(Pt)return;Pt=!0,C.setArrayObserverFactory(t=>new zt(t));const t=Array.prototype,e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(Rt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Rt(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(Rt(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Rt(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Rt(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=C.isVolatileBinding(t),this.isTemplateBindingVolatile=C.isVolatileBinding(e)}createBehavior(t){return new qt(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Gt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Wt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=C.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(e),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Kt extends Wt{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Xt(t){return"string"==typeof t&&(t={property:t}),new A("fast-slotted",Kt,t)}class Yt extends Wt{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Qt(t){return"string"==typeof t&&(t={property:t}),new A("fast-children",Yt,t)}class Zt{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Jt=(t,e)=>nt`<span part="end" ${Nt("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${Nt("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,te=(t,e)=>nt`<span part="start" ${Nt("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${Nt("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`;nt`<span part="end" ${Nt("endContainer")}><slot name="end" ${Nt("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,nt`<span part="start" ${Nt("startContainer")}><slot name="start" ${Nt("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
1
+ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e=Object.freeze([]),i=[],o=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let s=o;const n=[];function r(){if(n.length)throw n.shift()}function a(t){try{t.call()}catch(t){n.push(t),setTimeout(r,0)}}const l="fast-"+Math.random().toString(36).substring(2,8),c=l+"{",h="}"+l,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(s!==o)throw new Error("The HTML policy can only be set once.");s=t},createHTML:t=>s.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(l+":","")),createInterpolationPlaceholder:t=>`${c}${t}${h}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate(t){i.length<1&&window.requestAnimationFrame(d.processUpdates),i.push(t)},processUpdates(){let t=0;for(;t<i.length;)if(a(i[t]),t++,t>1024){for(let e=0,o=i.length-t;e<o;e++)i[e]=i[e+t];i.length-=t,t=0}i.length=0},nextUpdate:()=>new Promise(t=>{d.queueUpdate(t)}),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function u(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function p(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function g(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}function f(t){return-1!==this.spillover.indexOf(t)}class b{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=u,this.unsubscribe=p,this.notify=g,this.has=f,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,i=this.sub2,o=this.source;void 0!==e&&e.handleChange(o,t),void 0!==i&&i.handleChange(o,t)}}class m{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new b(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new b(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const v=/(:|&&|\|\||if)/,y=new WeakMap,x=new WeakMap;let $=void 0,w=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};class k{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==$&&$.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),I(t).notify(this.name)}}}const C=Object.freeze({setArrayObserverFactory(t){w=t},getNotifier(t){let e=t.$fastController||y.get(t);return void 0===e&&(Array.isArray(t)?e=w(t):y.set(t,e=new m(t))),e},track(t,e){void 0!==$&&$.watch(t,e)},trackVolatile(){void 0!==$&&($.needsRefresh=!0)},notify(t,e){I(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new k(e)),this.getAccessors(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors(t){let e=x.get(t);if(void 0===e){let i=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==i;)e=x.get(i),i=Reflect.getPrototypeOf(i);e=void 0===e?[]:e.slice(0),x.set(t,e)}return e},binding(t,e,i=this.isVolatileBinding(t)){return new O(t,e,i)},isVolatileBinding:t=>v.test(t.toString())}),I=C.getNotifier;C.trackVolatile;const T=d.queueUpdate;function F(t,e){C.defineProperty(t,e)}let D=null;function R(t){D=t}class S{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return D}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}}C.defineProperty(S.prototype,"index"),C.defineProperty(S.prototype,"length");const E=Object.seal(new S);class O extends b{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=$;$=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return $=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=I(t),s=null===i?this.first:{};if(s.propertySource=t,s.propertyName=e,s.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;$=void 0,e=i.propertySource[i.propertyName],$=this,t===e&&(this.needsRefresh=!0)}i.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,T(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}class L{constructor(){this.targetIndex=0}}class V extends L{constructor(){super(...arguments),this.createPlaceholder=d.createInterpolationPlaceholder}}class A extends L{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return d.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function P(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=C.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function H(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function z(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function M(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function N(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function B(t){d.setAttribute(this.target,this.targetName,t)}function j(t){d.setBooleanAttribute(this.target,this.targetName,t)}function U(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function q(t){this.target[this.targetName]=t}function _(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class G extends V{constructor(t){super(),this.binding=t,this.bind=P,this.unbind=z,this.updateTarget=B,this.isBindingVolatile=C.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=q,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>d.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=j;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=H,this.unbind=N;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=_)}}targetAtContent(){this.updateTarget=U,this.unbind=M}createBehavior(t){return new W(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class W{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){R(t);const e=this.binding(this.source,this.context);R(null),!0!==e&&t.preventDefault()}}let K=null;class X{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){K=this}static borrow(t){const e=K||new X;return e.directives=t,e.reset(),K=null,e}}function Y(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new G((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const Q=h.length;function Z(t,e){const i=e.split(c);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(h);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+Q)}""!==r&&o.push(r)}return o}function J(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=Z(t,a);let c=null;null===l?i&&(c=new G(()=>a),c.targetName=r.name):c=Y(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function tt(t,e,i){const o=Z(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const et=document.createRange();class it{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){et.setStartBefore(t[0].firstChild),et.setEndAfter(t[t.length-1].lastChild),et.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class ot{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=d.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=X.borrow(e);J(o,t,!0);const s=o.behaviorFactories;o.reset();const n=d.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:J(o,r);break;case 3:tt(o,r,n);break;case 8:d.isMarker(r)&&o.addFactory(e[d.extractDirectiveIndexFromMarker(r)])}let a=0;(d.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=d.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new it(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,E),o.appendTo(e),o}}const st=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function nt(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof ot){const t=r;r=()=>t}if("function"==typeof r&&(r=new G(r)),r instanceof V){const t=st.exec(n);null!==t&&(r.targetName=t[2])}r instanceof L?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new ot(o,i)}class rt{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function at(t){return t.map(t=>t instanceof rt?at(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function lt(t){return t.map(t=>t instanceof rt?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}rt.create=(()=>{if(d.supportsAdoptedStyleSheets){const t=new Map;return e=>new ct(e,t)}return t=>new dt(t)})();class ct extends rt{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=lt(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=at(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let ht=0;class dt extends rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=lt(t),this.styleSheets=at(t),this.styleClass="fast-style-class-"+ ++ht}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const ut={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},pt={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class gt{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=ut)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return C.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||d.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;d.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":d.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new gt(t,o)):i.push(new gt(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function ft(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const bt={mode:"open"},mt={},vt=new Map;class yt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=gt.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?bt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},bt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?mt:Object.assign(Object.assign({},mt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?rt.create(e.styles):e.styles instanceof rt?e.styles:rt.create([e.styles])}define(t=customElements){const e=this.type;if(!this.isDefined){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)C.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0}),vt.set(e,this),this.isDefined=!0}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}static forType(t){return vt.get(t)}}const xt=new WeakMap,$t={bubbles:!0,composed:!0,cancelable:!0};function wt(t){return t.shadowRoot||xt.get(t)||null}class kt extends m{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&xt.set(t,e)}const o=C.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return C.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,C.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,E)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,E);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,E);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},$t),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=wt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=yt.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new kt(t,i)}}function Ct(t){return class extends t{constructor(){super(),kt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const It=Object.assign(Ct(HTMLElement),{from:t=>Ct(t),define:(t,e)=>new yt(t,e).define().type});class Tt{createCSS(){return""}createBehavior(){}}function Ft(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof Tt){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof rt||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Dt(t,...e){const{styles:i,behaviors:o}=Ft(t,e),s=rt.create(i);return o.length&&s.withBehaviors(...o),s}class Rt extends Tt{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=rt.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function St(t,...e){const{styles:i,behaviors:o}=Ft(t,e);return new Rt(i,o)}function Et(t,e,i){return{index:t,removed:e,addedCount:i}}function Ot(t,i,o,s,n,r){let a=0,l=0;const c=Math.min(o-i,r-n);if(0===i&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),o===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(o-=l)-(i+=a)==0&&r-n==0)return e;if(i===o){const t=Et(i,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[Et(i,[],o-i)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,i,o,s,n,r)),d=[];let u=void 0,p=i,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=Et(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=Et(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=Et(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const Lt=Array.prototype.push;function Vt(t,e,i,o){const s=Et(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);Lt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);Lt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function At(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];Vt(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(Ot(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let Pt=!1;function Ht(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class zt extends b{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,t.$fastController=this}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?At(this.source,t):Ot(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Mt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Nt(t){return new A("fast-ref",Mt,t)}function Bt(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}function jt(t,e,i,o){t.bind(e[i],o)}function Ut(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}Object.freeze({positioning:!1});class qt{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=jt,this.itemsBindingObserver=C.binding(e,this,i),this.templateBindingObserver=C.binding(o,this,s),n.positioning&&(this.bindView=Ut)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=e);const i=this.itemsObserver,o=this.itemsObserver=C.getNotifier(this.items),s=i!==o;s&&null!==i&&i.unsubscribe(this),(s||t)&&o.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e<s;++e){const s=t[e],r=s.removed;o.push(...i.splice(s.index+n,r.length)),n-=s.addedCount}const r=this.items,a=this.template;for(let n=0,l=t.length;n<l;++n){const l=t[n];let c=l.index;const h=c+l.addedCount;for(;c<h;++c){const t=i[c],n=t?t.firstChild:this.location,l=o.length>0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;t<e;++t)o[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if((0===r||t)&&(it.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class _t extends L{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=d.createBlockPlaceholder,function(){if(Pt)return;Pt=!0,C.setArrayObserverFactory(t=>new zt(t));const t=Array.prototype,e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(Et(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Et(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(Et(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Et(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Et(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=C.isVolatileBinding(t),this.isTemplateBindingVolatile=C.isVolatileBinding(e)}createBehavior(t){return new qt(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Gt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Wt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=C.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(e),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Kt extends Wt{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Xt(t){return"string"==typeof t&&(t={property:t}),new A("fast-slotted",Kt,t)}class Yt extends Wt{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Qt(t){return"string"==typeof t&&(t={property:t}),new A("fast-children",Yt,t)}class Zt{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Jt=(t,e)=>nt`<span part="end" ${Nt("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${Nt("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,te=(t,e)=>nt`<span part="start" ${Nt("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${Nt("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`;nt`<span part="end" ${Nt("endContainer")}><slot name="end" ${Nt("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,nt`<span part="start" ${Nt("startContainer")}><slot name="start" ${Nt("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,15 +13,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- function ee(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const ie=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=ie.get(i);void 0===o&&ie.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=ie.get(e);if(void 0!==i)return i.get(t)});class oe{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Ie(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new pe(o,t,e))}}function se(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],Le(s)||(e[s]=t[s]);return e}const ne=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new pe(t,1,t),transient:t=>new pe(t,2,t)}),re=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:ne.singleton})}),ae=new Map;function le(t){return e=>Reflect.getOwnMetadata(t,e)}let ce=null;const he=Object.freeze({createContainer:t=>new ke(null,Object.assign({},re.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:he.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent($e,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||he.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new ke(t,Object.assign({},re.default,e,{parentLocator:he.findParentContainer})):ce||(ce=new ke(null,Object.assign({},re.default,e,{parentLocator:()=>null}))),getDesignParamtypes:le("design:paramtypes"),getAnnotationParamtypes:le("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=ae.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=he.getDesignParamtypes(t),o=he.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?se(he.getDependencies(i)):[]}else e=se(o);else if(void 0===o)e=se(i);else{e=se(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],Le(r)||(e[r]=o[r])}}else e=se(i);ae.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?he.findResponsibleContainer(this):he.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof It){const o=this.$fastController,n=()=>{he.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||Se,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)he.defineProperty(t,e,n,s);else{he.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new oe(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=he.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)he.defineProperty(e,i,t[0]);else{const i=o?he.getOrCreateAnnotationParamTypes(o.value):he.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return Te.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=ue)=>(t.register=function(e){return Te.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),de=he.createInterface("Container");he.inject;const ue={scoped:!1};class pe{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function ge(t){return this.get(t)}function fe(t,e){return e(t)}class be{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(ge,t)):new this.Type(...this.dependencies.map(ge,t),...e),null==this.transformers?i:this.transformers.reduce(fe,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const me={$isResolver:!0,resolve:(t,e)=>e};function ve(t){return"function"==typeof t.register}function ye(t){return function(t){return ve(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const xe=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),$e="__DI_LOCATE_PARENT__",we=new Map;class ke{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(de,me),t instanceof Node&&t.addEventListener($e,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Ee(e))if(ve(e))e.register(this,r);else if(void 0!==e.prototype)Te.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],Ee(o)&&(ve(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){Fe(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof pe&&4===o.strategy?o.state.push(e):i.set(t,new pe(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(Fe(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=ye(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(Fe(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=ye(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,i=!1){Fe(t);const o=this;let s,n=o;if(i){let i=e;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(i=i.concat(De(s,n,o))),n=n.parent;return i}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return De(s,n,o);if(n=n.parent,null==n)return e}return e}getFactory(t){let e=we.get(t);if(void 0===e){if(Re(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");we.set(t,e=new be(t,he.getDependencies(t)))}return e}registerFactory(t,e){we.set(t,e)}createChild(t){return new ke(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(xe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ve(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const Ce=new WeakMap;function Ie(t){return function(e,i,o){if(Ce.has(o))return Ce.get(o);const s=t(e,i,o);return Ce.set(o,s),s}}const Te=Object.freeze({instance:(t,e)=>new pe(t,0,e),singleton:(t,e)=>new pe(t,1,e),transient:(t,e)=>new pe(t,2,e),callback:(t,e)=>new pe(t,3,e),cachedCallback:(t,e)=>new pe(t,3,Ie(e)),aliasTo:(t,e)=>new pe(e,5,t)});function Fe(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function De(t,e,i){if(t instanceof pe&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const Se="(anonymous)";function Ee(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Re=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),Oe={};function Le(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Oe[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Oe[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return Oe[t]=!1;return Oe[t]=!0}default:return!1}}function Ve(t){return t.toLowerCase()+":presentation"}const Ae=new Map,Pe=Object.freeze({define(t,e,i){const o=Ve(t);void 0===Ae.get(o)?Ae.set(o,e):Ae.set(o,!1),i.register(Te.instance(o,e))},forTag(t,e){const i=Ve(t),o=Ae.get(i);if(!1===o){return he.findResponsibleContainer(e).get(i)}return o||null}});class He{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?rt.create(e):e instanceof rt?e:rt.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class ze extends It{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Pe.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Ne(this===ze?class extends ze{}:this,t,e)}}function Me(t,e,i){return"function"==typeof t?t(e,i):t}ee([F],ze.prototype,"template",void 0),ee([F],ze.prototype,"styles",void 0);class Ne{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new He(Me(i.template,t,i),Me(i.styles,t,i));t.definePresentation(e);let s=Me(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Me(i.elementOptions,t,i),shadowOptions:s,attributes:Me(i.attributes,t,i)})}})}}function Be(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class je extends ze{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}ee([ft({attribute:"heading-level",mode:"fromView",converter:pt})],je.prototype,"headinglevel",void 0),ee([ft({mode:"boolean"})],je.prototype,"expanded",void 0),ee([ft],je.prototype,"id",void 0),Be(je,Zt);var Ue;function qe(...t){return t.every(t=>t instanceof HTMLElement)}let _e;!function(t){t.horizontal="horizontal",t.vertical="vertical"}(Ue||(Ue={}));var Ge;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Ge||(Ge={}));const We={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var Ke;function Xe(t,e,i){return i<t?e:i>e?t:i}function Ye(t,e,i){return Math.min(Math.max(i,t),e)}!function(t){t.ltr="ltr",t.rtl="rtl"}(Ke||(Ke={}));let Qe=0;function Ze(t=""){return`${t}${Qe++}`}var Je;!function(t){t.single="single",t.multi="multi"}(Je||(Je={}));class ti extends ze{constructor(){super(...arguments),this.expandmode=Je.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof je&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=t.target.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Je.single}adjust(t){this.activeItemIndex=Xe(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof je&&t.expandbutton.focus()}}ee([ft({attribute:"expand-mode"})],ti.prototype,"expandmode",void 0),ee([F],ti.prototype,"accordionItems",void 0);const ei=(t,e)=>nt`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")}>${te(0,e)}<span class="content" part="content"><slot ${Xt("defaultSlottedContent")}></slot></span>${Jt(0,e)}</a>`;class ii{}ee([ft({attribute:"aria-atomic",mode:"fromView"})],ii.prototype,"ariaAtomic",void 0),ee([ft({attribute:"aria-busy",mode:"fromView"})],ii.prototype,"ariaBusy",void 0),ee([ft({attribute:"aria-controls",mode:"fromView"})],ii.prototype,"ariaControls",void 0),ee([ft({attribute:"aria-current",mode:"fromView"})],ii.prototype,"ariaCurrent",void 0),ee([ft({attribute:"aria-describedby",mode:"fromView"})],ii.prototype,"ariaDescribedby",void 0),ee([ft({attribute:"aria-details",mode:"fromView"})],ii.prototype,"ariaDetails",void 0),ee([ft({attribute:"aria-disabled",mode:"fromView"})],ii.prototype,"ariaDisabled",void 0),ee([ft({attribute:"aria-errormessage",mode:"fromView"})],ii.prototype,"ariaErrormessage",void 0),ee([ft({attribute:"aria-flowto",mode:"fromView"})],ii.prototype,"ariaFlowto",void 0),ee([ft({attribute:"aria-haspopup",mode:"fromView"})],ii.prototype,"ariaHaspopup",void 0),ee([ft({attribute:"aria-hidden",mode:"fromView"})],ii.prototype,"ariaHidden",void 0),ee([ft({attribute:"aria-invalid",mode:"fromView"})],ii.prototype,"ariaInvalid",void 0),ee([ft({attribute:"aria-keyshortcuts",mode:"fromView"})],ii.prototype,"ariaKeyshortcuts",void 0),ee([ft({attribute:"aria-label",mode:"fromView"})],ii.prototype,"ariaLabel",void 0),ee([ft({attribute:"aria-labelledby",mode:"fromView"})],ii.prototype,"ariaLabelledby",void 0),ee([ft({attribute:"aria-live",mode:"fromView"})],ii.prototype,"ariaLive",void 0),ee([ft({attribute:"aria-owns",mode:"fromView"})],ii.prototype,"ariaOwns",void 0),ee([ft({attribute:"aria-relevant",mode:"fromView"})],ii.prototype,"ariaRelevant",void 0),ee([ft({attribute:"aria-roledescription",mode:"fromView"})],ii.prototype,"ariaRoledescription",void 0);class oi extends ze{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}ee([ft],oi.prototype,"download",void 0),ee([ft],oi.prototype,"href",void 0),ee([ft],oi.prototype,"hreflang",void 0),ee([ft],oi.prototype,"ping",void 0),ee([ft],oi.prototype,"referrerpolicy",void 0),ee([ft],oi.prototype,"rel",void 0),ee([ft],oi.prototype,"target",void 0),ee([ft],oi.prototype,"type",void 0),ee([F],oi.prototype,"defaultSlottedContent",void 0);class si{}ee([ft({attribute:"aria-expanded",mode:"fromView"})],si.prototype,"ariaExpanded",void 0),Be(si,ii),Be(oi,Zt,si);const ni=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?Ke.rtl:Ke.ltr};class ri extends ze{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Ke.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(ri.intersectionService.requestPosition(this,this.handleIntersection),ri.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ri.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,ri.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&ri.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ri.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=ni(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=ni(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===Ke.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left))}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top))}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),d.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}ri.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},ee([ft],ri.prototype,"anchor",void 0),ee([ft],ri.prototype,"viewport",void 0),ee([ft({attribute:"horizontal-positioning-mode"})],ri.prototype,"horizontalPositioningMode",void 0),ee([ft({attribute:"horizontal-default-position"})],ri.prototype,"horizontalDefaultPosition",void 0),ee([ft({attribute:"horizontal-viewport-lock",mode:"boolean"})],ri.prototype,"horizontalViewportLock",void 0),ee([ft({attribute:"horizontal-inset",mode:"boolean"})],ri.prototype,"horizontalInset",void 0),ee([ft({attribute:"horizontal-threshold"})],ri.prototype,"horizontalThreshold",void 0),ee([ft({attribute:"horizontal-scaling"})],ri.prototype,"horizontalScaling",void 0),ee([ft({attribute:"vertical-positioning-mode"})],ri.prototype,"verticalPositioningMode",void 0),ee([ft({attribute:"vertical-default-position"})],ri.prototype,"verticalDefaultPosition",void 0),ee([ft({attribute:"vertical-viewport-lock",mode:"boolean"})],ri.prototype,"verticalViewportLock",void 0),ee([ft({attribute:"vertical-inset",mode:"boolean"})],ri.prototype,"verticalInset",void 0),ee([ft({attribute:"vertical-threshold"})],ri.prototype,"verticalThreshold",void 0),ee([ft({attribute:"vertical-scaling"})],ri.prototype,"verticalScaling",void 0),ee([ft({attribute:"fixed-placement",mode:"boolean"})],ri.prototype,"fixedPlacement",void 0),ee([ft({attribute:"auto-update-mode"})],ri.prototype,"autoUpdateMode",void 0),ee([F],ri.prototype,"anchorElement",void 0),ee([F],ri.prototype,"viewportElement",void 0),ee([F],ri.prototype,"initialLayoutComplete",void 0);class ai extends ze{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}ee([ft({attribute:"fill"})],ai.prototype,"fill",void 0),ee([ft({attribute:"color"})],ai.prototype,"color",void 0),ee([ft({mode:"boolean"})],ai.prototype,"circular",void 0);class li extends oi{constructor(){super(...arguments),this.separator=!0}}ee([F],li.prototype,"separator",void 0),Be(li,Zt,si);class ci extends ze{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.setItemSeparator(t),this.setLastItemAriaCurrent(t)}}setItemSeparator(t){this.slottedBreadcrumbItems.forEach(t=>{t instanceof li&&(t.separator=!0)}),t instanceof li&&(t.separator=!1)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setLastItemAriaCurrent(t){const e=this.findChildWithHref(t);null===e&&t.hasAttribute("href")&&t instanceof li?t.ariaCurrent="page":null!==e&&e.setAttribute("aria-current","page")}}ee([F],ci.prototype,"slottedBreadcrumbItems",void 0);const hi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,di=new Map;function ui(t){const i=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.formDisabledCallback=t=>{this.disabled=t},this.formResetCallback=()=>{this.value=this.initialValue,this.dirtyValue=!1},this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||""}static get formAssociated(){return hi}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 t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return e}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.setFormValue(this.value),this.validate()}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),d.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),d.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!hi)return null;let t=di.get(this);return t||(t=this.attachInternals(),di.set(this,t)),t}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(t=>this.proxy.removeEventListener(t,this.stopPropagation)),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(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return ft({mode:"boolean"})(i.prototype,"disabled"),ft({mode:"fromView",attribute:"value"})(i.prototype,"initialValue"),ft(i.prototype,"name"),ft({mode:"boolean"})(i.prototype,"required"),F(i.prototype,"value"),i}class pi extends ze{}class gi extends(ui(pi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class fi extends gi{constructor(){super(...arguments),this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus()}}ee([ft({mode:"boolean"})],fi.prototype,"autofocus",void 0),ee([ft({attribute:"form"})],fi.prototype,"formId",void 0),ee([ft],fi.prototype,"formaction",void 0),ee([ft],fi.prototype,"formenctype",void 0),ee([ft],fi.prototype,"formmethod",void 0),ee([ft({mode:"boolean"})],fi.prototype,"formnovalidate",void 0),ee([ft],fi.prototype,"formtarget",void 0),ee([ft],fi.prototype,"type",void 0),ee([F],fi.prototype,"defaultSlottedContent",void 0);class bi{}var mi,vi,yi;ee([ft({attribute:"aria-expanded",mode:"fromView"})],bi.prototype,"ariaExpanded",void 0),ee([ft({attribute:"aria-pressed",mode:"fromView"})],bi.prototype,"ariaPressed",void 0),Be(bi,ii),Be(fi,Zt,bi),function(t){t.none="none",t.default="default",t.sticky="sticky"}(mi||(mi={})),function(t){t.default="default",t.columnHeader="columnheader",t.rowHeader="rowheader"}(vi||(vi={})),function(t){t.default="default",t.header="header",t.stickyHeader="sticky-header"}(yi||(yi={}));class xi extends ze{constructor(){super(...arguments),this.rowType=yi.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new _t(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===yi.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===yi.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}ee([ft({attribute:"grid-template-columns"})],xi.prototype,"gridTemplateColumns",void 0),ee([ft({attribute:"row-type"})],xi.prototype,"rowType",void 0),ee([F],xi.prototype,"rowData",void 0),ee([F],xi.prototype,"columnDefinitions",void 0),ee([F],xi.prototype,"cellItemTemplate",void 0),ee([F],xi.prototype,"headerCellItemTemplate",void 0),ee([F],xi.prototype,"rowIndex",void 0),ee([F],xi.prototype,"isActiveRow",void 0),ee([F],xi.prototype,"activeCellItemTemplate",void 0),ee([F],xi.prototype,"defaultCellItemTemplate",void 0),ee([F],xi.prototype,"defaultHeaderCellItemTemplate",void 0),ee([F],xi.prototype,"cellElements",void 0);class $i extends ze{constructor(){super(),this.generateHeader=mi.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,d.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{const t=void 0===this.gridTemplateColumns?this.generatedGridTemplateColumns:this.gridTemplateColumns;this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=$i.generateColumns(this.rowsData[0]))}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=$i.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new _t(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),d.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex","0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===mi.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,d.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==mi.none){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===mi.sticky?yi.stickyHeader:yi.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}$i.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),ee([ft({attribute:"generate-header"})],$i.prototype,"generateHeader",void 0),ee([ft({attribute:"grid-template-columns"})],$i.prototype,"gridTemplateColumns",void 0),ee([F],$i.prototype,"rowsData",void 0),ee([F],$i.prototype,"columnDefinitions",void 0),ee([F],$i.prototype,"rowItemTemplate",void 0),ee([F],$i.prototype,"cellItemTemplate",void 0),ee([F],$i.prototype,"headerCellItemTemplate",void 0),ee([F],$i.prototype,"focusRowIndex",void 0),ee([F],$i.prototype,"focusColumnIndex",void 0),ee([F],$i.prototype,"defaultRowItemTemplate",void 0),ee([F],$i.prototype,"rowElementTag",void 0),ee([F],$i.prototype,"rowElements",void 0);const wi=nt`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,ki=nt`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Ci extends ze{constructor(){super(...arguments),this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.isInternalFocused=!1,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case vi.columnHeader:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1,this.isInternalFocused=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===vi.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===vi.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.isInternalFocused||void 0===this.columnDefinition)return;switch(this.cellType){case vi.default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}break;case vi.columnHeader:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}}break;case"Escape":this.isInternalFocused&&(this.focus(),this.isInternalFocused=!1,t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case vi.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=ki.render(this,this);break;case void 0:case vi.rowHeader:case vi.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=wi.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}ee([ft({attribute:"cell-type"})],Ci.prototype,"cellType",void 0),ee([ft({attribute:"grid-column"})],Ci.prototype,"gridColumn",void 0),ee([F],Ci.prototype,"rowData",void 0),ee([F],Ci.prototype,"columnDefinition",void 0);class Ii extends ze{}class Ti extends ze{}class Fi extends(ui(Ti)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Di extends Fi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.dirtyChecked=!1,this.constructed=!1,this.formResetCallback=()=>{this.checked=this.checkedAttribute,this.dirtyChecked=!1},this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.defaultChecked=!!this.checkedAttribute,this.checked=this.defaultChecked,this.constructed=!0}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(){this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.constructed&&this.$emit("change"),this.validate()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","checkbox"),this.updateForm()}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}}var Si,Ei,Ri,Oi;function Li(t){return qe(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}ee([ft({attribute:"readonly",mode:"boolean"})],Di.prototype,"readOnly",void 0),ee([ft({attribute:"checked",mode:"boolean"})],Di.prototype,"checkedAttribute",void 0),ee([F],Di.prototype,"defaultSlottedNodes",void 0),ee([F],Di.prototype,"defaultChecked",void 0),ee([F],Di.prototype,"checked",void 0),ee([F],Di.prototype,"indeterminate",void 0),function(t){t.above="above",t.below="below"}(Si||(Si={})),function(t){t.combobox="combobox"}(Ei||(Ei={}));class Vi extends ze{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,this.initialValue=this.initialValue||"",t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.$fastController.isConnected&&(this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected))}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){return this.value?this.value:this.textContent?this.textContent:""}get text(){return this.textContent}set value(t){this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=t),C.notify(this,"value")}get value(){return C.track(this,"value"),this._value?this._value:this.text}get form(){return this.proxy?this.proxy.form:null}}ee([F],Vi.prototype,"defaultSelected",void 0),ee([ft({mode:"boolean"})],Vi.prototype,"disabled",void 0),ee([ft({attribute:"selected",mode:"boolean"})],Vi.prototype,"selectedAttribute",void 0),ee([F],Vi.prototype,"selected",void 0),ee([ft({attribute:"value",mode:"fromView"})],Vi.prototype,"initialValue",void 0),Be(Vi,Zt),function(t){t.listbox="listbox"}(Ri||(Ri={}));class Ai extends ze{constructor(){super(...arguments),this.selectedIndex=-1,this.typeaheadBuffer="",this.typeaheadTimeout=-1,this.typeAheadExpired=!0,this.role=Ri.listbox,this._options=[],this.selectedOptions=[],this.shouldSkipFocus=!1,this.handleTypeAhead=t=>{this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeAheadExpired=!0,Ai.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeAheadExpired?"":this.typeaheadBuffer}${t}`)}}selectedIndexChanged(t,e){this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi"),i=this.options.filter(t=>t.text.trim().match(e));if(i.length){const t=this.options.indexOf(i[0]);t>-1&&(this.selectedIndex=t)}this.typeAheadExpired=!1}}slottedOptionsChanged(t,e){this.$fastController.isConnected&&(this.options=e.reduce((t,e)=>(Li(e)&&t.push(e),t),[]),this.options.forEach(t=>{t.id=t.id||Ze("option-")}),this.setSelectedOptions(),this.setDefaultSelectedOption())}get options(){return C.track(this,"options"),this._options}set options(t){this._options=t,C.notify(this,"options")}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this.options.forEach(t=>{t.selected=e.includes(t)})}get firstSelectedOption(){return this.selectedOptions[0]}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&this.firstSelectedOption&&(this.firstSelectedOption.focus(),requestAnimationFrame(()=>{this.firstSelectedOption.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}setDefaultSelectedOption(){if(this.options&&this.$fastController.isConnected){const t=this.options.findIndex(t=>null!==t.getAttribute("selected"));if(-1!==t)return void(this.selectedIndex=t);this.selectedIndex=0}}setSelectedOptions(){if(this.$fastController.isConnected&&this.options){const t=this.options[this.selectedIndex]||null;this.selectedOptions=this.options.filter(e=>e.isSameNode(t)),this.ariaActiveDescendant=this.firstSelectedOption?this.firstSelectedOption.id:"",this.focusAndScrollOptionIntoView()}}selectFirstOption(){this.disabled||(this.selectedIndex=0)}selectLastOption(){this.disabled||(this.selectedIndex=this.options.length-1)}selectNextOption(){!this.disabled&&this.options&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}get length(){return this.options?this.options.length:0}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeAheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}}Ai.TYPE_AHEAD_TIMEOUT_MS=1e3,Ai.slottedOptionFilter=t=>Li(t)&&!t.disabled&&!t.hidden,ee([F],Ai.prototype,"selectedIndex",void 0),ee([F],Ai.prototype,"typeaheadBuffer",void 0),ee([ft],Ai.prototype,"role",void 0),ee([ft({mode:"boolean"})],Ai.prototype,"disabled",void 0),ee([F],Ai.prototype,"slottedOptions",void 0),ee([F],Ai.prototype,"selectedOptions",void 0);class Pi{constructor(){this.ariaActiveDescendant=""}}ee([F],Pi.prototype,"ariaActiveDescendant",void 0),ee([F],Pi.prototype,"ariaDisabled",void 0),ee([F],Pi.prototype,"ariaExpanded",void 0),Be(Pi,ii),Be(Ai,Pi);class Hi extends Ai{}class zi extends(ui(Hi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}!function(t){t.inline="inline",t.list="list",t.both="both",t.none="none"}(Oi||(Oi={}));class Mi extends zi{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.formResetCallback=()=>{this.value=this.initialValue,this.dirtyValue=!1,this.setDefaultSelectedOption(),this.updateValue()},this.listboxId=Ze("listbox-"),this.maxHeight=0,this.open=!1,this.position=Si.below,this.role=Ei.combobox}get isAutocompleteInline(){return this.autocomplete===Oi.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Oi.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Oi.both}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}openChanged(){this.ariaExpanded=this.open?"true":"false",this.open&&(this.setPositioning(),this.focusAndScrollOptionIntoView())}get options(){return C.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,C.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}get value(){return C.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),C.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text}return this.open=!this.open,this.open||this.updateValue(!0),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Oi.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":{this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1;const t=this.control.value.length;this.control.setSelectionRange(t,t);break}case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=Ye(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Si.above:Si.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Si.above?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}}ee([ft({attribute:"autocomplete",mode:"fromView"})],Mi.prototype,"autocomplete",void 0),ee([F],Mi.prototype,"maxHeight",void 0),ee([ft({attribute:"open",mode:"boolean"})],Mi.prototype,"open",void 0),ee([ft],Mi.prototype,"placeholder",void 0),ee([ft({attribute:"position"})],Mi.prototype,"positionAttribute",void 0),ee([F],Mi.prototype,"position",void 0);class Ni{}ee([ft({attribute:"aria-autocomplete",mode:"fromView"})],Ni.prototype,"ariaAutocomplete",void 0),Be(Ni,ii),Be(Mi,Zt,Ni);const Bi=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),ji=new Map,Ui=new Map;let qi=null;const _i=he.createInterface(t=>t.cachedCallback(t=>(null===qi&&(qi=new Wi(null,t)),qi))),Gi=Object.freeze({tagFor:t=>Ui.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return he.findResponsibleContainer(t).get(_i)},getOrCreate(t){if(!t)return null===qi&&(qi=he.getOrCreateDOMContainer().get(_i)),qi;const e=t.$$designSystem$$;if(e)return e;const i=he.getOrCreateDOMContainer(t);if(i.has(_i,!1))return i.get(_i);{const e=new Wi(t,i);return i.register(Te.instance(_i,e)),e}}});class Wi{constructor(t,e){this.owner=t,this.container=e,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Bi.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=ji.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case Bi.ignoreDuplicate:return;case Bi.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=ji.get(u)}}g&&((Ui.has(d)||d===ze)&&(d=class extends d{}),ji.set(u,d),Ui.set(d,u),h&&Ui.set(h,u)),i.push(new Ki(e,u,d,s,c,g))}};e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class Ki{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Pe.define(this.name,t,this.container)}defineElement(t){this.definition=new yt(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Gi.tagFor(t)}}function Xi(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}class Yi extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Yi(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Qi=Yi.with(window.matchMedia("(forced-colors)"));Yi.with(window.matchMedia("(prefers-color-scheme: dark)")),Yi.with(window.matchMedia("(prefers-color-scheme: light)"));class Zi{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){C.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){C.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function Ji(t){return`:host([hidden]){display:none}:host{display:${t}}`}const to=function(){if("boolean"==typeof _e)return _e;if("undefined"==typeof window||!window.document||!window.document.createElement)return _e=!1,_e;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),_e=!0}catch(t){_e=!1}finally{document.head.removeChild(t)}return _e}()?"focus-visible":"focus";function eo(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}const io=document.createElement("div");class oo{setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class so extends oo{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class no extends oo{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}");this.target=t.rules[e].style}}}class ro{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),C.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),d.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),d.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}");this.target=i.rules[t].style}else this.target=null}}ee([F],ro.prototype,"target",void 0);class ao{constructor(t){this.target=t.style}setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}const lo=new WeakMap,co=d.supportsAdoptedStyleSheets?class extends oo{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(rt.create([e]))}}:ro,ho=Object.freeze({getOrCreate(t){if(lo.has(t))return lo.get(t);let e;return t===io?e=d.supportsAdoptedStyleSheets?new so:new no:e=t instanceof It?new co(t):new ao(t),lo.set(t,e),e}});class uo extends Tt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=uo.uniqueId(),uo.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new uo({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return uo.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=mo.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof uo&&(e=this.alias(e)),mo.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),mo.existsFor(t)&&mo.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(io,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!mo.existsFor(e)&&mo.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}uo.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),uo.tokensById=new Map;class po{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=C.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,R))}}class go{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),C.getNotifier(this).notify(t.id))}get(t){return C.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const fo=new WeakMap,bo=new WeakMap;class mo{constructor(t){this.target=t,this.store=new go,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=uo.getTokenById(e);if(i&&(i.notify(this.target),uo.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},fo.set(t,this),C.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof It?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return fo.get(t)||new mo(t)}static existsFor(t){return fo.has(t)}static findParent(t){if(io!==t.target){let e=Xi(t.target);for(;null!==e;){if(fo.has(e))return fo.get(e);e=Xi(e)}return mo.getOrCreate(io)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==io?mo.getOrCreate(io):null}while(null!==i);return null}get parent(){return bo.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=mo.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){uo.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),uo.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=mo.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){bo.get(this).removeChild(this)}}appendChild(t){t.parent&&bo.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));bo.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),C.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),C.getNotifier(this.store).unsubscribe(t),t.parent===this&&bo.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Xi(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),mo.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),mo.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=uo.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);uo.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new po(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}mo.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){ho.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(mo.getOrCreate(e).get(t)))}remove(t,e){ho.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},ee([F],mo.prototype,"children",void 0);const vo=Object.freeze({create:function(t){return uo.from(t)},notifyConnection:t=>!(!t.isConnected||!mo.existsFor(t))&&(mo.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!mo.existsFor(t))&&(mo.getOrCreate(t).unbind(),!0)});
16
+ function ee(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const ie=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=ie.get(i);void 0===o&&ie.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=ie.get(e);if(void 0!==i)return i.get(t)});class oe{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Ie(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new pe(o,t,e))}}function se(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],Le(s)||(e[s]=t[s]);return e}const ne=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new pe(t,1,t),transient:t=>new pe(t,2,t)}),re=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:ne.singleton})}),ae=new Map;function le(t){return e=>Reflect.getOwnMetadata(t,e)}let ce=null;const he=Object.freeze({createContainer:t=>new ke(null,Object.assign({},re.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:he.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent($e,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||he.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new ke(t,Object.assign({},re.default,e,{parentLocator:he.findParentContainer})):ce||(ce=new ke(null,Object.assign({},re.default,e,{parentLocator:()=>null}))),getDesignParamtypes:le("design:paramtypes"),getAnnotationParamtypes:le("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=ae.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=he.getDesignParamtypes(t),o=he.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?se(he.getDependencies(i)):[]}else e=se(o);else if(void 0===o)e=se(i);else{e=se(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],Le(r)||(e[r]=o[r])}}else e=se(i);ae.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?he.findResponsibleContainer(this):he.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof It){const o=this.$fastController,n=()=>{he.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||Re,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)he.defineProperty(t,e,n,s);else{he.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new oe(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=he.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)he.defineProperty(e,i,t[0]);else{const i=o?he.getOrCreateAnnotationParamTypes(o.value):he.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return Te.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=ue)=>(t.register=function(e){return Te.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),de=he.createInterface("Container");he.inject;const ue={scoped:!1};class pe{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function ge(t){return this.get(t)}function fe(t,e){return e(t)}class be{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(ge,t)):new this.Type(...this.dependencies.map(ge,t),...e),null==this.transformers?i:this.transformers.reduce(fe,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const me={$isResolver:!0,resolve:(t,e)=>e};function ve(t){return"function"==typeof t.register}function ye(t){return function(t){return ve(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const xe=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),$e="__DI_LOCATE_PARENT__",we=new Map;class ke{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(de,me),t instanceof Node&&t.addEventListener($e,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Se(e))if(ve(e))e.register(this,r);else if(void 0!==e.prototype)Te.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],Se(o)&&(ve(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){Fe(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof pe&&4===o.strategy?o.state.push(e):i.set(t,new pe(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(Fe(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=ye(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(Fe(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=ye(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,i=!1){Fe(t);const o=this;let s,n=o;if(i){let i=e;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(i=i.concat(De(s,n,o))),n=n.parent;return i}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return De(s,n,o);if(n=n.parent,null==n)return e}return e}getFactory(t){let e=we.get(t);if(void 0===e){if(Ee(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");we.set(t,e=new be(t,he.getDependencies(t)))}return e}registerFactory(t,e){we.set(t,e)}createChild(t){return new ke(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(xe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ve(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const Ce=new WeakMap;function Ie(t){return function(e,i,o){if(Ce.has(o))return Ce.get(o);const s=t(e,i,o);return Ce.set(o,s),s}}const Te=Object.freeze({instance:(t,e)=>new pe(t,0,e),singleton:(t,e)=>new pe(t,1,e),transient:(t,e)=>new pe(t,2,e),callback:(t,e)=>new pe(t,3,e),cachedCallback:(t,e)=>new pe(t,3,Ie(e)),aliasTo:(t,e)=>new pe(e,5,t)});function Fe(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function De(t,e,i){if(t instanceof pe&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const Re="(anonymous)";function Se(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ee=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),Oe={};function Le(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Oe[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Oe[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return Oe[t]=!1;return Oe[t]=!0}default:return!1}}function Ve(t){return t.toLowerCase()+":presentation"}const Ae=new Map,Pe=Object.freeze({define(t,e,i){const o=Ve(t);void 0===Ae.get(o)?Ae.set(o,e):Ae.set(o,!1),i.register(Te.instance(o,e))},forTag(t,e){const i=Ve(t),o=Ae.get(i);if(!1===o){return he.findResponsibleContainer(e).get(i)}return o||null}});class He{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?rt.create(e):e instanceof rt?e:rt.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class ze extends It{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Pe.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Ne(this===ze?class extends ze{}:this,t,e)}}function Me(t,e,i){return"function"==typeof t?t(e,i):t}ee([F],ze.prototype,"template",void 0),ee([F],ze.prototype,"styles",void 0);class Ne{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new He(Me(i.template,t,i),Me(i.styles,t,i));t.definePresentation(e);let s=Me(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Me(i.elementOptions,t,i),shadowOptions:s,attributes:Me(i.attributes,t,i)})}})}}function Be(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class je extends ze{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}ee([ft({attribute:"heading-level",mode:"fromView",converter:pt})],je.prototype,"headinglevel",void 0),ee([ft({mode:"boolean"})],je.prototype,"expanded",void 0),ee([ft],je.prototype,"id",void 0),Be(je,Zt);var Ue;function qe(...t){return t.every(t=>t instanceof HTMLElement)}let _e;!function(t){t.horizontal="horizontal",t.vertical="vertical"}(Ue||(Ue={}));var Ge;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Ge||(Ge={}));const We={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var Ke;function Xe(t,e,i){return i<t?e:i>e?t:i}function Ye(t,e,i){return Math.min(Math.max(i,t),e)}!function(t){t.ltr="ltr",t.rtl="rtl"}(Ke||(Ke={}));let Qe=0;function Ze(t=""){return`${t}${Qe++}`}var Je;!function(t){t.single="single",t.multi="multi"}(Je||(Je={}));class ti extends ze{constructor(){super(...arguments),this.expandmode=Je.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof je&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=t.target.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Je.single}adjust(t){this.activeItemIndex=Xe(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof je&&t.expandbutton.focus()}}ee([ft({attribute:"expand-mode"})],ti.prototype,"expandmode",void 0),ee([F],ti.prototype,"accordionItems",void 0);const ei=(t,e)=>nt`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")}>${te(0,e)}<span class="content" part="content"><slot ${Xt("defaultSlottedContent")}></slot></span>${Jt(0,e)}</a>`;class ii{}ee([ft({attribute:"aria-atomic",mode:"fromView"})],ii.prototype,"ariaAtomic",void 0),ee([ft({attribute:"aria-busy",mode:"fromView"})],ii.prototype,"ariaBusy",void 0),ee([ft({attribute:"aria-controls",mode:"fromView"})],ii.prototype,"ariaControls",void 0),ee([ft({attribute:"aria-current",mode:"fromView"})],ii.prototype,"ariaCurrent",void 0),ee([ft({attribute:"aria-describedby",mode:"fromView"})],ii.prototype,"ariaDescribedby",void 0),ee([ft({attribute:"aria-details",mode:"fromView"})],ii.prototype,"ariaDetails",void 0),ee([ft({attribute:"aria-disabled",mode:"fromView"})],ii.prototype,"ariaDisabled",void 0),ee([ft({attribute:"aria-errormessage",mode:"fromView"})],ii.prototype,"ariaErrormessage",void 0),ee([ft({attribute:"aria-flowto",mode:"fromView"})],ii.prototype,"ariaFlowto",void 0),ee([ft({attribute:"aria-haspopup",mode:"fromView"})],ii.prototype,"ariaHaspopup",void 0),ee([ft({attribute:"aria-hidden",mode:"fromView"})],ii.prototype,"ariaHidden",void 0),ee([ft({attribute:"aria-invalid",mode:"fromView"})],ii.prototype,"ariaInvalid",void 0),ee([ft({attribute:"aria-keyshortcuts",mode:"fromView"})],ii.prototype,"ariaKeyshortcuts",void 0),ee([ft({attribute:"aria-label",mode:"fromView"})],ii.prototype,"ariaLabel",void 0),ee([ft({attribute:"aria-labelledby",mode:"fromView"})],ii.prototype,"ariaLabelledby",void 0),ee([ft({attribute:"aria-live",mode:"fromView"})],ii.prototype,"ariaLive",void 0),ee([ft({attribute:"aria-owns",mode:"fromView"})],ii.prototype,"ariaOwns",void 0),ee([ft({attribute:"aria-relevant",mode:"fromView"})],ii.prototype,"ariaRelevant",void 0),ee([ft({attribute:"aria-roledescription",mode:"fromView"})],ii.prototype,"ariaRoledescription",void 0);class oi extends ze{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}ee([ft],oi.prototype,"download",void 0),ee([ft],oi.prototype,"href",void 0),ee([ft],oi.prototype,"hreflang",void 0),ee([ft],oi.prototype,"ping",void 0),ee([ft],oi.prototype,"referrerpolicy",void 0),ee([ft],oi.prototype,"rel",void 0),ee([ft],oi.prototype,"target",void 0),ee([ft],oi.prototype,"type",void 0),ee([F],oi.prototype,"defaultSlottedContent",void 0);class si{}ee([ft({attribute:"aria-expanded",mode:"fromView"})],si.prototype,"ariaExpanded",void 0),Be(si,ii),Be(oi,Zt,si);const ni=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?Ke.rtl:Ke.ltr};class ri extends ze{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Ke.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(ri.intersectionService.requestPosition(this,this.handleIntersection),ri.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ri.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,ri.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&ri.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ri.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=ni(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=ni(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===Ke.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),d.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}ri.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},ee([ft],ri.prototype,"anchor",void 0),ee([ft],ri.prototype,"viewport",void 0),ee([ft({attribute:"horizontal-positioning-mode"})],ri.prototype,"horizontalPositioningMode",void 0),ee([ft({attribute:"horizontal-default-position"})],ri.prototype,"horizontalDefaultPosition",void 0),ee([ft({attribute:"horizontal-viewport-lock",mode:"boolean"})],ri.prototype,"horizontalViewportLock",void 0),ee([ft({attribute:"horizontal-inset",mode:"boolean"})],ri.prototype,"horizontalInset",void 0),ee([ft({attribute:"horizontal-threshold"})],ri.prototype,"horizontalThreshold",void 0),ee([ft({attribute:"horizontal-scaling"})],ri.prototype,"horizontalScaling",void 0),ee([ft({attribute:"vertical-positioning-mode"})],ri.prototype,"verticalPositioningMode",void 0),ee([ft({attribute:"vertical-default-position"})],ri.prototype,"verticalDefaultPosition",void 0),ee([ft({attribute:"vertical-viewport-lock",mode:"boolean"})],ri.prototype,"verticalViewportLock",void 0),ee([ft({attribute:"vertical-inset",mode:"boolean"})],ri.prototype,"verticalInset",void 0),ee([ft({attribute:"vertical-threshold"})],ri.prototype,"verticalThreshold",void 0),ee([ft({attribute:"vertical-scaling"})],ri.prototype,"verticalScaling",void 0),ee([ft({attribute:"fixed-placement",mode:"boolean"})],ri.prototype,"fixedPlacement",void 0),ee([ft({attribute:"auto-update-mode"})],ri.prototype,"autoUpdateMode",void 0),ee([F],ri.prototype,"anchorElement",void 0),ee([F],ri.prototype,"viewportElement",void 0),ee([F],ri.prototype,"initialLayoutComplete",void 0);class ai extends ze{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}ee([ft({attribute:"fill"})],ai.prototype,"fill",void 0),ee([ft({attribute:"color"})],ai.prototype,"color",void 0),ee([ft({mode:"boolean"})],ai.prototype,"circular",void 0);class li extends oi{constructor(){super(...arguments),this.separator=!0}}ee([F],li.prototype,"separator",void 0),Be(li,Zt,si);class ci extends ze{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.setItemSeparator(t),this.setLastItemAriaCurrent(t)}}setItemSeparator(t){this.slottedBreadcrumbItems.forEach(t=>{t instanceof li&&(t.separator=!0)}),t instanceof li&&(t.separator=!1)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setLastItemAriaCurrent(t){const e=this.findChildWithHref(t);null===e&&t.hasAttribute("href")&&t instanceof li?t.ariaCurrent="page":null!==e&&e.setAttribute("aria-current","page")}}ee([F],ci.prototype,"slottedBreadcrumbItems",void 0);const hi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,di=new Map;function ui(t){const i=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.formDisabledCallback=t=>{this.disabled=t},this.formResetCallback=()=>{this.value=this.initialValue,this.dirtyValue=!1},this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||""}static get formAssociated(){return hi}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 t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return e}valueChanged(t,e){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(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),d.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),d.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!hi)return null;let t=di.get(this);return t||(t=this.attachInternals(),di.set(this,t)),t}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(t=>this.proxy.removeEventListener(t,this.stopPropagation)),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(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return ft({mode:"boolean"})(i.prototype,"disabled"),ft({mode:"fromView",attribute:"value"})(i.prototype,"initialValue"),ft({attribute:"current-value"})(i.prototype,"currentValue"),ft(i.prototype,"name"),ft({mode:"boolean"})(i.prototype,"required"),F(i.prototype,"value"),i}class pi extends ze{}class gi extends(ui(pi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class fi extends gi{constructor(){super(...arguments),this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus()}}ee([ft({mode:"boolean"})],fi.prototype,"autofocus",void 0),ee([ft({attribute:"form"})],fi.prototype,"formId",void 0),ee([ft],fi.prototype,"formaction",void 0),ee([ft],fi.prototype,"formenctype",void 0),ee([ft],fi.prototype,"formmethod",void 0),ee([ft({mode:"boolean"})],fi.prototype,"formnovalidate",void 0),ee([ft],fi.prototype,"formtarget",void 0),ee([ft],fi.prototype,"type",void 0),ee([F],fi.prototype,"defaultSlottedContent",void 0);class bi{}var mi,vi,yi;ee([ft({attribute:"aria-expanded",mode:"fromView"})],bi.prototype,"ariaExpanded",void 0),ee([ft({attribute:"aria-pressed",mode:"fromView"})],bi.prototype,"ariaPressed",void 0),Be(bi,ii),Be(fi,Zt,bi),function(t){t.none="none",t.default="default",t.sticky="sticky"}(mi||(mi={})),function(t){t.default="default",t.columnHeader="columnheader",t.rowHeader="rowheader"}(vi||(vi={})),function(t){t.default="default",t.header="header",t.stickyHeader="sticky-header"}(yi||(yi={}));class xi extends ze{constructor(){super(...arguments),this.rowType=yi.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new _t(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===yi.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===yi.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}ee([ft({attribute:"grid-template-columns"})],xi.prototype,"gridTemplateColumns",void 0),ee([ft({attribute:"row-type"})],xi.prototype,"rowType",void 0),ee([F],xi.prototype,"rowData",void 0),ee([F],xi.prototype,"columnDefinitions",void 0),ee([F],xi.prototype,"cellItemTemplate",void 0),ee([F],xi.prototype,"headerCellItemTemplate",void 0),ee([F],xi.prototype,"rowIndex",void 0),ee([F],xi.prototype,"isActiveRow",void 0),ee([F],xi.prototype,"activeCellItemTemplate",void 0),ee([F],xi.prototype,"defaultCellItemTemplate",void 0),ee([F],xi.prototype,"defaultHeaderCellItemTemplate",void 0),ee([F],xi.prototype,"cellElements",void 0);class $i extends ze{constructor(){super(),this.generateHeader=mi.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,d.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{const t=void 0===this.gridTemplateColumns?this.generatedGridTemplateColumns:this.gridTemplateColumns;this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=$i.generateColumns(this.rowsData[0]))}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=$i.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new _t(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),d.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex","0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===mi.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,d.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==mi.none){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===mi.sticky?yi.stickyHeader:yi.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}$i.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),ee([ft({attribute:"generate-header"})],$i.prototype,"generateHeader",void 0),ee([ft({attribute:"grid-template-columns"})],$i.prototype,"gridTemplateColumns",void 0),ee([F],$i.prototype,"rowsData",void 0),ee([F],$i.prototype,"columnDefinitions",void 0),ee([F],$i.prototype,"rowItemTemplate",void 0),ee([F],$i.prototype,"cellItemTemplate",void 0),ee([F],$i.prototype,"headerCellItemTemplate",void 0),ee([F],$i.prototype,"focusRowIndex",void 0),ee([F],$i.prototype,"focusColumnIndex",void 0),ee([F],$i.prototype,"defaultRowItemTemplate",void 0),ee([F],$i.prototype,"rowElementTag",void 0),ee([F],$i.prototype,"rowElements",void 0);const wi=nt`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,ki=nt`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Ci extends ze{constructor(){super(...arguments),this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.isInternalFocused=!1,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case vi.columnHeader:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1,this.isInternalFocused=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===vi.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===vi.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.isInternalFocused||void 0===this.columnDefinition)return;switch(this.cellType){case vi.default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}break;case vi.columnHeader:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}}break;case"Escape":this.isInternalFocused&&(this.focus(),this.isInternalFocused=!1,t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case vi.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=ki.render(this,this);break;case void 0:case vi.rowHeader:case vi.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=wi.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}ee([ft({attribute:"cell-type"})],Ci.prototype,"cellType",void 0),ee([ft({attribute:"grid-column"})],Ci.prototype,"gridColumn",void 0),ee([F],Ci.prototype,"rowData",void 0),ee([F],Ci.prototype,"columnDefinition",void 0);class Ii extends ze{}class Ti extends ze{}class Fi extends(ui(Ti)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Di extends Fi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.dirtyChecked=!1,this.constructed=!1,this.formResetCallback=()=>{this.checked=this.checkedAttribute,this.dirtyChecked=!1},this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.defaultChecked=!!this.checkedAttribute,this.checked=this.defaultChecked,this.constructed=!0}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(){this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.constructed&&this.$emit("change"),this.validate()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","checkbox"),this.updateForm()}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}}var Ri,Si,Ei,Oi;function Li(t){return qe(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}ee([ft({attribute:"readonly",mode:"boolean"})],Di.prototype,"readOnly",void 0),ee([ft({attribute:"checked",mode:"boolean"})],Di.prototype,"checkedAttribute",void 0),ee([F],Di.prototype,"defaultSlottedNodes",void 0),ee([F],Di.prototype,"defaultChecked",void 0),ee([F],Di.prototype,"checked",void 0),ee([F],Di.prototype,"indeterminate",void 0),function(t){t.above="above",t.below="below"}(Ri||(Ri={})),function(t){t.combobox="combobox"}(Si||(Si={}));class Vi extends ze{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,this.initialValue=this.initialValue||"",t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.$fastController.isConnected&&(this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected))}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){return this.value?this.value:this.textContent?this.textContent:""}get text(){return this.textContent}set value(t){this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=t),C.notify(this,"value")}get value(){return C.track(this,"value"),this._value?this._value:this.text}get form(){return this.proxy?this.proxy.form:null}}ee([F],Vi.prototype,"defaultSelected",void 0),ee([ft({mode:"boolean"})],Vi.prototype,"disabled",void 0),ee([ft({attribute:"selected",mode:"boolean"})],Vi.prototype,"selectedAttribute",void 0),ee([F],Vi.prototype,"selected",void 0),ee([ft({attribute:"value",mode:"fromView"})],Vi.prototype,"initialValue",void 0),Be(Vi,Zt),function(t){t.listbox="listbox"}(Ei||(Ei={}));class Ai extends ze{constructor(){super(...arguments),this.selectedIndex=-1,this.typeaheadBuffer="",this.typeaheadTimeout=-1,this.typeAheadExpired=!0,this.role=Ei.listbox,this._options=[],this.selectedOptions=[],this.shouldSkipFocus=!1,this.handleTypeAhead=t=>{this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeAheadExpired=!0,Ai.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeAheadExpired?"":this.typeaheadBuffer}${t}`)}}selectedIndexChanged(t,e){this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi"),i=this.options.filter(t=>t.text.trim().match(e));if(i.length){const t=this.options.indexOf(i[0]);t>-1&&(this.selectedIndex=t)}this.typeAheadExpired=!1}}slottedOptionsChanged(t,e){this.$fastController.isConnected&&(this.options=e.reduce((t,e)=>(Li(e)&&t.push(e),t),[]),this.options.forEach(t=>{t.id=t.id||Ze("option-")}),this.setSelectedOptions(),this.setDefaultSelectedOption())}get options(){return C.track(this,"options"),this._options}set options(t){this._options=t,C.notify(this,"options")}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this.options.forEach(t=>{t.selected=e.includes(t)})}get firstSelectedOption(){return this.selectedOptions[0]}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&this.firstSelectedOption&&(this.firstSelectedOption.focus(),requestAnimationFrame(()=>{this.firstSelectedOption.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}setDefaultSelectedOption(){if(this.options&&this.$fastController.isConnected){const t=this.options.findIndex(t=>null!==t.getAttribute("selected"));if(-1!==t)return void(this.selectedIndex=t);this.selectedIndex=0}}setSelectedOptions(){if(this.$fastController.isConnected&&this.options){const t=this.options[this.selectedIndex]||null;this.selectedOptions=this.options.filter(e=>e.isSameNode(t)),this.ariaActiveDescendant=this.firstSelectedOption?this.firstSelectedOption.id:"",this.focusAndScrollOptionIntoView()}}selectFirstOption(){this.disabled||(this.selectedIndex=0)}selectLastOption(){this.disabled||(this.selectedIndex=this.options.length-1)}selectNextOption(){!this.disabled&&this.options&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}get length(){return this.options?this.options.length:0}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeAheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}}Ai.TYPE_AHEAD_TIMEOUT_MS=1e3,Ai.slottedOptionFilter=t=>Li(t)&&!t.disabled&&!t.hidden,ee([F],Ai.prototype,"selectedIndex",void 0),ee([F],Ai.prototype,"typeaheadBuffer",void 0),ee([ft],Ai.prototype,"role",void 0),ee([ft({mode:"boolean"})],Ai.prototype,"disabled",void 0),ee([F],Ai.prototype,"slottedOptions",void 0),ee([F],Ai.prototype,"selectedOptions",void 0);class Pi{constructor(){this.ariaActiveDescendant=""}}ee([F],Pi.prototype,"ariaActiveDescendant",void 0),ee([F],Pi.prototype,"ariaDisabled",void 0),ee([F],Pi.prototype,"ariaExpanded",void 0),Be(Pi,ii),Be(Ai,Pi);class Hi extends Ai{}class zi extends(ui(Hi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}!function(t){t.inline="inline",t.list="list",t.both="both",t.none="none"}(Oi||(Oi={}));class Mi extends zi{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.formResetCallback=()=>{this.value=this.initialValue,this.dirtyValue=!1,this.setDefaultSelectedOption(),this.updateValue()},this.listboxId=Ze("listbox-"),this.maxHeight=0,this.open=!1,this.position=Ri.below,this.role=Si.combobox}get isAutocompleteInline(){return this.autocomplete===Oi.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Oi.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Oi.both}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}openChanged(){this.ariaExpanded=this.open?"true":"false",this.open&&(this.setPositioning(),this.focusAndScrollOptionIntoView())}get options(){return C.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,C.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}get value(){return C.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),C.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text}return this.open=!this.open,this.open||this.updateValue(!0),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Oi.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":{this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1;const t=this.control.value.length;this.control.setSelectionRange(t,t);break}case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=Ye(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ri.above:Ri.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ri.above?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}}ee([ft({attribute:"autocomplete",mode:"fromView"})],Mi.prototype,"autocomplete",void 0),ee([F],Mi.prototype,"maxHeight",void 0),ee([ft({attribute:"open",mode:"boolean"})],Mi.prototype,"open",void 0),ee([ft],Mi.prototype,"placeholder",void 0),ee([ft({attribute:"position"})],Mi.prototype,"positionAttribute",void 0),ee([F],Mi.prototype,"position",void 0);class Ni{}ee([ft({attribute:"aria-autocomplete",mode:"fromView"})],Ni.prototype,"ariaAutocomplete",void 0),Be(Ni,ii),Be(Mi,Zt,Ni);function Bi(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}class ji extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new ji(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Ui=ji.with(window.matchMedia("(forced-colors)"));ji.with(window.matchMedia("(prefers-color-scheme: dark)")),ji.with(window.matchMedia("(prefers-color-scheme: light)"));class qi{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){C.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){C.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function _i(t){return`:host([hidden]){display:none}:host{display:${t}}`}const Gi=function(){if("boolean"==typeof _e)return _e;if("undefined"==typeof window||!window.document||!window.document.createElement)return _e=!1,_e;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),_e=!0}catch(t){_e=!1}finally{document.head.removeChild(t)}return _e}()?"focus-visible":"focus";function Wi(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}const Ki=document.createElement("div");class Xi{setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class Yi extends Xi{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class Qi extends Xi{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class Zi{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),C.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),d.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),d.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":root{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}ee([F],Zi.prototype,"target",void 0);class Ji{constructor(t){this.target=t.style}setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class to{setProperty(t,e){to.properties[t]=e;for(const i of to.roots.values())oo.getOrCreate(to.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete to.properties[t];for(const e of to.roots.values())oo.getOrCreate(to.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=to;if(!e.has(t)){e.add(t);const i=oo.getOrCreate(this.normalizeRoot(t));for(const t in to.properties)i.setProperty(t,to.properties[t])}}static unregisterRoot(t){const{roots:e}=to;if(e.has(t)){e.delete(t);const i=oo.getOrCreate(to.normalizeRoot(t));for(const t in to.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===Ki?document:t}}to.roots=new Set,to.properties={};const eo=new WeakMap,io=d.supportsAdoptedStyleSheets?class extends Xi{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(rt.create([e]))}}:Zi,oo=Object.freeze({getOrCreate(t){if(eo.has(t))return eo.get(t);let e;return t===Ki?e=new to:t instanceof Document?e=d.supportsAdoptedStyleSheets?new Yi:new Qi:e=t instanceof It?new io(t):new Ji(t),eo.set(t,e),e}});class so extends Tt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=so.uniqueId(),so.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new so({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return so.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=co.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof so&&(e=this.alias(e)),co.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),co.existsFor(t)&&co.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Ki,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!co.existsFor(e)&&co.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}so.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),so.tokensById=new Map;class no{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=C.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,E))}}class ro{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),C.getNotifier(this).notify(t.id))}get(t){return C.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const ao=new WeakMap,lo=new WeakMap;class co{constructor(t){this.target=t,this.store=new ro,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=so.getTokenById(e);if(i&&(i.notify(this.target),so.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},ao.set(t,this),C.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof It?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return ao.get(t)||new co(t)}static existsFor(t){return ao.has(t)}static findParent(t){if(Ki!==t.target){let e=Bi(t.target);for(;null!==e;){if(ao.has(e))return ao.get(e);e=Bi(e)}return co.getOrCreate(Ki)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==Ki?co.getOrCreate(Ki):null}while(null!==i);return null}get parent(){return lo.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=co.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){so.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),so.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=co.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){lo.get(this).removeChild(this)}}appendChild(t){t.parent&&lo.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));lo.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),C.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),C.getNotifier(this.store).unsubscribe(t),t.parent===this&&lo.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Bi(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),co.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),co.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=so.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);so.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new no(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}co.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){oo.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(co.getOrCreate(e).get(t)))}remove(t,e){oo.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},ee([F],co.prototype,"children",void 0);const ho=Object.freeze({create:function(t){return so.from(t)},notifyConnection:t=>!(!t.isConnected||!co.existsFor(t))&&(co.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!co.existsFor(t))&&(co.getOrCreate(t).unbind(),!0),registerRoot(t=Ki){to.registerRoot(t)},unregisterRoot(t=Ki){to.unregisterRoot(t)}}),uo=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),po=new Map,go=new Map;let fo=null;const bo=he.createInterface(t=>t.cachedCallback(t=>(null===fo&&(fo=new vo(null,t)),fo))),mo=Object.freeze({tagFor:t=>go.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return he.findResponsibleContainer(t).get(bo)},getOrCreate(t){if(!t)return null===fo&&(fo=he.getOrCreateDOMContainer().get(bo)),fo;const e=t.$$designSystem$$;if(e)return e;const i=he.getOrCreateDOMContainer(t);if(i.has(bo,!1))return i.get(bo);{const e=new vo(t,i);return i.register(Te.instance(bo,e)),e}}});class vo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>uo.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=po.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case uo.ignoreDuplicate:return;case uo.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=po.get(u)}}g&&((go.has(d)||d===ze)&&(d=class extends d{}),po.set(u,d),go.set(d,u),h&&go.set(h,u)),i.push(new yo(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&ho.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class yo{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Pe.define(this.name,t,this.container)}defineElement(t){this.definition=new yt(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return mo.tagFor(t)}}
17
17
  /*!
18
18
  * tabbable 5.2.0
19
19
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
20
20
  */
21
- var yo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],xo=yo.join(","),$o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,wo=function(t){return"INPUT"===t.tagName},ko=function(t){return function(t){return wo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Co=function(t,e){return!(e.disabled||function(t){return wo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=$o.call(t,"details>summary:first-of-type")?t.parentElement:t;if($o.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},Io=function(t,e){return!(!Co(t,e)||ko(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},To=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==$o.call(t,xo)&&Io(e,t)},Fo=yo.concat("iframe").join(","),Do=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==$o.call(t,Fo)&&Co(e,t)};class So extends ze{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>So.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=C.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:To(e)||So.isFocusableFastElement(e)&&So.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(So.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>To(t))}}ee([ft({mode:"boolean"})],So.prototype,"modal",void 0),ee([ft({mode:"boolean"})],So.prototype,"hidden",void 0),ee([ft({attribute:"trap-focus",mode:"boolean"})],So.prototype,"trapFocus",void 0),ee([ft({attribute:"aria-describedby"})],So.prototype,"ariaDescribedby",void 0),ee([ft({attribute:"aria-labelledby"})],So.prototype,"ariaLabelledby",void 0),ee([ft({attribute:"aria-label"})],So.prototype,"ariaLabel",void 0);var Eo,Ro;!function(t){t.separator="separator",t.presentation="presentation"}(Eo||(Eo={}));class Oo extends ze{constructor(){super(...arguments),this.role=Eo.separator}}ee([ft],Oo.prototype,"role",void 0),function(t){t.next="next",t.previous="previous"}(Ro||(Ro={}));class Lo extends ze{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Ro.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}ee([ft({mode:"boolean"})],Lo.prototype,"disabled",void 0),ee([ft({attribute:"aria-hidden",converter:ut})],Lo.prototype,"hiddenFromAT",void 0),ee([ft],Lo.prototype,"direction",void 0);var Vo;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Vo||(Vo={}));const Ao={[Vo.menuitem]:"menuitem",[Vo.menuitemcheckbox]:"menuitemcheckbox",[Vo.menuitemradio]:"menuitemradio"};class Po extends ze{constructor(){super(...arguments),this.role=Vo.menuitem,this.hasSubmenu=!1,this.currentDirection=Ke.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Vo.menuitemcheckbox:this.checked=!this.checked,this.$emit("change");break;case Vo.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Vo.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=ni(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children)}}ee([ft({mode:"boolean"})],Po.prototype,"disabled",void 0),ee([ft({mode:"boolean"})],Po.prototype,"expanded",void 0),ee([F],Po.prototype,"startColumnCount",void 0),ee([ft],Po.prototype,"role",void 0),ee([ft({mode:"boolean"})],Po.prototype,"checked",void 0),ee([F],Po.prototype,"submenuRegion",void 0),ee([F],Po.prototype,"hasSubmenu",void 0),ee([F],Po.prototype,"currentDirection",void 0),ee([F],Po.prototype,"submenu",void 0),Be(Po,Zt);class Ho extends ze{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&qe(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.setItems=()=>{const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const e=t.reduce((t,e)=>{const i=(o=e)instanceof Po?o.role!==Vo.menuitem&&null===o.querySelector("[slot=start]")||o.role===Vo.menuitem&&null!==o.querySelector("[slot=start]")?1:o.role!==Vo.menuitem&&null!==o.querySelector("[slot=start]")?2:0:1;var o;return t>i?t:i},0);t.forEach((t,i)=>{t.setAttribute("tabindex",0===i?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Po&&(t.startColumnCount=e)})},this.resetItems=t=>{t.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.changeHandler=t=>{const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Vo.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Vo.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>qe(t)&&Ho.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&(this.menuItems=this.domChildren(),this.resetItems(t),this.setItems())}connectedCallback(){super.connectedCallback(),this.menuItems=this.domChildren(),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuItems=[],this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children)}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}Ho.focusableElementRoles=Ao,ee([F],Ho.prototype,"items",void 0);class zo extends ze{}class Mo extends(ui(zo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var No;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(No||(No={}));class Bo extends Mo{constructor(){super(...arguments),this.type=No.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ee([ft({attribute:"readonly",mode:"boolean"})],Bo.prototype,"readOnly",void 0),ee([ft({mode:"boolean"})],Bo.prototype,"autofocus",void 0),ee([ft],Bo.prototype,"placeholder",void 0),ee([ft],Bo.prototype,"type",void 0),ee([ft],Bo.prototype,"list",void 0),ee([ft({converter:pt})],Bo.prototype,"maxlength",void 0),ee([ft({converter:pt})],Bo.prototype,"minlength",void 0),ee([ft],Bo.prototype,"pattern",void 0),ee([ft({converter:pt})],Bo.prototype,"size",void 0),ee([ft({mode:"boolean"})],Bo.prototype,"spellcheck",void 0),ee([F],Bo.prototype,"defaultSlottedNodes",void 0);class jo{}Be(jo,ii),Be(Bo,Zt,jo);class Uo extends ze{}class qo extends(ui(Uo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class _o extends qo{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.displayText=""}maxChanged(t,e){const i=parseFloat(e);void 0!==i&&(void 0!==this.min&&i<this.min?(this.max=this.min,this.min=i):this.max=i),this.updateValue(this.value)}minChanged(t,e){const i=parseFloat(e);void 0!==i&&(void 0!==this.max&&i>this.max?(this.min=this.max,this.max=i):this.min=i),this.updateValue(this.value)}valueChanged(t,e){super.valueChanged(t,e),this.updateValue(e)}updateValue(t){""===t||isNaN(parseFloat(t))?t="":(t=parseFloat(t),void 0!==this.min&&t<this.min?t=this.min:void 0!==this.max&&t>this.max&&(t=this.max),t=parseFloat(t.toPrecision(12))),this.proxy instanceof HTMLInputElement&&(this.proxy.value=t),t!=this.value&&(this.value=t.toString(),this.$emit("input"),this.$emit("change"))}stepUp(){const t=this.step+(parseFloat(this.value)||0);this.updateValue(t)}stepDown(){const t=(parseFloat(this.value)||0)-this.step;this.updateValue(t)}connectedCallback(){super.connectedCallback(),this.displayText=this.value,this.proxy.setAttribute("type","number"),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}}ee([ft({attribute:"readonly",mode:"boolean"})],_o.prototype,"readOnly",void 0),ee([ft({mode:"boolean"})],_o.prototype,"autofocus",void 0),ee([ft({attribute:"hide-step",mode:"boolean"})],_o.prototype,"hideStep",void 0),ee([ft],_o.prototype,"placeholder",void 0),ee([ft],_o.prototype,"list",void 0),ee([ft({converter:pt})],_o.prototype,"maxlength",void 0),ee([ft({converter:pt})],_o.prototype,"minlength",void 0),ee([ft({converter:pt})],_o.prototype,"size",void 0),ee([ft({converter:pt})],_o.prototype,"step",void 0),ee([ft({converter:pt})],_o.prototype,"max",void 0),ee([ft({converter:pt})],_o.prototype,"min",void 0),ee([F],_o.prototype,"displayText",void 0),ee([F],_o.prototype,"defaultSlottedNodes",void 0),Be(_o,Zt,jo);class Go extends ze{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}ee([ft({converter:pt})],Go.prototype,"value",void 0),ee([ft({converter:pt})],Go.prototype,"min",void 0),ee([ft({converter:pt})],Go.prototype,"max",void 0),ee([ft({mode:"boolean"})],Go.prototype,"paused",void 0),ee([F],Go.prototype,"percentComplete",void 0);class Wo extends ze{constructor(){super(...arguments),this.orientation=Ue.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||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 i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in We&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ke.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ke.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("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(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=ni(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ee([ft({attribute:"readonly",mode:"boolean"})],Wo.prototype,"readOnly",void 0),ee([ft({attribute:"disabled",mode:"boolean"})],Wo.prototype,"disabled",void 0),ee([ft],Wo.prototype,"name",void 0),ee([ft],Wo.prototype,"value",void 0),ee([ft],Wo.prototype,"orientation",void 0),ee([F],Wo.prototype,"childItems",void 0),ee([F],Wo.prototype,"slottedRadioButtons",void 0);class Ko extends ze{}class Xo extends(ui(Ko)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Yo extends Xo{constructor(){var t;super(),this.initialValue="on",this.checkedAttribute=!1,this.dirtyChecked=!1,this.formResetCallback=()=>{this.checked=!!this.defaultChecked,this.dirtyChecked=!1},this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}checkedChanged(){this.$fastController.isConnected&&(this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.$emit("change"),this.validate())}connectedCallback(){var t,e;super.connectedCallback(),this.proxy.setAttribute("type","radio"),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.updateForm(),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ee([ft({attribute:"readonly",mode:"boolean"})],Yo.prototype,"readOnly",void 0),ee([F],Yo.prototype,"name",void 0),ee([ft({attribute:"checked",mode:"boolean"})],Yo.prototype,"checkedAttribute",void 0),ee([F],Yo.prototype,"defaultSlottedNodes",void 0),ee([F],Yo.prototype,"defaultChecked",void 0),ee([F],Yo.prototype,"checked",void 0);class Qo extends ze{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&this.setStops()}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e<=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}ee([ft({converter:pt})],Qo.prototype,"speed",void 0),ee([ft],Qo.prototype,"duration",void 0),ee([ft],Qo.prototype,"easing",void 0),ee([ft({attribute:"aria-hidden",converter:ut})],Qo.prototype,"flippersHiddenFromAT",void 0),ee([F],Qo.prototype,"scrolling",void 0),ee([F],Qo.prototype,"scrollItems",void 0),ee([ft({attribute:"view"})],Qo.prototype,"view",void 0);class Zo extends Ai{}class Jo extends(ui(Zo)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class ts extends Jo{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.role=Ei.combobox,this.position=Si.below,this.maxHeight=0,this.displayValue="",this.formResetCallback=()=>{this.setProxyOptions(),this.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}}openChanged(){this.ariaExpanded=this.open?"true":"false",this.open&&(this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex)}get value(){return C.track(this,"value"),this._value}set value(t){const e=""+this._value;if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}e!==t&&(this._value=t,super.valueChanged(e,t),C.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Si.above:Si.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Si.above?~~t.top:~~e}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.appendChild(e)}))}keydownHandler(t){super.keydownHandler(t);switch(t.key||t.key.charCodeAt(0)){case" ":this.typeAheadExpired&&(t.preventDefault(),this.open=!this.open);break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;t.preventDefault(),this.open=!1}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!0}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute}}ee([ft({attribute:"open",mode:"boolean"})],ts.prototype,"open",void 0),ee([ft({attribute:"position"})],ts.prototype,"positionAttribute",void 0),ee([F],ts.prototype,"position",void 0),ee([F],ts.prototype,"maxHeight",void 0),ee([F],ts.prototype,"displayValue",void 0);class es{}ee([F],es.prototype,"ariaExpanded",void 0),ee([ft({attribute:"aria-pressed",mode:"fromView"})],es.prototype,"ariaPressed",void 0),Be(es,ii),Be(ts,Zt,es);class is extends ze{constructor(){super(...arguments),this.shape="rect"}}ee([ft],is.prototype,"fill",void 0),ee([ft],is.prototype,"shape",void 0),ee([ft],is.prototype,"pattern",void 0),ee([ft({mode:"boolean"})],is.prototype,"shimmer",void 0);function os(t,e,i,o){let s=Ye(0,1,(t-e)/(i-e));return o===Ke.rtl&&(s=1-s),s}const ss={min:0,max:0,direction:Ke.ltr,orientation:Ue.horizontal,disabled:!1};class ns extends ze{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ke.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ke.ltr,this.sliderOrientation=s||Ue.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=ss.direction||Ke.ltr,this.sliderOrientation=ss.orientation||Ue.horizontal,this.sliderMaxPosition=ss.max,this.sliderMinPosition=ss.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ke.ltr,e=os(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return o===Number.NaN&&i===Number.NaN&&(i=50,o=50),this.sliderOrientation===Ue.horizontal?t===Ke.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=C.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}ee([F],ns.prototype,"positionStyle",void 0),ee([ft],ns.prototype,"position",void 0),ee([ft({attribute:"hide-mark",mode:"boolean"})],ns.prototype,"hideMark",void 0),ee([ft({attribute:"disabled",mode:"boolean"})],ns.prototype,"disabled",void 0),ee([F],ns.prototype,"sliderOrientation",void 0),ee([F],ns.prototype,"sliderMinPosition",void 0),ee([F],ns.prototype,"sliderMaxPosition",void 0),ee([F],ns.prototype,"sliderDirection",void 0);class rs extends ze{}class as extends(ui(rs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var ls;!function(t){t.singleValue="single-value"}(ls||(ls={}));class cs extends as{constructor(){super(...arguments),this.direction=Ke.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.step=1,this.orientation=Ue.horizontal,this.mode=ls.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown),this.thumb[e]("touchstart",this.handleThumbMouseDown),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.preventDefault(),t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),window[e]("touchmove",this.handleMouseMove),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Ue.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=os(t,this.orientation===Ue.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Ue.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===Ue.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&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=ni(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ke.rtl&&this.orientation!==Ue.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==Ke.rtl&&this.orientation!==Ue.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=os(Number(this.value),Number(this.min),Number(this.max),t),i=Math.round(100*(1-e));this.orientation===Ue.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%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("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}ee([ft({attribute:"readonly",mode:"boolean"})],cs.prototype,"readOnly",void 0),ee([F],cs.prototype,"direction",void 0),ee([F],cs.prototype,"isDragging",void 0),ee([F],cs.prototype,"position",void 0),ee([F],cs.prototype,"trackWidth",void 0),ee([F],cs.prototype,"trackMinWidth",void 0),ee([F],cs.prototype,"trackHeight",void 0),ee([F],cs.prototype,"trackLeft",void 0),ee([F],cs.prototype,"trackMinHeight",void 0),ee([F],cs.prototype,"valueTextFormatter",void 0),ee([ft({converter:pt})],cs.prototype,"min",void 0),ee([ft({converter:pt})],cs.prototype,"max",void 0),ee([ft({converter:pt})],cs.prototype,"step",void 0),ee([ft],cs.prototype,"orientation",void 0),ee([ft],cs.prototype,"mode",void 0);class hs extends ze{}class ds extends(ui(hs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class us extends ds{constructor(){super(),this.initialValue="on",this.dirtyChecked=!1,this.formResetCallback=()=>{this.checked=this.checkedAttribute,this.dirtyChecked=!1},this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.defaultChecked=!!this.checkedAttribute,this.checked=this.defaultChecked}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(){this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.$emit("change"),this.checked?this.classList.add("checked"):this.classList.remove("checked"),this.validate()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","checkbox"),this.updateForm()}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}}ee([ft({attribute:"readonly",mode:"boolean"})],us.prototype,"readOnly",void 0),ee([ft({attribute:"checked",mode:"boolean"})],us.prototype,"checkedAttribute",void 0),ee([F],us.prototype,"defaultSlottedNodes",void 0),ee([F],us.prototype,"defaultChecked",void 0),ee([F],us.prototype,"checked",void 0);class ps extends ze{}class gs extends ze{}ee([ft({mode:"boolean"})],gs.prototype,"disabled",void 0);var fs,bs;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(fs||(fs={}));class ms extends ze{constructor(){super(...arguments),this.orientation=fs.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],o=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?"tab-"+(i+1):t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?"panel-"+(i+1):o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof o?"panel-"+(e+1):o),t.setAttribute("aria-labelledby","string"!=typeof i?"tab-"+(e+1):i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>t.getAttribute("id"))}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id"))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===fs.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Xe(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ee([ft],ms.prototype,"orientation",void 0),ee([ft],ms.prototype,"activeid",void 0),ee([F],ms.prototype,"tabs",void 0),ee([F],ms.prototype,"tabpanels",void 0),ee([ft({mode:"boolean"})],ms.prototype,"activeindicator",void 0),ee([F],ms.prototype,"activeIndicatorRef",void 0),ee([F],ms.prototype,"showActiveIndicator",void 0),Be(ms,Zt);class vs extends ze{}class ys extends(ui(vs)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(bs||(bs={}));class xs extends ys{constructor(){super(...arguments),this.resize=bs.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}ee([ft({mode:"boolean"})],xs.prototype,"readOnly",void 0),ee([ft],xs.prototype,"resize",void 0),ee([ft({mode:"boolean"})],xs.prototype,"autofocus",void 0),ee([ft({attribute:"form"})],xs.prototype,"formId",void 0),ee([ft],xs.prototype,"list",void 0),ee([ft({converter:pt})],xs.prototype,"maxlength",void 0),ee([ft({converter:pt})],xs.prototype,"minlength",void 0),ee([ft],xs.prototype,"name",void 0),ee([ft],xs.prototype,"placeholder",void 0),ee([ft({converter:pt,mode:"fromView"})],xs.prototype,"cols",void 0),ee([ft({converter:pt,mode:"fromView"})],xs.prototype,"rows",void 0),ee([ft({mode:"boolean"})],xs.prototype,"spellcheck",void 0),ee([F],xs.prototype,"defaultSlottedNodes",void 0),Be(xs,jo);const $s=Object.freeze({[We.ArrowUp]:{[Ue.vertical]:-1},[We.ArrowDown]:{[Ue.vertical]:1},[We.ArrowLeft]:{[Ue.horizontal]:{[Ke.ltr]:-1,[Ke.rtl]:1}},[We.ArrowRight]:{[Ue.horizontal]:{[Ke.ltr]:1,[Ke.rtl]:-1}}});class ws extends ze{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ke.ltr,this.orientation=Ue.horizontal}get activeIndex(){return C.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=Ye(0,this.focusableElements.length-1,t),C.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=ni(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=$s[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=$s[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in We)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(ws.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Do(t));return Do(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(ws.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}ee([F],ws.prototype,"direction",void 0),ee([ft],ws.prototype,"orientation",void 0),ee([F],ws.prototype,"slottedItems",void 0),ee([F],ws.prototype,"slottedLabel",void 0);class ks{}ee([ft({attribute:"aria-labelledby"})],ks.prototype,"ariaLabelledby",void 0),ee([ft({attribute:"aria-label"})],ks.prototype,"ariaLabel",void 0),Be(ks,ii),Be(ws,Zt,ks);var Cs;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end"}(Cs||(Cs={}));class Is extends ze{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="true",this.verticalInset="false",this.horizontalScaling="anchor",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ke.ltr,this.delayTimer=null,this.isAnchorHoveredFocused=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition)},this.handleAnchorMouseOver=t=>{this.startHoverTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.handleAnchorFocusIn=t=>{this.startHoverTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.startHoverTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.delayTimer&&(this.delayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearDelayTimer=()=>{null!==this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=ni(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&this.updateLayout()}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startHoverTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateLayout(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.position){case Cs.top:case Cs.bottom:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition=void 0,this.horizontalInset="true",this.verticalInset="false",this.horizontalScaling="anchor",this.verticalScaling="content";break;case Cs.right:case Cs.left:case Cs.start:case Cs.end:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=this.position,this.horizontalInset="false",this.verticalInset="true",this.horizontalScaling="content",this.verticalScaling="anchor";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.horizontalInset="true",this.verticalInset="false",this.horizontalScaling="anchor",this.verticalScaling="content"}}}ee([ft({mode:"boolean"})],Is.prototype,"visible",void 0),ee([ft],Is.prototype,"anchor",void 0),ee([ft],Is.prototype,"delay",void 0),ee([ft],Is.prototype,"position",void 0),ee([ft({attribute:"auto-update-mode"})],Is.prototype,"autoUpdateMode",void 0),ee([ft({attribute:"horizontal-viewport-lock"})],Is.prototype,"horizontalViewportLock",void 0),ee([ft({attribute:"vertical-viewport-lock"})],Is.prototype,"verticalViewportLock",void 0),ee([F],Is.prototype,"anchorElement",void 0),ee([F],Is.prototype,"viewportElement",void 0),ee([F],Is.prototype,"verticalPositioningMode",void 0),ee([F],Is.prototype,"horizontalPositioningMode",void 0),ee([F],Is.prototype,"horizontalInset",void 0),ee([F],Is.prototype,"verticalInset",void 0),ee([F],Is.prototype,"horizontalScaling",void 0),ee([F],Is.prototype,"verticalScaling",void 0),ee([F],Is.prototype,"verticalDefaultPosition",void 0),ee([F],Is.prototype,"horizontalDefaultPosition",void 0),ee([F],Is.prototype,"tooltipVisible",void 0),ee([F],Is.prototype,"currentDirection",void 0);function Ts(t){return qe(t)&&"treeitem"===t.getAttribute("role")}class Fs extends ze{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.handleExpandCollapseButtonClick=t=>{this.disabled||(t.preventDefault(),this.setExpanded(!this.expanded))},this.handleClick=t=>{if(!t.defaultPrevented){return t.composedPath().find(t=>t instanceof HTMLElement&&Ts(t))===this&&this.handleSelected(),!0}},this.isNestedItem=()=>Ts(this.parentElement)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Ts(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Ts(t));return t?t.length:0}handleSelected(t){this.$emit("selected-change",t)}setExpanded(t){this.expanded=t,this.$emit("expanded-change",this)}}ee([ft({mode:"boolean"})],Fs.prototype,"expanded",void 0),ee([ft({mode:"boolean"})],Fs.prototype,"selected",void 0),ee([ft({mode:"boolean"})],Fs.prototype,"disabled",void 0),ee([F],Fs.prototype,"focusable",void 0),ee([F],Fs.prototype,"childItems",void 0),ee([F],Fs.prototype,"items",void 0),ee([F],Fs.prototype,"nested",void 0),ee([F],Fs.prototype,"renderCollapsedChildren",void 0),Be(Fs,Zt);class Ds extends ze{constructor(){super(...arguments),this.handleBlur=t=>{const{relatedTarget:e,target:i}=t;i instanceof HTMLElement&&(null===e||!this.contains(e))&&this.setAttribute("tabindex","0")},this.handleFocus=t=>{const{relatedTarget:e,target:i}=t;if(i instanceof HTMLElement&&(null===e||!this.contains(e))){const t=this;i===this&&this.currentFocused instanceof Fs&&(Fs.focusItem(this.currentFocused),this.currentFocused.setAttribute("tabindex","0")),t.setAttribute("tabindex","-1")}},this.handleKeyDown=t=>{if(!this.treeItems)return!0;switch(t.key){case"Home":this.treeItems&&this.treeItems.length&&(Fs.focusItem(this.treeItems[0]),this.treeItems[0].setAttribute("tabindex","0"));break;case"End":this.treeItems&&this.treeItems.length&&(Fs.focusItem(this.treeItems[this.treeItems.length-1]),this.treeItems[this.treeItems.length-1].setAttribute("tabindex","0"));break;case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Fs&&e.childItemLength()>0&&(e.expanded=!1)}break;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Fs&&e.childItemLength()>0&&(e.expanded=!0)}break;case"ArrowDown":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target);break;case"ArrowUp":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target);break;case"Enter":this.handleSelected(t.target);break;default:return!0}},this.setItems=()=>{let t=this.treeItems.findIndex(this.isSelectedElement);-1===t&&(t=this.treeItems.findIndex(this.isFocusableElement));for(let e=0;e<this.treeItems.length;e++)e===t&&(this.treeItems[e].setAttribute("tabindex","0"),this.currentFocused=this.treeItems[e]),this.treeItems[e].addEventListener("selected-change",this.handleItemSelected)},this.resetItems=()=>{for(let t=0;t<this.treeItems.length;t++)this.treeItems[t].removeEventListener("selected-change",this.handleItemSelected)},this.handleItemSelected=t=>{const e=t.target;e!==this.currentSelected&&this.handleSelected(e)},this.isFocusableElement=t=>Ts(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(t,e){this.$fastController.isConnected&&(this.resetItems(),this.treeItems=this.getVisibleNodes(),this.setItems(),this.checkForNestedItems()&&this.slottedTreeItems.forEach(t=>{Ts(t)&&(t.nested=!0)}))}checkForNestedItems(){return this.slottedTreeItems.some(t=>Ts(t)&&t.querySelector("[role='treeitem']"))}connectedCallback(){super.connectedCallback(),this.treeItems=this.getVisibleNodes(),d.queueUpdate(()=>{const t=this.treeView.querySelector("[aria-selected='true']");t&&(this.currentSelected=t)})}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i.indexOf(e),s=i[o];(t<0&&o>0||t>0&&o<i.length-1)&&s.setAttribute("tabindex","-1");const n=i[i.indexOf(e)+t];qe(n)&&(Fs.focusItem(n),n.setAttribute("tabindex","0"),this.currentFocused=n)}handleSelected(t){this.currentSelected!==t&&(t.setAttribute("tabindex","0"),this.currentSelected instanceof Fs&&this.currentFocused&&(t.disabled||(this.currentSelected.selected=!1),this.currentFocused.setAttribute("tabindex","-1")),this.currentSelected||this.slottedTreeItems.forEach(t=>{t instanceof Fs&&t.setAttribute("tabindex","-1")}),t.disabled||(t.selected=!0,this.currentSelected=t),this.currentFocused=t)}getVisibleNodes(){return function(t,e){if(!qe(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}var Ss,Es;function Rs(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Os(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Ls(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Vs(t){return t*(Math.PI/180)}function As(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Ps(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}function Hs(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}ee([ft({attribute:"render-collapsed-nodes"})],Ds.prototype,"renderCollapsedNodes",void 0),ee([F],Ds.prototype,"currentSelected",void 0),ee([F],Ds.prototype,"nested",void 0),ee([F],Ds.prototype,"slottedTreeItems",void 0),function(t){t.ltr="ltr",t.rtl="rtl"}(Ss||(Ss={})),function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(Es||(Es={}));class zs{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new zs(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new zs(Hs(this.h,t),Hs(this.s,t),Hs(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Ms{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new Ms(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new Ms(Hs(this.h,t),Hs(this.s,t),Hs(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class Ns{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Ns(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Ns(Hs(this.l,t),Hs(this.a,t),Hs(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Ns.epsilon=216/24389,Ns.kappa=24389/27;class Bs{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new Bs(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new Bs(Hs(this.l,t),Hs(this.c,t),Hs(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class js{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new js(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Ls(this.r,0,255))},${Math.round(Ls(this.g,0,255))},${Math.round(Ls(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Ls(this.r,0,255))},${Math.round(Ls(this.g,0,255))},${Math.round(Ls(this.b,0,255))},${Rs(this.a,0,1)})`}roundToPrecision(t){return new js(Hs(this.r,t),Hs(this.g,t),Hs(this.b,t),Hs(this.a,t))}clamp(){return new js(Rs(this.r,0,1),Rs(this.g,0,1),Rs(this.b,0,1),Rs(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(Rs(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Ls(t,0,255))}}class Us{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new Us(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new Us(Hs(this.x,t),Hs(this.y,t),Hs(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function qs(t){return.2126*t.r+.7152*t.g+.0722*t.b}function _s(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return qs(new js(e(t.r),e(t.g),e(t.b),1))}Us.whitePoint=new Us(.95047,1,1.08883);const Gs=(t,e)=>(t+.05)/(e+.05);function Ws(t,e){const i=_s(t),o=_s(e);return i>o?Gs(i,o):Gs(o,i)}function Ks(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new zs(s,r,n)}function Xs(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new js(n+s,r+s,a+s,e)}function Ys(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==e&&(s=i/e),new Ms(o,s,e)}function Qs(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=Math.atan2(t.b,t.a)*(180/Math.PI)),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new Bs(t.l,i,e)}function Zs(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new Us(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function Js(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new js(o,s,n,e)}function tn(t){return function(t){function e(t){return t>Ns.epsilon?Math.pow(t,1/3):(Ns.kappa*t+16)/116}const i=e(t.x/Us.whitePoint.x),o=e(t.y/Us.whitePoint.y),s=e(t.z/Us.whitePoint.z);return new Ns(116*o-16,500*(i-o),200*(o-s))}(Zs(t))}function en(t,e=1){return Js(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Ns.epsilon?s:(116*i-16)/Ns.kappa;let l=0;l=t.l>Ns.epsilon*Ns.kappa?n:t.l/Ns.kappa;let c=0;return c=r>Ns.epsilon?r:(116*o-16)/Ns.kappa,a=Us.whitePoint.x*a,l=Us.whitePoint.y*l,c=Us.whitePoint.z*c,new Us(a,l,c)}(t),e)}function on(t){return Qs(tn(t))}function sn(t,e=1){return en(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos(Vs(t.h))*t.c,i=Math.sin(Vs(t.h))*t.c),new Ns(t.l,e,i)}(t),e)}function nn(t,e,i=18){const o=on(t);let s=o.c+e*i;return s<0&&(s=0),sn(new Bs(o.l,s,o.h))}function rn(t,e){return t*e}function an(t,e){return new js(rn(t.r,e.r),rn(t.g,e.g),rn(t.b,e.b),1)}function ln(t,e){return Rs(t<.5?2*e*t:1-2*(1-e)*(1-t),0,1)}function cn(t,e){return new js(ln(t.r,e.r),ln(t.g,e.g),ln(t.b,e.b),1)}var hn,dn;function un(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case dn.HSL:return Xs(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new zs(Ps(t,e.h,i.h),As(t,e.s,i.s),As(t,e.l,i.l))}(t,Ks(i),Ks(o)));case dn.HSV:return function(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new js(n+s,r+s,a+s,e)}(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Ms(Ps(t,e.h,i.h),As(t,e.s,i.s),As(t,e.v,i.v))}(t,Ys(i),Ys(o)));case dn.XYZ:return Js(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Us(As(t,e.x,i.x),As(t,e.y,i.y),As(t,e.z,i.z))}(t,Zs(i),Zs(o)));case dn.LAB:return en(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Ns(As(t,e.l,i.l),As(t,e.a,i.a),As(t,e.b,i.b))}(t,tn(i),tn(o)));case dn.LCH:return sn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Bs(As(t,e.l,i.l),As(t,e.c,i.c),Ps(t,e.h,i.h))}(t,on(i),on(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new js(As(t,e.r,i.r),As(t,e.g,i.g),As(t,e.b,i.b),As(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(hn||(hn={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(dn||(dn={}));class pn{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i<t.length;i++)0===i?e[i]={color:t[i],position:0}:i===t.length-1?e[i]={color:t[i],position:1}:e[i]={color:t[i],position:i*(1/(t.length-1))};return new pn(e)}getColor(t,e=dn.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(i=e);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return un((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=dn.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new pn([{color:this.getColor(t,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new pn([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e<o.length;e++)n[e]={color:o[e].color,position:(o[e].position-t)/s};return new pn(n)}findNextColor(t,e,i=!1,o=dn.RGB,s=.005,n=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const r=this.getColor(t,o),a=i?0:1;if(Ws(r,this.getColor(a,o))<=e)return a;let l=i?0:t,c=i?t:0,h=a,d=0;for(;d<=n;){h=Math.abs(c-l)/2+l;const t=Ws(r,this.getColor(h,o));if(Math.abs(t-e)<=s)return h;t>e?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new pn(t)}sortColorScaleStops(t){return t.sort((t,e)=>{const i=t.position,o=e.position;return i<o?-1:i>o?1:0})}}const gn=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function fn(t){const e=gn.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new js(Os((16711680&o)>>>16,0,255),Os((65280&o)>>>8,0,255),Os(255&o,0,255),1)}class bn{constructor(t){this.config=Object.assign({},bn.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=Ks(this.config.baseColor),e=new pn([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=e.getColor(0),o=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(i=nn(i,this.config.saturationLight),o=nn(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=an(this.config.baseColor,i);i=un(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=an(this.config.baseColor,o);o=un(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=cn(this.config.baseColor,i);i=un(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=cn(this.config.baseColor,o);o=un(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new pn([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new pn([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new pn([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new pn([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}bn.defaultPaletteConfig={baseColor:fn("#808080"),steps:11,interpolationMode:dn.RGB,scaleColorLight:new js(1,1,1,1),scaleColorDark:new js(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},bn.greyscalePaletteConfig={baseColor:fn("#808080"),steps:11,interpolationMode:dn.RGB,scaleColorLight:new js(1,1,1,1),scaleColorDark:new js(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},bn.defaultPaletteConfig.scaleColorLight,bn.defaultPaletteConfig.scaleColorDark;class mn{constructor(t){this.palette=[],this.config=Object.assign({},mn.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=new js(.14,.14,.14,1),i=new bn(Object.assign(Object.assign({},bn.greyscalePaletteConfig),{baseColor:e,baseScalePosition:86/94,steps:t})).palette,o=(qs(this.config.baseColor)+Ks(this.config.baseColor).l)/2,s=this.matchRelativeLuminanceIndex(o,i)/(t-1),n=this.matchRelativeLuminanceIndex(.14,i)/(t-1),r=Ks(this.config.baseColor),a=Xs(zs.fromObject({h:r.h,s:r.s,l:.14})),l=Xs(zs.fromObject({h:r.h,s:r.s,l:.06})),c=new Array(5);c[0]={position:0,color:new js(1,1,1,1)},c[1]={position:s,color:this.config.baseColor},c[2]={position:n,color:a},c[3]={position:.99,color:l},c[4]={position:1,color:new js(0,0,0,1)};const h=new pn(c);this.palette=new Array(t);for(let e=0;e<t;e++){const i=h.getColor(e/(t-1),dn.RGB);this.palette[e]=i}}matchRelativeLuminanceIndex(t,e){let i=Number.MAX_VALUE,o=0,s=0;const n=e.length;for(;s<n;s++){const n=Math.abs(qs(e[s])-t);n<i&&(i=n,o=s)}return o}}function vn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}mn.defaultPaletteConfig={baseColor:fn("#808080"),steps:94};const yn=Object.freeze({create:(t,e,i)=>new xn(t,e,i),from:t=>new xn(t.r,t.g,t.b)});class xn extends js{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=vn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=_s(this)}static fromObject(t){return new xn(t.r,t.g,t.b)}}const $n=(-.1+Math.sqrt(.21))/2;function wn(t){return t.relativeLuminance<=$n}function kn(t){return wn(t)?-1:1}const Cn=Object.freeze({create:t=>In.from(t)});class In{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=kn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>vn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[Rs(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new In(t,Object.freeze(new mn({baseColor:js.fromObject(t)}).palette.map(t=>{const e=fn(t.toStringHexRGB());return yn.create(e.r,e.g,e.b)})))}}const Tn=yn.create(1,1,1),Fn=yn.create(0,0,0),Dn=yn.create(.5,.5,.5),Sn=fn("#0078D4"),En=yn.create(Sn.r,Sn.g,Sn.b);function Rn(t){return yn.create(t,t,t)}var On;function Ln(t,e,i,o,s,n){return Math.max(t.closestIndexOf(Rn(e))+i,o,s,n)}!function(t){t[t.LightMode=1]="LightMode",t[t.DarkMode=.23]="DarkMode"}(On||(On={}));const{create:Vn}=vo,An=Vn("direction").withDefault(Ss.ltr),Pn=Vn("disabled-opacity").withDefault(.3),Hn=Vn("base-height-multiplier").withDefault(8),zn=Vn("base-horizontal-spacing-multiplier").withDefault(3),Mn=Vn("density").withDefault(0),Nn=Vn("design-unit").withDefault(4),Bn=Vn("control-corner-radius").withDefault(4),jn=Vn("layer-corner-radius").withDefault(4),Un=Vn("stroke-width").withDefault(1),qn=Vn("focus-stroke-width").withDefault(2),_n=Vn("body-font").withDefault("Segoe UI, sans-serif"),Gn=Vn("type-ramp-base-font-size").withDefault("14px"),Wn=Vn("type-ramp-base-line-height").withDefault("20px"),Kn=Vn("type-ramp-minus-1-font-size").withDefault("12px"),Xn=Vn("type-ramp-minus-1-line-height").withDefault("16px"),Yn=Vn("type-ramp-minus-2-font-size").withDefault("10px"),Qn=Vn("type-ramp-minus-2-line-height").withDefault("14px"),Zn=Vn("type-ramp-plus-1-font-size").withDefault("16px"),Jn=Vn("type-ramp-plus-1-line-height").withDefault("22px"),tr=Vn("type-ramp-plus-2-font-size").withDefault("20px"),er=Vn("type-ramp-plus-2-line-height").withDefault("28px"),ir=Vn("type-ramp-plus-3-font-size").withDefault("24px"),or=Vn("type-ramp-plus-3-line-height").withDefault("32px"),sr=Vn("type-ramp-plus-4-font-size").withDefault("28px"),nr=Vn("type-ramp-plus-4-line-height").withDefault("36px"),rr=Vn("type-ramp-plus-5-font-size").withDefault("32px"),ar=Vn("type-ramp-plus-5-line-height").withDefault("40px"),lr=Vn("type-ramp-plus-6-font-size").withDefault("40px"),cr=Vn("type-ramp-plus-6-line-height").withDefault("52px"),hr=Vn("base-layer-luminance").withDefault(On.LightMode),dr=Vn("accent-fill-rest-delta").withDefault(0),ur=Vn("accent-fill-hover-delta").withDefault(4),pr=Vn("accent-fill-active-delta").withDefault(-5),gr=Vn("accent-fill-focus-delta").withDefault(0),fr=Vn("accent-foreground-rest-delta").withDefault(0),br=Vn("accent-foreground-hover-delta").withDefault(6),mr=Vn("accent-foreground-active-delta").withDefault(-4),vr=Vn("accent-foreground-focus-delta").withDefault(0),yr=Vn("neutral-fill-rest-delta").withDefault(7),xr=Vn("neutral-fill-hover-delta").withDefault(10),$r=Vn("neutral-fill-active-delta").withDefault(5),wr=Vn("neutral-fill-focus-delta").withDefault(0),kr=Vn("neutral-fill-input-rest-delta").withDefault(0),Cr=Vn("neutral-fill-input-hover-delta").withDefault(0),Ir=Vn("neutral-fill-input-active-delta").withDefault(0),Tr=Vn("neutral-fill-input-focus-delta").withDefault(0),Fr=Vn("neutral-fill-inverse-rest-delta").withDefault(0),Dr=Vn("neutral-fill-inverse-hover-delta").withDefault(-3),Sr=Vn("neutral-fill-inverse-active-delta").withDefault(7),Er=Vn("neutral-fill-inverse-focus-delta").withDefault(0),Rr=Vn("neutral-fill-layer-rest-delta").withDefault(3),Or=Vn("neutral-fill-stealth-rest-delta").withDefault(0),Lr=Vn("neutral-fill-stealth-hover-delta").withDefault(5),Vr=Vn("neutral-fill-stealth-active-delta").withDefault(3),Ar=Vn("neutral-fill-stealth-focus-delta").withDefault(0),Pr=Vn("neutral-fill-strong-rest-delta").withDefault(0),Hr=Vn("neutral-fill-strong-hover-delta").withDefault(8),zr=Vn("neutral-fill-strong-active-delta").withDefault(-5),Mr=Vn("neutral-fill-strong-focus-delta").withDefault(0),Nr=Vn("neutral-stroke-rest-delta").withDefault(25),Br=Vn("neutral-stroke-hover-delta").withDefault(40),jr=Vn("neutral-stroke-active-delta").withDefault(16),Ur=Vn("neutral-stroke-focus-delta").withDefault(25),qr=Vn("neutral-stroke-divider-rest-delta").withDefault(8),_r=Vn("neutral-stroke-strong-hover-delta").withDefault(40),Gr=Vn("neutral-stroke-strong-active-delta").withDefault(16),Wr=Vn("neutral-stroke-strong-focus-delta").withDefault(25),Kr=Vn({name:"neutral-palette",cssCustomPropertyName:null}).withDefault(Cn.create(Dn)),Xr=Vn({name:"accent-palette",cssCustomPropertyName:null}).withDefault(Cn.create(En)),Yr=Vn({name:"neutral-layer-card-container-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i){const o=Rs(t.closestIndexOf(Rn(e))-i,0,t.swatches.length-1);return t.get(o+i)}(Kr.getValueFor(t),hr.getValueFor(t),Rr.getValueFor(t))}),Qr=Vn("neutral-layer-card-container").withDefault(t=>Yr.getValueFor(t).evaluate(t)),Zr=Vn({name:"neutral-layer-floating-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(Rn(e))-i;return t.get(o-i)}(Kr.getValueFor(t),hr.getValueFor(t),Rr.getValueFor(t))}),Jr=Vn("neutral-layer-floating").withDefault(t=>Zr.getValueFor(t).evaluate(t)),ta=Vn({name:"neutral-layer-1-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(Rn(e)))}(Kr.getValueFor(t),hr.getValueFor(t))}),ea=Vn("neutral-layer-1").withDefault(t=>ta.getValueFor(t).evaluate(t)),ia=Vn({name:"neutral-layer-2-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Kr.getValueFor(t),i=hr.getValueFor(t),o=Rr.getValueFor(t),s=yr.getValueFor(t),n=xr.getValueFor(t),r=$r.getValueFor(t),e.get(Ln(e,i,o,s,n,r));var e,i,o,s,n,r}}),oa=Vn("neutral-layer-2").withDefault(t=>ia.getValueFor(t).evaluate(t)),sa=Vn({name:"neutral-layer-3-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Kr.getValueFor(t),i=hr.getValueFor(t),o=Rr.getValueFor(t),s=yr.getValueFor(t),n=xr.getValueFor(t),r=$r.getValueFor(t),e.get(Ln(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),na=Vn("neutral-layer-3").withDefault(t=>sa.getValueFor(t).evaluate(t)),ra=Vn({name:"neutral-layer-4-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Kr.getValueFor(t),i=hr.getValueFor(t),o=Rr.getValueFor(t),s=yr.getValueFor(t),n=xr.getValueFor(t),r=$r.getValueFor(t),e.get(Ln(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),aa=Vn("neutral-layer-4").withDefault(t=>ra.getValueFor(t).evaluate(t)),la=Vn("fill-color").withDefault(t=>ea.getValueFor(t));var ca;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(ca||(ca={}));const ha=Vn({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>(ca.normal,(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=t.closestIndexOf(c),d=h+1*o,u=h+1*s,p=h+1*n;return{rest:t.get(h),hover:t.get(d),active:t.get(u),focus:t.get(p)}}(Xr.getValueFor(t),Kr.getValueFor(t),e||la.getValueFor(t),ur.getValueFor(t),pr.getValueFor(t),gr.getValueFor(t),yr.getValueFor(t),xr.getValueFor(t),$r.getValueFor(t)))(t,e)}),da=Vn("accent-fill-rest").withDefault(t=>ha.getValueFor(t).evaluate(t).rest),ua=Vn("accent-fill-hover").withDefault(t=>ha.getValueFor(t).evaluate(t).hover),pa=Vn("accent-fill-active").withDefault(t=>ha.getValueFor(t).evaluate(t).active),ga=Vn("accent-fill-focus").withDefault(t=>ha.getValueFor(t).evaluate(t).focus),fa=t=>(e,i)=>function(t,e){return t.contrast(Tn)>=e?Tn:Fn}(i||da.getValueFor(e),t),ba=Vn({name:"foreground-on-accent-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>fa(ca.normal)(t,e)}),ma=Vn("foreground-on-accent-rest").withDefault(t=>ba.getValueFor(t).evaluate(t,da.getValueFor(t))),va=Vn("foreground-on-accent-hover").withDefault(t=>ba.getValueFor(t).evaluate(t,ua.getValueFor(t))),ya=Vn("foreground-on-accent-active").withDefault(t=>ba.getValueFor(t).evaluate(t,pa.getValueFor(t))),xa=Vn("foreground-on-accent-focus").withDefault(t=>ba.getValueFor(t).evaluate(t,ga.getValueFor(t))),$a=Vn({name:"foreground-on-accent-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>fa(ca.large)(t,e)}),wa=Vn("foreground-on-accent-rest-large").withDefault(t=>$a.getValueFor(t).evaluate(t)),ka=Vn("foreground-on-accent-hover-large").withDefault(t=>$a.getValueFor(t).evaluate(t,ua.getValueFor(t))),Ca=Vn("foreground-on-accent-active-large").withDefault(t=>$a.getValueFor(t).evaluate(t,pa.getValueFor(t))),Ia=Vn("foreground-on-accent-focus-large").withDefault(t=>$a.getValueFor(t).evaluate(t,ga.getValueFor(t))),Ta=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=kn(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,f;return(1===c?o<s:c*o>c*s)?(g=u,f=p):(g=p,f=u),{rest:t.get(g),hover:t.get(f),active:t.get(g+c*n),focus:t.get(g+c*r)}}(Xr.getValueFor(e),i||la.getValueFor(e),t,fr.getValueFor(e),br.getValueFor(e),mr.getValueFor(e),vr.getValueFor(e)),Fa=Vn({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>Ta(ca.normal)(t,e)}),Da=Vn("accent-foreground-rest").withDefault(t=>Fa.getValueFor(t).evaluate(t).rest),Sa=Vn("accent-foreground-hover").withDefault(t=>Fa.getValueFor(t).evaluate(t).hover),Ea=Vn("accent-foreground-active").withDefault(t=>Fa.getValueFor(t).evaluate(t).active),Ra=Vn("accent-foreground-focus").withDefault(t=>Fa.getValueFor(t).evaluate(t).focus),Oa=Vn({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(Kr.getValueFor(t),e||la.getValueFor(t),yr.getValueFor(t),xr.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t))}),La=Vn("neutral-fill-rest").withDefault(t=>Oa.getValueFor(t).evaluate(t).rest),Va=Vn("neutral-fill-hover").withDefault(t=>Oa.getValueFor(t).evaluate(t).hover),Aa=Vn("neutral-fill-active").withDefault(t=>Oa.getValueFor(t).evaluate(t).active),Pa=Vn("neutral-fill-focus").withDefault(t=>Oa.getValueFor(t).evaluate(t).focus),Ha=Vn({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=kn(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(Kr.getValueFor(t),e||la.getValueFor(t),kr.getValueFor(t),Cr.getValueFor(t),Ir.getValueFor(t),Tr.getValueFor(t))}),za=Vn("neutral-fill-input-rest").withDefault(t=>Ha.getValueFor(t).evaluate(t).rest),Ma=Vn("neutral-fill-input-hover").withDefault(t=>Ha.getValueFor(t).evaluate(t).hover),Na=Vn("neutral-fill-input-focus").withDefault(t=>Ha.getValueFor(t).evaluate(t).focus),Ba=Vn("neutral-fill-input-active").withDefault(t=>Ha.getValueFor(t).evaluate(t).active),ja=Vn({name:"neutral-fill-inverse-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=kn(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Kr.getValueFor(t),e||la.getValueFor(t),Fr.getValueFor(t),Dr.getValueFor(t),Sr.getValueFor(t),Er.getValueFor(t))}),Ua=Vn("neutral-fill-inverse-rest").withDefault(t=>ja.getValueFor(t).evaluate(t).rest),qa=Vn("neutral-fill-inverse-hover").withDefault(t=>ja.getValueFor(t).evaluate(t).hover),_a=Vn("neutral-fill-inverse-active").withDefault(t=>ja.getValueFor(t).evaluate(t).active),Ga=Vn("neutral-fill-inverse-focus").withDefault(t=>ja.getValueFor(t).evaluate(t).focus),Wa=Vn({name:"neutral-fill-layer-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-i)}(Kr.getValueFor(t),e||la.getValueFor(t),Rr.getValueFor(t))}),Ka=Vn("neutral-fill-layer-rest").withDefault(t=>Wa.getValueFor(t).evaluate(t)),Xa=Vn({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(Kr.getValueFor(t),e||la.getValueFor(t),Or.getValueFor(t),Lr.getValueFor(t),Vr.getValueFor(t),Ar.getValueFor(t),yr.getValueFor(t),xr.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t))}),Ya=Vn("neutral-fill-stealth-rest").withDefault(t=>Xa.getValueFor(t).evaluate(t).rest),Qa=Vn("neutral-fill-stealth-hover").withDefault(t=>Xa.getValueFor(t).evaluate(t).hover),Za=Vn("neutral-fill-stealth-active").withDefault(t=>Xa.getValueFor(t).evaluate(t).active),Ja=Vn("neutral-fill-stealth-focus").withDefault(t=>Xa.getValueFor(t).evaluate(t).focus),tl=Vn({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=kn(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Kr.getValueFor(t),e||la.getValueFor(t),Pr.getValueFor(t),Hr.getValueFor(t),zr.getValueFor(t),Mr.getValueFor(t))}),el=Vn("neutral-fill-strong-rest").withDefault(t=>tl.getValueFor(t).evaluate(t).rest),il=Vn("neutral-fill-strong-hover").withDefault(t=>tl.getValueFor(t).evaluate(t).hover),ol=Vn("neutral-fill-strong-active").withDefault(t=>tl.getValueFor(t).evaluate(t).active),sl=Vn("neutral-fill-strong-focus").withDefault(t=>tl.getValueFor(t).evaluate(t).focus),nl=Vn({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=kn(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(Kr.getValueFor(t),la.getValueFor(t),Nr.getValueFor(t),Br.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t))}),rl=Vn("neutral-stroke-rest").withDefault(t=>nl.getValueFor(t).evaluate(t).rest),al=Vn("neutral-stroke-hover").withDefault(t=>nl.getValueFor(t).evaluate(t).hover),ll=Vn("neutral-stroke-active").withDefault(t=>nl.getValueFor(t).evaluate(t).active),cl=Vn("neutral-stroke-focus").withDefault(t=>nl.getValueFor(t).evaluate(t).focus),hl=Vn({name:"neutral-stroke-divider-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+kn(e)*i)}(Kr.getValueFor(t),e||la.getValueFor(t),qr.getValueFor(t))}),dl=Vn("neutral-stroke-divider-rest").withDefault(t=>hl.getValueFor(t).evaluate(t)),ul=Vn({name:"neutral-stroke-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=kn(e),a=t.colorContrast(e,i),l=t.closestIndexOf(a);return{rest:a,hover:t.get(l+r*o),active:t.get(l+r*s),focus:t.get(l+r*n)}}(Kr.getValueFor(t),la.getValueFor(t),3,_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t))}),pl=Vn("neutral-stroke-strong-rest").withDefault(t=>ul.getValueFor(t).evaluate(t).rest),gl=Vn("neutral-stroke-strong-hover").withDefault(t=>ul.getValueFor(t).evaluate(t).hover),fl=Vn("neutral-stroke-strong-active").withDefault(t=>ul.getValueFor(t).evaluate(t).active),bl=Vn("neutral-stroke-strong-focus").withDefault(t=>ul.getValueFor(t).evaluate(t).focus),ml=Vn({name:"focus-stroke-outer-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Kr.getValueFor(t),i=la.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),vl=Vn("focus-stroke-outer").withDefault(t=>ml.getValueFor(t).evaluate(t)),yl=Vn({name:"focus-stroke-inner-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=la.getValueFor(t),o=vl.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*kn(i));var e,i,o}}),xl=Vn("focus-stroke-inner").withDefault(t=>yl.getValueFor(t).evaluate(t)),$l=Vn({name:"neutral-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Kr.getValueFor(t),i=la.getValueFor(t),e.colorContrast(i,14);var e,i}}),wl=Vn("neutral-foreground-rest").withDefault(t=>$l.getValueFor(t).evaluate(t)),kl=Vn({name:"neutral-foreground-hint-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Kr.getValueFor(t),i=la.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),Cl=Vn("neutral-foreground-hint").withDefault(t=>kl.getValueFor(t).evaluate(t)),Il=Bn,Tl=jn,Fl=Un,Dl=qn,Sl=Rr,El=Pr,Rl=Hr,Ol=zr,Ll=Mr,Vl=Fr,Al=Dr,Pl=Sr,Hl=Er,zl=qr,Ml=ea,Nl=oa,Bl=na,jl=aa,Ul=ma,ql=wa,_l=dl,Gl=Ka,Wl=Ua,Kl=qa,Xl=_a,Yl=Ga,Ql=el,Zl=il,Jl=ol,tc=sl,ec=vl,ic=xl,oc=rl,sc=al,nc=ll,rc=cl,ac=(t,e)=>Dt`
22
- ${Ji("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${_n};font-size:${Kn};line-height:${Xn};color:${wl};border-top:calc(${Un} * 1px) solid ${dl}}`,lc=Et`(${Hn} + ${Mn}) * ${Nn}`,cc=(t,e)=>Dt`
23
- ${Ji("flex")} :host{box-sizing:border-box;font-family:${_n};flex-direction:column;font-size:${Kn};line-height:${Xn};border-bottom:calc(${Un} * 1px) solid ${dl}}.region{display:none;padding:calc((6 + (${Nn} * 2 * ${Mn})) * 1px)}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto calc(${lc} * 1px);z-index:2}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;padding:0 calc((6 + (${Nn} * 2 * ${Mn})) * 1px);text-align:left;height:calc(${lc} * 1px);color:${wl};cursor:pointer;font-family:inherit}.button:hover,.button:active{color:${wl}}.button::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;cursor:pointer}.button:${to}::before{outline:none;border:calc(${Un} * 1px) solid ${vl};box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${vl}}:host(.expanded) .region{display:block}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;z-index:2;pointer-events:none;fill:${da}}slot[name='collapsed-icon']{display:flex}:host(.expanded) slot[name='collapsed-icon']{display:none}slot[name='expanded-icon']{display:none}:host(.expanded) slot[name='expanded-icon']{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${Nn} * 1px);justify-content:center;grid-column:1;z-index:2}.end{display:flex;align-items:center;justify-content:center;grid-column:3;z-index:2}`.withBehaviors(Qi(Dt`
24
- .button:${to}::before{border-color:${Es.Highlight};box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${Es.Highlight}}.icon{fill:${Es.ButtonText}}`)),hc=je.compose({baseName:"accordion-item",template:(t,e)=>nt`<template class="${t=>t.expanded?"expanded":""}" slot="item"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Nt("expandbutton")} 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"><slot name="heading" part="heading"></slot></span></button>${te(0,e)} ${Jt(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:cc,collapsedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M16.22 3H3.78a.78.78 0 00-.78.78v12.44c0 .43.35.78.78.78h12.44c.43 0 .78-.35.78-.78V3.78a.78.78 0 00-.78-.78zM3.78 2h12.44C17.2 2 18 2.8 18 3.78v12.44c0 .98-.8 1.78-1.78 1.78H3.78C2.8 18 2 17.2 2 16.22V3.78C2 2.8 2.8 2 3.78 2zM11 9h3v2h-3v3H9v-3H6V9h3V6h2v3z"\n />\n </svg>\n ',expandedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.78 3h12.44c.43 0 .78.35.78.78v12.44c0 .43-.35.78-.78.78H3.78a.78.78 0 01-.78-.78V3.78c0-.43.35-.78.78-.78zm12.44-1H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.78-.8 1.78-1.78V3.78C18 2.8 17.2 2 16.22 2zM14 9H6v2h8V9z"\n />\n </svg>\n '}),dc=cc,uc=ti.compose({baseName:"accordion",template:(t,e)=>nt`<template><slot name="item" part="item" ${Xt("accordionItems")}></slot></template>`,styles:ac}),pc=ac;
21
+ var xo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],$o=xo.join(","),wo="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ko=function(t){return"INPUT"===t.tagName},Co=function(t){return function(t){return ko(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Io=function(t,e){return!(e.disabled||function(t){return ko(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=wo.call(t,"details>summary:first-of-type")?t.parentElement:t;if(wo.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},To=function(t,e){return!(!Io(t,e)||Co(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},Fo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==wo.call(t,$o)&&To(e,t)},Do=xo.concat("iframe").join(","),Ro=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==wo.call(t,Do)&&Io(e,t)};class So extends ze{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>So.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=C.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:Fo(e)||So.isFocusableFastElement(e)&&So.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(So.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>Fo(t))}}ee([ft({mode:"boolean"})],So.prototype,"modal",void 0),ee([ft({mode:"boolean"})],So.prototype,"hidden",void 0),ee([ft({attribute:"trap-focus",mode:"boolean"})],So.prototype,"trapFocus",void 0),ee([ft({attribute:"aria-describedby"})],So.prototype,"ariaDescribedby",void 0),ee([ft({attribute:"aria-labelledby"})],So.prototype,"ariaLabelledby",void 0),ee([ft({attribute:"aria-label"})],So.prototype,"ariaLabel",void 0);var Eo,Oo;!function(t){t.separator="separator",t.presentation="presentation"}(Eo||(Eo={}));class Lo extends ze{constructor(){super(...arguments),this.role=Eo.separator}}ee([ft],Lo.prototype,"role",void 0),function(t){t.next="next",t.previous="previous"}(Oo||(Oo={}));class Vo extends ze{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Oo.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}ee([ft({mode:"boolean"})],Vo.prototype,"disabled",void 0),ee([ft({attribute:"aria-hidden",converter:ut})],Vo.prototype,"hiddenFromAT",void 0),ee([ft],Vo.prototype,"direction",void 0);var Ao;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Ao||(Ao={}));const Po={[Ao.menuitem]:"menuitem",[Ao.menuitemcheckbox]:"menuitemcheckbox",[Ao.menuitemradio]:"menuitemradio"};class Ho extends ze{constructor(){super(...arguments),this.role=Ao.menuitem,this.hasSubmenu=!1,this.currentDirection=Ke.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Ao.menuitemcheckbox:this.checked=!this.checked,this.$emit("change");break;case Ao.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Ao.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=ni(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children)}}ee([ft({mode:"boolean"})],Ho.prototype,"disabled",void 0),ee([ft({mode:"boolean"})],Ho.prototype,"expanded",void 0),ee([F],Ho.prototype,"startColumnCount",void 0),ee([ft],Ho.prototype,"role",void 0),ee([ft({mode:"boolean"})],Ho.prototype,"checked",void 0),ee([F],Ho.prototype,"submenuRegion",void 0),ee([F],Ho.prototype,"hasSubmenu",void 0),ee([F],Ho.prototype,"currentDirection",void 0),ee([F],Ho.prototype,"submenu",void 0),Be(Ho,Zt);class zo extends ze{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&qe(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.setItems=()=>{const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const e=t.reduce((t,e)=>{const i=(o=e)instanceof Ho?o.role!==Ao.menuitem&&null===o.querySelector("[slot=start]")||o.role===Ao.menuitem&&null!==o.querySelector("[slot=start]")?1:o.role!==Ao.menuitem&&null!==o.querySelector("[slot=start]")?2:0:1;var o;return t>i?t:i},0);t.forEach((t,i)=>{t.setAttribute("tabindex",0===i?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Ho&&(t.startColumnCount=e)})},this.resetItems=t=>{t.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.changeHandler=t=>{const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Ao.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Ao.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>qe(t)&&zo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&(this.menuItems=this.domChildren(),this.resetItems(t),this.setItems())}connectedCallback(){super.connectedCallback(),this.menuItems=this.domChildren(),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuItems=[],this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children)}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}zo.focusableElementRoles=Po,ee([F],zo.prototype,"items",void 0);class Mo extends ze{}class No extends(ui(Mo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Bo;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(Bo||(Bo={}));class jo extends No{constructor(){super(...arguments),this.type=Bo.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ee([ft({attribute:"readonly",mode:"boolean"})],jo.prototype,"readOnly",void 0),ee([ft({mode:"boolean"})],jo.prototype,"autofocus",void 0),ee([ft],jo.prototype,"placeholder",void 0),ee([ft],jo.prototype,"type",void 0),ee([ft],jo.prototype,"list",void 0),ee([ft({converter:pt})],jo.prototype,"maxlength",void 0),ee([ft({converter:pt})],jo.prototype,"minlength",void 0),ee([ft],jo.prototype,"pattern",void 0),ee([ft({converter:pt})],jo.prototype,"size",void 0),ee([ft({mode:"boolean"})],jo.prototype,"spellcheck",void 0),ee([F],jo.prototype,"defaultSlottedNodes",void 0);class Uo{}Be(Uo,ii),Be(jo,Zt,Uo);class qo extends ze{}class _o extends(ui(qo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Go extends _o{constructor(){super(...arguments),this.hideStep=!1,this.step=1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.valueChanged(this.value,this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.valueChanged(this.value,this.value)}valueChanged(t,e){var i,o;let s=parseFloat(e);isNaN(s)?s="":(s=Math.min(s,null!==(i=this.max)&&void 0!==i?i:s),s=Math.max(s,null!==(o=this.min)&&void 0!==o?o:s)),this.value=s.toString(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.value),void 0!==t&&(this.$emit("input"),this.$emit("change"))}stepUp(){var t;const e=parseFloat(this.value),i=isNaN(e)?null!==(t=this.min)&&void 0!==t?t:this.step:e+this.step;this.value=i.toString(),this.control.value=this.value}stepDown(){var t;const e=parseFloat(this.value),i=isNaN(e)?null!==(t=this.max)&&void 0!==t?t:0-this.step:e-this.step;this.value=i.toString(),this.control.value=this.value}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}ee([ft({attribute:"readonly",mode:"boolean"})],Go.prototype,"readOnly",void 0),ee([ft({mode:"boolean"})],Go.prototype,"autofocus",void 0),ee([ft({attribute:"hide-step",mode:"boolean"})],Go.prototype,"hideStep",void 0),ee([ft],Go.prototype,"placeholder",void 0),ee([ft],Go.prototype,"list",void 0),ee([ft({converter:pt})],Go.prototype,"maxlength",void 0),ee([ft({converter:pt})],Go.prototype,"minlength",void 0),ee([ft({converter:pt})],Go.prototype,"size",void 0),ee([ft({converter:pt})],Go.prototype,"step",void 0),ee([ft({converter:pt})],Go.prototype,"max",void 0),ee([ft({converter:pt})],Go.prototype,"min",void 0),ee([F],Go.prototype,"defaultSlottedNodes",void 0),Be(Go,Zt,Uo);class Wo extends ze{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}ee([ft({converter:pt})],Wo.prototype,"value",void 0),ee([ft({converter:pt})],Wo.prototype,"min",void 0),ee([ft({converter:pt})],Wo.prototype,"max",void 0),ee([ft({mode:"boolean"})],Wo.prototype,"paused",void 0),ee([F],Wo.prototype,"percentComplete",void 0);class Ko extends ze{constructor(){super(...arguments),this.orientation=Ue.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||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 i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in We&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ke.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ke.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("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(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=ni(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ee([ft({attribute:"readonly",mode:"boolean"})],Ko.prototype,"readOnly",void 0),ee([ft({attribute:"disabled",mode:"boolean"})],Ko.prototype,"disabled",void 0),ee([ft],Ko.prototype,"name",void 0),ee([ft],Ko.prototype,"value",void 0),ee([ft],Ko.prototype,"orientation",void 0),ee([F],Ko.prototype,"childItems",void 0),ee([F],Ko.prototype,"slottedRadioButtons",void 0);class Xo extends ze{}class Yo extends(ui(Xo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Qo extends Yo{constructor(){var t;super(),this.initialValue="on",this.checkedAttribute=!1,this.dirtyChecked=!1,this.formResetCallback=()=>{this.checked=!!this.defaultChecked,this.dirtyChecked=!1},this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}checkedChanged(){this.$fastController.isConnected&&(this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.$emit("change"),this.validate())}connectedCallback(){var t,e;super.connectedCallback(),this.proxy.setAttribute("type","radio"),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.updateForm(),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ee([ft({attribute:"readonly",mode:"boolean"})],Qo.prototype,"readOnly",void 0),ee([F],Qo.prototype,"name",void 0),ee([ft({attribute:"checked",mode:"boolean"})],Qo.prototype,"checkedAttribute",void 0),ee([F],Qo.prototype,"defaultSlottedNodes",void 0),ee([F],Qo.prototype,"defaultChecked",void 0),ee([F],Qo.prototype,"checked",void 0);class Zo extends ze{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&this.setStops()}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e<=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}ee([ft({converter:pt})],Zo.prototype,"speed",void 0),ee([ft],Zo.prototype,"duration",void 0),ee([ft],Zo.prototype,"easing",void 0),ee([ft({attribute:"aria-hidden",converter:ut})],Zo.prototype,"flippersHiddenFromAT",void 0),ee([F],Zo.prototype,"scrolling",void 0),ee([F],Zo.prototype,"scrollItems",void 0),ee([ft({attribute:"view"})],Zo.prototype,"view",void 0);class Jo extends Ai{}class ts extends(ui(Jo)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class es extends ts{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.role=Si.combobox,this.position=Ri.below,this.maxHeight=0,this.displayValue="",this.formResetCallback=()=>{this.setProxyOptions(),this.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}}openChanged(){this.ariaExpanded=this.open?"true":"false",this.open&&(this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex)}get value(){return C.track(this,"value"),this._value}set value(t){const e=""+this._value;if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}e!==t&&(this._value=t,super.valueChanged(e,t),C.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ri.above:Ri.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ri.above?~~t.top:~~e}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.appendChild(e)}))}keydownHandler(t){super.keydownHandler(t);switch(t.key||t.key.charCodeAt(0)){case" ":this.typeAheadExpired&&(t.preventDefault(),this.open=!this.open);break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;t.preventDefault(),this.open=!1}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!0}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute}}ee([ft({attribute:"open",mode:"boolean"})],es.prototype,"open",void 0),ee([ft({attribute:"position"})],es.prototype,"positionAttribute",void 0),ee([F],es.prototype,"position",void 0),ee([F],es.prototype,"maxHeight",void 0),ee([F],es.prototype,"displayValue",void 0);class is{}ee([F],is.prototype,"ariaExpanded",void 0),ee([ft({attribute:"aria-pressed",mode:"fromView"})],is.prototype,"ariaPressed",void 0),Be(is,ii),Be(es,Zt,is);class os extends ze{constructor(){super(...arguments),this.shape="rect"}}ee([ft],os.prototype,"fill",void 0),ee([ft],os.prototype,"shape",void 0),ee([ft],os.prototype,"pattern",void 0),ee([ft({mode:"boolean"})],os.prototype,"shimmer",void 0);function ss(t,e,i,o){let s=Ye(0,1,(t-e)/(i-e));return o===Ke.rtl&&(s=1-s),s}const ns={min:0,max:0,direction:Ke.ltr,orientation:Ue.horizontal,disabled:!1};class rs extends ze{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ke.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ke.ltr,this.sliderOrientation=s||Ue.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=ns.direction||Ke.ltr,this.sliderOrientation=ns.orientation||Ue.horizontal,this.sliderMaxPosition=ns.max,this.sliderMinPosition=ns.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ke.ltr,e=ss(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return o===Number.NaN&&i===Number.NaN&&(i=50,o=50),this.sliderOrientation===Ue.horizontal?t===Ke.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=C.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}ee([F],rs.prototype,"positionStyle",void 0),ee([ft],rs.prototype,"position",void 0),ee([ft({attribute:"hide-mark",mode:"boolean"})],rs.prototype,"hideMark",void 0),ee([ft({attribute:"disabled",mode:"boolean"})],rs.prototype,"disabled",void 0),ee([F],rs.prototype,"sliderOrientation",void 0),ee([F],rs.prototype,"sliderMinPosition",void 0),ee([F],rs.prototype,"sliderMaxPosition",void 0),ee([F],rs.prototype,"sliderDirection",void 0);class as extends ze{}class ls extends(ui(as)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var cs;!function(t){t.singleValue="single-value"}(cs||(cs={}));class hs extends ls{constructor(){super(...arguments),this.direction=Ke.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.step=1,this.orientation=Ue.horizontal,this.mode=cs.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown),this.thumb[e]("touchstart",this.handleThumbMouseDown),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.preventDefault(),t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),window[e]("touchmove",this.handleMouseMove),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Ue.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=ss(t,this.orientation===Ue.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Ue.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===Ue.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&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=ni(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ke.rtl&&this.orientation!==Ue.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==Ke.rtl&&this.orientation!==Ue.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=ss(Number(this.value),Number(this.min),Number(this.max),t),i=Math.round(100*(1-e));this.orientation===Ue.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%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("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}ee([ft({attribute:"readonly",mode:"boolean"})],hs.prototype,"readOnly",void 0),ee([F],hs.prototype,"direction",void 0),ee([F],hs.prototype,"isDragging",void 0),ee([F],hs.prototype,"position",void 0),ee([F],hs.prototype,"trackWidth",void 0),ee([F],hs.prototype,"trackMinWidth",void 0),ee([F],hs.prototype,"trackHeight",void 0),ee([F],hs.prototype,"trackLeft",void 0),ee([F],hs.prototype,"trackMinHeight",void 0),ee([F],hs.prototype,"valueTextFormatter",void 0),ee([ft({converter:pt})],hs.prototype,"min",void 0),ee([ft({converter:pt})],hs.prototype,"max",void 0),ee([ft({converter:pt})],hs.prototype,"step",void 0),ee([ft],hs.prototype,"orientation",void 0),ee([ft],hs.prototype,"mode",void 0);class ds extends ze{}class us extends(ui(ds)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ps extends us{constructor(){super(),this.initialValue="on",this.dirtyChecked=!1,this.formResetCallback=()=>{this.checked=this.checkedAttribute,this.dirtyChecked=!1},this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.defaultChecked=!!this.checkedAttribute,this.checked=this.defaultChecked}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(){this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.$emit("change"),this.checked?this.classList.add("checked"):this.classList.remove("checked"),this.validate()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","checkbox"),this.updateForm()}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}}ee([ft({attribute:"readonly",mode:"boolean"})],ps.prototype,"readOnly",void 0),ee([ft({attribute:"checked",mode:"boolean"})],ps.prototype,"checkedAttribute",void 0),ee([F],ps.prototype,"defaultSlottedNodes",void 0),ee([F],ps.prototype,"defaultChecked",void 0),ee([F],ps.prototype,"checked",void 0);class gs extends ze{}class fs extends ze{}ee([ft({mode:"boolean"})],fs.prototype,"disabled",void 0);var bs,ms;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(bs||(bs={}));class vs extends ze{constructor(){super(...arguments),this.orientation=bs.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],o=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?"tab-"+(i+1):t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?"panel-"+(i+1):o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof o?"panel-"+(e+1):o),t.setAttribute("aria-labelledby","string"!=typeof i?"tab-"+(e+1):i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>t.getAttribute("id"))}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id"))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===bs.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Xe(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ee([ft],vs.prototype,"orientation",void 0),ee([ft],vs.prototype,"activeid",void 0),ee([F],vs.prototype,"tabs",void 0),ee([F],vs.prototype,"tabpanels",void 0),ee([ft({mode:"boolean"})],vs.prototype,"activeindicator",void 0),ee([F],vs.prototype,"activeIndicatorRef",void 0),ee([F],vs.prototype,"showActiveIndicator",void 0),Be(vs,Zt);class ys extends ze{}class xs extends(ui(ys)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(ms||(ms={}));class $s extends xs{constructor(){super(...arguments),this.resize=ms.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}ee([ft({mode:"boolean"})],$s.prototype,"readOnly",void 0),ee([ft],$s.prototype,"resize",void 0),ee([ft({mode:"boolean"})],$s.prototype,"autofocus",void 0),ee([ft({attribute:"form"})],$s.prototype,"formId",void 0),ee([ft],$s.prototype,"list",void 0),ee([ft({converter:pt})],$s.prototype,"maxlength",void 0),ee([ft({converter:pt})],$s.prototype,"minlength",void 0),ee([ft],$s.prototype,"name",void 0),ee([ft],$s.prototype,"placeholder",void 0),ee([ft({converter:pt,mode:"fromView"})],$s.prototype,"cols",void 0),ee([ft({converter:pt,mode:"fromView"})],$s.prototype,"rows",void 0),ee([ft({mode:"boolean"})],$s.prototype,"spellcheck",void 0),ee([F],$s.prototype,"defaultSlottedNodes",void 0),Be($s,Uo);const ws=Object.freeze({[We.ArrowUp]:{[Ue.vertical]:-1},[We.ArrowDown]:{[Ue.vertical]:1},[We.ArrowLeft]:{[Ue.horizontal]:{[Ke.ltr]:-1,[Ke.rtl]:1}},[We.ArrowRight]:{[Ue.horizontal]:{[Ke.ltr]:1,[Ke.rtl]:-1}}});class ks extends ze{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ke.ltr,this.orientation=Ue.horizontal}get activeIndex(){return C.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=Ye(0,this.focusableElements.length-1,t),C.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=ni(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=ws[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=ws[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in We)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(ks.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Ro(t));return Ro(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(ks.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}ee([F],ks.prototype,"direction",void 0),ee([ft],ks.prototype,"orientation",void 0),ee([F],ks.prototype,"slottedItems",void 0),ee([F],ks.prototype,"slottedLabel",void 0);class Cs{}ee([ft({attribute:"aria-labelledby"})],Cs.prototype,"ariaLabelledby",void 0),ee([ft({attribute:"aria-label"})],Cs.prototype,"ariaLabel",void 0),Be(Cs,ii),Be(ks,Zt,Cs);var Is;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end"}(Is||(Is={}));class Ts extends ze{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="true",this.verticalInset="false",this.horizontalScaling="anchor",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ke.ltr,this.delayTimer=null,this.isAnchorHoveredFocused=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition)},this.handleAnchorMouseOver=t=>{this.startHoverTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.handleAnchorFocusIn=t=>{this.startHoverTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.startHoverTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.delayTimer&&(this.delayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearDelayTimer=()=>{null!==this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=ni(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&this.updateLayout()}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startHoverTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateLayout(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.position){case Is.top:case Is.bottom:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition=void 0,this.horizontalInset="true",this.verticalInset="false",this.horizontalScaling="anchor",this.verticalScaling="content";break;case Is.right:case Is.left:case Is.start:case Is.end:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=this.position,this.horizontalInset="false",this.verticalInset="true",this.horizontalScaling="content",this.verticalScaling="anchor";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.horizontalInset="true",this.verticalInset="false",this.horizontalScaling="anchor",this.verticalScaling="content"}}}ee([ft({mode:"boolean"})],Ts.prototype,"visible",void 0),ee([ft],Ts.prototype,"anchor",void 0),ee([ft],Ts.prototype,"delay",void 0),ee([ft],Ts.prototype,"position",void 0),ee([ft({attribute:"auto-update-mode"})],Ts.prototype,"autoUpdateMode",void 0),ee([ft({attribute:"horizontal-viewport-lock"})],Ts.prototype,"horizontalViewportLock",void 0),ee([ft({attribute:"vertical-viewport-lock"})],Ts.prototype,"verticalViewportLock",void 0),ee([F],Ts.prototype,"anchorElement",void 0),ee([F],Ts.prototype,"viewportElement",void 0),ee([F],Ts.prototype,"verticalPositioningMode",void 0),ee([F],Ts.prototype,"horizontalPositioningMode",void 0),ee([F],Ts.prototype,"horizontalInset",void 0),ee([F],Ts.prototype,"verticalInset",void 0),ee([F],Ts.prototype,"horizontalScaling",void 0),ee([F],Ts.prototype,"verticalScaling",void 0),ee([F],Ts.prototype,"verticalDefaultPosition",void 0),ee([F],Ts.prototype,"horizontalDefaultPosition",void 0),ee([F],Ts.prototype,"tooltipVisible",void 0),ee([F],Ts.prototype,"currentDirection",void 0);function Fs(t){return qe(t)&&"treeitem"===t.getAttribute("role")}class Ds extends ze{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.handleExpandCollapseButtonClick=t=>{this.disabled||(t.preventDefault(),this.setExpanded(!this.expanded))},this.handleClick=t=>{if(!t.defaultPrevented){return t.composedPath().find(t=>t instanceof HTMLElement&&Fs(t))===this&&this.handleSelected(),!0}},this.isNestedItem=()=>Fs(this.parentElement)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Fs(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Fs(t));return t?t.length:0}handleSelected(t){this.$emit("selected-change",t)}setExpanded(t){this.expanded=t,this.$emit("expanded-change",this)}}ee([ft({mode:"boolean"})],Ds.prototype,"expanded",void 0),ee([ft({mode:"boolean"})],Ds.prototype,"selected",void 0),ee([ft({mode:"boolean"})],Ds.prototype,"disabled",void 0),ee([F],Ds.prototype,"focusable",void 0),ee([F],Ds.prototype,"childItems",void 0),ee([F],Ds.prototype,"items",void 0),ee([F],Ds.prototype,"nested",void 0),ee([F],Ds.prototype,"renderCollapsedChildren",void 0),Be(Ds,Zt);class Rs extends ze{constructor(){super(...arguments),this.handleBlur=t=>{const{relatedTarget:e,target:i}=t;i instanceof HTMLElement&&(null===e||!this.contains(e))&&this.setAttribute("tabindex","0")},this.handleFocus=t=>{const{relatedTarget:e,target:i}=t;if(i instanceof HTMLElement&&(null===e||!this.contains(e))){const t=this;i===this&&this.currentFocused instanceof Ds&&(Ds.focusItem(this.currentFocused),this.currentFocused.setAttribute("tabindex","0")),t.setAttribute("tabindex","-1")}},this.handleKeyDown=t=>{if(!this.treeItems)return!0;switch(t.key){case"Home":this.treeItems&&this.treeItems.length&&(Ds.focusItem(this.treeItems[0]),this.treeItems[0].setAttribute("tabindex","0"));break;case"End":this.treeItems&&this.treeItems.length&&(Ds.focusItem(this.treeItems[this.treeItems.length-1]),this.treeItems[this.treeItems.length-1].setAttribute("tabindex","0"));break;case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Ds&&e.childItemLength()>0&&(e.expanded=!1)}break;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Ds&&e.childItemLength()>0&&(e.expanded=!0)}break;case"ArrowDown":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target);break;case"ArrowUp":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target);break;case"Enter":this.handleSelected(t.target);break;default:return!0}},this.setItems=()=>{let t=this.treeItems.findIndex(this.isSelectedElement);-1===t&&(t=this.treeItems.findIndex(this.isFocusableElement));for(let e=0;e<this.treeItems.length;e++)e===t&&(this.treeItems[e].setAttribute("tabindex","0"),this.currentFocused=this.treeItems[e]),this.treeItems[e].addEventListener("selected-change",this.handleItemSelected)},this.resetItems=()=>{for(let t=0;t<this.treeItems.length;t++)this.treeItems[t].removeEventListener("selected-change",this.handleItemSelected)},this.handleItemSelected=t=>{const e=t.target;e!==this.currentSelected&&this.handleSelected(e)},this.isFocusableElement=t=>Fs(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(t,e){this.$fastController.isConnected&&(this.resetItems(),this.treeItems=this.getVisibleNodes(),this.setItems(),this.checkForNestedItems()&&this.slottedTreeItems.forEach(t=>{Fs(t)&&(t.nested=!0)}))}checkForNestedItems(){return this.slottedTreeItems.some(t=>Fs(t)&&t.querySelector("[role='treeitem']"))}connectedCallback(){super.connectedCallback(),this.treeItems=this.getVisibleNodes(),d.queueUpdate(()=>{const t=this.treeView.querySelector("[aria-selected='true']");t&&(this.currentSelected=t)})}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i.indexOf(e),s=i[o];(t<0&&o>0||t>0&&o<i.length-1)&&s.setAttribute("tabindex","-1");const n=i[i.indexOf(e)+t];qe(n)&&(Ds.focusItem(n),n.setAttribute("tabindex","0"),this.currentFocused=n)}handleSelected(t){this.currentSelected!==t&&(t.setAttribute("tabindex","0"),this.currentSelected instanceof Ds&&this.currentFocused&&(t.disabled||(this.currentSelected.selected=!1),this.currentFocused.setAttribute("tabindex","-1")),this.currentSelected||this.slottedTreeItems.forEach(t=>{t instanceof Ds&&t.setAttribute("tabindex","-1")}),t.disabled||(t.selected=!0,this.currentSelected=t),this.currentFocused=t)}getVisibleNodes(){return function(t,e){if(!qe(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}var Ss,Es;function Os(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Ls(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Vs(t,e,i){return isNaN(t)?e:e+t*(i-e)}function As(t){return t*(Math.PI/180)}function Ps(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Hs(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}function zs(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}ee([ft({attribute:"render-collapsed-nodes"})],Rs.prototype,"renderCollapsedNodes",void 0),ee([F],Rs.prototype,"currentSelected",void 0),ee([F],Rs.prototype,"nested",void 0),ee([F],Rs.prototype,"slottedTreeItems",void 0),function(t){t.ltr="ltr",t.rtl="rtl"}(Ss||(Ss={})),function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(Es||(Es={}));class Ms{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Ms(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Ms(zs(this.h,t),zs(this.s,t),zs(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Ns{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new Ns(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new Ns(zs(this.h,t),zs(this.s,t),zs(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class Bs{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Bs(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Bs(zs(this.l,t),zs(this.a,t),zs(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Bs.epsilon=216/24389,Bs.kappa=24389/27;class js{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new js(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new js(zs(this.l,t),zs(this.c,t),zs(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class Us{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Us(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Vs(this.r,0,255))},${Math.round(Vs(this.g,0,255))},${Math.round(Vs(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Vs(this.r,0,255))},${Math.round(Vs(this.g,0,255))},${Math.round(Vs(this.b,0,255))},${Os(this.a,0,1)})`}roundToPrecision(t){return new Us(zs(this.r,t),zs(this.g,t),zs(this.b,t),zs(this.a,t))}clamp(){return new Us(Os(this.r,0,1),Os(this.g,0,1),Os(this.b,0,1),Os(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(Os(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Vs(t,0,255))}}class qs{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new qs(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new qs(zs(this.x,t),zs(this.y,t),zs(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function _s(t){return.2126*t.r+.7152*t.g+.0722*t.b}function Gs(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return _s(new Us(e(t.r),e(t.g),e(t.b),1))}qs.whitePoint=new qs(.95047,1,1.08883);const Ws=(t,e)=>(t+.05)/(e+.05);function Ks(t,e){const i=Gs(t),o=Gs(e);return i>o?Ws(i,o):Ws(o,i)}function Xs(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Ms(s,r,n)}function Ys(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Us(n+s,r+s,a+s,e)}function Qs(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==e&&(s=i/e),new Ns(o,s,e)}function Zs(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=Math.atan2(t.b,t.a)*(180/Math.PI)),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new js(t.l,i,e)}function Js(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new qs(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function tn(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Us(o,s,n,e)}function en(t){return function(t){function e(t){return t>Bs.epsilon?Math.pow(t,1/3):(Bs.kappa*t+16)/116}const i=e(t.x/qs.whitePoint.x),o=e(t.y/qs.whitePoint.y),s=e(t.z/qs.whitePoint.z);return new Bs(116*o-16,500*(i-o),200*(o-s))}(Js(t))}function on(t,e=1){return tn(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Bs.epsilon?s:(116*i-16)/Bs.kappa;let l=0;l=t.l>Bs.epsilon*Bs.kappa?n:t.l/Bs.kappa;let c=0;return c=r>Bs.epsilon?r:(116*o-16)/Bs.kappa,a=qs.whitePoint.x*a,l=qs.whitePoint.y*l,c=qs.whitePoint.z*c,new qs(a,l,c)}(t),e)}function sn(t){return Zs(en(t))}function nn(t,e=1){return on(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos(As(t.h))*t.c,i=Math.sin(As(t.h))*t.c),new Bs(t.l,e,i)}(t),e)}function rn(t,e,i=18){const o=sn(t);let s=o.c+e*i;return s<0&&(s=0),nn(new js(o.l,s,o.h))}function an(t,e){return t*e}function ln(t,e){return new Us(an(t.r,e.r),an(t.g,e.g),an(t.b,e.b),1)}function cn(t,e){return Os(t<.5?2*e*t:1-2*(1-e)*(1-t),0,1)}function hn(t,e){return new Us(cn(t.r,e.r),cn(t.g,e.g),cn(t.b,e.b),1)}var dn,un;function pn(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case un.HSL:return Ys(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Ms(Hs(t,e.h,i.h),Ps(t,e.s,i.s),Ps(t,e.l,i.l))}(t,Xs(i),Xs(o)));case un.HSV:return function(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Us(n+s,r+s,a+s,e)}(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Ns(Hs(t,e.h,i.h),Ps(t,e.s,i.s),Ps(t,e.v,i.v))}(t,Qs(i),Qs(o)));case un.XYZ:return tn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new qs(Ps(t,e.x,i.x),Ps(t,e.y,i.y),Ps(t,e.z,i.z))}(t,Js(i),Js(o)));case un.LAB:return on(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Bs(Ps(t,e.l,i.l),Ps(t,e.a,i.a),Ps(t,e.b,i.b))}(t,en(i),en(o)));case un.LCH:return nn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new js(Ps(t,e.l,i.l),Ps(t,e.c,i.c),Hs(t,e.h,i.h))}(t,sn(i),sn(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Us(Ps(t,e.r,i.r),Ps(t,e.g,i.g),Ps(t,e.b,i.b),Ps(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(dn||(dn={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(un||(un={}));class gn{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i<t.length;i++)0===i?e[i]={color:t[i],position:0}:i===t.length-1?e[i]={color:t[i],position:1}:e[i]={color:t[i],position:i*(1/(t.length-1))};return new gn(e)}getColor(t,e=un.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(i=e);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return pn((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=un.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new gn([{color:this.getColor(t,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new gn([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e<o.length;e++)n[e]={color:o[e].color,position:(o[e].position-t)/s};return new gn(n)}findNextColor(t,e,i=!1,o=un.RGB,s=.005,n=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const r=this.getColor(t,o),a=i?0:1;if(Ks(r,this.getColor(a,o))<=e)return a;let l=i?0:t,c=i?t:0,h=a,d=0;for(;d<=n;){h=Math.abs(c-l)/2+l;const t=Ks(r,this.getColor(h,o));if(Math.abs(t-e)<=s)return h;t>e?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new gn(t)}sortColorScaleStops(t){return t.sort((t,e)=>{const i=t.position,o=e.position;return i<o?-1:i>o?1:0})}}const fn=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function bn(t){const e=fn.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Us(Ls((16711680&o)>>>16,0,255),Ls((65280&o)>>>8,0,255),Ls(255&o,0,255),1)}class mn{constructor(t){this.config=Object.assign({},mn.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=Xs(this.config.baseColor),e=new gn([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=e.getColor(0),o=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(i=rn(i,this.config.saturationLight),o=rn(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=ln(this.config.baseColor,i);i=pn(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=ln(this.config.baseColor,o);o=pn(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=hn(this.config.baseColor,i);i=pn(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=hn(this.config.baseColor,o);o=pn(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new gn([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new gn([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new gn([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new gn([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}mn.defaultPaletteConfig={baseColor:bn("#808080"),steps:11,interpolationMode:un.RGB,scaleColorLight:new Us(1,1,1,1),scaleColorDark:new Us(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},mn.greyscalePaletteConfig={baseColor:bn("#808080"),steps:11,interpolationMode:un.RGB,scaleColorLight:new Us(1,1,1,1),scaleColorDark:new Us(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},mn.defaultPaletteConfig.scaleColorLight,mn.defaultPaletteConfig.scaleColorDark;class vn{constructor(t){this.palette=[],this.config=Object.assign({},vn.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=new Us(.14,.14,.14,1),i=new mn(Object.assign(Object.assign({},mn.greyscalePaletteConfig),{baseColor:e,baseScalePosition:86/94,steps:t})).palette,o=(_s(this.config.baseColor)+Xs(this.config.baseColor).l)/2,s=this.matchRelativeLuminanceIndex(o,i)/(t-1),n=this.matchRelativeLuminanceIndex(.14,i)/(t-1),r=Xs(this.config.baseColor),a=Ys(Ms.fromObject({h:r.h,s:r.s,l:.14})),l=Ys(Ms.fromObject({h:r.h,s:r.s,l:.06})),c=new Array(5);c[0]={position:0,color:new Us(1,1,1,1)},c[1]={position:s,color:this.config.baseColor},c[2]={position:n,color:a},c[3]={position:.99,color:l},c[4]={position:1,color:new Us(0,0,0,1)};const h=new gn(c);this.palette=new Array(t);for(let e=0;e<t;e++){const i=h.getColor(e/(t-1),un.RGB);this.palette[e]=i}}matchRelativeLuminanceIndex(t,e){let i=Number.MAX_VALUE,o=0,s=0;const n=e.length;for(;s<n;s++){const n=Math.abs(_s(e[s])-t);n<i&&(i=n,o=s)}return o}}function yn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}vn.defaultPaletteConfig={baseColor:bn("#808080"),steps:94};const xn=Object.freeze({create:(t,e,i)=>new $n(t,e,i),from:t=>new $n(t.r,t.g,t.b)});class $n extends Us{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=yn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=Gs(this)}static fromObject(t){return new $n(t.r,t.g,t.b)}}const wn=(-.1+Math.sqrt(.21))/2;function kn(t){return t.relativeLuminance<=wn}function Cn(t){return kn(t)?-1:1}const In=Object.freeze({create:t=>Tn.from(t)});class Tn{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=Cn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>yn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[Os(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new Tn(t,Object.freeze(new vn({baseColor:Us.fromObject(t)}).palette.map(t=>{const e=bn(t.toStringHexRGB());return xn.create(e.r,e.g,e.b)})))}}const Fn=xn.create(1,1,1),Dn=xn.create(0,0,0),Rn=xn.create(.5,.5,.5),Sn=bn("#0078D4"),En=xn.create(Sn.r,Sn.g,Sn.b);function On(t){return xn.create(t,t,t)}var Ln;function Vn(t,e,i,o,s,n){return Math.max(t.closestIndexOf(On(e))+i,o,s,n)}!function(t){t[t.LightMode=1]="LightMode",t[t.DarkMode=.23]="DarkMode"}(Ln||(Ln={}));const{create:An}=ho,Pn=An("direction").withDefault(Ss.ltr),Hn=An("disabled-opacity").withDefault(.3),zn=An("base-height-multiplier").withDefault(8),Mn=An("base-horizontal-spacing-multiplier").withDefault(3),Nn=An("density").withDefault(0),Bn=An("design-unit").withDefault(4),jn=An("control-corner-radius").withDefault(4),Un=An("layer-corner-radius").withDefault(4),qn=An("stroke-width").withDefault(1),_n=An("focus-stroke-width").withDefault(2),Gn=An("body-font").withDefault("Segoe UI, sans-serif"),Wn=An("type-ramp-base-font-size").withDefault("14px"),Kn=An("type-ramp-base-line-height").withDefault("20px"),Xn=An("type-ramp-minus-1-font-size").withDefault("12px"),Yn=An("type-ramp-minus-1-line-height").withDefault("16px"),Qn=An("type-ramp-minus-2-font-size").withDefault("10px"),Zn=An("type-ramp-minus-2-line-height").withDefault("14px"),Jn=An("type-ramp-plus-1-font-size").withDefault("16px"),tr=An("type-ramp-plus-1-line-height").withDefault("22px"),er=An("type-ramp-plus-2-font-size").withDefault("20px"),ir=An("type-ramp-plus-2-line-height").withDefault("28px"),or=An("type-ramp-plus-3-font-size").withDefault("24px"),sr=An("type-ramp-plus-3-line-height").withDefault("32px"),nr=An("type-ramp-plus-4-font-size").withDefault("28px"),rr=An("type-ramp-plus-4-line-height").withDefault("36px"),ar=An("type-ramp-plus-5-font-size").withDefault("32px"),lr=An("type-ramp-plus-5-line-height").withDefault("40px"),cr=An("type-ramp-plus-6-font-size").withDefault("40px"),hr=An("type-ramp-plus-6-line-height").withDefault("52px"),dr=An("base-layer-luminance").withDefault(Ln.LightMode),ur=An("accent-fill-rest-delta").withDefault(0),pr=An("accent-fill-hover-delta").withDefault(4),gr=An("accent-fill-active-delta").withDefault(-5),fr=An("accent-fill-focus-delta").withDefault(0),br=An("accent-foreground-rest-delta").withDefault(0),mr=An("accent-foreground-hover-delta").withDefault(6),vr=An("accent-foreground-active-delta").withDefault(-4),yr=An("accent-foreground-focus-delta").withDefault(0),xr=An("neutral-fill-rest-delta").withDefault(7),$r=An("neutral-fill-hover-delta").withDefault(10),wr=An("neutral-fill-active-delta").withDefault(5),kr=An("neutral-fill-focus-delta").withDefault(0),Cr=An("neutral-fill-input-rest-delta").withDefault(0),Ir=An("neutral-fill-input-hover-delta").withDefault(0),Tr=An("neutral-fill-input-active-delta").withDefault(0),Fr=An("neutral-fill-input-focus-delta").withDefault(0),Dr=An("neutral-fill-inverse-rest-delta").withDefault(0),Rr=An("neutral-fill-inverse-hover-delta").withDefault(-3),Sr=An("neutral-fill-inverse-active-delta").withDefault(7),Er=An("neutral-fill-inverse-focus-delta").withDefault(0),Or=An("neutral-fill-layer-rest-delta").withDefault(3),Lr=An("neutral-fill-stealth-rest-delta").withDefault(0),Vr=An("neutral-fill-stealth-hover-delta").withDefault(5),Ar=An("neutral-fill-stealth-active-delta").withDefault(3),Pr=An("neutral-fill-stealth-focus-delta").withDefault(0),Hr=An("neutral-fill-strong-rest-delta").withDefault(0),zr=An("neutral-fill-strong-hover-delta").withDefault(8),Mr=An("neutral-fill-strong-active-delta").withDefault(-5),Nr=An("neutral-fill-strong-focus-delta").withDefault(0),Br=An("neutral-stroke-rest-delta").withDefault(25),jr=An("neutral-stroke-hover-delta").withDefault(40),Ur=An("neutral-stroke-active-delta").withDefault(16),qr=An("neutral-stroke-focus-delta").withDefault(25),_r=An("neutral-stroke-divider-rest-delta").withDefault(8),Gr=An("neutral-stroke-strong-hover-delta").withDefault(40),Wr=An("neutral-stroke-strong-active-delta").withDefault(16),Kr=An("neutral-stroke-strong-focus-delta").withDefault(25),Xr=An({name:"neutral-palette",cssCustomPropertyName:null}).withDefault(In.create(Rn)),Yr=An({name:"accent-palette",cssCustomPropertyName:null}).withDefault(In.create(En)),Qr=An({name:"neutral-layer-card-container-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i){const o=Os(t.closestIndexOf(On(e))-i,0,t.swatches.length-1);return t.get(o+i)}(Xr.getValueFor(t),dr.getValueFor(t),Or.getValueFor(t))}),Zr=An("neutral-layer-card-container").withDefault(t=>Qr.getValueFor(t).evaluate(t)),Jr=An({name:"neutral-layer-floating-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(On(e))-i;return t.get(o-i)}(Xr.getValueFor(t),dr.getValueFor(t),Or.getValueFor(t))}),ta=An("neutral-layer-floating").withDefault(t=>Jr.getValueFor(t).evaluate(t)),ea=An({name:"neutral-layer-1-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(On(e)))}(Xr.getValueFor(t),dr.getValueFor(t))}),ia=An("neutral-layer-1").withDefault(t=>ea.getValueFor(t).evaluate(t)),oa=An({name:"neutral-layer-2-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=dr.getValueFor(t),o=Or.getValueFor(t),s=xr.getValueFor(t),n=$r.getValueFor(t),r=wr.getValueFor(t),e.get(Vn(e,i,o,s,n,r));var e,i,o,s,n,r}}),sa=An("neutral-layer-2").withDefault(t=>oa.getValueFor(t).evaluate(t)),na=An({name:"neutral-layer-3-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=dr.getValueFor(t),o=Or.getValueFor(t),s=xr.getValueFor(t),n=$r.getValueFor(t),r=wr.getValueFor(t),e.get(Vn(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),ra=An("neutral-layer-3").withDefault(t=>na.getValueFor(t).evaluate(t)),aa=An({name:"neutral-layer-4-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=dr.getValueFor(t),o=Or.getValueFor(t),s=xr.getValueFor(t),n=$r.getValueFor(t),r=wr.getValueFor(t),e.get(Vn(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),la=An("neutral-layer-4").withDefault(t=>aa.getValueFor(t).evaluate(t)),ca=An("fill-color").withDefault(t=>ia.getValueFor(t));var ha;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(ha||(ha={}));const da=An({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>(ha.normal,(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=t.closestIndexOf(c),d=h+1*o,u=h+1*s,p=h+1*n;return{rest:t.get(h),hover:t.get(d),active:t.get(u),focus:t.get(p)}}(Yr.getValueFor(t),Xr.getValueFor(t),e||ca.getValueFor(t),pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),xr.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t)))(t,e)}),ua=An("accent-fill-rest").withDefault(t=>da.getValueFor(t).evaluate(t).rest),pa=An("accent-fill-hover").withDefault(t=>da.getValueFor(t).evaluate(t).hover),ga=An("accent-fill-active").withDefault(t=>da.getValueFor(t).evaluate(t).active),fa=An("accent-fill-focus").withDefault(t=>da.getValueFor(t).evaluate(t).focus),ba=t=>(e,i)=>function(t,e){return t.contrast(Fn)>=e?Fn:Dn}(i||ua.getValueFor(e),t),ma=An({name:"foreground-on-accent-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>ba(ha.normal)(t,e)}),va=An("foreground-on-accent-rest").withDefault(t=>ma.getValueFor(t).evaluate(t,ua.getValueFor(t))),ya=An("foreground-on-accent-hover").withDefault(t=>ma.getValueFor(t).evaluate(t,pa.getValueFor(t))),xa=An("foreground-on-accent-active").withDefault(t=>ma.getValueFor(t).evaluate(t,ga.getValueFor(t))),$a=An("foreground-on-accent-focus").withDefault(t=>ma.getValueFor(t).evaluate(t,fa.getValueFor(t))),wa=An({name:"foreground-on-accent-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>ba(ha.large)(t,e)}),ka=An("foreground-on-accent-rest-large").withDefault(t=>wa.getValueFor(t).evaluate(t)),Ca=An("foreground-on-accent-hover-large").withDefault(t=>wa.getValueFor(t).evaluate(t,pa.getValueFor(t))),Ia=An("foreground-on-accent-active-large").withDefault(t=>wa.getValueFor(t).evaluate(t,ga.getValueFor(t))),Ta=An("foreground-on-accent-focus-large").withDefault(t=>wa.getValueFor(t).evaluate(t,fa.getValueFor(t))),Fa=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=Cn(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,f;return(1===c?o<s:c*o>c*s)?(g=u,f=p):(g=p,f=u),{rest:t.get(g),hover:t.get(f),active:t.get(g+c*n),focus:t.get(g+c*r)}}(Yr.getValueFor(e),i||ca.getValueFor(e),t,br.getValueFor(e),mr.getValueFor(e),vr.getValueFor(e),yr.getValueFor(e)),Da=An({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>Fa(ha.normal)(t,e)}),Ra=An("accent-foreground-rest").withDefault(t=>Da.getValueFor(t).evaluate(t).rest),Sa=An("accent-foreground-hover").withDefault(t=>Da.getValueFor(t).evaluate(t).hover),Ea=An("accent-foreground-active").withDefault(t=>Da.getValueFor(t).evaluate(t).active),Oa=An("accent-foreground-focus").withDefault(t=>Da.getValueFor(t).evaluate(t).focus),La=An({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(Xr.getValueFor(t),e||ca.getValueFor(t),xr.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t),kr.getValueFor(t))}),Va=An("neutral-fill-rest").withDefault(t=>La.getValueFor(t).evaluate(t).rest),Aa=An("neutral-fill-hover").withDefault(t=>La.getValueFor(t).evaluate(t).hover),Pa=An("neutral-fill-active").withDefault(t=>La.getValueFor(t).evaluate(t).active),Ha=An("neutral-fill-focus").withDefault(t=>La.getValueFor(t).evaluate(t).focus),za=An({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=Cn(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(Xr.getValueFor(t),e||ca.getValueFor(t),Cr.getValueFor(t),Ir.getValueFor(t),Tr.getValueFor(t),Fr.getValueFor(t))}),Ma=An("neutral-fill-input-rest").withDefault(t=>za.getValueFor(t).evaluate(t).rest),Na=An("neutral-fill-input-hover").withDefault(t=>za.getValueFor(t).evaluate(t).hover),Ba=An("neutral-fill-input-focus").withDefault(t=>za.getValueFor(t).evaluate(t).focus),ja=An("neutral-fill-input-active").withDefault(t=>za.getValueFor(t).evaluate(t).active),Ua=An({name:"neutral-fill-inverse-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=Cn(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Xr.getValueFor(t),e||ca.getValueFor(t),Dr.getValueFor(t),Rr.getValueFor(t),Sr.getValueFor(t),Er.getValueFor(t))}),qa=An("neutral-fill-inverse-rest").withDefault(t=>Ua.getValueFor(t).evaluate(t).rest),_a=An("neutral-fill-inverse-hover").withDefault(t=>Ua.getValueFor(t).evaluate(t).hover),Ga=An("neutral-fill-inverse-active").withDefault(t=>Ua.getValueFor(t).evaluate(t).active),Wa=An("neutral-fill-inverse-focus").withDefault(t=>Ua.getValueFor(t).evaluate(t).focus),Ka=An({name:"neutral-fill-layer-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-i)}(Xr.getValueFor(t),e||ca.getValueFor(t),Or.getValueFor(t))}),Xa=An("neutral-fill-layer-rest").withDefault(t=>Ka.getValueFor(t).evaluate(t)),Ya=An({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(Xr.getValueFor(t),e||ca.getValueFor(t),Lr.getValueFor(t),Vr.getValueFor(t),Ar.getValueFor(t),Pr.getValueFor(t),xr.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t),kr.getValueFor(t))}),Qa=An("neutral-fill-stealth-rest").withDefault(t=>Ya.getValueFor(t).evaluate(t).rest),Za=An("neutral-fill-stealth-hover").withDefault(t=>Ya.getValueFor(t).evaluate(t).hover),Ja=An("neutral-fill-stealth-active").withDefault(t=>Ya.getValueFor(t).evaluate(t).active),tl=An("neutral-fill-stealth-focus").withDefault(t=>Ya.getValueFor(t).evaluate(t).focus),el=An({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=Cn(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Xr.getValueFor(t),e||ca.getValueFor(t),Hr.getValueFor(t),zr.getValueFor(t),Mr.getValueFor(t),Nr.getValueFor(t))}),il=An("neutral-fill-strong-rest").withDefault(t=>el.getValueFor(t).evaluate(t).rest),ol=An("neutral-fill-strong-hover").withDefault(t=>el.getValueFor(t).evaluate(t).hover),sl=An("neutral-fill-strong-active").withDefault(t=>el.getValueFor(t).evaluate(t).active),nl=An("neutral-fill-strong-focus").withDefault(t=>el.getValueFor(t).evaluate(t).focus),rl=An({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=Cn(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(Xr.getValueFor(t),ca.getValueFor(t),Br.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),qr.getValueFor(t))}),al=An("neutral-stroke-rest").withDefault(t=>rl.getValueFor(t).evaluate(t).rest),ll=An("neutral-stroke-hover").withDefault(t=>rl.getValueFor(t).evaluate(t).hover),cl=An("neutral-stroke-active").withDefault(t=>rl.getValueFor(t).evaluate(t).active),hl=An("neutral-stroke-focus").withDefault(t=>rl.getValueFor(t).evaluate(t).focus),dl=An({name:"neutral-stroke-divider-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+Cn(e)*i)}(Xr.getValueFor(t),e||ca.getValueFor(t),_r.getValueFor(t))}),ul=An("neutral-stroke-divider-rest").withDefault(t=>dl.getValueFor(t).evaluate(t)),pl=An({name:"neutral-stroke-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=Cn(e),a=t.colorContrast(e,i),l=t.closestIndexOf(a);return{rest:a,hover:t.get(l+r*o),active:t.get(l+r*s),focus:t.get(l+r*n)}}(Xr.getValueFor(t),ca.getValueFor(t),3,Gr.getValueFor(t),Wr.getValueFor(t),Kr.getValueFor(t))}),gl=An("neutral-stroke-strong-rest").withDefault(t=>pl.getValueFor(t).evaluate(t).rest),fl=An("neutral-stroke-strong-hover").withDefault(t=>pl.getValueFor(t).evaluate(t).hover),bl=An("neutral-stroke-strong-active").withDefault(t=>pl.getValueFor(t).evaluate(t).active),ml=An("neutral-stroke-strong-focus").withDefault(t=>pl.getValueFor(t).evaluate(t).focus),vl=An({name:"focus-stroke-outer-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=ca.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),yl=An("focus-stroke-outer").withDefault(t=>vl.getValueFor(t).evaluate(t)),xl=An({name:"focus-stroke-inner-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Yr.getValueFor(t),i=ca.getValueFor(t),o=yl.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*Cn(i));var e,i,o}}),$l=An("focus-stroke-inner").withDefault(t=>xl.getValueFor(t).evaluate(t)),wl=An({name:"neutral-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=ca.getValueFor(t),e.colorContrast(i,14);var e,i}}),kl=An("neutral-foreground-rest").withDefault(t=>wl.getValueFor(t).evaluate(t)),Cl=An({name:"neutral-foreground-hint-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{return e=Xr.getValueFor(t),i=ca.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),Il=An("neutral-foreground-hint").withDefault(t=>Cl.getValueFor(t).evaluate(t)),Tl=jn,Fl=Un,Dl=qn,Rl=_n,Sl=Or,El=Hr,Ol=zr,Ll=Mr,Vl=Nr,Al=Dr,Pl=Rr,Hl=Sr,zl=Er,Ml=_r,Nl=ia,Bl=sa,jl=ra,Ul=la,ql=va,_l=ka,Gl=ul,Wl=Xa,Kl=qa,Xl=_a,Yl=Ga,Ql=Wa,Zl=il,Jl=ol,tc=sl,ec=nl,ic=yl,oc=$l,sc=al,nc=ll,rc=cl,ac=hl,lc=(t,e)=>Dt`
22
+ ${_i("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${Gn};font-size:${Xn};line-height:${Yn};color:${kl};border-top:calc(${qn} * 1px) solid ${ul}}`,cc=St`(${zn} + ${Nn}) * ${Bn}`,hc=(t,e)=>Dt`
23
+ ${_i("flex")} :host{box-sizing:border-box;font-family:${Gn};flex-direction:column;font-size:${Xn};line-height:${Yn};border-bottom:calc(${qn} * 1px) solid ${ul}}.region{display:none;padding:calc((6 + (${Bn} * 2 * ${Nn})) * 1px)}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto calc(${cc} * 1px);z-index:2}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;padding:0 calc((6 + (${Bn} * 2 * ${Nn})) * 1px);text-align:left;height:calc(${cc} * 1px);color:${kl};cursor:pointer;font-family:inherit}.button:hover,.button:active{color:${kl}}.button::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;cursor:pointer}.button:${Gi}::before{outline:none;border:calc(${qn} * 1px) solid ${yl};box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${yl}}:host(.expanded) .region{display:block}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;z-index:2;pointer-events:none;fill:${ua}}slot[name='collapsed-icon']{display:flex}:host(.expanded) slot[name='collapsed-icon']{display:none}slot[name='expanded-icon']{display:none}:host(.expanded) slot[name='expanded-icon']{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${Bn} * 1px);justify-content:center;grid-column:1;z-index:2}.end{display:flex;align-items:center;justify-content:center;grid-column:3;z-index:2}`.withBehaviors(Ui(Dt`
24
+ .button:${Gi}::before{border-color:${Es.Highlight};box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${Es.Highlight}}.icon{fill:${Es.ButtonText}}`)),dc=je.compose({baseName:"accordion-item",template:(t,e)=>nt`<template class="${t=>t.expanded?"expanded":""}" slot="item"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Nt("expandbutton")} 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"><slot name="heading" part="heading"></slot></span></button>${te(0,e)} ${Jt(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:hc,collapsedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M16.22 3H3.78a.78.78 0 00-.78.78v12.44c0 .43.35.78.78.78h12.44c.43 0 .78-.35.78-.78V3.78a.78.78 0 00-.78-.78zM3.78 2h12.44C17.2 2 18 2.8 18 3.78v12.44c0 .98-.8 1.78-1.78 1.78H3.78C2.8 18 2 17.2 2 16.22V3.78C2 2.8 2.8 2 3.78 2zM11 9h3v2h-3v3H9v-3H6V9h3V6h2v3z"\n />\n </svg>\n ',expandedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.78 3h12.44c.43 0 .78.35.78.78v12.44c0 .43-.35.78-.78.78H3.78a.78.78 0 01-.78-.78V3.78c0-.43.35-.78.78-.78zm12.44-1H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.78-.8 1.78-1.78V3.78C18 2.8 17.2 2 16.22 2zM14 9H6v2h8V9z"\n />\n </svg>\n '}),uc=hc,pc=ti.compose({baseName:"accordion",template:(t,e)=>nt`<template><slot name="item" part="item" ${Xt("accordionItems")}></slot></template>`,styles:lc}),gc=lc;
25
25
  /*! *****************************************************************************
26
26
  Copyright (c) Microsoft Corporation.
27
27
 
@@ -36,126 +36,126 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
36
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
37
  PERFORMANCE OF THIS SOFTWARE.
38
38
  ***************************************************************************** */
39
- function gc(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}class fc{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&An.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new bc(this.ltr,this.rtl,t),i=An.getValueFor(t);An.subscribe(e),e.attach(i),this.cache.set(t,e)}}class bc{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const mc="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))",vc="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))",yc=`box-shadow: ${mc}, ${vc};`,xc=(t,e)=>Dt`
40
- ${Ji("inline-flex")} :host{font-family:${_n};outline:none;font-size:${Gn};line-height:${Wn};height:calc(${lc} * 1px);min-width:calc(${lc} * 1px);background-color:${La};color:${wl};border-radius:calc(${Bn} * 1px);fill:currentcolor;cursor:pointer}.control{background:transparent;height:inherit;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;padding:0 calc((10 + (${Nn} * 2 * ${Mn})) * 1px);white-space:nowrap;outline:none;text-decoration:none;border:calc(${Un} * 1px) solid transparent;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-family:inherit}.control,.end,.start{font:inherit}.control.icon-only{padding:0;line-height:0}:host(:hover){background-color:${Va}}:host(:active){background-color:${Aa}}.control:${to}{border:calc(${Un} * 1px) solid ${vl};box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${vl}}.control::-moz-focus-inner{border:0}.content{pointer-events:none}.start,.end{display:flex;pointer-events:none}::slotted(svg){${""} width:16px;height:16px;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(Qi(Dt`
41
- :host,:host([appearance="neutral"]) .control{background-color:${Es.ButtonFace};border-color:${Es.ButtonText};color:${Es.ButtonText};fill:currentcolor}:host(:not([disabled][href]):hover),:host([appearance="neutral"]:not([disabled]):hover) .control{forced-color-adjust:none;background-color:${Es.Highlight};color:${Es.HighlightText}}.control:${to},:host([appearance="outline"]) .control:${to},:host([appearance="neutral"]:${to}) .control{forced-color-adjust:none;background-color:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${Es.ButtonText};color:${Es.HighlightText}}.control:not([disabled]):hover,:host([appearance="outline"]) .control:hover{border-color:${Es.ButtonText}}:host([href]) .control{border-color:${Es.LinkText};color:${Es.LinkText}}:host([href]) .control:hover,:host(.neutral[href]) .control:hover,:host(.outline[href]) .control:hover,:host([href]) .control:${to}{forced-color-adjust:none;background:${Es.ButtonFace};border-color:${Es.LinkText};box-shadow:0 0 0 1px ${Es.LinkText} inset;color:${Es.LinkText};fill:currentcolor}`)),$c=Dt`
42
- :host([appearance='accent']){background:${da};color:${ma}}:host([appearance='accent']:hover){background:${ua};color:${va}}:host([appearance='accent']:active) .control:active{background:${pa};color:${ya}}:host([appearance="accent"]) .control:${to}{box-shadow:0 0 0 calc(${qn} * 1px) inset ${xl},0 0 0 calc((${qn} - ${Un}) * 1px) ${vl}}`.withBehaviors(Qi(Dt`
43
- :host([appearance='accent']) .control{forced-color-adjust:none;background:${Es.Highlight};color:${Es.HighlightText}}:host([appearance='accent']) .control:hover,:host([appearance='accent']:active) .control:active{background:${Es.HighlightText};border-color:${Es.Highlight};color:${Es.Highlight}}:host([appearance="accent"]) .control:${to}{border-color:${Es.ButtonText};box-shadow:0 0 0 2px ${Es.HighlightText} inset}:host([appearance='accent'][href]) .control{background:${Es.LinkText};color:${Es.HighlightText}}:host([appearance='accent'][href]) .control:hover{background:${Es.ButtonFace};border-color:${Es.LinkText};box-shadow:none;color:${Es.LinkText};fill:currentcolor}:host([appearance="accent"][href]) .control:${to}{border-color:${Es.LinkText};box-shadow:0 0 0 2px ${Es.HighlightText} inset}`)),wc=Dt`
44
- :host([appearance='hypertext']){height:auto;font-size:inherit;line-height:inherit;background:transparent;min-width:0}:host([appearance='hypertext']) .control{display:inline;padding:0;border:none;box-shadow:none;border-radius:0;line-height:1}:host a.control:not(:link){background-color:transparent;cursor:default}:host([appearance='hypertext']) .control:link,:host([appearance='hypertext']) .control:visited{background:transparent;color:${Da};border-bottom:calc(${Un} * 1px) solid ${Da}}:host([appearance='hypertext']) .control:hover{border-bottom-color:${Sa}}:host([appearance='hypertext']) .control:active{border-bottom-color:${Ea}}:host([appearance="hypertext"]) .control:${to}{border-bottom:calc(${qn} * 1px) solid ${vl};margin-bottom:calc(calc(${Un} - ${qn}) * 1px)}`.withBehaviors(Qi(Dt`
45
- :host([appearance="hypertext"]) .control:${to}{color:${Es.LinkText};border-bottom-color:${Es.LinkText}}`)),kc=Dt`
46
- :host([appearance='lightweight']){background:transparent;color:${Da}}:host([appearance='lightweight']) .control{padding:0;height:initial;border:none;box-shadow:none;border-radius:0}:host([appearance='lightweight']:hover){color:${Sa}}:host([appearance='lightweight']:active){color:${Ea}}:host([appearance='lightweight']) .content{position:relative}:host([appearance='lightweight']) .content::before{content:'';display:block;height:calc(${Un} * 1px);position:absolute;top:calc(1em + 3px);width:100%}:host([appearance='lightweight']:hover) .content::before{background:${Sa}}:host([appearance='lightweight']:active) .content::before{background:${Ea}}:host([appearance="lightweight"]) .control:${to} .content::before{background:${wl};height:calc(${qn} * 1px)}`.withBehaviors(Qi(Dt`
47
- :host([appearance='lightweight']){color:${Es.ButtonText}}:host([appearance="lightweight"]) .control:hover,:host([appearance="lightweight"]) .control:${to}{forced-color-adjust:none;background:${Es.ButtonFace};color:${Es.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before,:host([appearance="lightweight"]) .control:${to} .content::before{background:${Es.Highlight}}:host([appearance="lightweight"][href]) .control:hover,:host([appearance="lightweight"][href]) .control:${to}{background:${Es.ButtonFace};box-shadow:none;color:${Es.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before,:host([appearance="lightweight"][href]) .control:${to} .content::before{background:${Es.LinkText}}`)),Cc=Dt`
48
- :host([appearance='outline']){background:transparent;border-color:${rl}}:host([appearance='outline']:hover){border-color:${al}}:host([appearance='outline']:active){border-color:${ll}}:host([appearance='outline']) .control{border-color:inherit}:host([appearance="outline"]) .control:${to}{box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${vl};border-color:${vl}}`.withBehaviors(Qi(Dt`
49
- :host([appearance='outline']){border-color:${Es.ButtonText}}:host([appearance='outline'][href]){border-color:${Es.LinkText}}`)),Ic=Dt`
50
- :host([appearance='stealth']){background:${Ya}}:host([appearance='stealth']:hover){background:${Qa}}:host([appearance='stealth']:active){background:${Za}}`.withBehaviors(Qi(Dt`
51
- :host([appearance='stealth']),:host([appearance='stealth']) .control{forced-color-adjust:none;background:${Es.ButtonFace};border-color:transparent;color:${Es.ButtonText};fill:currentcolor}:host([appearance='stealth']:hover) .control{background:${Es.Highlight};border-color:${Es.Highlight};color:${Es.HighlightText};fill:currentcolor}:host([appearance="stealth"]:${to}) .control{background:${Es.Highlight};box-shadow:0 0 0 1px ${Es.Highlight};color:${Es.HighlightText};fill:currentcolor}:host([appearance='stealth'][href]) .control{color:${Es.LinkText}}:host([appearance="stealth"]:hover[href]) .control,:host([appearance="stealth"]:${to}[href]) .control{background:${Es.LinkText};border-color:${Es.LinkText};color:${Es.HighlightText};fill:currentcolor}:host([appearance="stealth"]:${to}[href]) .control{box-shadow:0 0 0 1px ${Es.LinkText}}`)),Tc=(t,e)=>Dt`
52
- :host([appearance='filled']:not(.disabled):active)::after,:host([appearance='filled']:not(.disabled):focus-within:not(:active))::after{content:'';position:absolute;bottom:0;border-bottom:calc(${qn} * 1px) solid ${da};border-bottom-left-radius:calc(${Bn} * 1px);border-bottom-right-radius:calc(${Bn} * 1px);z-index:2;transition:all 300ms cubic-bezier(0.1,0.9,0.2,1)}:host([appearance='filled']:not(.disabled):active)::after{left:50%;width:40%;transform:translateX(-50%);border-bottom-left-radius:0;border-bottom-right-radius:0}:host([appearance='filled']:not(.disabled):focus-within:not(:active))::after{left:0;width:100%}`;function Fc(t,e){return new Zi("appearance",t,e)}const Dc=(t,e)=>Dt`
53
- ${xc()}
54
- `.withBehaviors(Fc("accent",$c),Fc("hypertext",wc),Fc("lightweight",kc),Fc("outline",Cc),Fc("stealth",Ic));class Sc extends oi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}gc([ft],Sc.prototype,"appearance",void 0);const Ec=Dc,Rc=Sc.compose({baseName:"anchor",baseClass:oi,template:ei,styles:Dc,shadowOptions:{delegatesFocus:!0}}),Oc=(t,e)=>Dt`
55
- :host{contain:layout;display:block}`,Lc=ri.compose({baseName:"anchored-region",template:(t,e)=>nt`<template class="${t=>t.initialLayoutComplete?"loaded":""}">${Bt(t=>t.initialLayoutComplete,nt`<slot></slot>`)}</template>`,styles:Oc}),Vc=Oc,Ac=(t,e)=>Dt`
56
- ${Ji("inline-block")} :host{box-sizing:border-box;font-family:${_n};font-size:${Kn};line-height:${Xn}}.control{border-radius:calc(${Bn} * 1px);padding:calc(((${Nn} * 0.5) - ${Un}) * 1px) calc((${Nn} - ${Un}) * 1px);border:calc(${Un} * 1px) solid transparent}:host(.lightweight) .control{background:transparent;color:${wl};font-weight:600}:host(.accent) .control{background:${da};color:${ma}}:host(.neutral) .control{background:${La};color:${wl}}`;class Pc extends ai{constructor(){super(...arguments),this.appearance="lightweight"}appearanceChanged(t,e){t!==e&&d.queueUpdate(()=>{this.classList.add(e),this.classList.remove(t)})}}gc([ft({mode:"fromView"})],Pc.prototype,"appearance",void 0);const Hc=Pc.compose({baseName:"badge",baseClass:ai,template:(t,e)=>nt`<template class="${t=>t.circular?"circular":""}"><div class="control" part="control" style="${t=>t.generateBadgeStyle()}"><slot></slot></div></template>`,styles:Ac}),zc=Ac,Mc=(t,e)=>Dt`
57
- ${Ji("inline-block")} :host{box-sizing:border-box;font-family:${_n};font-size:${Gn};line-height:${Wn}}.list{display:flex}`,Nc=ci.compose({baseName:"breadcrumb",template:(t,e)=>nt`<template role="navigation"><div role="list" class="list" part="list"><slot ${Xt({property:"slottedBreadcrumbItems",filter:Gt()})}></slot></div></template>`,styles:Mc}),Bc=Mc,jc=(t,e)=>Dt`
58
- ${Ji("inline-flex")} :host{background:transparent;box-sizing:border-box;fill:currentcolor;font-family:${_n};font-size:${Gn};line-height:${Wn};min-width:calc(${lc} * 1px);outline:none}.listitem{display:flex;align-items:center}.control{align-items:center;box-sizing:border-box;color:${Da};cursor:pointer;display:flex;fill:inherit;outline:none;text-decoration:none;white-space:nowrap}.control:hover{color:${Sa}}.control:active{color:${Ea}}.control .content{position:relative}.control .content::before{content:"";display:block;height:calc(${Un} * 1px);left:0;position:absolute;right:0;top:calc(1em + 4px);width:100%}.control:hover .content::before{background:${Sa}}.control:active .content::before{background:${Ea}}.control:${to} .content::before{background:${wl};height:calc(${qn} * 1px)}:host(:not([href])),:host([aria-current]) .control{font-weight:600;color:${wl};fill:currentcolor;cursor:default}:host([aria-current]) .control:hover .content::before{background:${wl}}.start{display:flex;margin-inline-end:6px}.end{display:flex;margin-inline-start:6px}.separator{display:flex;fill:${wl};margin:0 6px}`.withBehaviors(Qi(Dt`
59
- :host(:not([href])),.start,.end,.separator{color:${Es.ButtonText};fill:currentcolor}.control:hover .content::before,.control:${to} .content::before{background:${Es.LinkText}}`)),Uc=li.compose({baseName:"breadcrumb-item",template:(t,e)=>nt`<div role="listitem" class="listitem" part="listitem">${Bt(t=>t.href&&t.href.length>0,nt` ${ei(0,e)} `)} ${Bt(t=>!t.href,nt` ${te(0,e)}<slot></slot>${Jt(0,e)} `)} ${Bt(t=>t.separator,nt`<span class="separator" part="separator" aria-hidden="true"><slot name="separator">${e.separator||""}</slot></span>`)}</div>`,styles:jc,shadowOptions:{delegatesFocus:!0},separator:'\n <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg%22%3E">\n <path\n d="M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 01-.7-.7L12.8 10 7.65 4.85a.5.5 0 010-.7z"\n />\n </svg>\n '}),qc=jc,_c=(t,e)=>Dt`
60
- :host([disabled]),:host([disabled]:hover),:host([disabled]:active){opacity:${Pn};background-color:${La};cursor:${"not-allowed"}}${xc()}
61
- `.withBehaviors(Qi(Dt`
62
- :host([disabled]),:host([disabled]:hover),:host([disabled]:active),:host([disabled]) .control,:host([disabled]) .control:hover,:host([appearance='neutral'][disabled]:hover) .control{forced-color-adjust:none;background-color:${Es.ButtonFace};border-color:${Es.GrayText};color:${Es.GrayText};opacity:1}`),Fc("accent",Dt`
63
- :host([appearance='accent'][disabled]),:host([appearance='accent'][disabled]:hover),:host([appearance='accent'][disabled]:active){background:${da}}${$c}
64
- `.withBehaviors(Qi(Dt`
65
- :host([appearance='accent'][disabled]) .control,:host([appearance='accent'][disabled]) .control:hover{background:${Es.ButtonFace};border-color:${Es.GrayText};color:${Es.GrayText}}`))),Fc("lightweight",Dt`
66
- :host([appearance='lightweight'][disabled]:hover),:host([appearance='lightweight'][disabled]:active){background-color:transparent;color:${Da}}:host([appearance='lightweight'][disabled]) .content::before,:host([appearance='lightweight'][disabled]:hover) .content::before,:host([appearance='lightweight'][disabled]:active) .content::before{background:transparent}${kc}
67
- `.withBehaviors(Qi(Dt`
68
- :host([appearance='lightweight'][disabled]) .control{forced-color-adjust:none;color:${Es.GrayText}}:host([appearance='lightweight'][disabled]) .control:hover .content::before{background:none}`))),Fc("outline",Dt`
69
- :host([appearance='outline'][disabled]:hover),:host([appearance='outline'][disabled]:active){background:transparent;border-color:${rl}}${Cc}
70
- `.withBehaviors(Qi(Dt`
71
- :host([appearance='outline'][disabled]) .control{border-color:${Es.GrayText}}`))),Fc("stealth",Dt`
72
- :host([appearance='stealth'][disabled]),:host([appearance='stealth'][disabled]:hover),:host([appearance='stealth'][disabled]:active){background:${Ya}}${Ic}
73
- `.withBehaviors(Qi(Dt`
74
- :host([appearance='stealth'][disabled]),:host([appearance='stealth'][disabled]:hover){background:${Es.ButtonFace}}:host([appearance='stealth'][disabled]) .control{background:${Es.ButtonFace};border-color:transparent;color:${Es.GrayText}}`))));class Gc extends fi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}gc([ft],Gc.prototype,"appearance",void 0);const Wc=Gc.compose({baseName:"button",baseClass:fi,template:(t,e)=>nt`<button class="control" part="control" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" form="${t=>t.formId}" formaction="${t=>t.formaction}" formenctype="${t=>t.formenctype}" formmethod="${t=>t.formmethod}" formnovalidate="${t=>t.formnovalidate}" formtarget="${t=>t.formtarget}" name="${t=>t.name}" type="${t=>t.type}" value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-pressed="${t=>t.ariaPressed}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")}>${te(0,e)}<span class="content" part="content"><slot ${Xt("defaultSlottedContent")}></slot></span>${Jt(0,e)}</button>`,styles:_c,shadowOptions:{delegatesFocus:!0}}),Kc=_c,Xc=(t,e)=>Dt`
75
- ${Ji("block")} :host{--elevation:4;display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${la};color:${wl};border-radius:calc(${jn} * 1px);${yc}}:host(:hover){--elevation:8}:host(:focus-within){--elevation:8}:host{content-visibility:auto}`.withBehaviors(Qi(Dt`
76
- :host{forced-color-adjust:none;background:${Es.Canvas};box-shadow:0 0 0 1px ${Es.CanvasText}}`));class Yc extends Ii{cardFillColorChanged(t,e){if(e){const t=fn(e);null!==t&&(this.neutralPaletteSource=e,la.setValueFor(this,yn.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=fn(e),i=yn.create(t.r,t.g,t.b);Kr.setValueFor(this,Cn.create(i))}}handleChange(t,e){this.cardFillColor||la.setValueFor(this,e=>Wa.getValueFor(e).evaluate(e,la.getValueFor(t)))}connectedCallback(){super.connectedCallback();const t=Xi(this);if(t){const e=C.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}gc([ft({attribute:"card-fill-color",mode:"fromView"})],Yc.prototype,"cardFillColor",void 0),gc([ft({attribute:"neutral-palette-source",mode:"fromView"})],Yc.prototype,"neutralPaletteSource",void 0);const Qc=Yc.compose({baseName:"card",baseClass:Ii,template:(t,e)=>nt`<slot></slot>`,styles:Xc}),Zc=Xc,Jc=(t,e)=>Dt`
77
- ${Ji("inline-flex")} :host{align-items:center;outline:none;margin:calc(${Nn} * 1px) 0;${""} user-select:none}.control{position:relative;width:calc((${lc} / 2 + ${Nn}) * 1px);height:calc((${lc} / 2 + ${Nn}) * 1px);box-sizing:border-box;border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid ${pl};background:${za};outline:none;cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{font-family:${_n};color:${wl};${""} padding-inline-start:calc(${Nn} * 2px + 2px);margin-inline-end:calc(${Nn} * 2px + 2px);cursor:pointer;font-size:${Gn};line-height:${Wn}}.checked-indicator{width:100%;height:100%;display:block;fill:${wl};opacity:0;pointer-events:none}.indeterminate-indicator{border-radius:calc((${Bn} / 2) * 1px);background:${wl};position:absolute;top:50%;left:50%;width:50%;height:50%;transform:translate(-50%,-50%);opacity:0}:host(:enabled) .control:hover{background:${Ma};border-color:${gl}}:host(:enabled) .control:active{background:${Ba};border-color:${fl}}:host(:${to}) .control{box-shadow:0 0 0 2px ${la},0 0 0 4px ${vl};border-color:${vl}}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked:not(.indeterminate)) .checked-indicator,:host(.indeterminate) .indeterminate-indicator{opacity:1}:host(.disabled){opacity:${Pn}}`.withBehaviors(Qi(Dt`
78
- .control{forced-color-adjust:none;border-color:${Es.FieldText};background:${Es.Field}}:host(:enabled) .control:hover,.control:active{border-color:${Es.Highlight};background:${Es.Field}}.checked-indicator{fill:${Es.FieldText}}.indeterminate-indicator{background:${Es.FieldText}}:host(:${to}) .control{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:${to}:enabled) .control{box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked) .control{background:${Es.Highlight};border-color:${Es.Highlight}}:host(.checked) .control:hover,.control:active{background:${Es.HighlightText}}:host(.checked) .checked-indicator{fill:${Es.HighlightText}}:host(.checked) .control:hover .checked-indicator{fill:${Es.Highlight}}:host(.checked) .indeterminate-indicator{background:${Es.HighlightText}}:host(.checked) .control:hover .indeterminate-indicator{background:${Es.Highlight}}:host(.disabled){opacity:1}:host(.disabled) .control{forced-color-adjust:none;border-color:${Es.GrayText};background:${Es.Field}}:host(.disabled) .indeterminate-indicator,:host(.checked.disabled) .control:hover .indeterminate-indicator{forced-color-adjust:none;background:${Es.GrayText}}:host(.disabled) .checked-indicator,:host(.checked.disabled) .control:hover .checked-indicator{forced-color-adjust:none;fill:${Es.GrayText}}`)),th=Di.compose({baseName:"checkbox",template:(t,e)=>nt`<template role="checkbox" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot><slot name="indeterminate-indicator">${e.indeterminateIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label></template>`,styles:Jc,checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '}),eh=Jc,ih=(t,e)=>Dt`
79
- :host([appearance='filled']){background:${La};border-color:transparent}:host([appearance='filled']:hover:not([disabled])){background:${Va};border-color:transparent}:host([appearance="filled"]:${to}){border-color:${vl}}`,oh=(t,e)=>Dt`
80
- ${Ji("inline-flex")} :host{--elevation:14;background:${za};border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid ${rl};box-sizing:border-box;color:${wl};font-family:${_n};height:calc(${lc} * 1px);position:relative;user-select:none;min-width:250px;vertical-align:top}.listbox{${yc}
81
- background:${Jr};border-radius:calc(${Bn} * 1px);box-sizing:border-box;display:inline-flex;flex-direction:column;left:0;max-height:calc(var(--max-height) - (${lc} * 1px));padding:calc(${Nn} * 1px) 0;overflow-y:auto;position:absolute;width:100%;z-index:1;margin:1px 0}.listbox[hidden]{display:none}.control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:${Gn};font-family:inherit;min-height:100%;line-height:${Wn};padding:0 calc(${Nn} * 2.25px);width:100%}:host(:not([disabled]):hover){background:${Ma};border-color:${al}}:host(:focus){outline:none}:host(:${to}){border-color:${vl};outline:none;box-shadow:0 0 0 1px inset ${vl}}:host([open]:${to}){border-color:${rl};outline:none;box-shadow:none}:host(:${to}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){box-shadow:0 0 0 calc(${qn} * 1px) inset ${xl};border-color:${vl};background:${ga};color:${xa}}:host([disabled]){cursor:${"not-allowed"};opacity:${Pn}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([disabled]:hover){background:${Ya};color:${wl};fill:currentcolor}:host(:not([disabled])) .control:active{background:${Ba};border-color:${ll};border-radius:calc(${Bn} * 1px)}:host([open][position='above']) .listbox{border-bottom-left-radius:0;border-bottom-right-radius:0}:host([open][position='below']) .listbox{border-top-left-radius:0;border-top-right-radius:0}:host([open][position='above']) .listbox{border-bottom:0;bottom:calc(${lc} * 1px)}:host([open][position='below']) .listbox{border-top:0;top:calc(${lc} * 1px)}.selected-value{font-family:inherit;flex:1 1 auto;text-align:start}.indicator{flex:0 0 auto;margin-inline-start:1em}slot[name='listbox']{display:none;width:100%}:host([open]) slot[name='listbox']{display:flex;position:absolute;${yc}}.end{margin-inline-start:auto}.start,.end,.indicator,.select-indicator,::slotted(svg){${""}
82
- fill:currentcolor;height:1em;min-height:calc(${Nn} * 4px);min-width:calc(${Nn} * 4px);width:1em}::slotted([role='option']){flex:0 0 auto}`.withBehaviors(Fc("filled",ih()),Qi(Dt`
83
- :host([disabled]){border-color:${Es.GrayText};background-color:${Es.ButtonFace};color:${Es.GrayText};opacity:1;forced-color-adjust:none}:host([disabled]:hover){background:${Es.ButtonFace}}:host([disabled]) .control{color:${Es.GrayText};border-color:${Es.GrayText}}:host(:not([disabled]):hover){background:${Es.ButtonFace};border-color:${Es.Highlight}}:host(:${to}){forced-color-adjust:none;background:${Es.ButtonFace};border-color:${Es.Highlight};box-shadow:0 0 0 1px inset ${Es.Highlight};color:${Es.ButtonText};fill:currentcolor}:host([open]) .listbox{background:${Es.ButtonFace};border:1px solid ${Es.ButtonText}}:host(:${to}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${qn} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}::slotted([role='option']:not([aria-selected='true']):not([disabled]):hover){forced-color-adjust:none;color:${Es.ButtonText};background:${Es.ButtonFace};border-color:${Es.Highlight};box-shadow:none}`)),sh=(t,e)=>Dt`
84
- ${oh()}
39
+ function fc(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}class bc{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&Pn.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new mc(this.ltr,this.rtl,t),i=Pn.getValueFor(t);Pn.subscribe(e),e.attach(i),this.cache.set(t,e)}}class mc{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const vc="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))",yc="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))",xc=`box-shadow: ${vc}, ${yc};`,$c=(t,e)=>Dt`
40
+ ${_i("inline-flex")} :host{font-family:${Gn};outline:none;font-size:${Wn};line-height:${Kn};height:calc(${cc} * 1px);min-width:calc(${cc} * 1px);background-color:${Va};color:${kl};border-radius:calc(${jn} * 1px);fill:currentcolor;cursor:pointer}.control{background:transparent;height:inherit;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;padding:0 calc((10 + (${Bn} * 2 * ${Nn})) * 1px);white-space:nowrap;outline:none;text-decoration:none;border:calc(${qn} * 1px) solid transparent;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-family:inherit}.control,.end,.start{font:inherit}.control.icon-only{padding:0;line-height:0}:host(:hover){background-color:${Aa}}:host(:active){background-color:${Pa}}.control:${Gi}{border:calc(${qn} * 1px) solid ${yl};box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${yl}}.control::-moz-focus-inner{border:0}.content{pointer-events:none}.start,.end{display:flex;pointer-events:none}::slotted(svg){${""} width:16px;height:16px;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(Ui(Dt`
41
+ :host,:host([appearance="neutral"]) .control{background-color:${Es.ButtonFace};border-color:${Es.ButtonText};color:${Es.ButtonText};fill:currentcolor}:host(:not([disabled][href]):hover),:host([appearance="neutral"]:not([disabled]):hover) .control{forced-color-adjust:none;background-color:${Es.Highlight};color:${Es.HighlightText}}.control:${Gi},:host([appearance="outline"]) .control:${Gi},:host([appearance="neutral"]:${Gi}) .control{forced-color-adjust:none;background-color:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${Es.ButtonText};color:${Es.HighlightText}}.control:not([disabled]):hover,:host([appearance="outline"]) .control:hover{border-color:${Es.ButtonText}}:host([href]) .control{border-color:${Es.LinkText};color:${Es.LinkText}}:host([href]) .control:hover,:host(.neutral[href]) .control:hover,:host(.outline[href]) .control:hover,:host([href]) .control:${Gi}{forced-color-adjust:none;background:${Es.ButtonFace};border-color:${Es.LinkText};box-shadow:0 0 0 1px ${Es.LinkText} inset;color:${Es.LinkText};fill:currentcolor}`)),wc=Dt`
42
+ :host([appearance='accent']){background:${ua};color:${va}}:host([appearance='accent']:hover){background:${pa};color:${ya}}:host([appearance='accent']:active) .control:active{background:${ga};color:${xa}}:host([appearance="accent"]) .control:${Gi}{box-shadow:0 0 0 calc(${_n} * 1px) inset ${$l},0 0 0 calc((${_n} - ${qn}) * 1px) ${yl}}`.withBehaviors(Ui(Dt`
43
+ :host([appearance='accent']) .control{forced-color-adjust:none;background:${Es.Highlight};color:${Es.HighlightText}}:host([appearance='accent']) .control:hover,:host([appearance='accent']:active) .control:active{background:${Es.HighlightText};border-color:${Es.Highlight};color:${Es.Highlight}}:host([appearance="accent"]) .control:${Gi}{border-color:${Es.ButtonText};box-shadow:0 0 0 2px ${Es.HighlightText} inset}:host([appearance='accent'][href]) .control{background:${Es.LinkText};color:${Es.HighlightText}}:host([appearance='accent'][href]) .control:hover{background:${Es.ButtonFace};border-color:${Es.LinkText};box-shadow:none;color:${Es.LinkText};fill:currentcolor}:host([appearance="accent"][href]) .control:${Gi}{border-color:${Es.LinkText};box-shadow:0 0 0 2px ${Es.HighlightText} inset}`)),kc=Dt`
44
+ :host([appearance='hypertext']){height:auto;font-size:inherit;line-height:inherit;background:transparent;min-width:0}:host([appearance='hypertext']) .control{display:inline;padding:0;border:none;box-shadow:none;border-radius:0;line-height:1}:host a.control:not(:link){background-color:transparent;cursor:default}:host([appearance='hypertext']) .control:link,:host([appearance='hypertext']) .control:visited{background:transparent;color:${Ra};border-bottom:calc(${qn} * 1px) solid ${Ra}}:host([appearance='hypertext']) .control:hover{border-bottom-color:${Sa}}:host([appearance='hypertext']) .control:active{border-bottom-color:${Ea}}:host([appearance="hypertext"]) .control:${Gi}{border-bottom:calc(${_n} * 1px) solid ${yl};margin-bottom:calc(calc(${qn} - ${_n}) * 1px)}`.withBehaviors(Ui(Dt`
45
+ :host([appearance="hypertext"]) .control:${Gi}{color:${Es.LinkText};border-bottom-color:${Es.LinkText}}`)),Cc=Dt`
46
+ :host([appearance='lightweight']){background:transparent;color:${Ra}}:host([appearance='lightweight']) .control{padding:0;height:initial;border:none;box-shadow:none;border-radius:0}:host([appearance='lightweight']:hover){color:${Sa}}:host([appearance='lightweight']:active){color:${Ea}}:host([appearance='lightweight']) .content{position:relative}:host([appearance='lightweight']) .content::before{content:'';display:block;height:calc(${qn} * 1px);position:absolute;top:calc(1em + 3px);width:100%}:host([appearance='lightweight']:hover) .content::before{background:${Sa}}:host([appearance='lightweight']:active) .content::before{background:${Ea}}:host([appearance="lightweight"]) .control:${Gi} .content::before{background:${kl};height:calc(${_n} * 1px)}`.withBehaviors(Ui(Dt`
47
+ :host([appearance='lightweight']){color:${Es.ButtonText}}:host([appearance="lightweight"]) .control:hover,:host([appearance="lightweight"]) .control:${Gi}{forced-color-adjust:none;background:${Es.ButtonFace};color:${Es.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before,:host([appearance="lightweight"]) .control:${Gi} .content::before{background:${Es.Highlight}}:host([appearance="lightweight"][href]) .control:hover,:host([appearance="lightweight"][href]) .control:${Gi}{background:${Es.ButtonFace};box-shadow:none;color:${Es.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before,:host([appearance="lightweight"][href]) .control:${Gi} .content::before{background:${Es.LinkText}}`)),Ic=Dt`
48
+ :host([appearance='outline']){background:transparent;border-color:${al}}:host([appearance='outline']:hover){border-color:${ll}}:host([appearance='outline']:active){border-color:${cl}}:host([appearance='outline']) .control{border-color:inherit}:host([appearance="outline"]) .control:${Gi}{box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${yl};border-color:${yl}}`.withBehaviors(Ui(Dt`
49
+ :host([appearance='outline']){border-color:${Es.ButtonText}}:host([appearance='outline'][href]){border-color:${Es.LinkText}}`)),Tc=Dt`
50
+ :host([appearance='stealth']){background:${Qa}}:host([appearance='stealth']:hover){background:${Za}}:host([appearance='stealth']:active){background:${Ja}}`.withBehaviors(Ui(Dt`
51
+ :host([appearance='stealth']),:host([appearance='stealth']) .control{forced-color-adjust:none;background:${Es.ButtonFace};border-color:transparent;color:${Es.ButtonText};fill:currentcolor}:host([appearance='stealth']:hover) .control{background:${Es.Highlight};border-color:${Es.Highlight};color:${Es.HighlightText};fill:currentcolor}:host([appearance="stealth"]:${Gi}) .control{background:${Es.Highlight};box-shadow:0 0 0 1px ${Es.Highlight};color:${Es.HighlightText};fill:currentcolor}:host([appearance='stealth'][href]) .control{color:${Es.LinkText}}:host([appearance="stealth"]:hover[href]) .control,:host([appearance="stealth"]:${Gi}[href]) .control{background:${Es.LinkText};border-color:${Es.LinkText};color:${Es.HighlightText};fill:currentcolor}:host([appearance="stealth"]:${Gi}[href]) .control{box-shadow:0 0 0 1px ${Es.LinkText}}`)),Fc=(t,e)=>Dt`
52
+ :host([appearance='filled']:not(.disabled):active)::after,:host([appearance='filled']:not(.disabled):focus-within:not(:active))::after{content:'';position:absolute;bottom:0;border-bottom:calc(${_n} * 1px) solid ${ua};border-bottom-left-radius:calc(${jn} * 1px);border-bottom-right-radius:calc(${jn} * 1px);z-index:2;transition:all 300ms cubic-bezier(0.1,0.9,0.2,1)}:host([appearance='filled']:not(.disabled):active)::after{left:50%;width:40%;transform:translateX(-50%);border-bottom-left-radius:0;border-bottom-right-radius:0}:host([appearance='filled']:not(.disabled):focus-within:not(:active))::after{left:0;width:100%}`;function Dc(t,e){return new qi("appearance",t,e)}const Rc=(t,e)=>Dt`
53
+ ${$c()}
54
+ `.withBehaviors(Dc("accent",wc),Dc("hypertext",kc),Dc("lightweight",Cc),Dc("outline",Ic),Dc("stealth",Tc));class Sc extends oi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}fc([ft],Sc.prototype,"appearance",void 0);const Ec=Rc,Oc=Sc.compose({baseName:"anchor",baseClass:oi,template:ei,styles:Rc,shadowOptions:{delegatesFocus:!0}}),Lc=(t,e)=>Dt`
55
+ :host{contain:layout;display:block}`,Vc=ri.compose({baseName:"anchored-region",template:(t,e)=>nt`<template class="${t=>t.initialLayoutComplete?"loaded":""}">${Bt(t=>t.initialLayoutComplete,nt`<slot></slot>`)}</template>`,styles:Lc}),Ac=Lc,Pc=(t,e)=>Dt`
56
+ ${_i("inline-block")} :host{box-sizing:border-box;font-family:${Gn};font-size:${Xn};line-height:${Yn}}.control{border-radius:calc(${jn} * 1px);padding:calc(((${Bn} * 0.5) - ${qn}) * 1px) calc((${Bn} - ${qn}) * 1px);border:calc(${qn} * 1px) solid transparent}:host(.lightweight) .control{background:transparent;color:${kl};font-weight:600}:host(.accent) .control{background:${ua};color:${va}}:host(.neutral) .control{background:${Va};color:${kl}}`;class Hc extends ai{constructor(){super(...arguments),this.appearance="lightweight"}appearanceChanged(t,e){t!==e&&d.queueUpdate(()=>{this.classList.add(e),this.classList.remove(t)})}}fc([ft({mode:"fromView"})],Hc.prototype,"appearance",void 0);const zc=Hc.compose({baseName:"badge",baseClass:ai,template:(t,e)=>nt`<template class="${t=>t.circular?"circular":""}"><div class="control" part="control" style="${t=>t.generateBadgeStyle()}"><slot></slot></div></template>`,styles:Pc}),Mc=Pc,Nc=(t,e)=>Dt`
57
+ ${_i("inline-block")} :host{box-sizing:border-box;font-family:${Gn};font-size:${Wn};line-height:${Kn}}.list{display:flex}`,Bc=ci.compose({baseName:"breadcrumb",template:(t,e)=>nt`<template role="navigation"><div role="list" class="list" part="list"><slot ${Xt({property:"slottedBreadcrumbItems",filter:Gt()})}></slot></div></template>`,styles:Nc}),jc=Nc,Uc=(t,e)=>Dt`
58
+ ${_i("inline-flex")} :host{background:transparent;box-sizing:border-box;fill:currentcolor;font-family:${Gn};font-size:${Wn};line-height:${Kn};min-width:calc(${cc} * 1px);outline:none}.listitem{display:flex;align-items:center}.control{align-items:center;box-sizing:border-box;color:${Ra};cursor:pointer;display:flex;fill:inherit;outline:none;text-decoration:none;white-space:nowrap}.control:hover{color:${Sa}}.control:active{color:${Ea}}.control .content{position:relative}.control .content::before{content:"";display:block;height:calc(${qn} * 1px);left:0;position:absolute;right:0;top:calc(1em + 4px);width:100%}.control:hover .content::before{background:${Sa}}.control:active .content::before{background:${Ea}}.control:${Gi} .content::before{background:${kl};height:calc(${_n} * 1px)}:host(:not([href])),:host([aria-current]) .control{font-weight:600;color:${kl};fill:currentcolor;cursor:default}:host([aria-current]) .control:hover .content::before{background:${kl}}.start{display:flex;margin-inline-end:6px}.end{display:flex;margin-inline-start:6px}.separator{display:flex;fill:${kl};margin:0 6px}`.withBehaviors(Ui(Dt`
59
+ :host(:not([href])),.start,.end,.separator{color:${Es.ButtonText};fill:currentcolor}.control:hover .content::before,.control:${Gi} .content::before{background:${Es.LinkText}}`)),qc=li.compose({baseName:"breadcrumb-item",template:(t,e)=>nt`<div role="listitem" class="listitem" part="listitem">${Bt(t=>t.href&&t.href.length>0,nt` ${ei(0,e)} `)} ${Bt(t=>!t.href,nt` ${te(0,e)}<slot></slot>${Jt(0,e)} `)} ${Bt(t=>t.separator,nt`<span class="separator" part="separator" aria-hidden="true"><slot name="separator">${e.separator||""}</slot></span>`)}</div>`,styles:Uc,shadowOptions:{delegatesFocus:!0},separator:'\n <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg%22%3E">\n <path\n d="M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 01-.7-.7L12.8 10 7.65 4.85a.5.5 0 010-.7z"\n />\n </svg>\n '}),_c=Uc,Gc=(t,e)=>Dt`
60
+ :host([disabled]),:host([disabled]:hover),:host([disabled]:active){opacity:${Hn};background-color:${Va};cursor:${"not-allowed"}}${$c()}
61
+ `.withBehaviors(Ui(Dt`
62
+ :host([disabled]),:host([disabled]:hover),:host([disabled]:active),:host([disabled]) .control,:host([disabled]) .control:hover,:host([appearance='neutral'][disabled]:hover) .control{forced-color-adjust:none;background-color:${Es.ButtonFace};border-color:${Es.GrayText};color:${Es.GrayText};opacity:1}`),Dc("accent",Dt`
63
+ :host([appearance='accent'][disabled]),:host([appearance='accent'][disabled]:hover),:host([appearance='accent'][disabled]:active){background:${ua}}${wc}
64
+ `.withBehaviors(Ui(Dt`
65
+ :host([appearance='accent'][disabled]) .control,:host([appearance='accent'][disabled]) .control:hover{background:${Es.ButtonFace};border-color:${Es.GrayText};color:${Es.GrayText}}`))),Dc("lightweight",Dt`
66
+ :host([appearance='lightweight'][disabled]:hover),:host([appearance='lightweight'][disabled]:active){background-color:transparent;color:${Ra}}:host([appearance='lightweight'][disabled]) .content::before,:host([appearance='lightweight'][disabled]:hover) .content::before,:host([appearance='lightweight'][disabled]:active) .content::before{background:transparent}${Cc}
67
+ `.withBehaviors(Ui(Dt`
68
+ :host([appearance='lightweight'][disabled]) .control{forced-color-adjust:none;color:${Es.GrayText}}:host([appearance='lightweight'][disabled]) .control:hover .content::before{background:none}`))),Dc("outline",Dt`
69
+ :host([appearance='outline'][disabled]:hover),:host([appearance='outline'][disabled]:active){background:transparent;border-color:${al}}${Ic}
70
+ `.withBehaviors(Ui(Dt`
71
+ :host([appearance='outline'][disabled]) .control{border-color:${Es.GrayText}}`))),Dc("stealth",Dt`
72
+ :host([appearance='stealth'][disabled]),:host([appearance='stealth'][disabled]:hover),:host([appearance='stealth'][disabled]:active){background:${Qa}}${Tc}
73
+ `.withBehaviors(Ui(Dt`
74
+ :host([appearance='stealth'][disabled]),:host([appearance='stealth'][disabled]:hover){background:${Es.ButtonFace}}:host([appearance='stealth'][disabled]) .control{background:${Es.ButtonFace};border-color:transparent;color:${Es.GrayText}}`))));class Wc extends fi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}fc([ft],Wc.prototype,"appearance",void 0);const Kc=Wc.compose({baseName:"button",baseClass:fi,template:(t,e)=>nt`<button class="control" part="control" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" form="${t=>t.formId}" formaction="${t=>t.formaction}" formenctype="${t=>t.formenctype}" formmethod="${t=>t.formmethod}" formnovalidate="${t=>t.formnovalidate}" formtarget="${t=>t.formtarget}" name="${t=>t.name}" type="${t=>t.type}" value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-pressed="${t=>t.ariaPressed}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")}>${te(0,e)}<span class="content" part="content"><slot ${Xt("defaultSlottedContent")}></slot></span>${Jt(0,e)}</button>`,styles:Gc,shadowOptions:{delegatesFocus:!0}}),Xc=Gc,Yc=(t,e)=>Dt`
75
+ ${_i("block")} :host{--elevation:4;display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${ca};color:${kl};border-radius:calc(${Un} * 1px);${xc}}:host(:hover){--elevation:8}:host(:focus-within){--elevation:8}:host{content-visibility:auto}`.withBehaviors(Ui(Dt`
76
+ :host{forced-color-adjust:none;background:${Es.Canvas};box-shadow:0 0 0 1px ${Es.CanvasText}}`));class Qc extends Ii{cardFillColorChanged(t,e){if(e){const t=bn(e);null!==t&&(this.neutralPaletteSource=e,ca.setValueFor(this,xn.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=bn(e),i=xn.create(t.r,t.g,t.b);Xr.setValueFor(this,In.create(i))}}handleChange(t,e){this.cardFillColor||ca.setValueFor(this,e=>Ka.getValueFor(e).evaluate(e,ca.getValueFor(t)))}connectedCallback(){super.connectedCallback();const t=Bi(this);if(t){const e=C.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}fc([ft({attribute:"card-fill-color",mode:"fromView"})],Qc.prototype,"cardFillColor",void 0),fc([ft({attribute:"neutral-palette-source",mode:"fromView"})],Qc.prototype,"neutralPaletteSource",void 0);const Zc=Qc.compose({baseName:"card",baseClass:Ii,template:(t,e)=>nt`<slot></slot>`,styles:Yc}),Jc=Yc,th=(t,e)=>Dt`
77
+ ${_i("inline-flex")} :host{align-items:center;outline:none;margin:calc(${Bn} * 1px) 0;${""} user-select:none}.control{position:relative;width:calc((${cc} / 2 + ${Bn}) * 1px);height:calc((${cc} / 2 + ${Bn}) * 1px);box-sizing:border-box;border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid ${gl};background:${Ma};outline:none;cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{font-family:${Gn};color:${kl};${""} padding-inline-start:calc(${Bn} * 2px + 2px);margin-inline-end:calc(${Bn} * 2px + 2px);cursor:pointer;font-size:${Wn};line-height:${Kn}}.checked-indicator{width:100%;height:100%;display:block;fill:${kl};opacity:0;pointer-events:none}.indeterminate-indicator{border-radius:calc((${jn} / 2) * 1px);background:${kl};position:absolute;top:50%;left:50%;width:50%;height:50%;transform:translate(-50%,-50%);opacity:0}:host(:enabled) .control:hover{background:${Na};border-color:${fl}}:host(:enabled) .control:active{background:${ja};border-color:${bl}}:host(:${Gi}) .control{box-shadow:0 0 0 2px ${ca},0 0 0 4px ${yl};border-color:${yl}}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked:not(.indeterminate)) .checked-indicator,:host(.indeterminate) .indeterminate-indicator{opacity:1}:host(.disabled){opacity:${Hn}}`.withBehaviors(Ui(Dt`
78
+ .control{forced-color-adjust:none;border-color:${Es.FieldText};background:${Es.Field}}:host(:enabled) .control:hover,.control:active{border-color:${Es.Highlight};background:${Es.Field}}.checked-indicator{fill:${Es.FieldText}}.indeterminate-indicator{background:${Es.FieldText}}:host(:${Gi}) .control{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:${Gi}:enabled) .control{box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked) .control{background:${Es.Highlight};border-color:${Es.Highlight}}:host(.checked) .control:hover,.control:active{background:${Es.HighlightText}}:host(.checked) .checked-indicator{fill:${Es.HighlightText}}:host(.checked) .control:hover .checked-indicator{fill:${Es.Highlight}}:host(.checked) .indeterminate-indicator{background:${Es.HighlightText}}:host(.checked) .control:hover .indeterminate-indicator{background:${Es.Highlight}}:host(.disabled){opacity:1}:host(.disabled) .control{forced-color-adjust:none;border-color:${Es.GrayText};background:${Es.Field}}:host(.disabled) .indeterminate-indicator,:host(.checked.disabled) .control:hover .indeterminate-indicator{forced-color-adjust:none;background:${Es.GrayText}}:host(.disabled) .checked-indicator,:host(.checked.disabled) .control:hover .checked-indicator{forced-color-adjust:none;fill:${Es.GrayText}}`)),eh=Di.compose({baseName:"checkbox",template:(t,e)=>nt`<template role="checkbox" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot><slot name="indeterminate-indicator">${e.indeterminateIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label></template>`,styles:th,checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '}),ih=th,oh=(t,e)=>Dt`
79
+ :host([appearance='filled']){background:${Va};border-color:transparent}:host([appearance='filled']:hover:not([disabled])){background:${Aa};border-color:transparent}:host([appearance="filled"]:${Gi}){border-color:${yl}}`,sh=(t,e)=>Dt`
80
+ ${_i("inline-flex")} :host{--elevation:14;background:${Ma};border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid ${al};box-sizing:border-box;color:${kl};font-family:${Gn};height:calc(${cc} * 1px);position:relative;user-select:none;min-width:250px;vertical-align:top}.listbox{${xc}
81
+ background:${ta};border-radius:calc(${jn} * 1px);box-sizing:border-box;display:inline-flex;flex-direction:column;left:0;max-height:calc(var(--max-height) - (${cc} * 1px));padding:calc(${Bn} * 1px) 0;overflow-y:auto;position:absolute;width:100%;z-index:1;margin:1px 0}.listbox[hidden]{display:none}.control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:${Wn};font-family:inherit;min-height:100%;line-height:${Kn};padding:0 calc(${Bn} * 2.25px);width:100%}:host(:not([disabled]):hover){background:${Na};border-color:${ll}}:host(:focus){outline:none}:host(:${Gi}){border-color:${yl};outline:none;box-shadow:0 0 0 1px inset ${yl}}:host([open]:${Gi}){border-color:${al};outline:none;box-shadow:none}:host(:${Gi}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){box-shadow:0 0 0 calc(${_n} * 1px) inset ${$l};border-color:${yl};background:${fa};color:${$a}}:host([disabled]){cursor:${"not-allowed"};opacity:${Hn}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([disabled]:hover){background:${Qa};color:${kl};fill:currentcolor}:host(:not([disabled])) .control:active{background:${ja};border-color:${cl};border-radius:calc(${jn} * 1px)}:host([open][position='above']) .listbox{border-bottom-left-radius:0;border-bottom-right-radius:0}:host([open][position='below']) .listbox{border-top-left-radius:0;border-top-right-radius:0}:host([open][position='above']) .listbox{border-bottom:0;bottom:calc(${cc} * 1px)}:host([open][position='below']) .listbox{border-top:0;top:calc(${cc} * 1px)}.selected-value{font-family:inherit;flex:1 1 auto;text-align:start}.indicator{flex:0 0 auto;margin-inline-start:1em}slot[name='listbox']{display:none;width:100%}:host([open]) slot[name='listbox']{display:flex;position:absolute;${xc}}.end{margin-inline-start:auto}.start,.end,.indicator,.select-indicator,::slotted(svg){${""}
82
+ fill:currentcolor;height:1em;min-height:calc(${Bn} * 4px);min-width:calc(${Bn} * 4px);width:1em}::slotted([role='option']){flex:0 0 auto}`.withBehaviors(Dc("filled",oh()),Ui(Dt`
83
+ :host([disabled]){border-color:${Es.GrayText};background-color:${Es.ButtonFace};color:${Es.GrayText};opacity:1;forced-color-adjust:none}:host([disabled]:hover){background:${Es.ButtonFace}}:host([disabled]) .control{color:${Es.GrayText};border-color:${Es.GrayText}}:host(:not([disabled]):hover){background:${Es.ButtonFace};border-color:${Es.Highlight}}:host(:${Gi}){forced-color-adjust:none;background:${Es.ButtonFace};border-color:${Es.Highlight};box-shadow:0 0 0 1px inset ${Es.Highlight};color:${Es.ButtonText};fill:currentcolor}:host([open]) .listbox{background:${Es.ButtonFace};border:1px solid ${Es.ButtonText}}:host(:${Gi}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${_n} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}::slotted([role='option']:not([aria-selected='true']):not([disabled]):hover){forced-color-adjust:none;color:${Es.ButtonText};background:${Es.ButtonFace};border-color:${Es.Highlight};box-shadow:none}`)),nh=(t,e)=>Dt`
84
+ ${sh()}
85
85
 
86
- :host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}:host(:active) .selected-value{user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${Gn};line-height:${Wn};height:calc(100% - ${Un} * 1px));margin:auto 0;width:100%}.selected-value:hover,.selected-value:${to},.selected-value:disabled,.selected-value:active{outline:none}`.withBehaviors(Fc("filled",ih()));class nh extends Mi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}gc([ft({mode:"fromView"})],nh.prototype,"appearance",void 0);const rh=nh.compose({baseName:"combobox",baseClass:Mi,template:(t,e)=>nt`<template autocomplete="${t=>t.autocomplete}" class="${t=>t.disabled?"disabled":""} ${t=>t.position}" tabindex="${t=>t.disabled?null:"0"}" aria-disabled="${t=>t.ariaDisabled}" aria-autocomplete="${t=>t.autocomplete}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}"><div class="control" part="control">${te(0,e)}<slot name="control"><input class="selected-value" part="selected-value" placeholder="${t=>t.placeholder}" role="${t=>t.role}" type="text" aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-controls="${t=>t.listboxId}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" ?disabled="${t=>t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${Nt("control")} /><div class="indicator" part="indicator" aria-hidden="true"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Jt(0,e)}</div><div aria-disabled="${t=>t.disabled}" class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Nt("listbox")}><slot ${Xt({filter:Ai.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:sh,indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),ah=sh,lh=(t,e)=>Dt`
87
- :host{display:flex;position:relative;flex-direction:column}`,ch=(t,e)=>Dt`
88
- :host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${Un} * 1px) solid ${dl}}:host(.header){}:host(.sticky-header){background:${La};position:sticky;top:0}`.withBehaviors(Qi(Dt`
89
- :host{}`)),hh=(t,e)=>Dt`
90
- :host{padding:calc(${Nn} * 1px) calc(${Nn} * 3px);color:${wl};box-sizing:border-box;font-family:${_n};font-size:${Gn};line-height:${Wn};font-weight:400;border:transparent calc(${Un} * 1px) solid;overflow:hidden;white-space:nowrap;border-radius:calc(${Bn} * 1px)}:host(.column-header){font-weight:600}:host(:${to}){border:${vl} calc(${Un} * 1px) solid;color:${wl}}`.withBehaviors(Qi(Dt`
91
- :host{forced-color-adjust:none;border-color:transparent;background:${Es.Field};color:${Es.FieldText}}:host(:${to}){border-color:${Es.FieldText};box-shadow:0 0 0 2px inset ${Es.Field};color:${Es.FieldText}}`)),dh=Ci.compose({baseName:"data-grid-cell",template:(t,e)=>nt`<template tabindex="-1" role="${t=>{var e;return null!==(e=t.cellType)&&void 0!==e?e:"gridcell"}}" class=" ${t=>"columnheader"===t.cellType?"column-header":"rowheader"===t.cellType?"row-header":""} "><slot></slot></template>`,styles:hh}),uh=hh,ph=xi.compose({baseName:"data-grid-row",template:(t,e)=>nt`<template role="row" class="${t=>"default"!==t.rowType?t.rowType:""}" :defaultCellItemTemplate="${function(t){const e=t.tagFor(Ci);return nt`<${e} cell-type="${t=>t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}"></${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Ci);return nt`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}"></${e}>`}(t)}" ${Qt({property:"cellElements",filter:Gt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}><slot ${Xt("slottedCellElements")}></slot></template>`,styles:ch}),gh=ch,fh=$i.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(xi);return nt`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}"></${e}>`}(t),o=t.tagFor(xi);return nt`<template role="grid" tabindex="0" :rowElementTag="${()=>o}" :defaultRowItemTemplate="${i}" ${Qt({property:"rowElements",filter:Gt("[role=row]")})}><slot></slot></template>`},styles:lh}),bh=lh,mh={toView(t){var e;return null==t?null:null===(e=t)||void 0===e?void 0:e.toColorString()},fromView(t){if(null==t)return null;const e=fn(t);return e?yn.create(e.r,e.g,e.b):null}},vh=Dt`
92
- :host{background-color:${la};color:${wl}}`.withBehaviors(Qi(Dt`
93
- :host{background-color:${Es.Canvas};box-shadow:0 0 0 1px ${Es.CanvasText};color:${Es.CanvasText}}`));function yh(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class xh extends ze{constructor(){super(),this.noPaint=!1,C.getNotifier(this).subscribe({handleChange:this.noPaintChanged.bind(this)},"fillColor")}noPaintChanged(){this.noPaint||void 0===this.fillColor?this.$fastController.removeStyles(vh):this.$fastController.addStyles(vh)}accentBaseColorChanged(t,e){null!=e?Xr.setValueFor(this,Cn.create(e)):Xr.deleteValueFor(this)}neutralBaseColorChanged(t,e){null!=e?Kr.setValueFor(this,Cn.create(e)):Kr.deleteValueFor(this)}}gc([ft({attribute:"no-paint",mode:"boolean"})],xh.prototype,"noPaint",void 0),gc([ft({attribute:"fill-color",converter:mh}),yh(la)],xh.prototype,"fillColor",void 0),gc([ft({attribute:"accent-base-color",converter:mh,mode:"fromView"})],xh.prototype,"accentBaseColor",void 0),gc([ft({attribute:"neutral-base-color",converter:mh,mode:"fromView"})],xh.prototype,"neutralBaseColor",void 0),gc([F,yh(Kr)],xh.prototype,"neutralPalette",void 0),gc([F,yh(Xr)],xh.prototype,"accentPalette",void 0),gc([ft({converter:pt}),yh(Mn)],xh.prototype,"density",void 0),gc([ft({attribute:"design-unit",converter:pt}),yh(Nn)],xh.prototype,"designUnit",void 0),gc([ft({attribute:"direction"}),yh(An)],xh.prototype,"direction",void 0),gc([ft({attribute:"base-height-multiplier",converter:pt}),yh(Hn)],xh.prototype,"baseHeightMultiplier",void 0),gc([ft({attribute:"base-horizontal-spacing-multiplier",converter:pt}),yh(zn)],xh.prototype,"baseHorizontalSpacingMultiplier",void 0),gc([ft({attribute:"control-corner-radius",converter:pt}),yh(Bn)],xh.prototype,"controlCornerRadius",void 0),gc([ft({attribute:"stroke-width",converter:pt}),yh(Un)],xh.prototype,"strokeWidth",void 0),gc([ft({attribute:"focus-stroke-width",converter:pt}),yh(qn)],xh.prototype,"focusStrokeWidth",void 0),gc([ft({attribute:"disabled-opacity",converter:pt}),yh(Pn)],xh.prototype,"disabledOpacity",void 0),gc([ft({attribute:"type-ramp-minus-2-font-size"}),yh(Yn)],xh.prototype,"typeRampMinus2FontSize",void 0),gc([ft({attribute:"type-ramp-minus-2-line-height"}),yh(Qn)],xh.prototype,"typeRampMinus2LineHeight",void 0),gc([ft({attribute:"type-ramp-minus-1-font-size"}),yh(Kn)],xh.prototype,"typeRampMinus1FontSize",void 0),gc([ft({attribute:"type-ramp-minus-1-line-height"}),yh(Xn)],xh.prototype,"typeRampMinus1LineHeight",void 0),gc([ft({attribute:"type-ramp-base-font-size"}),yh(Gn)],xh.prototype,"typeRampBaseFontSize",void 0),gc([ft({attribute:"type-ramp-base-line-height"}),yh(Wn)],xh.prototype,"typeRampBaseLineHeight",void 0),gc([ft({attribute:"type-ramp-plus-1-font-size"}),yh(Zn)],xh.prototype,"typeRampPlus1FontSize",void 0),gc([ft({attribute:"type-ramp-plus-1-line-height"}),yh(Jn)],xh.prototype,"typeRampPlus1LineHeight",void 0),gc([ft({attribute:"type-ramp-plus-2-font-size"}),yh(tr)],xh.prototype,"typeRampPlus2FontSize",void 0),gc([ft({attribute:"type-ramp-plus-2-line-height"}),yh(er)],xh.prototype,"typeRampPlus2LineHeight",void 0),gc([ft({attribute:"type-ramp-plus-3-font-size"}),yh(ir)],xh.prototype,"typeRampPlus3FontSize",void 0),gc([ft({attribute:"type-ramp-plus-3-line-height"}),yh(or)],xh.prototype,"typeRampPlus3LineHeight",void 0),gc([ft({attribute:"type-ramp-plus-4-font-size"}),yh(sr)],xh.prototype,"typeRampPlus4FontSize",void 0),gc([ft({attribute:"type-ramp-plus-4-line-height"}),yh(nr)],xh.prototype,"typeRampPlus4LineHeight",void 0),gc([ft({attribute:"type-ramp-plus-5-font-size"}),yh(rr)],xh.prototype,"typeRampPlus5FontSize",void 0),gc([ft({attribute:"type-ramp-plus-5-line-height"}),yh(ar)],xh.prototype,"typeRampPlus5LineHeight",void 0),gc([ft({attribute:"type-ramp-plus-6-font-size"}),yh(lr)],xh.prototype,"typeRampPlus6FontSize",void 0),gc([ft({attribute:"type-ramp-plus-6-line-height"}),yh(cr)],xh.prototype,"typeRampPlus6LineHeight",void 0),gc([ft({attribute:"accent-fill-rest-delta",converter:pt}),yh(dr)],xh.prototype,"accentFillRestDelta",void 0),gc([ft({attribute:"accent-fill-hover-delta",converter:pt}),yh(ur)],xh.prototype,"accentFillHoverDelta",void 0),gc([ft({attribute:"accent-fill-active-delta",converter:pt}),yh(pr)],xh.prototype,"accentFillActiveDelta",void 0),gc([ft({attribute:"accent-fill-focus-delta",converter:pt}),yh(gr)],xh.prototype,"accentFillFocusDelta",void 0),gc([ft({attribute:"accent-foreground-rest-delta",converter:pt}),yh(fr)],xh.prototype,"accentForegroundRestDelta",void 0),gc([ft({attribute:"accent-foreground-hover-delta",converter:pt}),yh(br)],xh.prototype,"accentForegroundHoverDelta",void 0),gc([ft({attribute:"accent-foreground-active-delta",converter:pt}),yh(mr)],xh.prototype,"accentForegroundActiveDelta",void 0),gc([ft({attribute:"accent-foreground-focus-delta",converter:pt}),yh(vr)],xh.prototype,"accentForegroundFocusDelta",void 0),gc([ft({attribute:"neutral-fill-rest-delta",converter:pt}),yh(yr)],xh.prototype,"neutralFillRestDelta",void 0),gc([ft({attribute:"neutral-fill-hover-delta",converter:pt}),yh(xr)],xh.prototype,"neutralFillHoverDelta",void 0),gc([ft({attribute:"neutral-fill-active-delta",converter:pt}),yh($r)],xh.prototype,"neutralFillActiveDelta",void 0),gc([ft({attribute:"neutral-fill-focus-delta",converter:pt}),yh(wr)],xh.prototype,"neutralFillFocusDelta",void 0),gc([ft({attribute:"neutral-fill-input-rest-delta",converter:pt}),yh(kr)],xh.prototype,"neutralFillInputRestDelta",void 0),gc([ft({attribute:"neutral-fill-input-hover-delta",converter:pt}),yh(Cr)],xh.prototype,"neutralFillInputHoverDelta",void 0),gc([ft({attribute:"neutral-fill-input-active-delta",converter:pt}),yh(Ir)],xh.prototype,"neutralFillInputActiveDelta",void 0),gc([ft({attribute:"neutral-fill-input-focus-delta",converter:pt}),yh(Tr)],xh.prototype,"neutralFillInputFocusDelta",void 0),gc([ft({attribute:"neutral-fill-layer-rest-delta",converter:pt}),yh(Rr)],xh.prototype,"neutralFillLayerRestDelta",void 0),gc([ft({attribute:"neutral-fill-stealth-rest-delta",converter:pt}),yh(Or)],xh.prototype,"neutralFillStealthRestDelta",void 0),gc([ft({attribute:"neutral-fill-stealth-hover-delta",converter:pt}),yh(Lr)],xh.prototype,"neutralFillStealthHoverDelta",void 0),gc([ft({attribute:"neutral-fill-stealth-active-delta",converter:pt}),yh(Vr)],xh.prototype,"neutralFillStealthActiveDelta",void 0),gc([ft({attribute:"neutral-fill-stealth-focus-delta",converter:pt}),yh(Ar)],xh.prototype,"neutralFillStealthFocusDelta",void 0),gc([ft({attribute:"neutral-fill-strong-hover-delta",converter:pt}),yh(Hr)],xh.prototype,"neutralFillStrongHoverDelta",void 0),gc([ft({attribute:"neutral-fill-strong-active-delta",converter:pt}),yh(zr)],xh.prototype,"neutralFillStrongActiveDelta",void 0),gc([ft({attribute:"neutral-fill-strong-focus-delta",converter:pt}),yh(Mr)],xh.prototype,"neutralFillStrongFocusDelta",void 0),gc([ft({attribute:"base-layer-luminance",converter:pt}),yh(hr)],xh.prototype,"baseLayerLuminance",void 0),gc([ft({attribute:"neutral-stroke-divider-rest-delta",converter:pt}),yh(qr)],xh.prototype,"neutralStrokeDividerRestDelta",void 0),gc([ft({attribute:"neutral-stroke-rest-delta",converter:pt}),yh(Nr)],xh.prototype,"neutralStrokeRestDelta",void 0),gc([ft({attribute:"neutral-stroke-hover-delta",converter:pt}),yh(Br)],xh.prototype,"neutralStrokeHoverDelta",void 0),gc([ft({attribute:"neutral-stroke-active-delta",converter:pt}),yh(jr)],xh.prototype,"neutralStrokeActiveDelta",void 0),gc([ft({attribute:"neutral-stroke-focus-delta",converter:pt}),yh(Ur)],xh.prototype,"neutralStrokeFocusDelta",void 0);const $h=xh.compose({baseName:"design-system-provider",template:nt`<slot></slot>`,styles:Dt`
94
- ${Ji("block")}
95
- `}),wh=(t,e)=>Dt`
96
- :host([hidden]){display:none}:host{--elevation:14;--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{${yc}
97
- margin-top:auto;margin-bottom:auto;border-radius:calc(${jn} * 1px);width:var(--dialog-width);height:var(--dialog-height);background:${la};z-index:1;border:calc(${Un} * 1px) solid transparent}`,kh=So.compose({baseName:"dialog",template:(t,e)=>nt`<div class="positioning-region" part="positioning-region">${Bt(t=>t.modal,nt`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${Nt("dialog")}><slot></slot></div></div>`,styles:wh}),Ch=wh,Ih=(t,e)=>Dt`
98
- ${Ji("block")} :host{box-sizing:content-box;height:0;margin:calc(${Nn} * 1px) 0;border:none;border-top:calc(${Un} * 1px) solid ${dl}}`,Th=Oo.compose({baseName:"divider",template:(t,e)=>nt`<template role="${t=>t.role}"></template>`,styles:Ih}),Fh=Ih,Dh=(t,e)=>Dt`
99
- ${Ji("inline-flex")} :host{width:calc(${lc} * 1px);height:calc(${lc} * 1px);justify-content:center;align-items:center;margin:0;position:relative;fill:currentcolor;color:${wl};background:transparent;border:none;outline:none;padding:0}:host::before{content:'';opacity:0.8;background:${Ya};border:calc(${Un} * 1px) solid ${rl};border-radius:50%;position:absolute;top:0;right:0;left:0;bottom:0;transition:all 0.1s ease-in-out}.next,.previous{position:relative;${""} width:16px;height:16px}:host(.disabled){opacity:${Pn};cursor:${"not-allowed"}}:host(:hover){cursor:pointer}:host(:hover)::before{background:${Qa};border-color:${al}}:host(:${to}){outline:none}:host(:${to})::before{box-shadow:0 0 0 1px ${vl} inset;border-color:${vl}}:host(:active)::before{background:${Za};border-color:${ll}}:host::-moz-focus-inner{border:0}`.withBehaviors(Qi(Dt`
100
- :host{background:${Es.Canvas}}:host .next,:host .previous{color:${Es.ButtonText};fill:currentcolor}:host::before{background:${Es.Canvas};border-color:${Es.ButtonText}}:host(:hover)::before{forced-color-adjust:none;background:${Es.Highlight};border-color:${Es.ButtonText};opacity:1}:host(:hover) .next,:host(:hover) .previous{forced-color-adjust:none;color:${Es.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled)::before,:host(.disabled:hover)::before,:host(.disabled) .next,:host(.disabled) .previous,:host(.disabled:hover) .next,:host(.disabled:hover) .previous{forced-color-adjust:none;background:${Es.Canvas};border-color:${Es.GrayText};color:${Es.GrayText};fill:${Es.GrayText}}:host(:${to})::before{forced-color-adjust:none;border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}`)),Sh=Lo.compose({baseName:"flipper",template:(t,e)=>nt`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Bt(t=>t.direction===Ro.next,nt`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${Bt(t=>t.direction===Ro.previous,nt`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:Dh,next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '}),Eh=Dh,Rh=Dt`
101
- .scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,Oh=Dt`
102
- .scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,Lh=Dt`
103
- .scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:'';display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}::slotted(fluent-flipper){opacity:0;transition:opacity 0.2s ease-in-out}.scroll-area:hover ::slotted(fluent-flipper){opacity:1}`.withBehaviors(new fc(Rh,Oh)),Vh=(t,e)=>Dt`
104
- ${Ji("block")} :host{--scroll-align:center;--scroll-item-spacing:4px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class Ah extends Qo{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(Lh)}}const Ph=Ah.compose({baseName:"horizontal-scroll",baseClass:Qo,template:(t,e)=>{var i,o;return nt`<template class="horizontal-scroll" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${te(0,e)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${t=>t.scrolled()}" ${Nt("scrollContainer")}><div class="content-container" part="content-container" ${Nt("content")}><slot ${Xt({property:"scrollItems",filter:Gt()})}></slot></div></div>${Bt(t=>"mobile"!==t.view,nt`<div class="scroll scroll-prev" part="scroll-prev" ${Nt("previousFlipperContainer")}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${e.previousFlipper instanceof Function?e.previousFlipper(t,e):null!==(i=e.previousFlipper)&&void 0!==i?i:""}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${Nt("nextFlipperContainer")}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${e.nextFlipper instanceof Function?e.nextFlipper(t,e):null!==(o=e.nextFlipper)&&void 0!==o?o:""}</slot></div></div>`)}</div>${Jt(0,e)}</template>`},styles:Vh,nextFlipper:nt`<fluent-flipper @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`,previousFlipper:nt`<fluent-flipper @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`}),Hh=Vh,zh=(t,e)=>Dt`
105
- ${Ji("inline-flex")} :host{background:${Jr};border:calc(${Un} * 1px) solid ${rl};border-radius:calc(${Bn} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${Nn} * 1px) 0}:host(:focus-within:not([disabled])){border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}`.withBehaviors(Qi(Dt`
106
- :host(:${to}) ::slotted([aria-selected="true"][role="option"]){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${qn} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}:host(:${to}) ::slotted([aria-selected="true"][role="option"]){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${qn} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}::slotted([role='option']:not([aria-selected='true']):not([disabled]):hover){forced-color-adjust:none;color:${Es.ButtonText};background:${Es.ButtonFace};border-color:${Es.Highlight};box-shadow:none}`)),Mh=Ai.compose({baseName:"listbox",template:(t,e)=>nt`<template aria-activedescendant="${t=>t.ariaActiveDescendant}" class="listbox" role="${t=>t.role}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><slot ${Xt({filter:Ai.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></template>`,styles:zh}),Nh=zh,Bh=(t,e)=>Dt`
107
- ${Ji("inline-flex")} :host{font-family:${_n};border-radius:calc(${Bn} * 1px);border:calc(${qn} * 1px) solid transparent;box-sizing:border-box;color:${wl};cursor:pointer;fill:currentcolor;font-size:${Gn};height:calc(${lc} * 1px);line-height:${Wn};margin:0 calc(${Nn} * 1px);outline:none;overflow:hidden;align-items:center;padding:0 calc(${Nn} * 2.25px);user-select:none;white-space:nowrap}:host(:${to}){box-shadow:0 0 0 calc(${qn} * 1px) inset ${xl};border-color:${vl};background:${ga};color:${xa}}:host([aria-selected='true']){background:${da};color:${ma}}:host(:hover){background:${ua};color:${va}}:host(:active){background:${pa};color:${ya}}:host(:not([aria-selected='true']):hover){background:${Va};color:${wl}}:host(:not([aria-selected='true']):active){background:${Aa};color:${wl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Pn}}:host([disabled]:hover){background-color:inherit}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted(svg){${""}
108
- height:calc(${Nn} * 4px);width:calc(${Nn} * 4px)}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(Qi(Dt`
109
- :host{border-color:transparent;color:${Es.ButtonText};forced-color-adjust:none}:host(:not([aria-selected='true']):hover),:host([aria-selected='true']){background:${Es.Highlight};color:${Es.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected='true']):hover){background:${Es.Canvas};color:${Es.GrayText};fill:currentcolor;opacity:1}`)),jh=Vi.compose({baseName:"option",template:(t,e)=>nt`<template aria-selected="${t=>t.selected}" class="${t=>t.selected?"selected":""} ${t=>t.disabled?"disabled":""}" role="option">${te(0,e)}<span class="content" part="content"><slot></slot></span>${Jt(0,e)}</template>`,styles:Bh}),Uh=Bh,qh=(t,e)=>Dt`
110
- ${Ji("block")} :host{--elevation:11;background:${Jr};border:calc(${Un} * 1px) solid transparent;border-radius:${jn};${yc}
111
- margin:0;border-radius:calc(${Bn} * 1px);padding:calc(${Nn} * 1px) 0;max-width:368px;min-width:64px}:host([slot='submenu']){width:max-content;margin:0 calc(${Nn} * 1px)}::slotted(hr){box-sizing:content-box;height:0;margin:0;border:none;border-top:calc(${Un} * 1px) solid ${dl}}`,_h=Ho.compose({baseName:"menu",template:(t,e)=>nt`<template slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(t,e)=>t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}"><slot ${Xt("items")}></slot></template>`,styles:qh}),Gh=qh,Wh=(t,e)=>Dt`
112
- ${Ji("grid")} :host{contain:layout;overflow:visible;font-family:${_n};outline:none;box-sizing:border-box;height:calc(${lc} * 1px);grid-template-columns:minmax(42px,auto) 1fr minmax(42px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;margin:0 calc(${Nn} * 1px);white-space:nowrap;color:${wl};fill:currentcolor;cursor:pointer;font-size:${Gn};line-height:${Wn};border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid transparent}:host(.indent-0){grid-template-columns:auto 1fr minmax(42px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-2){grid-template-columns:minmax(42px,auto) minmax(42px,auto) 1fr minmax(42px,auto) minmax(42px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${to}){border:calc(${Un} * 1px) solid ${vl};box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${vl}}:host(:hover){background:${Qa}}:host([aria-checked='true']),:host(:active),:host(.expanded){background:${Za};color:${wl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Pn}}:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){fill:currentcolor}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}::slotted(svg){${""} width:16px;height:16px;display:flex}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${wl}}:host(.indent-1[aria-haspopup='menu']),:host(.indent-1[role='menuitemcheckbox']),:host(.indent-1[role='menuitemradio']){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup='menu'])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup='menu']) .expand-collapse-glyph-container,:host([role='menuitemcheckbox']) .input-container,:host([role='menuitemradio']) .input-container{display:grid;margin-inline-end:10px}:host([aria-haspopup='menu']) .content,:host([role='menuitemcheckbox']) .content,:host([role='menuitemradio']) .content{grid-column-start:3}:host([aria-haspopup='menu']) .end,:host([role='menuitemcheckbox']) .end,:host([role='menuitemradio']) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;width:20px;height:20px;box-sizing:border-box;outline:none;margin-inline-start:10px}:host .checkbox{border-radius:calc(${Bn} * 1px)}:host .radio{border-radius:999px}:host .checkbox-indicator,:host .radio-indicator,::slotted([slot='checkbox-indicator']),::slotted([slot='radio-indicator']){display:none}::slotted([slot='end']:not(svg)){margin-inline-end:10px;color:${Cl}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']){width:100%;height:100%;display:block;fill:${wl};pointer-events:none}:host([aria-checked='true']) .radio-indicator{display:block;pointer-events:none}:host([aria-checked='true']) ::slotted([slot='radio-indicator']){display:block;pointer-events:none}`.withBehaviors(Qi(Dt`
113
- :host{forced-color-adjust:none;border-color:transparent;color:${Es.ButtonText};fill:${Es.ButtonText}}:host(:hover){background:${Es.Highlight};color:${Es.HighlightText}}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Es.HighlightText}}:host(.expanded){background:${Es.Highlight};border-color:${Es.Highlight};color:${Es.HighlightText}}:host(:${to}){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${Un} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){background:${Es.Canvas};color:${Es.GrayText};fill:currentcolor;opacity:1}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${Es.ButtonText};background:${Es.HighlightText}}:host([checked='true']) .checkbox,:host([checked='true']) .radio{background:${Es.HighlightText};border-color:${Es.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${to}) .expanded-toggle,:host(:${to}) .checkbox,:host(:${to}) .radio,:host([checked="true"]:hover) .checkbox,:host([checked="true"]:hover) .radio,:host([checked="true"]:${to}) .checkbox,:host([checked="true"]:${to}) .radio{border-color:${Es.HighlightText}}:host([aria-checked='true']){background:${Es.Highlight};color:${Es.HighlightText}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),:host([aria-checked='true']) ::slotted([slot='radio-indicator']){fill:${Es.Highlight}}:host([aria-checked='true']) .radio-indicator{background:${Es.Highlight}}`)),Kh=Po.compose({baseName:"menu-item",template:(t,e)=>nt`<template role="${t=>t.role}" aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==Vo.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @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)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${Bt(t=>t.role===Vo.menuitemcheckbox,nt`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${e.checkboxIndicator||""}</slot></span></div>`)} ${Bt(t=>t.role===Vo.menuitemradio,nt`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${e.radioIndicator||""}</slot></span></div>`)}</div>${te(0,e)}<span class="content" part="content"><slot></slot></span>${Jt(0,e)} ${Bt(t=>t.hasSubmenu,nt`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${e.expandCollapseGlyph||""}</slot></span></div>`)} ${Bt(t=>t.expanded,nt`<${t.tagFor(ri)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${Nt("submenuRegion")} part="submenu-region"><slot name="submenu"></slot></${t.tagFor(ri)}>`)}</template>`,styles:Wh,checkboxIndicator:'\n <svg\n aria-hidden="true"\n part="checkbox-indicator"\n class="checkbox-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n ',radioIndicator:'\n <svg\n aria-hidden="true"\n part="radio-indicator"\n class="radio-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n '}),Xh=Wh,Yh=(t,e)=>Dt`
114
- ${Ji("inline-block")} :host{font-family:${_n};outline:none;user-select:none;position:relative}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${wl};background:${za};border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid ${rl};height:calc(${lc} * 1px)}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Nn} * 2px + 1px);font-size:${Gn};line-height:${Wn}}.control:hover,.control:${to},.control:disabled,.control:active{outline:none}.controls{opacity:0}.label{display:block;color:${wl};cursor:pointer;font-size:${Gn};line-height:${Wn};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.end{margin:auto;fill:currentcolor}.step-up,.step-down{padding:2px 10px;cursor:pointer}.step-up:before,.step-down:before{content:'';display:block;border:solid transparent 6px}.step-up:before{border-bottom-color:${wl}}.step-down:before{border-top-color:${wl}}::slotted(svg){${""} width:16px;height:16px}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${Ma};border-color:${al}}:host(:active:not([disabled])) .root{background:${Ba};border-color:${ll}}:host(:focus-within:not([disabled])) .root{border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Pn}}:host([disabled]) .control{border-color:${rl}}`.withBehaviors(Fc("filled",Dt`
115
- :host([appearance='filled']) .root{background:${La};border-color:transparent}:host([appearance='filled']:hover:not([disabled])) .root{background:${Va};border-color:transparent}:host([appearance='filled']:focus-within:not([disabled])) .root{border-color:transparent;box-shadow:none}${Tc()}
116
- `.withBehaviors(Qi(Dt`
117
- :host([appearance='filled']) .root,:host([appearance='filled']:hover:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:active:not([disabled])) .root,:host([appearance='filled']:focus-within:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:not([disabled]):active)::after,:host([appearance='filled']:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${Es.Highlight}}:host([appearance='filled'][disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}:host([appearance='filled'][disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}`))),Qi(Dt`
118
- .root{forced-color-adjust:none;background:${Es.Field};border-color:${Es.FieldText}}:host(:hover:not([disabled])) .root{background:${Es.Field};border-color:${Es.Highlight}}:host(:focus-within:enabled) .root{border-color:${Es.Highlight};box-shadow:0 0 0 1px ${Es.Highlight} inset}.control,::placeholder,::-webkit-input-placeholder{color:${Es.FieldText}}.step-up:before{border-bottom-color:${Es.FieldText}}.step-down:before{border-top-color:${Es.FieldText}}.start,.end{fill:${Es.FieldText}}:host([disabled]){opacity:1}:host([disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${Es.GrayText}}`));class Qh extends _o{connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}gc([ft],Qh.prototype,"appearance",void 0);const Zh=Yh,Jh=Qh.compose({baseName:"number-field",baseClass:_o,styles:Yh,template:(t,e)=>nt`<template class="${t=>t.readOnly?"readonly":""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label><div class="root" part="root">${te(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" :value="${t=>t.displayText}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")} />${Bt(t=>!t.hideStep&&!t.readOnly&&!t.disabled,nt`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${t=>t.stepUp()}"><slot name="step-up-glyph">${e.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${t=>t.stepDown()}"><slot name="step-down-glyph">${e.stepDownGlyph||""}</slot></div></div>`)} ${Jt(0,e)}</div></template>`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n <span class="step-down-glyph" part="step-down-glyph"></span>\n ',stepUpGlyph:'\n <span class="step-up-glyph" part="step-up-glyph"></span>\n '}),td=(t,e)=>Dt`
119
- ${Ji("flex")} :host{align-items:center;outline:none;height:calc(${Nn} * 1px);margin:calc(${Nn} * 1px) 0}.progress{background-color:${La};border-radius:calc(${Nn} * 1px);width:100%;height:100%;display:flex;align-items:center;position:relative}.determinate{background-color:${da};border-radius:calc(${Nn} * 1px);height:100%;transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:100%;border-radius:calc(${Nn} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${da};border-radius:calc(${Nn} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${da};border-radius:calc(${Nn} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2{animation-play-state:paused;background-color:${La}}:host(.paused) .determinate{background-color:${Cl}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Qi(Dt`
120
- .indeterminate-indicator-1,.indeterminate-indicator-2,.determinate{forced-color-adjust:none;background-color:${Es.FieldText}}.progress{background-color:${Es.Field};border:calc(${Un} * 1px) solid ${Es.FieldText}}:host(.paused) .indeterminate-indicator-1,.indeterminate-indicator-2{background-color:${Es.Field}}:host(.paused) .determinate{background-color:${Es.GrayText}}`));class ed extends Go{}const id=ed.compose({baseName:"progress",template:(t,e)=>nt`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Bt(t=>"number"==typeof t.value,nt`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${t=>t.percentComplete}%"></div></div>`)} ${Bt(t=>"number"!=typeof t.value,nt`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}</slot></div>`)}</template>`,styles:td,indeterminateIndicator1:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n ',indeterminateIndicator2:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n '}),od=td,sd=(t,e)=>Dt`
121
- ${Ji("flex")} :host{align-items:center;outline:none;height:calc(${lc} * 1px);width:calc(${lc} * 1px);margin:calc(${lc} * 1px) 0}.progress{height:100%;width:100%}.background{stroke:${La};fill:none;stroke-width:2px}.determinate{stroke:${da};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${da};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host(.paused) .indeterminate-indicator-1{animation-play-state:paused;stroke:${La}}:host(.paused) .determinate{stroke:${Cl}}@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)}}`.withBehaviors(Qi(Dt`
122
- .indeterminate-indicator-1,.determinate{stroke:${Es.FieldText}}.background{stroke:${Es.Field}}:host(.paused) .indeterminate-indicator-1{stroke:${Es.Field}}:host(.paused) .determinate{stroke:${Es.GrayText}}`));class nd extends Go{}const rd=nd.compose({baseName:"progress-ring",template:(t,e)=>nt`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Bt(t=>"number"==typeof t.value,nt`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${t=>44*t.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${Bt(t=>"number"!=typeof t.value,nt`<slot name="indeterminate" slot="indeterminate">${e.indeterminateIndicator||""}</slot>`)}</template>`,styles:sd,indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '}),ad=sd,ld=(t,e)=>Dt`
123
- ${Ji("inline-flex")} :host{--input-size:calc((${lc} / 2) + ${Nn});align-items:center;outline:none;margin:calc(${Nn} * 1px) 0;${""} user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc(var(--input-size) * 1px);height:calc(var(--input-size) * 1px);box-sizing:border-box;border-radius:50%;border:calc(${Un} * 1px) solid ${pl};background:${za};outline:none;cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{font-family:${_n};color:${wl};${""} padding-inline-start:calc(${Nn} * 2px + 2px);margin-inline-end:calc(${Nn} * 2px + 2px);cursor:pointer;font-size:${Gn};line-height:${Wn}}.control,.checked-indicator{flex-shrink:0}.checked-indicator{position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:50%;display:inline-block;background:${wl};fill:${wl};opacity:0;pointer-events:none}:host(:enabled) .control:hover{background:${Ma};border-color:${gl}}:host(:enabled) .control:active{background:${Ba};border-color:${fl}}:host(:${to}) .control{box-shadow:0 0 0 2px ${la},0 0 0 4px ${vl};border-color:${vl}}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked) .checked-indicator{opacity:1}:host(.disabled){opacity:${Pn}}`.withBehaviors(Qi(Dt`
124
- .control{forced-color-adjust:none;border-color:${Es.FieldText};background:${Es.Field}}:host(:enabled) .control:hover,.control:active{border-color:${Es.Highlight};background:${Es.Field}}:host(:${to}) .control{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:${to}:enabled) .control{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:enabled) .control:hover,.control:active{border-color:${Es.Highlight};background:${Es.Highlight}}:host(.checked) .checked-indicator{background:${Es.Highlight};fill:${Es.Highlight}}:host(.checked) .control:hover .checked-indicator{background:${Es.HighlightText};fill:${Es.HighlightText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${Es.GrayText}}:host(.disabled) .control,:host(.checked.disabled) .control:hover,.control:active{background:${Es.Field};border-color:${Es.GrayText}}:host(.disabled) .checked-indicator,:host(.checked.disabled) .control:hover .checked-indicator{fill:${Es.GrayText};background:${Es.GrayText}}`)),cd=Yo.compose({baseName:"radio",template:(t,e)=>nt`<template role="radio" class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label></template>`,styles:ld,checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '}),hd=ld,dd=(t,e)=>Dt`
125
- ${Ji("flex")} :host{align-items:flex-start;margin:calc(${Nn} * 1px) 0;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column}:host([orientation='horizontal']) .positioning-region{flex-direction:row}`,ud=Wo.compose({baseName:"radio-group",template:(t,e)=>nt`<template role="radiogroup" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${t=>t.orientation===Ue.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${Xt({property:"slottedRadioButtons",filter:Gt("[role=radio]")})}></slot></div></template>`,styles:dd}),pd=dd;class gd extends ts{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}gc([ft({mode:"fromView"})],gd.prototype,"appearance",void 0);const fd=gd.compose({baseName:"select",baseClass:ts,template:(t,e)=>nt`<template class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" role="${t=>t.role}" tabindex="${t=>t.disabled?null:"0"}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-controls="listbox" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" class="control" part="control" role="button" ?disabled="${t=>t.disabled}">${te(0,e)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${t=>t.displayValue}</slot></div><div class="indicator" part="indicator"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Jt(0,e)}</div><div aria-disabled="${t=>t.disabled}" class="listbox" id="listbox" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Nt("listbox")}><slot ${Xt({filter:Ai.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:oh,indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),bd=oh,md=(t,e)=>Dt`
126
- ${Ji("block")} :host{--skeleton-fill-default:#e1dfdd;overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
86
+ :host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}:host(:active) .selected-value{user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${Wn};line-height:${Kn};height:calc(100% - ${qn} * 1px));margin:auto 0;width:100%}.selected-value:hover,.selected-value:${Gi},.selected-value:disabled,.selected-value:active{outline:none}`.withBehaviors(Dc("filled",oh()));class rh extends Mi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}fc([ft({mode:"fromView"})],rh.prototype,"appearance",void 0);const ah=rh.compose({baseName:"combobox",baseClass:Mi,template:(t,e)=>nt`<template autocomplete="${t=>t.autocomplete}" class="${t=>t.disabled?"disabled":""} ${t=>t.position}" tabindex="${t=>t.disabled?null:"0"}" aria-disabled="${t=>t.ariaDisabled}" aria-autocomplete="${t=>t.autocomplete}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}"><div class="control" part="control">${te(0,e)}<slot name="control"><input class="selected-value" part="selected-value" placeholder="${t=>t.placeholder}" role="${t=>t.role}" type="text" aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-controls="${t=>t.listboxId}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" ?disabled="${t=>t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${Nt("control")} /><div class="indicator" part="indicator" aria-hidden="true"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Jt(0,e)}</div><div aria-disabled="${t=>t.disabled}" class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Nt("listbox")}><slot ${Xt({filter:Ai.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:nh,indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),lh=nh,ch=(t,e)=>Dt`
87
+ :host{display:flex;position:relative;flex-direction:column}`,hh=(t,e)=>Dt`
88
+ :host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${qn} * 1px) solid ${ul}}:host(.header){}:host(.sticky-header){background:${Va};position:sticky;top:0}`.withBehaviors(Ui(Dt`
89
+ :host{}`)),dh=(t,e)=>Dt`
90
+ :host{padding:calc(${Bn} * 1px) calc(${Bn} * 3px);color:${kl};box-sizing:border-box;font-family:${Gn};font-size:${Wn};line-height:${Kn};font-weight:400;border:transparent calc(${qn} * 1px) solid;overflow:hidden;white-space:nowrap;border-radius:calc(${jn} * 1px)}:host(.column-header){font-weight:600}:host(:${Gi}){border:${yl} calc(${qn} * 1px) solid;color:${kl}}`.withBehaviors(Ui(Dt`
91
+ :host{forced-color-adjust:none;border-color:transparent;background:${Es.Field};color:${Es.FieldText}}:host(:${Gi}){border-color:${Es.FieldText};box-shadow:0 0 0 2px inset ${Es.Field};color:${Es.FieldText}}`)),uh=Ci.compose({baseName:"data-grid-cell",template:(t,e)=>nt`<template tabindex="-1" role="${t=>{var e;return null!==(e=t.cellType)&&void 0!==e?e:"gridcell"}}" class=" ${t=>"columnheader"===t.cellType?"column-header":"rowheader"===t.cellType?"row-header":""} "><slot></slot></template>`,styles:dh}),ph=dh,gh=xi.compose({baseName:"data-grid-row",template:(t,e)=>nt`<template role="row" class="${t=>"default"!==t.rowType?t.rowType:""}" :defaultCellItemTemplate="${function(t){const e=t.tagFor(Ci);return nt`<${e} cell-type="${t=>t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}"></${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Ci);return nt`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}"></${e}>`}(t)}" ${Qt({property:"cellElements",filter:Gt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}><slot ${Xt("slottedCellElements")}></slot></template>`,styles:hh}),fh=hh,bh=$i.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(xi);return nt`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}"></${e}>`}(t),o=t.tagFor(xi);return nt`<template role="grid" tabindex="0" :rowElementTag="${()=>o}" :defaultRowItemTemplate="${i}" ${Qt({property:"rowElements",filter:Gt("[role=row]")})}><slot></slot></template>`},styles:ch}),mh=ch,vh={toView(t){var e;return null==t?null:null===(e=t)||void 0===e?void 0:e.toColorString()},fromView(t){if(null==t)return null;const e=bn(t);return e?xn.create(e.r,e.g,e.b):null}},yh=Dt`
92
+ :host{background-color:${ca};color:${kl}}`.withBehaviors(Ui(Dt`
93
+ :host{background-color:${Es.Canvas};box-shadow:0 0 0 1px ${Es.CanvasText};color:${Es.CanvasText}}`));function xh(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class $h extends ze{constructor(){super(),this.noPaint=!1,C.getNotifier(this).subscribe({handleChange:this.noPaintChanged.bind(this)},"fillColor")}noPaintChanged(){this.noPaint||void 0===this.fillColor?this.$fastController.removeStyles(yh):this.$fastController.addStyles(yh)}accentBaseColorChanged(t,e){null!=e?Yr.setValueFor(this,In.create(e)):Yr.deleteValueFor(this)}neutralBaseColorChanged(t,e){null!=e?Xr.setValueFor(this,In.create(e)):Xr.deleteValueFor(this)}}fc([ft({attribute:"no-paint",mode:"boolean"})],$h.prototype,"noPaint",void 0),fc([ft({attribute:"fill-color",converter:vh}),xh(ca)],$h.prototype,"fillColor",void 0),fc([ft({attribute:"accent-base-color",converter:vh,mode:"fromView"})],$h.prototype,"accentBaseColor",void 0),fc([ft({attribute:"neutral-base-color",converter:vh,mode:"fromView"})],$h.prototype,"neutralBaseColor",void 0),fc([F,xh(Xr)],$h.prototype,"neutralPalette",void 0),fc([F,xh(Yr)],$h.prototype,"accentPalette",void 0),fc([ft({converter:pt}),xh(Nn)],$h.prototype,"density",void 0),fc([ft({attribute:"design-unit",converter:pt}),xh(Bn)],$h.prototype,"designUnit",void 0),fc([ft({attribute:"direction"}),xh(Pn)],$h.prototype,"direction",void 0),fc([ft({attribute:"base-height-multiplier",converter:pt}),xh(zn)],$h.prototype,"baseHeightMultiplier",void 0),fc([ft({attribute:"base-horizontal-spacing-multiplier",converter:pt}),xh(Mn)],$h.prototype,"baseHorizontalSpacingMultiplier",void 0),fc([ft({attribute:"control-corner-radius",converter:pt}),xh(jn)],$h.prototype,"controlCornerRadius",void 0),fc([ft({attribute:"stroke-width",converter:pt}),xh(qn)],$h.prototype,"strokeWidth",void 0),fc([ft({attribute:"focus-stroke-width",converter:pt}),xh(_n)],$h.prototype,"focusStrokeWidth",void 0),fc([ft({attribute:"disabled-opacity",converter:pt}),xh(Hn)],$h.prototype,"disabledOpacity",void 0),fc([ft({attribute:"type-ramp-minus-2-font-size"}),xh(Qn)],$h.prototype,"typeRampMinus2FontSize",void 0),fc([ft({attribute:"type-ramp-minus-2-line-height"}),xh(Zn)],$h.prototype,"typeRampMinus2LineHeight",void 0),fc([ft({attribute:"type-ramp-minus-1-font-size"}),xh(Xn)],$h.prototype,"typeRampMinus1FontSize",void 0),fc([ft({attribute:"type-ramp-minus-1-line-height"}),xh(Yn)],$h.prototype,"typeRampMinus1LineHeight",void 0),fc([ft({attribute:"type-ramp-base-font-size"}),xh(Wn)],$h.prototype,"typeRampBaseFontSize",void 0),fc([ft({attribute:"type-ramp-base-line-height"}),xh(Kn)],$h.prototype,"typeRampBaseLineHeight",void 0),fc([ft({attribute:"type-ramp-plus-1-font-size"}),xh(Jn)],$h.prototype,"typeRampPlus1FontSize",void 0),fc([ft({attribute:"type-ramp-plus-1-line-height"}),xh(tr)],$h.prototype,"typeRampPlus1LineHeight",void 0),fc([ft({attribute:"type-ramp-plus-2-font-size"}),xh(er)],$h.prototype,"typeRampPlus2FontSize",void 0),fc([ft({attribute:"type-ramp-plus-2-line-height"}),xh(ir)],$h.prototype,"typeRampPlus2LineHeight",void 0),fc([ft({attribute:"type-ramp-plus-3-font-size"}),xh(or)],$h.prototype,"typeRampPlus3FontSize",void 0),fc([ft({attribute:"type-ramp-plus-3-line-height"}),xh(sr)],$h.prototype,"typeRampPlus3LineHeight",void 0),fc([ft({attribute:"type-ramp-plus-4-font-size"}),xh(nr)],$h.prototype,"typeRampPlus4FontSize",void 0),fc([ft({attribute:"type-ramp-plus-4-line-height"}),xh(rr)],$h.prototype,"typeRampPlus4LineHeight",void 0),fc([ft({attribute:"type-ramp-plus-5-font-size"}),xh(ar)],$h.prototype,"typeRampPlus5FontSize",void 0),fc([ft({attribute:"type-ramp-plus-5-line-height"}),xh(lr)],$h.prototype,"typeRampPlus5LineHeight",void 0),fc([ft({attribute:"type-ramp-plus-6-font-size"}),xh(cr)],$h.prototype,"typeRampPlus6FontSize",void 0),fc([ft({attribute:"type-ramp-plus-6-line-height"}),xh(hr)],$h.prototype,"typeRampPlus6LineHeight",void 0),fc([ft({attribute:"accent-fill-rest-delta",converter:pt}),xh(ur)],$h.prototype,"accentFillRestDelta",void 0),fc([ft({attribute:"accent-fill-hover-delta",converter:pt}),xh(pr)],$h.prototype,"accentFillHoverDelta",void 0),fc([ft({attribute:"accent-fill-active-delta",converter:pt}),xh(gr)],$h.prototype,"accentFillActiveDelta",void 0),fc([ft({attribute:"accent-fill-focus-delta",converter:pt}),xh(fr)],$h.prototype,"accentFillFocusDelta",void 0),fc([ft({attribute:"accent-foreground-rest-delta",converter:pt}),xh(br)],$h.prototype,"accentForegroundRestDelta",void 0),fc([ft({attribute:"accent-foreground-hover-delta",converter:pt}),xh(mr)],$h.prototype,"accentForegroundHoverDelta",void 0),fc([ft({attribute:"accent-foreground-active-delta",converter:pt}),xh(vr)],$h.prototype,"accentForegroundActiveDelta",void 0),fc([ft({attribute:"accent-foreground-focus-delta",converter:pt}),xh(yr)],$h.prototype,"accentForegroundFocusDelta",void 0),fc([ft({attribute:"neutral-fill-rest-delta",converter:pt}),xh(xr)],$h.prototype,"neutralFillRestDelta",void 0),fc([ft({attribute:"neutral-fill-hover-delta",converter:pt}),xh($r)],$h.prototype,"neutralFillHoverDelta",void 0),fc([ft({attribute:"neutral-fill-active-delta",converter:pt}),xh(wr)],$h.prototype,"neutralFillActiveDelta",void 0),fc([ft({attribute:"neutral-fill-focus-delta",converter:pt}),xh(kr)],$h.prototype,"neutralFillFocusDelta",void 0),fc([ft({attribute:"neutral-fill-input-rest-delta",converter:pt}),xh(Cr)],$h.prototype,"neutralFillInputRestDelta",void 0),fc([ft({attribute:"neutral-fill-input-hover-delta",converter:pt}),xh(Ir)],$h.prototype,"neutralFillInputHoverDelta",void 0),fc([ft({attribute:"neutral-fill-input-active-delta",converter:pt}),xh(Tr)],$h.prototype,"neutralFillInputActiveDelta",void 0),fc([ft({attribute:"neutral-fill-input-focus-delta",converter:pt}),xh(Fr)],$h.prototype,"neutralFillInputFocusDelta",void 0),fc([ft({attribute:"neutral-fill-layer-rest-delta",converter:pt}),xh(Or)],$h.prototype,"neutralFillLayerRestDelta",void 0),fc([ft({attribute:"neutral-fill-stealth-rest-delta",converter:pt}),xh(Lr)],$h.prototype,"neutralFillStealthRestDelta",void 0),fc([ft({attribute:"neutral-fill-stealth-hover-delta",converter:pt}),xh(Vr)],$h.prototype,"neutralFillStealthHoverDelta",void 0),fc([ft({attribute:"neutral-fill-stealth-active-delta",converter:pt}),xh(Ar)],$h.prototype,"neutralFillStealthActiveDelta",void 0),fc([ft({attribute:"neutral-fill-stealth-focus-delta",converter:pt}),xh(Pr)],$h.prototype,"neutralFillStealthFocusDelta",void 0),fc([ft({attribute:"neutral-fill-strong-hover-delta",converter:pt}),xh(zr)],$h.prototype,"neutralFillStrongHoverDelta",void 0),fc([ft({attribute:"neutral-fill-strong-active-delta",converter:pt}),xh(Mr)],$h.prototype,"neutralFillStrongActiveDelta",void 0),fc([ft({attribute:"neutral-fill-strong-focus-delta",converter:pt}),xh(Nr)],$h.prototype,"neutralFillStrongFocusDelta",void 0),fc([ft({attribute:"base-layer-luminance",converter:pt}),xh(dr)],$h.prototype,"baseLayerLuminance",void 0),fc([ft({attribute:"neutral-stroke-divider-rest-delta",converter:pt}),xh(_r)],$h.prototype,"neutralStrokeDividerRestDelta",void 0),fc([ft({attribute:"neutral-stroke-rest-delta",converter:pt}),xh(Br)],$h.prototype,"neutralStrokeRestDelta",void 0),fc([ft({attribute:"neutral-stroke-hover-delta",converter:pt}),xh(jr)],$h.prototype,"neutralStrokeHoverDelta",void 0),fc([ft({attribute:"neutral-stroke-active-delta",converter:pt}),xh(Ur)],$h.prototype,"neutralStrokeActiveDelta",void 0),fc([ft({attribute:"neutral-stroke-focus-delta",converter:pt}),xh(qr)],$h.prototype,"neutralStrokeFocusDelta",void 0);const wh=$h.compose({baseName:"design-system-provider",template:nt`<slot></slot>`,styles:Dt`
94
+ ${_i("block")}
95
+ `}),kh=(t,e)=>Dt`
96
+ :host([hidden]){display:none}:host{--elevation:14;--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{${xc}
97
+ margin-top:auto;margin-bottom:auto;border-radius:calc(${Un} * 1px);width:var(--dialog-width);height:var(--dialog-height);background:${ca};z-index:1;border:calc(${qn} * 1px) solid transparent}`,Ch=So.compose({baseName:"dialog",template:(t,e)=>nt`<div class="positioning-region" part="positioning-region">${Bt(t=>t.modal,nt`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${Nt("dialog")}><slot></slot></div></div>`,styles:kh}),Ih=kh,Th=(t,e)=>Dt`
98
+ ${_i("block")} :host{box-sizing:content-box;height:0;margin:calc(${Bn} * 1px) 0;border:none;border-top:calc(${qn} * 1px) solid ${ul}}`,Fh=Lo.compose({baseName:"divider",template:(t,e)=>nt`<template role="${t=>t.role}"></template>`,styles:Th}),Dh=Th,Rh=(t,e)=>Dt`
99
+ ${_i("inline-flex")} :host{width:calc(${cc} * 1px);height:calc(${cc} * 1px);justify-content:center;align-items:center;margin:0;position:relative;fill:currentcolor;color:${kl};background:transparent;border:none;outline:none;padding:0}:host::before{content:'';opacity:0.8;background:${Qa};border:calc(${qn} * 1px) solid ${al};border-radius:50%;position:absolute;top:0;right:0;left:0;bottom:0;transition:all 0.1s ease-in-out}.next,.previous{position:relative;${""} width:16px;height:16px}:host(.disabled){opacity:${Hn};cursor:${"not-allowed"}}:host(:hover){cursor:pointer}:host(:hover)::before{background:${Za};border-color:${ll}}:host(:${Gi}){outline:none}:host(:${Gi})::before{box-shadow:0 0 0 1px ${yl} inset;border-color:${yl}}:host(:active)::before{background:${Ja};border-color:${cl}}:host::-moz-focus-inner{border:0}`.withBehaviors(Ui(Dt`
100
+ :host{background:${Es.Canvas}}:host .next,:host .previous{color:${Es.ButtonText};fill:currentcolor}:host::before{background:${Es.Canvas};border-color:${Es.ButtonText}}:host(:hover)::before{forced-color-adjust:none;background:${Es.Highlight};border-color:${Es.ButtonText};opacity:1}:host(:hover) .next,:host(:hover) .previous{forced-color-adjust:none;color:${Es.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled)::before,:host(.disabled:hover)::before,:host(.disabled) .next,:host(.disabled) .previous,:host(.disabled:hover) .next,:host(.disabled:hover) .previous{forced-color-adjust:none;background:${Es.Canvas};border-color:${Es.GrayText};color:${Es.GrayText};fill:${Es.GrayText}}:host(:${Gi})::before{forced-color-adjust:none;border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}`)),Sh=Vo.compose({baseName:"flipper",template:(t,e)=>nt`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Bt(t=>t.direction===Oo.next,nt`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${Bt(t=>t.direction===Oo.previous,nt`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:Rh,next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '}),Eh=Rh,Oh=Dt`
101
+ .scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,Lh=Dt`
102
+ .scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,Vh=Dt`
103
+ .scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:'';display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}::slotted(fluent-flipper){opacity:0;transition:opacity 0.2s ease-in-out}.scroll-area:hover ::slotted(fluent-flipper){opacity:1}`.withBehaviors(new bc(Oh,Lh)),Ah=(t,e)=>Dt`
104
+ ${_i("block")} :host{--scroll-align:center;--scroll-item-spacing:4px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class Ph extends Zo{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(Vh)}}const Hh=Ph.compose({baseName:"horizontal-scroll",baseClass:Zo,template:(t,e)=>{var i,o;return nt`<template class="horizontal-scroll" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${te(0,e)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${t=>t.scrolled()}" ${Nt("scrollContainer")}><div class="content-container" part="content-container" ${Nt("content")}><slot ${Xt({property:"scrollItems",filter:Gt()})}></slot></div></div>${Bt(t=>"mobile"!==t.view,nt`<div class="scroll scroll-prev" part="scroll-prev" ${Nt("previousFlipperContainer")}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${e.previousFlipper instanceof Function?e.previousFlipper(t,e):null!==(i=e.previousFlipper)&&void 0!==i?i:""}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${Nt("nextFlipperContainer")}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${e.nextFlipper instanceof Function?e.nextFlipper(t,e):null!==(o=e.nextFlipper)&&void 0!==o?o:""}</slot></div></div>`)}</div>${Jt(0,e)}</template>`},styles:Ah,nextFlipper:nt`<fluent-flipper @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`,previousFlipper:nt`<fluent-flipper @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`}),zh=Ah,Mh=(t,e)=>Dt`
105
+ ${_i("inline-flex")} :host{background:${ta};border:calc(${qn} * 1px) solid ${al};border-radius:calc(${jn} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${Bn} * 1px) 0}:host(:focus-within:not([disabled])){border-color:${yl};box-shadow:0 0 0 1px ${yl} inset}`.withBehaviors(Ui(Dt`
106
+ :host(:${Gi}) ::slotted([aria-selected="true"][role="option"]){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${_n} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}:host(:${Gi}) ::slotted([aria-selected="true"][role="option"]){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${_n} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}::slotted([role='option']:not([aria-selected='true']):not([disabled]):hover){forced-color-adjust:none;color:${Es.ButtonText};background:${Es.ButtonFace};border-color:${Es.Highlight};box-shadow:none}`)),Nh=Ai.compose({baseName:"listbox",template:(t,e)=>nt`<template aria-activedescendant="${t=>t.ariaActiveDescendant}" class="listbox" role="${t=>t.role}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><slot ${Xt({filter:Ai.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></template>`,styles:Mh}),Bh=Mh,jh=(t,e)=>Dt`
107
+ ${_i("inline-flex")} :host{font-family:${Gn};border-radius:calc(${jn} * 1px);border:calc(${_n} * 1px) solid transparent;box-sizing:border-box;color:${kl};cursor:pointer;fill:currentcolor;font-size:${Wn};height:calc(${cc} * 1px);line-height:${Kn};margin:0 calc(${Bn} * 1px);outline:none;overflow:hidden;align-items:center;padding:0 calc(${Bn} * 2.25px);user-select:none;white-space:nowrap}:host(:${Gi}){box-shadow:0 0 0 calc(${_n} * 1px) inset ${$l};border-color:${yl};background:${fa};color:${$a}}:host([aria-selected='true']){background:${ua};color:${va}}:host(:hover){background:${pa};color:${ya}}:host(:active){background:${ga};color:${xa}}:host(:not([aria-selected='true']):hover){background:${Aa};color:${kl}}:host(:not([aria-selected='true']):active){background:${Pa};color:${kl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Hn}}:host([disabled]:hover){background-color:inherit}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted(svg){${""}
108
+ height:calc(${Bn} * 4px);width:calc(${Bn} * 4px)}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(Ui(Dt`
109
+ :host{border-color:transparent;color:${Es.ButtonText};forced-color-adjust:none}:host(:not([aria-selected='true']):hover),:host([aria-selected='true']){background:${Es.Highlight};color:${Es.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected='true']):hover){background:${Es.Canvas};color:${Es.GrayText};fill:currentcolor;opacity:1}`)),Uh=Vi.compose({baseName:"option",template:(t,e)=>nt`<template aria-selected="${t=>t.selected}" class="${t=>t.selected?"selected":""} ${t=>t.disabled?"disabled":""}" role="option">${te(0,e)}<span class="content" part="content"><slot></slot></span>${Jt(0,e)}</template>`,styles:jh}),qh=jh,_h=(t,e)=>Dt`
110
+ ${_i("block")} :host{--elevation:11;background:${ta};border:calc(${qn} * 1px) solid transparent;border-radius:${Un};${xc}
111
+ margin:0;border-radius:calc(${jn} * 1px);padding:calc(${Bn} * 1px) 0;max-width:368px;min-width:64px}:host([slot='submenu']){width:max-content;margin:0 calc(${Bn} * 1px)}::slotted(hr){box-sizing:content-box;height:0;margin:0;border:none;border-top:calc(${qn} * 1px) solid ${ul}}`,Gh=zo.compose({baseName:"menu",template:(t,e)=>nt`<template slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(t,e)=>t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}"><slot ${Xt("items")}></slot></template>`,styles:_h}),Wh=_h,Kh=(t,e)=>Dt`
112
+ ${_i("grid")} :host{contain:layout;overflow:visible;font-family:${Gn};outline:none;box-sizing:border-box;height:calc(${cc} * 1px);grid-template-columns:minmax(42px,auto) 1fr minmax(42px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;margin:0 calc(${Bn} * 1px);white-space:nowrap;color:${kl};fill:currentcolor;cursor:pointer;font-size:${Wn};line-height:${Kn};border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid transparent}:host(.indent-0){grid-template-columns:auto 1fr minmax(42px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-2){grid-template-columns:minmax(42px,auto) minmax(42px,auto) 1fr minmax(42px,auto) minmax(42px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${Gi}){border:calc(${qn} * 1px) solid ${yl};box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${yl}}:host(:hover){background:${Za}}:host([aria-checked='true']),:host(:active),:host(.expanded){background:${Ja};color:${kl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Hn}}:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){fill:currentcolor}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}::slotted(svg){${""} width:16px;height:16px;display:flex}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${kl}}:host(.indent-1[aria-haspopup='menu']),:host(.indent-1[role='menuitemcheckbox']),:host(.indent-1[role='menuitemradio']){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup='menu'])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup='menu']) .expand-collapse-glyph-container,:host([role='menuitemcheckbox']) .input-container,:host([role='menuitemradio']) .input-container{display:grid;margin-inline-end:10px}:host([aria-haspopup='menu']) .content,:host([role='menuitemcheckbox']) .content,:host([role='menuitemradio']) .content{grid-column-start:3}:host([aria-haspopup='menu']) .end,:host([role='menuitemcheckbox']) .end,:host([role='menuitemradio']) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;width:20px;height:20px;box-sizing:border-box;outline:none;margin-inline-start:10px}:host .checkbox{border-radius:calc(${jn} * 1px)}:host .radio{border-radius:999px}:host .checkbox-indicator,:host .radio-indicator,::slotted([slot='checkbox-indicator']),::slotted([slot='radio-indicator']){display:none}::slotted([slot='end']:not(svg)){margin-inline-end:10px;color:${Il}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']){width:100%;height:100%;display:block;fill:${kl};pointer-events:none}:host([aria-checked='true']) .radio-indicator{display:block;pointer-events:none}:host([aria-checked='true']) ::slotted([slot='radio-indicator']){display:block;pointer-events:none}`.withBehaviors(Ui(Dt`
113
+ :host{forced-color-adjust:none;border-color:transparent;color:${Es.ButtonText};fill:${Es.ButtonText}}:host(:hover){background:${Es.Highlight};color:${Es.HighlightText}}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Es.HighlightText}}:host(.expanded){background:${Es.Highlight};border-color:${Es.Highlight};color:${Es.HighlightText}}:host(:${Gi}){background:${Es.Highlight};border-color:${Es.ButtonText};box-shadow:0 0 0 calc(${qn} * 1px) inset ${Es.HighlightText};color:${Es.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){background:${Es.Canvas};color:${Es.GrayText};fill:currentcolor;opacity:1}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${Es.ButtonText};background:${Es.HighlightText}}:host([checked='true']) .checkbox,:host([checked='true']) .radio{background:${Es.HighlightText};border-color:${Es.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${Gi}) .expanded-toggle,:host(:${Gi}) .checkbox,:host(:${Gi}) .radio,:host([checked="true"]:hover) .checkbox,:host([checked="true"]:hover) .radio,:host([checked="true"]:${Gi}) .checkbox,:host([checked="true"]:${Gi}) .radio{border-color:${Es.HighlightText}}:host([aria-checked='true']){background:${Es.Highlight};color:${Es.HighlightText}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),:host([aria-checked='true']) ::slotted([slot='radio-indicator']){fill:${Es.Highlight}}:host([aria-checked='true']) .radio-indicator{background:${Es.Highlight}}`)),Xh=Ho.compose({baseName:"menu-item",template:(t,e)=>nt`<template role="${t=>t.role}" aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==Ao.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @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)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${Bt(t=>t.role===Ao.menuitemcheckbox,nt`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${e.checkboxIndicator||""}</slot></span></div>`)} ${Bt(t=>t.role===Ao.menuitemradio,nt`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${e.radioIndicator||""}</slot></span></div>`)}</div>${te(0,e)}<span class="content" part="content"><slot></slot></span>${Jt(0,e)} ${Bt(t=>t.hasSubmenu,nt`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${e.expandCollapseGlyph||""}</slot></span></div>`)} ${Bt(t=>t.expanded,nt`<${t.tagFor(ri)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${Nt("submenuRegion")} part="submenu-region"><slot name="submenu"></slot></${t.tagFor(ri)}>`)}</template>`,styles:Kh,checkboxIndicator:'\n <svg\n aria-hidden="true"\n part="checkbox-indicator"\n class="checkbox-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n ',radioIndicator:'\n <svg\n aria-hidden="true"\n part="radio-indicator"\n class="radio-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n '}),Yh=Kh,Qh=(t,e)=>Dt`
114
+ ${_i("inline-block")} :host{font-family:${Gn};outline:none;user-select:none;position:relative}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${kl};background:${Ma};border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid ${al};height:calc(${cc} * 1px)}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Bn} * 2px + 1px);font-size:${Wn};line-height:${Kn}}.control:hover,.control:${Gi},.control:disabled,.control:active{outline:none}.controls{opacity:0}.label{display:block;color:${kl};cursor:pointer;font-size:${Wn};line-height:${Kn};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.end{margin:auto;fill:currentcolor}.step-up,.step-down{padding:2px 10px;cursor:pointer}.step-up:before,.step-down:before{content:'';display:block;border:solid transparent 6px}.step-up:before{border-bottom-color:${kl}}.step-down:before{border-top-color:${kl}}::slotted(svg){${""} width:16px;height:16px}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${Na};border-color:${ll}}:host(:active:not([disabled])) .root{background:${ja};border-color:${cl}}:host(:focus-within:not([disabled])) .root{border-color:${yl};box-shadow:0 0 0 1px ${yl} inset}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Hn}}:host([disabled]) .control{border-color:${al}}`.withBehaviors(Dc("filled",Dt`
115
+ :host([appearance='filled']) .root{background:${Va};border-color:transparent}:host([appearance='filled']:hover:not([disabled])) .root{background:${Aa};border-color:transparent}:host([appearance='filled']:focus-within:not([disabled])) .root{border-color:transparent;box-shadow:none}${Fc()}
116
+ `.withBehaviors(Ui(Dt`
117
+ :host([appearance='filled']) .root,:host([appearance='filled']:hover:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:active:not([disabled])) .root,:host([appearance='filled']:focus-within:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:not([disabled]):active)::after,:host([appearance='filled']:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${Es.Highlight}}:host([appearance='filled'][disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}:host([appearance='filled'][disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}`))),Ui(Dt`
118
+ .root{forced-color-adjust:none;background:${Es.Field};border-color:${Es.FieldText}}:host(:hover:not([disabled])) .root{background:${Es.Field};border-color:${Es.Highlight}}:host(:focus-within:enabled) .root{border-color:${Es.Highlight};box-shadow:0 0 0 1px ${Es.Highlight} inset}.control,::placeholder,::-webkit-input-placeholder{color:${Es.FieldText}}.step-up:before{border-bottom-color:${Es.FieldText}}.step-down:before{border-top-color:${Es.FieldText}}.start,.end{fill:${Es.FieldText}}:host([disabled]){opacity:1}:host([disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${Es.GrayText}}`));class Zh extends Go{connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}fc([ft],Zh.prototype,"appearance",void 0);const Jh=Qh,td=Zh.compose({baseName:"number-field",baseClass:Go,styles:Qh,template:(t,e)=>nt`<template class="${t=>t.readOnly?"readonly":""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label><div class="root" part="root">${te(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @blur="${(t,e)=>t.handleBlur()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")} />${Bt(t=>!t.hideStep&&!t.readOnly&&!t.disabled,nt`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${t=>t.stepUp()}"><slot name="step-up-glyph">${e.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${t=>t.stepDown()}"><slot name="step-down-glyph">${e.stepDownGlyph||""}</slot></div></div>`)} ${Jt(0,e)}</div></template>`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n <span class="step-down-glyph" part="step-down-glyph"></span>\n ',stepUpGlyph:'\n <span class="step-up-glyph" part="step-up-glyph"></span>\n '}),ed=(t,e)=>Dt`
119
+ ${_i("flex")} :host{align-items:center;outline:none;height:calc(${Bn} * 1px);margin:calc(${Bn} * 1px) 0}.progress{background-color:${Va};border-radius:calc(${Bn} * 1px);width:100%;height:100%;display:flex;align-items:center;position:relative}.determinate{background-color:${ua};border-radius:calc(${Bn} * 1px);height:100%;transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:100%;border-radius:calc(${Bn} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${ua};border-radius:calc(${Bn} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${ua};border-radius:calc(${Bn} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2{animation-play-state:paused;background-color:${Va}}:host(.paused) .determinate{background-color:${Il}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Ui(Dt`
120
+ .indeterminate-indicator-1,.indeterminate-indicator-2,.determinate{forced-color-adjust:none;background-color:${Es.FieldText}}.progress{background-color:${Es.Field};border:calc(${qn} * 1px) solid ${Es.FieldText}}:host(.paused) .indeterminate-indicator-1,.indeterminate-indicator-2{background-color:${Es.Field}}:host(.paused) .determinate{background-color:${Es.GrayText}}`));class id extends Wo{}const od=id.compose({baseName:"progress",template:(t,e)=>nt`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Bt(t=>"number"==typeof t.value,nt`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${t=>t.percentComplete}%"></div></div>`)} ${Bt(t=>"number"!=typeof t.value,nt`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}</slot></div>`)}</template>`,styles:ed,indeterminateIndicator1:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n ',indeterminateIndicator2:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n '}),sd=ed,nd=(t,e)=>Dt`
121
+ ${_i("flex")} :host{align-items:center;outline:none;height:calc(${cc} * 1px);width:calc(${cc} * 1px);margin:calc(${cc} * 1px) 0}.progress{height:100%;width:100%}.background{stroke:${Va};fill:none;stroke-width:2px}.determinate{stroke:${ua};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${ua};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host(.paused) .indeterminate-indicator-1{animation-play-state:paused;stroke:${Va}}:host(.paused) .determinate{stroke:${Il}}@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)}}`.withBehaviors(Ui(Dt`
122
+ .indeterminate-indicator-1,.determinate{stroke:${Es.FieldText}}.background{stroke:${Es.Field}}:host(.paused) .indeterminate-indicator-1{stroke:${Es.Field}}:host(.paused) .determinate{stroke:${Es.GrayText}}`));class rd extends Wo{}const ad=rd.compose({baseName:"progress-ring",template:(t,e)=>nt`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Bt(t=>"number"==typeof t.value,nt`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${t=>44*t.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${Bt(t=>"number"!=typeof t.value,nt`<slot name="indeterminate" slot="indeterminate">${e.indeterminateIndicator||""}</slot>`)}</template>`,styles:nd,indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '}),ld=nd,cd=(t,e)=>Dt`
123
+ ${_i("inline-flex")} :host{--input-size:calc((${cc} / 2) + ${Bn});align-items:center;outline:none;margin:calc(${Bn} * 1px) 0;${""} user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc(var(--input-size) * 1px);height:calc(var(--input-size) * 1px);box-sizing:border-box;border-radius:50%;border:calc(${qn} * 1px) solid ${gl};background:${Ma};outline:none;cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{font-family:${Gn};color:${kl};${""} padding-inline-start:calc(${Bn} * 2px + 2px);margin-inline-end:calc(${Bn} * 2px + 2px);cursor:pointer;font-size:${Wn};line-height:${Kn}}.control,.checked-indicator{flex-shrink:0}.checked-indicator{position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:50%;display:inline-block;background:${kl};fill:${kl};opacity:0;pointer-events:none}:host(:enabled) .control:hover{background:${Na};border-color:${fl}}:host(:enabled) .control:active{background:${ja};border-color:${bl}}:host(:${Gi}) .control{box-shadow:0 0 0 2px ${ca},0 0 0 4px ${yl};border-color:${yl}}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked) .checked-indicator{opacity:1}:host(.disabled){opacity:${Hn}}`.withBehaviors(Ui(Dt`
124
+ .control{forced-color-adjust:none;border-color:${Es.FieldText};background:${Es.Field}}:host(:enabled) .control:hover,.control:active{border-color:${Es.Highlight};background:${Es.Field}}:host(:${Gi}) .control{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:${Gi}:enabled) .control{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:enabled) .control:hover,.control:active{border-color:${Es.Highlight};background:${Es.Highlight}}:host(.checked) .checked-indicator{background:${Es.Highlight};fill:${Es.Highlight}}:host(.checked) .control:hover .checked-indicator{background:${Es.HighlightText};fill:${Es.HighlightText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${Es.GrayText}}:host(.disabled) .control,:host(.checked.disabled) .control:hover,.control:active{background:${Es.Field};border-color:${Es.GrayText}}:host(.disabled) .checked-indicator,:host(.checked.disabled) .control:hover .checked-indicator{fill:${Es.GrayText};background:${Es.GrayText}}`)),hd=Qo.compose({baseName:"radio",template:(t,e)=>nt`<template role="radio" class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label></template>`,styles:cd,checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '}),dd=cd,ud=(t,e)=>Dt`
125
+ ${_i("flex")} :host{align-items:flex-start;margin:calc(${Bn} * 1px) 0;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column}:host([orientation='horizontal']) .positioning-region{flex-direction:row}`,pd=Ko.compose({baseName:"radio-group",template:(t,e)=>nt`<template role="radiogroup" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${t=>t.orientation===Ue.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${Xt({property:"slottedRadioButtons",filter:Gt("[role=radio]")})}></slot></div></template>`,styles:ud}),gd=ud;class fd extends es{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}fc([ft({mode:"fromView"})],fd.prototype,"appearance",void 0);const bd=fd.compose({baseName:"select",baseClass:es,template:(t,e)=>nt`<template class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" role="${t=>t.role}" tabindex="${t=>t.disabled?null:"0"}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-controls="listbox" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" class="control" part="control" role="button" ?disabled="${t=>t.disabled}">${te(0,e)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${t=>t.displayValue}</slot></div><div class="indicator" part="indicator"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Jt(0,e)}</div><div aria-disabled="${t=>t.disabled}" class="listbox" id="listbox" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Nt("listbox")}><slot ${Xt({filter:Ai.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:sh,indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),md=sh,vd=(t,e)=>Dt`
126
+ ${_i("block")} :host{--skeleton-fill-default:#e1dfdd;overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
127
127
  270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,#f3f2f1 51.13%,var(--skeleton-fill,var(--skeleton-fill-default)) 100%
128
- );--skeleton-animation-timing-default:ease-in-out}:host(.rect){border-radius:calc(${Bn} * 1px)}:host(.circle){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${Ji("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(--skeleton-animation-gradient,var(--skeleton-animation-gradient-default));background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${La});animation:shimmer 2s infinite;animation-timing-function:var(--skeleton-animation-timing,var(--skeleton-timing-default));animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`,vd=is.compose({baseName:"skeleton",template:(t,e)=>nt`<template class="${t=>"circle"===t.shape?"circle":"rect"}" pattern="${t=>t.pattern}" ?shimmer="${t=>t.shimmer}">${Bt(t=>!0===t.shimmer,nt`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${t=>t.pattern}"><img class="pattern" src="${t=>t.pattern}" /></object><slot></slot></template>`,styles:md}),yd=md,xd=(t,e)=>Dt`
129
- ${Ji("inline-grid")} :host{--thumb-size:calc(${lc} * 0.5);--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${Nn} / 2) * -1);--track-width:${Nn};align-items:center;width:100%;margin:calc(${Nn} * 1px) 0;user-select:none;box-sizing:border-box;border-radius:calc(${Bn} * 1px);outline:none;cursor:pointer}:host(.horizontal) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host(.vertical) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${to}) .thumb-cursor{box-shadow:0 0 0 2px ${la},0 0 0 4px ${vl}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease}.thumb-cursor{border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:${wl};border-radius:50%}.thumb-cursor:hover{background:${wl};border-color:${al}}.thumb-cursor:active{background:${wl};border-color:${ll}}:host(.horizontal) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host(.vertical) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host(.horizontal){min-width:calc(var(--thumb-size) * 1px)}:host(.horizontal) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host(.vertical) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${rl};position:absolute}:host(.vertical){height:100%;min-height:calc(${Nn} * 60px);min-width:calc(${Nn} * 20px)}:host(.disabled),:host(.readonly){cursor:${"not-allowed"}}:host(.disabled){opacity:${Pn}}`.withBehaviors(Qi(Dt`
130
- .thumb-cursor{forced-color-adjust:none;border-color:${Es.FieldText};background:${Es.FieldText}}.thumb-cursor:hover,.thumb-cursor:active{background:${Es.Highlight}}.track{forced-color-adjust:none;background:${Es.FieldText}}:host(:${to}) .thumb-cursor{background:${Es.Highlight};border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .track,:host(.disabled) .thumb-cursor{forced-color-adjust:none;background:${Es.GrayText}}`)),$d=cs.compose({baseName:"slider",template:(t,e)=>nt`<template role="slider" class="${t=>t.readOnly?"readonly":""} ${t=>t.orientation||Ue.horizontal}" 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||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Nt("track")} part="track-container" class="track"><slot name="track"></slot></div><slot></slot><div ${Nt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}"><slot name="thumb">${e.thumb||""}</slot></div></div></template>`,styles:xd,thumb:'\n <div class="thumb-cursor"></div>\n '}),wd=xd,kd=(t,e)=>Dt`
131
- ${Ji("block")} :host{font-family:${_n}}.root{position:absolute;display:grid}:host(.horizontal){align-self:start;grid-row:2;margin-top:-2px}:host(.vertical){justify-self:start;grid-column:2;margin-left:2px}.container{display:grid;justify-self:center}:host(.horizontal) .container{grid-template-rows:auto auto;grid-template-columns:0}:host(.vertical) .container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px;margin:2px 0}.mark{width:calc((${Nn} / 2) * 1px);height:calc(${lc} * 0.25 * 1px);background:${rl};justify-self:center}:host(.vertical) .mark{transform:rotate(90deg);align-self:center}:host(.vertical) .label{margin-left:calc((${Nn} / 2) * 2px);align-self:center}:host(.disabled){opacity:${Pn}}`.withBehaviors(Qi(Dt`
132
- .mark{forced-color-adjust:none;background:${Es.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${Es.GrayText}}:host(.disabled) .mark{background:${Es.GrayText}}`)),Cd=ns.compose({baseName:"slider-label",template:(t,e)=>nt`<template aria-disabled="${t=>t.disabled}" class="${t=>t.sliderOrientation||Ue.horizontal} ${t=>t.disabled?"disabled":""}"><div ${Nt("root")} part="root" class="root" style="${t=>t.positionStyle}"><div class="container">${Bt(t=>!t.hideMark,nt`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`,styles:kd}),Id=kd,Td=(t,e)=>Dt`
133
- :host([hidden]){display:none}${Ji("inline-flex")} :host{align-items:center;outline:none;font-family:${_n};margin:calc(${Nn} * 1px) 0;${""} user-select:none}:host(.disabled){opacity:${Pn}}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .switch,:host(.disabled) .switch{cursor:${"not-allowed"}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(((${lc} / 2) + ${Nn}) * 2px);height:calc(((${lc} / 2) + ${Nn}) * 1px);background:${za};border-radius:calc(${lc} * 1px);border:calc(${Un} * 1px) solid ${pl}}:host(:enabled) .switch:hover{background:${Ma};border-color:${gl};cursor:pointer}:host(:enabled) .switch:active{background:${Ba};border-color:${fl}}:host(:${to}) .switch{box-shadow:0 0 0 2px ${la},0 0 0 4px ${vl};border-color:${vl}}.checked-indicator{position:absolute;height:calc((${lc} - (${Nn} * 5.5)) * 1px);width:calc((${lc} - (${Nn} * 5.5)) * 1px);top:calc(${Nn} * 1px);background:${wl};border-radius:50%;transition:all 0.2s ease-in-out}.status-message{color:${wl};cursor:pointer;font-size:${Gn};line-height:${Wn}}.label__hidden{display:none;visibility:hidden}.label{color:${wl};font-size:${Gn};line-height:${Wn};margin-inline-end:calc(${Nn} * 2px + 2px);cursor:pointer}::slotted(*){${""} margin-inline-start:calc(${Nn} * 2px + 2px)}:host([aria-checked='true']) .checked-indicator{background:${ma}}:host([aria-checked='true']) .switch{background:${da}}:host([aria-checked='true']:enabled) .switch:hover{background:${ua}}:host([aria-checked='true']:enabled) .switch:hover .checked-indicator{background:${va}}:host([aria-checked='true']:enabled) .switch:active{background:${pa}}:host([aria-checked='true']:enabled) .switch:active .checked-indicator{background:${ya}}:host([aria-checked="true"]:${to}:enabled) .switch{box-shadow:0 0 0 2px ${la},0 0 0 4px ${vl};border-color:transparent}.unchecked-message{display:block}.checked-message{display:none}:host([aria-checked='true']) .unchecked-message{display:none}:host([aria-checked='true']) .checked-message{display:block}`.withBehaviors(new fc(Dt`
134
- .checked-indicator{left:calc(${Nn} * 1px)}:host([aria-checked='true']) .checked-indicator{left:calc((((${lc} / 2) + ${Nn}) + ${Nn}) * 1px)}`,Dt`
135
- .checked-indicator{right:calc(${Nn} * 1px)}:host([aria-checked='true']) .checked-indicator{right:calc((((${lc} / 2) + ${Nn}) + ${Nn}) * 1px)}`),Qi(Dt`
136
- .checked-indicator,:host(:enabled) .switch:active .checked-indicator{forced-color-adjust:none;background:${Es.FieldText}}.switch{forced-color-adjust:none;background:${Es.Field};border-color:${Es.FieldText}}:host(:enabled) .switch:hover{background:${Es.HighlightText};border-color:${Es.Highlight}}:host(.checked) .switch{background:${Es.Highlight};border-color:${Es.Highlight}}:host(.checked:enabled) .switch:hover,:host(:enabled) .switch:active{background:${Es.HighlightText};border-color:${Es.Highlight}}:host(.checked) .checked-indicator{background:${Es.HighlightText}}:host(.checked:enabled) .switch:hover .checked-indicator{background:${Es.Highlight}}:host(:${to}) .switch{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:${to}:enabled) .switch{box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .checked-indicator{background:${Es.GrayText}}:host(.disabled) .switch{background:${Es.Field};border-color:${Es.GrayText}}.status-message,.label{color:${Es.FieldText}}`)),Fd=us.compose({baseName:"switch",template:(t,e)=>nt`<template role="switch" aria-checked="${t=>t.checked}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}"><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${e.switch||""}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`,styles:Td,switch:'\n <span class="checked-indicator" part="checked-indicator"></span>\n '}),Dd=Td,Sd=(t,e)=>Dt`
137
- ${Ji("grid")} :host{box-sizing:border-box;font-family:${_n};font-size:${Gn};line-height:${Wn};color:${wl};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:20px;height:3px;border-radius:calc(${Bn} * 1px);justify-self:center;background:${da}}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host(.vertical){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host(.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;width:100%}:host(.vertical) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host(.vertical) .end{grid-row:3}:host(.vertical) .activeIndicator{grid-column:1;grid-row:1;width:3px;height:20px;border-radius:calc(${Bn} * 1px);align-self:center;background:${da}}:host(.vertical) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(Qi(Dt`
128
+ );--skeleton-animation-timing-default:ease-in-out}:host(.rect){border-radius:calc(${jn} * 1px)}:host(.circle){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${_i("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(--skeleton-animation-gradient,var(--skeleton-animation-gradient-default));background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${Va});animation:shimmer 2s infinite;animation-timing-function:var(--skeleton-animation-timing,var(--skeleton-timing-default));animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`,yd=os.compose({baseName:"skeleton",template:(t,e)=>nt`<template class="${t=>"circle"===t.shape?"circle":"rect"}" pattern="${t=>t.pattern}" ?shimmer="${t=>t.shimmer}">${Bt(t=>!0===t.shimmer,nt`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${t=>t.pattern}"><img class="pattern" src="${t=>t.pattern}" /></object><slot></slot></template>`,styles:vd}),xd=vd,$d=(t,e)=>Dt`
129
+ ${_i("inline-grid")} :host{--thumb-size:calc(${cc} * 0.5);--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${Bn} / 2) * -1);--track-width:${Bn};align-items:center;width:100%;margin:calc(${Bn} * 1px) 0;user-select:none;box-sizing:border-box;border-radius:calc(${jn} * 1px);outline:none;cursor:pointer}:host(.horizontal) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host(.vertical) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${Gi}) .thumb-cursor{box-shadow:0 0 0 2px ${ca},0 0 0 4px ${yl}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease}.thumb-cursor{border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:${kl};border-radius:50%}.thumb-cursor:hover{background:${kl};border-color:${ll}}.thumb-cursor:active{background:${kl};border-color:${cl}}:host(.horizontal) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host(.vertical) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host(.horizontal){min-width:calc(var(--thumb-size) * 1px)}:host(.horizontal) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host(.vertical) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${al};position:absolute}:host(.vertical){height:100%;min-height:calc(${Bn} * 60px);min-width:calc(${Bn} * 20px)}:host(.disabled),:host(.readonly){cursor:${"not-allowed"}}:host(.disabled){opacity:${Hn}}`.withBehaviors(Ui(Dt`
130
+ .thumb-cursor{forced-color-adjust:none;border-color:${Es.FieldText};background:${Es.FieldText}}.thumb-cursor:hover,.thumb-cursor:active{background:${Es.Highlight}}.track{forced-color-adjust:none;background:${Es.FieldText}}:host(:${Gi}) .thumb-cursor{background:${Es.Highlight};border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .track,:host(.disabled) .thumb-cursor{forced-color-adjust:none;background:${Es.GrayText}}`)),wd=hs.compose({baseName:"slider",template:(t,e)=>nt`<template role="slider" class="${t=>t.readOnly?"readonly":""} ${t=>t.orientation||Ue.horizontal}" 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||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Nt("track")} part="track-container" class="track"><slot name="track"></slot></div><slot></slot><div ${Nt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}"><slot name="thumb">${e.thumb||""}</slot></div></div></template>`,styles:$d,thumb:'\n <div class="thumb-cursor"></div>\n '}),kd=$d,Cd=(t,e)=>Dt`
131
+ ${_i("block")} :host{font-family:${Gn}}.root{position:absolute;display:grid}:host(.horizontal){align-self:start;grid-row:2;margin-top:-2px}:host(.vertical){justify-self:start;grid-column:2;margin-left:2px}.container{display:grid;justify-self:center}:host(.horizontal) .container{grid-template-rows:auto auto;grid-template-columns:0}:host(.vertical) .container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px;margin:2px 0}.mark{width:calc((${Bn} / 2) * 1px);height:calc(${cc} * 0.25 * 1px);background:${al};justify-self:center}:host(.vertical) .mark{transform:rotate(90deg);align-self:center}:host(.vertical) .label{margin-left:calc((${Bn} / 2) * 2px);align-self:center}:host(.disabled){opacity:${Hn}}`.withBehaviors(Ui(Dt`
132
+ .mark{forced-color-adjust:none;background:${Es.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${Es.GrayText}}:host(.disabled) .mark{background:${Es.GrayText}}`)),Id=rs.compose({baseName:"slider-label",template:(t,e)=>nt`<template aria-disabled="${t=>t.disabled}" class="${t=>t.sliderOrientation||Ue.horizontal} ${t=>t.disabled?"disabled":""}"><div ${Nt("root")} part="root" class="root" style="${t=>t.positionStyle}"><div class="container">${Bt(t=>!t.hideMark,nt`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`,styles:Cd}),Td=Cd,Fd=(t,e)=>Dt`
133
+ :host([hidden]){display:none}${_i("inline-flex")} :host{align-items:center;outline:none;font-family:${Gn};margin:calc(${Bn} * 1px) 0;${""} user-select:none}:host(.disabled){opacity:${Hn}}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .switch,:host(.disabled) .switch{cursor:${"not-allowed"}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(((${cc} / 2) + ${Bn}) * 2px);height:calc(((${cc} / 2) + ${Bn}) * 1px);background:${Ma};border-radius:calc(${cc} * 1px);border:calc(${qn} * 1px) solid ${gl}}:host(:enabled) .switch:hover{background:${Na};border-color:${fl};cursor:pointer}:host(:enabled) .switch:active{background:${ja};border-color:${bl}}:host(:${Gi}) .switch{box-shadow:0 0 0 2px ${ca},0 0 0 4px ${yl};border-color:${yl}}.checked-indicator{position:absolute;height:calc((${cc} - (${Bn} * 5.5)) * 1px);width:calc((${cc} - (${Bn} * 5.5)) * 1px);top:calc(${Bn} * 1px);background:${kl};border-radius:50%;transition:all 0.2s ease-in-out}.status-message{color:${kl};cursor:pointer;font-size:${Wn};line-height:${Kn}}.label__hidden{display:none;visibility:hidden}.label{color:${kl};font-size:${Wn};line-height:${Kn};margin-inline-end:calc(${Bn} * 2px + 2px);cursor:pointer}::slotted(*){${""} margin-inline-start:calc(${Bn} * 2px + 2px)}:host([aria-checked='true']) .checked-indicator{background:${va}}:host([aria-checked='true']) .switch{background:${ua}}:host([aria-checked='true']:enabled) .switch:hover{background:${pa}}:host([aria-checked='true']:enabled) .switch:hover .checked-indicator{background:${ya}}:host([aria-checked='true']:enabled) .switch:active{background:${ga}}:host([aria-checked='true']:enabled) .switch:active .checked-indicator{background:${xa}}:host([aria-checked="true"]:${Gi}:enabled) .switch{box-shadow:0 0 0 2px ${ca},0 0 0 4px ${yl};border-color:transparent}.unchecked-message{display:block}.checked-message{display:none}:host([aria-checked='true']) .unchecked-message{display:none}:host([aria-checked='true']) .checked-message{display:block}`.withBehaviors(new bc(Dt`
134
+ .checked-indicator{left:calc(${Bn} * 1px)}:host([aria-checked='true']) .checked-indicator{left:calc((((${cc} / 2) + ${Bn}) + ${Bn}) * 1px)}`,Dt`
135
+ .checked-indicator{right:calc(${Bn} * 1px)}:host([aria-checked='true']) .checked-indicator{right:calc((((${cc} / 2) + ${Bn}) + ${Bn}) * 1px)}`),Ui(Dt`
136
+ .checked-indicator,:host(:enabled) .switch:active .checked-indicator{forced-color-adjust:none;background:${Es.FieldText}}.switch{forced-color-adjust:none;background:${Es.Field};border-color:${Es.FieldText}}:host(:enabled) .switch:hover{background:${Es.HighlightText};border-color:${Es.Highlight}}:host(.checked) .switch{background:${Es.Highlight};border-color:${Es.Highlight}}:host(.checked:enabled) .switch:hover,:host(:enabled) .switch:active{background:${Es.HighlightText};border-color:${Es.Highlight}}:host(.checked) .checked-indicator{background:${Es.HighlightText}}:host(.checked:enabled) .switch:hover .checked-indicator{background:${Es.Highlight}}:host(:${Gi}) .switch{border-color:${Es.Highlight};box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.checked:${Gi}:enabled) .switch{box-shadow:0 0 0 2px ${Es.Field},0 0 0 4px ${Es.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .checked-indicator{background:${Es.GrayText}}:host(.disabled) .switch{background:${Es.Field};border-color:${Es.GrayText}}.status-message,.label{color:${Es.FieldText}}`)),Dd=ps.compose({baseName:"switch",template:(t,e)=>nt`<template role="switch" aria-checked="${t=>t.checked}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}"><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${e.switch||""}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`,styles:Fd,switch:'\n <span class="checked-indicator" part="checked-indicator"></span>\n '}),Rd=Fd,Sd=(t,e)=>Dt`
137
+ ${_i("grid")} :host{box-sizing:border-box;font-family:${Gn};font-size:${Wn};line-height:${Kn};color:${kl};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:20px;height:3px;border-radius:calc(${jn} * 1px);justify-self:center;background:${ua}}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host(.vertical){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host(.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;width:100%}:host(.vertical) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host(.vertical) .end{grid-row:3}:host(.vertical) .activeIndicator{grid-column:1;grid-row:1;width:3px;height:20px;border-radius:calc(${jn} * 1px);align-self:center;background:${ua}}:host(.vertical) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(Ui(Dt`
138
138
  .activeIndicator,:host(.vertical) .activeIndicator{forced-color-adjust:none;background:${Es.Highlight}}`)),Ed=(t,e)=>Dt`
139
- ${Ji("inline-flex")} :host{box-sizing:border-box;font-family:${_n};font-size:${Gn};font-weight:400;line-height:${Wn};height:calc(${lc} * 1px);padding:0 calc((6 + (${Nn} * 2 * ${Mn})) * 1px);color:${wl};border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1;cursor:pointer}:host([aria-selected='true']){z-index:2}:host(:hover),:host(:active){color:${wl}}:host(:${to}){outline:none;border:calc(${Un} * 1px) solid ${vl};box-shadow:0 0 0 calc((${qn} - ${Un}) * 1px) ${vl}}:host(:focus){outline:none}:host(.vertical){justify-content:end;grid-column:2}:host(.vertical[aria-selected='true']){z-index:2}:host(.vertical:hover),:host(.vertical:active){color:${wl}}:host(.vertical:hover[aria-selected='true']){}`.withBehaviors(Qi(Dt`
140
- :host{forced-color-adjust:none;border-color:transparent;color:${Es.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected='true']:hover){background:${Es.Highlight};color:${Es.HighlightText};fill:currentcolor}:host([aria-selected='true']){background:${Es.HighlightText};color:${Es.Highlight};fill:currentcolor}:host(:${to}){border-color:${Es.ButtonText};box-shadow:none}`)),Rd=gs.compose({baseName:"tab",template:(t,e)=>nt`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"><slot></slot></template>`,styles:Ed}),Od=Ed,Ld=(t,e)=>Dt`
141
- ${Ji("block")} :host{box-sizing:border-box;font-family:${_n};font-size:${Kn};font-weight:400;line-height:${Xn};padding:0 calc((6 + (${Nn} * 2 * ${Mn})) * 1px)}`,Vd=ps.compose({baseName:"tab-panel",template:(t,e)=>nt`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`,styles:Ld}),Ad=Ld,Pd=ms.compose({baseName:"tabs",template:(t,e)=>nt`<template class="${t=>t.orientation}">${te(0,e)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${Xt("tabs")}></slot>${Bt(t=>t.showActiveIndicator,nt`<div ${Nt("activeIndicatorRef")} class="activeIndicator" part="activeIndicator"></div>`)}</div>${Jt(0,e)}<div class="tabpanel"><slot name="tabpanel" part="tabpanel" ${Xt("tabpanels")}></slot></div></template>`,styles:Sd}),Hd=Sd,zd=(t,e)=>Dt`
142
- ${Ji("inline-flex")} :host{font-family:${_n};outline:none;user-select:none;position:relative;flex-direction:column;vertical-align:bottom}.control{box-sizing:border-box;position:relative;color:${wl};background:${za};border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid ${rl};height:calc(${lc} * 2px);font:inherit;font-size:${Gn};line-height:${Wn};padding:calc(${Nn} * 1.5px) calc(${Nn} * 2px + 1px);width:100%;resize:none}.control:hover:enabled{background:${Ma};border-color:${al}}.control:hover,.control:${to},.control:disabled,.control:active{outline:none}:host(:focus-within) .control{border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}:host(.resize-both) .control{resize:both}:host(.resize-horizontal) .control{resize:horizontal}:host(.resize-vertical) .control{resize:vertical}.label__hidden{display:none;visibility:hidden}.label{display:block;color:${wl};cursor:pointer;$font-size:${Gn};line-height:${Wn};margin-bottom:4px}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Pn}}`.withBehaviors(Fc("filled",Dt`
143
- :host([appearance='filled']) .control{background:${La};border-color:transparent}:host([appearance='filled']:hover:not([disabled])) .control{background:${Va};border-color:transparent}:host([appearance='filled']:focus-within:not([disabled])) .control{border-color:transparent;box-shadow:none}${Tc()}
144
- `.withBehaviors(Qi(Dt`
145
- :host([appearance='filled']:hover:not([disabled])) .control,:host([appearance='filled']:focus-within:not([disabled])) .control{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:not([disabled]):active)::after,:host([appearance='filled']:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${Es.Highlight}}`))),Qi(Dt`
146
- :host([disabled]){opacity:1}::placeholder,::-webkit-input-placeholder{color:${Es.FieldText}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${Es.GrayText}}`));class Md extends xs{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}gc([ft],Md.prototype,"appearance",void 0);const Nd=Md.compose({baseName:"text-area",baseClass:xs,template:(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} ${t=>t.resize!==bs.none?"resize-"+t.resize:""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${t=>t.autofocus}" cols="${t=>t.cols}" ?disabled="${t=>t.disabled}" form="${t=>t.form}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" name="${t=>t.name}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" rows="${t=>t.rows}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" @input="${(t,e)=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ${Nt("control")}></textarea></template>`,styles:zd,shadowOptions:{delegatesFocus:!0}}),Bd=zd,jd=(t,e)=>Dt`
147
- ${Ji("inline-block")} :host{font-family:${_n};outline:none;user-select:none;position:relative}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${wl};background:${za};border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid ${rl};height:calc(${lc} * 1px)}.control{-webkit-appearance:none;background:transparent;border:0;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Nn} * 2px + 1px);color:${wl};font-family:inherit;font-size:${Gn};line-height:${Wn}}.control:hover,.control:${to},.control:disabled,.control:active{outline:none}.label{display:block;color:${wl};cursor:pointer;font-size:${Gn};line-height:${Wn};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.end{display:flex;margin:auto;fill:currentcolor}::slotted(svg){${""} width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not(.disabled)) .root{background:${Ma};border-color:${al}}:host(:focus-within:not(.disabled)) .root{border-color:${vl};box-shadow:0 0 0 1px ${vl} inset}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.disabled){opacity:${Pn}}`.withBehaviors(Fc("filled",Dt`
148
- :host([appearance='filled']) .root{background:${La};border-color:transparent}:host([appearance='filled']:hover:not(.disabled)) .root{background:${Va};border-color:transparent}:host([appearance='filled']:focus-within:not(.disabled)) .root{border-color:transparent;box-shadow:none}${Tc()}
149
- `.withBehaviors(Qi(Dt`
150
- :host([appearance='filled']) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:hover:not([disabled])) .root,:host([appearance='filled']:focus-within:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:active:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:not([disabled]):active)::after,:host([appearance='filled']:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${Es.Highlight}}:host([appearance='filled'][disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}`))),Qi(Dt`
151
- .root{forced-color-adjust:none;background:${Es.Field};border-color:${Es.FieldText}}:host(:hover:not(.disabled)) .root{background:${Es.Field};border-color:${Es.Highlight}}.start,.end{fill:${Es.ButtonText}}:host(.disabled){opacity:1}:host(.disabled) .root{border-color:${Es.GrayText};background:${Es.Field}}:host(:focus-within:enabled) .root{border-color:${Es.Highlight};box-shadow:0 0 0 1px ${Es.Highlight} inset}.control{color:${Es.ButtonText}}::placeholder,::-webkit-input-placeholder{color:${Es.FieldText}}:host(.disabled) ::placeholder,:host(.disabled) ::-webkit-input-placeholder,:host([disabled]) .label{color:${Es.GrayText}}`));class Ud extends Bo{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}gc([ft],Ud.prototype,"appearance",void 0);const qd=Ud.compose({baseName:"text-field",baseClass:Bo,template:(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt({property:"defaultSlottedNodes",filter:eo})}></slot></label><div class="root" part="root">${te(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")} />${Jt(0,e)}</div></template>`,styles:jd,shadowOptions:{delegatesFocus:!0}}),_d=jd;class Gd extends ws{}const Wd=Gd.compose({baseName:"toolbar",template:(t,e)=>nt`<template aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-orientation="${t=>t.orientation}" orientation="${t=>t.orientation}" role="toolbar" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><slot name="label"></slot><div class="positioning-region" part="positioning-region">${te(0,e)}<slot ${Xt({filter:Gt(),property:"slottedItems"})}></slot>${Jt(0,e)}</div></template>`,styles:(t,e)=>Dt`
152
- ${Ji("inline-flex")} :host{--toolbar-item-gap:calc(${Nn} * 1px);background:${la};fill:currentcolor;padding:var(--toolbar-item-gap);box-sizing:border-box;align-items:center}:host(${to}){outline:calc(${Un} * 1px) solid ${cl}}.positioning-region{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:flex-start;flex-grow:1}:host([orientation="vertical"]) .positioning-region{flex-direction:column;align-items:start}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}:host([orientation="vertical"]){display:inline-flex;flex-direction:column}.start,.end{display:flex;align-items:center}.end{margin-inline-start:auto}.start__hidden,.end__hidden{display:none}::slotted(svg){${""}
153
- width:16px;height:16px}`.withBehaviors(Qi(Dt`
154
- :host(:${to}){box-shadow:0 0 0 calc(${qn} * 1px) ${Es.Highlight};color:${Es.ButtonText};forced-color-adjust:none}`))});class Kd extends Is{connectedCallback(){super.connectedCallback();const t=ja.getValueFor(this),e=la.getValueFor(this.parentElement);la.setValueFor(this,i=>t.evaluate(i,e).rest)}}const Xd=Kd.compose({baseName:"tooltip",baseClass:Is,template:(t,e)=>nt` ${Bt(t=>t.tooltipVisible,nt`<${t.tagFor(ri)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${Nt("region")}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${t.tagFor(ri)}>`)} `,styles:(t,e)=>Dt`
155
- :host{--elevation:11;position:relative;contain:layout;overflow:visible;height:0;width:0;z-index:10000}.tooltip{box-sizing:border-box;border-radius:calc(${Bn} * 1px);border:calc(${Un} * 1px) solid transparent;background:${la};color:${wl};padding:4px 12px;height:fit-content;width:fit-content;font-family:${_n};font-size:${Gn};line-height:${Wn};white-space:nowrap;${yc}}fluent-anchored-region{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}fluent-anchored-region.right,fluent-anchored-region.left{flex-direction:column}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:12px;height:12px;background:${la};border-radius:calc(${Bn} * 1px);position:absolute}fluent-anchored-region.top .tooltip::after{transform:rotate(45deg) translateX(-50%);bottom:4px;left:50%}fluent-anchored-region.top .tooltip{margin-bottom:12px}fluent-anchored-region.bottom .tooltip::after{transform:rotate(45deg) translateX(-50%);top:12px;left:50%}fluent-anchored-region.bottom .tooltip{margin-top:12px}fluent-anchored-region.left .tooltip::after{transform:rotate(45deg) translateY(-50%);top:50%;right:12px}fluent-anchored-region.left .tooltip{margin-right:12px}fluent-anchored-region.right .tooltip::after{transform:rotate(45deg) translateY(-50%);top:50%;left:4px}fluent-anchored-region.right .tooltip{margin-left:12px}`.withBehaviors(Qi(Dt`
156
- :host([disabled]){opacity:1}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:unset;height:unset}`))}),Yd=(t,e)=>Dt`
157
- :host([hidden]){display:none}${Ji("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}:host:focus-visible{outline:none}`,Qd=Ds.compose({baseName:"tree-view",template:(t,e)=>nt`<template role="tree" ${Nt("treeView")} @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}"><slot ${Xt("slottedTreeItems")}></slot></template>`,styles:Yd}),Zd=Yd,Jd=Dt`
158
- .expand-collapse-glyph{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${lc} * -1px))}:host([selected])::after{left:calc(${qn} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(45deg)}`,tu=Dt`
159
- .expand-collapse-glyph{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${lc} * -1px))}:host([selected])::after{right:calc(${qn} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(135deg)}`,eu=Et`((${Hn} / 2) * ${Nn}) + ((${Nn} * ${Mn}) / 2)`,iu=vo.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=Xa.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),ou=vo.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=Oa.getValueFor(t);return Xa.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),su=(t,e)=>Dt`
160
- ${Ji("block")} :host{contain:content;position:relative;outline:none;color:${wl};background:${Ya};cursor:pointer;font-family:${_n};--expand-collapse-button-size:calc(${lc} * 1px);--tree-item-nested-width:0}:host(:focus) > .positioning-region{outline:none}:host(:focus) .content-region{outline:none}.positioning-region{display:flex;position:relative;box-sizing:border-box;border:calc(${Un} * 1px) solid transparent;height:calc((${lc} + 1) * 1px)}:host(:${to}) .positioning-region{border:calc(${Un} * 1px) solid ${vl};border-radius:calc(${Bn} * 1px);color:${wl}}.positioning-region::before{content:'';display:block;width:var(--tree-item-nested-width);flex-shrink:0}.positioning-region:hover{background:${Qa}}.positioning-region:active{background:${Za}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${lc} * 1px);margin-inline-start:calc(${Nn} * 2px + 8px);font-size:${Gn};line-height:${Wn};font-weight:400}.items{display:none;${""} font-size:calc(1em + (${Nn} + 16) * 1px)}.expand-collapse-button{background:none;border:none;outline:none;${""} width:calc((${eu} + (${Nn} * 2)) * 1px);height:calc((${eu} + (${Nn} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 6px}.expand-collapse-glyph{width:16px;height:16px;transition:transform 0.1s linear;pointer-events:none;fill:${wl}}.start,.end{display:flex;fill:currentcolor}::slotted(svg){${""} width:16px;height:16px}.start{${""} margin-inline-end:calc(${Nn} * 2px + 2px)}.end{${""} margin-inline-start:calc(${Nn} * 2px + 2px)}:host(.expanded) > .items{display:block}:host([disabled]) .content-region{opacity:${Pn};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested) .expand-collapse-button:hover{background:${iu}}:host([selected]) .positioning-region{background:${La}}:host([selected]) .expand-collapse-button:hover{background:${ou}}:host([selected])::after{content:'';display:block;position:absolute;top:calc((${lc} / 4) * 1px);width:3px;height:calc((${lc} / 2) * 1px);${""} background:${Da};border-radius:calc(${Bn} * 1px)}::slotted(fluent-tree-item){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${lc} * -1px)}`.withBehaviors(new fc(Jd,tu),Qi(Dt`
161
- :host{forced-color-adjust:none;border-color:transparent;background:${Es.Field};color:${Es.FieldText}}:host .content-region{color:${Es.FieldText}}:host .content-region .expand-collapse-glyph,:host .content-region .start,:host .content-region .end{fill:${Es.FieldText}}:host .positioning-region:hover,:host([selected]) .positioning-region{background:${Es.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{color:${Es.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph,:host .positioning-region:hover .content-region .start,:host .positioning-region:hover .content-region .end,:host([selected]) .content-region .expand-collapse-glyph,:host([selected]) .content-region .start,:host([selected]) .content-region .end{fill:${Es.HighlightText}}:host([selected])::after{background:${Es.Field}}:host(:${to}) .positioning-region{border-color:${Es.FieldText};box-shadow:0 0 0 2px inset ${Es.Field};color:${Es.FieldText}}:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${Es.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph,:host([disabled]) .content-region .start,:host([disabled]) .content-region .end,:host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph,:host([disabled]) .positioning-region:hover .content-region .start,:host([disabled]) .positioning-region:hover .content-region .end{fill:${Es.GrayText}}:host([disabled]) .positioning-region:hover{background:${Es.Field}}.expand-collapse-glyph,.start,.end{fill:${Es.FieldText}}:host(.nested) .expand-collapse-button:hover{background:${Es.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill:${Es.FieldText}}`)),nu=Fs.compose({baseName:"tree-item",template:(t,e)=>nt`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="${t=>t.focusable?0:-1}" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @click="${(t,e)=>t.handleClick(e.event)}" ${Qt({property:"childItems",filter:Gt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Bt(t=>t.childItems&&t.childItemLength()>0,nt`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${Nt("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${te(0,e)}<slot></slot>${Jt(0,e)}</div></div>${Bt(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),nt`<div role="group" class="items" part="items"><slot name="item" ${Xt("items")}></slot></div>`)}</template>`,styles:su,expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n '}),ru=su,au={fluentAccordion:uc,fluentAccordionItem:hc,fluentAnchor:Rc,fluentAnchoredRegion:Lc,fluentBadge:Hc,fluentBreadcrumb:Nc,fluentBreadcrumbItem:Uc,fluentButton:Wc,fluentCard:Qc,fluentCheckbox:th,fluentCombobox:rh,fluentDataGrid:fh,fluentDataGridCell:dh,fluentDataGridRow:ph,fluentDesignSystemProvider:$h,fluentDialog:kh,fluentDivider:Th,fluentFlipper:Sh,fluentHorizontalScroll:Ph,fluentListbox:Mh,fluentOption:jh,fluentMenu:_h,fluentMenuItem:Kh,fluentNumberField:Jh,fluentProgress:id,fluentProgressRing:rd,fluentRadio:cd,fluentRadioGroup:ud,fluentSelect:fd,fluentSkeleton:vd,fluentSlider:$d,fluentSliderLabel:Cd,fluentSwitch:Fd,fluentTabs:Pd,fluentTab:Rd,fluentTabPanel:Vd,fluentTextArea:Nd,fluentTextField:qd,fluentToolbar:Wd,fluentTooltip:Xd,fluentTreeView:Qd,fluentTreeItem:nu,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function lu(t){return Gi.getOrCreate(t).withPrefix("fluent")}const cu=lu().register(au);export{$c as AccentButtonStyles,ti as Accordion,je as AccordionItem,Sc as Anchor,ri as AnchoredRegion,Pc as Badge,ci as Breadcrumb,li as BreadcrumbItem,Gc as Button,Yc as Card,nh as Combobox,$i as DataGrid,Ci as DataGridCell,xi as DataGridRow,xh as DesignSystemProvider,So as Dialog,fc as DirectionalStyleSheetBehavior,Oo as Divider,Lo as Flipper,cu as FluentDesignSystem,Ah as HorizontalScroll,wc as HypertextStyles,kc as LightweightButtonStyles,Ai as Listbox,Ho as Menu,Po as MenuItem,Qh as NumberField,Uh as OptionStyles,Cc as OutlineButtonStyles,Cn as PaletteRGB,ed as Progress,nd as ProgressRing,Yo as Radio,Wo as RadioGroup,hd as RadioStyles,gd as Select,is as Skeleton,cs as Slider,ns as SliderLabel,On as StandardLuminance,Ic as StealthButtonStyles,yn as SwatchRGB,us as Switch,gs as Tab,ps as TabPanel,ms as Tabs,Md as TextArea,Ud as TextField,Gd as Toolbar,Kd as Tooltip,Fs as TreeItem,Ds as TreeView,pa as accentFillActive,pr as accentFillActiveDelta,ga as accentFillFocus,gr as accentFillFocusDelta,ua as accentFillHover,ur as accentFillHoverDelta,ha as accentFillRecipe,da as accentFillRest,dr as accentFillRestDelta,Ea as accentForegroundActive,mr as accentForegroundActiveDelta,Ul as accentForegroundCut,ql as accentForegroundCutLarge,Ra as accentForegroundFocus,vr as accentForegroundFocusDelta,Sa as accentForegroundHover,br as accentForegroundHoverDelta,Fa as accentForegroundRecipe,Da as accentForegroundRest,fr as accentForegroundRestDelta,Xr as accentPalette,dc as accordionItemStyles,pc as accordionStyles,au as allComponents,mc as ambientShadow,Ec as anchorStyles,Vc as anchoredRegionStyles,zc as badgeStyles,xc as baseButtonStyles,Hn as baseHeightMultiplier,zn as baseHorizontalSpacingMultiplier,hr as baseLayerLuminance,_n as bodyFont,qc as breadcrumbItemStyles,Bc as breadcrumbStyles,Kc as buttonStyles,Zc as cardStyles,eh as checkboxStyles,ah as comboboxStyles,Bn as controlCornerRadius,Il as cornerRadius,uh as dataGridCellStyles,gh as dataGridRowStyles,bh as dataGridStyles,Mn as density,Nn as designUnit,Ch as dialogStyles,An as direction,vc as directionalShadow,Pn as disabledOpacity,Fh as dividerStyles,Tl as elevatedCornerRadius,yc as elevation,la as fillColor,Tc as fillStateStyles,Eh as flipperStyles,uc as fluentAccordion,hc as fluentAccordionItem,Rc as fluentAnchor,Lc as fluentAnchoredRegion,Hc as fluentBadge,Nc as fluentBreadcrumb,Uc as fluentBreadcrumbItem,Wc as fluentButton,Qc as fluentCard,th as fluentCheckbox,rh as fluentCombobox,fh as fluentDataGrid,dh as fluentDataGridCell,ph as fluentDataGridRow,$h as fluentDesignSystemProvider,kh as fluentDialog,Th as fluentDivider,Sh as fluentFlipper,Ph as fluentHorizontalScroll,Mh as fluentListbox,_h as fluentMenu,Kh as fluentMenuItem,Jh as fluentNumberField,jh as fluentOption,id as fluentProgress,rd as fluentProgressRing,cd as fluentRadio,ud as fluentRadioGroup,fd as fluentSelect,vd as fluentSkeleton,$d as fluentSlider,Cd as fluentSliderLabel,Fd as fluentSwitch,Rd as fluentTab,Vd as fluentTabPanel,Pd as fluentTabs,Nd as fluentTextArea,qd as fluentTextField,Wd as fluentToolbar,Xd as fluentTooltip,nu as fluentTreeItem,Qd as fluentTreeView,Dl as focusOutlineWidth,xl as focusStrokeInner,yl as focusStrokeInnerRecipe,vl as focusStrokeOuter,ml as focusStrokeOuterRecipe,qn as focusStrokeWidth,ya as foregroundOnAccentActive,Ca as foregroundOnAccentActiveLarge,xa as foregroundOnAccentFocus,Ia as foregroundOnAccentFocusLarge,va as foregroundOnAccentHover,ka as foregroundOnAccentHoverLarge,$a as foregroundOnAccentLargeRecipe,ba as foregroundOnAccentRecipe,ma as foregroundOnAccentRest,wa as foregroundOnAccentRestLarge,lc as heightNumber,Hh as horizontalScrollStyles,wn as isDark,jn as layerCornerRadius,Nh as listboxStyles,Xh as menuItemStyles,Gh as menuStyles,Xl as neutralContrastFillActive,Pl as neutralContrastFillActiveDelta,Yl as neutralContrastFillFocus,Hl as neutralContrastFillFocusDelta,Kl as neutralContrastFillHover,Al as neutralContrastFillHoverDelta,Wl as neutralContrastFillRest,Vl as neutralContrastFillRestDelta,_l as neutralDivider,zl as neutralDividerRestDelta,Aa as neutralFillActive,$r as neutralFillActiveDelta,Gl as neutralFillCard,Sl as neutralFillCardDelta,Pa as neutralFillFocus,wr as neutralFillFocusDelta,Va as neutralFillHover,xr as neutralFillHoverDelta,Ba as neutralFillInputActive,Ir as neutralFillInputActiveDelta,Na as neutralFillInputFocus,Tr as neutralFillInputFocusDelta,Ma as neutralFillInputHover,Cr as neutralFillInputHoverDelta,Ha as neutralFillInputRecipe,za as neutralFillInputRest,kr as neutralFillInputRestDelta,_a as neutralFillInverseActive,Sr as neutralFillInverseActiveDelta,Ga as neutralFillInverseFocus,Er as neutralFillInverseFocusDelta,qa as neutralFillInverseHover,Dr as neutralFillInverseHoverDelta,ja as neutralFillInverseRecipe,Ua as neutralFillInverseRest,Fr as neutralFillInverseRestDelta,Wa as neutralFillLayerRecipe,Ka as neutralFillLayerRest,Rr as neutralFillLayerRestDelta,Oa as neutralFillRecipe,La as neutralFillRest,yr as neutralFillRestDelta,Za as neutralFillStealthActive,Vr as neutralFillStealthActiveDelta,Ja as neutralFillStealthFocus,Ar as neutralFillStealthFocusDelta,Qa as neutralFillStealthHover,Lr as neutralFillStealthHoverDelta,Xa as neutralFillStealthRecipe,Ya as neutralFillStealthRest,Or as neutralFillStealthRestDelta,ol as neutralFillStrongActive,zr as neutralFillStrongActiveDelta,sl as neutralFillStrongFocus,Mr as neutralFillStrongFocusDelta,il as neutralFillStrongHover,Hr as neutralFillStrongHoverDelta,tl as neutralFillStrongRecipe,el as neutralFillStrongRest,Pr as neutralFillStrongRestDelta,Jl as neutralFillToggleActive,Ol as neutralFillToggleActiveDelta,tc as neutralFillToggleFocus,Ll as neutralFillToggleFocusDelta,Zl as neutralFillToggleHover,Rl as neutralFillToggleHoverDelta,Ql as neutralFillToggleRest,El as neutralFillToggleRestDelta,ec as neutralFocus,ic as neutralFocusInnerAccent,Cl as neutralForegroundHint,kl as neutralForegroundHintRecipe,$l as neutralForegroundRecipe,wl as neutralForegroundRest,ea as neutralLayer1,ta as neutralLayer1Recipe,oa as neutralLayer2,ia as neutralLayer2Recipe,na as neutralLayer3,sa as neutralLayer3Recipe,aa as neutralLayer4,ra as neutralLayer4Recipe,Qr as neutralLayerCardContainer,Yr as neutralLayerCardContainerRecipe,Jr as neutralLayerFloating,Zr as neutralLayerFloatingRecipe,Ml as neutralLayerL1,Nl as neutralLayerL2,Bl as neutralLayerL3,jl as neutralLayerL4,nc as neutralOutlineActive,rc as neutralOutlineFocus,sc as neutralOutlineHover,oc as neutralOutlineRest,Kr as neutralPalette,ll as neutralStrokeActive,jr as neutralStrokeActiveDelta,hl as neutralStrokeDividerRecipe,dl as neutralStrokeDividerRest,qr as neutralStrokeDividerRestDelta,cl as neutralStrokeFocus,Ur as neutralStrokeFocusDelta,al as neutralStrokeHover,Br as neutralStrokeHoverDelta,nl as neutralStrokeRecipe,rl as neutralStrokeRest,Nr as neutralStrokeRestDelta,fl as neutralStrokeStrongActive,Gr as neutralStrokeStrongActiveDelta,bl as neutralStrokeStrongFocus,Wr as neutralStrokeStrongFocusDelta,gl as neutralStrokeStrongHover,_r as neutralStrokeStrongHoverDelta,ul as neutralStrokeStrongRecipe,pl as neutralStrokeStrongRest,Zh as numberFieldStyles,Fl as outlineWidth,ad as progressRingStyles,od as progressStyles,lu as provideFluentDesignSystem,pd as radioGroupStyles,bd as selectStyles,yd as skeletonStyles,Id as sliderLabelStyles,wd as sliderStyles,Un as strokeWidth,Dd as switchStyles,Ad as tabPanelStyles,Od as tabStyles,Hd as tabsStyles,Bd as textAreaStyles,_d as textFieldStyles,ru as treeItemStyles,Zd as treeViewStyles,Gn as typeRampBaseFontSize,Wn as typeRampBaseLineHeight,Kn as typeRampMinus1FontSize,Xn as typeRampMinus1LineHeight,Yn as typeRampMinus2FontSize,Qn as typeRampMinus2LineHeight,Zn as typeRampPlus1FontSize,Jn as typeRampPlus1LineHeight,tr as typeRampPlus2FontSize,er as typeRampPlus2LineHeight,ir as typeRampPlus3FontSize,or as typeRampPlus3LineHeight,sr as typeRampPlus4FontSize,nr as typeRampPlus4LineHeight,rr as typeRampPlus5FontSize,ar as typeRampPlus5LineHeight,lr as typeRampPlus6FontSize,cr as typeRampPlus6LineHeight};
139
+ ${_i("inline-flex")} :host{box-sizing:border-box;font-family:${Gn};font-size:${Wn};font-weight:400;line-height:${Kn};height:calc(${cc} * 1px);padding:0 calc((6 + (${Bn} * 2 * ${Nn})) * 1px);color:${kl};border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1;cursor:pointer}:host([aria-selected='true']){z-index:2}:host(:hover),:host(:active){color:${kl}}:host(:${Gi}){outline:none;border:calc(${qn} * 1px) solid ${yl};box-shadow:0 0 0 calc((${_n} - ${qn}) * 1px) ${yl}}:host(:focus){outline:none}:host(.vertical){justify-content:end;grid-column:2}:host(.vertical[aria-selected='true']){z-index:2}:host(.vertical:hover),:host(.vertical:active){color:${kl}}:host(.vertical:hover[aria-selected='true']){}`.withBehaviors(Ui(Dt`
140
+ :host{forced-color-adjust:none;border-color:transparent;color:${Es.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected='true']:hover){background:${Es.Highlight};color:${Es.HighlightText};fill:currentcolor}:host([aria-selected='true']){background:${Es.HighlightText};color:${Es.Highlight};fill:currentcolor}:host(:${Gi}){border-color:${Es.ButtonText};box-shadow:none}`)),Od=fs.compose({baseName:"tab",template:(t,e)=>nt`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"><slot></slot></template>`,styles:Ed}),Ld=Ed,Vd=(t,e)=>Dt`
141
+ ${_i("block")} :host{box-sizing:border-box;font-family:${Gn};font-size:${Xn};font-weight:400;line-height:${Yn};padding:0 calc((6 + (${Bn} * 2 * ${Nn})) * 1px)}`,Ad=gs.compose({baseName:"tab-panel",template:(t,e)=>nt`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`,styles:Vd}),Pd=Vd,Hd=vs.compose({baseName:"tabs",template:(t,e)=>nt`<template class="${t=>t.orientation}">${te(0,e)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${Xt("tabs")}></slot>${Bt(t=>t.showActiveIndicator,nt`<div ${Nt("activeIndicatorRef")} class="activeIndicator" part="activeIndicator"></div>`)}</div>${Jt(0,e)}<div class="tabpanel"><slot name="tabpanel" part="tabpanel" ${Xt("tabpanels")}></slot></div></template>`,styles:Sd}),zd=Sd,Md=(t,e)=>Dt`
142
+ ${_i("inline-flex")} :host{font-family:${Gn};outline:none;user-select:none;position:relative;flex-direction:column;vertical-align:bottom}.control{box-sizing:border-box;position:relative;color:${kl};background:${Ma};border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid ${al};height:calc(${cc} * 2px);font:inherit;font-size:${Wn};line-height:${Kn};padding:calc(${Bn} * 1.5px) calc(${Bn} * 2px + 1px);width:100%;resize:none}.control:hover:enabled{background:${Na};border-color:${ll}}.control:hover,.control:${Gi},.control:disabled,.control:active{outline:none}:host(:focus-within) .control{border-color:${yl};box-shadow:0 0 0 1px ${yl} inset}:host(.resize-both) .control{resize:both}:host(.resize-horizontal) .control{resize:horizontal}:host(.resize-vertical) .control{resize:vertical}.label__hidden{display:none;visibility:hidden}.label{display:block;color:${kl};cursor:pointer;$font-size:${Wn};line-height:${Kn};margin-bottom:4px}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Hn}}`.withBehaviors(Dc("filled",Dt`
143
+ :host([appearance='filled']) .control{background:${Va};border-color:transparent}:host([appearance='filled']:hover:not([disabled])) .control{background:${Aa};border-color:transparent}:host([appearance='filled']:focus-within:not([disabled])) .control{border-color:transparent;box-shadow:none}${Fc()}
144
+ `.withBehaviors(Ui(Dt`
145
+ :host([appearance='filled']:hover:not([disabled])) .control,:host([appearance='filled']:focus-within:not([disabled])) .control{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:not([disabled]):active)::after,:host([appearance='filled']:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${Es.Highlight}}`))),Ui(Dt`
146
+ :host([disabled]){opacity:1}::placeholder,::-webkit-input-placeholder{color:${Es.FieldText}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${Es.GrayText}}`));class Nd extends $s{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}fc([ft],Nd.prototype,"appearance",void 0);const Bd=Nd.compose({baseName:"text-area",baseClass:$s,template:(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} ${t=>t.resize!==ms.none?"resize-"+t.resize:""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt("defaultSlottedNodes")}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${t=>t.autofocus}" cols="${t=>t.cols}" ?disabled="${t=>t.disabled}" form="${t=>t.form}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" name="${t=>t.name}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" rows="${t=>t.rows}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" @input="${(t,e)=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ${Nt("control")}></textarea></template>`,styles:Md,shadowOptions:{delegatesFocus:!0}}),jd=Md,Ud=(t,e)=>Dt`
147
+ ${_i("inline-block")} :host{font-family:${Gn};outline:none;user-select:none;position:relative}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${kl};background:${Ma};border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid ${al};height:calc(${cc} * 1px)}.control{-webkit-appearance:none;background:transparent;border:0;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Bn} * 2px + 1px);color:${kl};font-family:inherit;font-size:${Wn};line-height:${Kn}}.control:hover,.control:${Gi},.control:disabled,.control:active{outline:none}.label{display:block;color:${kl};cursor:pointer;font-size:${Wn};line-height:${Kn};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.end{display:flex;margin:auto;fill:currentcolor}::slotted(svg){${""} width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not(.disabled)) .root{background:${Na};border-color:${ll}}:host(:focus-within:not(.disabled)) .root{border-color:${yl};box-shadow:0 0 0 1px ${yl} inset}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.disabled){opacity:${Hn}}`.withBehaviors(Dc("filled",Dt`
148
+ :host([appearance='filled']) .root{background:${Va};border-color:transparent}:host([appearance='filled']:hover:not(.disabled)) .root{background:${Aa};border-color:transparent}:host([appearance='filled']:focus-within:not(.disabled)) .root{border-color:transparent;box-shadow:none}${Fc()}
149
+ `.withBehaviors(Ui(Dt`
150
+ :host([appearance='filled']) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:hover:not([disabled])) .root,:host([appearance='filled']:focus-within:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:active:not([disabled])) .root{background:${Es.Field};border-color:${Es.FieldText}}:host([appearance='filled']:not([disabled]):active)::after,:host([appearance='filled']:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${Es.Highlight}}:host([appearance='filled'][disabled]) .root{border-color:${Es.GrayText};background:${Es.Field}}`))),Ui(Dt`
151
+ .root{forced-color-adjust:none;background:${Es.Field};border-color:${Es.FieldText}}:host(:hover:not(.disabled)) .root{background:${Es.Field};border-color:${Es.Highlight}}.start,.end{fill:${Es.ButtonText}}:host(.disabled){opacity:1}:host(.disabled) .root{border-color:${Es.GrayText};background:${Es.Field}}:host(:focus-within:enabled) .root{border-color:${Es.Highlight};box-shadow:0 0 0 1px ${Es.Highlight} inset}.control{color:${Es.ButtonText}}::placeholder,::-webkit-input-placeholder{color:${Es.FieldText}}:host(.disabled) ::placeholder,:host(.disabled) ::-webkit-input-placeholder,:host([disabled]) .label{color:${Es.GrayText}}`));class qd extends jo{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}fc([ft],qd.prototype,"appearance",void 0);const _d=qd.compose({baseName:"text-field",baseClass:jo,template:(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Xt({property:"defaultSlottedNodes",filter:Wi})}></slot></label><div class="root" part="root">${te(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Nt("control")} />${Jt(0,e)}</div></template>`,styles:Ud,shadowOptions:{delegatesFocus:!0}}),Gd=Ud;class Wd extends ks{}const Kd=Wd.compose({baseName:"toolbar",template:(t,e)=>nt`<template aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-orientation="${t=>t.orientation}" orientation="${t=>t.orientation}" role="toolbar" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><slot name="label"></slot><div class="positioning-region" part="positioning-region">${te(0,e)}<slot ${Xt({filter:Gt(),property:"slottedItems"})}></slot>${Jt(0,e)}</div></template>`,styles:(t,e)=>Dt`
152
+ ${_i("inline-flex")} :host{--toolbar-item-gap:calc(${Bn} * 1px);background:${ca};fill:currentcolor;padding:var(--toolbar-item-gap);box-sizing:border-box;align-items:center}:host(${Gi}){outline:calc(${qn} * 1px) solid ${hl}}.positioning-region{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:flex-start;flex-grow:1}:host([orientation="vertical"]) .positioning-region{flex-direction:column;align-items:start}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}:host([orientation="vertical"]){display:inline-flex;flex-direction:column}.start,.end{display:flex;align-items:center}.end{margin-inline-start:auto}.start__hidden,.end__hidden{display:none}::slotted(svg){${""}
153
+ width:16px;height:16px}`.withBehaviors(Ui(Dt`
154
+ :host(:${Gi}){box-shadow:0 0 0 calc(${_n} * 1px) ${Es.Highlight};color:${Es.ButtonText};forced-color-adjust:none}`))});class Xd extends Ts{connectedCallback(){super.connectedCallback();const t=Ua.getValueFor(this),e=ca.getValueFor(this.parentElement);ca.setValueFor(this,i=>t.evaluate(i,e).rest)}}const Yd=Xd.compose({baseName:"tooltip",baseClass:Ts,template:(t,e)=>nt` ${Bt(t=>t.tooltipVisible,nt`<${t.tagFor(ri)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${Nt("region")}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${t.tagFor(ri)}>`)} `,styles:(t,e)=>Dt`
155
+ :host{--elevation:11;position:relative;contain:layout;overflow:visible;height:0;width:0;z-index:10000}.tooltip{box-sizing:border-box;border-radius:calc(${jn} * 1px);border:calc(${qn} * 1px) solid transparent;background:${ca};color:${kl};padding:4px 12px;height:fit-content;width:fit-content;font-family:${Gn};font-size:${Wn};line-height:${Kn};white-space:nowrap;${xc}}fluent-anchored-region{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}fluent-anchored-region.right,fluent-anchored-region.left{flex-direction:column}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:12px;height:12px;background:${ca};border-radius:calc(${jn} * 1px);position:absolute}fluent-anchored-region.top .tooltip::after{transform:rotate(45deg) translateX(-50%);bottom:4px;left:50%}fluent-anchored-region.top .tooltip{margin-bottom:12px}fluent-anchored-region.bottom .tooltip::after{transform:rotate(45deg) translateX(-50%);top:12px;left:50%}fluent-anchored-region.bottom .tooltip{margin-top:12px}fluent-anchored-region.left .tooltip::after{transform:rotate(45deg) translateY(-50%);top:50%;right:12px}fluent-anchored-region.left .tooltip{margin-right:12px}fluent-anchored-region.right .tooltip::after{transform:rotate(45deg) translateY(-50%);top:50%;left:4px}fluent-anchored-region.right .tooltip{margin-left:12px}`.withBehaviors(Ui(Dt`
156
+ :host([disabled]){opacity:1}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:unset;height:unset}`))}),Qd=(t,e)=>Dt`
157
+ :host([hidden]){display:none}${_i("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}:host:focus-visible{outline:none}`,Zd=Rs.compose({baseName:"tree-view",template:(t,e)=>nt`<template role="tree" ${Nt("treeView")} @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}"><slot ${Xt("slottedTreeItems")}></slot></template>`,styles:Qd}),Jd=Qd,tu=Dt`
158
+ .expand-collapse-glyph{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${cc} * -1px))}:host([selected])::after{left:calc(${_n} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(45deg)}`,eu=Dt`
159
+ .expand-collapse-glyph{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${cc} * -1px))}:host([selected])::after{right:calc(${_n} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(135deg)}`,iu=St`((${zn} / 2) * ${Bn}) + ((${Bn} * ${Nn}) / 2)`,ou=ho.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=Ya.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),su=ho.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=La.getValueFor(t);return Ya.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),nu=(t,e)=>Dt`
160
+ ${_i("block")} :host{contain:content;position:relative;outline:none;color:${kl};background:${Qa};cursor:pointer;font-family:${Gn};--expand-collapse-button-size:calc(${cc} * 1px);--tree-item-nested-width:0}:host(:focus) > .positioning-region{outline:none}:host(:focus) .content-region{outline:none}.positioning-region{display:flex;position:relative;box-sizing:border-box;border:calc(${qn} * 1px) solid transparent;height:calc((${cc} + 1) * 1px)}:host(:${Gi}) .positioning-region{border:calc(${qn} * 1px) solid ${yl};border-radius:calc(${jn} * 1px);color:${kl}}.positioning-region::before{content:'';display:block;width:var(--tree-item-nested-width);flex-shrink:0}.positioning-region:hover{background:${Za}}.positioning-region:active{background:${Ja}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${cc} * 1px);margin-inline-start:calc(${Bn} * 2px + 8px);font-size:${Wn};line-height:${Kn};font-weight:400}.items{display:none;${""} font-size:calc(1em + (${Bn} + 16) * 1px)}.expand-collapse-button{background:none;border:none;outline:none;${""} width:calc((${iu} + (${Bn} * 2)) * 1px);height:calc((${iu} + (${Bn} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 6px}.expand-collapse-glyph{width:16px;height:16px;transition:transform 0.1s linear;pointer-events:none;fill:${kl}}.start,.end{display:flex;fill:currentcolor}::slotted(svg){${""} width:16px;height:16px}.start{${""} margin-inline-end:calc(${Bn} * 2px + 2px)}.end{${""} margin-inline-start:calc(${Bn} * 2px + 2px)}:host(.expanded) > .items{display:block}:host([disabled]) .content-region{opacity:${Hn};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested) .expand-collapse-button:hover{background:${ou}}:host([selected]) .positioning-region{background:${Va}}:host([selected]) .expand-collapse-button:hover{background:${su}}:host([selected])::after{content:'';display:block;position:absolute;top:calc((${cc} / 4) * 1px);width:3px;height:calc((${cc} / 2) * 1px);${""} background:${Ra};border-radius:calc(${jn} * 1px)}::slotted(fluent-tree-item){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${cc} * -1px)}`.withBehaviors(new bc(tu,eu),Ui(Dt`
161
+ :host{forced-color-adjust:none;border-color:transparent;background:${Es.Field};color:${Es.FieldText}}:host .content-region{color:${Es.FieldText}}:host .content-region .expand-collapse-glyph,:host .content-region .start,:host .content-region .end{fill:${Es.FieldText}}:host .positioning-region:hover,:host([selected]) .positioning-region{background:${Es.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{color:${Es.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph,:host .positioning-region:hover .content-region .start,:host .positioning-region:hover .content-region .end,:host([selected]) .content-region .expand-collapse-glyph,:host([selected]) .content-region .start,:host([selected]) .content-region .end{fill:${Es.HighlightText}}:host([selected])::after{background:${Es.Field}}:host(:${Gi}) .positioning-region{border-color:${Es.FieldText};box-shadow:0 0 0 2px inset ${Es.Field};color:${Es.FieldText}}:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${Es.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph,:host([disabled]) .content-region .start,:host([disabled]) .content-region .end,:host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph,:host([disabled]) .positioning-region:hover .content-region .start,:host([disabled]) .positioning-region:hover .content-region .end{fill:${Es.GrayText}}:host([disabled]) .positioning-region:hover{background:${Es.Field}}.expand-collapse-glyph,.start,.end{fill:${Es.FieldText}}:host(.nested) .expand-collapse-button:hover{background:${Es.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill:${Es.FieldText}}`)),ru=Ds.compose({baseName:"tree-item",template:(t,e)=>nt`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="${t=>t.focusable?0:-1}" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @click="${(t,e)=>t.handleClick(e.event)}" ${Qt({property:"childItems",filter:Gt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Bt(t=>t.childItems&&t.childItemLength()>0,nt`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${Nt("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${te(0,e)}<slot></slot>${Jt(0,e)}</div></div>${Bt(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),nt`<div role="group" class="items" part="items"><slot name="item" ${Xt("items")}></slot></div>`)}</template>`,styles:nu,expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n '}),au=nu,lu={fluentAccordion:pc,fluentAccordionItem:dc,fluentAnchor:Oc,fluentAnchoredRegion:Vc,fluentBadge:zc,fluentBreadcrumb:Bc,fluentBreadcrumbItem:qc,fluentButton:Kc,fluentCard:Zc,fluentCheckbox:eh,fluentCombobox:ah,fluentDataGrid:bh,fluentDataGridCell:uh,fluentDataGridRow:gh,fluentDesignSystemProvider:wh,fluentDialog:Ch,fluentDivider:Fh,fluentFlipper:Sh,fluentHorizontalScroll:Hh,fluentListbox:Nh,fluentOption:Uh,fluentMenu:Gh,fluentMenuItem:Xh,fluentNumberField:td,fluentProgress:od,fluentProgressRing:ad,fluentRadio:hd,fluentRadioGroup:pd,fluentSelect:bd,fluentSkeleton:yd,fluentSlider:wd,fluentSliderLabel:Id,fluentSwitch:Dd,fluentTabs:Hd,fluentTab:Od,fluentTabPanel:Ad,fluentTextArea:Bd,fluentTextField:_d,fluentToolbar:Kd,fluentTooltip:Yd,fluentTreeView:Zd,fluentTreeItem:ru,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function cu(t){return mo.getOrCreate(t).withPrefix("fluent")}const hu=cu().register(lu);export{wc as AccentButtonStyles,ti as Accordion,je as AccordionItem,Sc as Anchor,ri as AnchoredRegion,Hc as Badge,ci as Breadcrumb,li as BreadcrumbItem,Wc as Button,Qc as Card,rh as Combobox,$i as DataGrid,Ci as DataGridCell,xi as DataGridRow,$h as DesignSystemProvider,So as Dialog,bc as DirectionalStyleSheetBehavior,Lo as Divider,Vo as Flipper,hu as FluentDesignSystem,Ph as HorizontalScroll,kc as HypertextStyles,Cc as LightweightButtonStyles,Ai as Listbox,zo as Menu,Ho as MenuItem,Zh as NumberField,qh as OptionStyles,Ic as OutlineButtonStyles,In as PaletteRGB,id as Progress,rd as ProgressRing,Qo as Radio,Ko as RadioGroup,dd as RadioStyles,fd as Select,os as Skeleton,hs as Slider,rs as SliderLabel,Ln as StandardLuminance,Tc as StealthButtonStyles,xn as SwatchRGB,ps as Switch,fs as Tab,gs as TabPanel,vs as Tabs,Nd as TextArea,qd as TextField,Wd as Toolbar,Xd as Tooltip,Ds as TreeItem,Rs as TreeView,ga as accentFillActive,gr as accentFillActiveDelta,fa as accentFillFocus,fr as accentFillFocusDelta,pa as accentFillHover,pr as accentFillHoverDelta,da as accentFillRecipe,ua as accentFillRest,ur as accentFillRestDelta,Ea as accentForegroundActive,vr as accentForegroundActiveDelta,ql as accentForegroundCut,_l as accentForegroundCutLarge,Oa as accentForegroundFocus,yr as accentForegroundFocusDelta,Sa as accentForegroundHover,mr as accentForegroundHoverDelta,Da as accentForegroundRecipe,Ra as accentForegroundRest,br as accentForegroundRestDelta,Yr as accentPalette,uc as accordionItemStyles,gc as accordionStyles,lu as allComponents,vc as ambientShadow,Ec as anchorStyles,Ac as anchoredRegionStyles,Mc as badgeStyles,$c as baseButtonStyles,zn as baseHeightMultiplier,Mn as baseHorizontalSpacingMultiplier,dr as baseLayerLuminance,Gn as bodyFont,_c as breadcrumbItemStyles,jc as breadcrumbStyles,Xc as buttonStyles,Jc as cardStyles,ih as checkboxStyles,lh as comboboxStyles,jn as controlCornerRadius,Tl as cornerRadius,ph as dataGridCellStyles,fh as dataGridRowStyles,mh as dataGridStyles,Nn as density,Bn as designUnit,Ih as dialogStyles,Pn as direction,yc as directionalShadow,Hn as disabledOpacity,Dh as dividerStyles,Fl as elevatedCornerRadius,xc as elevation,ca as fillColor,Fc as fillStateStyles,Eh as flipperStyles,pc as fluentAccordion,dc as fluentAccordionItem,Oc as fluentAnchor,Vc as fluentAnchoredRegion,zc as fluentBadge,Bc as fluentBreadcrumb,qc as fluentBreadcrumbItem,Kc as fluentButton,Zc as fluentCard,eh as fluentCheckbox,ah as fluentCombobox,bh as fluentDataGrid,uh as fluentDataGridCell,gh as fluentDataGridRow,wh as fluentDesignSystemProvider,Ch as fluentDialog,Fh as fluentDivider,Sh as fluentFlipper,Hh as fluentHorizontalScroll,Nh as fluentListbox,Gh as fluentMenu,Xh as fluentMenuItem,td as fluentNumberField,Uh as fluentOption,od as fluentProgress,ad as fluentProgressRing,hd as fluentRadio,pd as fluentRadioGroup,bd as fluentSelect,yd as fluentSkeleton,wd as fluentSlider,Id as fluentSliderLabel,Dd as fluentSwitch,Od as fluentTab,Ad as fluentTabPanel,Hd as fluentTabs,Bd as fluentTextArea,_d as fluentTextField,Kd as fluentToolbar,Yd as fluentTooltip,ru as fluentTreeItem,Zd as fluentTreeView,Rl as focusOutlineWidth,$l as focusStrokeInner,xl as focusStrokeInnerRecipe,yl as focusStrokeOuter,vl as focusStrokeOuterRecipe,_n as focusStrokeWidth,xa as foregroundOnAccentActive,Ia as foregroundOnAccentActiveLarge,$a as foregroundOnAccentFocus,Ta as foregroundOnAccentFocusLarge,ya as foregroundOnAccentHover,Ca as foregroundOnAccentHoverLarge,wa as foregroundOnAccentLargeRecipe,ma as foregroundOnAccentRecipe,va as foregroundOnAccentRest,ka as foregroundOnAccentRestLarge,cc as heightNumber,zh as horizontalScrollStyles,kn as isDark,Un as layerCornerRadius,Bh as listboxStyles,Yh as menuItemStyles,Wh as menuStyles,Yl as neutralContrastFillActive,Hl as neutralContrastFillActiveDelta,Ql as neutralContrastFillFocus,zl as neutralContrastFillFocusDelta,Xl as neutralContrastFillHover,Pl as neutralContrastFillHoverDelta,Kl as neutralContrastFillRest,Al as neutralContrastFillRestDelta,Gl as neutralDivider,Ml as neutralDividerRestDelta,Pa as neutralFillActive,wr as neutralFillActiveDelta,Wl as neutralFillCard,Sl as neutralFillCardDelta,Ha as neutralFillFocus,kr as neutralFillFocusDelta,Aa as neutralFillHover,$r as neutralFillHoverDelta,ja as neutralFillInputActive,Tr as neutralFillInputActiveDelta,Ba as neutralFillInputFocus,Fr as neutralFillInputFocusDelta,Na as neutralFillInputHover,Ir as neutralFillInputHoverDelta,za as neutralFillInputRecipe,Ma as neutralFillInputRest,Cr as neutralFillInputRestDelta,Ga as neutralFillInverseActive,Sr as neutralFillInverseActiveDelta,Wa as neutralFillInverseFocus,Er as neutralFillInverseFocusDelta,_a as neutralFillInverseHover,Rr as neutralFillInverseHoverDelta,Ua as neutralFillInverseRecipe,qa as neutralFillInverseRest,Dr as neutralFillInverseRestDelta,Ka as neutralFillLayerRecipe,Xa as neutralFillLayerRest,Or as neutralFillLayerRestDelta,La as neutralFillRecipe,Va as neutralFillRest,xr as neutralFillRestDelta,Ja as neutralFillStealthActive,Ar as neutralFillStealthActiveDelta,tl as neutralFillStealthFocus,Pr as neutralFillStealthFocusDelta,Za as neutralFillStealthHover,Vr as neutralFillStealthHoverDelta,Ya as neutralFillStealthRecipe,Qa as neutralFillStealthRest,Lr as neutralFillStealthRestDelta,sl as neutralFillStrongActive,Mr as neutralFillStrongActiveDelta,nl as neutralFillStrongFocus,Nr as neutralFillStrongFocusDelta,ol as neutralFillStrongHover,zr as neutralFillStrongHoverDelta,el as neutralFillStrongRecipe,il as neutralFillStrongRest,Hr as neutralFillStrongRestDelta,tc as neutralFillToggleActive,Ll as neutralFillToggleActiveDelta,ec as neutralFillToggleFocus,Vl as neutralFillToggleFocusDelta,Jl as neutralFillToggleHover,Ol as neutralFillToggleHoverDelta,Zl as neutralFillToggleRest,El as neutralFillToggleRestDelta,ic as neutralFocus,oc as neutralFocusInnerAccent,Il as neutralForegroundHint,Cl as neutralForegroundHintRecipe,wl as neutralForegroundRecipe,kl as neutralForegroundRest,ia as neutralLayer1,ea as neutralLayer1Recipe,sa as neutralLayer2,oa as neutralLayer2Recipe,ra as neutralLayer3,na as neutralLayer3Recipe,la as neutralLayer4,aa as neutralLayer4Recipe,Zr as neutralLayerCardContainer,Qr as neutralLayerCardContainerRecipe,ta as neutralLayerFloating,Jr as neutralLayerFloatingRecipe,Nl as neutralLayerL1,Bl as neutralLayerL2,jl as neutralLayerL3,Ul as neutralLayerL4,rc as neutralOutlineActive,ac as neutralOutlineFocus,nc as neutralOutlineHover,sc as neutralOutlineRest,Xr as neutralPalette,cl as neutralStrokeActive,Ur as neutralStrokeActiveDelta,dl as neutralStrokeDividerRecipe,ul as neutralStrokeDividerRest,_r as neutralStrokeDividerRestDelta,hl as neutralStrokeFocus,qr as neutralStrokeFocusDelta,ll as neutralStrokeHover,jr as neutralStrokeHoverDelta,rl as neutralStrokeRecipe,al as neutralStrokeRest,Br as neutralStrokeRestDelta,bl as neutralStrokeStrongActive,Wr as neutralStrokeStrongActiveDelta,ml as neutralStrokeStrongFocus,Kr as neutralStrokeStrongFocusDelta,fl as neutralStrokeStrongHover,Gr as neutralStrokeStrongHoverDelta,pl as neutralStrokeStrongRecipe,gl as neutralStrokeStrongRest,Jh as numberFieldStyles,Dl as outlineWidth,ld as progressRingStyles,sd as progressStyles,cu as provideFluentDesignSystem,gd as radioGroupStyles,md as selectStyles,xd as skeletonStyles,Td as sliderLabelStyles,kd as sliderStyles,qn as strokeWidth,Rd as switchStyles,Pd as tabPanelStyles,Ld as tabStyles,zd as tabsStyles,jd as textAreaStyles,Gd as textFieldStyles,au as treeItemStyles,Jd as treeViewStyles,Wn as typeRampBaseFontSize,Kn as typeRampBaseLineHeight,Xn as typeRampMinus1FontSize,Yn as typeRampMinus1LineHeight,Qn as typeRampMinus2FontSize,Zn as typeRampMinus2LineHeight,Jn as typeRampPlus1FontSize,tr as typeRampPlus1LineHeight,er as typeRampPlus2FontSize,ir as typeRampPlus2LineHeight,or as typeRampPlus3FontSize,sr as typeRampPlus3LineHeight,nr as typeRampPlus4FontSize,rr as typeRampPlus4LineHeight,ar as typeRampPlus5FontSize,lr as typeRampPlus5LineHeight,cr as typeRampPlus6FontSize,hr as typeRampPlus6LineHeight};