@ni/fast-foundation 10.0.2 → 10.1.1

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.
@@ -216,6 +216,20 @@ export declare class NumberField extends FormAssociatedNumberField {
216
216
  * @internal
217
217
  */
218
218
  handleBlur(): void;
219
+ /**
220
+ * Sanitizes the text input by the user.
221
+ * @param inputText The user-input text to sanitize
222
+ * @returns The sanitized text, containing only valid characters for a number field
223
+ */
224
+ protected sanitizeInput(inputText: string): string;
225
+ /**
226
+ * Synchronizes the value from the input control in the shadow DOM to the host component.
227
+ */
228
+ protected syncValueFromInnerControl(): void;
229
+ /**
230
+ * Synchronizes the value from the host component to the input control in the shadow DOM.
231
+ */
232
+ protected syncValueToInnerControl(): void;
219
233
  }
220
234
  /**
221
235
  * Mark internal because exporting class and interface of the same name
@@ -106,7 +106,7 @@ export class NumberField extends FormAssociatedNumberField {
106
106
  return;
107
107
  }
108
108
  if (this.control && !this.isUserInput) {
109
- this.control.value = this.value;
109
+ this.syncValueToInnerControl();
110
110
  }
111
111
  super.valueChanged(previous, this.value);
112
112
  if (previous !== undefined && !this.isUserInput) {
@@ -127,7 +127,7 @@ export class NumberField extends FormAssociatedNumberField {
127
127
  */
