@nysds/components 1.1.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nysds.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(_,p1){typeof exports=="object"&&typeof module<"u"?p1(exports):typeof define=="function"&&define.amd?define(["exports"],p1):(_=typeof globalThis<"u"?globalThis:_||self,p1(_.NYSDS={}))})(this,function(_){"use strict";/*!
2
- * New York State Design System (v1.1.9)
1
+ (function(_,C1){typeof exports=="object"&&typeof module<"u"?C1(exports):typeof define=="function"&&define.amd?define(["exports"],C1):(_=typeof globalThis<"u"?globalThis:_||self,C1(_.NYSDS={}))})(this,function(_){"use strict";/*!
2
+ * New York State Design System (v1.2.0)
3
3
  * Description: A design system for New York State's digital products.
4
4
  * Repository: https://github.com/its-hcd/nysds
5
5
  * License: MIT
@@ -7,17 +7,17 @@
7
7
  * @license
8
8
  * Copyright 2019 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */var ss,S1,E1,B,c1,h1,A1,d1,g,u1,s1,r1,y1;const p1=globalThis,m2=p1.ShadowRoot&&(p1.ShadyCSS===void 0||p1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x2=Symbol(),le=new WeakMap;let ce=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==x2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(m2&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=le.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&le.set(e,t))}return t}toString(){return this.cssText}};const cs=o=>new ce(typeof o=="string"?o:o+"",void 0,x2),b=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1],o[0]);return new ce(e,o,x2)},hs=(o,t)=>{if(m2)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=p1.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},he=m2?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return cs(e)})(o):o;/**
10
+ */var ss,E1,A1,B,h1,d1,L1,y1,g,u1,s1,r1,p1;const C1=globalThis,m2=C1.ShadowRoot&&(C1.ShadyCSS===void 0||C1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x2=Symbol(),le=new WeakMap;let ce=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==x2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(m2&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=le.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&le.set(e,t))}return t}toString(){return this.cssText}};const cs=o=>new ce(typeof o=="string"?o:o+"",void 0,x2),b=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1],o[0]);return new ce(e,o,x2)},hs=(o,t)=>{if(m2)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=C1.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},he=m2?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return cs(e)})(o):o;/**
11
11
  * @license
12
12
  * Copyright 2017 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const{is:ds,defineProperty:us,getOwnPropertyDescriptor:ys,getOwnPropertyNames:ps,getOwnPropertySymbols:Cs,getPrototypeOf:fs}=Object,C1=globalThis,de=C1.trustedTypes,vs=de?de.emptyScript:"",w2=C1.reactiveElementPolyfillSupport,ht=(o,t)=>o,Bt={toAttribute(o,t){switch(t){case Boolean:o=o?vs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},k2=(o,t)=>!ds(o,t),ue={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:k2};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),C1.litPropertyMetadata??(C1.litPropertyMetadata=new WeakMap);let W1=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ue){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&us(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=ys(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const a=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ue}static _$Ei(){if(this.hasOwnProperty(ht("elementProperties")))return;const t=fs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ht("properties"))){const e=this.properties,s=[...ps(e),...Cs(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(he(r))}else t!==void 0&&e.push(he(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hs(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const n=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:Bt).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const n=s.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)==null?void 0:i.fromAttribute)!==void 0?n.converter:Bt;this._$Em=r,this[r]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??k2)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};W1.elementStyles=[],W1.shadowRootOptions={mode:"open"},W1[ht("elementProperties")]=new Map,W1[ht("finalized")]=new Map,w2==null||w2({ReactiveElement:W1}),(C1.reactiveElementVersions??(C1.reactiveElementVersions=[])).push("2.0.4");/**
14
+ */const{is:ds,defineProperty:ys,getOwnPropertyDescriptor:us,getOwnPropertyNames:ps,getOwnPropertySymbols:Cs,getPrototypeOf:fs}=Object,f1=globalThis,de=f1.trustedTypes,vs=de?de.emptyScript:"",w2=f1.reactiveElementPolyfillSupport,ht=(o,t)=>o,Bt={toAttribute(o,t){switch(t){case Boolean:o=o?vs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},k2=(o,t)=>!ds(o,t),ye={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:k2};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),f1.litPropertyMetadata??(f1.litPropertyMetadata=new WeakMap);let W1=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ye){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&ys(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=us(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const a=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ye}static _$Ei(){if(this.hasOwnProperty(ht("elementProperties")))return;const t=fs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ht("properties"))){const e=this.properties,s=[...ps(e),...Cs(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(he(r))}else t!==void 0&&e.push(he(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hs(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const n=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:Bt).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const n=s.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)==null?void 0:i.fromAttribute)!==void 0?n.converter:Bt;this._$Em=r,this[r]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??k2)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};W1.elementStyles=[],W1.shadowRootOptions={mode:"open"},W1[ht("elementProperties")]=new Map,W1[ht("finalized")]=new Map,w2==null||w2({ReactiveElement:W1}),(f1.reactiveElementVersions??(f1.reactiveElementVersions=[])).push("2.0.4");/**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const dt=globalThis,Rt=dt.trustedTypes,ye=Rt?Rt.createPolicy("lit-html",{createHTML:o=>o}):void 0,pe="$lit$",f1=`lit$${Math.random().toFixed(9).slice(2)}$`,Ce="?"+f1,gs=`<${Ce}>`,L1=document,ut=()=>L1.createComment(""),yt=o=>o===null||typeof o!="object"&&typeof o!="function",$2=Array.isArray,_s=o=>$2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",S2=`[
19
- \f\r]`,pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,ve=/>/g,M1=RegExp(`>|${S2}(?:([^\\s"'>=/]+)(${S2}*=${S2}*(?:[^
20
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,_e=/"/g,be=/^(?:script|style|textarea|title)$/i,bs=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),d=bs(1),Y1=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),me=new WeakMap,D1=L1.createTreeWalker(L1,129);function xe(o,t){if(!$2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ye!==void 0?ye.createHTML(t):t}const ms=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=pt;for(let a=0;a<e;a++){const l=o[a];let y,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===pt?u[1]==="!--"?n=fe:u[1]!==void 0?n=ve:u[2]!==void 0?(be.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=M1):u[3]!==void 0&&(n=M1):n===M1?u[0]===">"?(n=r??pt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,y=u[1],n=u[3]===void 0?M1:u[3]==='"'?_e:ge):n===_e||n===ge?n=M1:n===fe||n===ve?n=pt:(n=M1,r=void 0);const C=n===M1&&o[a+1].startsWith("/>")?" ":"";i+=n===pt?l+gs:h>=0?(s.push(y),l.slice(0,h)+pe+l.slice(h)+f1+C):l+f1+(h===-2?a:C)}return[xe(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let E2=class rs{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[y,u]=ms(t,e);if(this.el=rs.createElement(y,s),D1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=D1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(pe)){const p=u[n++],C=r.getAttribute(h).split(f1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?ws:M[1]==="?"?ks:M[1]==="@"?$s:Nt}),r.removeAttribute(h)}else h.startsWith(f1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(be.test(r.tagName)){const h=r.textContent.split(f1),p=h.length-1;if(p>0){r.textContent=Rt?Rt.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],ut()),D1.nextNode(),l.push({type:2,index:++i});r.append(h[p],ut())}}}else if(r.nodeType===8)if(r.data===Ce)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(f1,h+1))!==-1;)l.push({type:7,index:i}),h+=f1.length-1}i++}}static createElement(t,e){const s=L1.createElement("template");return s.innerHTML=t,s}};function K1(o,t,e=o,s){var n,a;if(t===Y1)return t;let r=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const i=yt(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==i&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=K1(o,r._$AS(o,t.values),r,s)),t}let xs=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??L1).importNode(e,!0);D1.currentNode=r;let i=D1.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let y;l.type===2?y=new A2(i,i.nextSibling,this,t):l.type===1?y=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(y=new Ss(i,this,t)),this._$AV.push(y),l=s[++a]}n!==(l==null?void 0:l.index)&&(i=D1.nextNode(),n++)}return D1.currentNode=L1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},A2=class os{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K1(this,t,e),yt(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==Y1&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_s(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&yt(this._$AH)?this._$AA.nextSibling.data=t:this.T(L1.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=E2.createElement(xe(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===r)this._$AH.p(e);else{const n=new xs(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=me.get(t.strings);return e===void 0&&me.set(t.strings,e=new E2(t)),e}k(t){$2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new os(this.O(ut()),this.O(ut()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},Nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=K1(this,t,e,0),n=!yt(t)||t!==this._$AH&&t!==Y1,n&&(this._$AH=t);else{const a=t;let l,y;for(t=i[0],l=0;l<i.length-1;l++)y=K1(this,a[s+l],e,l),y===Y1&&(y=this._$AH[l]),n||(n=!yt(y)||y!==this._$AH[l]),y===S?t=S:t!==S&&(t+=(y??"")+i[l+1]),this._$AH[l]=y}n&&!r&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ws=class extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}},ks=class extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}},$s=class extends Nt{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=K1(this,t,e,0)??S)===Y1)return;const s=this._$AH,r=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==S&&(s===S||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},Ss=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){K1(this,t)}};const L2=dt.litHtmlPolyfillSupport;L2==null||L2(E2,A2),(dt.litHtmlVersions??(dt.litHtmlVersions=[])).push("3.2.1");const Es=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const i=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new A2(t.insertBefore(ut(),i),i,void 0,e??{})}return r._$AI(o),r};/**
18
+ */const dt=globalThis,Rt=dt.trustedTypes,ue=Rt?Rt.createPolicy("lit-html",{createHTML:o=>o}):void 0,pe="$lit$",v1=`lit$${Math.random().toFixed(9).slice(2)}$`,Ce="?"+v1,gs=`<${Ce}>`,M1=document,yt=()=>M1.createComment(""),ut=o=>o===null||typeof o!="object"&&typeof o!="function",$2=Array.isArray,_s=o=>$2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",S2=`[
19
+ \f\r]`,pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,ve=/>/g,D1=RegExp(`>|${S2}(?:([^\\s"'>=/]+)(${S2}*=${S2}*(?:[^
20
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,_e=/"/g,be=/^(?:script|style|textarea|title)$/i,bs=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),d=bs(1),Y1=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),me=new WeakMap,H1=M1.createTreeWalker(M1,129);function xe(o,t){if(!$2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(t):t}const ms=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=pt;for(let a=0;a<e;a++){const l=o[a];let u,y,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,y=n.exec(l),y!==null);)p=n.lastIndex,n===pt?y[1]==="!--"?n=fe:y[1]!==void 0?n=ve:y[2]!==void 0?(be.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=D1):y[3]!==void 0&&(n=D1):n===D1?y[0]===">"?(n=r??pt,h=-1):y[1]===void 0?h=-2:(h=n.lastIndex-y[2].length,u=y[1],n=y[3]===void 0?D1:y[3]==='"'?_e:ge):n===_e||n===ge?n=D1:n===fe||n===ve?n=pt:(n=D1,r=void 0);const C=n===D1&&o[a+1].startsWith("/>")?" ":"";i+=n===pt?l+gs:h>=0?(s.push(u),l.slice(0,h)+pe+l.slice(h)+v1+C):l+v1+(h===-2?a:C)}return[xe(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let E2=class rs{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[u,y]=ms(t,e);if(this.el=rs.createElement(u,s),H1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=H1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(pe)){const p=y[n++],C=r.getAttribute(h).split(v1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?ws:M[1]==="?"?ks:M[1]==="@"?$s:Nt}),r.removeAttribute(h)}else h.startsWith(v1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(be.test(r.tagName)){const h=r.textContent.split(v1),p=h.length-1;if(p>0){r.textContent=Rt?Rt.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],yt()),H1.nextNode(),l.push({type:2,index:++i});r.append(h[p],yt())}}}else if(r.nodeType===8)if(r.data===Ce)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(v1,h+1))!==-1;)l.push({type:7,index:i}),h+=v1.length-1}i++}}static createElement(t,e){const s=M1.createElement("template");return s.innerHTML=t,s}};function K1(o,t,e=o,s){var n,a;if(t===Y1)return t;let r=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const i=ut(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==i&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=K1(o,r._$AS(o,t.values),r,s)),t}let xs=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??M1).importNode(e,!0);H1.currentNode=r;let i=H1.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new A2(i,i.nextSibling,this,t):l.type===1?u=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(u=new Ss(i,this,t)),this._$AV.push(u),l=s[++a]}n!==(l==null?void 0:l.index)&&(i=H1.nextNode(),n++)}return H1.currentNode=M1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},A2=class os{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K1(this,t,e),ut(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==Y1&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_s(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(M1.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=E2.createElement(xe(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===r)this._$AH.p(e);else{const n=new xs(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=me.get(t.strings);return e===void 0&&me.set(t.strings,e=new E2(t)),e}k(t){$2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new os(this.O(yt()),this.O(yt()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},Nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=K1(this,t,e,0),n=!ut(t)||t!==this._$AH&&t!==Y1,n&&(this._$AH=t);else{const a=t;let l,u;for(t=i[0],l=0;l<i.length-1;l++)u=K1(this,a[s+l],e,l),u===Y1&&(u=this._$AH[l]),n||(n=!ut(u)||u!==this._$AH[l]),u===S?t=S:t!==S&&(t+=(u??"")+i[l+1]),this._$AH[l]=u}n&&!r&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ws=class extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}},ks=class extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}},$s=class extends Nt{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=K1(this,t,e,0)??S)===Y1)return;const s=this._$AH,r=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==S&&(s===S||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},Ss=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){K1(this,t)}};const L2=dt.litHtmlPolyfillSupport;L2==null||L2(E2,A2),(dt.litHtmlVersions??(dt.litHtmlVersions=[])).push("3.2.1");const Es=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const i=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new A2(t.insertBefore(yt(),i),i,void 0,e??{})}return r._$AI(o),r};/**
21
21
  * @license
22
22
  * Copyright 2017 Google LLC
23
23
  * SPDX-License-Identifier: BSD-3-Clause
@@ -29,7 +29,7 @@
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
- */function H1(o){return c({...o,state:!0,attribute:!1})}const Ms=b`
32
+ */function g1(o){return c({...o,state:!0,attribute:!1})}const Ms=b`
33
33
  :host {
34
34
  /* Global Alert Styles */
35
35
  --_nys-alert-border-width: var(--nys-border-width-lg, 4px);
@@ -827,7 +827,7 @@
827
827
  .nys-icon--flip-both {
828
828
  transform: scale(-1, -1);
829
829
  }
830
- `;var js=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,Q1=(o,t,e,s)=>{for(var r=s>1?void 0:s?Fs(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&js(t,e,r),r},vt;const V1=(vt=class extends f{constructor(){super(...arguments),this.name="",this.label="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(o){this._size=vt.VALID_TYPES.includes(o)?o:"sm"}getIcon(){const o=Ns[this.name],t=!!this.label;if(!o)return null;const e=new DOMParser().parseFromString(o,"image/svg+xml").documentElement;return e instanceof SVGElement?(e.setAttribute("role","img"),e.setAttribute("aria-label",t?this.label:""),e.setAttribute("aria-hidden",t?"false":"true"),e.style.rotate=`${this.rotate}deg`,e.style.color=this.color||"currentcolor",e.classList.add(`nys-icon--${this.size}`),e.classList.add("nys-icon--svg"),this.flip&&e.classList.add(`nys-icon--flip-${this.flip}`),e):null}render(){const o=this.getIcon();return o?d`${o}`:null}},vt.styles=qs,vt.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","48","64"],vt);Q1([X1({type:String,reflect:!0})],V1.prototype,"name",2),Q1([X1({type:String})],V1.prototype,"label",2),Q1([X1({type:String})],V1.prototype,"rotate",2),Q1([X1({type:String})],V1.prototype,"flip",2),Q1([X1({type:String})],V1.prototype,"color",2),Q1([X1({reflect:!0})],V1.prototype,"size",1);let Gs=V1;customElements.get("nys-icon")||customElements.define("nys-icon",Gs);/*!
830
+ `;var js=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,Q1=(o,t,e,s)=>{for(var r=s>1?void 0:s?Fs(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&js(t,e,r),r},vt;const V1=(vt=class extends f{constructor(){super(...arguments),this.name="",this.label="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(o){this._size=vt.VALID_TYPES.includes(o)?o:"sm"}getIcon(){const o=Ns[this.name];if(!o)return null;const t=new DOMParser().parseFromString(o,"image/svg+xml").documentElement;return t instanceof SVGElement?(t.setAttribute("role","img"),this.label?(t.setAttribute("aria-label",this.label),t.removeAttribute("aria-hidden")):(t.setAttribute("aria-hidden","true"),t.removeAttribute("aria-label")),t.style.rotate=`${this.rotate}deg`,t.style.color=this.color||"currentcolor",t.classList.add(`nys-icon--${this.size}`),t.classList.add("nys-icon--svg"),this.flip&&t.classList.add(`nys-icon--flip-${this.flip}`),t):null}render(){const o=this.getIcon();return o?d`${o}`:null}},vt.styles=qs,vt.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","48","64"],vt);Q1([X1({type:String,reflect:!0})],V1.prototype,"name",2),Q1([X1({type:String})],V1.prototype,"label",2),Q1([X1({type:String})],V1.prototype,"rotate",2),Q1([X1({type:String})],V1.prototype,"flip",2),Q1([X1({type:String})],V1.prototype,"color",2),Q1([X1({reflect:!0})],V1.prototype,"size",1);let Gs=V1;customElements.get("nys-icon")||customElements.define("nys-icon",Gs);/*!
831
831
  *
832
832
  * ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
833
833
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
@@ -1259,23 +1259,23 @@
1259
1259
  * @license
1260
1260
  * Copyright 2017 Google LLC
1261
1261
  * SPDX-License-Identifier: BSD-3-Clause
1262
- */const Wt=globalThis,Yt=Wt.trustedTypes,ze=Yt?Yt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Pe="$lit$",v1=`lit$${Math.random().toFixed(9).slice(2)}$`,Oe="?"+v1,a7=`<${Oe}>`,U1=document,Kt=()=>U1.createComment(""),bt=o=>o===null||typeof o!="object"&&typeof o!="function",z2=Array.isArray,l7=o=>z2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",P2=`[
1262
+ */const Wt=globalThis,Yt=Wt.trustedTypes,ze=Yt?Yt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Pe="$lit$",_1=`lit$${Math.random().toFixed(9).slice(2)}$`,Oe="?"+_1,a7=`<${Oe}>`,U1=document,Kt=()=>U1.createComment(""),bt=o=>o===null||typeof o!="object"&&typeof o!="function",z2=Array.isArray,l7=o=>z2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",P2=`[
1263
1263
  \f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ze=/-->/g,Ie=/>/g,z1=RegExp(`>|${P2}(?:([^\\s"'>=/]+)(${P2}*=${P2}*(?:[^
1264
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Te=/'/g,Be=/"/g,Re=/^(?:script|style|textarea|title)$/i,xt=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),Ne=new WeakMap,P1=U1.createTreeWalker(U1,129);function qe(o,t){if(!z2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ze!==void 0?ze.createHTML(t):t}const c7=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=mt;for(let a=0;a<e;a++){const l=o[a];let y,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===mt?u[1]==="!--"?n=Ze:u[1]!==void 0?n=Ie:u[2]!==void 0?(Re.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=z1):u[3]!==void 0&&(n=z1):n===z1?u[0]===">"?(n=r??mt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,y=u[1],n=u[3]===void 0?z1:u[3]==='"'?Be:Te):n===Be||n===Te?n=z1:n===Ze||n===Ie?n=mt:(n=z1,r=void 0);const C=n===z1&&o[a+1].startsWith("/>")?" ":"";i+=n===mt?l+a7:h>=0?(s.push(y),l.slice(0,h)+Pe+l.slice(h)+v1+C):l+v1+(h===-2?a:C)}return[qe(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let O2=class ns{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[y,u]=c7(t,e);if(this.el=ns.createElement(y,s),P1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=P1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(Pe)){const p=u[n++],C=r.getAttribute(h).split(v1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?d7:M[1]==="?"?u7:M[1]==="@"?y7:Jt}),r.removeAttribute(h)}else h.startsWith(v1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(Re.test(r.tagName)){const h=r.textContent.split(v1),p=h.length-1;if(p>0){r.textContent=Yt?Yt.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],Kt()),P1.nextNode(),l.push({type:2,index:++i});r.append(h[p],Kt())}}}else if(r.nodeType===8)if(r.data===Oe)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(v1,h+1))!==-1;)l.push({type:7,index:i}),h+=v1.length-1}i++}}static createElement(t,e){const s=U1.createElement("template");return s.innerHTML=t,s}};function et(o,t,e=o,s){var r,i;if(t===xt)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const a=bt(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==a&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=et(o,n._$AS(o,t.values),n,s)),t}let h7=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??U1).importNode(e,!0);P1.currentNode=r;let i=P1.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let y;l.type===2?y=new je(i,i.nextSibling,this,t):l.type===1?y=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(y=new p7(i,this,t)),this._$AV.push(y),l=s[++a]}n!==(l==null?void 0:l.index)&&(i=P1.nextNode(),n++)}return P1.currentNode=U1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},je=class is{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),bt(t)?t===E||t==null||t===""?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):l7(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&bt(this._$AH)?this._$AA.nextSibling.data=t:this.T(U1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=O2.createElement(qe(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new h7(i,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let e=Ne.get(t.strings);return e===void 0&&Ne.set(t.strings,e=new O2(t)),e}k(t){z2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new is(this.O(Kt()),this.O(Kt()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},Jt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=et(this,t,e,0),n=!bt(t)||t!==this._$AH&&t!==xt,n&&(this._$AH=t);else{const a=t;let l,y;for(t=i[0],l=0;l<i.length-1;l++)y=et(this,a[s+l],e,l),y===xt&&(y=this._$AH[l]),n||(n=!bt(y)||y!==this._$AH[l]),y===E?t=E:t!==E&&(t+=(y??"")+i[l+1]),this._$AH[l]=y}n&&!r&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},d7=class extends Jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}},u7=class extends Jt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}},y7=class extends Jt{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=et(this,t,e,0)??E)===xt)return;const s=this._$AH,r=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==E&&(s===E||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},p7=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}};const Fe=Wt.litHtmlPolyfillSupport;Fe==null||Fe(O2,je),(Wt.litHtmlVersions??(Wt.litHtmlVersions=[])).push("3.2.1");/**
1264
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Te=/'/g,Be=/"/g,Re=/^(?:script|style|textarea|title)$/i,xt=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),Ne=new WeakMap,P1=U1.createTreeWalker(U1,129);function qe(o,t){if(!z2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ze!==void 0?ze.createHTML(t):t}const c7=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=mt;for(let a=0;a<e;a++){const l=o[a];let u,y,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,y=n.exec(l),y!==null);)p=n.lastIndex,n===mt?y[1]==="!--"?n=Ze:y[1]!==void 0?n=Ie:y[2]!==void 0?(Re.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=z1):y[3]!==void 0&&(n=z1):n===z1?y[0]===">"?(n=r??mt,h=-1):y[1]===void 0?h=-2:(h=n.lastIndex-y[2].length,u=y[1],n=y[3]===void 0?z1:y[3]==='"'?Be:Te):n===Be||n===Te?n=z1:n===Ze||n===Ie?n=mt:(n=z1,r=void 0);const C=n===z1&&o[a+1].startsWith("/>")?" ":"";i+=n===mt?l+a7:h>=0?(s.push(u),l.slice(0,h)+Pe+l.slice(h)+_1+C):l+_1+(h===-2?a:C)}return[qe(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let O2=class ns{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[u,y]=c7(t,e);if(this.el=ns.createElement(u,s),P1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=P1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(Pe)){const p=y[n++],C=r.getAttribute(h).split(_1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?d7:M[1]==="?"?y7:M[1]==="@"?u7:Jt}),r.removeAttribute(h)}else h.startsWith(_1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(Re.test(r.tagName)){const h=r.textContent.split(_1),p=h.length-1;if(p>0){r.textContent=Yt?Yt.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],Kt()),P1.nextNode(),l.push({type:2,index:++i});r.append(h[p],Kt())}}}else if(r.nodeType===8)if(r.data===Oe)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(_1,h+1))!==-1;)l.push({type:7,index:i}),h+=_1.length-1}i++}}static createElement(t,e){const s=U1.createElement("template");return s.innerHTML=t,s}};function et(o,t,e=o,s){var r,i;if(t===xt)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const a=bt(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==a&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=et(o,n._$AS(o,t.values),n,s)),t}let h7=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??U1).importNode(e,!0);P1.currentNode=r;let i=P1.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new je(i,i.nextSibling,this,t):l.type===1?u=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(u=new p7(i,this,t)),this._$AV.push(u),l=s[++a]}n!==(l==null?void 0:l.index)&&(i=P1.nextNode(),n++)}return P1.currentNode=U1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},je=class is{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),bt(t)?t===E||t==null||t===""?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):l7(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&bt(this._$AH)?this._$AA.nextSibling.data=t:this.T(U1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=O2.createElement(qe(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new h7(i,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let e=Ne.get(t.strings);return e===void 0&&Ne.set(t.strings,e=new O2(t)),e}k(t){z2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new is(this.O(Kt()),this.O(Kt()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},Jt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=et(this,t,e,0),n=!bt(t)||t!==this._$AH&&t!==xt,n&&(this._$AH=t);else{const a=t;let l,u;for(t=i[0],l=0;l<i.length-1;l++)u=et(this,a[s+l],e,l),u===xt&&(u=this._$AH[l]),n||(n=!bt(u)||u!==this._$AH[l]),u===E?t=E:t!==E&&(t+=(u??"")+i[l+1]),this._$AH[l]=u}n&&!r&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},d7=class extends Jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}},y7=class extends Jt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}},u7=class extends Jt{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=et(this,t,e,0)??E)===xt)return;const s=this._$AH,r=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==E&&(s===E||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},p7=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}};const Fe=Wt.litHtmlPolyfillSupport;Fe==null||Fe(O2,je),(Wt.litHtmlVersions??(Wt.litHtmlVersions=[])).push("3.2.1");/**
1265
1265
  * @license
1266
1266
  * Copyright 2018 Google LLC
1267
1267
  * SPDX-License-Identifier: BSD-3-Clause
1268
- */const g1=o=>o??E;var C7=Object.defineProperty,f7=Object.getOwnPropertyDescriptor,P=(o,t,e,s)=>{for(var r=s>1?void 0:s?f7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&C7(t,e,r),r};let v7=0;var G;const D=(G=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(o){this._size=G.VALID_SIZES.includes(o)?o:"md"}get variant(){return this._variant}set variant(o){this._variant=G.VALID_VARIANTS.includes(o)?o:"filled"}get type(){return this._type}set type(o){this._type=G.VALID_TYPES.includes(o)?o:"button"}get target(){return this._target}set target(o){this._target=G.VALID_TARGETS.includes(o)?o:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${v7++}`}_manageFormAction(o){typeof this.onClick=="function"&&this.onClick(o);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleClick(o){if(this.disabled){o.preventDefault();return}this._manageFormAction(o)}_handleKeydown(o){(o.code==="Space"||o.code==="Enter"||o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.disabled||this._manageFormAction(o))}render(){return d`
1268
+ */const b1=o=>o??E;var C7=Object.defineProperty,f7=Object.getOwnPropertyDescriptor,P=(o,t,e,s)=>{for(var r=s>1?void 0:s?f7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&C7(t,e,r),r};let v7=0;var G;const D=(G=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(o){this._size=G.VALID_SIZES.includes(o)?o:"md"}get variant(){return this._variant}set variant(o){this._variant=G.VALID_VARIANTS.includes(o)?o:"filled"}get type(){return this._type}set type(o){this._type=G.VALID_TYPES.includes(o)?o:"button"}get target(){return this._target}set target(o){this._target=G.VALID_TARGETS.includes(o)?o:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${v7++}`}_manageFormAction(o){typeof this.onClick=="function"&&this.onClick(o);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleClick(o){if(this.disabled){o.preventDefault();return}this._manageFormAction(o),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(o){(o.code==="Space"||o.code==="Enter"||o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.disabled||this._manageFormAction(o))}render(){return d`
1269
1269
  ${this.href?d`
1270
1270
  <div class="nys-button__linkwrapper">
1271
1271
  <a
1272
1272
  class="nys-button"
1273
- id=${g1(this.id)}
1274
- name=${g1(this.name?this.name:void 0)}
1273
+ id=${b1(this.id)}
1274
+ name=${b1(this.name?this.name:void 0)}
1275
1275
  ?disabled=${this.disabled}
1276
1276
  aria-disabled="${this.disabled?"true":"false"}"
1277
- form=${g1(this.form?this.form:void 0)}
1278
- value=${g1(this.value?this.value:void 0)}
1277
+ form=${b1(this.form?this.form:void 0)}
1278
+ value=${b1(this.value?this.value:void 0)}
1279
1279
  href=${this.href}
1280
1280
  target=${this.target}
1281
1281
  aria-label=${this.ariaLabel||this.label||"button"}
@@ -1295,11 +1295,11 @@
1295
1295
  `:d`
1296
1296
  <button
1297
1297
  class="nys-button"
1298
- id=${g1(this.id)}
1299
- name=${g1(this.name?this.name:void 0)}
1298
+ id=${b1(this.id)}
1299
+ name=${b1(this.name?this.name:void 0)}
1300
1300
  ?disabled=${this.disabled}
1301
- form=${g1(this.form?this.form:void 0)}
1302
- value=${g1(this.value?this.value:void 0)}
1301
+ form=${b1(this.form?this.form:void 0)}
1302
+ value=${b1(this.value?this.value:void 0)}
1303
1303
  type=${this.type}
1304
1304
  aria-label=${this.ariaLabel||this.label||"button"}
1305
1305
  @click=${this._handleClick}
@@ -1316,7 +1316,7 @@
1316
1316
  </slot>`:""}
1317
1317
  </button>
1318
1318
  `}
1319
- `}},G.VALID_SIZES=["sm","md","lg"],G.VALID_VARIANTS=["filled","outline","ghost","text"],G.VALID_TYPES=["submit","reset","button"],G.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],G.styles=i7,G.formAssociated=!0,G);P([z({type:String})],D.prototype,"id",2),P([z({type:String,reflect:!0})],D.prototype,"name",2),P([z({reflect:!0})],D.prototype,"size",1),P([z({type:Boolean,reflect:!0})],D.prototype,"fullWidth",2),P([z({reflect:!0})],D.prototype,"variant",1),P([z({type:Boolean,reflect:!0})],D.prototype,"inverted",2),P([z({type:String})],D.prototype,"label",2),P([z({type:String})],D.prototype,"ariaLabel",2),P([z({type:String})],D.prototype,"prefixIcon",2),P([z({type:String})],D.prototype,"suffixIcon",2),P([z({type:Boolean,reflect:!0})],D.prototype,"disabled",2),P([z({type:String})],D.prototype,"form",2),P([z({type:String})],D.prototype,"value",2),P([z({reflect:!0})],D.prototype,"type",1),P([z({type:Function})],D.prototype,"onClick",2),P([z({type:String})],D.prototype,"href",2),P([z({reflect:!0})],D.prototype,"target",1);let g7=D;customElements.get("nys-button")||customElements.define("nys-button",g7);var _7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,q=(o,t,e,s)=>{for(var r=s>1?void 0:s?b7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&_7(t,e,r),r};let m7=0;const R=(S1=class extends f{constructor(){super(...arguments),this.id="",this.heading="",this.icon="",this.dismissible=!1,this.duration=0,this.text="",this.primaryAction="",this.secondaryAction="",this.primaryLabel="Learn more",this.secondaryLabel="Dismiss",this._alertClosed=!1,this._slotHasContent=!0,this._type="base",this._timeoutId=null}get type(){return this._type}set type(t){this._type=S1.VALID_TYPES.includes(t)?t:"base"}get ariaAttributes(){const t=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",e=t==="region"?`${this.type} alert`:"";return{role:t,ariaLabel:e}}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId()),this.duration>0&&(this._timeoutId=setTimeout(()=>{this._closeAlert()},this.duration))}disconnectedCallback(){this._timeoutId&&clearTimeout(this._timeoutId),super.disconnectedCallback()}firstUpdated(){this._checkSlotContent()}_generateUniqueId(){return`nys-alert-${Date.now()}-${m7++}`}_getIconName(){return this.icon?this.icon:this._checkAltNaming()}_checkAltNaming(){return this.type==="success"?"check_circle":this.type==="base"?"info":this.type==="danger"?"error":this.type==="emergency"?"emergency_home":this.type}_closeAlert(){this._alertClosed=!0,this.dispatchEvent(new CustomEvent("nys-alertClosed",{detail:{type:this.type,label:this.heading},bubbles:!0,composed:!0}))}async _checkSlotContent(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");if(t){const s=t.assignedNodes({flatten:!0}).filter(r=>{var i;return r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&((i=r.textContent)==null?void 0:i.trim())});await Promise.resolve(),this._slotHasContent=s.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var s,r;const{role:t,ariaLabel:e}=this.ariaAttributes;return d`
1319
+ `}},G.VALID_SIZES=["sm","md","lg"],G.VALID_VARIANTS=["filled","outline","ghost","text"],G.VALID_TYPES=["submit","reset","button"],G.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],G.styles=i7,G.formAssociated=!0,G);P([z({type:String})],D.prototype,"id",2),P([z({type:String,reflect:!0})],D.prototype,"name",2),P([z({reflect:!0})],D.prototype,"size",1),P([z({type:Boolean,reflect:!0})],D.prototype,"fullWidth",2),P([z({reflect:!0})],D.prototype,"variant",1),P([z({type:Boolean,reflect:!0})],D.prototype,"inverted",2),P([z({type:String})],D.prototype,"label",2),P([z({type:String})],D.prototype,"ariaLabel",2),P([z({type:String})],D.prototype,"prefixIcon",2),P([z({type:String})],D.prototype,"suffixIcon",2),P([z({type:Boolean,reflect:!0})],D.prototype,"disabled",2),P([z({type:String})],D.prototype,"form",2),P([z({type:String})],D.prototype,"value",2),P([z({reflect:!0})],D.prototype,"type",1),P([z({type:Function})],D.prototype,"onClick",2),P([z({type:String})],D.prototype,"href",2),P([z({reflect:!0})],D.prototype,"target",1);let g7=D;customElements.get("nys-button")||customElements.define("nys-button",g7);var _7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,q=(o,t,e,s)=>{for(var r=s>1?void 0:s?b7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&_7(t,e,r),r};let m7=0;const R=(E1=class extends f{constructor(){super(...arguments),this.id="",this.heading="",this.icon="",this.dismissible=!1,this.duration=0,this.text="",this.primaryAction="",this.secondaryAction="",this.primaryLabel="Learn more",this.secondaryLabel="Dismiss",this._alertClosed=!1,this._slotHasContent=!0,this._type="base",this._timeoutId=null}get type(){return this._type}set type(t){this._type=E1.VALID_TYPES.includes(t)?t:"base"}get ariaAttributes(){const t=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",e=t==="region"?`${this.type} alert`:"";return{role:t,ariaLabel:e}}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId()),this.duration>0&&(this._timeoutId=setTimeout(()=>{this._closeAlert()},this.duration))}disconnectedCallback(){this._timeoutId&&clearTimeout(this._timeoutId),super.disconnectedCallback()}firstUpdated(){this._checkSlotContent()}_generateUniqueId(){return`nys-alert-${Date.now()}-${m7++}`}_getIconName(){return this.icon?this.icon:this._checkAltNaming()}_checkAltNaming(){return this.type==="success"?"check_circle":this.type==="base"?"info":this.type==="danger"?"error":this.type==="emergency"?"emergency_home":this.type}_closeAlert(){this._alertClosed=!0,this.dispatchEvent(new CustomEvent("nys-alertClosed",{detail:{type:this.type,label:this.heading},bubbles:!0,composed:!0}))}async _checkSlotContent(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");if(t){const s=t.assignedNodes({flatten:!0}).filter(r=>{var i;return r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&((i=r.textContent)==null?void 0:i.trim())});await Promise.resolve(),this._slotHasContent=s.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var s,r;const{role:t,ariaLabel:e}=this.ariaAttributes;return d`
1320
1320
  ${this._alertClosed?"":d` <div
1321
1321
  id=${this.id}
1322
1322
  class="nys-alert__container ${this._slotHasContent||((s=this.text)==null?void 0:s.trim().length)>0?"":"nys-alert--centered"}"
@@ -1358,7 +1358,7 @@
1358
1358
  .onClick=${()=>this._closeAlert()}
1359
1359
  ></nys-button>`:""}
1360
1360
  </div>`}
1361
- `}},S1.styles=Ms,S1.VALID_TYPES=["base","info","success","warning","danger","emergency"],S1);q([c({type:String})],R.prototype,"id",2),q([c({type:String})],R.prototype,"heading",2),q([c({type:String})],R.prototype,"icon",2),q([c({type:Boolean,reflect:!0})],R.prototype,"dismissible",2),q([c({type:Number,reflect:!0})],R.prototype,"duration",2),q([c({type:String})],R.prototype,"text",2),q([c({type:String})],R.prototype,"primaryAction",2),q([c({type:String})],R.prototype,"secondaryAction",2),q([c({type:String})],R.prototype,"primaryLabel",2),q([c({type:String})],R.prototype,"secondaryLabel",2),q([H1()],R.prototype,"_alertClosed",2),q([H1()],R.prototype,"_slotHasContent",2),q([c({reflect:!0})],R.prototype,"type",1);let Ge=R;customElements.get("nys-alert")||customElements.define("nys-alert",Ge);const x7=b`
1361
+ `}},E1.styles=Ms,E1.VALID_TYPES=["base","info","success","warning","danger","emergency"],E1);q([c({type:String})],R.prototype,"id",2),q([c({type:String})],R.prototype,"heading",2),q([c({type:String})],R.prototype,"icon",2),q([c({type:Boolean,reflect:!0})],R.prototype,"dismissible",2),q([c({type:Number,reflect:!0})],R.prototype,"duration",2),q([c({type:String})],R.prototype,"text",2),q([c({type:String})],R.prototype,"primaryAction",2),q([c({type:String})],R.prototype,"secondaryAction",2),q([c({type:String})],R.prototype,"primaryLabel",2),q([c({type:String})],R.prototype,"secondaryLabel",2),q([g1()],R.prototype,"_alertClosed",2),q([g1()],R.prototype,"_slotHasContent",2),q([c({reflect:!0})],R.prototype,"type",1);let Ge=R;customElements.get("nys-alert")||customElements.define("nys-alert",Ge);const x7=b`
1362
1362
  :host {
1363
1363
  /* Global Avatar Styles */
1364
1364
  --_nys-avatar-shape: var(--nys-radius-round, 1776px);
@@ -1425,7 +1425,7 @@
1425
1425
  height: 100%;
1426
1426
  fill: currentColor;
1427
1427
  }
1428
- `;var w7=Object.defineProperty,k7=Object.getOwnPropertyDescriptor,_1=(o,t,e,s)=>{for(var r=s>1?void 0:s?k7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&w7(t,e,r),r};let $7=0;const a1=(E1=class extends f{constructor(){super(...arguments),this.id="",this.label="",this.image="",this.initials="",this.icon="",this.color="#555",this.lazy=!1,this._shape="circle"}get shape(){return this._shape}set shape(t){this._shape=E1.VALID_SHAPES.includes(t)?t:"circle",this.requestUpdate("shape")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${$7++}`)}render(){var t,e,s,r;return d`
1428
+ `;var w7=Object.defineProperty,k7=Object.getOwnPropertyDescriptor,l1=(o,t,e,s)=>{for(var r=s>1?void 0:s?k7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&w7(t,e,r),r};let $7=0;const o1=(A1=class extends f{constructor(){super(...arguments),this.id="",this.label="",this.image="",this.initials="",this.icon="",this.color="#555",this.lazy=!1,this._shape="circle",this._slotHasContent=!0}get shape(){return this._shape}set shape(t){this._shape=A1.VALID_SHAPES.includes(t)?t:"circle",this.requestUpdate("shape")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${$7++}`)}firstUpdated(){this._checkSlotContent()}async _checkSlotContent(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");if(!t){this._slotHasContent=!1;return}await Promise.resolve();const e=t.assignedNodes({flatten:!0}).filter(r=>{var i;return r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&((i=r.textContent)==null?void 0:i.trim())});this._slotHasContent=e.length>0}render(){var t,e,s,r;return d`
1429
1429
  <label class="nys-avatar" id=${this.id}>
1430
1430
  <div class="nys-avatar__content">
1431
1431
  <div
@@ -1446,25 +1446,19 @@
1446
1446
  class="nys-avatar__initials"
1447
1447
  aria-hidden="true"
1448
1448
  >${this.initials}</span
1449
- >`:((r=this.icon)==null?void 0:r.length)>0?d`<div part="nys-avatar__icon">
1449
+ >`:this._slotHasContent?d`<div part="nys-avatar__icon">
1450
+ <slot></slot>
1451
+ </div>`:d`<div part="nys-avatar__icon">
1450
1452
  <nys-icon
1451
1453
  label="nys-avatar__icon"
1452
- name=${this.icon}
1454
+ name=${((r=this.icon)==null?void 0:r.length)>0?this.icon:"account_circle"}
1453
1455
  size="xl"
1454
1456
  ></nys-icon>
1455
- </div>`:d`<div part="nys-avatar__icon">
1456
- <slot>
1457
- <nys-icon
1458
- label="nys-avatar__icon"
1459
- name="account_circle"
1460
- size="xl"
1461
- ></nys-icon>
1462
- </slot>
1463
1457
  </div>`}
1464
1458
  </div>
1465
1459
  </div>
1466
1460
  </label>
1467
- `}},E1.styles=x7,E1.VALID_SHAPES=["square","rounded","circle"],E1);_1([c({type:String})],a1.prototype,"id",2),_1([c({type:String})],a1.prototype,"label",2),_1([c({type:String})],a1.prototype,"image",2),_1([c({type:String})],a1.prototype,"initials",2),_1([c({type:String})],a1.prototype,"icon",2),_1([c({type:String})],a1.prototype,"color",2),_1([c({type:Boolean,reflect:!0})],a1.prototype,"lazy",2),_1([c({reflect:!0})],a1.prototype,"shape",1);let We=a1;customElements.get("nys-avatar")||customElements.define("nys-avatar",We);const S7=b`
1461
+ `}},A1.styles=x7,A1.VALID_SHAPES=["square","rounded","circle"],A1);l1([c({type:String})],o1.prototype,"id",2),l1([c({type:String})],o1.prototype,"label",2),l1([c({type:String})],o1.prototype,"image",2),l1([c({type:String})],o1.prototype,"initials",2),l1([c({type:String})],o1.prototype,"icon",2),l1([c({type:String})],o1.prototype,"color",2),l1([c({type:Boolean,reflect:!0})],o1.prototype,"lazy",2),l1([c({reflect:!0})],o1.prototype,"shape",1),l1([g1()],o1.prototype,"_slotHasContent",2);let We=o1;customElements.get("nys-avatar")||customElements.define("nys-avatar",We);const S7=b`
1468
1462
  :host {
1469
1463
  /* Anything that can be overridden should be defined here */
1470
1464
 
@@ -1870,7 +1864,7 @@
1870
1864
  align-items: center;
1871
1865
  user-select: none;
1872
1866
  }
1873
- `;var E7=Object.defineProperty,A7=Object.getOwnPropertyDescriptor,O=(o,t,e,s)=>{for(var r=s>1?void 0:s?A7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&E7(t,e,r),r};let L7=0;const H=(B=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=B.VALID_SIZES.includes(t)?t:"md"}get variant(){return this._variant}set variant(t){this._variant=B.VALID_VARIANTS.includes(t)?t:"filled"}get type(){return this._type}set type(t){this._type=B.VALID_TYPES.includes(t)?t:"button"}get target(){return this._target}set target(t){this._target=B.VALID_TARGETS.includes(t)?t:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${L7++}`}_manageFormAction(t){typeof this.onClick=="function"&&this.onClick(t);const e=this._internals.form;if(e)switch(this.type){case"submit":e.requestSubmit();break;case"reset":e.reset();break}}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleClick(t){if(this.disabled){t.preventDefault();return}this._manageFormAction(t)}_handleKeydown(t){(t.code==="Space"||t.code==="Enter"||t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.disabled||this._manageFormAction(t))}render(){return d`
1867
+ `;var E7=Object.defineProperty,A7=Object.getOwnPropertyDescriptor,O=(o,t,e,s)=>{for(var r=s>1?void 0:s?A7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&E7(t,e,r),r};let L7=0;const H=(B=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=B.VALID_SIZES.includes(t)?t:"md"}get variant(){return this._variant}set variant(t){this._variant=B.VALID_VARIANTS.includes(t)?t:"filled"}get type(){return this._type}set type(t){this._type=B.VALID_TYPES.includes(t)?t:"button"}get target(){return this._target}set target(t){this._target=B.VALID_TARGETS.includes(t)?t:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${L7++}`}_manageFormAction(t){typeof this.onClick=="function"&&this.onClick(t);const e=this._internals.form;if(e)switch(this.type){case"submit":e.requestSubmit();break;case"reset":e.reset();break}}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleClick(t){if(this.disabled){t.preventDefault();return}this._manageFormAction(t),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(t){(t.code==="Space"||t.code==="Enter"||t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.disabled||this._manageFormAction(t))}render(){return d`
1874
1868
  ${this.href?d`
1875
1869
  <div class="nys-button__linkwrapper">
1876
1870
  <a
@@ -2458,7 +2452,7 @@
2458
2452
  `;var rr=Object.defineProperty,N2=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&rr(t,e,r),r};const q2=class extends f{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return d`${this.showError?d`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2459
2453
  <nys-icon name="error" size="2xl"></nys-icon>
2460
2454
  ${this._internals.validationMessage||this.errorMessage}
2461
- </div>`:""}`}};q2.styles=sr,q2.formAssociated=!0;let o2=q2;N2([R2({type:Boolean})],o2.prototype,"showError"),N2([R2({type:String})],o2.prototype,"errorMessage"),N2([R2({type:Boolean,reflect:!0})],o2.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",o2);var or=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,o1=(o,t,e,s)=>{for(var r=s>1?void 0:s?nr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&or(t,e,r),r};let ir=0;const J=(c1=class extends f{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this.tile=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=c1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${ir++}`),this.addEventListener("change",this._handleCheckboxChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this._handleCheckboxChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setGroupExist(),this.updateCheckboxSize(),this.updateCheckboxTile(),this.updateCheckboxShowError()}updated(t){t.has("required")&&this.required&&this._setupCheckboxRequired(),t.has("size")&&this.updateCheckboxSize(),t.has("tile")&&this.updateCheckboxTile(),t.has("showError")&&this.updateCheckboxShowError()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(e=>{e.groupExist=!0})}async _handleInvalid(t){t.preventDefault(),this.showError=!0,this._manageCheckboxRequired();const e=this.querySelector("nys-checkbox"),s=e?await e.getInputElement():null;if(s){const r=this._internals.form;r?Array.from(r.elements).find(a=>{if(a.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(u=>u.checked).length===0)return a}else return typeof a.checkValidity=="function"&&!a.checkValidity()})===this&&s.focus():s.focus()}}async _setupCheckboxRequired(){const t=this.querySelector("nys-checkbox"),e=this.errorMessage||"This field is required",s=t?await t.getInputElement():null;this._internals.setValidity({valueMissing:!0},e,s||this)}_handleCheckboxChange(t){const e=t,{name:s}=e.detail,i=Array.from(this.querySelectorAll("nys-checkbox")).filter(n=>n.checked).map(n=>n.value);this.name=s,this._internals.setFormValue(i.join(", ")),this._manageCheckboxRequired()}async _manageCheckboxRequired(){if(this.required){const t=this.errorMessage||"Please select at least one option.",e=this.querySelector("nys-checkbox"),s=e?await e.getInputElement():null;let r=!1;this.querySelectorAll("nys-checkbox").forEach(n=>{n.checked&&(r=!0)}),r?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},t,s||this),this.showError=!0)}}updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(e=>{e.setAttribute("size",this.size)})}updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(e=>{this.tile?e.toggleAttribute("tile",!0):e.removeAttribute("tile")})}updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(e=>{this.showError?e.setAttribute("showError",""):e.removeAttribute("showError")})}render(){return d` <div class="nys-checkboxgroup" role="group">
2455
+ </div>`:""}`}};q2.styles=sr,q2.formAssociated=!0;let o2=q2;N2([R2({type:Boolean})],o2.prototype,"showError"),N2([R2({type:String})],o2.prototype,"errorMessage"),N2([R2({type:Boolean,reflect:!0})],o2.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",o2);var or=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,n1=(o,t,e,s)=>{for(var r=s>1?void 0:s?nr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&or(t,e,r),r};let ir=0;const J=(h1=class extends f{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this.tile=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=h1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${ir++}`),this.addEventListener("nys-change",this._handleCheckboxChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleCheckboxChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setGroupExist(),this.updateCheckboxSize(),this.updateCheckboxTile(),this.updateCheckboxShowError()}updated(t){t.has("required")&&this.required&&this._setupCheckboxRequired(),t.has("size")&&this.updateCheckboxSize(),t.has("tile")&&this.updateCheckboxTile(),t.has("showError")&&this.updateCheckboxShowError()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(e=>{e.groupExist=!0})}async _handleInvalid(t){t.preventDefault(),this.showError=!0,this._manageCheckboxRequired();const e=this.querySelector("nys-checkbox"),s=e?await e.getInputElement():null;if(s){const r=this._internals.form;r?Array.from(r.elements).find(a=>{if(a.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(y=>y.checked).length===0)return a}else return typeof a.checkValidity=="function"&&!a.checkValidity()})===this&&s.focus():s.focus()}}async _setupCheckboxRequired(){const t=this.querySelector("nys-checkbox"),e=this.errorMessage||"This field is required",s=t?await t.getInputElement():null;this._internals.setValidity({valueMissing:!0},e,s||this)}_handleCheckboxChange(t){const e=t,{name:s}=e.detail,i=Array.from(this.querySelectorAll("nys-checkbox")).filter(n=>n.checked).map(n=>n.value);this.name=s,this._internals.setFormValue(i.join(", ")),this._manageCheckboxRequired()}async _manageCheckboxRequired(){if(this.required){const t=this.errorMessage||"Please select at least one option.",e=this.querySelector("nys-checkbox"),s=e?await e.getInputElement():null;let r=!1;this.querySelectorAll("nys-checkbox").forEach(n=>{n.checked&&(r=!0)}),r?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},t,s||this),this.showError=!0)}}updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(e=>{e.setAttribute("size",this.size)})}updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(e=>{this.tile?e.toggleAttribute("tile",!0):e.removeAttribute("tile")})}updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(e=>{this.showError?e.setAttribute("showError",""):e.removeAttribute("showError")})}render(){return d` <div class="nys-checkboxgroup" role="group">
2462
2456
  <nys-label
2463
2457
  id=${this.id}
2464
2458
  label=${this.label}
@@ -2475,7 +2469,7 @@
2475
2469
  errorMessage=${this._internals.validationMessage||this.errorMessage}
2476
2470
  .showDivider=${!this.tile}
2477
2471
  ></nys-errormessage>
2478
- </div>`}},c1.VALID_SIZES=["sm","md"],c1.styles=Ke,c1.formAssociated=!0,c1);o1([c({type:String})],J.prototype,"id",2),o1([c({type:String,reflect:!0})],J.prototype,"name",2),o1([c({type:Boolean,reflect:!0})],J.prototype,"required",2),o1([c({type:Boolean,reflect:!0})],J.prototype,"optional",2),o1([c({type:Boolean,reflect:!0})],J.prototype,"showError",2),o1([c({type:String})],J.prototype,"errorMessage",2),o1([c({type:String})],J.prototype,"label",2),o1([c({type:String})],J.prototype,"description",2),o1([c({type:Boolean,reflect:!0})],J.prototype,"tile",2),o1([c({reflect:!0})],J.prototype,"size",1);let h5=J;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",h5);var ar=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,j=(o,t,e,s)=>{for(var r=s>1?void 0:s?lr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&ar(t,e,r),r};let cr=0;const N=(h1=class extends f{constructor(){super(),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.showError=!1,this.errorMessage="",this.groupExist=!1,this.tile=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=h1.VALID_SIZES.includes(t)?t:"md"}async getInputElement(){var t;return await this.updateComplete,((t=this.shadowRoot)==null?void 0:t.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${cr++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.checked=!1}_setValue(){this.groupExist||this._internals.setFormValue(this.checked?this.value:null)}_manageRequire(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input"),e=this.errorMessage||"This field is required";t&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):this._internals.setValidity({}))}_setValidityMessage(t=""){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");e&&(this.showError=!!t,(r=this.errorMessage)!=null&&r.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;let e=t.validationMessage;this._setValidityMessage(e)}checkValidity(){var e;if(this.required&&!this.checked)return!1;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this.showError=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_handleChange(t){const{checked:e}=t.target;this.checked=e,this.groupExist||this._internals.setFormValue(this.checked?this.value:null),this._validate(),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleKeydown(t){t.code==="Space"&&(t.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),this._manageRequire(),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))))}render(){var t;return d`
2472
+ </div>`}},h1.VALID_SIZES=["sm","md"],h1.styles=Ke,h1.formAssociated=!0,h1);n1([c({type:String})],J.prototype,"id",2),n1([c({type:String,reflect:!0})],J.prototype,"name",2),n1([c({type:Boolean,reflect:!0})],J.prototype,"required",2),n1([c({type:Boolean,reflect:!0})],J.prototype,"optional",2),n1([c({type:Boolean,reflect:!0})],J.prototype,"showError",2),n1([c({type:String})],J.prototype,"errorMessage",2),n1([c({type:String})],J.prototype,"label",2),n1([c({type:String})],J.prototype,"description",2),n1([c({type:Boolean,reflect:!0})],J.prototype,"tile",2),n1([c({reflect:!0})],J.prototype,"size",1);let h5=J;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",h5);var ar=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,j=(o,t,e,s)=>{for(var r=s>1?void 0:s?lr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&ar(t,e,r),r};let cr=0;const N=(d1=class extends f{constructor(){super(),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.showError=!1,this.errorMessage="",this.groupExist=!1,this.tile=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=d1.VALID_SIZES.includes(t)?t:"md"}async getInputElement(){var t;return await this.updateComplete,((t=this.shadowRoot)==null?void 0:t.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${cr++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.checked=!1}_setValue(){this.groupExist||this._internals.setFormValue(this.checked?this.value:null)}_manageRequire(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input"),e=this.errorMessage||"This field is required";t&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):this._internals.setValidity({}))}_setValidityMessage(t=""){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");e&&(this.showError=!!t,(r=this.errorMessage)!=null&&r.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;let e=t.validationMessage;this._setValidityMessage(e)}checkValidity(){var e;if(this.required&&!this.checked)return!1;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this.showError=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(t){const{checked:e}=t.target;this.checked=e,this.groupExist||this._internals.setFormValue(this.checked?this.value:null),this._validate(),this._emitChangeEvent()}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}async _handleKeydown(t){t.code==="Space"&&(t.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),await this.updateComplete,this._validate(),this._emitChangeEvent()))}render(){var t;return d`
2479
2473
  <div class="nys-checkbox">
2480
2474
  <label class="nys-checkbox__content">
2481
2475
  <div class="nys-checkbox__checkboxwrapper">
@@ -2522,7 +2516,7 @@
2522
2516
  errorMessage=${this._internals.validationMessage||this.errorMessage}
2523
2517
  .showDivider=${!this.tile}
2524
2518
  ></nys-errormessage>`:""}
2525
- `}},h1.VALID_SIZES=["sm","md"],h1.styles=Ke,h1.formAssociated=!0,h1);j([c({type:Boolean,reflect:!0})],N.prototype,"checked",2),j([c({type:Boolean,reflect:!0})],N.prototype,"disabled",2),j([c({type:Boolean,reflect:!0})],N.prototype,"required",2),j([c({type:String})],N.prototype,"label",2),j([c({type:String})],N.prototype,"description",2),j([c({type:String})],N.prototype,"id",2),j([c({type:String,reflect:!0})],N.prototype,"name",2),j([c({type:String})],N.prototype,"value",2),j([c({type:Boolean,reflect:!0})],N.prototype,"showError",2),j([c({type:String})],N.prototype,"errorMessage",2),j([c({type:Boolean})],N.prototype,"groupExist",2),j([c({type:Boolean,reflect:!0})],N.prototype,"tile",2),j([c({reflect:!0})],N.prototype,"size",1);let d5=N;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",d5);const hr=b`
2519
+ `}},d1.VALID_SIZES=["sm","md"],d1.styles=Ke,d1.formAssociated=!0,d1);j([c({type:Boolean,reflect:!0})],N.prototype,"checked",2),j([c({type:Boolean,reflect:!0})],N.prototype,"disabled",2),j([c({type:Boolean,reflect:!0})],N.prototype,"required",2),j([c({type:String})],N.prototype,"label",2),j([c({type:String})],N.prototype,"description",2),j([c({type:String})],N.prototype,"id",2),j([c({type:String,reflect:!0})],N.prototype,"name",2),j([c({type:String})],N.prototype,"value",2),j([c({type:Boolean,reflect:!0})],N.prototype,"showError",2),j([c({type:String})],N.prototype,"errorMessage",2),j([c({type:Boolean})],N.prototype,"groupExist",2),j([c({type:Boolean,reflect:!0})],N.prototype,"tile",2),j([c({reflect:!0})],N.prototype,"size",1);let d5=N;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",d5);const hr=b`
2526
2520
  :host {
2527
2521
  --_nys-errormessage-font-family: var(
2528
2522
  --nys-font-family-ui,
@@ -2577,7 +2571,7 @@
2577
2571
  `;var dr=Object.defineProperty,j2=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&dr(t,e,r),r};const b2=class b2 extends f{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return d`${this.showError?d`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2578
2572
  <nys-icon name="error" size="2xl"></nys-icon>
2579
2573
  ${this._internals.validationMessage||this.errorMessage}
2580
- </div>`:""}`}};b2.styles=hr,b2.formAssociated=!0;let O1=b2;j2([c({type:Boolean})],O1.prototype,"showError"),j2([c({type:String})],O1.prototype,"errorMessage"),j2([c({type:Boolean,reflect:!0})],O1.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",O1);const ur={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2574
+ </div>`:""}`}};b2.styles=hr,b2.formAssociated=!0;let O1=b2;j2([c({type:Boolean})],O1.prototype,"showError"),j2([c({type:String})],O1.prototype,"errorMessage"),j2([c({type:Boolean,reflect:!0})],O1.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",O1);const yr={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2581
2575
  <mask id="mask0_12372_781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
2582
2576
  <rect width="24" height="24" fill="#D9D9D9"/>
2583
2577
  </mask>
@@ -3016,7 +3010,7 @@
3016
3010
  <g mask="url(#mask0_12372_621)">
3017
3011
  <path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
3018
3012
  </g>
3019
- </svg>`},yr=b`
3013
+ </svg>`},ur=b`
3020
3014
  :host {
3021
3015
  display: inline-block;
3022
3016
  --_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
@@ -3112,7 +3106,7 @@
3112
3106
  .nys-icon--flip-both {
3113
3107
  transform: scale(-1, -1);
3114
3108
  }
3115
- `;var pr=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,ot=(o,t,e,s)=>{for(var r=s>1?void 0:s?Cr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&pr(t,e,r),r};const Z1=(A1=class extends f{constructor(){super(...arguments),this.name="",this.label="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(t){this._size=A1.VALID_TYPES.includes(t)?t:"sm"}getIcon(){const t=ur[this.name],e=!!this.label;if(!t)return null;const i=new DOMParser().parseFromString(t,"image/svg+xml").documentElement;return i instanceof SVGElement?(i.setAttribute("role","img"),i.setAttribute("aria-label",e?this.label:""),i.setAttribute("aria-hidden",e?"false":"true"),i.style.rotate=`${this.rotate}deg`,i.style.color=this.color||"currentcolor",i.classList.add(`nys-icon--${this.size}`),i.classList.add("nys-icon--svg"),this.flip&&i.classList.add(`nys-icon--flip-${this.flip}`),i):null}render(){const t=this.getIcon();return t?d`${t}`:null}},A1.styles=yr,A1.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","48","64"],A1);ot([c({type:String,reflect:!0})],Z1.prototype,"name",2),ot([c({type:String})],Z1.prototype,"label",2),ot([c({type:String})],Z1.prototype,"rotate",2),ot([c({type:String})],Z1.prototype,"flip",2),ot([c({type:String})],Z1.prototype,"color",2),ot([c({reflect:!0})],Z1.prototype,"size",1);let u5=Z1;customElements.get("nys-icon")||customElements.define("nys-icon",u5);const fr=b`
3109
+ `;var pr=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,ot=(o,t,e,s)=>{for(var r=s>1?void 0:s?Cr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&pr(t,e,r),r};const Z1=(L1=class extends f{constructor(){super(...arguments),this.name="",this.label="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(t){this._size=L1.VALID_TYPES.includes(t)?t:"sm"}getIcon(){const t=yr[this.name];if(!t)return null;const r=new DOMParser().parseFromString(t,"image/svg+xml").documentElement;return r instanceof SVGElement?(r.setAttribute("role","img"),this.label?(r.setAttribute("aria-label",this.label),r.removeAttribute("aria-hidden")):(r.setAttribute("aria-hidden","true"),r.removeAttribute("aria-label")),r.style.rotate=`${this.rotate}deg`,r.style.color=this.color||"currentcolor",r.classList.add(`nys-icon--${this.size}`),r.classList.add("nys-icon--svg"),this.flip&&r.classList.add(`nys-icon--flip-${this.flip}`),r):null}render(){const t=this.getIcon();return t?d`${t}`:null}},L1.styles=ur,L1.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","48","64"],L1);ot([c({type:String,reflect:!0})],Z1.prototype,"name",2),ot([c({type:String})],Z1.prototype,"label",2),ot([c({type:String})],Z1.prototype,"rotate",2),ot([c({type:String})],Z1.prototype,"flip",2),ot([c({type:String})],Z1.prototype,"color",2),ot([c({reflect:!0})],Z1.prototype,"size",1);let y5=Z1;customElements.get("nys-icon")||customElements.define("nys-icon",y5);const fr=b`
3116
3110
  :host {
3117
3111
  /* Label Typography */
3118
3112
  --_nys-label-font-family: var(
@@ -3196,7 +3190,7 @@
3196
3190
  <slot name="description">${this.description}</slot>
3197
3191
  </label>
3198
3192
  </div>
3199
- `}};se.styles=fr;let b1=se;n2([c({type:String})],b1.prototype,"id"),n2([c({type:String})],b1.prototype,"label"),n2([c({type:String})],b1.prototype,"description"),n2([c({type:String})],b1.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",b1);const y5=b`
3193
+ `}};se.styles=fr;let m1=se;n2([c({type:String})],m1.prototype,"id"),n2([c({type:String})],m1.prototype,"label"),n2([c({type:String})],m1.prototype,"description"),n2([c({type:String})],m1.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",m1);const u5=b`
3200
3194
  :host {
3201
3195
  /* Global Radiobutton Styles */
3202
3196
  --_nys-radiobutton-size: var(--nys-size-400, 32px);
@@ -3548,7 +3542,7 @@
3548
3542
  color: var(--_nys-radiobutton-disabled-color-text);
3549
3543
  cursor: not-allowed;
3550
3544
  }
3551
- `;var gr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,X=(o,t,e,s)=>{for(var r=s>1?void 0:s?_r(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&gr(t,e,r),r};let br=0;const W=(d1=class extends f{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this.selectedValue=null,this._size="md",this.tile=!1,this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=d1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${br++}`),this.addEventListener("change",this._handleRadioButtonChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this._handleRadioButtonChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._initializeCheckedRadioValue(),this._setValue(),this.setRadioButtonRequire(),this._updateRadioButtonsSize(),this._updateRadioButtonsTile(),this._updateRadioButtonsShowError()}updated(t){(t.has("required")||t.has("selectedValue"))&&this._manageRequire(),t.has("size")&&this._updateRadioButtonsSize(),t.has("tile")&&this._updateRadioButtonsTile(),t.has("showError")&&this._updateRadioButtonsShowError()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(e=>{e.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((e,s)=>{this.required&&s===0&&e.setAttribute("required","required")})}async _manageRequire(){const t=this.errorMessage||"Please select an option.",e=this.querySelector("nys-radiobutton"),s=e?await e.getInputElement():null;s&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},t,s):(this.showError=!1,this._internals.setValidity({},"",s)))}_initializeCheckedRadioValue(){const t=this.querySelector("nys-radiobutton[checked]");t&&(this.selectedValue=t.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(e=>{e.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(e=>{this.tile?e.toggleAttribute("tile",!0):e.removeAttribute("tile")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(e=>{this.showError?e.setAttribute("showError",""):e.removeAttribute("showError")})}_handleRadioButtonChange(t){const e=t,{name:s,value:r}=e.detail;this.name=s,this.selectedValue=r,this._internals.setFormValue(this.selectedValue)}async _handleInvalid(t){if(t.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const e=this.querySelector("nys-radiobutton"),s=e?await e.getInputElement():null;if(s){const r=this._internals.form;r?Array.from(r.elements).find(a=>{if(a.tagName.toLowerCase()==="nys-radiogroup"){if(!a.querySelector("nys-radiobutton").checkValidity())return a}else return typeof a.checkValidity=="function"&&!a.checkValidity()})===this&&s.focus():s.focus()}}}render(){return d` <div
3545
+ `;var gr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,X=(o,t,e,s)=>{for(var r=s>1?void 0:s?_r(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&gr(t,e,r),r};let br=0;const W=(y1=class extends f{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this.selectedValue=null,this._size="md",this.tile=!1,this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=y1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${br++}`),this.addEventListener("nys-change",this._handleRadioButtonChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleRadioButtonChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._initializeCheckedRadioValue(),this._setValue(),this.setRadioButtonRequire(),this._updateRadioButtonsSize(),this._updateRadioButtonsTile(),this._updateRadioButtonsShowError()}updated(t){(t.has("required")||t.has("selectedValue"))&&this._manageRequire(),t.has("size")&&this._updateRadioButtonsSize(),t.has("tile")&&this._updateRadioButtonsTile(),t.has("showError")&&this._updateRadioButtonsShowError()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(e=>{e.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((e,s)=>{this.required&&s===0&&e.setAttribute("required","required")})}async _manageRequire(){const t=this.errorMessage||"Please select an option.",e=this.querySelector("nys-radiobutton"),s=e?await e.getInputElement():null;s&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},t,s):(this.showError=!1,this._internals.setValidity({},"",s)))}_initializeCheckedRadioValue(){const t=this.querySelector("nys-radiobutton[checked]");t&&(this.selectedValue=t.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(e=>{e.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(e=>{this.tile?e.toggleAttribute("tile",!0):e.removeAttribute("tile")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(e=>{this.showError?e.setAttribute("showError",""):e.removeAttribute("showError")})}_handleRadioButtonChange(t){const e=t,{name:s,value:r}=e.detail;this.name=s,this.selectedValue=r,this._internals.setFormValue(this.selectedValue)}async _handleInvalid(t){if(t.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const e=this.querySelector("nys-radiobutton"),s=e?await e.getInputElement():null;if(s){const r=this._internals.form;r?Array.from(r.elements).find(a=>{if(a.tagName.toLowerCase()==="nys-radiogroup"){if(!a.querySelector("nys-radiobutton").checkValidity())return a}else return typeof a.checkValidity=="function"&&!a.checkValidity()})===this&&s.focus():s.focus()}}}render(){return d` <div
3552
3546
  role="radiogroup"
3553
3547
  class="nys-radiogroup"
3554
3548
  aria-required="${this.required?"true":"false"}"
@@ -3570,7 +3564,7 @@
3570
3564
  errorMessage=${this._internals.validationMessage||this.errorMessage}
3571
3565
  .showDivider=${!this.tile}
3572
3566
  ></nys-errormessage>
3573
- </div>`}},d1.VALID_SIZES=["sm","md"],d1.styles=y5,d1.formAssociated=!0,d1);X([c({type:String})],W.prototype,"id",2),X([c({type:String,reflect:!0})],W.prototype,"name",2),X([c({type:Boolean,reflect:!0})],W.prototype,"required",2),X([c({type:Boolean,reflect:!0})],W.prototype,"optional",2),X([c({type:Boolean,reflect:!0})],W.prototype,"showError",2),X([c({type:String})],W.prototype,"errorMessage",2),X([c({type:String})],W.prototype,"label",2),X([c({type:String})],W.prototype,"description",2),X([H1()],W.prototype,"selectedValue",2),X([c({reflect:!0})],W.prototype,"size",1),X([c({type:Boolean,reflect:!0})],W.prototype,"tile",2);let p5=W;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",p5);var mr=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,n1=(o,t,e,s)=>{for(var r=s>1?void 0:s?xr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&mr(t,e,r),r};let wr=0;const Q=(g=class extends f{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this._size="md",this.tile=!1}get size(){return this._size}set size(t){this._size=g.VALID_SIZES.includes(t)?t:"md"}async getInputElement(){var t;return await this.updateComplete,((t=this.shadowRoot)==null?void 0:t.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${wr++}`),this.checked&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this)}updated(t){t.has("checked")&&this.checked&&g.buttonGroup[this.name]!==this&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this)}checkValidity(){var e;if(this.required&&!this.checked)return!1;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleChange(){this.checked||(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this,this.checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0})))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleKeydown(t){t.code==="Space"&&(t.preventDefault(),!this.disabled&&!this.checked&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this,this.checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))))}render(){return d`
3567
+ </div>`}},y1.VALID_SIZES=["sm","md"],y1.styles=u5,y1.formAssociated=!0,y1);X([c({type:String})],W.prototype,"id",2),X([c({type:String,reflect:!0})],W.prototype,"name",2),X([c({type:Boolean,reflect:!0})],W.prototype,"required",2),X([c({type:Boolean,reflect:!0})],W.prototype,"optional",2),X([c({type:Boolean,reflect:!0})],W.prototype,"showError",2),X([c({type:String})],W.prototype,"errorMessage",2),X([c({type:String})],W.prototype,"label",2),X([c({type:String})],W.prototype,"description",2),X([g1()],W.prototype,"selectedValue",2),X([c({reflect:!0})],W.prototype,"size",1),X([c({type:Boolean,reflect:!0})],W.prototype,"tile",2);let p5=W;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",p5);var mr=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,i1=(o,t,e,s)=>{for(var r=s>1?void 0:s?xr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&mr(t,e,r),r};let wr=0;const Q=(g=class extends f{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this._size="md",this.tile=!1}get size(){return this._size}set size(t){this._size=g.VALID_SIZES.includes(t)?t:"md"}async getInputElement(){var t;return await this.updateComplete,((t=this.shadowRoot)==null?void 0:t.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${wr++}`),this.checked&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this)}updated(t){t.has("checked")&&this.checked&&g.buttonGroup[this.name]!==this&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this)}checkValidity(){var e;if(this.required&&!this.checked)return!1;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(){this.checked||(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent())}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleKeydown(t){t.code==="Space"&&(t.preventDefault(),!this.disabled&&!this.checked&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent()))}render(){return d`
3574
3568
  <label class="nys-radiobutton">
3575
3569
  <input
3576
3570
  id="${this.id}"
@@ -3598,7 +3592,7 @@
3598
3592
  </label>
3599
3593
  </div>`}
3600
3594
  </label>
3601
- `}},g.VALID_SIZES=["sm","md"],g.buttonGroup={},g.styles=y5,g);n1([c({type:Boolean,reflect:!0})],Q.prototype,"checked",2),n1([c({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),n1([c({type:Boolean,reflect:!0})],Q.prototype,"required",2),n1([c({type:String})],Q.prototype,"label",2),n1([c({type:String})],Q.prototype,"description",2),n1([c({type:String})],Q.prototype,"id",2),n1([c({type:String,reflect:!0})],Q.prototype,"name",2),n1([c({type:String})],Q.prototype,"value",2),n1([c({reflect:!0})],Q.prototype,"size",1),n1([c({type:Boolean,reflect:!0})],Q.prototype,"tile",2);let C5=Q;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",C5);const kr=b`
3595
+ `}},g.VALID_SIZES=["sm","md"],g.buttonGroup={},g.styles=u5,g);i1([c({type:Boolean,reflect:!0})],Q.prototype,"checked",2),i1([c({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),i1([c({type:Boolean,reflect:!0})],Q.prototype,"required",2),i1([c({type:String})],Q.prototype,"label",2),i1([c({type:String})],Q.prototype,"description",2),i1([c({type:String})],Q.prototype,"id",2),i1([c({type:String,reflect:!0})],Q.prototype,"name",2),i1([c({type:String})],Q.prototype,"value",2),i1([c({reflect:!0})],Q.prototype,"size",1),i1([c({type:Boolean,reflect:!0})],Q.prototype,"tile",2);let C5=Q;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",C5);const kr=b`
3602
3596
  :host {
3603
3597
  /* Global Select Styles */
3604
3598
  --_nys-select-width: 100%;
@@ -3745,7 +3739,7 @@
3745
3739
  --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
3746
3740
  var(--_nys-select-error-color);
3747
3741
  }
3748
- `;var $r=Object.defineProperty,At=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&$r(t,e,r),r};class m1 extends f{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&t.addEventListener("slotchange",()=>{var r;const s=t.assignedNodes({flatten:!0});s.length>0&&(this.label=((r=s[0].textContent)==null?void 0:r.trim())||"")})}render(){return d`
3742
+ `;var $r=Object.defineProperty,At=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&$r(t,e,r),r};class x1 extends f{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&t.addEventListener("slotchange",()=>{var r;const s=t.assignedNodes({flatten:!0});s.length>0&&(this.label=((r=s[0].textContent)==null?void 0:r.trim())||"")})}render(){return d`
3749
3743
  <option
3750
3744
  ?disabled=${this.disabled}
3751
3745
  ?selected=${this.selected}
@@ -3755,7 +3749,7 @@
3755
3749
  >
3756
3750
  <slot>${this.label}</slot>
3757
3751
  </option>
3758
- `}}At([c({type:Boolean,reflect:!0})],m1.prototype,"disabled"),At([c({type:Boolean,reflect:!0})],m1.prototype,"selected"),At([c({type:String})],m1.prototype,"value"),At([c({type:String})],m1.prototype,"label"),At([c({type:Boolean,reflect:!0})],m1.prototype,"hidden"),customElements.define("nys-option",m1);var Sr=Object.defineProperty,Er=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var r=s>1?void 0:s?Er(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Sr(t,e,r),r};let Ar=0;const F=(u1=class extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.value="",this.disabled=!1,this.required=!1,this.optional=!1,this.form="",this.showError=!1,this.errorMessage="",this._width="md",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get width(){return this._width}set width(t){this._width=u1.VALID_WIDTHS.includes(t)?t:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Ar++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_handleSlotChange(){var r,i;const t=(r=this.shadowRoot)==null?void 0:r.querySelector('slot:not([name="description"])'),e=(i=this.shadowRoot)==null?void 0:i.querySelector("select");if(!t||!e)return;e.querySelectorAll("option:not([hidden])").forEach(n=>n.remove()),t.assignedElements({flatten:!0}).forEach(n=>{var a;if(n instanceof m1){const l=document.createElement("option");l.value=n.value,l.textContent=n.label||((a=n.textContent)==null?void 0:a.trim())||"",l.disabled=n.disabled,l.selected=n.selected,e.appendChild(l)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!t)return;const e=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");e&&(this.showError=!!t,(r=this.errorMessage)!=null&&r.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!t)return;let e=t.validationMessage;this._manageRequire(),this._setValidityMessage(e)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("select");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_handleChange(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleInput(){this.dispatchEvent(new Event("input"))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}updated(t){var e;if(super.updated(t),t.has("value")){const s=(e=this.shadowRoot)==null?void 0:e.querySelector("select");s&&(s.value=this.value)}}render(){return d`
3752
+ `}}At([c({type:Boolean,reflect:!0})],x1.prototype,"disabled"),At([c({type:Boolean,reflect:!0})],x1.prototype,"selected"),At([c({type:String})],x1.prototype,"value"),At([c({type:String})],x1.prototype,"label"),At([c({type:Boolean,reflect:!0})],x1.prototype,"hidden"),customElements.define("nys-option",x1);var Sr=Object.defineProperty,Er=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var r=s>1?void 0:s?Er(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Sr(t,e,r),r};let Ar=0;const F=(u1=class extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.value="",this.disabled=!1,this.required=!1,this.optional=!1,this.form="",this.showError=!1,this.errorMessage="",this._width="md",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get width(){return this._width}set width(t){this._width=u1.VALID_WIDTHS.includes(t)?t:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Ar++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_handleSlotChange(){var r,i;const t=(r=this.shadowRoot)==null?void 0:r.querySelector('slot:not([name="description"])'),e=(i=this.shadowRoot)==null?void 0:i.querySelector("select");if(!t||!e)return;e.querySelectorAll("option:not([hidden])").forEach(n=>n.remove()),t.assignedElements({flatten:!0}).forEach(n=>{var a;if(n instanceof x1){const l=document.createElement("option");l.value=n.value,l.textContent=n.label||((a=n.textContent)==null?void 0:a.trim())||"",l.disabled=n.disabled,l.selected=n.selected,e.appendChild(l)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!t)return;const e=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");e&&(this.showError=!!t,(r=this.errorMessage)!=null&&r.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!t)return;let e=t.validationMessage;this._manageRequire(),this._setValidityMessage(e)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("select");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_handleChange(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}updated(t){var e;if(super.updated(t),t.has("value")){const s=(e=this.shadowRoot)==null?void 0:e.querySelector("select");s&&(s.value=this.value)}}render(){return d`
3759
3753
  <div class="nys-select">
3760
3754
  <nys-label
3761
3755
  id=${this.id}
@@ -3778,7 +3772,6 @@
3778
3772
  @focus="${this._handleFocus}"
3779
3773
  @blur="${this._handleBlur}"
3780
3774
  @change="${this._handleChange}"
3781
- @input="${this._handleInput}"
3782
3775
  >
3783
3776
  <option hidden disabled selected value></option>
3784
3777
  </select>
@@ -3869,7 +3862,7 @@
3869
3862
  left: auto;
3870
3863
  outline: none;
3871
3864
  }
3872
- `;var Mr=Object.defineProperty,v5=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Mr(t,e,r),r};const re=class re extends f{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-skipnav__link");this.dispatchEvent(new Event("focus")),t==null||t.classList.add("show")}_handleBlur(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-skipnav__link");this.dispatchEvent(new Event("blur")),t==null||t.classList.remove("show")}_handleClick(){const t=(this.href||"#main-content").replace("#",""),e=document.getElementById(t);e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none")}render(){return d`
3865
+ `;var Mr=Object.defineProperty,v5=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Mr(t,e,r),r};const re=class re extends f{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-skipnav__link");t==null||t.classList.add("show")}_handleBlur(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-skipnav__link");t==null||t.classList.remove("show")}_handleClick(){const t=(this.href||"#main-content").replace("#",""),e=document.getElementById(t);e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none")}render(){return d`
3873
3866
  <div class="nys-skipnav">
3874
3867
  <a
3875
3868
  id=${this.id}
@@ -4024,7 +4017,7 @@
4024
4017
  color: var(--_nys-textarea-disabled-color-text);
4025
4018
  cursor: not-allowed;
4026
4019
  }
4027
- `;var Hr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,Z=(o,t,e,s)=>{for(var r=s>1?void 0:s?Vr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Hr(t,e,r),r};let Ur=0;const V=(s1=class extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.placeholder="",this.value="",this.disabled=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.form="",this.maxlength=null,this.width="full",this.rows=4,this._resize="vertical",this.showError=!1,this.errorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get resize(){return this._resize}set resize(t){this._resize=s1.VALID_RESIZE.includes(t)?t:"vertical"}async updated(t){await Promise.resolve(),t.has("width")&&(this.width=s1.VALID_WIDTHS.includes(this.width)?this.width:"full"),t.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${Ur++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._manageRequire(),this._internals.setFormValue(this.value)}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("textarea");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");e&&(this.showError=!!t,(r=this.errorMessage)!=null&&r.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!t)return;let e=t.validationMessage;this._setValidityMessage(e)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("textarea");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}_handleChange(){this.dispatchEvent(new Event("change"))}_handleSelect(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("selectionchange",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return d`
4020
+ `;var Hr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,Z=(o,t,e,s)=>{for(var r=s>1?void 0:s?Vr(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Hr(t,e,r),r};let Ur=0;const V=(s1=class extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.placeholder="",this.value="",this.disabled=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.form="",this.maxlength=null,this.width="full",this.rows=4,this._resize="vertical",this.showError=!1,this.errorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get resize(){return this._resize}set resize(t){this._resize=s1.VALID_RESIZE.includes(t)?t:"vertical"}async updated(t){await Promise.resolve(),t.has("width")&&(this.width=s1.VALID_WIDTHS.includes(this.width)?this.width:"full"),t.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${Ur++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._manageRequire(),this._internals.setFormValue(this.value)}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("textarea");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");e&&(this.showError=!!t,(r=this.errorMessage)!=null&&r.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!t)return;let e=t.validationMessage;this._setValidityMessage(e)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("textarea");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_handleSelect(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("nys-select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("selectionchange",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return d`
4028
4021
  <label class="nys-textarea">
4029
4022
  <nys-label
4030
4023
  id=${this.id}
@@ -4041,8 +4034,8 @@
4041
4034
  ?disabled=${this.disabled}
4042
4035
  ?required=${this.required}
4043
4036
  ?readonly=${this.readonly}
4044
- aria-disabled="${this.disabled}"
4045
- .value=${this.value}
4037
+ aria-disabled=${v(this.disabled?"true":void 0)}
4038
+ aria-required=${v(this.required?"true":void 0)}
4046
4039
  placeholder=${v(this.placeholder?this.placeholder:void 0)}
4047
4040
  maxlength=${v(this.maxlength!==""?this.maxlength:void 0)}
4048
4041
  .rows=${this.rows}
@@ -4050,10 +4043,11 @@
4050
4043
  @input=${this._handleInput}
4051
4044
  @focus="${this._handleFocus}"
4052
4045
  @blur="${this._handleBlur}"
4053
- @change="${this._handleChange}"
4054
4046
  @select="${this._handleSelect}"
4055
4047
  @selectionchange="${this._handleSelectionChange}"
4056
- ></textarea>
4048
+ >
4049
+ ${this.value}</textarea
4050
+ >
4057
4051
  <nys-errormessage
4058
4052
  ?showError=${this.showError}
4059
4053
  errorMessage=${this._internals.validationMessage||this.errorMessage}
@@ -4273,7 +4267,7 @@
4273
4267
  color: var(--_nys-textinput-disabled-color-text);
4274
4268
  cursor: not-allowed;
4275
4269
  }