128
128
  getValidValue(value) {
129
129
  var _a, _b;
130
- let validValue = parseFloat(parseFloat(value).toPrecision(12));
130
+ let validValue = parseFloat(parseFloat(value).toPrecision(15));
131
131
  if (isNaN(validValue)) {
132
132
  validValue = "";
133
133
  }
@@ -181,7 +181,7 @@ export class NumberField extends FormAssociatedNumberField {
181
181
  super.connectedCallback();
182
182
  this.proxy.setAttribute("type", "number");
183
183
  this.validate();
184
- this.control.value = this.value;
184
+ this.syncValueToInnerControl();
185
185
  if (this.autofocus) {
186
186
  DOM.queueUpdate(() => {
187
187
  this.focus();
@@ -208,9 +208,9 @@ export class NumberField extends FormAssociatedNumberField {
208
208
  * @internal
209
209
  */
210
210
  handleTextInput() {
211
- this.control.value = this.control.value.replace(/[^0-9\-+e.]/g, "");
211
+ this.control.value = this.sanitizeInput(this.control.value);
212
212
  this.isUserInput = true;
213
- this.value = this.control.value;
213
+ this.syncValueFromInnerControl();
214
214
  }
215
215
  /**
216
216
  * Change event handler for inner control.
@@ -246,6 +246,26 @@ export class NumberField extends FormAssociatedNumberField {
246
246
  * @internal
247
247
  */
248
248
  handleBlur() {
249
+ this.syncValueToInnerControl();
250
+ }
251
+ /**
252
+ * Sanitizes the text input by the user.
253
+ * @param inputText The user-input text to sanitize
254
+ * @returns The sanitized text, containing only valid characters for a number field
255
+ */
256
+ sanitizeInput(inputText) {
257
+ return inputText.replace(/[^0-9\-+e.]/g, "");
258
+ }
259
+ /**
260
+ * Synchronizes the value from the input control in the shadow DOM to the host component.
261
+ */
262
+ syncValueFromInnerControl() {
263
+ this.value = this.control.value;
264
+ }
265
+ /**
266
+ * Synchronizes the value from the host component to the input control in the shadow DOM.
267
+ */
268
+ syncValueToInnerControl() {
249
269
  this.control.value = this.value;
250
270
  }
251
271
  }
@@ -6152,6 +6152,20 @@ export declare class NumberField extends FormAssociatedNumberField {
6152
6152
  * @internal
6153
6153
  */
6154
6154
  handleBlur(): void;
6155
+ /**
6156
+ * Sanitizes the text input by the user.
6157
+ * @param inputText The user-input text to sanitize
6158
+ * @returns The sanitized text, containing only valid characters for a number field
6159
+ */
6160
+ protected sanitizeInput(inputText: string): string;
6161
+ /**
6162
+ * Synchronizes the value from the input control in the shadow DOM to the host component.
6163
+ */
6164
+ protected syncValueFromInnerControl(): void;
6165
+ /**
6166
+ * Synchronizes the value from the host component to the input control in the shadow DOM.
6167
+ */
6168
+ protected syncValueToInnerControl(): void;
6155
6169
  }
6156
6170
 
6157
6171
  /**
@@ -5513,7 +5513,7 @@ function isHTMLElement(...args) {
5513
5513
  * Returns all displayed elements inside of a root node that match a provided selector
5514
5514
  */
5515
5515
  function getDisplayedNodes(rootNode, selector) {
5516
- if (!rootNode || false || !isHTMLElement(rootNode)) {
5516
+ if (!rootNode || !selector || !isHTMLElement(rootNode)) {
5517
5517
  return;
5518
5518
  }
5519
5519
  const nodes = Array.from(rootNode.querySelectorAll(selector));
@@ -16116,7 +16116,7 @@ class NumberField extends FormAssociatedNumberField {
16116
16116
  return;
16117
16117
  }
16118
16118
  if (this.control && !this.isUserInput) {
16119
- this.control.value = this.value;
16119
+ this.syncValueToInnerControl();
16120
16120
  }
16121
16121
  super.valueChanged(previous, this.value);
16122
16122
  if (previous !== undefined && !this.isUserInput) {
@@ -16137,7 +16137,7 @@ class NumberField extends FormAssociatedNumberField {
16137
16137
  */
16138
16138
  getValidValue(value) {
16139
16139
  var _a, _b;
16140
- let validValue = parseFloat(parseFloat(value).toPrecision(12));
16140
+ let validValue = parseFloat(parseFloat(value).toPrecision(15));
16141
16141
  if (isNaN(validValue)) {
16142
16142
  validValue = "";
16143
16143
  }
@@ -16191,7 +16191,7 @@ class NumberField extends FormAssociatedNumberField {
16191
16191
  super.connectedCallback();
16192
16192
  this.proxy.setAttribute("type", "number");
16193
16193
  this.validate();
16194
- this.control.value = this.value;
16194
+ this.syncValueToInnerControl();
16195
16195
  if (this.autofocus) {
16196
16196
  DOM.queueUpdate(() => {
16197
16197
  this.focus();
@@ -16218,9 +16218,9 @@ class NumberField extends FormAssociatedNumberField {
16218
16218
  * @internal
16219
16219
  */
16220
16220
  handleTextInput() {
16221
- this.control.value = this.control.value.replace(/[^0-9\-+e.]/g, "");
16221
+ this.control.value = this.sanitizeInput(this.control.value);
16222
16222
  this.isUserInput = true;
16223
- this.value = this.control.value;
16223
+ this.syncValueFromInnerControl();
16224
16224
  }
16225
16225
  /**
16226
16226
  * Change event handler for inner control.
@@ -16256,6 +16256,26 @@ class NumberField extends FormAssociatedNumberField {
16256
16256
  * @internal
16257
16257
  */
16258
16258
  handleBlur() {
16259
+ this.syncValueToInnerControl();
16260
+ }
16261
+ /**
16262
+ * Sanitizes the text input by the user.
16263
+ * @param inputText The user-input text to sanitize
16264
+ * @returns The sanitized text, containing only valid characters for a number field
16265
+ */
16266
+ sanitizeInput(inputText) {
16267
+ return inputText.replace(/[^0-9\-+e.]/g, "");
16268
+ }
16269
+ /**
16270
+ * Synchronizes the value from the input control in the shadow DOM to the host component.
16271
+ */
16272
+ syncValueFromInnerControl() {
16273
+ this.value = this.control.value;
16274
+ }
16275
+ /**
16276
+ * Synchronizes the value from the host component to the input control in the shadow DOM.
16277
+ */
16278
+ syncValueToInnerControl() {
16259
16279
  this.control.value = this.value;
16260
16280
  }
16261
16281
  }
@@ -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={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},e));const i=t.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,i){let s=t[e];return void 0===s&&(s=i?t[e]=i():null),s}},e))}const s=Object.freeze([]);function o(){const t=new WeakMap;return function(e){let i=t.get(e);if(void 0===i){let s=Reflect.getPrototypeOf(e);for(;void 0===i&&null!==s;)i=t.get(s),s=Reflect.getPrototypeOf(s);i=void 0===i?[]:i.slice(0),t.set(e,i)}return i}}const n=t.FAST.getById(1,(()=>{const e=[],i=[];function s(){if(i.length)throw i.shift()}function o(t){try{t.call()}catch(t){i.push(t),setTimeout(s,0)}}function n(){let t=0;for(;t<e.length;)if(o(e[t]),t++,t>1024){for(let i=0,s=e.length-t;i<s;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(i){e.length<1&&t.requestAnimationFrame(n),e.push(i)},process:n})})),r=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let a=r;const l=`fast-${Math.random().toString(36).substring(2,8)}`,h=`${l}{`,d=`}${l}`,c=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(a!==r)throw new Error("The HTML policy can only be set once.");a=t},createHTML:t=>a.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${l}:`,"")),createInterpolationPlaceholder:t=>`${h}${t}${d}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate:n.enqueue,processUpdates:n.process,nextUpdate:()=>new Promise(n.enqueue),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)});class u{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.source;if(void 0===e){const e=this.sub1,s=this.sub2;void 0!==e&&e.handleChange(i,t),void 0!==s&&s.handleChange(i,t)}else for(let s=0,o=e.length;s<o;++s)e[s].handleChange(i,t)}}class p{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 u(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new u(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 m=i.getById(2,(()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=c.queueUpdate;let s,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new p(t))),i}const a=o();class l{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,s=t[i];if(s!==e){t[i]=e;const o=t[this.callback];"function"==typeof o&&o.call(t,s,e),r(t).notify(this.name)}}}class h extends u{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=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=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=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(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}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new h(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})}));function v(t,e){m.defineProperty(t,e)}function f(t,e,i){return Object.assign({},i,{get:function(){return m.trackVolatile(),i.get.apply(this)}})}const g=i.getById(3,(()=>{let t=null;return{get:()=>t,set(e){t=e}}}));class b{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return g.get()}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}static setEvent(t){g.set(t)}}m.defineProperty(b.prototype,"index"),m.defineProperty(b.prototype,"length");const y=Object.seal(new b);class C{constructor(){this.targetIndex=0}}class x extends C{constructor(){super(...arguments),this.createPlaceholder=c.createInterpolationPlaceholder}}class w extends C{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return c.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function $(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=m.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function k(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function I(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function E(){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 T(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function O(t){c.setAttribute(this.target,this.targetName,t)}function S(t){c.setBooleanAttribute(this.target,this.targetName,t)}function R(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 A(t){this.target[this.targetName]=t}function D(t){const e=this.classVersions||Object.create(null),i=this.target;let s=this.version||0;if(null!=t&&t.length){const o=t.split(/\s+/);for(let t=0,n=o.length;t<n;++t){const n=o[t];""!==n&&(e[n]=s,i.classList.add(n))}}if(this.classVersions=e,this.version=s+1,0!==s){s-=1;for(const t in e)e[t]===s&&i.classList.remove(t)}}class F extends x{constructor(t){super(),this.binding=t,this.bind=$,this.unbind=I,this.updateTarget=O,this.isBindingVolatile=m.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=A,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>c.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=S;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=k,this.unbind=T;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=D)}}targetAtContent(){this.updateTarget=R,this.unbind=E}createBehavior(t){return new L(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class L{constructor(t,e,i,s,o,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=s,this.unbind=o,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){b.setEvent(t);const e=this.binding(this.source,this.context);b.setEvent(null),!0!==e&&t.preventDefault()}}let P=null;class M{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){P=this}static borrow(t){const e=P||new M;return e.directives=t,e.reset(),P=null,e}}function V(t){if(1===t.length)return t[0];let e;const i=t.length,s=t.map((t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding))),o=new F(((t,e)=>{let o="";for(let n=0;n<i;++n)o+=s[n](t,e);return o}));return o.targetName=e,o}const H=d.length;function z(t,e){const i=e.split(h);if(1===i.length)return null;const s=[];for(let e=0,o=i.length;e<o;++e){const o=i[e],n=o.indexOf(d);let r;if(-1===n)r=o;else{const e=parseInt(o.substring(0,n));s.push(t.directives[e]),r=o.substring(n+H)}""!==r&&s.push(r)}return s}function N(t,e,i=!1){const s=e.attributes;for(let o=0,n=s.length;o<n;++o){const r=s[o],a=r.value,l=z(t,a);let h=null;null===l?i&&(h=new F((()=>a)),h.targetName=r.name):h=V(l),null!==h&&(e.removeAttributeNode(r),o--,n--,t.addFactory(h))}}function B(t,e,i){const s=z(t,e.textContent);if(null!==s){let o=e;for(let n=0,r=s.length;n<r;++n){const r=s[n],a=0===n?e:o.parentNode.insertBefore(document.createTextNode(""),o.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),o=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}function q(t,e){const i=t.content;document.adoptNode(i);const s=M.borrow(e);N(s,t,!0);const o=s.behaviorFactories;s.reset();const n=c.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(s.targetIndex++,r.nodeType){case 1:N(s,r);break;case 3:B(s,r,n);break;case 8:c.isMarker(r)&&s.addFactory(e[c.extractDirectiveIndexFromMarker(r)])}let a=0;(c.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=s.behaviorFactories;return s.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:o,targetOffset:a}}const U=document.createRange();class j{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=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s,o=this.firstChild;for(;o!==e;)s=o.nextSibling,i.insertBefore(o,t),o=s;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,s=this.firstChild;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,s=this.firstChild;for(;s!==e;)i=s.nextSibling,t.removeChild(s),s=i;t.removeChild(e);const o=this.behaviors,n=this.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const s=this.source;this.source=t,this.context=e;for(let o=0,n=i.length;o<n;++o){const n=i[o];n.unbind(s),n.bind(t,e)}}else{this.source=t,this.context=e;for(let s=0,o=i.length;s<o;++s)i[s].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,s=t.length;i<s;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){U.setStartBefore(t[0].firstChild),U.setEndAfter(t[t.length-1].lastChild),U.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],s=i.behaviors,o=i.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(o)}}}}class _{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=c.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=q(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,s=new Array(this.behaviorCount),o=c.createTemplateWalker(e);let n=0,r=this.targetOffset,a=o.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){s[n]=t.createBehavior(a);break}a=o.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,o=e.length;i<o;++i,++n)s[n]=e[i].createBehavior(t)}return new j(e,s)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const s=this.create(i);return s.bind(t,y),s.appendTo(e),s}}const W=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(t,...e){const i=[];let s="";for(let o=0,n=t.length-1;o<n;++o){const n=t[o];let r=e[o];if(s+=n,r instanceof _){const t=r;r=()=>t}if("function"==typeof r&&(r=new F(r)),r instanceof x){const t=W.exec(n);null!==t&&(r.targetName=t[2])}r instanceof C?(s+=r.createPlaceholder(i.length),i.push(r)):s+=r}return s+=t[t.length-1],new _(s,i)}class Y{constructor(){this.targets=new WeakSet}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 X(t){return t.map((t=>t instanceof Y?X(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function G(t){return t.map((t=>t instanceof Y?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}Y.create=(()=>{if(c.supportsAdoptedStyleSheets){const t=new Map;return e=>new et(e,t)}return t=>new st(t)})();const Q=Symbol("prependToAdoptedStyleSheets");function Z(t){const e=[],i=[];return t.forEach((t=>(t[Q]?e:i).push(t))),{prepend:e,append:i}}let J=(t,e)=>{const{prepend:i,append:s}=Z(e);t.adoptedStyleSheets=[...i,...t.adoptedStyleSheets,...s]},tt=(t,e)=>{t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t)))};if(c.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),J=(t,e)=>{const{prepend:i,append:s}=Z(e);t.adoptedStyleSheets.splice(0,0,...i),t.adoptedStyleSheets.push(...s)},tt=(t,e)=>{for(const i of e){const e=t.adoptedStyleSheets.indexOf(i);-1!==e&&t.adoptedStyleSheets.splice(e,1)}}}catch(t){}class et extends Y{get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=X(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}constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=G(t)}addStylesTo(t){J(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){tt(t,this.styleSheets),super.removeStylesFrom(t)}}let it=0;class st extends Y{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=G(t),this.styleSheets=X(t),this.styleClass="fast-style-class-"+ ++it}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let s=0;s<e.length;s++){const o=document.createElement("style");o.innerHTML=e[s],o.className=i,t.append(o)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++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 ot=Object.freeze({locate:o()}),nt={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},rt={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 at{constructor(t,e,i=e.toLowerCase(),s="reflect",o){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=o,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===s&&void 0===o&&(this.converter=nt)}setValue(t,e){const i=t[this.fieldName],s=this.converter;void 0!==s&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return m.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||c.queueUpdate((()=>{i.add(t);const s=t[this.fieldName];switch(e){case"reflect":const e=this.converter;c.setAttribute(t,this.attribute,void 0!==e?e.toView(s):s);break;case"boolean":c.setBooleanAttribute(t,this.attribute,s)}i.delete(t)}))}static collect(t,...e){const i=[];e.push(ot.locate(t));for(let s=0,o=e.length;s<o;++s){const o=e[s];if(void 0!==o)for(let e=0,s=o.length;e<s;++e){const s=o[e];"string"==typeof s?i.push(new at(t,s)):i.push(new at(t,s.property,s.attribute,s.mode,s.converter))}}return i}}function lt(t,e){let i;function s(t,e){arguments.length>1&&(i.property=e),ot.locate(t.constructor).push(i)}return arguments.length>1?(i={},void s(t,e)):(i=void 0===t?{}:t,s)}const ht={mode:"open"},dt={},ct=i.getById(4,(()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})}));class ut{get isDefined(){return!!ct.getByType(this.type)}constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=at.collect(t,e.attributes),s=new Array(i.length),o={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];s[t]=e.attribute,o[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=s,this.propertyLookup=o,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?ht:null===e.shadowOptions?void 0:Object.assign(Object.assign({},ht),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?dt:Object.assign(Object.assign({},dt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?Y.create(e.styles):e.styles instanceof Y?e.styles:Y.create([e.styles])}define(t=customElements){const e=this.type;if(ct.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,s=t.length;e<s;++e)m.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}ut.forType=ct.getByType;const pt=new WeakMap,mt={bubbles:!0,composed:!0,cancelable:!0};function vt(t){return t.shadowRoot||pt.get(t)||null}class ft extends p{get isConnected(){return m.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,m.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))}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&&pt.set(t,e)}const s=m.getAccessors(t);if(s.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,o=s.length;i<o;++i){const o=s[i].name,n=t[o];void 0!==n&&(delete t[o],e[o]=n)}}}addStyles(t){const e=vt(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=vt(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,s=[];for(let o=0;o<i;++o){const i=t[o];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),s.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].bind(t,y)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const s=t.length,o=[];for(let n=0;n<s;++n){const s=t[n];if(i.has(s)){const t=i.get(s)-1;0===t||e?i.delete(s)&&o.push(s):i.set(s,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,y);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,y);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 s=this.definition.attributeLookup[t];void 0!==s&&s.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},mt),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let s=0,o=i.length;s<o;++s){const o=i[s];t[o]=e[o]}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=vt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||c.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=ut.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new ft(t,i)}}function gt(t){return class extends t{constructor(){super(),ft.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 bt=Object.assign(gt(HTMLElement),{from:t=>gt(t),define:(t,e)=>new ut(t,e).define().type});function yt(t){return function(e){new ut(e,t).define()}}class Ct{createCSS(){return""}createBehavior(){}}function xt(t,e){const i=[];let s="";const o=[];for(let n=0,r=t.length-1;n<r;++n){s+=t[n];let r=e[n];if(r instanceof Ct){const t=r.createBehavior();r=r.createCSS(),t&&o.push(t)}r instanceof Y||r instanceof CSSStyleSheet?(""!==s.trim()&&(i.push(s),s=""),i.push(r)):s+=r}return s+=t[t.length-1],""!==s.trim()&&i.push(s),{styles:i,behaviors:o}}function wt(t,...e){const{styles:i,behaviors:s}=xt(t,e),o=Y.create(i);return s.length&&o.withBehaviors(...s),o}class $t extends Ct{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=Y.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 kt(t,...e){const{styles:i,behaviors:s}=xt(t,e);return new $t(i,s)}function It(t,e,i){return{index:t,removed:e,addedCount:i}}function Et(t,e,i,o,n,r){let a=0,l=0;const h=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let s=0;s<i;++s)if(t[s]!==e[s])return s;return i}(t,o,h)),i===t.length&&r===o.length&&(l=function(t,e,i){let s=t.length,o=e.length,n=0;for(;n<i&&t[--s]===e[--o];)n++;return n}(t,o,h-a)),n+=a,r-=l,(i-=l)-(e+=a)==0&&r-n==0)return s;if(e===i){const t=It(e,[],0);for(;n<r;)t.removed.push(o[n++]);return[t]}if(n===r)return[It(e,[],i-e)];const d=function(t){let e=t.length-1,i=t[0].length-1,s=t[e][i];const o=[];for(;e>0||i>0;){if(0===e){o.push(2),i--;continue}if(0===i){o.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===s?o.push(0):(o.push(1),s=n),e--,i--):l===r?(o.push(3),e--,s=r):(o.push(2),i--,s=a)}return o.reverse(),o}(function(t,e,i,s,o,n){const r=n-o+1,a=i-e+1,l=new Array(r);let h,d;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]===s[o+i-1]?l[i][n]=l[i-1][n-1]:(h=l[i-1][n]+1,d=l[i][n-1]+1,l[i][n]=h<d?h:d);return l}(t,e,i,o,n,r)),c=[];let u,p=e,m=n;for(let t=0;t<d.length;++t)switch(d[t]){case 0:void 0!==u&&(c.push(u),u=void 0),p++,m++;break;case 1:void 0===u&&(u=It(p,[],0)),u.addedCount++,p++,u.removed.push(o[m]),m++;break;case 2:void 0===u&&(u=It(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=It(p,[],0)),u.removed.push(o[m]),m++}return void 0!==u&&c.push(u),c}const Tt=Array.prototype.push;function Ot(t,e,i,s){const o=It(e,i,s);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const s=(a=o.index,l=o.index+o.removed.length,h=i.index,d=i.index+i.addedCount,l<h||d<a?-1:l===h||d===a?0:a<h?l<d?l-h:d-h:d<l?d-a:l-a);if(s>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,o.addedCount+=i.addedCount-s;const a=o.removed.length+i.removed.length-s;if(o.addedCount||a){let t=i.removed;if(o.index<i.index){const e=o.removed.slice(0,i.index-o.index);Tt.apply(e,t),t=e}if(o.index+o.removed.length>i.index+i.addedCount){const e=o.removed.slice(i.index+i.addedCount-o.index);Tt.apply(t,e)}o.removed=t,i.index<o.index&&(o.index=i.index)}else n=!0}else if(o.index<i.index){n=!0,t.splice(e,0,o),e++;const s=o.addedCount-o.removed.length;i.index+=s,r+=s}}var a,l,h,d;n||t.push(o)}function St(t,e){let i=[];const s=function(t){const e=[];for(let i=0,s=t.length;i<s;i++){const s=t[i];Ot(e,s.index,s.removed,s.addedCount)}return e}(e);for(let e=0,o=s.length;e<o;++e){const o=s[e];1!==o.addedCount||1!==o.removed.length?i=i.concat(Et(t,o.index,o.index+o.addedCount,o.removed,0,o.removed.length)):o.removed[0]!==t[o.index]&&i.push(o)}return i}let Rt=!1;function At(t,e){let i=t.index;const s=e.length;return i>s?i=s-t.addedCount:i<0&&(i=s+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class Dt extends u{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,c.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,c.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?St(this.source,t):Et(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}function Ft(){if(Rt)return;Rt=!0,m.setArrayObserverFactory((t=>new Dt(t)));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,s=t.reverse,o=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),s=this.$fastController;return void 0!==s&&t&&s.addSplice(It(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(At(It(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=s.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=o.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(It(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(At(It(+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(At(It(0,[],arguments.length),this)),t}}class Lt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Pt(t){return new w("fast-ref",Lt,t)}const Mt=t=>"function"==typeof t,Vt=()=>null;function Ht(t){return void 0===t?Vt:Mt(t)?t:()=>t}function zt(t,e,i){const s=Mt(t)?t:()=>t,o=Ht(e),n=Ht(i);return(t,e)=>s(t,e)?o(t,e):n(t,e)}const Nt=Object.freeze({positioning:!1,recycle:!0});function Bt(t,e,i,s){t.bind(e[i],s)}function qt(t,e,i,s){const o=Object.create(s);o.index=i,o.length=e.length,t.bind(e[i],o)}class Ut{constructor(t,e,i,s,o,n){this.location=t,this.itemsBinding=e,this.templateBinding=s,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Bt,this.itemsBindingObserver=m.binding(e,this,i),this.templateBindingObserver=m.binding(s,this,o),n.positioning&&(this.bindView=qt)}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=s);const e=this.itemsObserver,i=this.itemsObserver=m.getNotifier(this.items),o=e!==i;o&&null!==e&&e.unsubscribe(this),(o||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,s=this.bindView,o=this.items,n=this.template,r=this.options.recycle,a=[];let l=0,h=0;for(let d=0,c=t.length;d<c;++d){const c=t[d],u=c.removed;let p=0,m=c.index;const v=m+c.addedCount,f=i.splice(c.index,u.length),g=h=a.length+f.length;for(;m<v;++m){const t=i[m],d=t?t.firstChild:this.location;let c;r&&h>0?(p<=g&&f.length>0?(c=f[p],p++):(c=a[l],l++),h--):c=n.create(),i.splice(m,0,c),s(c,o,m,e),c.insertBefore(d)}f[p]&&a.push(...f.slice(p))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const s=i[t].context;s.length=e,s.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,s=this.template,o=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if(0!==r&&!t&&this.options.recycle||(j.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=s.create();n(r,e,t,i),a[t]=r,r.insertBefore(o)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=s.create();n(r,e,t,i),a.push(r),r.insertBefore(o)}const h=a.splice(t,l-t);for(t=0,r=h.length;t<r;++t)h[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class jt extends C{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=c.createBlockPlaceholder,Ft(),this.isItemsBindingVolatile=m.isVolatileBinding(t),this.isTemplateBindingVolatile=m.isVolatileBinding(e)}createBehavior(t){return new Ut(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function _t(t,e,i=Nt){return new jt(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},Nt),i))}function Wt(t){return t?function(e,i,s){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Kt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=m.getAccessors(t).some((t=>t.name===e)),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s),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 Yt extends Kt{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 w("fast-slotted",Yt,t)}class Gt extends Kt{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 w("fast-children",Gt,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)=>K`
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={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},e));const i=t.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,i){let s=t[e];return void 0===s&&(s=i?t[e]=i():null),s}},e))}const s=Object.freeze([]);function o(){const t=new WeakMap;return function(e){let i=t.get(e);if(void 0===i){let s=Reflect.getPrototypeOf(e);for(;void 0===i&&null!==s;)i=t.get(s),s=Reflect.getPrototypeOf(s);i=void 0===i?[]:i.slice(0),t.set(e,i)}return i}}const n=t.FAST.getById(1,(()=>{const e=[],i=[];function s(){if(i.length)throw i.shift()}function o(t){try{t.call()}catch(t){i.push(t),setTimeout(s,0)}}function n(){let t=0;for(;t<e.length;)if(o(e[t]),t++,t>1024){for(let i=0,s=e.length-t;i<s;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(i){e.length<1&&t.requestAnimationFrame(n),e.push(i)},process:n})})),r=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let a=r;const l=`fast-${Math.random().toString(36).substring(2,8)}`,h=`${l}{`,d=`}${l}`,c=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(a!==r)throw new Error("The HTML policy can only be set once.");a=t},createHTML:t=>a.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${l}:`,"")),createInterpolationPlaceholder:t=>`${h}${t}${d}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate:n.enqueue,processUpdates:n.process,nextUpdate:()=>new Promise(n.enqueue),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)});class u{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.source;if(void 0===e){const e=this.sub1,s=this.sub2;void 0!==e&&e.handleChange(i,t),void 0!==s&&s.handleChange(i,t)}else for(let s=0,o=e.length;s<o;++s)e[s].handleChange(i,t)}}class p{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 u(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new u(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 m=i.getById(2,(()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=c.queueUpdate;let s,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new p(t))),i}const a=o();class l{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,s=t[i];if(s!==e){t[i]=e;const o=t[this.callback];"function"==typeof o&&o.call(t,s,e),r(t).notify(this.name)}}}class h extends u{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=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=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=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(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}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new h(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})}));function v(t,e){m.defineProperty(t,e)}function f(t,e,i){return Object.assign({},i,{get:function(){return m.trackVolatile(),i.get.apply(this)}})}const g=i.getById(3,(()=>{let t=null;return{get:()=>t,set(e){t=e}}}));class b{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return g.get()}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}static setEvent(t){g.set(t)}}m.defineProperty(b.prototype,"index"),m.defineProperty(b.prototype,"length");const y=Object.seal(new b);class C{constructor(){this.targetIndex=0}}class x extends C{constructor(){super(...arguments),this.createPlaceholder=c.createInterpolationPlaceholder}}class w extends C{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return c.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function $(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=m.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function I(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function k(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function E(){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 T(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function O(t){c.setAttribute(this.target,this.targetName,t)}function S(t){c.setBooleanAttribute(this.target,this.targetName,t)}function R(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 A(t){this.target[this.targetName]=t}function D(t){const e=this.classVersions||Object.create(null),i=this.target;let s=this.version||0;if(null!=t&&t.length){const o=t.split(/\s+/);for(let t=0,n=o.length;t<n;++t){const n=o[t];""!==n&&(e[n]=s,i.classList.add(n))}}if(this.classVersions=e,this.version=s+1,0!==s){s-=1;for(const t in e)e[t]===s&&i.classList.remove(t)}}class F extends x{constructor(t){super(),this.binding=t,this.bind=$,this.unbind=k,this.updateTarget=O,this.isBindingVolatile=m.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=A,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>c.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=S;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=I,this.unbind=T;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=D)}}targetAtContent(){this.updateTarget=R,this.unbind=E}createBehavior(t){return new L(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class L{constructor(t,e,i,s,o,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=s,this.unbind=o,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){b.setEvent(t);const e=this.binding(this.source,this.context);b.setEvent(null),!0!==e&&t.preventDefault()}}let P=null;class M{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){P=this}static borrow(t){const e=P||new M;return e.directives=t,e.reset(),P=null,e}}function V(t){if(1===t.length)return t[0];let e;const i=t.length,s=t.map((t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding))),o=new F(((t,e)=>{let o="";for(let n=0;n<i;++n)o+=s[n](t,e);return o}));return o.targetName=e,o}const H=d.length;function z(t,e){const i=e.split(h);if(1===i.length)return null;const s=[];for(let e=0,o=i.length;e<o;++e){const o=i[e],n=o.indexOf(d);let r;if(-1===n)r=o;else{const e=parseInt(o.substring(0,n));s.push(t.directives[e]),r=o.substring(n+H)}""!==r&&s.push(r)}return s}function N(t,e,i=!1){const s=e.attributes;for(let o=0,n=s.length;o<n;++o){const r=s[o],a=r.value,l=z(t,a);let h=null;null===l?i&&(h=new F((()=>a)),h.targetName=r.name):h=V(l),null!==h&&(e.removeAttributeNode(r),o--,n--,t.addFactory(h))}}function B(t,e,i){const s=z(t,e.textContent);if(null!==s){let o=e;for(let n=0,r=s.length;n<r;++n){const r=s[n],a=0===n?e:o.parentNode.insertBefore(document.createTextNode(""),o.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),o=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}function q(t,e){const i=t.content;document.adoptNode(i);const s=M.borrow(e);N(s,t,!0);const o=s.behaviorFactories;s.reset();const n=c.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(s.targetIndex++,r.nodeType){case 1:N(s,r);break;case 3:B(s,r,n);break;case 8:c.isMarker(r)&&s.addFactory(e[c.extractDirectiveIndexFromMarker(r)])}let a=0;(c.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=s.behaviorFactories;return s.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:o,targetOffset:a}}const U=document.createRange();class j{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=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s,o=this.firstChild;for(;o!==e;)s=o.nextSibling,i.insertBefore(o,t),o=s;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,s=this.firstChild;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,s=this.firstChild;for(;s!==e;)i=s.nextSibling,t.removeChild(s),s=i;t.removeChild(e);const o=this.behaviors,n=this.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const s=this.source;this.source=t,this.context=e;for(let o=0,n=i.length;o<n;++o){const n=i[o];n.unbind(s),n.bind(t,e)}}else{this.source=t,this.context=e;for(let s=0,o=i.length;s<o;++s)i[s].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,s=t.length;i<s;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){U.setStartBefore(t[0].firstChild),U.setEndAfter(t[t.length-1].lastChild),U.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],s=i.behaviors,o=i.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(o)}}}}class _{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=c.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=q(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,s=new Array(this.behaviorCount),o=c.createTemplateWalker(e);let n=0,r=this.targetOffset,a=o.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){s[n]=t.createBehavior(a);break}a=o.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,o=e.length;i<o;++i,++n)s[n]=e[i].createBehavior(t)}return new j(e,s)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const s=this.create(i);return s.bind(t,y),s.appendTo(e),s}}const W=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(t,...e){const i=[];let s="";for(let o=0,n=t.length-1;o<n;++o){const n=t[o];let r=e[o];if(s+=n,r instanceof _){const t=r;r=()=>t}if("function"==typeof r&&(r=new F(r)),r instanceof x){const t=W.exec(n);null!==t&&(r.targetName=t[2])}r instanceof C?(s+=r.createPlaceholder(i.length),i.push(r)):s+=r}return s+=t[t.length-1],new _(s,i)}class Y{constructor(){this.targets=new WeakSet}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 X(t){return t.map((t=>t instanceof Y?X(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function G(t){return t.map((t=>t instanceof Y?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}Y.create=(()=>{if(c.supportsAdoptedStyleSheets){const t=new Map;return e=>new et(e,t)}return t=>new st(t)})();const Q=Symbol("prependToAdoptedStyleSheets");function Z(t){const e=[],i=[];return t.forEach((t=>(t[Q]?e:i).push(t))),{prepend:e,append:i}}let J=(t,e)=>{const{prepend:i,append:s}=Z(e);t.adoptedStyleSheets=[...i,...t.adoptedStyleSheets,...s]},tt=(t,e)=>{t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t)))};if(c.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),J=(t,e)=>{const{prepend:i,append:s}=Z(e);t.adoptedStyleSheets.splice(0,0,...i),t.adoptedStyleSheets.push(...s)},tt=(t,e)=>{for(const i of e){const e=t.adoptedStyleSheets.indexOf(i);-1!==e&&t.adoptedStyleSheets.splice(e,1)}}}catch(t){}class et extends Y{get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=X(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}constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=G(t)}addStylesTo(t){J(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){tt(t,this.styleSheets),super.removeStylesFrom(t)}}let it=0;class st extends Y{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=G(t),this.styleSheets=X(t),this.styleClass="fast-style-class-"+ ++it}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let s=0;s<e.length;s++){const o=document.createElement("style");o.innerHTML=e[s],o.className=i,t.append(o)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++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 ot=Object.freeze({locate:o()}),nt={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},rt={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 at{constructor(t,e,i=e.toLowerCase(),s="reflect",o){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=o,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===s&&void 0===o&&(this.converter=nt)}setValue(t,e){const i=t[this.fieldName],s=this.converter;void 0!==s&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return m.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||c.queueUpdate((()=>{i.add(t);const s=t[this.fieldName];switch(e){case"reflect":const e=this.converter;c.setAttribute(t,this.attribute,void 0!==e?e.toView(s):s);break;case"boolean":c.setBooleanAttribute(t,this.attribute,s)}i.delete(t)}))}static collect(t,...e){const i=[];e.push(ot.locate(t));for(let s=0,o=e.length;s<o;++s){const o=e[s];if(void 0!==o)for(let e=0,s=o.length;e<s;++e){const s=o[e];"string"==typeof s?i.push(new at(t,s)):i.push(new at(t,s.property,s.attribute,s.mode,s.converter))}}return i}}function lt(t,e){let i;function s(t,e){arguments.length>1&&(i.property=e),ot.locate(t.constructor).push(i)}return arguments.length>1?(i={},void s(t,e)):(i=void 0===t?{}:t,s)}const ht={mode:"open"},dt={},ct=i.getById(4,(()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})}));class ut{get isDefined(){return!!ct.getByType(this.type)}constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=at.collect(t,e.attributes),s=new Array(i.length),o={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];s[t]=e.attribute,o[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=s,this.propertyLookup=o,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?ht:null===e.shadowOptions?void 0:Object.assign(Object.assign({},ht),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?dt:Object.assign(Object.assign({},dt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?Y.create(e.styles):e.styles instanceof Y?e.styles:Y.create([e.styles])}define(t=customElements){const e=this.type;if(ct.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,s=t.length;e<s;++e)m.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}ut.forType=ct.getByType;const pt=new WeakMap,mt={bubbles:!0,composed:!0,cancelable:!0};function vt(t){return t.shadowRoot||pt.get(t)||null}class ft extends p{get isConnected(){return m.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,m.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))}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&&pt.set(t,e)}const s=m.getAccessors(t);if(s.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,o=s.length;i<o;++i){const o=s[i].name,n=t[o];void 0!==n&&(delete t[o],e[o]=n)}}}addStyles(t){const e=vt(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=vt(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,s=[];for(let o=0;o<i;++o){const i=t[o];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),s.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].bind(t,y)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const s=t.length,o=[];for(let n=0;n<s;++n){const s=t[n];if(i.has(s)){const t=i.get(s)-1;0===t||e?i.delete(s)&&o.push(s):i.set(s,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,y);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,y);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 s=this.definition.attributeLookup[t];void 0!==s&&s.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},mt),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let s=0,o=i.length;s<o;++s){const o=i[s];t[o]=e[o]}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=vt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||c.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=ut.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new ft(t,i)}}function gt(t){return class extends t{constructor(){super(),ft.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 bt=Object.assign(gt(HTMLElement),{from:t=>gt(t),define:(t,e)=>new ut(t,e).define().type});function yt(t){return function(e){new ut(e,t).define()}}class Ct{createCSS(){return""}createBehavior(){}}function xt(t,e){const i=[];let s="";const o=[];for(let n=0,r=t.length-1;n<r;++n){s+=t[n];let r=e[n];if(r instanceof Ct){const t=r.createBehavior();r=r.createCSS(),t&&o.push(t)}r instanceof Y||r instanceof CSSStyleSheet?(""!==s.trim()&&(i.push(s),s=""),i.push(r)):s+=r}return s+=t[t.length-1],""!==s.trim()&&i.push(s),{styles:i,behaviors:o}}function wt(t,...e){const{styles:i,behaviors:s}=xt(t,e),o=Y.create(i);return s.length&&o.withBehaviors(...s),o}class $t extends Ct{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=Y.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 It(t,...e){const{styles:i,behaviors:s}=xt(t,e);return new $t(i,s)}function kt(t,e,i){return{index:t,removed:e,addedCount:i}}function Et(t,e,i,o,n,r){let a=0,l=0;const h=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let s=0;s<i;++s)if(t[s]!==e[s])return s;return i}(t,o,h)),i===t.length&&r===o.length&&(l=function(t,e,i){let s=t.length,o=e.length,n=0;for(;n<i&&t[--s]===e[--o];)n++;return n}(t,o,h-a)),n+=a,r-=l,(i-=l)-(e+=a)===0&&r-n===0)return s;if(e===i){const t=kt(e,[],0);for(;n<r;)t.removed.push(o[n++]);return[t]}if(n===r)return[kt(e,[],i-e)];const d=function(t){let e=t.length-1,i=t[0].length-1,s=t[e][i];const o=[];for(;e>0||i>0;){if(0===e){o.push(2),i--;continue}if(0===i){o.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===s?o.push(0):(o.push(1),s=n),e--,i--):l===r?(o.push(3),e--,s=r):(o.push(2),i--,s=a)}return o.reverse(),o}(function(t,e,i,s,o,n){const r=n-o+1,a=i-e+1,l=new Array(r);let h,d;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]===s[o+i-1]?l[i][n]=l[i-1][n-1]:(h=l[i-1][n]+1,d=l[i][n-1]+1,l[i][n]=h<d?h:d);return l}(t,e,i,o,n,r)),c=[];let u,p=e,m=n;for(let t=0;t<d.length;++t)switch(d[t]){case 0:void 0!==u&&(c.push(u),u=void 0),p++,m++;break;case 1:void 0===u&&(u=kt(p,[],0)),u.addedCount++,p++,u.removed.push(o[m]),m++;break;case 2:void 0===u&&(u=kt(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=kt(p,[],0)),u.removed.push(o[m]),m++}return void 0!==u&&c.push(u),c}const Tt=Array.prototype.push;function Ot(t,e,i,s){const o=kt(e,i,s);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const s=(a=o.index,l=o.index+o.removed.length,h=i.index,d=i.index+i.addedCount,l<h||d<a?-1:l===h||d===a?0:a<h?l<d?l-h:d-h:d<l?d-a:l-a);if(s>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,o.addedCount+=i.addedCount-s;const a=o.removed.length+i.removed.length-s;if(o.addedCount||a){let t=i.removed;if(o.index<i.index){const e=o.removed.slice(0,i.index-o.index);Tt.apply(e,t),t=e}if(o.index+o.removed.length>i.index+i.addedCount){const e=o.removed.slice(i.index+i.addedCount-o.index);Tt.apply(t,e)}o.removed=t,i.index<o.index&&(o.index=i.index)}else n=!0}else if(o.index<i.index){n=!0,t.splice(e,0,o),e++;const s=o.addedCount-o.removed.length;i.index+=s,r+=s}}var a,l,h,d;n||t.push(o)}function St(t,e){let i=[];const s=function(t){const e=[];for(let i=0,s=t.length;i<s;i++){const s=t[i];Ot(e,s.index,s.removed,s.addedCount)}return e}(e);for(let e=0,o=s.length;e<o;++e){const o=s[e];1!==o.addedCount||1!==o.removed.length?i=i.concat(Et(t,o.index,o.index+o.addedCount,o.removed,0,o.removed.length)):o.removed[0]!==t[o.index]&&i.push(o)}return i}let Rt=!1;function At(t,e){let i=t.index;const s=e.length;return i>s?i=s-t.addedCount:i<0&&(i=s+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class Dt extends u{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,c.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,c.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?St(this.source,t):Et(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}function Ft(){if(Rt)return;Rt=!0,m.setArrayObserverFactory((t=>new Dt(t)));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,s=t.reverse,o=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),s=this.$fastController;return void 0!==s&&t&&s.addSplice(kt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(At(kt(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=s.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=o.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(kt(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(At(kt(+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(At(kt(0,[],arguments.length),this)),t}}class Lt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Pt(t){return new w("fast-ref",Lt,t)}const Mt=t=>"function"==typeof t,Vt=()=>null;function Ht(t){return void 0===t?Vt:Mt(t)?t:()=>t}function zt(t,e,i){const s=Mt(t)?t:()=>t,o=Ht(e),n=Ht(i);return(t,e)=>s(t,e)?o(t,e):n(t,e)}const Nt=Object.freeze({positioning:!1,recycle:!0});function Bt(t,e,i,s){t.bind(e[i],s)}function qt(t,e,i,s){const o=Object.create(s);o.index=i,o.length=e.length,t.bind(e[i],o)}class Ut{constructor(t,e,i,s,o,n){this.location=t,this.itemsBinding=e,this.templateBinding=s,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Bt,this.itemsBindingObserver=m.binding(e,this,i),this.templateBindingObserver=m.binding(s,this,o),n.positioning&&(this.bindView=qt)}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=s);const e=this.itemsObserver,i=this.itemsObserver=m.getNotifier(this.items),o=e!==i;o&&null!==e&&e.unsubscribe(this),(o||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,s=this.bindView,o=this.items,n=this.template,r=this.options.recycle,a=[];let l=0,h=0;for(let d=0,c=t.length;d<c;++d){const c=t[d],u=c.removed;let p=0,m=c.index;const v=m+c.addedCount,f=i.splice(c.index,u.length),g=h=a.length+f.length;for(;m<v;++m){const t=i[m],d=t?t.firstChild:this.location;let c;r&&h>0?(p<=g&&f.length>0?(c=f[p],p++):(c=a[l],l++),h--):c=n.create(),i.splice(m,0,c),s(c,o,m,e),c.insertBefore(d)}f[p]&&a.push(...f.slice(p))}for(let t=l,e=a.length;t<e;++t)a[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const s=i[t].context;s.length=e,s.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,s=this.template,o=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if(0!==r&&!t&&this.options.recycle||(j.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=s.create();n(r,e,t,i),a[t]=r,r.insertBefore(o)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=s.create();n(r,e,t,i),a.push(r),r.insertBefore(o)}const h=a.splice(t,l-t);for(t=0,r=h.length;t<r;++t)h[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class jt extends C{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=c.createBlockPlaceholder,Ft(),this.isItemsBindingVolatile=m.isVolatileBinding(t),this.isTemplateBindingVolatile=m.isVolatileBinding(e)}createBehavior(t){return new Ut(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function _t(t,e,i=Nt){return new jt(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},Nt),i))}function Wt(t){return t?function(e,i,s){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Kt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=m.getAccessors(t).some((t=>t.name===e)),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s),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 Yt extends Kt{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 w("fast-slotted",Yt,t)}class Gt extends Kt{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 w("fast-children",Gt,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)=>K`
2
2
  <span
3
3
  part="end"
4
4
  ${Pt("endContainer")}
@@ -80,12 +80,12 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
80
80
  <slot></slot>
81
81
  </div>
82
82
  </template>
83
- `;function oe(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}"function"==typeof SuppressedError&&SuppressedError;const ne=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 s=ne.get(i);void 0===s&&ne.set(i,s=new Map),s.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=ne.get(e);if(void 0!==i)return i.get(t)});class re{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,qe(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:s}=this;return this.container=this.key=void 0,i.registerResolver(s,new Re(s,t,e))}}function ae(t){const e=t.slice(),i=Object.keys(t),s=i.length;let o;for(let n=0;n<s;++n)o=i[n],Ge(o)||(e[o]=t[o]);return e}const le=Object.freeze({none(t){throw Error(`${t.toString()} not registered, did you forget to add @singleton()?`)},singleton:t=>new Re(t,1,t),transient:t=>new Re(t,2,t)}),he=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:le.singleton})}),de=new Map;function ce(t){return e=>Reflect.getOwnMetadata(t,e)}let ue=null;const pe=Object.freeze({createContainer:t=>new Ne(null,Object.assign({},he.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:pe.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(He,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||pe.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new Ne(t,Object.assign({},he.default,e,{parentLocator:pe.findParentContainer})):ue||(ue=new Ne(null,Object.assign({},he.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ce("design:paramtypes"),getAnnotationParamtypes:ce("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=de.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=pe.getDesignParamtypes(t),s=pe.getAnnotationParamtypes(t);if(void 0===i)if(void 0===s){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?ae(pe.getDependencies(i)):[]}else e=ae(s);else if(void 0===s)e=ae(i);else{e=ae(i);let t,o=s.length;for(let i=0;i<o;++i)t=s[i],void 0!==t&&(e[i]=t);const n=Object.keys(s);let r;o=n.length;for(let t=0;t<o;++t)r=n[t],Ge(r)||(e[r]=s[r])}}else e=ae(i);de.set(t,e)}return e},defineProperty(t,e,i,s=!1){const o=`$di_${e}`;Reflect.defineProperty(t,e,{get:function(){let t=this[o];if(void 0===t){const n=this instanceof HTMLElement?pe.findResponsibleContainer(this):pe.getOrCreateDOMContainer();if(t=n.get(i),this[o]=t,s&&this instanceof bt){const s=this.$fastController,n=()=>{pe.findResponsibleContainer(this).get(i)!==this[o]&&(this[o]=t,s.notify(e))};s.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,s="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||We,o="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)pe.defineProperty(t,e,n,o);else{pe.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==s?"(anonymous)":s,null!=i&&(n.register=function(t,e){return i(new re(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,s){if("number"==typeof s){const i=pe.getOrCreateAnnotationParamTypes(e),o=t[0];void 0!==o&&(i[s]=o)}else if(i)pe.defineProperty(e,i,t[0]);else{const i=s?pe.getOrCreateAnnotationParamTypes(s.value):pe.getOrCreateAnnotationParamTypes(e);let o;for(let e=0;e<t.length;++e)o=t[e],void 0!==o&&(i[e]=o)}},transient:t=>(t.register=function(e){return Ue.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=Ce)=>(t.register=function(e){return Ue.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),me=pe.createInterface("Container"),ve=me;function fe(t){return function(e){const i=function(t,e,s){pe.inject(i)(t,e,s)};return i.$isResolver=!0,i.resolve=function(i,s){return t(e,i,s)},i}}const ge=pe.inject;function be(t){return pe.transient(t)}function ye(t){return null==t?be:be(t)}const Ce={scoped:!1};function xe(t){return"function"==typeof t?pe.singleton(t):function(e){return pe.singleton(e,t)}}const we=($e=(t,e,i,s)=>i.getAll(t,s),function(t,e){e=!!e;const i=function(t,e,s){pe.inject(i)(t,e,s)};return i.$isResolver=!0,i.resolve=function(i,s){return $e(t,i,s,e)},i});var $e;const ke=fe(((t,e,i)=>()=>i.get(t))),Ie=fe(((t,e,i)=>i.has(t,!0)?i.get(t):void 0));function Ee(t,e,i){pe.inject(Ee)(t,e,i)}Ee.$isResolver=!0,Ee.resolve=()=>{};const Te=fe(((t,e,i)=>{const s=Se(t,e),o=new Re(t,0,s);return i.registerResolver(t,o),s})),Oe=fe(((t,e,i)=>Se(t,e)));function Se(t,e){return e.getFactory(t).construct(e)}class Re{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,s;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(s=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!==s?s:null;default:return null}}}function Ae(t){return this.get(t)}function De(t,e){return e(t)}class Fe{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(Ae,t)):new this.Type(...this.dependencies.map(Ae,t),...e),null==this.transformers?i:this.transformers.reduce(De,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const Le={$isResolver:!0,resolve:(t,e)=>e};function Pe(t){return"function"==typeof t.register}function Me(t){return function(t){return Pe(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const Ve=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"]),He="__DI_LOCATE_PARENT__",ze=new Map;class Ne{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}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(me,Le),t instanceof Node&&t.addEventListener(He,(t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())}))}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,s,o,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Ke(e))if(Pe(e))e.register(this,r);else if(void 0!==e.prototype)Ue.singleton(e,e).register(this);else for(i=Object.keys(e),o=0,n=i.length;o<n;++o)s=e[i[o]],Ke(s)&&(Pe(s)?s.register(this,r):this.register(s));return--this.registerDepth,this}registerResolver(t,e){je(t);const i=this.resolvers,s=i.get(t);return null==s?i.set(t,e):s instanceof Re&&4===s.strategy?s.state.push(e):i.set(t,new Re(t,4,[s,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(je(t),void 0!==t.resolve)return t;let i,s=this;for(;null!=s;){if(i=s.resolvers.get(t),null!=i)return i;if(null==s.parent){const i=Me(t)?this:s;return e?this.jitRegister(t,i):null}s=s.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(je(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 s=Me(t)?this:i;return e=this.jitRegister(t,s),e.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){je(t);const i=this;let o,n=i;if(e){let e=s;for(;null!=n;)o=n.resolvers.get(t),null!=o&&(e=e.concat(_e(o,n,i))),n=n.parent;return e}for(;null!=n;){if(o=n.resolvers.get(t),null!=o)return _e(o,n,i);if(n=n.parent,null==n)return s}return s}getFactory(t){let e=ze.get(t);if(void 0===e){if(Ye(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.`);ze.set(t,e=new Fe(t,pe.getDependencies(t)))}return e}registerFactory(t,e){ze.set(t,e)}createChild(t){return new Ne(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(Ve.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(Pe(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 Be=new WeakMap;function qe(t){return function(e,i,s){if(Be.has(s))return Be.get(s);const o=t(e,i,s);return Be.set(s,o),o}}const Ue=Object.freeze({instance:(t,e)=>new Re(t,0,e),singleton:(t,e)=>new Re(t,1,e),transient:(t,e)=>new Re(t,2,e),callback:(t,e)=>new Re(t,3,e),cachedCallback:(t,e)=>new Re(t,3,qe(e)),aliasTo:(t,e)=>new Re(e,5,t)});function je(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 _e(t,e,i){if(t instanceof Re&&4===t.strategy){const s=t.state;let o=s.length;const n=new Array(o);for(;o--;)n[o]=s[o].resolve(e,i);return n}return[t.resolve(e,i)]}const We="(anonymous)";function Ke(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ye=function(){const t=new WeakMap;let e=!1,i="",s=0;return function(o){return e=t.get(o),void 0===e&&(i=o.toString(),s=i.length,e=s>=29&&s<=100&&125===i.charCodeAt(s-1)&&i.charCodeAt(s-2)<=32&&93===i.charCodeAt(s-3)&&101===i.charCodeAt(s-4)&&100===i.charCodeAt(s-5)&&111===i.charCodeAt(s-6)&&99===i.charCodeAt(s-7)&&32===i.charCodeAt(s-8)&&101===i.charCodeAt(s-9)&&118===i.charCodeAt(s-10)&&105===i.charCodeAt(s-11)&&116===i.charCodeAt(s-12)&&97===i.charCodeAt(s-13)&&110===i.charCodeAt(s-14)&&88===i.charCodeAt(s-15),t.set(o,e)),e}}(),Xe={};function Ge(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Xe[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Xe[t]=!1;let s=0;for(let e=0;e<i;++e)if(s=t.charCodeAt(e),0===e&&48===s&&i>1||s<48||s>57)return Xe[t]=!1;return Xe[t]=!0}default:return!1}}function Qe(t){return`${t.toLowerCase()}:presentation`}const Ze=new Map,Je=Object.freeze({define(t,e,i){const s=Qe(t);void 0===Ze.get(s)?Ze.set(s,e):Ze.set(s,!1),i.register(Ue.instance(s,e))},forTag(t,e){const i=Qe(t),s=Ze.get(i);if(!1===s){return pe.findResponsibleContainer(e).get(i)}return s||null}});class ti{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?Y.create(e):e instanceof Y?e:Y.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class ei extends bt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Je.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 si(this===ei?class extends ei{}:this,t,e)}}function ii(t,e,i){return"function"==typeof t?t(e,i):t}oe([v],ei.prototype,"template",void 0),oe([v],ei.prototype,"styles",void 0);class si{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,s=this.overrideDefinition,o=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new ti(ii(i.template,t,i),ii(i.styles,t,i));t.definePresentation(e);let o=ii(i.shadowOptions,t,i);t.shadowRootMode&&(o?s.shadowOptions||(o.mode=t.shadowRootMode):null!==o&&(o={mode:t.shadowRootMode})),t.defineElement({elementOptions:ii(i.elementOptions,t,i),shadowOptions:o,attributes:ii(i.attributes,t,i)})}})}}function oi(t,...e){const i=ot.locate(t);e.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}));ot.locate(e).forEach((t=>i.push(t)))}))}class ni extends ei{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}oe([lt({attribute:"heading-level",mode:"fromView",converter:rt})],ni.prototype,"headinglevel",void 0),oe([lt({mode:"boolean"})],ni.prototype,"expanded",void 0),oe([lt],ni.prototype,"id",void 0),oi(ni,Zt);const ri=(t,e)=>K`
83
+ `;function oe(t,e,i,s){var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}"function"==typeof SuppressedError&&SuppressedError;const ne=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 s=ne.get(i);void 0===s&&ne.set(i,s=new Map),s.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=ne.get(e);if(void 0!==i)return i.get(t)});class re{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,qe(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:s}=this;return this.container=this.key=void 0,i.registerResolver(s,new Re(s,t,e))}}function ae(t){const e=t.slice(),i=Object.keys(t),s=i.length;let o;for(let n=0;n<s;++n)o=i[n],Ge(o)||(e[o]=t[o]);return e}const le=Object.freeze({none(t){throw Error(`${t.toString()} not registered, did you forget to add @singleton()?`)},singleton:t=>new Re(t,1,t),transient:t=>new Re(t,2,t)}),he=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:le.singleton})}),de=new Map;function ce(t){return e=>Reflect.getOwnMetadata(t,e)}let ue=null;const pe=Object.freeze({createContainer:t=>new Ne(null,Object.assign({},he.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:pe.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(He,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||pe.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new Ne(t,Object.assign({},he.default,e,{parentLocator:pe.findParentContainer})):ue||(ue=new Ne(null,Object.assign({},he.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ce("design:paramtypes"),getAnnotationParamtypes:ce("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=de.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=pe.getDesignParamtypes(t),s=pe.getAnnotationParamtypes(t);if(void 0===i)if(void 0===s){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?ae(pe.getDependencies(i)):[]}else e=ae(s);else if(void 0===s)e=ae(i);else{e=ae(i);let t,o=s.length;for(let i=0;i<o;++i)t=s[i],void 0!==t&&(e[i]=t);const n=Object.keys(s);let r;o=n.length;for(let t=0;t<o;++t)r=n[t],Ge(r)||(e[r]=s[r])}}else e=ae(i);de.set(t,e)}return e},defineProperty(t,e,i,s=!1){const o=`$di_${e}`;Reflect.defineProperty(t,e,{get:function(){let t=this[o];if(void 0===t){const n=this instanceof HTMLElement?pe.findResponsibleContainer(this):pe.getOrCreateDOMContainer();if(t=n.get(i),this[o]=t,s&&this instanceof bt){const s=this.$fastController,n=()=>{pe.findResponsibleContainer(this).get(i)!==this[o]&&(this[o]=t,s.notify(e))};s.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,s="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||We,o="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)pe.defineProperty(t,e,n,o);else{pe.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==s?"(anonymous)":s,null!=i&&(n.register=function(t,e){return i(new re(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,s){if("number"==typeof s){const i=pe.getOrCreateAnnotationParamTypes(e),o=t[0];void 0!==o&&(i[s]=o)}else if(i)pe.defineProperty(e,i,t[0]);else{const i=s?pe.getOrCreateAnnotationParamTypes(s.value):pe.getOrCreateAnnotationParamTypes(e);let o;for(let e=0;e<t.length;++e)o=t[e],void 0!==o&&(i[e]=o)}},transient:t=>(t.register=function(e){return Ue.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=Ce)=>(t.register=function(e){return Ue.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),me=pe.createInterface("Container"),ve=me;function fe(t){return function(e){const i=function(t,e,s){pe.inject(i)(t,e,s)};return i.$isResolver=!0,i.resolve=function(i,s){return t(e,i,s)},i}}const ge=pe.inject;function be(t){return pe.transient(t)}function ye(t){return null==t?be:be(t)}const Ce={scoped:!1};function xe(t){return"function"==typeof t?pe.singleton(t):function(e){return pe.singleton(e,t)}}const we=($e=(t,e,i,s)=>i.getAll(t,s),function(t,e){e=!!e;const i=function(t,e,s){pe.inject(i)(t,e,s)};return i.$isResolver=!0,i.resolve=function(i,s){return $e(t,i,s,e)},i});var $e;const Ie=fe(((t,e,i)=>()=>i.get(t))),ke=fe(((t,e,i)=>i.has(t,!0)?i.get(t):void 0));function Ee(t,e,i){pe.inject(Ee)(t,e,i)}Ee.$isResolver=!0,Ee.resolve=()=>{};const Te=fe(((t,e,i)=>{const s=Se(t,e),o=new Re(t,0,s);return i.registerResolver(t,o),s})),Oe=fe(((t,e,i)=>Se(t,e)));function Se(t,e){return e.getFactory(t).construct(e)}class Re{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,s;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(s=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!==s?s:null;default:return null}}}function Ae(t){return this.get(t)}function De(t,e){return e(t)}class Fe{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(Ae,t)):new this.Type(...this.dependencies.map(Ae,t),...e),null==this.transformers?i:this.transformers.reduce(De,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const Le={$isResolver:!0,resolve:(t,e)=>e};function Pe(t){return"function"==typeof t.register}function Me(t){return function(t){return Pe(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const Ve=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"]),He="__DI_LOCATE_PARENT__",ze=new Map;class Ne{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}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(me,Le),t instanceof Node&&t.addEventListener(He,(t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())}))}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,s,o,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Ke(e))if(Pe(e))e.register(this,r);else if(void 0!==e.prototype)Ue.singleton(e,e).register(this);else for(i=Object.keys(e),o=0,n=i.length;o<n;++o)s=e[i[o]],Ke(s)&&(Pe(s)?s.register(this,r):this.register(s));return--this.registerDepth,this}registerResolver(t,e){je(t);const i=this.resolvers,s=i.get(t);return null==s?i.set(t,e):s instanceof Re&&4===s.strategy?s.state.push(e):i.set(t,new Re(t,4,[s,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(je(t),void 0!==t.resolve)return t;let i,s=this;for(;null!=s;){if(i=s.resolvers.get(t),null!=i)return i;if(null==s.parent){const i=Me(t)?this:s;return e?this.jitRegister(t,i):null}s=s.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(je(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 s=Me(t)?this:i;return e=this.jitRegister(t,s),e.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){je(t);const i=this;let o,n=i;if(e){let e=s;for(;null!=n;)o=n.resolvers.get(t),null!=o&&(e=e.concat(_e(o,n,i))),n=n.parent;return e}for(;null!=n;){if(o=n.resolvers.get(t),null!=o)return _e(o,n,i);if(n=n.parent,null==n)return s}return s}getFactory(t){let e=ze.get(t);if(void 0===e){if(Ye(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.`);ze.set(t,e=new Fe(t,pe.getDependencies(t)))}return e}registerFactory(t,e){ze.set(t,e)}createChild(t){return new Ne(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(Ve.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(Pe(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 Be=new WeakMap;function qe(t){return function(e,i,s){if(Be.has(s))return Be.get(s);const o=t(e,i,s);return Be.set(s,o),o}}const Ue=Object.freeze({instance:(t,e)=>new Re(t,0,e),singleton:(t,e)=>new Re(t,1,e),transient:(t,e)=>new Re(t,2,e),callback:(t,e)=>new Re(t,3,e),cachedCallback:(t,e)=>new Re(t,3,qe(e)),aliasTo:(t,e)=>new Re(e,5,t)});function je(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 _e(t,e,i){if(t instanceof Re&&4===t.strategy){const s=t.state;let o=s.length;const n=new Array(o);for(;o--;)n[o]=s[o].resolve(e,i);return n}return[t.resolve(e,i)]}const We="(anonymous)";function Ke(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ye=function(){const t=new WeakMap;let e=!1,i="",s=0;return function(o){return e=t.get(o),void 0===e&&(i=o.toString(),s=i.length,e=s>=29&&s<=100&&125===i.charCodeAt(s-1)&&i.charCodeAt(s-2)<=32&&93===i.charCodeAt(s-3)&&101===i.charCodeAt(s-4)&&100===i.charCodeAt(s-5)&&111===i.charCodeAt(s-6)&&99===i.charCodeAt(s-7)&&32===i.charCodeAt(s-8)&&101===i.charCodeAt(s-9)&&118===i.charCodeAt(s-10)&&105===i.charCodeAt(s-11)&&116===i.charCodeAt(s-12)&&97===i.charCodeAt(s-13)&&110===i.charCodeAt(s-14)&&88===i.charCodeAt(s-15),t.set(o,e)),e}}(),Xe={};function Ge(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Xe[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Xe[t]=!1;let s=0;for(let e=0;e<i;++e)if(s=t.charCodeAt(e),0===e&&48===s&&i>1||s<48||s>57)return Xe[t]=!1;return Xe[t]=!0}default:return!1}}function Qe(t){return`${t.toLowerCase()}:presentation`}const Ze=new Map,Je=Object.freeze({define(t,e,i){const s=Qe(t);void 0===Ze.get(s)?Ze.set(s,e):Ze.set(s,!1),i.register(Ue.instance(s,e))},forTag(t,e){const i=Qe(t),s=Ze.get(i);if(!1===s){return pe.findResponsibleContainer(e).get(i)}return s||null}});class ti{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?Y.create(e):e instanceof Y?e:Y.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class ei extends bt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Je.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 si(this===ei?class extends ei{}:this,t,e)}}function ii(t,e,i){return"function"==typeof t?t(e,i):t}oe([v],ei.prototype,"template",void 0),oe([v],ei.prototype,"styles",void 0);class si{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,s=this.overrideDefinition,o=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new ti(ii(i.template,t,i),ii(i.styles,t,i));t.definePresentation(e);let o=ii(i.shadowOptions,t,i);t.shadowRootMode&&(o?s.shadowOptions||(o.mode=t.shadowRootMode):null!==o&&(o={mode:t.shadowRootMode})),t.defineElement({elementOptions:ii(i.elementOptions,t,i),shadowOptions:o,attributes:ii(i.attributes,t,i)})}})}}function oi(t,...e){const i=ot.locate(t);e.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}));ot.locate(e).forEach((t=>i.push(t)))}))}class ni extends ei{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}oe([lt({attribute:"heading-level",mode:"fromView",converter:rt})],ni.prototype,"headinglevel",void 0),oe([lt({mode:"boolean"})],ni.prototype,"expanded",void 0),oe([lt],ni.prototype,"id",void 0),oi(ni,Zt);const ri=(t,e)=>K`
84
84
  <template>
85
85
  <slot ${Xt({property:"accordionItems",filter:Wt()})}></slot>
86
86
  <slot name="item" part="item" ${Xt("accordionItems")}></slot>
87
87
  </template>
88
- `,ai="horizontal",li="vertical";function hi(...t){return t.every((t=>t instanceof HTMLElement))}let di;const ci="focus",ui="focusin",pi="focusout",mi="keydown",vi="resize",fi="scroll";var gi;!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"}(gi||(gi={}));const bi="ArrowDown",yi="ArrowLeft",Ci="ArrowRight",xi="ArrowUp",wi="Enter",$i="Escape",ki="Home",Ii="End",Ei=" ",Ti="Tab",Oi={ArrowDown:bi,ArrowLeft:yi,ArrowRight:Ci,ArrowUp:xi};var Si;function Ri(t,e,i){return Math.min(Math.max(i,t),e)}function Ai(t,e,i=0){return[e,i]=[e,i].sort(((t,e)=>t-e)),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(Si||(Si={}));let Di=0;function Fi(t=""){return`${t}${Di++}`}const Li={single:"single",multi:"multi"};class Pi extends ei{constructor(){super(...arguments),this.expandmode=Li.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach(((t,e)=>{t instanceof ni&&(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=>{if(t.defaultPrevented||t.target!==t.currentTarget)return;t.preventDefault();const e=t.target;this.activeid=e.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 xi:t.preventDefault(),this.adjust(-1);break;case bi:t.preventDefault(),this.adjust(1);break;case ki:this.activeItemIndex=0,this.focusItem();break;case Ii: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===Li.single}adjust(t){var e,i,s;this.activeItemIndex=(e=0,i=this.accordionItems.length-1,(s=this.activeItemIndex+t)<e?i:s>i?e:s),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof ni&&t.expandbutton.focus()}}oe([lt({attribute:"expand-mode"})],Pi.prototype,"expandmode",void 0),oe([v],Pi.prototype,"accordionItems",void 0);const Mi=(t,e)=>K`
88
+ `,ai="horizontal",li="vertical";function hi(...t){return t.every((t=>t instanceof HTMLElement))}let di;const ci="focus",ui="focusin",pi="focusout",mi="keydown",vi="resize",fi="scroll";var gi;!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"}(gi||(gi={}));const bi="ArrowDown",yi="ArrowLeft",Ci="ArrowRight",xi="ArrowUp",wi="Enter",$i="Escape",Ii="Home",ki="End",Ei=" ",Ti="Tab",Oi={ArrowDown:bi,ArrowLeft:yi,ArrowRight:Ci,ArrowUp:xi};var Si;function Ri(t,e,i){return Math.min(Math.max(i,t),e)}function Ai(t,e,i=0){return[e,i]=[e,i].sort(((t,e)=>t-e)),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(Si||(Si={}));let Di=0;function Fi(t=""){return`${t}${Di++}`}const Li={single:"single",multi:"multi"};class Pi extends ei{constructor(){super(...arguments),this.expandmode=Li.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach(((t,e)=>{t instanceof ni&&(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=>{if(t.defaultPrevented||t.target!==t.currentTarget)return;t.preventDefault();const e=t.target;this.activeid=e.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 xi:t.preventDefault(),this.adjust(-1);break;case bi:t.preventDefault(),this.adjust(1);break;case Ii:this.activeItemIndex=0,this.focusItem();break;case ki: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===Li.single}adjust(t){var e,i,s;this.activeItemIndex=(e=0,i=this.accordionItems.length-1,(s=this.activeItemIndex+t)<e?i:s>i?e:s),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof ni&&t.expandbutton.focus()}}oe([lt({attribute:"expand-mode"})],Pi.prototype,"expandmode",void 0),oe([v],Pi.prototype,"accordionItems",void 0);const Mi=(t,e)=>K`
89
89
  <a
90
90
  class="control"
91
91
  part="control"
@@ -222,7 +222,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
222
222
  </span>
223
223
  ${Jt(0,e)}
224
224
  </button>
225
- `,ns="form-associated-proxy",rs="ElementInternals",as=rs in window&&"setFormValue"in window[rs].prototype,ls=new WeakMap;function hs(t){const e=class extends t{static get formAssociated(){return as}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 s}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),c.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),c.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!as)return null;let t=ls.get(this);return t||(t=this.attachInternals(),ls.set(this,t)),t}constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}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(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach((t=>this.proxy.removeEventListener(t,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}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",ns),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ns)),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(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){if(t.key===wi)if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}stopPropagation(t){t.stopPropagation()}};return lt({mode:"boolean"})(e.prototype,"disabled"),lt({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),lt({attribute:"current-value"})(e.prototype,"currentValue"),lt(e.prototype,"name"),lt({mode:"boolean"})(e.prototype,"required"),v(e.prototype,"value"),e}function ds(t){class e extends(hs(t)){}class i extends e{checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return lt({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),lt({attribute:"current-checked",converter:nt})(i.prototype,"currentChecked"),v(i.prototype,"defaultChecked"),v(i.prototype,"checked"),i}class cs extends ei{}class us extends(hs(cs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ps extends us{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},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)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach((t=>{t.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach((t=>{t.removeEventListener("click",this.handleClick)}))}}oe([lt({mode:"boolean"})],ps.prototype,"autofocus",void 0),oe([lt({attribute:"form"})],ps.prototype,"formId",void 0),oe([lt],ps.prototype,"formaction",void 0),oe([lt],ps.prototype,"formenctype",void 0),oe([lt],ps.prototype,"formmethod",void 0),oe([lt({mode:"boolean"})],ps.prototype,"formnovalidate",void 0),oe([lt],ps.prototype,"formtarget",void 0),oe([lt],ps.prototype,"type",void 0),oe([v],ps.prototype,"defaultSlottedContent",void 0);class ms{}oe([lt({attribute:"aria-expanded"})],ms.prototype,"ariaExpanded",void 0),oe([lt({attribute:"aria-pressed"})],ms.prototype,"ariaPressed",void 0),oi(ms,Vi),oi(ps,Zt,ms);class vs{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:s}=t;return new Date(s,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const s=this.getDateObject(t);if(!s.getTime())return"";const o=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},e);return new Intl.DateTimeFormat(i,o).format(s)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const s=`1-${t+1}-2017`;return this.getDate(s,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map(((i,s)=>this.getWeekday(s,t,e)))}}class fs extends ei{constructor(){super(...arguments),this.dateFormatter=new vs,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),s=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},o=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:s(o),month:t,start:i(o),year:e,previous:{length:s(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:s(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:s,previous:o,next:n}=t,r=[];let a=1-i;for(;a<s+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?o:a>s?n:t,l=a<1?o.length+a:a>s?a-s:a,h=`${e}-${l}-${i}`,d={day:l,month:e,year:i,disabled:this.dateInString(h,this.disabledDates),selected:this.dateInString(h,this.selectedDates)},c=r[r.length-1];0===r.length||c.length%7==0?r.push([d]):c.push(d),a++}return r}dateInString(t,e){const i=e.split(",").map((t=>t.trim()));return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some((e=>e===t))}getDayClassNames(t,e){const{day:i,month:s,year:o,disabled:n,selected:r}=t;return["day",e===`${s}-${i}-${o}`&&"today",this.month!==s&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map((t=>({text:t})));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach(((t,i)=>{t.abbr=e[i]}))}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return t.key===wi&&this.handleDateSelect(t,e),!0}}oe([lt({mode:"boolean"})],fs.prototype,"readonly",void 0),oe([lt],fs.prototype,"locale",void 0),oe([lt({converter:rt})],fs.prototype,"month",void 0),oe([lt({converter:rt})],fs.prototype,"year",void 0),oe([lt({attribute:"day-format",mode:"fromView"})],fs.prototype,"dayFormat",void 0),oe([lt({attribute:"weekday-format",mode:"fromView"})],fs.prototype,"weekdayFormat",void 0),oe([lt({attribute:"month-format",mode:"fromView"})],fs.prototype,"monthFormat",void 0),oe([lt({attribute:"year-format",mode:"fromView"})],fs.prototype,"yearFormat",void 0),oe([lt({attribute:"min-weeks",converter:rt})],fs.prototype,"minWeeks",void 0),oe([lt({attribute:"disabled-dates"})],fs.prototype,"disabledDates",void 0),oe([lt({attribute:"selected-dates"})],fs.prototype,"selectedDates",void 0);const gs={none:"none",default:"default",sticky:"sticky"},bs={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},ys={default:"default",header:"header",stickyHeader:"sticky-header"};class Cs extends ei{constructor(){super(...arguments),this.rowType=ys.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 jt((t=>t.columnDefinitions),(t=>t.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(pi,this.handleFocusout),this.addEventListener(mi,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(pi,this.handleFocusout),this.removeEventListener(mi,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 yi:e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case Ci:e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case ki:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case Ii:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===ys.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===ys.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}oe([lt({attribute:"grid-template-columns"})],Cs.prototype,"gridTemplateColumns",void 0),oe([lt({attribute:"row-type"})],Cs.prototype,"rowType",void 0),oe([v],Cs.prototype,"rowData",void 0),oe([v],Cs.prototype,"columnDefinitions",void 0),oe([v],Cs.prototype,"cellItemTemplate",void 0),oe([v],Cs.prototype,"headerCellItemTemplate",void 0),oe([v],Cs.prototype,"rowIndex",void 0),oe([v],Cs.prototype,"isActiveRow",void 0),oe([v],Cs.prototype,"activeCellItemTemplate",void 0),oe([v],Cs.prototype,"defaultCellItemTemplate",void 0),oe([v],Cs.prototype,"defaultHeaderCellItemTemplate",void 0),oe([v],Cs.prototype,"cellElements",void 0);const xs=(t,e)=>{const i=function(t){const e=t.tagFor(Cs);return K`
225
+ `,ns="form-associated-proxy",rs="ElementInternals",as=rs in window&&"setFormValue"in window[rs].prototype,ls=new WeakMap;function hs(t){const e=class extends t{static get formAssociated(){return as}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 s}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),c.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),c.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!as)return null;let t=ls.get(this);return t||(t=this.attachInternals(),ls.set(this,t)),t}constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}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(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach((t=>this.proxy.removeEventListener(t,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}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",ns),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ns)),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(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){if(t.key===wi)if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}stopPropagation(t){t.stopPropagation()}};return lt({mode:"boolean"})(e.prototype,"disabled"),lt({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),lt({attribute:"current-value"})(e.prototype,"currentValue"),lt(e.prototype,"name"),lt({mode:"boolean"})(e.prototype,"required"),v(e.prototype,"value"),e}function ds(t){class e extends(hs(t)){}class i extends e{checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return lt({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),lt({attribute:"current-checked",converter:nt})(i.prototype,"currentChecked"),v(i.prototype,"defaultChecked"),v(i.prototype,"checked"),i}class cs extends ei{}class us extends(hs(cs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ps extends us{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},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)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach((t=>{t.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach((t=>{t.removeEventListener("click",this.handleClick)}))}}oe([lt({mode:"boolean"})],ps.prototype,"autofocus",void 0),oe([lt({attribute:"form"})],ps.prototype,"formId",void 0),oe([lt],ps.prototype,"formaction",void 0),oe([lt],ps.prototype,"formenctype",void 0),oe([lt],ps.prototype,"formmethod",void 0),oe([lt({mode:"boolean"})],ps.prototype,"formnovalidate",void 0),oe([lt],ps.prototype,"formtarget",void 0),oe([lt],ps.prototype,"type",void 0),oe([v],ps.prototype,"defaultSlottedContent",void 0);class ms{}oe([lt({attribute:"aria-expanded"})],ms.prototype,"ariaExpanded",void 0),oe([lt({attribute:"aria-pressed"})],ms.prototype,"ariaPressed",void 0),oi(ms,Vi),oi(ps,Zt,ms);class vs{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:s}=t;return new Date(s,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const s=this.getDateObject(t);if(!s.getTime())return"";const o=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},e);return new Intl.DateTimeFormat(i,o).format(s)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const s=`1-${t+1}-2017`;return this.getDate(s,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map(((i,s)=>this.getWeekday(s,t,e)))}}class fs extends ei{constructor(){super(...arguments),this.dateFormatter=new vs,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),s=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},o=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:s(o),month:t,start:i(o),year:e,previous:{length:s(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:s(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:s,previous:o,next:n}=t,r=[];let a=1-i;for(;a<s+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?o:a>s?n:t,l=a<1?o.length+a:a>s?a-s:a,h=`${e}-${l}-${i}`,d={day:l,month:e,year:i,disabled:this.dateInString(h,this.disabledDates),selected:this.dateInString(h,this.selectedDates)},c=r[r.length-1];0===r.length||c.length%7==0?r.push([d]):c.push(d),a++}return r}dateInString(t,e){const i=e.split(",").map((t=>t.trim()));return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some((e=>e===t))}getDayClassNames(t,e){const{day:i,month:s,year:o,disabled:n,selected:r}=t;return["day",e===`${s}-${i}-${o}`&&"today",this.month!==s&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map((t=>({text:t})));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach(((t,i)=>{t.abbr=e[i]}))}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return t.key===wi&&this.handleDateSelect(t,e),!0}}oe([lt({mode:"boolean"})],fs.prototype,"readonly",void 0),oe([lt],fs.prototype,"locale",void 0),oe([lt({converter:rt})],fs.prototype,"month",void 0),oe([lt({converter:rt})],fs.prototype,"year",void 0),oe([lt({attribute:"day-format",mode:"fromView"})],fs.prototype,"dayFormat",void 0),oe([lt({attribute:"weekday-format",mode:"fromView"})],fs.prototype,"weekdayFormat",void 0),oe([lt({attribute:"month-format",mode:"fromView"})],fs.prototype,"monthFormat",void 0),oe([lt({attribute:"year-format",mode:"fromView"})],fs.prototype,"yearFormat",void 0),oe([lt({attribute:"min-weeks",converter:rt})],fs.prototype,"minWeeks",void 0),oe([lt({attribute:"disabled-dates"})],fs.prototype,"disabledDates",void 0),oe([lt({attribute:"selected-dates"})],fs.prototype,"selectedDates",void 0);const gs={none:"none",default:"default",sticky:"sticky"},bs={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},ys={default:"default",header:"header",stickyHeader:"sticky-header"};class Cs extends ei{constructor(){super(...arguments),this.rowType=ys.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 jt((t=>t.columnDefinitions),(t=>t.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(pi,this.handleFocusout),this.addEventListener(mi,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(pi,this.handleFocusout),this.removeEventListener(mi,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 yi:e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case Ci:e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case Ii:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case ki:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===ys.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===ys.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}oe([lt({attribute:"grid-template-columns"})],Cs.prototype,"gridTemplateColumns",void 0),oe([lt({attribute:"row-type"})],Cs.prototype,"rowType",void 0),oe([v],Cs.prototype,"rowData",void 0),oe([v],Cs.prototype,"columnDefinitions",void 0),oe([v],Cs.prototype,"cellItemTemplate",void 0),oe([v],Cs.prototype,"headerCellItemTemplate",void 0),oe([v],Cs.prototype,"rowIndex",void 0),oe([v],Cs.prototype,"isActiveRow",void 0),oe([v],Cs.prototype,"activeCellItemTemplate",void 0),oe([v],Cs.prototype,"defaultCellItemTemplate",void 0),oe([v],Cs.prototype,"defaultHeaderCellItemTemplate",void 0),oe([v],Cs.prototype,"cellElements",void 0);const xs=(t,e)=>{const i=function(t){const e=t.tagFor(Cs);return K`
226
226
  <${e}
227
227
  :rowData="${t=>t}"
228
228
  :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}"
@@ -238,22 +238,22 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
238
238
  >
239
239
  <slot></slot>
240
240
  </template>
241
- `};class ws extends ei{static generateTemplateColumns(t){let e="";return t.forEach((t=>{e=`${e}${""===e?"":" "}1fr`})),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=ws.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=ws.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()}constructor(){super(),this.noTabbing=!1,this.generateHeader=gs.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 s=Math.max(0,Math.min(this.rowElements.length-1,t)),o=this.rowElements[s].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=o[Math.max(0,Math.min(o.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(s<this.focusRowIndex&&this.scrollTop>0||s>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&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,c.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach(((e,i)=>{const s=e;s.rowIndex=i,s.gridTemplateColumns=t,this.columnDefinitionsStale&&(s.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new jt((t=>t.rowsData),(t=>t.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(ci,this.handleFocus),this.addEventListener(mi,this.handleKeydown),this.addEventListener(pi,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),c.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(ci,this.handleFocus),this.removeEventListener(mi,this.handleKeydown),this.removeEventListener(pi,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",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,s=this.offsetHeight+this.scrollTop,o=this.rowElements[i];switch(t.key){case xi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case bi: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||o.offsetTop+o.offsetHeight<=s)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>s){let e=0;this.generateHeader===gs.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case ki:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case Ii: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,c.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!==gs.none&&this.rowsData.length>0){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===gs.sticky?ys.stickyHeader:ys.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}ws.generateColumns=t=>Object.getOwnPropertyNames(t).map(((t,e)=>({columnDataKey:t,gridColumn:`${e}`}))),oe([lt({attribute:"no-tabbing",mode:"boolean"})],ws.prototype,"noTabbing",void 0),oe([lt({attribute:"generate-header"})],ws.prototype,"generateHeader",void 0),oe([lt({attribute:"grid-template-columns"})],ws.prototype,"gridTemplateColumns",void 0),oe([v],ws.prototype,"rowsData",void 0),oe([v],ws.prototype,"columnDefinitions",void 0),oe([v],ws.prototype,"rowItemTemplate",void 0),oe([v],ws.prototype,"cellItemTemplate",void 0),oe([v],ws.prototype,"headerCellItemTemplate",void 0),oe([v],ws.prototype,"focusRowIndex",void 0),oe([v],ws.prototype,"focusColumnIndex",void 0),oe([v],ws.prototype,"defaultRowItemTemplate",void 0),oe([v],ws.prototype,"rowElementTag",void 0),oe([v],ws.prototype,"rowElements",void 0);const $s=K`
241
+ `};class ws extends ei{static generateTemplateColumns(t){let e="";return t.forEach((t=>{e=`${e}${""===e?"":" "}1fr`})),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=ws.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=ws.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()}constructor(){super(),this.noTabbing=!1,this.generateHeader=gs.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 s=Math.max(0,Math.min(this.rowElements.length-1,t)),o=this.rowElements[s].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=o[Math.max(0,Math.min(o.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(s<this.focusRowIndex&&this.scrollTop>0||s>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&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,c.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach(((e,i)=>{const s=e;s.rowIndex=i,s.gridTemplateColumns=t,this.columnDefinitionsStale&&(s.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new jt((t=>t.rowsData),(t=>t.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(ci,this.handleFocus),this.addEventListener(mi,this.handleKeydown),this.addEventListener(pi,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),c.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(ci,this.handleFocus),this.removeEventListener(mi,this.handleKeydown),this.removeEventListener(pi,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",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,s=this.offsetHeight+this.scrollTop,o=this.rowElements[i];switch(t.key){case xi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case bi: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||o.offsetTop+o.offsetHeight<=s)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>s){let e=0;this.generateHeader===gs.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case Ii:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case ki: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,c.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!==gs.none&&this.rowsData.length>0){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===gs.sticky?ys.stickyHeader:ys.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}ws.generateColumns=t=>Object.getOwnPropertyNames(t).map(((t,e)=>({columnDataKey:t,gridColumn:`${e}`}))),oe([lt({attribute:"no-tabbing",mode:"boolean"})],ws.prototype,"noTabbing",void 0),oe([lt({attribute:"generate-header"})],ws.prototype,"generateHeader",void 0),oe([lt({attribute:"grid-template-columns"})],ws.prototype,"gridTemplateColumns",void 0),oe([v],ws.prototype,"rowsData",void 0),oe([v],ws.prototype,"columnDefinitions",void 0),oe([v],ws.prototype,"rowItemTemplate",void 0),oe([v],ws.prototype,"cellItemTemplate",void 0),oe([v],ws.prototype,"headerCellItemTemplate",void 0),oe([v],ws.prototype,"focusRowIndex",void 0),oe([v],ws.prototype,"focusColumnIndex",void 0),oe([v],ws.prototype,"defaultRowItemTemplate",void 0),oe([v],ws.prototype,"rowElementTag",void 0),oe([v],ws.prototype,"rowElements",void 0);const $s=K`
242
242
  <template>
243
243
  ${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}
244
244
  </template>
245
- `,ks=K`
245
+ `,Is=K`
246
246
  <template>
247
247
  ${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}
248
248
  </template>
249
- `;class Is extends ei{constructor(){super(...arguments),this.cellType=bs.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,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(ui,this.handleFocusin),this.addEventListener(pi,this.handleFocusout),this.addEventListener(mi,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(ui,this.handleFocusin),this.removeEventListener(pi,this.handleFocusout),this.removeEventListener(mi,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===bs.columnHeader){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}}else 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)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===bs.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===bs.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case wi:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===bs.columnHeader){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;case $i:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case bs.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=ks.render(this,this);break;case void 0:case bs.rowHeader:case bs.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=$s.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}oe([lt({attribute:"cell-type"})],Is.prototype,"cellType",void 0),oe([lt({attribute:"grid-column"})],Is.prototype,"gridColumn",void 0),oe([v],Is.prototype,"rowData",void 0),oe([v],Is.prototype,"columnDefinition",void 0);const Es=(t,e)=>{const i=function(t){const e=t.tagFor(Is);return K`
249
+ `;class ks extends ei{constructor(){super(...arguments),this.cellType=bs.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,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(ui,this.handleFocusin),this.addEventListener(pi,this.handleFocusout),this.addEventListener(mi,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(ui,this.handleFocusin),this.removeEventListener(pi,this.handleFocusout),this.removeEventListener(mi,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===bs.columnHeader){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}}else 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)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===bs.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===bs.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case wi:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===bs.columnHeader){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;case $i:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case bs.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Is.render(this,this);break;case void 0:case bs.rowHeader:case bs.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=$s.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}oe([lt({attribute:"cell-type"})],ks.prototype,"cellType",void 0),oe([lt({attribute:"grid-column"})],ks.prototype,"gridColumn",void 0),oe([v],ks.prototype,"rowData",void 0),oe([v],ks.prototype,"columnDefinition",void 0);const Es=(t,e)=>{const i=function(t){const e=t.tagFor(ks);return K`
250
250
  <${e}
251
251
  cell-type="${t=>t.isRowHeader?"rowheader":void 0}"
252
252
  grid-column="${(t,e)=>e.index+1}"
253
253
  :rowData="${(t,e)=>e.parent.rowData}"
254
254
  :columnDefinition="${t=>t}"
255
255
  ></${e}>
256
- `}(t),s=function(t){const e=t.tagFor(Is);return K`
256
+ `}(t),s=function(t){const e=t.tagFor(ks);return K`
257
257
  <${e}
258
258
  cell-type="columnheader"
259
259
  grid-column="${(t,e)=>e.index+1}"
@@ -290,7 +290,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
290
290
  </span>
291
291
  <span part="year">${t=>t.dateFormatter.getYear(t.year)}</span>
292
292
  </div>
293
- `,Ss=t=>{const e=t.tagFor(Is);return K`
293
+ `,Ss=t=>{const e=t.tagFor(ks);return K`
294
294
  <${e}
295
295
  class="week-day"
296
296
  part="week-day"
@@ -300,7 +300,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
300
300
  >
301
301
  ${t=>t.text}
302
302
  </${e}>
303
- `},Rs=(t,e)=>{const i=t.tagFor(Is);return K`
303
+ `},Rs=(t,e)=>{const i=t.tagFor(ks);return K`
304
304
  <${i}
305
305
  class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}"
306
306
  part="day"
@@ -410,7 +410,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
410
410
  <slot ${Xt("defaultSlottedNodes")}></slot>
411
411
  </label>
412
412
  </template>
413
- `;class Hs extends ei{}class zs extends(ds(Hs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ns extends zs{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly&&t.key===Ei)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=t=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}}function Bs(t){return hi(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}oe([lt({attribute:"readonly",mode:"boolean"})],Ns.prototype,"readOnly",void 0),oe([v],Ns.prototype,"defaultSlottedNodes",void 0),oe([v],Ns.prototype,"indeterminate",void 0);class qs extends ei{checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",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.ariaSelected=this.selected?"true":"false",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(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=`${null!=t?t:""}`;this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),m.notify(this,"value")}get value(){var t;return m.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}constructor(t,e,i,s){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),s&&(this.selected=s),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}}oe([v],qs.prototype,"checked",void 0),oe([v],qs.prototype,"content",void 0),oe([v],qs.prototype,"defaultSelected",void 0),oe([lt({mode:"boolean"})],qs.prototype,"disabled",void 0),oe([lt({attribute:"selected",mode:"boolean"})],qs.prototype,"selectedAttribute",void 0),oe([v],qs.prototype,"selected",void 0),oe([lt({attribute:"value",mode:"fromView"})],qs.prototype,"initialValue",void 0);class Us{}oe([v],Us.prototype,"ariaChecked",void 0),oe([v],Us.prototype,"ariaPosInSet",void 0),oe([v],Us.prototype,"ariaSelected",void 0),oe([v],Us.prototype,"ariaSetSize",void 0),oi(Us,Vi),oi(qs,Zt,Us);class js extends ei{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((t=>t.disabled))}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return m.track(this,"options"),this._options}set options(t){this._options=t,m.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame((()=>{t.scrollIntoView({block:"nearest"})})))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(`^${t}`,"gi");return this.options.filter((t=>t.text.trim().match(e)))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,s=t+i;let o=null;switch(i){case-1:o=this.options.reduceRight(((t,e,i)=>!t&&!e.disabled&&i<s?e:t),o);break;case 1:o=this.options.reduce(((t,e,i)=>!t&&!e.disabled&&i>s?e:t),o)}return this.options.indexOf(o)}handleChange(t,e){if("selected"===e)js.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),js.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case ki:t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case bi:t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case xi:t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case Ii:t.preventDefault(),this.selectLastOption();break;case Ti:return this.focusAndScrollOptionIntoView(),!0;case wi:case $i:return!0;case Ei:if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),s=i>-1?i:t;return this.selectedIndex=s,void(e===s&&this.selectedIndexChanged(e,s))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const s=e.filter(js.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((t=>{const e=m.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=s.includes(t),e.subscribe(this,"selected")}))}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>!t.disabled)))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,(t=>!t.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.defaultSelected)))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce(((t,e)=>(Bs(e)&&t.push(e),t)),[]);const i=`${this.options.length}`;this.options.forEach(((t,e)=>{t.id||(t.id=Fi("option-")),t.ariaPosInSet=`${e+1}`,t.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}js.slottedOptionFilter=t=>Bs(t)&&!t.hidden,js.TYPE_AHEAD_TIMEOUT_MS=1e3,oe([lt({mode:"boolean"})],js.prototype,"disabled",void 0),oe([v],js.prototype,"selectedIndex",void 0),oe([v],js.prototype,"selectedOptions",void 0),oe([v],js.prototype,"slottedOptions",void 0),oe([v],js.prototype,"typeaheadBuffer",void 0);class _s{}oe([v],_s.prototype,"ariaActiveDescendant",void 0),oe([v],_s.prototype,"ariaDisabled",void 0),oe([v],_s.prototype,"ariaExpanded",void 0),oe([v],_s.prototype,"ariaMultiSelectable",void 0),oi(_s,Vi),oi(js,_s);const Ws={above:"above",below:"below"};class Ks extends js{}class Ys extends(hs(Ks)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Xs={inline:"inline",list:"list",both:"both",none:"none"};class Gs extends Ys{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Fi("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Xs.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Xs.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Xs.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void c.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return m.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,m.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return m.track(this,"value"),this._value}set value(t){var e,i,s;const o=`${this._value}`;if(this.$fastController.isConnected&&this.options){const o=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[o])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?o:this.selectedIndex,t=(null===(s=this.firstSelectedOption)||void 0===s?void 0:s.text)||t}o!==t&&(this._value=t,super.valueChanged(o,t),m.notify(this,"value"))}clickHandler(t){const e=t.target.closest("option,[role=option]");if(!this.disabled&&!(null==e?void 0:e.disabled)){if(this.open){if(t.composedPath()[0]===this.control)return;e&&(this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0))}return this.open=!this.open,this.open&&this.control.focus(),!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!==Xs.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)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})})))}focusoutHandler(t){if(this.syncValue(),!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(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((t=>t.text)).indexOf(this.control.value)),t.inputType.includes("deleteContent")||!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()):this.selectedIndex=-1)}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();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.setInputToSelection(),!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.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=Ri(-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()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ws.above:Ws.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ws.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,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}oe([lt({attribute:"autocomplete",mode:"fromView"})],Gs.prototype,"autocomplete",void 0),oe([v],Gs.prototype,"maxHeight",void 0),oe([lt({attribute:"open",mode:"boolean"})],Gs.prototype,"open",void 0),oe([lt],Gs.prototype,"placeholder",void 0),oe([lt({attribute:"position"})],Gs.prototype,"positionAttribute",void 0),oe([v],Gs.prototype,"position",void 0);class Qs{}oe([v],Qs.prototype,"ariaAutoComplete",void 0),oe([v],Qs.prototype,"ariaControls",void 0),oi(Qs,_s),oi(Gs,Zt,Qs);const Zs=(t,e)=>K`
413
+ `;class Hs extends ei{}class zs extends(ds(Hs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ns extends zs{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly&&t.key===Ei)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=t=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}}function Bs(t){return hi(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}oe([lt({attribute:"readonly",mode:"boolean"})],Ns.prototype,"readOnly",void 0),oe([v],Ns.prototype,"defaultSlottedNodes",void 0),oe([v],Ns.prototype,"indeterminate",void 0);class qs extends ei{checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",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.ariaSelected=this.selected?"true":"false",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(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=`${null!=t?t:""}`;this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),m.notify(this,"value")}get value(){var t;return m.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}constructor(t,e,i,s){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),s&&(this.selected=s),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}}oe([v],qs.prototype,"checked",void 0),oe([v],qs.prototype,"content",void 0),oe([v],qs.prototype,"defaultSelected",void 0),oe([lt({mode:"boolean"})],qs.prototype,"disabled",void 0),oe([lt({attribute:"selected",mode:"boolean"})],qs.prototype,"selectedAttribute",void 0),oe([v],qs.prototype,"selected",void 0),oe([lt({attribute:"value",mode:"fromView"})],qs.prototype,"initialValue",void 0);class Us{}oe([v],Us.prototype,"ariaChecked",void 0),oe([v],Us.prototype,"ariaPosInSet",void 0),oe([v],Us.prototype,"ariaSelected",void 0),oe([v],Us.prototype,"ariaSetSize",void 0),oi(Us,Vi),oi(qs,Zt,Us);class js extends ei{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((t=>t.disabled))}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return m.track(this,"options"),this._options}set options(t){this._options=t,m.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame((()=>{t.scrollIntoView({block:"nearest"})})))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(`^${t}`,"gi");return this.options.filter((t=>t.text.trim().match(e)))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,s=t+i;let o=null;switch(i){case-1:o=this.options.reduceRight(((t,e,i)=>!t&&!e.disabled&&i<s?e:t),o);break;case 1:o=this.options.reduce(((t,e,i)=>!t&&!e.disabled&&i>s?e:t),o)}return this.options.indexOf(o)}handleChange(t,e){if("selected"===e)js.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),js.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case Ii:t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case bi:t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case xi:t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case ki:t.preventDefault(),this.selectLastOption();break;case Ti:return this.focusAndScrollOptionIntoView(),!0;case wi:case $i:return!0;case Ei:if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),s=i>-1?i:t;return this.selectedIndex=s,void(e===s&&this.selectedIndexChanged(e,s))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const s=e.filter(js.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((t=>{const e=m.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=s.includes(t),e.subscribe(this,"selected")}))}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>!t.disabled)))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,(t=>!t.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.defaultSelected)))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce(((t,e)=>(Bs(e)&&t.push(e),t)),[]);const i=`${this.options.length}`;this.options.forEach(((t,e)=>{t.id||(t.id=Fi("option-")),t.ariaPosInSet=`${e+1}`,t.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}js.slottedOptionFilter=t=>Bs(t)&&!t.hidden,js.TYPE_AHEAD_TIMEOUT_MS=1e3,oe([lt({mode:"boolean"})],js.prototype,"disabled",void 0),oe([v],js.prototype,"selectedIndex",void 0),oe([v],js.prototype,"selectedOptions",void 0),oe([v],js.prototype,"slottedOptions",void 0),oe([v],js.prototype,"typeaheadBuffer",void 0);class _s{}oe([v],_s.prototype,"ariaActiveDescendant",void 0),oe([v],_s.prototype,"ariaDisabled",void 0),oe([v],_s.prototype,"ariaExpanded",void 0),oe([v],_s.prototype,"ariaMultiSelectable",void 0),oi(_s,Vi),oi(js,_s);const Ws={above:"above",below:"below"};class Ks extends js{}class Ys extends(hs(Ks)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Xs={inline:"inline",list:"list",both:"both",none:"none"};class Gs extends Ys{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Fi("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Xs.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Xs.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Xs.both}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void c.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return m.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,m.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return m.track(this,"value"),this._value}set value(t){var e,i,s;const o=`${this._value}`;if(this.$fastController.isConnected&&this.options){const o=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[o])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?o:this.selectedIndex,t=(null===(s=this.firstSelectedOption)||void 0===s?void 0:s.text)||t}o!==t&&(this._value=t,super.valueChanged(o,t),m.notify(this,"value"))}clickHandler(t){const e=t.target.closest("option,[role=option]");if(!this.disabled&&!(null==e?void 0:e.disabled)){if(this.open){if(t.composedPath()[0]===this.control)return;e&&(this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0))}return this.open=!this.open,this.open&&this.control.focus(),!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!==Xs.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)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})})))}focusoutHandler(t){if(this.syncValue(),!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(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((t=>t.text)).indexOf(this.control.value)),t.inputType.includes("deleteContent")||!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()):this.selectedIndex=-1)}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();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.setInputToSelection(),!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.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=Ri(-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()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ws.above:Ws.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ws.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,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}oe([lt({attribute:"autocomplete",mode:"fromView"})],Gs.prototype,"autocomplete",void 0),oe([v],Gs.prototype,"maxHeight",void 0),oe([lt({attribute:"open",mode:"boolean"})],Gs.prototype,"open",void 0),oe([lt],Gs.prototype,"placeholder",void 0),oe([lt({attribute:"position"})],Gs.prototype,"positionAttribute",void 0),oe([v],Gs.prototype,"position",void 0);class Qs{}oe([v],Qs.prototype,"ariaAutoComplete",void 0),oe([v],Qs.prototype,"ariaControls",void 0),oi(Qs,_s),oi(Gs,Zt,Qs);const Zs=(t,e)=>K`
414
414
  <template
415
415
  aria-disabled="${t=>t.ariaDisabled}"
416
416
  autocomplete="${t=>t.autocomplete}"
@@ -464,7 +464,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
464
464
  ></slot>
465
465
  </div>
466
466
  </template>
467
- `;function Js(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function to(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Js(i)}return!1}const eo=document.createElement("div");class io{setProperty(t,e){c.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){c.queueUpdate((()=>this.target.removeProperty(t)))}}class so extends io{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class oo extends io{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 no{targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),m.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}setProperty(t,e){this.store.set(t,e),c.queueUpdate((()=>{null!==this.target&&this.target.setProperty(t,e)}))}removeProperty(t){this.store.delete(t),c.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(t)}))}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}oe([v],no.prototype,"target",void 0);class ro{constructor(t){this.target=t.style}setProperty(t,e){c.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){c.queueUpdate((()=>this.target.removeProperty(t)))}}class ao{setProperty(t,e){ao.properties[t]=e;for(const i of ao.roots.values())co.getOrCreate(ao.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete ao.properties[t];for(const e of ao.roots.values())co.getOrCreate(ao.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=ao;if(!e.has(t)){e.add(t);const i=co.getOrCreate(this.normalizeRoot(t));for(const t in ao.properties)i.setProperty(t,ao.properties[t])}}static unregisterRoot(t){const{roots:e}=ao;if(e.has(t)){e.delete(t);const i=co.getOrCreate(ao.normalizeRoot(t));for(const t in ao.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===eo?document:t}}ao.roots=new Set,ao.properties={};const lo=new WeakMap,ho=c.supportsAdoptedStyleSheets?class extends io{constructor(t){super();const e=new CSSStyleSheet;e[Q]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(Y.create([e]))}}:no,co=Object.freeze({getOrCreate(t){if(lo.has(t))return lo.get(t);let e;return t===eo?e=new ao:t instanceof Document?e=c.supportsAdoptedStyleSheets?new so:new oo:e=t instanceof bt?new ho(t):new ro(t),lo.set(t,e),e}});class uo extends Ct{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)}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)}createCSS(){return this.cssVar||""}getValueFor(t){const e=go.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)),go.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),go.existsFor(t)&&go.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(eo,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!go.existsFor(e)&&go.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=m.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,y))}catch(t){console.error(t)}}}class mo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),m.getNotifier(this).notify(t.id))}get(t){return m.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t),m.getNotifier(this).notify(t.id)}all(){return this.values.entries()}}const vo=new WeakMap,fo=new WeakMap;class go{static getOrCreate(t){return vo.get(t)||new go(t)}static existsFor(t){return vo.has(t)}static findParent(t){if(eo!==t.target){let e=Js(t.target);for(;null!==e;){if(vo.has(e))return vo.get(e);e=Js(e)}return go.getOrCreate(eo)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==eo?go.getOrCreate(eo):null}while(null!==i);return null}get parent(){return fo.get(this)||null}updateCSSTokenReflection(t,e){if(uo.isCSSDesignToken(e)){const i=this.parent,s=this.isReflecting(e);if(i){const o=i.get(e),n=t.get(e);o===n||s?o===n&&s&&this.stopReflectToCSS(e):this.reflectToCSS(e)}else s||this.reflectToCSS(e)}}constructor(t){this.target=t,this.store=new mo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=uo.getTokenById(e);i&&(i.notify(this.target),this.updateCSSTokenReflection(t,i))}},vo.set(t,this),m.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof bt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}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=go.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=go.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){fo.get(this).removeChild(this)}for(const t of this.bindingObservers.keys())this.tearDownBindingObserver(t)}appendChild(t){t.parent&&fo.get(t).removeChild(t);const e=this.children.filter((e=>t.contains(e)));fo.set(t,this),this.children.push(t),e.forEach((e=>t.appendChild(e))),m.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i),t.updateCSSTokenReflection(t.store,e)}removeChild(t){const e=this.children.indexOf(t);if(-1!==e&&this.children.splice(e,1),m.getNotifier(this.store).unsubscribe(t),t.parent!==this)return!1;const i=fo.delete(t);for(const[e]of this.store.all())t.hydrate(e,t.getRaw(e)),t.updateCSSTokenReflection(t.store,e);return i}contains(t){return to(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),go.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),go.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)),this.updateCSSTokenReflection(this.store,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)}}go.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){co.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(go.getOrCreate(e).get(t)))}remove(t,e){co.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},oe([v],go.prototype,"children",void 0);const bo=Object.freeze({create:function(t){return uo.from(t)},notifyConnection:t=>!(!t.isConnected||!go.existsFor(t))&&(go.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!go.existsFor(t))&&(go.getOrCreate(t).unbind(),!0),registerRoot(t=eo){ao.registerRoot(t)},unregisterRoot(t=eo){ao.unregisterRoot(t)}}),yo=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Co=new Map,xo=new Map;let wo=null;const $o=pe.createInterface((t=>t.cachedCallback((t=>(null===wo&&(wo=new Io(null,t)),wo))))),ko=Object.freeze({tagFor:t=>xo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return pe.findResponsibleContainer(t).get($o)},getOrCreate(t){if(!t)return null===wo&&(wo=pe.getOrCreateDOMContainer().get($o)),wo;const e=t.$$designSystem$$;if(e)return e;const i=pe.getOrCreateDOMContainer(t);if(i.has($o,!1))return i.get($o);{const e=new Io(t,i);return i.register(Ue.instance($o,e)),e}}});class Io{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>yo.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=[],s=this.disambiguate,o=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:h,baseClass:d}=a;let{type:c}=a,u=l,p=Co.get(u),m=!0;for(;p;){const t=s(u,c,p);switch(t){case yo.ignoreDuplicate:return;case yo.definitionCallbackOnly:m=!1,p=void 0;break;default:u=t,p=Co.get(u)}}m&&((xo.has(c)||c===ei)&&(c=class extends c{}),Co.set(u,c),xo.set(c,u),d&&xo.set(d,u)),i.push(new Eo(e,u,c,o,h,m))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&bo.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 Eo{constructor(t,e,i,s,o,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=s,this.callback=o,this.willDefine=n,this.definition=null}definePresentation(t){Je.define(this.name,t,this.container)}defineElement(t){this.definition=new ut(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return ko.tagFor(t)}}const To=(t,e)=>K`
467
+ `;function Js(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function to(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Js(i)}return!1}const eo=document.createElement("div");class io{setProperty(t,e){c.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){c.queueUpdate((()=>this.target.removeProperty(t)))}}class so extends io{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class oo extends io{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 no{targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),m.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}setProperty(t,e){this.store.set(t,e),c.queueUpdate((()=>{null!==this.target&&this.target.setProperty(t,e)}))}removeProperty(t){this.store.delete(t),c.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(t)}))}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}oe([v],no.prototype,"target",void 0);class ro{constructor(t){this.target=t.style}setProperty(t,e){c.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){c.queueUpdate((()=>this.target.removeProperty(t)))}}class ao{setProperty(t,e){ao.properties[t]=e;for(const i of ao.roots.values())co.getOrCreate(ao.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete ao.properties[t];for(const e of ao.roots.values())co.getOrCreate(ao.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=ao;if(!e.has(t)){e.add(t);const i=co.getOrCreate(this.normalizeRoot(t));for(const t in ao.properties)i.setProperty(t,ao.properties[t])}}static unregisterRoot(t){const{roots:e}=ao;if(e.has(t)){e.delete(t);const i=co.getOrCreate(ao.normalizeRoot(t));for(const t in ao.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===eo?document:t}}ao.roots=new Set,ao.properties={};const lo=new WeakMap,ho=c.supportsAdoptedStyleSheets?class extends io{constructor(t){super();const e=new CSSStyleSheet;e[Q]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(Y.create([e]))}}:no,co=Object.freeze({getOrCreate(t){if(lo.has(t))return lo.get(t);let e;return t===eo?e=new ao:t instanceof Document?e=c.supportsAdoptedStyleSheets?new so:new oo:e=t instanceof bt?new ho(t):new ro(t),lo.set(t,e),e}});class uo extends Ct{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)}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)}createCSS(){return this.cssVar||""}getValueFor(t){const e=go.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)),go.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),go.existsFor(t)&&go.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(eo,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!go.existsFor(e)&&go.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=m.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,y))}catch(t){console.error(t)}}}class mo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),m.getNotifier(this).notify(t.id))}get(t){return m.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t),m.getNotifier(this).notify(t.id)}all(){return this.values.entries()}}const vo=new WeakMap,fo=new WeakMap;class go{static getOrCreate(t){return vo.get(t)||new go(t)}static existsFor(t){return vo.has(t)}static findParent(t){if(eo!==t.target){let e=Js(t.target);for(;null!==e;){if(vo.has(e))return vo.get(e);e=Js(e)}return go.getOrCreate(eo)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==eo?go.getOrCreate(eo):null}while(null!==i);return null}get parent(){return fo.get(this)||null}updateCSSTokenReflection(t,e){if(uo.isCSSDesignToken(e)){const i=this.parent,s=this.isReflecting(e);if(i){const o=i.get(e),n=t.get(e);o===n||s?o===n&&s&&this.stopReflectToCSS(e):this.reflectToCSS(e)}else s||this.reflectToCSS(e)}}constructor(t){this.target=t,this.store=new mo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=uo.getTokenById(e);i&&(i.notify(this.target),this.updateCSSTokenReflection(t,i))}},vo.set(t,this),m.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof bt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}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=go.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=go.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){fo.get(this).removeChild(this)}for(const t of this.bindingObservers.keys())this.tearDownBindingObserver(t)}appendChild(t){t.parent&&fo.get(t).removeChild(t);const e=this.children.filter((e=>t.contains(e)));fo.set(t,this),this.children.push(t),e.forEach((e=>t.appendChild(e))),m.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i),t.updateCSSTokenReflection(t.store,e)}removeChild(t){const e=this.children.indexOf(t);if(-1!==e&&this.children.splice(e,1),m.getNotifier(this.store).unsubscribe(t),t.parent!==this)return!1;const i=fo.delete(t);for(const[e]of this.store.all())t.hydrate(e,t.getRaw(e)),t.updateCSSTokenReflection(t.store,e);return i}contains(t){return to(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),go.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),go.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)),this.updateCSSTokenReflection(this.store,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)}}go.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){co.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(go.getOrCreate(e).get(t)))}remove(t,e){co.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},oe([v],go.prototype,"children",void 0);const bo=Object.freeze({create:function(t){return uo.from(t)},notifyConnection:t=>!(!t.isConnected||!go.existsFor(t))&&(go.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!go.existsFor(t))&&(go.getOrCreate(t).unbind(),!0),registerRoot(t=eo){ao.registerRoot(t)},unregisterRoot(t=eo){ao.unregisterRoot(t)}}),yo=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Co=new Map,xo=new Map;let wo=null;const $o=pe.createInterface((t=>t.cachedCallback((t=>(null===wo&&(wo=new ko(null,t)),wo))))),Io=Object.freeze({tagFor:t=>xo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return pe.findResponsibleContainer(t).get($o)},getOrCreate(t){if(!t)return null===wo&&(wo=pe.getOrCreateDOMContainer().get($o)),wo;const e=t.$$designSystem$$;if(e)return e;const i=pe.getOrCreateDOMContainer(t);if(i.has($o,!1))return i.get($o);{const e=new ko(t,i);return i.register(Ue.instance($o,e)),e}}});class ko{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>yo.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=[],s=this.disambiguate,o=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:h,baseClass:d}=a;let{type:c}=a,u=l,p=Co.get(u),m=!0;for(;p;){const t=s(u,c,p);switch(t){case yo.ignoreDuplicate:return;case yo.definitionCallbackOnly:m=!1,p=void 0;break;default:u=t,p=Co.get(u)}}m&&((xo.has(c)||c===ei)&&(c=class extends c{}),Co.set(u,c),xo.set(c,u),d&&xo.set(d,u)),i.push(new Eo(e,u,c,o,h,m))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&bo.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 Eo{constructor(t,e,i,s,o,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=s,this.callback=o,this.willDefine=n,this.definition=null}definePresentation(t){Je.define(this.name,t,this.container)}defineElement(t){this.definition=new ut(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Io.tagFor(t)}}const To=(t,e)=>K`
468
468
  <div class="positioning-region" part="positioning-region">
469
469
  ${zt((t=>t.modal),K`
470
470
  <div
@@ -488,11 +488,11 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
488
488
  <slot></slot>
489
489
  </div>
490
490
  </div>
491
- `
491
+ `;
492
492
  /*!
493
493
  * tabbable 6.2.0
494
494
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
495
- */;var Oo=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],So=Oo.join(","),Ro="undefined"==typeof Element,Ao=Ro?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Do=!Ro&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},Fo=function t(e,i){var s;void 0===i&&(i=!0);var o=null==e||null===(s=e.getAttribute)||void 0===s?void 0:s.call(e,"inert");return""===o||"true"===o||i&&e&&t(e.parentNode)},Lo=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,i=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===i||"true"===i}(t))&&!function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))}(t)?0:t.tabIndex},Po=function(t){return"INPUT"===t.tagName},Mo=function(t){return function(t){return Po(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||Do(t),s=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=s(window.CSS.escape(t.name));else try{e=s(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 o=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!o||o===t}(t)},Vo=function(t){var e=t.getBoundingClientRect(),i=e.width,s=e.height;return 0===i&&0===s},Ho=function(t,e){var i=e.displayCheck,s=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=Ao.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Ao.call(o,"details:not([open]) *"))return!0;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return Vo(t)}else{if("function"==typeof s){for(var n=t;t;){var r=t.parentElement,a=Do(t);if(r&&!r.shadowRoot&&!0===s(r))return Vo(t);t=t.assignedSlot?t.assignedSlot:r||a===t.ownerDocument?r:a.host}t=n}if(function(t){var e,i,s,o,n=t&&Do(t),r=null===(e=n)||void 0===e?void 0:e.host,a=!1;if(n&&n!==t)for(a=!!(null!==(i=r)&&void 0!==i&&null!==(s=i.ownerDocument)&&void 0!==s&&s.contains(r)||null!=t&&null!==(o=t.ownerDocument)&&void 0!==o&&o.contains(t));!a&&r;){var l,h,d;a=!(null===(h=r=null===(l=n=Do(r))||void 0===l?void 0:l.host)||void 0===h||null===(d=h.ownerDocument)||void 0===d||!d.contains(r))}return a}(t))return!t.getClientRects().length;if("legacy-full"!==i)return!0}return!1},zo=function(t,e){return!(e.disabled||Fo(e)||function(t){return Po(t)&&"hidden"===t.type}(e)||Ho(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var s=e.children.item(i);if("LEGEND"===s.tagName)return!!Ao.call(e,"fieldset[disabled] *")||!s.contains(t)}return!0}e=e.parentElement}return!1}(e))},No=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ao.call(t,So)&&function(t,e){return!(Mo(e)||Lo(e)<0||!zo(t,e))}(e,t)},Bo=Oo.concat("iframe").join(","),qo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ao.call(t,Bo)&&zo(e,t)};class Uo extends ei{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 $i:this.dismiss(),t.preventDefault();break;case Ti: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=()=>Uo.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),c.queueUpdate((()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()}))):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=m.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){if("hidden"===e)this.updateTrapFocus()}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:No(e)||Uo.isFocusableFastElement(e)&&Uo.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Uo.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=>No(t)))}}oe([lt({mode:"boolean"})],Uo.prototype,"modal",void 0),oe([lt({mode:"boolean"})],Uo.prototype,"hidden",void 0),oe([lt({attribute:"trap-focus",mode:"boolean"})],Uo.prototype,"trapFocus",void 0),oe([lt({attribute:"aria-describedby"})],Uo.prototype,"ariaDescribedby",void 0),oe([lt({attribute:"aria-labelledby"})],Uo.prototype,"ariaLabelledby",void 0),oe([lt({attribute:"aria-label"})],Uo.prototype,"ariaLabel",void 0);const jo=new MutationObserver((t=>{for(const e of t)_o.getOrCreateFor(e.target).notify(e.attributeName)}));class _o extends u{subscribe(t){super.subscribe(t),this.watchedAttributes.has(t.attributes)||(this.watchedAttributes.add(t.attributes),this.observe())}constructor(t){super(t),this.watchedAttributes=new Set,_o.subscriberCache.set(t,this)}unsubscribe(t){super.unsubscribe(t),this.watchedAttributes.has(t.attributes)&&(this.watchedAttributes.delete(t.attributes),this.observe())}static getOrCreateFor(t){return this.subscriberCache.get(t)||new _o(t)}observe(){const t=[];for(const e of this.watchedAttributes.values())for(let i=0;i<e.length;i++)t.push(e[i]);jo.observe(this.source,{attributeFilter:t})}}_o.subscriberCache=new WeakMap;class Wo{constructor(t,e){this.target=t,this.attributes=Object.freeze(e)}bind(t){if(_o.getOrCreateFor(t).subscribe(this),t.hasAttributes())for(let e=0;e<t.attributes.length;e++)this.handleChange(t,t.attributes[e].name)}unbind(t){_o.getOrCreateFor(t).unsubscribe(this)}handleChange(t,e){this.attributes.includes(e)&&c.setAttribute(this.target,e,t.getAttribute(e))}}function Ko(...t){return new w("fast-reflect-attr",Wo,t)}const Yo=(t,e)=>K`
495
+ */var Oo=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],So=Oo.join(","),Ro="undefined"==typeof Element,Ao=Ro?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Do=!Ro&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},Fo=function t(e,i){var s;void 0===i&&(i=!0);var o=null==e||null===(s=e.getAttribute)||void 0===s?void 0:s.call(e,"inert");return""===o||"true"===o||i&&e&&t(e.parentNode)},Lo=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,i=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===i||"true"===i}(t))&&!function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))}(t)?0:t.tabIndex},Po=function(t){return"INPUT"===t.tagName},Mo=function(t){return function(t){return Po(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||Do(t),s=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=s(window.CSS.escape(t.name));else try{e=s(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 o=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!o||o===t}(t)},Vo=function(t){var e=t.getBoundingClientRect(),i=e.width,s=e.height;return 0===i&&0===s},Ho=function(t,e){var i=e.displayCheck,s=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=Ao.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Ao.call(o,"details:not([open]) *"))return!0;if(i&&"full"!==i&&"legacy-full"!==i){if("non-zero-area"===i)return Vo(t)}else{if("function"==typeof s){for(var n=t;t;){var r=t.parentElement,a=Do(t);if(r&&!r.shadowRoot&&!0===s(r))return Vo(t);t=t.assignedSlot?t.assignedSlot:r||a===t.ownerDocument?r:a.host}t=n}if(function(t){var e,i,s,o,n=t&&Do(t),r=null===(e=n)||void 0===e?void 0:e.host,a=!1;if(n&&n!==t)for(a=!!(null!==(i=r)&&void 0!==i&&null!==(s=i.ownerDocument)&&void 0!==s&&s.contains(r)||null!=t&&null!==(o=t.ownerDocument)&&void 0!==o&&o.contains(t));!a&&r;){var l,h,d;a=!(null===(h=r=null===(l=n=Do(r))||void 0===l?void 0:l.host)||void 0===h||null===(d=h.ownerDocument)||void 0===d||!d.contains(r))}return a}(t))return!t.getClientRects().length;if("legacy-full"!==i)return!0}return!1},zo=function(t,e){return!(e.disabled||Fo(e)||function(t){return Po(t)&&"hidden"===t.type}(e)||Ho(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var s=e.children.item(i);if("LEGEND"===s.tagName)return!!Ao.call(e,"fieldset[disabled] *")||!s.contains(t)}return!0}e=e.parentElement}return!1}(e))},No=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ao.call(t,So)&&function(t,e){return!(Mo(e)||Lo(e)<0||!zo(t,e))}(e,t)},Bo=Oo.concat("iframe").join(","),qo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ao.call(t,Bo)&&zo(e,t)};class Uo extends ei{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 $i:this.dismiss(),t.preventDefault();break;case Ti: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=()=>Uo.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),c.queueUpdate((()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()}))):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=m.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){if("hidden"===e)this.updateTrapFocus()}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:No(e)||Uo.isFocusableFastElement(e)&&Uo.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Uo.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=>No(t)))}}oe([lt({mode:"boolean"})],Uo.prototype,"modal",void 0),oe([lt({mode:"boolean"})],Uo.prototype,"hidden",void 0),oe([lt({attribute:"trap-focus",mode:"boolean"})],Uo.prototype,"trapFocus",void 0),oe([lt({attribute:"aria-describedby"})],Uo.prototype,"ariaDescribedby",void 0),oe([lt({attribute:"aria-labelledby"})],Uo.prototype,"ariaLabelledby",void 0),oe([lt({attribute:"aria-label"})],Uo.prototype,"ariaLabel",void 0);const jo=new MutationObserver((t=>{for(const e of t)_o.getOrCreateFor(e.target).notify(e.attributeName)}));class _o extends u{subscribe(t){super.subscribe(t),this.watchedAttributes.has(t.attributes)||(this.watchedAttributes.add(t.attributes),this.observe())}constructor(t){super(t),this.watchedAttributes=new Set,_o.subscriberCache.set(t,this)}unsubscribe(t){super.unsubscribe(t),this.watchedAttributes.has(t.attributes)&&(this.watchedAttributes.delete(t.attributes),this.observe())}static getOrCreateFor(t){return this.subscriberCache.get(t)||new _o(t)}observe(){const t=[];for(const e of this.watchedAttributes.values())for(let i=0;i<e.length;i++)t.push(e[i]);jo.observe(this.source,{attributeFilter:t})}}_o.subscriberCache=new WeakMap;class Wo{constructor(t,e){this.target=t,this.attributes=Object.freeze(e)}bind(t){if(_o.getOrCreateFor(t).subscribe(this),t.hasAttributes())for(let e=0;e<t.attributes.length;e++)this.handleChange(t,t.attributes[e].name)}unbind(t){_o.getOrCreateFor(t).unsubscribe(this)}handleChange(t,e){this.attributes.includes(e)&&c.setAttribute(this.target,e,t.getAttribute(e))}}function Ko(...t){return new w("fast-reflect-attr",Wo,t)}const Yo=(t,e)=>K`
496
496
  <details class="disclosure" ${Pt("details")}>
497
497
  <summary
498
498
  class="invoker"
@@ -547,7 +547,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
547
547
  </span>
548
548
  ${Jt(0,e)}
549
549
  </template>
550
- `;class on extends js{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter((t=>t.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,s;this.ariaActiveDescendant=null!==(s=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==s?s:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case ki:return void this.checkFirstOption(i);case bi:return void this.checkNextOption(i);case xi:return void this.checkPreviousOption(i);case Ii:return void this.checkLastOption(i);case Ti:return this.focusAndScrollOptionIntoView(),!0;case $i:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Ei:if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach((t=>{t.checked=!e&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((t=>t.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const s=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));s!==e&&c.queueUpdate((()=>{this.size=s}))}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter((t=>!t.disabled)),e=!t.every((t=>t.selected));t.forEach((t=>t.selected=e)),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach((t=>t.checked=!this.multiple&&void 0)),t||(this.rangeStartIndex=-1)}}oe([v],on.prototype,"activeIndex",void 0),oe([lt({mode:"boolean"})],on.prototype,"multiple",void 0),oe([lt({converter:rt})],on.prototype,"size",void 0);const nn=(t,e)=>K`
550
+ `;class on extends js{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter((t=>t.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,s;this.ariaActiveDescendant=null!==(s=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==s?s:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((t,e)=>{t.checked=Ai(e,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case Ii:return void this.checkFirstOption(i);case bi:return void this.checkNextOption(i);case xi:return void this.checkPreviousOption(i);case ki:return void this.checkLastOption(i);case Ti:return this.focusAndScrollOptionIntoView(),!0;case $i:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Ei:if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach((t=>{t.checked=!e&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((t=>t.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const s=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));s!==e&&c.queueUpdate((()=>{this.size=s}))}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter((t=>!t.disabled)),e=!t.every((t=>t.selected));t.forEach((t=>t.selected=e)),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach((t=>t.checked=!this.multiple&&void 0)),t||(this.rangeStartIndex=-1)}}oe([v],on.prototype,"activeIndex",void 0),oe([lt({mode:"boolean"})],on.prototype,"multiple",void 0),oe([lt({converter:rt})],on.prototype,"size",void 0);const nn=(t,e)=>K`
551
551
  <template
552
552
  aria-activedescendant="${t=>t.ariaActiveDescendant}"
553
553
  aria-multiselectable="${t=>t.ariaMultiSelectable}"
@@ -697,7 +697,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
697
697
  >
698
698
  <slot></slot>
699
699
  </template>
700
- `,xn={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},wn={[xn.menuitem]:"menuitem",[xn.menuitemcheckbox]:"menuitemcheckbox",[xn.menuitemradio]:"menuitemradio"};class $n extends ei{constructor(){super(...arguments),this.role=xn.menuitem,this.hasSubmenu=!1,this.currentDirection=Si.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case wi:case Ei:return this.invoke(),!1;case Ci:return this.expandAndFocus(),!1;case yi: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 xn.menuitemcheckbox:this.checked=!this.checked;break;case xn.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case xn.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=Bi(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),c.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).filter((t=>!t.hasAttribute("hidden")))}}oe([lt({mode:"boolean"})],$n.prototype,"disabled",void 0),oe([lt({mode:"boolean"})],$n.prototype,"expanded",void 0),oe([v],$n.prototype,"startColumnCount",void 0),oe([lt],$n.prototype,"role",void 0),oe([lt({mode:"boolean"})],$n.prototype,"checked",void 0),oe([v],$n.prototype,"submenuRegion",void 0),oe([v],$n.prototype,"hasSubmenu",void 0),oe([v],$n.prototype,"currentDirection",void 0),oe([v],$n.prototype,"submenu",void 0),oi($n,Zt);const kn=(t,e)=>K`
700
+ `,xn={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},wn={[xn.menuitem]:"menuitem",[xn.menuitemcheckbox]:"menuitemcheckbox",[xn.menuitemradio]:"menuitemradio"};class $n extends ei{constructor(){super(...arguments),this.role=xn.menuitem,this.hasSubmenu=!1,this.currentDirection=Si.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case wi:case Ei:return this.invoke(),!1;case Ci:return this.expandAndFocus(),!1;case yi: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 xn.menuitemcheckbox:this.checked=!this.checked;break;case xn.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case xn.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=Bi(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),c.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).filter((t=>!t.hasAttribute("hidden")))}}oe([lt({mode:"boolean"})],$n.prototype,"disabled",void 0),oe([lt({mode:"boolean"})],$n.prototype,"expanded",void 0),oe([v],$n.prototype,"startColumnCount",void 0),oe([lt],$n.prototype,"role",void 0),oe([lt({mode:"boolean"})],$n.prototype,"checked",void 0),oe([v],$n.prototype,"submenuRegion",void 0),oe([v],$n.prototype,"hasSubmenu",void 0),oe([v],$n.prototype,"currentDirection",void 0),oe([v],$n.prototype,"submenu",void 0),oi($n,Zt);const In=(t,e)=>K`
701
701
  <template
702
702
  role="${t=>t.role}"
703
703
  aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}"
@@ -764,7 +764,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
764
764
  </${t.tagFor(qi)}>
765
765
  `)}
766
766
  </template>
767
- `,In=(t,e)=>K`
767
+ `,kn=(t,e)=>K`
768
768
  <template
769
769
  slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}"
770
770
  role="menu"
@@ -773,7 +773,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
773
773
  >
774
774
  <slot ${Xt("items")}></slot>
775
775
  </template>
776
- `;class En extends ei{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&hi(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){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;void 0!==this.menuItems&&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||void 0===this.menuItems||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.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce(((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==xn.menuitem&&null===i||e===xn.menuitem&&null!==i?1:e!==xn.menuitem&&null!==i?2:0}(e);return t>i?t:i}),0);e.forEach(((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),(t instanceof $n||"startColumnCount"in t)&&(t.startColumnCount=i)}))},this.changeHandler=t=>{if(void 0===this.menuItems)return;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===xn.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===xn.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>hi(t)&&En.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),c.queueUpdate((()=>{this.setItems()})),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,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&&void 0!==this.menuItems)switch(t.key){case bi:return void this.setFocus(this.focusIndex+1,1);case xi:return void this.setFocus(this.focusIndex-1,-1);case Ii:return void this.setFocus(this.menuItems.length-1,-1);case ki:return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter((t=>!t.hasAttribute("hidden")))}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}}}En.focusableElementRoles=wn,oe([v],En.prototype,"items",void 0);const Tn=(t,e)=>K`
776
+ `;class En extends ei{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&hi(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){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;void 0!==this.menuItems&&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||void 0===this.menuItems||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.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce(((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==xn.menuitem&&null===i||e===xn.menuitem&&null!==i?1:e!==xn.menuitem&&null!==i?2:0}(e);return t>i?t:i}),0);e.forEach(((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),(t instanceof $n||"startColumnCount"in t)&&(t.startColumnCount=i)}))},this.changeHandler=t=>{if(void 0===this.menuItems)return;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===xn.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===xn.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>hi(t)&&En.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),c.queueUpdate((()=>{this.setItems()})),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,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&&void 0!==this.menuItems)switch(t.key){case bi:return void this.setFocus(this.focusIndex+1,1);case xi:return void this.setFocus(this.focusIndex-1,-1);case ki:return void this.setFocus(this.menuItems.length-1,-1);case Ii:return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter((t=>!t.hasAttribute("hidden")))}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}}}En.focusableElementRoles=wn,oe([v],En.prototype,"items",void 0);const Tn=(t,e)=>K`
777
777
  <template class="${t=>t.readOnly?"readonly":""}">
778
778
  <label
779
779
  part="label"
@@ -848,7 +848,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
848
848
  ${Jt(0,e)}
849
849
  </div>
850
850
  </template>
851
- `;class On extends ei{}class Sn extends(hs(On)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Rn={email:"email",password:"password",tel:"tel",text:"text",url:"url"};class An extends Sn{constructor(){super(...arguments),this.type=Rn.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&&c.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}oe([lt({attribute:"readonly",mode:"boolean"})],An.prototype,"readOnly",void 0),oe([lt({mode:"boolean"})],An.prototype,"autofocus",void 0),oe([lt],An.prototype,"placeholder",void 0),oe([lt],An.prototype,"type",void 0),oe([lt],An.prototype,"list",void 0),oe([lt({converter:rt})],An.prototype,"maxlength",void 0),oe([lt({converter:rt})],An.prototype,"minlength",void 0),oe([lt],An.prototype,"pattern",void 0),oe([lt({converter:rt})],An.prototype,"size",void 0),oe([lt({mode:"boolean"})],An.prototype,"spellcheck",void 0),oe([v],An.prototype,"defaultSlottedNodes",void 0);class Dn{}oi(Dn,Vi),oi(An,Zt,Dn);class Fn extends ei{}class Ln extends(hs(Fn)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Pn extends Ln{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const s=Math.min(this.min,this.max);void 0!==this.min&&this.min!==s&&(this.min=s),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const s=Math.max(this.min,this.max);void 0!==this.max&&this.max!==s&&(this.max=s),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(t){var e,i;let s=parseFloat(parseFloat(t).toPrecision(12));return isNaN(s)?s="":(s=Math.min(s,null!==(e=this.max)&&void 0!==e?e:s),s=Math.max(s,null!==(i=this.min)&&void 0!==i?i:s).toString()),s}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&c.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case xi:return this.stepUp(),!1;case bi:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}oe([lt({attribute:"readonly",mode:"boolean"})],Pn.prototype,"readOnly",void 0),oe([lt({mode:"boolean"})],Pn.prototype,"autofocus",void 0),oe([lt({attribute:"hide-step",mode:"boolean"})],Pn.prototype,"hideStep",void 0),oe([lt],Pn.prototype,"placeholder",void 0),oe([lt],Pn.prototype,"list",void 0),oe([lt({converter:rt})],Pn.prototype,"maxlength",void 0),oe([lt({converter:rt})],Pn.prototype,"minlength",void 0),oe([lt({converter:rt})],Pn.prototype,"size",void 0),oe([lt({converter:rt})],Pn.prototype,"step",void 0),oe([lt({converter:rt})],Pn.prototype,"max",void 0),oe([lt({converter:rt})],Pn.prototype,"min",void 0),oe([v],Pn.prototype,"defaultSlottedNodes",void 0),oi(Pn,Zt,Dn);const Mn=(t,e)=>K`
851
+ `;class On extends ei{}class Sn extends(hs(On)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Rn={email:"email",password:"password",tel:"tel",text:"text",url:"url"};class An extends Sn{constructor(){super(...arguments),this.type=Rn.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&&c.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}oe([lt({attribute:"readonly",mode:"boolean"})],An.prototype,"readOnly",void 0),oe([lt({mode:"boolean"})],An.prototype,"autofocus",void 0),oe([lt],An.prototype,"placeholder",void 0),oe([lt],An.prototype,"type",void 0),oe([lt],An.prototype,"list",void 0),oe([lt({converter:rt})],An.prototype,"maxlength",void 0),oe([lt({converter:rt})],An.prototype,"minlength",void 0),oe([lt],An.prototype,"pattern",void 0),oe([lt({converter:rt})],An.prototype,"size",void 0),oe([lt({mode:"boolean"})],An.prototype,"spellcheck",void 0),oe([v],An.prototype,"defaultSlottedNodes",void 0);class Dn{}oi(Dn,Vi),oi(An,Zt,Dn);class Fn extends ei{}class Ln extends(hs(Fn)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Pn extends Ln{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const s=Math.min(this.min,this.max);void 0!==this.min&&this.min!==s&&(this.min=s),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const s=Math.max(this.min,this.max);void 0!==this.max&&this.max!==s&&(this.max=s),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&this.syncValueToInnerControl(),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(t){var e,i;let s=parseFloat(parseFloat(t).toPrecision(15));return isNaN(s)?s="":(s=Math.min(s,null!==(e=this.max)&&void 0!==e?e:s),s=Math.max(s,null!==(i=this.min)&&void 0!==i?i:s).toString()),s}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.syncValueToInnerControl(),this.autofocus&&c.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.sanitizeInput(this.control.value),this.isUserInput=!0,this.syncValueFromInnerControl()}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case xi:return this.stepUp(),!1;case bi:return this.stepDown(),!1}return!0}handleBlur(){this.syncValueToInnerControl()}sanitizeInput(t){return t.replace(/[^0-9\-+e.]/g,"")}syncValueFromInnerControl(){this.value=this.control.value}syncValueToInnerControl(){this.control.value=this.value}}oe([lt({attribute:"readonly",mode:"boolean"})],Pn.prototype,"readOnly",void 0),oe([lt({mode:"boolean"})],Pn.prototype,"autofocus",void 0),oe([lt({attribute:"hide-step",mode:"boolean"})],Pn.prototype,"hideStep",void 0),oe([lt],Pn.prototype,"placeholder",void 0),oe([lt],Pn.prototype,"list",void 0),oe([lt({converter:rt})],Pn.prototype,"maxlength",void 0),oe([lt({converter:rt})],Pn.prototype,"minlength",void 0),oe([lt({converter:rt})],Pn.prototype,"size",void 0),oe([lt({converter:rt})],Pn.prototype,"step",void 0),oe([lt({converter:rt})],Pn.prototype,"max",void 0),oe([lt({converter:rt})],Pn.prototype,"min",void 0),oe([v],Pn.prototype,"defaultSlottedNodes",void 0),oi(Pn,Zt,Dn);const Mn=(t,e)=>K`
852
852
  <template
853
853
  role="progressbar"
854
854
  aria-valuenow="${t=>t.value}"
@@ -1081,7 +1081,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
1081
1081
  ${Jt(0,e)}
1082
1082
  </div>
1083
1083
  </template>
1084
- `;class Xn extends ei{}class Gn extends(hs(Xn)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Qn extends Gn{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)}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.validate(),this.autofocus&&c.queueUpdate((()=>{this.focus()}))}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}}oe([lt({attribute:"readonly",mode:"boolean"})],Qn.prototype,"readOnly",void 0),oe([lt({mode:"boolean"})],Qn.prototype,"autofocus",void 0),oe([lt],Qn.prototype,"placeholder",void 0),oe([lt],Qn.prototype,"list",void 0),oe([lt({converter:rt})],Qn.prototype,"maxlength",void 0),oe([lt({converter:rt})],Qn.prototype,"minlength",void 0),oe([lt],Qn.prototype,"pattern",void 0),oe([lt({converter:rt})],Qn.prototype,"size",void 0),oe([lt({mode:"boolean"})],Qn.prototype,"spellcheck",void 0),oe([v],Qn.prototype,"defaultSlottedNodes",void 0);class Zn{}oi(Zn,Vi),oi(Qn,Zt,Zn);class Jn extends on{}class tr extends(hs(Jn)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class er extends tr{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Fi("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void c.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return m.track(this,"value"),this._value}set value(t){var e,i,s,o,n,r,a;const l=`${this._value}`;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex((e=>e.value===t)),l=null!==(s=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==s?s:null,h=null!==(n=null===(o=this._options[e])||void 0===o?void 0:o.value)&&void 0!==n?n:null;-1!==e&&l===h||(t="",this.selectedIndex=e),t=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:t}l!==t&&(this._value=t,super.valueChanged(l,t),m.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ws.above:Ws.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ws.above?~~t.top:~~e}get displayValue(){var t,e;return m.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}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.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!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))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach((t=>{m.getNotifier(t).unsubscribe(this,"value")})),super.slottedOptionsChanged(t,e),this.options.forEach((t=>{m.getNotifier(t).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach(((t,e)=>{var i;const s=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);s&&(s.selected=t.selected)}))}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(js.slottedOptionFilter),i=null==e?void 0:e.findIndex((t=>t.hasAttribute("selected")||t.selected||t.value===this.value));this.selectedIndex=-1===i?0:i}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.options.add(e)})))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case Ei:t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case ki:case Ii:t.preventDefault();break;case wi:t.preventDefault(),this.open=!this.open;break;case $i:this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case Ti:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===bi||e===xi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&m.notify(this,"displayValue")}}oe([lt({attribute:"open",mode:"boolean"})],er.prototype,"open",void 0),oe([f],er.prototype,"collapsible",null),oe([v],er.prototype,"control",void 0),oe([lt({attribute:"position"})],er.prototype,"positionAttribute",void 0),oe([v],er.prototype,"position",void 0),oe([v],er.prototype,"maxHeight",void 0);class ir{}oe([v],ir.prototype,"ariaControls",void 0),oi(ir,_s),oi(er,Zt,ir);const sr=(t,e)=>K`
1084
+ `;class Xn extends ei{}class Gn extends(hs(Xn)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Qn extends Gn{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)}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.validate(),this.autofocus&&c.queueUpdate((()=>{this.focus()}))}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}}oe([lt({attribute:"readonly",mode:"boolean"})],Qn.prototype,"readOnly",void 0),oe([lt({mode:"boolean"})],Qn.prototype,"autofocus",void 0),oe([lt],Qn.prototype,"placeholder",void 0),oe([lt],Qn.prototype,"list",void 0),oe([lt({converter:rt})],Qn.prototype,"maxlength",void 0),oe([lt({converter:rt})],Qn.prototype,"minlength",void 0),oe([lt],Qn.prototype,"pattern",void 0),oe([lt({converter:rt})],Qn.prototype,"size",void 0),oe([lt({mode:"boolean"})],Qn.prototype,"spellcheck",void 0),oe([v],Qn.prototype,"defaultSlottedNodes",void 0);class Zn{}oi(Zn,Vi),oi(Qn,Zt,Zn);class Jn extends on{}class tr extends(hs(Jn)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class er extends tr{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Fi("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void c.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return m.track(this,"value"),this._value}set value(t){var e,i,s,o,n,r,a;const l=`${this._value}`;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex((e=>e.value===t)),l=null!==(s=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==s?s:null,h=null!==(n=null===(o=this._options[e])||void 0===o?void 0:o.value)&&void 0!==n?n:null;-1!==e&&l===h||(t="",this.selectedIndex=e),t=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:t}l!==t&&(this._value=t,super.valueChanged(l,t),m.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Ws.above:Ws.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Ws.above?~~t.top:~~e}get displayValue(){var t,e;return m.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}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.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!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))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach((t=>{m.getNotifier(t).unsubscribe(this,"value")})),super.slottedOptionsChanged(t,e),this.options.forEach((t=>{m.getNotifier(t).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach(((t,e)=>{var i;const s=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);s&&(s.selected=t.selected)}))}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(js.slottedOptionFilter),i=null==e?void 0:e.findIndex((t=>t.hasAttribute("selected")||t.selected||t.value===this.value));this.selectedIndex=-1===i?0:i}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.options.add(e)})))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case Ei:t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Ii:case ki:t.preventDefault();break;case wi:t.preventDefault(),this.open=!this.open;break;case $i:this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case Ti:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===bi||e===xi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&m.notify(this,"displayValue")}}oe([lt({attribute:"open",mode:"boolean"})],er.prototype,"open",void 0),oe([f],er.prototype,"collapsible",null),oe([v],er.prototype,"control",void 0),oe([lt({attribute:"position"})],er.prototype,"positionAttribute",void 0),oe([v],er.prototype,"position",void 0),oe([v],er.prototype,"maxHeight",void 0);class ir{}oe([v],ir.prototype,"ariaControls",void 0),oi(ir,_s),oi(er,Zt,ir);const sr=(t,e)=>K`
1085
1085
  <template
1086
1086
  class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}"
1087
1087
  aria-activedescendant="${t=>t.ariaActiveDescendant}"
@@ -1198,7 +1198,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
1198
1198
  </div>
1199
1199
  </div>
1200
1200
  </template>
1201
- `;class cr extends ei{}class ur extends(hs(cr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const pr={singleValue:"single-value"};class mr extends ur{constructor(){super(...arguments),this.direction=Si.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=ai,this.mode=pr.singleValue,this.keypressHandler=t=>{if(!this.readOnly)if(t.key===ki)t.preventDefault(),this.value=`${this.min}`;else if(t.key===Ii)t.preventDefault(),this.value=`${this.max}`;else if(!t.shiftKey)switch(t.key){case Ci:case xi:t.preventDefault(),this.increment();break;case yi:case bi: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,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),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===ai?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.calculateNewValue=t=>{const e=ar(t,this.orientation===ai?this.trackMinWidth:this.trackMinHeight,this.orientation===ai?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===ai?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)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}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=Bi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Si.rtl&&this.orientation!==li?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!==Si.rtl&&this.orientation!==li?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=100*(1-ar(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===ai?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; 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)}}}oe([lt({attribute:"readonly",mode:"boolean"})],mr.prototype,"readOnly",void 0),oe([v],mr.prototype,"direction",void 0),oe([v],mr.prototype,"isDragging",void 0),oe([v],mr.prototype,"position",void 0),oe([v],mr.prototype,"trackWidth",void 0),oe([v],mr.prototype,"trackMinWidth",void 0),oe([v],mr.prototype,"trackHeight",void 0),oe([v],mr.prototype,"trackLeft",void 0),oe([v],mr.prototype,"trackMinHeight",void 0),oe([v],mr.prototype,"valueTextFormatter",void 0),oe([lt({converter:rt})],mr.prototype,"min",void 0),oe([lt({converter:rt})],mr.prototype,"max",void 0),oe([lt({converter:rt})],mr.prototype,"step",void 0),oe([lt],mr.prototype,"orientation",void 0),oe([lt],mr.prototype,"mode",void 0);const vr=(t,e)=>K`
1201
+ `;class cr extends ei{}class ur extends(hs(cr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const pr={singleValue:"single-value"};class mr extends ur{constructor(){super(...arguments),this.direction=Si.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=ai,this.mode=pr.singleValue,this.keypressHandler=t=>{if(!this.readOnly)if(t.key===Ii)t.preventDefault(),this.value=`${this.min}`;else if(t.key===ki)t.preventDefault(),this.value=`${this.max}`;else if(!t.shiftKey)switch(t.key){case Ci:case xi:t.preventDefault(),this.increment();break;case yi:case bi: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,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),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===ai?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.calculateNewValue=t=>{const e=ar(t,this.orientation===ai?this.trackMinWidth:this.trackMinHeight,this.orientation===ai?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===ai?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)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}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=Bi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Si.rtl&&this.orientation!==li?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!==Si.rtl&&this.orientation!==li?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=100*(1-ar(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===ai?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; 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)}}}oe([lt({attribute:"readonly",mode:"boolean"})],mr.prototype,"readOnly",void 0),oe([v],mr.prototype,"direction",void 0),oe([v],mr.prototype,"isDragging",void 0),oe([v],mr.prototype,"position",void 0),oe([v],mr.prototype,"trackWidth",void 0),oe([v],mr.prototype,"trackMinWidth",void 0),oe([v],mr.prototype,"trackHeight",void 0),oe([v],mr.prototype,"trackLeft",void 0),oe([v],mr.prototype,"trackMinHeight",void 0),oe([v],mr.prototype,"valueTextFormatter",void 0),oe([lt({converter:rt})],mr.prototype,"min",void 0),oe([lt({converter:rt})],mr.prototype,"max",void 0),oe([lt({converter:rt})],mr.prototype,"step",void 0),oe([lt],mr.prototype,"orientation",void 0),oe([lt],mr.prototype,"mode",void 0);const vr=(t,e)=>K`
1202
1202
  <template
1203
1203
  role="switch"
1204
1204
  aria-checked="${t=>t.checked}"
@@ -1254,7 +1254,7 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
1254
1254
  <slot name="tabpanel" ${Xt("tabpanels")}></slot>
1255
1255
  </div>
1256
1256
  </template>
1257
- `,kr={vertical:"vertical",horizontal:"horizontal"};class Ir extends ei{constructor(){super(...arguments),this.orientation=kr.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.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((s,o)=>{if("tab"===s.slot){const t=this.activeTabIndex===o&&this.isFocusableElement(s);this.activeindicator&&this.isFocusableElement(s)&&(this.showActiveIndicator=!0);const e=this.tabIds[o],i=this.tabpanelIds[o];s.setAttribute("id",e),s.setAttribute("aria-selected",t?"true":"false"),s.setAttribute("aria-controls",i),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=s,this.activeid=e)}s.style[t]="",s.style[e]="",s.style[i]=`${o+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabpanels.forEach(((t,e)=>{const i=this.tabIds[e],s=this.tabpanelIds[e];t.setAttribute("id",s),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case yi:t.preventDefault(),this.adjustBackward(t);break;case Ci:t.preventDefault(),this.adjustForward(t)}else switch(t.key){case xi:t.preventDefault(),this.adjustBackward(t);break;case bi:t.preventDefault(),this.adjustForward(t)}switch(t.key){case ki:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Ii: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.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),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=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:`tab-${Fi()}`}))}getTabPanelIds(){return this.tabpanels.map((t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:`panel-${Fi()}`}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===kr.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",s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const n=o-s;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){const e=this.tabs.filter((t=>this.isFocusableElement(t))),i=e.indexOf(this.activetab),s=Ri(0,e.length-1,i+t),o=this.tabs.indexOf(e[s]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}oe([lt],Ir.prototype,"orientation",void 0),oe([lt],Ir.prototype,"activeid",void 0),oe([v],Ir.prototype,"tabs",void 0),oe([v],Ir.prototype,"tabpanels",void 0),oe([lt({mode:"boolean"})],Ir.prototype,"activeindicator",void 0),oe([v],Ir.prototype,"activeIndicatorRef",void 0),oe([v],Ir.prototype,"showActiveIndicator",void 0),oi(Ir,Zt);class Er extends ei{}class Tr extends(hs(Er)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Or={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};class Sr extends Tr{constructor(){super(...arguments),this.resize=Or.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)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}oe([lt({mode:"boolean"})],Sr.prototype,"readOnly",void 0),oe([lt],Sr.prototype,"resize",void 0),oe([lt({mode:"boolean"})],Sr.prototype,"autofocus",void 0),oe([lt({attribute:"form"})],Sr.prototype,"formId",void 0),oe([lt],Sr.prototype,"list",void 0),oe([lt({converter:rt})],Sr.prototype,"maxlength",void 0),oe([lt({converter:rt})],Sr.prototype,"minlength",void 0),oe([lt],Sr.prototype,"name",void 0),oe([lt],Sr.prototype,"placeholder",void 0),oe([lt({converter:rt,mode:"fromView"})],Sr.prototype,"cols",void 0),oe([lt({converter:rt,mode:"fromView"})],Sr.prototype,"rows",void 0),oe([lt({mode:"boolean"})],Sr.prototype,"spellcheck",void 0),oe([v],Sr.prototype,"defaultSlottedNodes",void 0),oi(Sr,Dn);const Rr=(t,e)=>K`
1257
+ `,Ir={vertical:"vertical",horizontal:"horizontal"};class kr extends ei{constructor(){super(...arguments),this.orientation=Ir.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.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((s,o)=>{if("tab"===s.slot){const t=this.activeTabIndex===o&&this.isFocusableElement(s);this.activeindicator&&this.isFocusableElement(s)&&(this.showActiveIndicator=!0);const e=this.tabIds[o],i=this.tabpanelIds[o];s.setAttribute("id",e),s.setAttribute("aria-selected",t?"true":"false"),s.setAttribute("aria-controls",i),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=s,this.activeid=e)}s.style[t]="",s.style[e]="",s.style[i]=`${o+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabpanels.forEach(((t,e)=>{const i=this.tabIds[e],s=this.tabpanelIds[e];t.setAttribute("id",s),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case yi:t.preventDefault(),this.adjustBackward(t);break;case Ci:t.preventDefault(),this.adjustForward(t)}else switch(t.key){case xi:t.preventDefault(),this.adjustBackward(t);break;case bi:t.preventDefault(),this.adjustForward(t)}switch(t.key){case Ii:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case ki: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.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),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=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:`tab-${Fi()}`}))}getTabPanelIds(){return this.tabpanels.map((t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:`panel-${Fi()}`}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ir.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",s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const n=o-s;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){const e=this.tabs.filter((t=>this.isFocusableElement(t))),i=e.indexOf(this.activetab),s=Ri(0,e.length-1,i+t),o=this.tabs.indexOf(e[s]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}oe([lt],kr.prototype,"orientation",void 0),oe([lt],kr.prototype,"activeid",void 0),oe([v],kr.prototype,"tabs",void 0),oe([v],kr.prototype,"tabpanels",void 0),oe([lt({mode:"boolean"})],kr.prototype,"activeindicator",void 0),oe([v],kr.prototype,"activeIndicatorRef",void 0),oe([v],kr.prototype,"showActiveIndicator",void 0),oi(kr,Zt);class Er extends ei{}class Tr extends(hs(Er)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Or={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};class Sr extends Tr{constructor(){super(...arguments),this.resize=Or.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)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}oe([lt({mode:"boolean"})],Sr.prototype,"readOnly",void 0),oe([lt],Sr.prototype,"resize",void 0),oe([lt({mode:"boolean"})],Sr.prototype,"autofocus",void 0),oe([lt({attribute:"form"})],Sr.prototype,"formId",void 0),oe([lt],Sr.prototype,"list",void 0),oe([lt({converter:rt})],Sr.prototype,"maxlength",void 0),oe([lt({converter:rt})],Sr.prototype,"minlength",void 0),oe([lt],Sr.prototype,"name",void 0),oe([lt],Sr.prototype,"placeholder",void 0),oe([lt({converter:rt,mode:"fromView"})],Sr.prototype,"cols",void 0),oe([lt({converter:rt,mode:"fromView"})],Sr.prototype,"rows",void 0),oe([lt({mode:"boolean"})],Sr.prototype,"spellcheck",void 0),oe([v],Sr.prototype,"defaultSlottedNodes",void 0),oi(Sr,Dn);const Rr=(t,e)=>K`
1258
1258
  <template
1259
1259
  class="
1260
1260
  ${t=>t.readOnly?"readonly":""}
@@ -1465,4 +1465,4 @@ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undef
1465
1465
  >
1466
1466
  <slot ${Xt("slottedTreeItems")}></slot>
1467
1467
  </template>
1468
- `;class Ur extends ei{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Br.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case ki:return void(e.length&&Br.focusItem(e[0]));case Ii:return void(e.length&&Br.focusItem(e[e.length-1]));case yi:if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Br&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof Br&&e.parentElement instanceof Br&&Br.focusItem(e.parentElement)}return!1;case Ci:if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Br&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof Br&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case bi:return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case xi:return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case wi:return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Nr(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((t=>{Nr(t)&&(t.nested=this.nested)}))},this.isFocusableElement=t=>Nr(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),c.queueUpdate((()=>{this.setItems()}))}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Nr(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const s=i[i.indexOf(e)+t];hi(s)&&Br.focusItem(s)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some((t=>Nr(t)&&t.querySelector("[role='treeitem']")))}getVisibleNodes(){return function(t,e){if(!t||!hi(t))return;return Array.from(t.querySelectorAll(e)).filter((t=>null!==t.offsetParent))}(this,"[role='treeitem']")||[]}}oe([lt({attribute:"render-collapsed-nodes"})],Ur.prototype,"renderCollapsedNodes",void 0),oe([v],Ur.prototype,"currentSelected",void 0),oe([v],Ur.prototype,"slottedTreeItems",void 0);class jr{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))}}class _r extends jr{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new _r(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!e?(t.$fastController.addStyles(i),e=s):!s&&e&&(t.$fastController.removeStyles(i),e=s)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Wr=_r.with(window.matchMedia("(forced-colors)")),Kr=_r.with(window.matchMedia("(prefers-color-scheme: dark)")),Yr=_r.with(window.matchMedia("(prefers-color-scheme: light)"));class Xr{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){m.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){m.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)}}const Gr="not-allowed",Qr=":host([hidden]){display:none}";function Zr(t){return`${Qr}:host{display:${t}}`}const Jr=function(){if("boolean"==typeof di)return di;if("undefined"==typeof window||!window.document||!window.document.createElement)return di=!1,di;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),di=!0}catch(t){di=!1}finally{document.head.removeChild(t)}return di}()?"focus-visible":"focus";export{t as $global,Vi as ARIAGlobalStatesAndProperties,Pi as Accordion,Li as AccordionExpandMode,ni as AccordionItem,Hi as Anchor,qi as AnchoredRegion,w as AttachedBehaviorHTMLDirective,ot as AttributeConfiguration,at as AttributeDefinition,Qi as Avatar,Ji as Badge,Vn as BaseProgress,L as BindingBehavior,ss as Breadcrumb,es as BreadcrumbItem,ps as Button,Ct as CSSDirective,fs as Calendar,Os as CalendarTitleTemplate,Ms as Card,ds as CheckableFormAssociated,Ns as Checkbox,Gt as ChildrenBehavior,Gs as Combobox,Xs as ComboboxAutocomplete,Je as ComponentPresentation,me as Container,he as ContainerConfiguration,Ne as ContainerImpl,ft as Controller,pe as DI,c as DOM,ws as DataGrid,Is as DataGridCell,bs as DataGridCellTypes,Cs as DataGridRow,ys as DataGridRowTypes,vs as DateFormatter,ti as DefaultComponentPresentation,le as DefaultResolver,ms as DelegatesARIAButton,Qs as DelegatesARIACombobox,zi as DelegatesARIALink,_s as DelegatesARIAListbox,Us as DelegatesARIAListboxOption,Zn as DelegatesARIASearch,ir as DelegatesARIASelect,Dn as DelegatesARIATextbox,Pr as DelegatesARIAToolbar,ko as DesignSystem,bo as DesignToken,Uo as Dialog,Xo as Disclosure,Zo as Divider,Qo as DividerRole,yo as ElementDisambiguation,Y as ElementStyles,b as ExecutionContext,i as FAST,bt as FASTElement,ut as FASTElementDefinition,Fe as FactoryImpl,en as Flipper,Jo as FlipperDirection,_i as FlyoutPosBottom,Yi as FlyoutPosBottomFill,Wi as FlyoutPosTallest,Xi as FlyoutPosTallestFill,ji as FlyoutPosTop,Ki as FlyoutPosTopFill,hs as FormAssociated,ei as FoundationElement,si as FoundationElementRegistry,gs as GenerateHeaderOptions,F as HTMLBindingDirective,C as HTMLDirective,j as HTMLView,_n as HorizontalScroll,js as Listbox,on as ListboxElement,qs as ListboxOption,jr as MatchMediaBehavior,_r as MatchMediaStyleSheetBehavior,En as Menu,$n as MenuItem,xn as MenuItemRole,Pn as NumberField,m as Observable,fn as Picker,hn as PickerList,cn as PickerListItem,rn as PickerMenu,ln as PickerMenuOption,p as PropertyChangeNotifier,Xr as PropertyStyleSheetBehavior,jn as Radio,Nn as RadioGroup,Lt as RefBehavior,Ue as Registration,Ut as RepeatBehavior,jt as RepeatDirective,re as ResolverBuilder,Re as ResolverImpl,Qn as Search,er as Select,Ws as SelectPosition,ve as ServiceLocator,nr as Skeleton,mr as Slider,hr as SliderLabel,pr as SliderMode,Yt as SlottedBehavior,Zt as StartEnd,u as SubscriberSet,br as Switch,wr as Tab,Cr as TabPanel,Ir as Tabs,kr as TabsOrientation,x as TargetedHTMLDirective,Sr as TextArea,Or as TextAreaResize,An as TextField,Rn as TextFieldType,Lr as Toolbar,Hr as Tooltip,Vr as TooltipPosition,Br as TreeItem,Ur as TreeView,_ as ViewTemplate,se as accordionItemTemplate,ri as accordionTemplate,we as all,Mi as anchorTemplate,Ni as anchoredRegionTemplate,oi as applyMixins,lt as attr,Gi as avatarTemplate,Zi as badgeTemplate,nt as booleanConverter,ts as breadcrumbItemTemplate,is as breadcrumbTemplate,os as buttonTemplate,Rs as calendarCellTemplate,As as calendarRowTemplate,Ls as calendarTemplate,Ss as calendarWeekdayTemplate,Ps as cardTemplate,Vs as checkboxTemplate,Qt as children,Zs as comboboxTemplate,q as compileTemplate,to as composedContains,Js as composedParent,o as createMetadataLocator,wt as css,kt as cssPartial,yt as customElement,Kr as darkModeStylesheetBehavior,Ts as dataGridCellTemplate,Es as dataGridRowTemplate,xs as dataGridTemplate,y as defaultExecutionContext,To as dialogTemplate,Gr as disabledCursor,Yo as disclosureTemplate,Zr as display,Go as dividerTemplate,Wt as elements,s as emptyArray,Ft as enableArrayObservation,Jt as endSlotTemplate,ee as endTemplate,tn as flipperTemplate,Jr as focusVisible,Wr as forcedColorsStylesheetBehavior,Bi as getDirection,Qr as hidden,Wn as horizontalScrollTemplate,K as html,Ee as ignore,ge as inject,Ds as interactiveCalendarGridTemplate,Bs as isListboxOption,Nr as isTreeItemElement,ke as lazy,Yr as lightModeStylesheetBehavior,sn as listboxOptionTemplate,nn as listboxTemplate,kn as menuItemTemplate,In as menuTemplate,Te as newInstanceForScope,Oe as newInstanceOf,Fs as noninteractiveCalendarTemplate,rt as nullableNumberConverter,Tn as numberFieldTemplate,v as observable,Ie as optional,Cn as pickerListItemTemplate,yn as pickerListTemplate,bn as pickerMenuOptionTemplate,gn as pickerMenuTemplate,un as pickerTemplate,Q as prependToAdoptedStyleSheetsSymbol,Mn as progressRingTemplate,Hn as progressTemplate,zn as radioGroupTemplate,Bn as radioTemplate,Pt as ref,Ko as reflectAttributes,_t as repeat,wn as roleForMenuItem,Yn as searchTemplate,sr as selectTemplate,xe as singleton,or as skeletonTemplate,rr as sliderLabelTemplate,dr as sliderTemplate,Xt as slotted,te as startSlotTemplate,ie as startTemplate,as as supportsElementInternals,vr as switchTemplate,yr as tabPanelTemplate,xr as tabTemplate,$r as tabsTemplate,Rr as textAreaTemplate,Ar as textFieldTemplate,Dr as toolbarTemplate,Mr as tooltipTemplate,ye as transient,zr as treeItemTemplate,qr as treeViewTemplate,je as validateKey,f as volatile,zt as when,Kn as whitespaceFilter};
1468
+ `;class Ur extends ei{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Br.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case Ii:return void(e.length&&Br.focusItem(e[0]));case ki:return void(e.length&&Br.focusItem(e[e.length-1]));case yi:if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Br&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof Br&&e.parentElement instanceof Br&&Br.focusItem(e.parentElement)}return!1;case Ci:if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Br&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof Br&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case bi:return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case xi:return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case wi:return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Nr(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((t=>{Nr(t)&&(t.nested=this.nested)}))},this.isFocusableElement=t=>Nr(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),c.queueUpdate((()=>{this.setItems()}))}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Nr(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const s=i[i.indexOf(e)+t];hi(s)&&Br.focusItem(s)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some((t=>Nr(t)&&t.querySelector("[role='treeitem']")))}getVisibleNodes(){return function(t,e){if(!t||!e||!hi(t))return;return Array.from(t.querySelectorAll(e)).filter((t=>null!==t.offsetParent))}(this,"[role='treeitem']")||[]}}oe([lt({attribute:"render-collapsed-nodes"})],Ur.prototype,"renderCollapsedNodes",void 0),oe([v],Ur.prototype,"currentSelected",void 0),oe([v],Ur.prototype,"slottedTreeItems",void 0);class jr{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))}}class _r extends jr{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new _r(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!e?(t.$fastController.addStyles(i),e=s):!s&&e&&(t.$fastController.removeStyles(i),e=s)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Wr=_r.with(window.matchMedia("(forced-colors)")),Kr=_r.with(window.matchMedia("(prefers-color-scheme: dark)")),Yr=_r.with(window.matchMedia("(prefers-color-scheme: light)"));class Xr{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){m.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){m.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)}}const Gr="not-allowed",Qr=":host([hidden]){display:none}";function Zr(t){return`${Qr}:host{display:${t}}`}const Jr=function(){if("boolean"==typeof di)return di;if("undefined"==typeof window||!window.document||!window.document.createElement)return di=!1,di;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),di=!0}catch(t){di=!1}finally{document.head.removeChild(t)}return di}()?"focus-visible":"focus";export{t as $global,Vi as ARIAGlobalStatesAndProperties,Pi as Accordion,Li as AccordionExpandMode,ni as AccordionItem,Hi as Anchor,qi as AnchoredRegion,w as AttachedBehaviorHTMLDirective,ot as AttributeConfiguration,at as AttributeDefinition,Qi as Avatar,Ji as Badge,Vn as BaseProgress,L as BindingBehavior,ss as Breadcrumb,es as BreadcrumbItem,ps as Button,Ct as CSSDirective,fs as Calendar,Os as CalendarTitleTemplate,Ms as Card,ds as CheckableFormAssociated,Ns as Checkbox,Gt as ChildrenBehavior,Gs as Combobox,Xs as ComboboxAutocomplete,Je as ComponentPresentation,me as Container,he as ContainerConfiguration,Ne as ContainerImpl,ft as Controller,pe as DI,c as DOM,ws as DataGrid,ks as DataGridCell,bs as DataGridCellTypes,Cs as DataGridRow,ys as DataGridRowTypes,vs as DateFormatter,ti as DefaultComponentPresentation,le as DefaultResolver,ms as DelegatesARIAButton,Qs as DelegatesARIACombobox,zi as DelegatesARIALink,_s as DelegatesARIAListbox,Us as DelegatesARIAListboxOption,Zn as DelegatesARIASearch,ir as DelegatesARIASelect,Dn as DelegatesARIATextbox,Pr as DelegatesARIAToolbar,Io as DesignSystem,bo as DesignToken,Uo as Dialog,Xo as Disclosure,Zo as Divider,Qo as DividerRole,yo as ElementDisambiguation,Y as ElementStyles,b as ExecutionContext,i as FAST,bt as FASTElement,ut as FASTElementDefinition,Fe as FactoryImpl,en as Flipper,Jo as FlipperDirection,_i as FlyoutPosBottom,Yi as FlyoutPosBottomFill,Wi as FlyoutPosTallest,Xi as FlyoutPosTallestFill,ji as FlyoutPosTop,Ki as FlyoutPosTopFill,hs as FormAssociated,ei as FoundationElement,si as FoundationElementRegistry,gs as GenerateHeaderOptions,F as HTMLBindingDirective,C as HTMLDirective,j as HTMLView,_n as HorizontalScroll,js as Listbox,on as ListboxElement,qs as ListboxOption,jr as MatchMediaBehavior,_r as MatchMediaStyleSheetBehavior,En as Menu,$n as MenuItem,xn as MenuItemRole,Pn as NumberField,m as Observable,fn as Picker,hn as PickerList,cn as PickerListItem,rn as PickerMenu,ln as PickerMenuOption,p as PropertyChangeNotifier,Xr as PropertyStyleSheetBehavior,jn as Radio,Nn as RadioGroup,Lt as RefBehavior,Ue as Registration,Ut as RepeatBehavior,jt as RepeatDirective,re as ResolverBuilder,Re as ResolverImpl,Qn as Search,er as Select,Ws as SelectPosition,ve as ServiceLocator,nr as Skeleton,mr as Slider,hr as SliderLabel,pr as SliderMode,Yt as SlottedBehavior,Zt as StartEnd,u as SubscriberSet,br as Switch,wr as Tab,Cr as TabPanel,kr as Tabs,Ir as TabsOrientation,x as TargetedHTMLDirective,Sr as TextArea,Or as TextAreaResize,An as TextField,Rn as TextFieldType,Lr as Toolbar,Hr as Tooltip,Vr as TooltipPosition,Br as TreeItem,Ur as TreeView,_ as ViewTemplate,se as accordionItemTemplate,ri as accordionTemplate,we as all,Mi as anchorTemplate,Ni as anchoredRegionTemplate,oi as applyMixins,lt as attr,Gi as avatarTemplate,Zi as badgeTemplate,nt as booleanConverter,ts as breadcrumbItemTemplate,is as breadcrumbTemplate,os as buttonTemplate,Rs as calendarCellTemplate,As as calendarRowTemplate,Ls as calendarTemplate,Ss as calendarWeekdayTemplate,Ps as cardTemplate,Vs as checkboxTemplate,Qt as children,Zs as comboboxTemplate,q as compileTemplate,to as composedContains,Js as composedParent,o as createMetadataLocator,wt as css,It as cssPartial,yt as customElement,Kr as darkModeStylesheetBehavior,Ts as dataGridCellTemplate,Es as dataGridRowTemplate,xs as dataGridTemplate,y as defaultExecutionContext,To as dialogTemplate,Gr as disabledCursor,Yo as disclosureTemplate,Zr as display,Go as dividerTemplate,Wt as elements,s as emptyArray,Ft as enableArrayObservation,Jt as endSlotTemplate,ee as endTemplate,tn as flipperTemplate,Jr as focusVisible,Wr as forcedColorsStylesheetBehavior,Bi as getDirection,Qr as hidden,Wn as horizontalScrollTemplate,K as html,Ee as ignore,ge as inject,Ds as interactiveCalendarGridTemplate,Bs as isListboxOption,Nr as isTreeItemElement,Ie as lazy,Yr as lightModeStylesheetBehavior,sn as listboxOptionTemplate,nn as listboxTemplate,In as menuItemTemplate,kn as menuTemplate,Te as newInstanceForScope,Oe as newInstanceOf,Fs as noninteractiveCalendarTemplate,rt as nullableNumberConverter,Tn as numberFieldTemplate,v as observable,ke as optional,Cn as pickerListItemTemplate,yn as pickerListTemplate,bn as pickerMenuOptionTemplate,gn as pickerMenuTemplate,un as pickerTemplate,Q as prependToAdoptedStyleSheetsSymbol,Mn as progressRingTemplate,Hn as progressTemplate,zn as radioGroupTemplate,Bn as radioTemplate,Pt as ref,Ko as reflectAttributes,_t as repeat,wn as roleForMenuItem,Yn as searchTemplate,sr as selectTemplate,xe as singleton,or as skeletonTemplate,rr as sliderLabelTemplate,dr as sliderTemplate,Xt as slotted,te as startSlotTemplate,ie as startTemplate,as as supportsElementInternals,vr as switchTemplate,yr as tabPanelTemplate,xr as tabTemplate,$r as tabsTemplate,Rr as textAreaTemplate,Ar as textFieldTemplate,Dr as toolbarTemplate,Mr as tooltipTemplate,ye as transient,zr as treeItemTemplate,qr as treeViewTemplate,je as validateKey,f as volatile,zt as when,Kn as whitespaceFilter};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ni/fast-foundation",
3
3
  "description": "A library of Web Component building blocks",
4
4
  "sideEffects": false,
5
- "version": "10.0.2",
5
+ "version": "10.1.1",
6
6
  "author": {
7
7
  "name": "National Instruments"
8
8
  },