4276
- `;var Pr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,w=(o,t,e,s)=>{for(var r=s>1?void 0:s?Or(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Pr(t,e,r),r};let Zr=0;const m=(r1=class extends f{constructor(){super(),this.id="",this.name="",this._type="text",this.label="",this.description="",this.placeholder="",this.value="",this.disabled=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.form="",this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get type(){return this._type}set type(t){this._type=r1.VALID_TYPES.includes(t)?t:"text"}async updated(t){t.has("width")&&(await Promise.resolve(),this.width=r1.VALID_WIDTHS.includes(this.width)?this.width:"full"),t.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${Zr++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var r,i;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&(!this.value||((i=this.value)==null?void 0:i.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var r,i;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!e)return;this.showError=!!t,(i=this._originalErrorMessage)!=null&&i.trim()&&t!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=t;const s=t?{customError:!0}:{};this._internals.setValidity(s,this.errorMessage,e)}_validate(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!t)return;const e=t.validity;let s="";e.valueMissing?s="This field is required":e.typeMismatch?s="Invalid format for this type":e.patternMismatch?s="Invalid format":e.tooShort?s=`Value is too short. Minimum length is ${t.minLength}`:e.tooLong?s=`Value is too long. Maximum length is ${t.maxLength}`:e.rangeUnderflow?s=`Value must be at least ${t.min}`:e.rangeOverflow?s=`Value must be at most ${t.max}`:e.stepMismatch?s="Invalid step value":s=t.validationMessage,this._setValidityMessage(s)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}_handleChange(){this.dispatchEvent(new Event("change"))}_validateButtonSlot(t){var n,a;const e=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="'+t+'"]'),s=(a=this.shadowRoot)==null?void 0:a.querySelector(".nys-textinput__buttoncontainer");if(!e||!s)return;const r=e.assignedElements();let i=!1;r.forEach(l=>{l instanceof HTMLElement&&l.tagName.toLowerCase()==="nys-button"&&!i?(i=!0,l.setAttribute("size","sm"),l.setAttribute("variant","primary"),this.disabled?l.setAttribute("disabled","true"):l.removeAttribute("disabled")):(console.warn("The '"+t+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",l),l.remove())}),t==="startButton"?s.classList.toggle("has-start-button",i):t==="endButton"&&s.classList.toggle("has-end-button",i)}render(){return d`
4270
+ `;var Pr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,w=(o,t,e,s)=>{for(var r=s>1?void 0:s?Or(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Pr(t,e,r),r};let Zr=0;const m=(r1=class extends f{constructor(){super(),this.id="",this.name="",this._type="text",this.label="",this.description="",this.placeholder="",this.value="",this.disabled=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.form="",this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get type(){return this._type}set type(t){this._type=r1.VALID_TYPES.includes(t)?t:"text"}async updated(t){t.has("width")&&(await Promise.resolve(),this.width=r1.VALID_WIDTHS.includes(this.width)?this.width:"full"),t.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${Zr++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var r,i;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&(!this.value||((i=this.value)==null?void 0:i.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var r,i;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!e)return;this.showError=!!t,(i=this._originalErrorMessage)!=null&&i.trim()&&t!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=t;const s=t?{customError:!0}:{};this._internals.setValidity(s,this.errorMessage,e)}_validate(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!t)return;const e=t.validity;let s="";e.valueMissing?s="This field is required":e.typeMismatch?s="Invalid format for this type":e.patternMismatch?s="Invalid format":e.tooShort?s=`Value is too short. Minimum length is ${t.minLength}`:e.tooLong?s=`Value is too long. Maximum length is ${t.maxLength}`:e.rangeUnderflow?s=`Value must be at least ${t.min}`:e.rangeOverflow?s=`Value must be at most ${t.max}`:e.stepMismatch?s="Invalid step value":s=t.validationMessage,this._setValidityMessage(s)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(e){const r=this._internals.form;r?Array.from(r.elements).find(a=>typeof a.checkValidity=="function"&&!a.checkValidity())===this&&e.focus():e.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_validateButtonSlot(t){var n,a;const e=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="'+t+'"]'),s=(a=this.shadowRoot)==null?void 0:a.querySelector(".nys-textinput__buttoncontainer");if(!e||!s)return;const r=e.assignedElements();let i=!1;r.forEach(l=>{l instanceof HTMLElement&&l.tagName.toLowerCase()==="nys-button"&&!i?(i=!0,l.setAttribute("size","sm"),l.setAttribute("variant","primary"),this.disabled?l.setAttribute("disabled","true"):l.removeAttribute("disabled")):(console.warn("The '"+t+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",l),l.remove())}),t==="startButton"?s.classList.toggle("has-start-button",i):t==="endButton"&&s.classList.toggle("has-end-button",i)}render(){return d`
4277
4271
  <div class="nys-textinput">
4278
4272
  <nys-label
4279
4273
  id=${this.id}
@@ -4311,7 +4305,6 @@
4311
4305
  @input=${this._handleInput}
4312
4306
  @focus="${this._handleFocus}"
4313
4307
  @blur="${this._handleBlur}"
4314
- @change="${this._handleChange}"
4315
4308
  />
4316
4309
  ${this.type==="password"?d` <nys-button
4317
4310
  class="eye-icon"
@@ -4338,7 +4331,7 @@
4338
4331
  errorMessage=${this.errorMessage}
4339
4332
  ></nys-errormessage>
4340
4333
  </div>
4341
- `}},r1.VALID_TYPES=["email","number","password","search","tel","text","url"],r1.VALID_WIDTHS=["sm","md","lg","full"],r1.styles=zr,r1.formAssociated=!0,r1);w([c({type:String})],m.prototype,"id",2),w([c({type:String,reflect:!0})],m.prototype,"name",2),w([c({reflect:!0})],m.prototype,"type",1),w([c({type:String})],m.prototype,"label",2),w([c({type:String})],m.prototype,"description",2),w([c({type:String})],m.prototype,"placeholder",2),w([c({type:String})],m.prototype,"value",2),w([c({type:Boolean,reflect:!0})],m.prototype,"disabled",2),w([c({type:Boolean,reflect:!0})],m.prototype,"readonly",2),w([c({type:Boolean,reflect:!0})],m.prototype,"required",2),w([c({type:Boolean,reflect:!0})],m.prototype,"optional",2),w([c({type:String})],m.prototype,"form",2),w([c({type:String})],m.prototype,"pattern",2),w([c({type:Number})],m.prototype,"maxlength",2),w([c({reflect:!0})],m.prototype,"width",2),w([c({type:Number})],m.prototype,"step",2),w([c({type:Number})],m.prototype,"min",2),w([c({type:Number})],m.prototype,"max",2),w([c({type:Boolean,reflect:!0})],m.prototype,"showError",2),w([c({type:String})],m.prototype,"errorMessage",2),w([H1()],m.prototype,"showPassword",2);let _5=m;customElements.get("nys-textinput")||customElements.define("nys-textinput",_5);const Ir=b`
4334
+ `}},r1.VALID_TYPES=["email","number","password","search","tel","text","url"],r1.VALID_WIDTHS=["sm","md","lg","full"],r1.styles=zr,r1.formAssociated=!0,r1);w([c({type:String})],m.prototype,"id",2),w([c({type:String,reflect:!0})],m.prototype,"name",2),w([c({reflect:!0})],m.prototype,"type",1),w([c({type:String})],m.prototype,"label",2),w([c({type:String})],m.prototype,"description",2),w([c({type:String})],m.prototype,"placeholder",2),w([c({type:String})],m.prototype,"value",2),w([c({type:Boolean,reflect:!0})],m.prototype,"disabled",2),w([c({type:Boolean,reflect:!0})],m.prototype,"readonly",2),w([c({type:Boolean,reflect:!0})],m.prototype,"required",2),w([c({type:Boolean,reflect:!0})],m.prototype,"optional",2),w([c({type:String})],m.prototype,"form",2),w([c({type:String})],m.prototype,"pattern",2),w([c({type:Number})],m.prototype,"maxlength",2),w([c({reflect:!0})],m.prototype,"width",2),w([c({type:Number})],m.prototype,"step",2),w([c({type:Number})],m.prototype,"min",2),w([c({type:Number})],m.prototype,"max",2),w([c({type:Boolean,reflect:!0})],m.prototype,"showError",2),w([c({type:String})],m.prototype,"errorMessage",2),w([g1()],m.prototype,"showPassword",2);let _5=m;customElements.get("nys-textinput")||customElements.define("nys-textinput",_5);const Ir=b`
4342
4335
  :host {
4343
4336
  /* Global Toggle Styles */
4344
4337
  --_nys-toggle-width: var(--nys-font-size-8xl, 44px);
@@ -4614,7 +4607,7 @@
4614
4607
  --toggle-transition-duration: 0s; /* Disable animation */
4615
4608
  }
4616
4609
  }
4617
- `;var Tr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,i1=(o,t,e,s)=>{for(var r=s>1?void 0:s?Br(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Tr(t,e,r),r};let Rr=0;const t1=(y1=class extends f{constructor(){super(),this.id="",this.name="",this.value="",this.checked=!1,this.disabled=!1,this.noIcon=!1,this.label="",this.description="",this._size="md",this.form="",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=y1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${Rr++}`)}updated(t){(t.has("checked")||t.has("value"))&&this._internals.setFormValue(this.checked?this.value:null)}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleChange(t){const{checked:e}=t.target;this.checked=e,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}_handleKeyDown(t){!this.disabled&&(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}render(){return d`
4610
+ `;var Tr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,a1=(o,t,e,s)=>{for(var r=s>1?void 0:s?Br(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Tr(t,e,r),r};let Rr=0;const t1=(p1=class extends f{constructor(){super(),this.id="",this.name="",this.value="",this.checked=!1,this.disabled=!1,this.noIcon=!1,this.label="",this.description="",this._size="md",this.form="",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=p1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${Rr++}`)}updated(t){(t.has("checked")||t.has("value"))&&this._internals.setFormValue(this.checked?this.value:null)}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleChange(t){const{checked:e}=t.target;this.checked=e,this._emitChangeEvent()}_handleKeyDown(t){!this.disabled&&(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.checked=!this.checked,this._emitChangeEvent())}render(){return d`
4618
4611
  <label class="nys-toggle">
4619
4612
  <div class="nys-toggle__content">
4620
4613
  <div class="nys-toggle__toggle">
@@ -4650,7 +4643,7 @@
4650
4643
  </div>
4651
4644
  </div>
4652
4645
  </label>
4653
- `}},y1.VALID_SIZES=["sm","md"],y1.styles=Ir,y1.formAssociated=!0,y1);i1([c({type:String})],t1.prototype,"id",2),i1([c({type:String,reflect:!0})],t1.prototype,"name",2),i1([c({type:String})],t1.prototype,"value",2),i1([c({type:Boolean,reflect:!0})],t1.prototype,"checked",2),i1([c({type:Boolean,reflect:!0})],t1.prototype,"disabled",2),i1([c({type:Boolean})],t1.prototype,"noIcon",2),i1([c({type:String})],t1.prototype,"label",2),i1([c({type:String})],t1.prototype,"description",2),i1([c({reflect:!0})],t1.prototype,"size",1),i1([c({type:String})],t1.prototype,"form",2);let b5=t1;customElements.get("nys-toggle")||customElements.define("nys-toggle",b5);const Nr=b`
4646
+ `}},p1.VALID_SIZES=["sm","md"],p1.styles=Ir,p1.formAssociated=!0,p1);a1([c({type:String})],t1.prototype,"id",2),a1([c({type:String,reflect:!0})],t1.prototype,"name",2),a1([c({type:String})],t1.prototype,"value",2),a1([c({type:Boolean,reflect:!0})],t1.prototype,"checked",2),a1([c({type:Boolean,reflect:!0})],t1.prototype,"disabled",2),a1([c({type:Boolean})],t1.prototype,"noIcon",2),a1([c({type:String})],t1.prototype,"label",2),a1([c({type:String})],t1.prototype,"description",2),a1([c({reflect:!0})],t1.prototype,"size",1),a1([c({type:String})],t1.prototype,"form",2);let b5=t1;customElements.get("nys-toggle")||customElements.define("nys-toggle",b5);const Nr=b`
4654
4647
  :host {
4655
4648
  /* Global Unav Header Styles */
4656
4649
  --_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
@@ -5256,9 +5249,9 @@
5256
5249
  * @license
5257
5250
  * Copyright 2017 Google LLC
5258
5251
  * SPDX-License-Identifier: BSD-3-Clause
5259
- */const l2=globalThis,c2=l2.trustedTypes,E5=c2?c2.createPolicy("lit-html",{createHTML:o=>o}):void 0,A5="$lit$",x1=`lit$${Math.random().toFixed(9).slice(2)}$`,L5="?"+x1,no=`<${L5}>`,I1=document,h2=()=>I1.createComment(""),Dt=o=>o===null||typeof o!="object"&&typeof o!="function",W2=Array.isArray,io=o=>W2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Y2=`[
5252
+ */const l2=globalThis,c2=l2.trustedTypes,E5=c2?c2.createPolicy("lit-html",{createHTML:o=>o}):void 0,A5="$lit$",w1=`lit$${Math.random().toFixed(9).slice(2)}$`,L5="?"+w1,no=`<${L5}>`,I1=document,h2=()=>I1.createComment(""),Dt=o=>o===null||typeof o!="object"&&typeof o!="function",W2=Array.isArray,io=o=>W2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Y2=`[
5260
5253
  \f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M5=/-->/g,D5=/>/g,T1=RegExp(`>|${Y2}(?:([^\\s"'>=/]+)(${Y2}*=${Y2}*(?:[^
5261
- \f\r"'\`<>=]|("|')|))|$)`,"g"),H5=/'/g,V5=/"/g,U5=/^(?:script|style|textarea|title)$/i,Vt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),z5=new WeakMap,B1=I1.createTreeWalker(I1,129);function P5(o,t){if(!W2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return E5!==void 0?E5.createHTML(t):t}const ao=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=Ht;for(let a=0;a<e;a++){const l=o[a];let y,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Ht?u[1]==="!--"?n=M5:u[1]!==void 0?n=D5:u[2]!==void 0?(U5.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=T1):u[3]!==void 0&&(n=T1):n===T1?u[0]===">"?(n=r??Ht,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,y=u[1],n=u[3]===void 0?T1:u[3]==='"'?V5:H5):n===V5||n===H5?n=T1:n===M5||n===D5?n=Ht:(n=T1,r=void 0);const C=n===T1&&o[a+1].startsWith("/>")?" ":"";i+=n===Ht?l+no:h>=0?(s.push(y),l.slice(0,h)+A5+l.slice(h)+x1+C):l+x1+(h===-2?a:C)}return[P5(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let K2=class as{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[y,u]=ao(t,e);if(this.el=as.createElement(y,s),B1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=B1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(A5)){const p=u[n++],C=r.getAttribute(h).split(x1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?co:M[1]==="?"?ho:M[1]==="@"?uo:d2}),r.removeAttribute(h)}else h.startsWith(x1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(U5.test(r.tagName)){const h=r.textContent.split(x1),p=h.length-1;if(p>0){r.textContent=c2?c2.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],h2()),B1.nextNode(),l.push({type:2,index:++i});r.append(h[p],h2())}}}else if(r.nodeType===8)if(r.data===L5)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(x1,h+1))!==-1;)l.push({type:7,index:i}),h+=x1.length-1}i++}}static createElement(t,e){const s=I1.createElement("template");return s.innerHTML=t,s}};function at(o,t,e=o,s){var r,i;if(t===Vt)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const a=Dt(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==a&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=at(o,n._$AS(o,t.values),n,s)),t}let lo=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:t},parts:e}=this._$AD,s=((o==null?void 0:o.creationScope)??I1).importNode(t,!0);B1.currentNode=s;let r=B1.nextNode(),i=0,n=0,a=e[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new O5(r,r.nextSibling,this,o):a.type===1?l=new a.ctor(r,a.name,a.strings,this,o):a.type===6&&(l=new yo(r,this,o)),this._$AV.push(l),a=e[++n]}i!==(a==null?void 0:a.index)&&(r=B1.nextNode(),i++)}return B1.currentNode=I1,s}p(o){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},O5=class ls{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),Dt(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==Vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):io(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&Dt(this._$AH)?this._$AA.nextSibling.data=t:this.T(I1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=K2.createElement(P5(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new lo(i,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let e=z5.get(t.strings);return e===void 0&&z5.set(t.strings,e=new K2(t)),e}k(t){W2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new ls(this.O(h2()),this.O(h2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},d2=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,s,r){this.type=1,this._$AH=A,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=r,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=A}_$AI(o,t=this,e,s){const r=this.strings;let i=!1;if(r===void 0)o=at(this,o,t,0),i=!Dt(o)||o!==this._$AH&&o!==Vt,i&&(this._$AH=o);else{const n=o;let a,l;for(o=r[0],a=0;a<r.length-1;a++)l=at(this,n[e+a],t,a),l===Vt&&(l=this._$AH[a]),i||(i=!Dt(l)||l!==this._$AH[a]),l===A?o=A:o!==A&&(o+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!s&&this.j(o)}j(o){o===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}};class co extends d2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}let ho=class extends d2{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==A)}},uo=class extends d2{constructor(o,t,e,s,r){super(o,t,e,s,r),this.type=5}_$AI(o,t=this){if((o=at(this,o,t,0)??A)===Vt)return;const e=this._$AH,s=o===A&&e!==A||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,r=o!==A&&(e===A||s);s&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,o):this._$AH.handleEvent(o)}},yo=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){at(this,o)}};const Z5=l2.litHtmlPolyfillSupport;Z5==null||Z5(K2,O5),(l2.litHtmlVersions??(l2.litHtmlVersions=[])).push("3.2.1");/**
5254
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),H5=/'/g,V5=/"/g,U5=/^(?:script|style|textarea|title)$/i,Vt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),z5=new WeakMap,B1=I1.createTreeWalker(I1,129);function P5(o,t){if(!W2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return E5!==void 0?E5.createHTML(t):t}const ao=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=Ht;for(let a=0;a<e;a++){const l=o[a];let u,y,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,y=n.exec(l),y!==null);)p=n.lastIndex,n===Ht?y[1]==="!--"?n=M5:y[1]!==void 0?n=D5:y[2]!==void 0?(U5.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=T1):y[3]!==void 0&&(n=T1):n===T1?y[0]===">"?(n=r??Ht,h=-1):y[1]===void 0?h=-2:(h=n.lastIndex-y[2].length,u=y[1],n=y[3]===void 0?T1:y[3]==='"'?V5:H5):n===V5||n===H5?n=T1:n===M5||n===D5?n=Ht:(n=T1,r=void 0);const C=n===T1&&o[a+1].startsWith("/>")?" ":"";i+=n===Ht?l+no:h>=0?(s.push(u),l.slice(0,h)+A5+l.slice(h)+w1+C):l+w1+(h===-2?a:C)}return[P5(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let K2=class as{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[u,y]=ao(t,e);if(this.el=as.createElement(u,s),B1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=B1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(A5)){const p=y[n++],C=r.getAttribute(h).split(w1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?co:M[1]==="?"?ho:M[1]==="@"?yo:d2}),r.removeAttribute(h)}else h.startsWith(w1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(U5.test(r.tagName)){const h=r.textContent.split(w1),p=h.length-1;if(p>0){r.textContent=c2?c2.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],h2()),B1.nextNode(),l.push({type:2,index:++i});r.append(h[p],h2())}}}else if(r.nodeType===8)if(r.data===L5)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(w1,h+1))!==-1;)l.push({type:7,index:i}),h+=w1.length-1}i++}}static createElement(t,e){const s=I1.createElement("template");return s.innerHTML=t,s}};function at(o,t,e=o,s){var r,i;if(t===Vt)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const a=Dt(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==a&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=at(o,n._$AS(o,t.values),n,s)),t}let lo=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:t},parts:e}=this._$AD,s=((o==null?void 0:o.creationScope)??I1).importNode(t,!0);B1.currentNode=s;let r=B1.nextNode(),i=0,n=0,a=e[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new O5(r,r.nextSibling,this,o):a.type===1?l=new a.ctor(r,a.name,a.strings,this,o):a.type===6&&(l=new uo(r,this,o)),this._$AV.push(l),a=e[++n]}i!==(a==null?void 0:a.index)&&(r=B1.nextNode(),i++)}return B1.currentNode=I1,s}p(o){let t=0;for(const e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},O5=class ls{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),Dt(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==Vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):io(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&Dt(this._$AH)?this._$AA.nextSibling.data=t:this.T(I1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=K2.createElement(P5(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new lo(i,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let e=z5.get(t.strings);return e===void 0&&z5.set(t.strings,e=new K2(t)),e}k(t){W2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new ls(this.O(h2()),this.O(h2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},d2=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,s,r){this.type=1,this._$AH=A,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=r,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=A}_$AI(o,t=this,e,s){const r=this.strings;let i=!1;if(r===void 0)o=at(this,o,t,0),i=!Dt(o)||o!==this._$AH&&o!==Vt,i&&(this._$AH=o);else{const n=o;let a,l;for(o=r[0],a=0;a<r.length-1;a++)l=at(this,n[e+a],t,a),l===Vt&&(l=this._$AH[a]),i||(i=!Dt(l)||l!==this._$AH[a]),l===A?o=A:o!==A&&(o+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!s&&this.j(o)}j(o){o===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}};class co extends d2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}let ho=class extends d2{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==A)}},yo=class extends d2{constructor(o,t,e,s,r){super(o,t,e,s,r),this.type=5}_$AI(o,t=this){if((o=at(this,o,t,0)??A)===Vt)return;const e=this._$AH,s=o===A&&e!==A||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,r=o!==A&&(e===A||s);s&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,o):this._$AH.handleEvent(o)}},uo=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){at(this,o)}};const Z5=l2.litHtmlPolyfillSupport;Z5==null||Z5(K2,O5),(l2.litHtmlVersions??(l2.litHtmlVersions=[])).push("3.2.1");/**
5262
5255
  * @license
5263
5256
  * Copyright 2018 Google LLC
5264
5257
  * SPDX-License-Identifier: BSD-3-Clause
@@ -5276,15 +5269,15 @@
5276
5269
  * @license
5277
5270
  * Copyright 2019 Google LLC
5278
5271
  * SPDX-License-Identifier: BSD-3-Clause
5279
- */const u2=globalThis,J2=u2.ShadowRoot&&(u2.ShadyCSS===void 0||u2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I5=Symbol(),T5=new WeakMap;let po=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==I5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o;const t=this.t;if(J2&&o===void 0){const e=t!==void 0&&t.length===1;e&&(o=T5.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&T5.set(t,o))}return o}toString(){return this.cssText}};const Co=o=>new po(typeof o=="string"?o:o+"",void 0,I5),fo=(o,t)=>{if(J2)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=u2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},B5=J2?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Co(e)})(o):o;/**
5272
+ */const y2=globalThis,J2=y2.ShadowRoot&&(y2.ShadyCSS===void 0||y2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I5=Symbol(),T5=new WeakMap;let po=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==I5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o;const t=this.t;if(J2&&o===void 0){const e=t!==void 0&&t.length===1;e&&(o=T5.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&T5.set(t,o))}return o}toString(){return this.cssText}};const Co=o=>new po(typeof o=="string"?o:o+"",void 0,I5),fo=(o,t)=>{if(J2)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=y2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},B5=J2?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Co(e)})(o):o;/**
5280
5273
  * @license
5281
5274
  * Copyright 2017 Google LLC
5282
5275
  * SPDX-License-Identifier: BSD-3-Clause
5283
- */const{is:vo,defineProperty:go,getOwnPropertyDescriptor:_o,getOwnPropertyNames:bo,getOwnPropertySymbols:mo,getPrototypeOf:xo}=Object,lt=globalThis,R5=lt.trustedTypes,wo=R5?R5.emptyScript:"",N5=lt.reactiveElementPolyfillSupport,Ut=(o,t)=>o,y2={toAttribute(o,t){switch(t){case Boolean:o=o?wo:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},X2=(o,t)=>!vo(o,t),q5={attribute:!0,type:String,converter:y2,reflect:!1,hasChanged:X2};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),lt.litPropertyMetadata??(lt.litPropertyMetadata=new WeakMap);class zt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q5){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&go(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=_o(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const a=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q5}static _$Ei(){if(this.hasOwnProperty(Ut("elementProperties")))return;const t=xo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ut("properties"))){const e=this.properties,s=[...bo(e),...mo(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(B5(r))}else t!==void 0&&e.push(B5(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fo(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:y2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:y2;this._$Em=i,this[i]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??X2)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Ut("elementProperties")]=new Map,zt[Ut("finalized")]=new Map,N5==null||N5({ReactiveElement:zt}),(lt.reactiveElementVersions??(lt.reactiveElementVersions=[])).push("2.0.4");/**
5276
+ */const{is:vo,defineProperty:go,getOwnPropertyDescriptor:_o,getOwnPropertyNames:bo,getOwnPropertySymbols:mo,getPrototypeOf:xo}=Object,lt=globalThis,R5=lt.trustedTypes,wo=R5?R5.emptyScript:"",N5=lt.reactiveElementPolyfillSupport,Ut=(o,t)=>o,u2={toAttribute(o,t){switch(t){case Boolean:o=o?wo:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},X2=(o,t)=>!vo(o,t),q5={attribute:!0,type:String,converter:u2,reflect:!1,hasChanged:X2};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),lt.litPropertyMetadata??(lt.litPropertyMetadata=new WeakMap);class zt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q5){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&go(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=_o(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const a=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q5}static _$Ei(){if(this.hasOwnProperty(Ut("elementProperties")))return;const t=xo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ut("properties"))){const e=this.properties,s=[...bo(e),...mo(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(B5(r))}else t!==void 0&&e.push(B5(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fo(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:u2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:u2;this._$Em=i,this[i]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??X2)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Ut("elementProperties")]=new Map,zt[Ut("finalized")]=new Map,N5==null||N5({ReactiveElement:zt}),(lt.reactiveElementVersions??(lt.reactiveElementVersions=[])).push("2.0.4");/**
5284
5277
  * @license
5285
5278
  * Copyright 2017 Google LLC
5286
5279
  * SPDX-License-Identifier: BSD-3-Clause
5287
- */const ko={attribute:!0,type:String,converter:y2,reflect:!1,hasChanged:X2},$o=(o=ko,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,o)},init(a){return a!==void 0&&this.P(n,void 0,o),a}}}if(s==="setter"){const{name:n}=e;return function(a){const l=this[n];t.call(this,a),this.requestUpdate(n,l,o)}}throw Error("Unsupported decorator location: "+s)};function I(o){return(t,e)=>typeof e=="object"?$o(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}const So=b`
5280
+ */const ko={attribute:!0,type:String,converter:u2,reflect:!1,hasChanged:X2},$o=(o=ko,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,o)},init(a){return a!==void 0&&this.P(n,void 0,o),a}}}if(s==="setter"){const{name:n}=e;return function(a){const l=this[n];t.call(this,a),this.requestUpdate(n,l,o)}}throw Error("Unsupported decorator location: "+s)};function I(o){return(t,e)=>typeof e=="object"?$o(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}const So=b`
5288
5281
  :host {
5289
5282
  /* Anything that can be overridden should be defined here */
5290
5283
 
@@ -5694,23 +5687,23 @@
5694
5687
  * @license
5695
5688
  * Copyright 2017 Google LLC
5696
5689
  * SPDX-License-Identifier: BSD-3-Clause
5697
- */const p2=globalThis,C2=p2.trustedTypes,j5=C2?C2.createPolicy("lit-html",{createHTML:o=>o}):void 0,F5="$lit$",w1=`lit$${Math.random().toFixed(9).slice(2)}$`,G5="?"+w1,Eo=`<${G5}>`,N1=document,f2=()=>N1.createComment(""),Pt=o=>o===null||typeof o!="object"&&typeof o!="function",Q2=Array.isArray,Ao=o=>Q2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",te=`[
5690
+ */const p2=globalThis,C2=p2.trustedTypes,j5=C2?C2.createPolicy("lit-html",{createHTML:o=>o}):void 0,F5="$lit$",k1=`lit$${Math.random().toFixed(9).slice(2)}$`,G5="?"+k1,Eo=`<${G5}>`,N1=document,f2=()=>N1.createComment(""),Pt=o=>o===null||typeof o!="object"&&typeof o!="function",Q2=Array.isArray,Ao=o=>Q2(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",te=`[
5698
5691
  \f\r]`,Ot=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W5=/-->/g,Y5=/>/g,q1=RegExp(`>|${te}(?:([^\\s"'>=/]+)(${te}*=${te}*(?:[^
5699
- \f\r"'\`<>=]|("|')|))|$)`,"g"),K5=/'/g,J5=/"/g,X5=/^(?:script|style|textarea|title)$/i,Zt=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),Q5=new WeakMap,j1=N1.createTreeWalker(N1,129);function ts(o,t){if(!Q2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return j5!==void 0?j5.createHTML(t):t}const Lo=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=Ot;for(let a=0;a<e;a++){const l=o[a];let y,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Ot?u[1]==="!--"?n=W5:u[1]!==void 0?n=Y5:u[2]!==void 0?(X5.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=q1):u[3]!==void 0&&(n=q1):n===q1?u[0]===">"?(n=r??Ot,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,y=u[1],n=u[3]===void 0?q1:u[3]==='"'?J5:K5):n===J5||n===K5?n=q1:n===W5||n===Y5?n=Ot:(n=q1,r=void 0);const C=n===q1&&o[a+1].startsWith("/>")?" ":"";i+=n===Ot?l+Eo:h>=0?(s.push(y),l.slice(0,h)+F5+l.slice(h)+w1+C):l+w1+(h===-2?a:C)}return[ts(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class It{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[y,u]=Lo(t,e);if(this.el=It.createElement(y,s),j1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=j1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(F5)){const p=u[n++],C=r.getAttribute(h).split(w1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?Do:M[1]==="?"?Ho:M[1]==="@"?Vo:g2}),r.removeAttribute(h)}else h.startsWith(w1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(X5.test(r.tagName)){const h=r.textContent.split(w1),p=h.length-1;if(p>0){r.textContent=C2?C2.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],f2()),j1.nextNode(),l.push({type:2,index:++i});r.append(h[p],f2())}}}else if(r.nodeType===8)if(r.data===G5)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(w1,h+1))!==-1;)l.push({type:7,index:i}),h+=w1.length-1}i++}}static createElement(t,e){const s=N1.createElement("template");return s.innerHTML=t,s}}function ct(o,t,e=o,s){var r,i;if(t===Zt)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const a=Pt(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==a&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=ct(o,n._$AS(o,t.values),n,s)),t}class Mo{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??N1).importNode(e,!0);j1.currentNode=r;let i=j1.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let y;l.type===2?y=new v2(i,i.nextSibling,this,t):l.type===1?y=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(y=new Uo(i,this,t)),this._$AV.push(y),l=s[++a]}n!==(l==null?void 0:l.index)&&(i=j1.nextNode(),n++)}return j1.currentNode=N1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class v2{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ct(this,t,e),Pt(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==Zt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ao(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==L&&Pt(this._$AH)?this._$AA.nextSibling.data=t:this.T(N1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=It.createElement(ts(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new Mo(i,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let e=Q5.get(t.strings);return e===void 0&&Q5.set(t.strings,e=new It(t)),e}k(t){Q2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new v2(this.O(f2()),this.O(f2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class g2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=L}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=ct(this,t,e,0),n=!Pt(t)||t!==this._$AH&&t!==Zt,n&&(this._$AH=t);else{const a=t;let l,y;for(t=i[0],l=0;l<i.length-1;l++)y=ct(this,a[s+l],e,l),y===Zt&&(y=this._$AH[l]),n||(n=!Pt(y)||y!==this._$AH[l]),y===L?t=L:t!==L&&(t+=(y??"")+i[l+1]),this._$AH[l]=y}n&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Do extends g2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}class Ho extends g2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}}class Vo extends g2{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=ct(this,t,e,0)??L)===Zt)return;const s=this._$AH,r=t===L&&s!==L||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==L&&(s===L||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Uo{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}}const es=p2.litHtmlPolyfillSupport;es==null||es(It,v2),(p2.litHtmlVersions??(p2.litHtmlVersions=[])).push("3.2.1");/**
5692
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),K5=/'/g,J5=/"/g,X5=/^(?:script|style|textarea|title)$/i,Zt=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),Q5=new WeakMap,j1=N1.createTreeWalker(N1,129);function ts(o,t){if(!Q2(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return j5!==void 0?j5.createHTML(t):t}const Lo=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=Ot;for(let a=0;a<e;a++){const l=o[a];let u,y,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,y=n.exec(l),y!==null);)p=n.lastIndex,n===Ot?y[1]==="!--"?n=W5:y[1]!==void 0?n=Y5:y[2]!==void 0?(X5.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=q1):y[3]!==void 0&&(n=q1):n===q1?y[0]===">"?(n=r??Ot,h=-1):y[1]===void 0?h=-2:(h=n.lastIndex-y[2].length,u=y[1],n=y[3]===void 0?q1:y[3]==='"'?J5:K5):n===J5||n===K5?n=q1:n===W5||n===Y5?n=Ot:(n=q1,r=void 0);const C=n===q1&&o[a+1].startsWith("/>")?" ":"";i+=n===Ot?l+Eo:h>=0?(s.push(u),l.slice(0,h)+F5+l.slice(h)+k1+C):l+k1+(h===-2?a:C)}return[ts(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class It{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[u,y]=Lo(t,e);if(this.el=It.createElement(u,s),j1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=j1.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(F5)){const p=y[n++],C=r.getAttribute(h).split(k1),M=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:M[2],strings:C,ctor:M[1]==="."?Do:M[1]==="?"?Ho:M[1]==="@"?Vo:g2}),r.removeAttribute(h)}else h.startsWith(k1)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(X5.test(r.tagName)){const h=r.textContent.split(k1),p=h.length-1;if(p>0){r.textContent=C2?C2.emptyScript:"";for(let C=0;C<p;C++)r.append(h[C],f2()),j1.nextNode(),l.push({type:2,index:++i});r.append(h[p],f2())}}}else if(r.nodeType===8)if(r.data===G5)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(k1,h+1))!==-1;)l.push({type:7,index:i}),h+=k1.length-1}i++}}static createElement(t,e){const s=N1.createElement("template");return s.innerHTML=t,s}}function ct(o,t,e=o,s){var r,i;if(t===Zt)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const a=Pt(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==a&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=ct(o,n._$AS(o,t.values),n,s)),t}class Mo{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??N1).importNode(e,!0);j1.currentNode=r;let i=j1.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new v2(i,i.nextSibling,this,t):l.type===1?u=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(u=new Uo(i,this,t)),this._$AV.push(u),l=s[++a]}n!==(l==null?void 0:l.index)&&(i=j1.nextNode(),n++)}return j1.currentNode=N1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class v2{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ct(this,t,e),Pt(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==Zt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ao(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==L&&Pt(this._$AH)?this._$AA.nextSibling.data=t:this.T(N1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=It.createElement(ts(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new Mo(i,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let e=Q5.get(t.strings);return e===void 0&&Q5.set(t.strings,e=new It(t)),e}k(t){Q2(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new v2(this.O(f2()),this.O(f2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class g2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=L}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=ct(this,t,e,0),n=!Pt(t)||t!==this._$AH&&t!==Zt,n&&(this._$AH=t);else{const a=t;let l,u;for(t=i[0],l=0;l<i.length-1;l++)u=ct(this,a[s+l],e,l),u===Zt&&(u=this._$AH[l]),n||(n=!Pt(u)||u!==this._$AH[l]),u===L?t=L:t!==L&&(t+=(u??"")+i[l+1]),this._$AH[l]=u}n&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Do extends g2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}class Ho extends g2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}}class Vo extends g2{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=ct(this,t,e,0)??L)===Zt)return;const s=this._$AH,r=t===L&&s!==L||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==L&&(s===L||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Uo{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}}const es=p2.litHtmlPolyfillSupport;es==null||es(It,v2),(p2.litHtmlVersions??(p2.litHtmlVersions=[])).push("3.2.1");/**
5700
5693
  * @license
5701
5694
  * Copyright 2018 Google LLC
5702
5695
  * SPDX-License-Identifier: BSD-3-Clause
5703
- */const k1=o=>o??L;var zo=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,T=(o,t,e,s)=>{for(var r=s>1?void 0:s?Po(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&zo(t,e,r),r};let Oo=0;var K;const U=(K=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(o){this._size=K.VALID_SIZES.includes(o)?o:"md"}get variant(){return this._variant}set variant(o){this._variant=K.VALID_VARIANTS.includes(o)?o:"filled"}get type(){return this._type}set type(o){this._type=K.VALID_TYPES.includes(o)?o:"button"}get target(){return this._target}set target(o){this._target=K.VALID_TARGETS.includes(o)?o:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${Oo++}`}_manageFormAction(o){typeof this.onClick=="function"&&this.onClick(o);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleClick(o){if(this.disabled){o.preventDefault();return}this._manageFormAction(o)}_handleKeydown(o){(o.code==="Space"||o.code==="Enter"||o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.disabled||this._manageFormAction(o))}render(){return d`
5696
+ */const $1=o=>o??L;var zo=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,T=(o,t,e,s)=>{for(var r=s>1?void 0:s?Po(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&zo(t,e,r),r};let Oo=0;var K;const U=(K=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(o){this._size=K.VALID_SIZES.includes(o)?o:"md"}get variant(){return this._variant}set variant(o){this._variant=K.VALID_VARIANTS.includes(o)?o:"filled"}get type(){return this._type}set type(o){this._type=K.VALID_TYPES.includes(o)?o:"button"}get target(){return this._target}set target(o){this._target=K.VALID_TARGETS.includes(o)?o:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${Oo++}`}_manageFormAction(o){typeof this.onClick=="function"&&this.onClick(o);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleClick(o){if(this.disabled){o.preventDefault();return}this._manageFormAction(o),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(o){(o.code==="Space"||o.code==="Enter"||o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.disabled||this._manageFormAction(o))}render(){return d`
5704
5697
  ${this.href?d`
5705
5698
  <div class="nys-button__linkwrapper">
5706
5699
  <a
5707
5700
  class="nys-button"
5708
- id=${k1(this.id)}
5709
- name=${k1(this.name?this.name:void 0)}
5701
+ id=${$1(this.id)}
5702
+ name=${$1(this.name?this.name:void 0)}
5710
5703
  ?disabled=${this.disabled}
5711
5704
  aria-disabled="${this.disabled?"true":"false"}"
5712
- form=${k1(this.form?this.form:void 0)}
5713
- value=${k1(this.value?this.value:void 0)}
5705
+ form=${$1(this.form?this.form:void 0)}
5706
+ value=${$1(this.value?this.value:void 0)}
5714
5707
  href=${this.href}
5715
5708
  target=${this.target}
5716
5709
  aria-label=${this.ariaLabel||this.label||"button"}
@@ -5730,11 +5723,11 @@
5730
5723
  `:d`
5731
5724
  <button
5732
5725
  class="nys-button"
5733
- id=${k1(this.id)}
5734
- name=${k1(this.name?this.name:void 0)}
5726
+ id=${$1(this.id)}
5727
+ name=${$1(this.name?this.name:void 0)}
5735
5728
  ?disabled=${this.disabled}
5736
- form=${k1(this.form?this.form:void 0)}
5737
- value=${k1(this.value?this.value:void 0)}
5729
+ form=${$1(this.form?this.form:void 0)}
5730
+ value=${$1(this.value?this.value:void 0)}
5738
5731
  type=${this.type}
5739
5732
  aria-label=${this.ariaLabel||this.label||"button"}
5740
5733
  @click=${this._handleClick}
@@ -5751,7 +5744,7 @@
5751
5744
  </slot>`:""}
5752
5745
  </button>
5753
5746
  `}
5754
- `}},K.VALID_SIZES=["sm","md","lg"],K.VALID_VARIANTS=["filled","outline","ghost","text"],K.VALID_TYPES=["submit","reset","button"],K.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],K.styles=So,K.formAssociated=!0,K);T([I({type:String})],U.prototype,"id",2),T([I({type:String,reflect:!0})],U.prototype,"name",2),T([I({reflect:!0})],U.prototype,"size",1),T([I({type:Boolean,reflect:!0})],U.prototype,"fullWidth",2),T([I({reflect:!0})],U.prototype,"variant",1),T([I({type:Boolean,reflect:!0})],U.prototype,"inverted",2),T([I({type:String})],U.prototype,"label",2),T([I({type:String})],U.prototype,"ariaLabel",2),T([I({type:String})],U.prototype,"prefixIcon",2),T([I({type:String})],U.prototype,"suffixIcon",2),T([I({type:Boolean,reflect:!0})],U.prototype,"disabled",2),T([I({type:String})],U.prototype,"form",2),T([I({type:String})],U.prototype,"value",2),T([I({reflect:!0})],U.prototype,"type",1),T([I({type:Function})],U.prototype,"onClick",2),T([I({type:String})],U.prototype,"href",2),T([I({reflect:!0})],U.prototype,"target",1);let Zo=U;customElements.get("nys-button")||customElements.define("nys-button",Zo);var Io=Object.defineProperty,To=Object.getOwnPropertyDescriptor,$=(o,t,e,s)=>{for(var r=s>1?void 0:s?To(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Io(t,e,r),r};let Bo=0;var $1;const x=($1=class extends f{constructor(){super(),this.id="",this.name="",this._type="text",this.label="",this.description="",this.placeholder="",this.value="",this.disabled=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.form="",this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get type(){return this._type}set type(o){this._type=$1.VALID_TYPES.includes(o)?o:"text"}async updated(o){o.has("width")&&(await Promise.resolve(),this.width=$1.VALID_WIDTHS.includes(this.width)?this.width:"full"),o.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${Bo++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var o,t;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!e)return;const s=this.errorMessage||"This field is required";this.required&&(!this.value||((t=this.value)==null?void 0:t.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},s,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(o=""){var t,e;const s=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(!s)return;this.showError=!!o,(e=this._originalErrorMessage)!=null&&e.trim()&&o!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=o;const r=o?{customError:!0}:{};this._internals.setValidity(r,this.errorMessage,s)}_validate(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!t)return;const e=t.validity;let s="";e.valueMissing?s="This field is required":e.typeMismatch?s="Invalid format for this type":e.patternMismatch?s="Invalid format":e.tooShort?s=`Value is too short. Minimum length is ${t.minLength}`:e.tooLong?s=`Value is too long. Maximum length is ${t.maxLength}`:e.rangeUnderflow?s=`Value must be at least ${t.min}`:e.rangeOverflow?s=`Value must be at most ${t.max}`:e.stepMismatch?s="Invalid step value":s=t.validationMessage,this._setValidityMessage(s)}checkValidity(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(o){var t;o.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(e){const s=this._internals.form;s?Array.from(s.elements).find(r=>typeof r.checkValidity=="function"&&!r.checkValidity())===this&&e.focus():e.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(o){const t=o.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}_handleChange(){this.dispatchEvent(new Event("change"))}_validateButtonSlot(o){var t,e;const s=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="'+o+'"]'),r=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-textinput__buttoncontainer");if(!s||!r)return;const i=s.assignedElements();let n=!1;i.forEach(a=>{a instanceof HTMLElement&&a.tagName.toLowerCase()==="nys-button"&&!n?(n=!0,a.setAttribute("size","sm"),a.setAttribute("variant","primary"),this.disabled?a.setAttribute("disabled","true"):a.removeAttribute("disabled")):(console.warn("The '"+o+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",a),a.remove())}),o==="startButton"?r.classList.toggle("has-start-button",n):o==="endButton"&&r.classList.toggle("has-end-button",n)}render(){return d`
5747
+ `}},K.VALID_SIZES=["sm","md","lg"],K.VALID_VARIANTS=["filled","outline","ghost","text"],K.VALID_TYPES=["submit","reset","button"],K.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],K.styles=So,K.formAssociated=!0,K);T([I({type:String})],U.prototype,"id",2),T([I({type:String,reflect:!0})],U.prototype,"name",2),T([I({reflect:!0})],U.prototype,"size",1),T([I({type:Boolean,reflect:!0})],U.prototype,"fullWidth",2),T([I({reflect:!0})],U.prototype,"variant",1),T([I({type:Boolean,reflect:!0})],U.prototype,"inverted",2),T([I({type:String})],U.prototype,"label",2),T([I({type:String})],U.prototype,"ariaLabel",2),T([I({type:String})],U.prototype,"prefixIcon",2),T([I({type:String})],U.prototype,"suffixIcon",2),T([I({type:Boolean,reflect:!0})],U.prototype,"disabled",2),T([I({type:String})],U.prototype,"form",2),T([I({type:String})],U.prototype,"value",2),T([I({reflect:!0})],U.prototype,"type",1),T([I({type:Function})],U.prototype,"onClick",2),T([I({type:String})],U.prototype,"href",2),T([I({reflect:!0})],U.prototype,"target",1);let Zo=U;customElements.get("nys-button")||customElements.define("nys-button",Zo);var Io=Object.defineProperty,To=Object.getOwnPropertyDescriptor,$=(o,t,e,s)=>{for(var r=s>1?void 0:s?To(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Io(t,e,r),r};let Bo=0;var S1;const x=(S1=class extends f{constructor(){super(),this.id="",this.name="",this._type="text",this.label="",this.description="",this.placeholder="",this.value="",this.disabled=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.form="",this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get type(){return this._type}set type(o){this._type=S1.VALID_TYPES.includes(o)?o:"text"}async updated(o){o.has("width")&&(await Promise.resolve(),this.width=S1.VALID_WIDTHS.includes(this.width)?this.width:"full"),o.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${Bo++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var o,t;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!e)return;const s=this.errorMessage||"This field is required";this.required&&(!this.value||((t=this.value)==null?void 0:t.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},s,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(o=""){var t,e;const s=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(!s)return;this.showError=!!o,(e=this._originalErrorMessage)!=null&&e.trim()&&o!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=o;const r=o?{customError:!0}:{};this._internals.setValidity(r,this.errorMessage,s)}_validate(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!t)return;const e=t.validity;let s="";e.valueMissing?s="This field is required":e.typeMismatch?s="Invalid format for this type":e.patternMismatch?s="Invalid format":e.tooShort?s=`Value is too short. Minimum length is ${t.minLength}`:e.tooLong?s=`Value is too long. Maximum length is ${t.maxLength}`:e.rangeUnderflow?s=`Value must be at least ${t.min}`:e.rangeOverflow?s=`Value must be at most ${t.max}`:e.stepMismatch?s="Invalid step value":s=t.validationMessage,this._setValidityMessage(s)}checkValidity(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(o){var t;o.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(e){const s=this._internals.form;s?Array.from(s.elements).find(r=>typeof r.checkValidity=="function"&&!r.checkValidity())===this&&e.focus():e.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(o){const t=o.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_validateButtonSlot(o){var t,e;const s=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="'+o+'"]'),r=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-textinput__buttoncontainer");if(!s||!r)return;const i=s.assignedElements();let n=!1;i.forEach(a=>{a instanceof HTMLElement&&a.tagName.toLowerCase()==="nys-button"&&!n?(n=!0,a.setAttribute("size","sm"),a.setAttribute("variant","primary"),this.disabled?a.setAttribute("disabled","true"):a.removeAttribute("disabled")):(console.warn("The '"+o+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",a),a.remove())}),o==="startButton"?r.classList.toggle("has-start-button",n):o==="endButton"&&r.classList.toggle("has-end-button",n)}render(){return d`
5755
5748
  <div class="nys-textinput">
5756
5749
  <nys-label
5757
5750
  id=${this.id}
@@ -5789,7 +5782,6 @@
5789
5782
  @input=${this._handleInput}
5790
5783
  @focus="${this._handleFocus}"
5791
5784
  @blur="${this._handleBlur}"
5792
- @change="${this._handleChange}"
5793
5785
  />
5794
5786
  ${this.type==="password"?d` <nys-button
5795
5787
  class="eye-icon"
@@ -5816,7 +5808,7 @@
5816
5808
  errorMessage=${this.errorMessage}
5817
5809
  ></nys-errormessage>
5818
5810
  </div>
5819
- `}},$1.VALID_TYPES=["email","number","password","search","tel","text","url"],$1.VALID_WIDTHS=["sm","md","lg","full"],$1.styles=oo,$1.formAssociated=!0,$1);$([k({type:String})],x.prototype,"id",2),$([k({type:String,reflect:!0})],x.prototype,"name",2),$([k({reflect:!0})],x.prototype,"type",1),$([k({type:String})],x.prototype,"label",2),$([k({type:String})],x.prototype,"description",2),$([k({type:String})],x.prototype,"placeholder",2),$([k({type:String})],x.prototype,"value",2),$([k({type:Boolean,reflect:!0})],x.prototype,"disabled",2),$([k({type:Boolean,reflect:!0})],x.prototype,"readonly",2),$([k({type:Boolean,reflect:!0})],x.prototype,"required",2),$([k({type:Boolean,reflect:!0})],x.prototype,"optional",2),$([k({type:String})],x.prototype,"form",2),$([k({type:String})],x.prototype,"pattern",2),$([k({type:Number})],x.prototype,"maxlength",2),$([k({reflect:!0})],x.prototype,"width",2),$([k({type:Number})],x.prototype,"step",2),$([k({type:Number})],x.prototype,"min",2),$([k({type:Number})],x.prototype,"max",2),$([k({type:Boolean,reflect:!0})],x.prototype,"showError",2),$([k({type:String})],x.prototype,"errorMessage",2),$([ro()],x.prototype,"showPassword",2);let Ro=x;customElements.get("nys-textinput")||customElements.define("nys-textinput",Ro);var No=Object.defineProperty,F1=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&No(t,e,r),r};const oe=class oe extends f{constructor(){super(...arguments),this.trustbarVisible=!1,this.searchDropdownVisible=!1,this.languageVisible=!1,this.isSearchFocused=!1,this.hideTranslate=!1,this.hideSearch=!1,this.languages=[["English",""],["Español","es"],["中文","zh"],["繁體中文","zh-traditional"],["Русский","ru"],["יידיש","yi"],["বাংলা","bn"],["한국어","ko"],["Kreyòl Ayisyen","ht"],["Italiano","it"],["العربية","ar"],["Polski","pl"],["Français","fr"],["اردو","ur"]]}_getNysLogo(){return new DOMParser().parseFromString(qr,"image/svg+xml").documentElement}_toggleTrustbar(){this.trustbarVisible=!this.trustbarVisible,this.trustbarVisible&&(this.languageVisible=!1,this.searchDropdownVisible=!1)}_toggleLanguageList(){this.languageVisible=!this.languageVisible,this.languageVisible&&(this.trustbarVisible=!1,this.searchDropdownVisible=!1)}_toggleSearchDropdown(){this.searchDropdownVisible=!this.searchDropdownVisible,this.searchDropdownVisible&&(this.trustbarVisible=!1,this.languageVisible=!1)}_handleSearchFocus(){this.isSearchFocused=!0,this.trustbarVisible=!1,this.languageVisible=!1}_handleSearchBlur(){this.isSearchFocused=!1}_handleSearchKeyup(t){var e;if(t.key==="Escape"&&(this._handleSearchBlur(),t.target.blur()),t.key==="Enter"){const s=(e=t.target.value)==null?void 0:e.trim();s!==""&&this._handleSearch(s)}}_handleSearchButton(t){var r,i;const s=(i=((r=this.shadowRoot)==null?void 0:r.getElementById(t)).value)==null?void 0:i.trim();s!==""&&this._handleSearch(s)}_handleSearch(t){window.location.href=`https://search.its.ny.gov/search/search.html?btnG=Search&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&ulang=en&sort=date:D:L:d1&entqr=3&entqrm=0&wc=200&wc_mc=1&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&q=${t}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return d`
5811
+ `}},S1.VALID_TYPES=["email","number","password","search","tel","text","url"],S1.VALID_WIDTHS=["sm","md","lg","full"],S1.styles=oo,S1.formAssociated=!0,S1);$([k({type:String})],x.prototype,"id",2),$([k({type:String,reflect:!0})],x.prototype,"name",2),$([k({reflect:!0})],x.prototype,"type",1),$([k({type:String})],x.prototype,"label",2),$([k({type:String})],x.prototype,"description",2),$([k({type:String})],x.prototype,"placeholder",2),$([k({type:String})],x.prototype,"value",2),$([k({type:Boolean,reflect:!0})],x.prototype,"disabled",2),$([k({type:Boolean,reflect:!0})],x.prototype,"readonly",2),$([k({type:Boolean,reflect:!0})],x.prototype,"required",2),$([k({type:Boolean,reflect:!0})],x.prototype,"optional",2),$([k({type:String})],x.prototype,"form",2),$([k({type:String})],x.prototype,"pattern",2),$([k({type:Number})],x.prototype,"maxlength",2),$([k({reflect:!0})],x.prototype,"width",2),$([k({type:Number})],x.prototype,"step",2),$([k({type:Number})],x.prototype,"min",2),$([k({type:Number})],x.prototype,"max",2),$([k({type:Boolean,reflect:!0})],x.prototype,"showError",2),$([k({type:String})],x.prototype,"errorMessage",2),$([ro()],x.prototype,"showPassword",2);let Ro=x;customElements.get("nys-textinput")||customElements.define("nys-textinput",Ro);var No=Object.defineProperty,F1=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&No(t,e,r),r};const oe=class oe extends f{constructor(){super(...arguments),this.trustbarVisible=!1,this.searchDropdownVisible=!1,this.languageVisible=!1,this.isSearchFocused=!1,this.hideTranslate=!1,this.hideSearch=!1,this.languages=[["English",""],["Español","es"],["中文","zh"],["繁體中文","zh-traditional"],["Русский","ru"],["יידיש","yi"],["বাংলা","bn"],["한국어","ko"],["Kreyòl Ayisyen","ht"],["Italiano","it"],["العربية","ar"],["Polski","pl"],["Français","fr"],["اردو","ur"]]}_getNysLogo(){return new DOMParser().parseFromString(qr,"image/svg+xml").documentElement}_toggleTrustbar(){this.trustbarVisible=!this.trustbarVisible,this.trustbarVisible&&(this.languageVisible=!1,this.searchDropdownVisible=!1)}_toggleLanguageList(){this.languageVisible=!this.languageVisible,this.languageVisible&&(this.trustbarVisible=!1,this.searchDropdownVisible=!1)}_toggleSearchDropdown(){this.searchDropdownVisible=!this.searchDropdownVisible,this.searchDropdownVisible&&(this.trustbarVisible=!1,this.languageVisible=!1)}_handleSearchFocus(){this.isSearchFocused=!0,this.trustbarVisible=!1,this.languageVisible=!1}_handleSearchBlur(){this.isSearchFocused=!1}_handleSearchKeyup(t){var e;if(t.key==="Escape"&&(this._handleSearchBlur(),t.target.blur()),t.key==="Enter"){const s=(e=t.target.value)==null?void 0:e.trim();s!==""&&this._handleSearch(s)}}_handleSearchButton(t){var r,i;const s=(i=((r=this.shadowRoot)==null?void 0:r.getElementById(t)).value)==null?void 0:i.trim();s!==""&&this._handleSearch(s)}_handleSearch(t){window.location.href=`https://search.its.ny.gov/search/search.html?btnG=Search&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&ulang=en&sort=date:D:L:d1&entqr=3&entqrm=0&wc=200&wc_mc=1&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&q=${t}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return d`
5820
5812
  <header class="nys-unavheader">
5821
5813
  <div class="nys-unavheader__trustbarwrapper">
5822
5814
  <div
@@ -5881,7 +5873,6 @@
5881
5873
  <div class="nys-unavheader__left">
5882
5874
  <a
5883
5875
  href="https://ny.gov"
5884
- target="_blank"
5885
5876
  id="nys-unavheader__logolink"
5886
5877
  aria-label="logo of New York State"
5887
5878
  >
@@ -5912,7 +5903,7 @@
5912
5903
  </div>
5913
5904
  </div>
5914
5905
  <div class="nys-unavheader__right">
5915
- ${!this.isSearchFocused&&!this.hideTranslate?d`<div class="nys-unavheader__translatewrapper">
5906
+ ${this.hideTranslate?null:d`<div class="nys-unavheader__translatewrapper">
5916
5907
  <div
5917
5908
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
5918
5909
  >
@@ -5925,17 +5916,17 @@
5925
5916
  .onClick="${()=>this._toggleLanguageList()}"
5926
5917
  ></nys-button>
5927
5918
  </div>
5928
- <div class="nys-unavheader--lg nys-unavheader--xl">
5929
- <nys-button
5930
- variant="ghost"
5931
- label="Translate"
5932
- prefixIcon="language_filled"
5933
- suffixIcon=${this.languageVisible?"chevron_up":"chevron_down"}
5934
- ariaLabel="Translate"
5935
- id="nys-unavheader__translate"
5936
- .onClick="${()=>this._toggleLanguageList()}"
5937
- ></nys-button>
5938
- </div>
5919
+ ${this.isSearchFocused?null:d`<div class="nys-unavheader--lg nys-unavheader--xl">
5920
+ <nys-button
5921
+ variant="ghost"
5922
+ label="Translate"
5923
+ prefixIcon="language_filled"
5924
+ suffixIcon=${this.languageVisible?"chevron_up":"chevron_down"}
5925
+ ariaLabel="Translate"
5926
+ id="nys-unavheader__translate"
5927
+ .onClick="${()=>this._toggleLanguageList()}"
5928
+ ></nys-button>
5929
+ </div>`}
5939
5930
  <div
5940
5931
  class="nys-unavheader__languagelist ${this.languageVisible?"show":"hide"}"
5941
5932
  >
@@ -5946,7 +5937,7 @@
5946
5937
  >${t}</a
5947
5938
  >`)}
5948
5939
  </div>
5949
- </div>`:null}
5940
+ </div>`}
5950
5941
  ${this.hideSearch?null:d` <div
5951
5942
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
5952
5943
  >
@@ -6281,7 +6272,7 @@
6281
6272
  --_nys-globalheader-gutter: var(--nys-gutter-xl, 64px);
6282
6273
  }
6283
6274
  }
6284
- `;var jo=Object.defineProperty,Tt=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&jo(t,e,r),r};const ne=class ne extends f{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t==null||t.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var i,n,a;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;const e=t==null?void 0:t.assignedNodes({flatten:!0}).filter(l=>l.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=e.length>0;const s=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalheader__content"),r=(a=this.shadowRoot)==null?void 0:a.querySelector(".nys-globalheader__content-mobile");s&&r&&(s.innerHTML="",r.innerHTML="",e.forEach(l=>{if(l.nodeType===Node.ELEMENT_NODE){const y=l.cloneNode(!0),u=l.cloneNode(!0);["script","iframe","object","embed, img"].forEach(p=>{y.querySelectorAll(p).forEach(C=>C.remove())}),s.appendChild(y),r.appendChild(u),l.remove()}}))}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}render(){var t,e,s,r,i,n,a,l;return d`
6275
+ `;var jo=Object.defineProperty,Tt=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&jo(t,e,r),r};const ne=class ne extends f{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t==null||t.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var i,n,a;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;const e=t==null?void 0:t.assignedNodes({flatten:!0}).filter(l=>l.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=e.length>0;const s=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalheader__content"),r=(a=this.shadowRoot)==null?void 0:a.querySelector(".nys-globalheader__content-mobile");s&&r&&(s.innerHTML="",r.innerHTML="",e.forEach(l=>{if(l.nodeType===Node.ELEMENT_NODE){const u=l.cloneNode(!0),y=l.cloneNode(!0);["script","iframe","object","embed, img"].forEach(p=>{u.querySelectorAll(p).forEach(C=>C.remove())}),s.appendChild(u),r.appendChild(y),l.remove()}}))}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}render(){var t,e,s,r,i,n,a,l;return d`
6285
6276
  <header class="nys-globalheader">
6286
6277
  <div class="nys-globalheader__main-container">
6287
6278
  ${this.slotHasContent?d` <div class="nys-globalheader__button-container">
@@ -6340,7 +6331,7 @@
6340
6331
  <div
6341
6332
  class="nys-globalheader__content-mobile ${this.isMobileMenuOpen?"":"close"}"
6342
6333
  ></div>
6343
- `}};ne.styles=qo;let l1=ne;Tt([c({type:String})],l1.prototype,"appName"),Tt([c({type:String})],l1.prototype,"agencyName"),Tt([c({type:String})],l1.prototype,"homepageLink"),Tt([H1()],l1.prototype,"slotHasContent"),Tt([H1()],l1.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",l1);const Fo=b`
6334
+ `}};ne.styles=qo;let c1=ne;Tt([c({type:String})],c1.prototype,"appName"),Tt([c({type:String})],c1.prototype,"agencyName"),Tt([c({type:String})],c1.prototype,"homepageLink"),Tt([g1()],c1.prototype,"slotHasContent"),Tt([g1()],c1.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",c1);const Fo=b`
6344
6335
  :host {
6345
6336
  /* Global Footer Styles */
6346
6337
  --_nys-globalfooter-text-color: var(
@@ -6495,7 +6486,7 @@
6495
6486
  --_nys-globalfooter-gutter: var(--nys-gutter-xl, 64px);
6496
6487
  }
6497
6488
  }
6498
- `;var Go=Object.defineProperty,ee=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Go(t,e,r),r};const ie=class ie extends f{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t==null||t.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var i,n;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;const e=t==null?void 0:t.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=e.length>0;const s=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalfooter__content"),r=e==null?void 0:e.some(a=>a.tagName==="H4");s&&(s.classList.toggle("columns",r),s.classList.toggle("small",!r),s.innerHTML="",e.forEach(a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.cloneNode(!0);["script","iframe","object","embed","img"].forEach(u=>{l.querySelectorAll(u).forEach(h=>h.remove())}),s.appendChild(l),a.remove()}}))}render(){var t,e;return d`
6489
+ `;var Go=Object.defineProperty,ee=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Go(t,e,r),r};const ie=class ie extends f{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t==null||t.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var i,n;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;const e=t==null?void 0:t.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=e.length>0;const s=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalfooter__content"),r=e==null?void 0:e.some(a=>a.tagName==="H4");s&&(s.classList.toggle("columns",r),s.classList.toggle("small",!r),s.innerHTML="",e.forEach(a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.cloneNode(!0);["script","iframe","object","embed","img"].forEach(y=>{l.querySelectorAll(y).forEach(h=>h.remove())}),s.appendChild(l),a.remove()}}))}render(){var t,e;return d`
6499
6490
  <footer class="nys-globalfooter">
6500
6491
  <div class="nys-globalfooter__main-container">
6501
6492
  ${(t=this.homepageLink)!=null&&t.trim()?d`<a href=${(e=this.homepageLink)==null?void 0:e.trim()}>
@@ -6509,7 +6500,7 @@
6509
6500
  </div>`:""}
6510
6501
  </div>
6511
6502
  </footer>
6512
- `}};ie.styles=Fo;let G1=ie;ee([c({type:String})],G1.prototype,"agencyName"),ee([c({type:String})],G1.prototype,"homepageLink"),ee([H1()],G1.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",G1);const Wo=b`
6503
+ `}};ie.styles=Fo;let G1=ie;ee([c({type:String})],G1.prototype,"agencyName"),ee([c({type:String})],G1.prototype,"homepageLink"),ee([g1()],G1.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",G1);const Wo=b`
6513
6504
  :host {
6514
6505
  /* Global Footer Styles */
6515
6506
  --_nys-unavfooter-link-color: var(
@@ -6709,5 +6700,5 @@
6709
6700
  </div>
6710
6701
  </div>
6711
6702
  </footer>
6712
- `}};ae.styles=Wo;let _2=ae;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",_2),_.NysAlert=Ge,_.NysAvatar=We,_.NysButton=Ye,_.NysCheckbox=d5,_.NysCheckboxgroup=h5,_.NysErrorMessage=O1,_.NysGlobalFooter=G1,_.NysGlobalHeader=l1,_.NysIcon=u5,_.NysLabel=b1,_.NysOption=m1,_.NysRadiobutton=C5,_.NysRadiogroup=p5,_.NysSelect=f5,_.NysSkipnav=nt,_.NysTextarea=g5,_.NysTextinput=_5,_.NysToggle=b5,_.NysUnavFooter=_2,_.NysUnavHeader=e1,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
6703
+ `}};ae.styles=Wo;let _2=ae;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",_2),_.NysAlert=Ge,_.NysAvatar=We,_.NysButton=Ye,_.NysCheckbox=d5,_.NysCheckboxgroup=h5,_.NysErrorMessage=O1,_.NysGlobalFooter=G1,_.NysGlobalHeader=c1,_.NysIcon=y5,_.NysLabel=m1,_.NysOption=x1,_.NysRadiobutton=C5,_.NysRadiogroup=p5,_.NysSelect=f5,_.NysSkipnav=nt,_.NysTextarea=g5,_.NysTextinput=_5,_.NysToggle=b5,_.NysUnavFooter=_2,_.NysUnavHeader=e1,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
6713
6704
  //# sourceMappingURL=nysds.js.map