@nysds/components 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nysds.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(u,o1){typeof exports=="object"&&typeof module<"u"?o1(exports):typeof define=="function"&&define.amd?define(["exports"],o1):(u=typeof globalThis<"u"?globalThis:u||self,o1(u.NYSDS={}))})(this,function(u){"use strict";/*!
1
+ (function(f,r1){typeof exports=="object"&&typeof module<"u"?r1(exports):typeof define=="function"&&define.amd?define(["exports"],r1):(f=typeof globalThis<"u"?globalThis:f||self,r1(f.NYSDS={}))})(this,function(f){"use strict";/*!
2
2
  * New York State Design System (v1.4.0)
3
3
  * Description: A design system for New York State's digital products.
4
4
  * Repository: https://github.com/its-hcd/nysds
@@ -7,29 +7,29 @@
7
7
  * @license
8
8
  * Copyright 2019 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */var qe,c1,d1,S,Q,J,h1,e1,C,t1,P,N,s1;const o1=globalThis,T1=o1.ShadowRoot&&(o1.ShadyCSS===void 0||o1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R1=Symbol(),le=new WeakMap;let ce=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==R1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(T1&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=le.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&le.set(t,e))}return e}toString(){return this.cssText}};const Oe=a=>new ce(typeof a=="string"?a:a+"",void 0,R1),m=(a,...e)=>{const t=a.length===1?a[0]:e.reduce((o,s,r)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[r+1],a[0]);return new ce(t,a,R1)},Pe=(a,e)=>{if(T1)a.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),s=o1.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=t.cssText,a.appendChild(o)}},de=T1?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return Oe(t)})(a):a;/**
10
+ */var Oe,h1,d1,L,J,e1,y1,t1,v,s1,O,R,o1;const r1=globalThis,F1=r1.ShadowRoot&&(r1.ShadyCSS===void 0||r1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j1=Symbol(),de=new WeakMap;let ye=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==j1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(F1&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=de.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&de.set(t,e))}return e}toString(){return this.cssText}};const Re=a=>new ye(typeof a=="string"?a:a+"",void 0,j1),_=(a,...e)=>{const t=a.length===1?a[0]:e.reduce((o,s,r)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[r+1],a[0]);return new ye(t,a,j1)},Te=(a,e)=>{if(F1)a.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),s=r1.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=t.cssText,a.appendChild(o)}},ue=F1?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return Re(t)})(a):a;/**
11
11
  * @license
12
12
  * Copyright 2017 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const{is:Ne,defineProperty:Te,getOwnPropertyDescriptor:Re,getOwnPropertyNames:Fe,getOwnPropertySymbols:je,getPrototypeOf:Ge}=Object,r1=globalThis,he=r1.trustedTypes,Ye=he?he.emptyScript:"",F1=r1.reactiveElementPolyfillSupport,$1=(a,e)=>a,A1={toAttribute(a,e){switch(e){case Boolean:a=a?Ye:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let t=a;switch(e){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},j1=(a,e)=>!Ne(a,e),ye={attribute:!0,type:String,converter:A1,reflect:!1,hasChanged:j1};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),r1.litPropertyMetadata??(r1.litPropertyMetadata=new WeakMap);class m1 extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ye){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(e,o,t);s!==void 0&&Te(this.prototype,e,s)}}static getPropertyDescriptor(e,t,o){const{get:s,set:r}=Re(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get(){return s==null?void 0:s.call(this)},set(i){const l=s==null?void 0:s.call(this);r.call(this,i),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ye}static _$Ei(){if(this.hasOwnProperty($1("elementProperties")))return;const e=Ge(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty($1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($1("properties"))){const t=this.properties,o=[...Fe(t),...je(t)];for(const s of o)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[o,s]of t)this.elementProperties.set(o,s)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const s=this._$Eu(t,o);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const s of o)t.unshift(de(s))}else e!==void 0&&t.push(de(e));return t}static _$Eu(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pe(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostConnected)==null?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){var r;const o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){const i=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:A1).toAttribute(t,o.type);this._$Em=e,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const i=o.getPropertyOptions(s),l=typeof i.converter=="function"?{fromAttribute:i.converter}:((r=i.converter)==null?void 0:r.fromAttribute)!==void 0?i.converter:A1;this._$Em=s,this[s]=l.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??(o=this.constructor.getPropertyOptions(e)),!(o.hasChanged??j1)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[r,i]of s)i.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var s;return(s=o.hostUpdated)==null?void 0:s.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}m1.elementStyles=[],m1.shadowRootOptions={mode:"open"},m1[$1("elementProperties")]=new Map,m1[$1("finalized")]=new Map,F1==null||F1({ReactiveElement:m1}),(r1.reactiveElementVersions??(r1.reactiveElementVersions=[])).push("2.0.4");/**
14
+ */const{is:Ne,defineProperty:Fe,getOwnPropertyDescriptor:je,getOwnPropertyNames:Ge,getOwnPropertySymbols:Ye,getPrototypeOf:We}=Object,i1=globalThis,pe=i1.trustedTypes,Ke=pe?pe.emptyScript:"",G1=i1.reactiveElementPolyfillSupport,L1=(a,e)=>a,Z1={toAttribute(a,e){switch(e){case Boolean:a=a?Ke:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let t=a;switch(e){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},Y1=(a,e)=>!Ne(a,e),fe={attribute:!0,type:String,converter:Z1,reflect:!1,hasChanged:Y1};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),i1.litPropertyMetadata??(i1.litPropertyMetadata=new WeakMap);class x1 extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=fe){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(e,o,t);s!==void 0&&Fe(this.prototype,e,s)}}static getPropertyDescriptor(e,t,o){const{get:s,set:r}=je(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get(){return s==null?void 0:s.call(this)},set(i){const c=s==null?void 0:s.call(this);r.call(this,i),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fe}static _$Ei(){if(this.hasOwnProperty(L1("elementProperties")))return;const e=We(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(L1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L1("properties"))){const t=this.properties,o=[...Ge(t),...Ye(t)];for(const s of o)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[o,s]of t)this.elementProperties.set(o,s)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const s=this._$Eu(t,o);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const s of o)t.unshift(ue(s))}else e!==void 0&&t.push(ue(e));return t}static _$Eu(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Te(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostConnected)==null?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){var r;const o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){const i=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:Z1).toAttribute(t,o.type);this._$Em=e,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const i=o.getPropertyOptions(s),c=typeof i.converter=="function"?{fromAttribute:i.converter}:((r=i.converter)==null?void 0:r.fromAttribute)!==void 0?i.converter:Z1;this._$Em=s,this[s]=c.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??(o=this.constructor.getPropertyOptions(e)),!(o.hasChanged??Y1)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[r,i]of s)i.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var s;return(s=o.hostUpdated)==null?void 0:s.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}x1.elementStyles=[],x1.shadowRootOptions={mode:"open"},x1[L1("elementProperties")]=new Map,x1[L1("finalized")]=new Map,G1==null||G1({ReactiveElement:x1}),(i1.reactiveElementVersions??(i1.reactiveElementVersions=[])).push("2.0.4");/**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const L1=globalThis,Z1=L1.trustedTypes,ue=Z1?Z1.createPolicy("lit-html",{createHTML:a=>a}):void 0,pe="$lit$",n1=`lit$${Math.random().toFixed(9).slice(2)}$`,ge="?"+n1,We=`<${ge}>`,y1=document,S1=()=>y1.createComment(""),M1=a=>a===null||typeof a!="object"&&typeof a!="function",G1=Array.isArray,Ke=a=>G1(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Y1=`[
19
- \f\r]`,E1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ce=/-->/g,fe=/>/g,u1=RegExp(`>|${Y1}(?:([^\\s"'>=/]+)(${Y1}*=${Y1}*(?:[^
20
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Xe=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),d=Xe(1),x1=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),me=new WeakMap,p1=y1.createTreeWalker(y1,129);function xe(a,e){if(!G1(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(e):e}const Qe=(a,e)=>{const t=a.length-1,o=[];let s,r=e===2?"<svg>":e===3?"<math>":"",i=E1;for(let l=0;l<t;l++){const c=a[l];let y,v,g=-1,T=0;for(;T<c.length&&(i.lastIndex=T,v=i.exec(c),v!==null);)T=i.lastIndex,i===E1?v[1]==="!--"?i=Ce:v[1]!==void 0?i=fe:v[2]!==void 0?(_e.test(v[2])&&(s=RegExp("</"+v[2],"g")),i=u1):v[3]!==void 0&&(i=u1):i===u1?v[0]===">"?(i=s??E1,g=-1):v[1]===void 0?g=-2:(g=i.lastIndex-v[2].length,y=v[1],i=v[3]===void 0?u1:v[3]==='"'?be:ve):i===be||i===ve?i=u1:i===Ce||i===fe?i=E1:(i=u1,s=void 0);const Y=i===u1&&a[l+1].startsWith("/>")?" ":"";r+=i===E1?c+We:g>=0?(o.push(y),c.slice(0,g)+pe+c.slice(g)+n1+Y):c+n1+(g===-2?l:Y)}return[xe(a,r+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class D1{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let r=0,i=0;const l=e.length-1,c=this.parts,[y,v]=Qe(e,t);if(this.el=D1.createElement(y,o),p1.currentNode=this.el.content,t===2||t===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(s=p1.nextNode())!==null&&c.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(const g of s.getAttributeNames())if(g.endsWith(pe)){const T=v[i++],Y=s.getAttribute(g).split(n1),N1=/([.?@])?(.*)/.exec(T);c.push({type:1,index:r,name:N1[2],strings:Y,ctor:N1[1]==="."?et:N1[1]==="?"?tt:N1[1]==="@"?st:I1}),s.removeAttribute(g)}else g.startsWith(n1)&&(c.push({type:6,index:r}),s.removeAttribute(g));if(_e.test(s.tagName)){const g=s.textContent.split(n1),T=g.length-1;if(T>0){s.textContent=Z1?Z1.emptyScript:"";for(let Y=0;Y<T;Y++)s.append(g[Y],S1()),p1.nextNode(),c.push({type:2,index:++r});s.append(g[T],S1())}}}else if(s.nodeType===8)if(s.data===ge)c.push({type:2,index:r});else{let g=-1;for(;(g=s.data.indexOf(n1,g+1))!==-1;)c.push({type:7,index:r}),g+=n1.length-1}r++}}static createElement(e,t){const o=y1.createElement("template");return o.innerHTML=e,o}}function w1(a,e,t=a,o){var i,l;if(e===x1)return e;let s=o!==void 0?(i=t._$Co)==null?void 0:i[o]:t._$Cl;const r=M1(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((l=s==null?void 0:s._$AO)==null||l.call(s,!1),r===void 0?s=void 0:(s=new r(a),s._$AT(a,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=s:t._$Cl=s),s!==void 0&&(e=w1(a,s._$AS(a,e.values),s,o)),e}class Je{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,s=((e==null?void 0:e.creationScope)??y1).importNode(t,!0);p1.currentNode=s;let r=p1.nextNode(),i=0,l=0,c=o[0];for(;c!==void 0;){if(i===c.index){let y;c.type===2?y=new V1(r,r.nextSibling,this,e):c.type===1?y=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(y=new ot(r,this,e)),this._$AV.push(y),c=o[++l]}i!==(c==null?void 0:c.index)&&(r=p1.nextNode(),i++)}return p1.currentNode=y1,s}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class V1{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=w1(this,e,t),M1(e)?e===w||e==null||e===""?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==x1&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ke(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&M1(this._$AH)?this._$AA.nextSibling.data=e:this.T(y1.createTextNode(e)),this._$AH=e}$(e){var r;const{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=D1.createElement(xe(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(t);else{const i=new Je(s,this),l=i.u(this.options);i.p(t),this.T(l),this._$AH=i}}_$AC(e){let t=me.get(e.strings);return t===void 0&&me.set(e.strings,t=new D1(e)),t}k(e){G1(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,s=0;for(const r of e)s===t.length?t.push(o=new V1(this.O(S1()),this.O(S1()),this,this.options)):o=t[s],o._$AI(r),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class I1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,r){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=w}_$AI(e,t=this,o,s){const r=this.strings;let i=!1;if(r===void 0)e=w1(this,e,t,0),i=!M1(e)||e!==this._$AH&&e!==x1,i&&(this._$AH=e);else{const l=e;let c,y;for(e=r[0],c=0;c<r.length-1;c++)y=w1(this,l[o+c],t,c),y===x1&&(y=this._$AH[c]),i||(i=!M1(y)||y!==this._$AH[c]),y===w?e=w:e!==w&&(e+=(y??"")+r[c+1]),this._$AH[c]=y}i&&!s&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class et extends I1{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}}class tt extends I1{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}}class st extends I1{constructor(e,t,o,s,r){super(e,t,o,s,r),this.type=5}_$AI(e,t=this){if((e=w1(this,e,t,0)??w)===x1)return;const o=this._$AH,s=e===w&&o!==w||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==w&&(o===w||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class ot{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){w1(this,e)}}const W1=L1.litHtmlPolyfillSupport;W1==null||W1(D1,V1),(L1.litHtmlVersions??(L1.litHtmlVersions=[])).push("3.2.1");const rt=(a,e,t)=>{const o=(t==null?void 0:t.renderBefore)??e;let s=o._$litPart$;if(s===void 0){const r=(t==null?void 0:t.renderBefore)??null;o._$litPart$=s=new V1(e.insertBefore(S1(),r),r,void 0,t??{})}return s._$AI(a),s};/**
18
+ */const E1=globalThis,B1=E1.trustedTypes,ge=B1?B1.createPolicy("lit-html",{createHTML:a=>a}):void 0,ve="$lit$",n1=`lit$${Math.random().toFixed(9).slice(2)}$`,Ce="?"+n1,Xe=`<${Ce}>`,u1=document,M1=()=>u1.createComment(""),D1=a=>a===null||typeof a!="object"&&typeof a!="function",W1=Array.isArray,Qe=a=>W1(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",K1=`[
19
+ \f\r]`,V1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,be=/>/g,p1=RegExp(`>|${K1}(?:([^\\s"'>=/]+)(${K1}*=${K1}*(?:[^
20
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),me=/'/g,xe=/"/g,we=/^(?:script|style|textarea|title)$/i,Je=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),l=Je(1),w1=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),ke=new WeakMap,f1=u1.createTreeWalker(u1,129);function $e(a,e){if(!W1(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return ge!==void 0?ge.createHTML(e):e}const et=(a,e)=>{const t=a.length-1,o=[];let s,r=e===2?"<svg>":e===3?"<math>":"",i=V1;for(let c=0;c<t;c++){const h=a[c];let u,p,d=-1,T=0;for(;T<h.length&&(i.lastIndex=T,p=i.exec(h),p!==null);)T=i.lastIndex,i===V1?p[1]==="!--"?i=_e:p[1]!==void 0?i=be:p[2]!==void 0?(we.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=p1):p[3]!==void 0&&(i=p1):i===p1?p[0]===">"?(i=s??V1,d=-1):p[1]===void 0?d=-2:(d=i.lastIndex-p[2].length,u=p[1],i=p[3]===void 0?p1:p[3]==='"'?xe:me):i===xe||i===me?i=p1:i===_e||i===be?i=V1:(i=p1,s=void 0);const K=i===p1&&a[c+1].startsWith("/>")?" ":"";r+=i===V1?h+Xe:d>=0?(o.push(u),h.slice(0,d)+ve+h.slice(d)+n1+K):h+n1+(d===-2?c:K)}return[$e(a,r+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class z1{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let r=0,i=0;const c=e.length-1,h=this.parts,[u,p]=et(e,t);if(this.el=z1.createElement(u,o),f1.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=f1.nextNode())!==null&&h.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(ve)){const T=p[i++],K=s.getAttribute(d).split(n1),N1=/([.?@])?(.*)/.exec(T);h.push({type:1,index:r,name:N1[2],strings:K,ctor:N1[1]==="."?st:N1[1]==="?"?ot:N1[1]==="@"?rt:U1}),s.removeAttribute(d)}else d.startsWith(n1)&&(h.push({type:6,index:r}),s.removeAttribute(d));if(we.test(s.tagName)){const d=s.textContent.split(n1),T=d.length-1;if(T>0){s.textContent=B1?B1.emptyScript:"";for(let K=0;K<T;K++)s.append(d[K],M1()),f1.nextNode(),h.push({type:2,index:++r});s.append(d[T],M1())}}}else if(s.nodeType===8)if(s.data===Ce)h.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(n1,d+1))!==-1;)h.push({type:7,index:r}),d+=n1.length-1}r++}}static createElement(e,t){const o=u1.createElement("template");return o.innerHTML=e,o}}function k1(a,e,t=a,o){var i,c;if(e===w1)return e;let s=o!==void 0?(i=t._$Co)==null?void 0:i[o]:t._$Cl;const r=D1(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((c=s==null?void 0:s._$AO)==null||c.call(s,!1),r===void 0?s=void 0:(s=new r(a),s._$AT(a,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=s:t._$Cl=s),s!==void 0&&(e=k1(a,s._$AS(a,e.values),s,o)),e}class tt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,s=((e==null?void 0:e.creationScope)??u1).importNode(t,!0);f1.currentNode=s;let r=f1.nextNode(),i=0,c=0,h=o[0];for(;h!==void 0;){if(i===h.index){let u;h.type===2?u=new H1(r,r.nextSibling,this,e):h.type===1?u=new h.ctor(r,h.name,h.strings,this,e):h.type===6&&(u=new it(r,this,e)),this._$AV.push(u),h=o[++c]}i!==(h==null?void 0:h.index)&&(r=f1.nextNode(),i++)}return f1.currentNode=u1,s}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class H1{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=k1(this,e,t),D1(e)?e===w||e==null||e===""?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==w1&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qe(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&D1(this._$AH)?this._$AA.nextSibling.data=e:this.T(u1.createTextNode(e)),this._$AH=e}$(e){var r;const{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=z1.createElement($e(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(t);else{const i=new tt(s,this),c=i.u(this.options);i.p(t),this.T(c),this._$AH=i}}_$AC(e){let t=ke.get(e.strings);return t===void 0&&ke.set(e.strings,t=new z1(e)),t}k(e){W1(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,s=0;for(const r of e)s===t.length?t.push(o=new H1(this.O(M1()),this.O(M1()),this,this.options)):o=t[s],o._$AI(r),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class U1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,r){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=w}_$AI(e,t=this,o,s){const r=this.strings;let i=!1;if(r===void 0)e=k1(this,e,t,0),i=!D1(e)||e!==this._$AH&&e!==w1,i&&(this._$AH=e);else{const c=e;let h,u;for(e=r[0],h=0;h<r.length-1;h++)u=k1(this,c[o+h],t,h),u===w1&&(u=this._$AH[h]),i||(i=!D1(u)||u!==this._$AH[h]),u===w?e=w:e!==w&&(e+=(u??"")+r[h+1]),this._$AH[h]=u}i&&!s&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class st extends U1{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}}class ot extends U1{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}}class rt extends U1{constructor(e,t,o,s,r){super(e,t,o,s,r),this.type=5}_$AI(e,t=this){if((e=k1(this,e,t,0)??w)===w1)return;const o=this._$AH,s=e===w&&o!==w||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==w&&(o===w||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class it{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){k1(this,e)}}const X1=E1.litHtmlPolyfillSupport;X1==null||X1(z1,H1),(E1.litHtmlVersions??(E1.litHtmlVersions=[])).push("3.2.1");const nt=(a,e,t)=>{const o=(t==null?void 0:t.renderBefore)??e;let s=o._$litPart$;if(s===void 0){const r=(t==null?void 0:t.renderBefore)??null;o._$litPart$=s=new H1(e.insertBefore(M1(),r),r,void 0,t??{})}return s._$AI(a),s};/**
21
21
  * @license
22
22
  * Copyright 2017 Google LLC
23
23
  * SPDX-License-Identifier: BSD-3-Clause
24
- */let p=class extends m1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=rt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return x1}};p._$litElement$=!0,p.finalized=!0,(qe=globalThis.litElementHydrateSupport)==null||qe.call(globalThis,{LitElement:p});const K1=globalThis.litElementPolyfillSupport;K1==null||K1({LitElement:p}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
24
+ */let g=class extends x1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=nt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return w1}};g._$litElement$=!0,g.finalized=!0,(Oe=globalThis.litElementHydrateSupport)==null||Oe.call(globalThis,{LitElement:g});const Q1=globalThis.litElementPolyfillSupport;Q1==null||Q1({LitElement:g}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */const nt={attribute:!0,type:String,converter:A1,reflect:!1,hasChanged:j1},it=(a=nt,e,t)=>{const{kind:o,metadata:s}=t;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(t.name,a),o==="accessor"){const{name:i}=t;return{set(l){const c=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,c,a)},init(l){return l!==void 0&&this.P(i,void 0,a),l}}}if(o==="setter"){const{name:i}=t;return function(l){const c=this[i];e.call(this,l),this.requestUpdate(i,c,a)}}throw Error("Unsupported decorator location: "+o)};function n(a){return(e,t)=>typeof t=="object"?it(a,e,t):((o,s,r)=>{const i=s.hasOwnProperty(r);return s.constructor.createProperty(r,i?{...o,wrapped:!0}:o),i?Object.getOwnPropertyDescriptor(s,r):void 0})(a,e,t)}/**
28
+ */const at={attribute:!0,type:String,converter:Z1,reflect:!1,hasChanged:Y1},lt=(a=at,e,t)=>{const{kind:o,metadata:s}=t;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(t.name,a),o==="accessor"){const{name:i}=t;return{set(c){const h=e.get.call(this);e.set.call(this,c),this.requestUpdate(i,h,a)},init(c){return c!==void 0&&this.P(i,void 0,a),c}}}if(o==="setter"){const{name:i}=t;return function(c){const h=this[i];e.call(this,c),this.requestUpdate(i,h,a)}}throw Error("Unsupported decorator location: "+o)};function n(a){return(e,t)=>typeof t=="object"?lt(a,e,t):((o,s,r)=>{const i=s.hasOwnProperty(r);return s.constructor.createProperty(r,i?{...o,wrapped:!0}:o),i?Object.getOwnPropertyDescriptor(s,r):void 0})(a,e,t)}/**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
- */function W(a){return n({...a,state:!0,attribute:!1})}const at=m`
32
+ */function N(a){return n({...a,state:!0,attribute:!1})}const ct=_`
33
33
  :host {
34
34
  /* Global Alert Styles */
35
35
  --_nys-alert-border-width: var(--nys-border-width-lg, 4px);
@@ -263,12 +263,12 @@
263
263
  * @license
264
264
  * Copyright 2018 Google LLC
265
265
  * SPDX-License-Identifier: BSD-3-Clause
266
- */const h=a=>a??w;var lt=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,D=(a,e,t,o)=>{for(var s=o>1?void 0:o?ct(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&lt(e,t,s),s};let dt=0;const M=(c1=class extends p{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(e){this._type=c1.VALID_TYPES.includes(e)?e:"base"}get ariaAttributes(){const e=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",t=e==="region"?`${this.type} alert`:"";return{role:e,ariaLabel:t}}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()}-${dt++}`}_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 t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(e){const o=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});await Promise.resolve(),this._slotHasContent=o.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var o,s;const{role:e,ariaLabel:t}=this.ariaAttributes;return d`
267
- ${this._alertClosed?"":d` <div
266
+ */const y=a=>a??w;var ht=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,D=(a,e,t,o)=>{for(var s=o>1?void 0:o?dt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&ht(e,t,s),s};let yt=0;const E=(h1=class extends g{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(e){this._type=h1.VALID_TYPES.includes(e)?e:"base"}get ariaAttributes(){const e=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",t=e==="region"?`${this.type} alert`:"";return{role:e,ariaLabel:t}}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()}-${yt++}`}_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 t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(e){const o=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});await Promise.resolve(),this._slotHasContent=o.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var o,s;const{role:e,ariaLabel:t}=this.ariaAttributes;return l`
267
+ ${this._alertClosed?"":l` <div
268
268
  id=${this.id}
269
269
  class="nys-alert__container ${this._slotHasContent||((o=this.text)==null?void 0:o.trim().length)>0?"":"nys-alert--centered"}"
270
270
  role=${e}
271
- aria-label=${h(t.trim()!==""?t:void 0)}
271
+ aria-label=${y(t.trim()!==""?t:void 0)}
272
272
  >
273
273
  <div part="nys-alert__icon" class="nys-alert__icon">
274
274
  <nys-icon
@@ -279,23 +279,23 @@
279
279
  </div>
280
280
  <div class="nys-alert__texts">
281
281
  <p class="nys-alert__header">${this.heading}</p>
282
- ${this._slotHasContent?d`<slot></slot>`:((s=this.text)==null?void 0:s.trim().length)>0?d`<p class="nys-alert__text">${this.text}</p>`:""}
283
- ${this.primaryAction||this.secondaryAction?d`<div class="nys-alert__actions">
284
- ${this.primaryAction?d`<a
285
- href=${h(this.primaryAction||void 0)}
282
+ ${this._slotHasContent?l`<slot></slot>`:((s=this.text)==null?void 0:s.trim().length)>0?l`<p class="nys-alert__text">${this.text}</p>`:""}
283
+ ${this.primaryAction||this.secondaryAction?l`<div class="nys-alert__actions">
284
+ ${this.primaryAction?l`<a
285
+ href=${y(this.primaryAction||void 0)}
286
286
  class="nys-alert__action nys-alert__primary"
287
287
  >
288
288
  ${this.primaryLabel}
289
289
  </a>`:""}
290
- ${this.secondaryAction?d`<a
291
- href=${h(this.secondaryAction||void 0)}
290
+ ${this.secondaryAction?l`<a
291
+ href=${y(this.secondaryAction||void 0)}
292
292
  class="nys-alert__action nys-alert__secondary"
293
293
  >
294
294
  ${this.secondaryLabel}
295
295
  </a>`:""}
296
296
  </div> `:""}
297
297
  </div>
298
- ${this.dismissible?d` <nys-button
298
+ ${this.dismissible?l` <nys-button
299
299
  id="dismiss-btn"
300
300
  variant="ghost"
301
301
  circle
@@ -306,7 +306,7 @@
306
306
  .onClick=${()=>this._closeAlert()}
307
307
  ></nys-button>`:""}
308
308
  </div>`}
309
- `}},c1.styles=at,c1.VALID_TYPES=["base","info","success","warning","danger","emergency"],c1);D([n({type:String})],M.prototype,"id",2),D([n({type:String})],M.prototype,"heading",2),D([n({type:String})],M.prototype,"icon",2),D([n({type:Boolean,reflect:!0})],M.prototype,"dismissible",2),D([n({type:Number,reflect:!0})],M.prototype,"duration",2),D([n({type:String})],M.prototype,"text",2),D([n({type:String})],M.prototype,"primaryAction",2),D([n({type:String})],M.prototype,"secondaryAction",2),D([n({type:String})],M.prototype,"primaryLabel",2),D([n({type:String})],M.prototype,"secondaryLabel",2),D([W()],M.prototype,"_alertClosed",2),D([W()],M.prototype,"_slotHasContent",2),D([n({reflect:!0})],M.prototype,"type",1);let we=M;customElements.get("nys-alert")||customElements.define("nys-alert",we);const ht=m`
309
+ `}},h1.styles=ct,h1.VALID_TYPES=["base","info","success","warning","danger","emergency"],h1);D([n({type:String})],E.prototype,"id",2),D([n({type:String})],E.prototype,"heading",2),D([n({type:String})],E.prototype,"icon",2),D([n({type:Boolean,reflect:!0})],E.prototype,"dismissible",2),D([n({type:Number,reflect:!0})],E.prototype,"duration",2),D([n({type:String})],E.prototype,"text",2),D([n({type:String})],E.prototype,"primaryAction",2),D([n({type:String})],E.prototype,"secondaryAction",2),D([n({type:String})],E.prototype,"primaryLabel",2),D([n({type:String})],E.prototype,"secondaryLabel",2),D([N()],E.prototype,"_alertClosed",2),D([N()],E.prototype,"_slotHasContent",2),D([n({reflect:!0})],E.prototype,"type",1);let Se=E;customElements.get("nys-alert")||customElements.define("nys-alert",Se);const ut=_`
310
310
  :host {
311
311
  /* Global Avatar Styles */
312
312
  --_nys-avatar-shape: var(--nys-radius-round, 1776px);
@@ -373,30 +373,30 @@
373
373
  height: 100%;
374
374
  fill: currentColor;
375
375
  }
376
- `;var yt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,K=(a,e,t,o)=>{for(var s=o>1?void 0:o?ut(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&yt(e,t,s),s};let pt=0;const R=(d1=class extends p{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(e){this._shape=d1.VALID_SHAPES.includes(e)?e:"circle",this.requestUpdate("shape")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${pt++}`)}firstUpdated(){this._checkSlotContent()}async _checkSlotContent(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this._slotHasContent=!1;return}await Promise.resolve();const t=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});this._slotHasContent=t.length>0}render(){var e,t,o,s;return d`
376
+ `;var pt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,X=(a,e,t,o)=>{for(var s=o>1?void 0:o?ft(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&pt(e,t,s),s};let gt=0;const F=(d1=class extends g{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(e){this._shape=d1.VALID_SHAPES.includes(e)?e:"circle",this.requestUpdate("shape")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${gt++}`)}firstUpdated(){this._checkSlotContent()}async _checkSlotContent(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this._slotHasContent=!1;return}await Promise.resolve();const t=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});this._slotHasContent=t.length>0}render(){var e,t,o,s;return l`
377
377
  <label class="nys-avatar" id=${this.id}>
378
378
  <div class="nys-avatar__content">
379
379
  <div
380
380
  part="nys-avatar"
381
381
  class="nys-avatar__component"
382
382
  style="background-color: ${((e=this.color)==null?void 0:e.length)>0?this.color:"#555"};"
383
- role=${h(this.image?void 0:"img")}
384
- aria-label=${h(this.image?void 0:this.label?this.label:"avatar")}
383
+ role=${y(this.image?void 0:"img")}
384
+ aria-label=${y(this.image?void 0:this.label?this.label:"avatar")}
385
385
  >
386
- ${((t=this.image)==null?void 0:t.length)>0?d`<img
386
+ ${((t=this.image)==null?void 0:t.length)>0?l`<img
387
387
  part="nys-avatar__image"
388
388
  class="nys-avatar__image"
389
389
  src=${this.image}
390
390
  alt=${this.label||"avatar"}
391
391
  loading=${this.lazy?"lazy":"eager"}
392
- />`:((o=this.initials)==null?void 0:o.length)>0?d`<span
392
+ />`:((o=this.initials)==null?void 0:o.length)>0?l`<span
393
393
  part="nys-avatar__initials"
394
394
  class="nys-avatar__initials"
395
395
  aria-hidden="true"
396
396
  >${this.initials}</span
397
- >`:this._slotHasContent?d`<div part="nys-avatar__icon">
397
+ >`:this._slotHasContent?l`<div part="nys-avatar__icon">
398
398
  <slot></slot>
399
- </div>`:d`<div part="nys-avatar__icon">
399
+ </div>`:l`<div part="nys-avatar__icon">
400
400
  <nys-icon
401
401
  label="nys-avatar__icon"
402
402
  name=${((s=this.icon)==null?void 0:s.length)>0?this.icon:"account_circle"}
@@ -406,7 +406,7 @@
406
406
  </div>
407
407
  </div>
408
408
  </label>
409
- `}},d1.styles=ht,d1.VALID_SHAPES=["square","rounded","circle"],d1);K([n({type:String})],R.prototype,"id",2),K([n({type:String})],R.prototype,"label",2),K([n({type:String})],R.prototype,"image",2),K([n({type:String})],R.prototype,"initials",2),K([n({type:String})],R.prototype,"icon",2),K([n({type:String})],R.prototype,"color",2),K([n({type:Boolean,reflect:!0})],R.prototype,"lazy",2),K([n({reflect:!0})],R.prototype,"shape",1),K([W()],R.prototype,"_slotHasContent",2);let ke=R;customElements.get("nys-avatar")||customElements.define("nys-avatar",ke);const gt=m`
409
+ `}},d1.styles=ut,d1.VALID_SHAPES=["square","rounded","circle"],d1);X([n({type:String})],F.prototype,"id",2),X([n({type:String})],F.prototype,"label",2),X([n({type:String})],F.prototype,"image",2),X([n({type:String})],F.prototype,"initials",2),X([n({type:String})],F.prototype,"icon",2),X([n({type:String})],F.prototype,"color",2),X([n({type:Boolean,reflect:!0})],F.prototype,"lazy",2),X([n({reflect:!0})],F.prototype,"shape",1),X([N()],F.prototype,"_slotHasContent",2);let Le=F;customElements.get("nys-avatar")||customElements.define("nys-avatar",Le);const vt=_`
410
410
  :host {
411
411
  }
412
412
 
@@ -430,7 +430,7 @@
430
430
  .visible {
431
431
  display: inline-flex;
432
432
  }
433
- `;var Ct=Object.defineProperty,X1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Ct(e,t,s),s};const ee=class ee extends p{constructor(){super(),this.position="right",this.visible=!1,this.isMobile=!1,this._handleScroll=this._handleScroll.bind(this),this._handleResize=this._handleResize.bind(this),this.mediaQuery=window.matchMedia("(max-width: 480px)")}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this._handleScroll),this.mediaQuery.addEventListener("change",this._handleResize),this._handleResize()}disconnectedCallback(){window.removeEventListener("scroll",this._handleScroll),this.mediaQuery.removeEventListener("change",this._handleResize),super.disconnectedCallback()}_handleScroll(){const e=window.innerHeight*1.5;this.visible=window.scrollY>e}_scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}_handleResize(){this.isMobile=this.mediaQuery.matches}render(){const e=["nys-backtotop",this.position,this.visible?"visible":""].filter(Boolean).join(" ");return d`<nys-button
433
+ `;var Ct=Object.defineProperty,J1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Ct(e,t,s),s};const se=class se extends g{constructor(){super(),this.position="right",this.visible=!1,this.isMobile=!1,this._handleScroll=this._handleScroll.bind(this),this._handleResize=this._handleResize.bind(this),this.mediaQuery=window.matchMedia("(max-width: 480px)")}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this._handleScroll),this.mediaQuery.addEventListener("change",this._handleResize),this._handleResize()}disconnectedCallback(){window.removeEventListener("scroll",this._handleScroll),this.mediaQuery.removeEventListener("change",this._handleResize),super.disconnectedCallback()}_handleScroll(){const e=window.innerHeight*1.5;this.visible=window.scrollY>e}_scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}_handleResize(){this.isMobile=this.mediaQuery.matches}render(){const e=["nys-backtotop",this.position,this.visible?"visible":""].filter(Boolean).join(" ");return l`<nys-button
434
434
  id="nys-backtotop"
435
435
  prefixIcon="chevron_up"
436
436
  variant="outline"
@@ -438,7 +438,7 @@
438
438
  class="${e}"
439
439
  .onClick=${this._scrollToTop}
440
440
  ?circle=${this.isMobile}
441
- ></nys-button>`}};ee.styles=gt;let g1=ee;X1([n({type:String})],g1.prototype,"position"),X1([n({type:Boolean,reflect:!0})],g1.prototype,"visible"),X1([W()],g1.prototype,"isMobile"),customElements.get("nys-backtotop")||customElements.define("nys-backtotop",g1);const ft=m`
441
+ ></nys-button>`}};se.styles=vt;let g1=se;J1([n({type:String})],g1.prototype,"position"),J1([n({type:Boolean,reflect:!0})],g1.prototype,"visible"),J1([N()],g1.prototype,"isMobile"),customElements.get("nys-backtotop")||customElements.define("nys-backtotop",g1);const _t=_`
442
442
  :host {
443
443
  /* Anything that can be overridden should be defined here */
444
444
 
@@ -858,33 +858,33 @@
858
858
  align-items: center;
859
859
  user-select: none;
860
860
  }
861
- `;var vt=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,x=(a,e,t,o)=>{for(var s=o>1?void 0:o?bt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&vt(e,t,s),s};let _t=0;const b=(S=class extends p{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.circle=!1,this.icon="",this.disabled=!1,this.form="",this.value="",this.ariaDescription="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=S.VALID_SIZES.includes(e)?e:"md"}get variant(){return this._variant}set variant(e){this._variant=S.VALID_VARIANTS.includes(e)?e:"filled"}get type(){return this._type}set type(e){this._type=S.VALID_TYPES.includes(e)?e:"button"}get target(){return this._target}set target(e){this._target=S.VALID_TARGETS.includes(e)?e:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${_t++}`}_manageFormAction(e){typeof this.onClick=="function"&&this.onClick(e);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(e){if(this.disabled){e.preventDefault();return}this._manageFormAction(e),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(e){(e.code==="Space"||e.code==="Enter"||e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.disabled||this._manageFormAction(e))}render(){return d`
862
- ${this.href?d`
861
+ `;var bt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,x=(a,e,t,o)=>{for(var s=o>1?void 0:o?mt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&bt(e,t,s),s};let xt=0;const b=(L=class extends g{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.circle=!1,this.icon="",this.disabled=!1,this.form="",this.value="",this.ariaDescription="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=L.VALID_SIZES.includes(e)?e:"md"}get variant(){return this._variant}set variant(e){this._variant=L.VALID_VARIANTS.includes(e)?e:"filled"}get type(){return this._type}set type(e){this._type=L.VALID_TYPES.includes(e)?e:"button"}get target(){return this._target}set target(e){this._target=L.VALID_TARGETS.includes(e)?e:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${xt++}`}_manageFormAction(e){typeof this.onClick=="function"&&this.onClick(e);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(e){if(this.disabled){e.preventDefault();return}this._manageFormAction(e),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(e){(e.code==="Space"||e.code==="Enter"||e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.disabled||this._manageFormAction(e))}render(){return l`
862
+ ${this.href?l`
863
863
  <div class="nys-button__linkwrapper">
864
864
  <a
865
865
  class="nys-button"
866
- id=${h(this.id)}
867
- name=${h(this.name?this.name:void 0)}
866
+ id=${y(this.id)}
867
+ name=${y(this.name?this.name:void 0)}
868
868
  ?disabled=${this.disabled}
869
869
  aria-disabled="${this.disabled?"true":"false"}"
870
- form=${h(this.form?this.form:void 0)}
871
- value=${h(this.value?this.value:void 0)}
870
+ form=${y(this.form?this.form:void 0)}
871
+ value=${y(this.value?this.value:void 0)}
872
872
  href=${this.href}
873
873
  target=${this.target}
874
- aria-label=${h(this.ariaLabel||this.label||(this.circle?this.icon:null)||"button")}
875
- aria-description=${h(this.ariaDescription||void 0)}
874
+ aria-label=${y(this.ariaLabel||this.label||(this.circle?this.icon:null)||"button")}
875
+ aria-description=${y(this.ariaDescription||void 0)}
876
876
  @click=${this._handleClick}
877
877
  @focus="${this._handleFocus}"
878
878
  @blur="${this._handleBlur}"
879
879
  >
880
- ${this.prefixIcon&&this.variant!=="text"?d`<slot name="prefix-icon">
880
+ ${this.prefixIcon&&this.variant!=="text"?l`<slot name="prefix-icon">
881
881
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
882
882
  </slot>`:""}
883
- ${this.label&&!this.circle?d`<label class="nys-button__text">${this.label}</label>`:""}
884
- ${this.suffixIcon&&this.variant!=="text"?d`<slot name="suffix-icon">
883
+ ${this.label&&!this.circle?l`<label class="nys-button__text">${this.label}</label>`:""}
884
+ ${this.suffixIcon&&this.variant!=="text"?l`<slot name="suffix-icon">
885
885
  <nys-icon size="16" name=${this.suffixIcon}></nys-icon>
886
886
  </slot>`:""}
887
- ${this.circle&&this.icon?d`<slot name="circle-icon"
887
+ ${this.circle&&this.icon?l`<slot name="circle-icon"
888
888
  ><nys-icon
889
889
  size=${this.size==="sm"?"24":this.size==="lg"?"40":"32"}
890
890
  name=${this.icon}
@@ -892,30 +892,30 @@
892
892
  ></slot>`:""}
893
893
  </a>
894
894
  </div>
895
- `:d`
895
+ `:l`
896
896
  <button
897
897
  class="nys-button"
898
- id=${h(this.id)}
899
- name=${h(this.name?this.name:void 0)}
898
+ id=${y(this.id)}
899
+ name=${y(this.name?this.name:void 0)}
900
900
  ?disabled=${this.disabled}
901
- form=${h(this.form?this.form:void 0)}
902
- value=${h(this.value?this.value:void 0)}
901
+ form=${y(this.form?this.form:void 0)}
902
+ value=${y(this.value?this.value:void 0)}
903
903
  type=${this.type}
904
- aria-label=${h(this.ariaLabel||this.label||(this.circle?this.icon:null)||this.prefixIcon||this.suffixIcon||"button")}
905
- aria-description=${h(this.ariaDescription||void 0)}
904
+ aria-label=${y(this.ariaLabel||this.label||(this.circle?this.icon:null)||this.prefixIcon||this.suffixIcon||"button")}
905
+ aria-description=${y(this.ariaDescription||void 0)}
906
906
  @click=${this._handleClick}
907
907
  @focus="${this._handleFocus}"
908
908
  @blur="${this._handleBlur}"
909
909
  @keydown="${this._handleKeydown}"
910
910
  >
911
- ${this.prefixIcon&&this.variant!=="text"?d`<slot name="prefix-icon">
911
+ ${this.prefixIcon&&this.variant!=="text"?l`<slot name="prefix-icon">
912
912
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
913
913
  </slot>`:""}
914
- ${this.label&&!this.circle?d`<label class="nys-button__text">${this.label}</label>`:""}
915
- ${this.suffixIcon&&this.variant!=="text"?d`<slot name="suffix-icon">
914
+ ${this.label&&!this.circle?l`<label class="nys-button__text">${this.label}</label>`:""}
915
+ ${this.suffixIcon&&this.variant!=="text"?l`<slot name="suffix-icon">
916
916
  <nys-icon size="16" name=${this.suffixIcon}></nys-icon>
917
917
  </slot>`:""}
918
- ${this.circle&&this.icon?d`<slot name="circle-icon">
918
+ ${this.circle&&this.icon?l`<slot name="circle-icon">
919
919
  <nys-icon
920
920
  size=${this.size==="sm"?"24":this.size==="lg"?"40":"32"}
921
921
  name=${this.icon}
@@ -923,7 +923,7 @@
923
923
  </slot>`:""}
924
924
  </button>
925
925
  `}
926
- `}},S.VALID_SIZES=["sm","md","lg"],S.VALID_VARIANTS=["filled","outline","ghost","text"],S.VALID_TYPES=["submit","reset","button"],S.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],S.styles=ft,S.formAssociated=!0,S);x([n({type:String})],b.prototype,"id",2),x([n({type:String,reflect:!0})],b.prototype,"name",2),x([n({reflect:!0})],b.prototype,"size",1),x([n({type:Boolean,reflect:!0})],b.prototype,"fullWidth",2),x([n({reflect:!0})],b.prototype,"variant",1),x([n({type:Boolean,reflect:!0})],b.prototype,"inverted",2),x([n({type:String})],b.prototype,"label",2),x([n({type:String})],b.prototype,"ariaLabel",2),x([n({type:String})],b.prototype,"prefixIcon",2),x([n({type:String})],b.prototype,"suffixIcon",2),x([n({type:Boolean,reflect:!0})],b.prototype,"circle",2),x([n({type:String})],b.prototype,"icon",2),x([n({type:Boolean,reflect:!0})],b.prototype,"disabled",2),x([n({type:String})],b.prototype,"form",2),x([n({type:String})],b.prototype,"value",2),x([n({type:String})],b.prototype,"ariaDescription",2),x([n({reflect:!0})],b.prototype,"type",1),x([n({type:Function})],b.prototype,"onClick",2),x([n({type:String})],b.prototype,"href",2),x([n({reflect:!0})],b.prototype,"target",1);let $e=b;customElements.get("nys-button")||customElements.define("nys-button",$e);const Le=m`
926
+ `}},L.VALID_SIZES=["sm","md","lg"],L.VALID_VARIANTS=["filled","outline","ghost","text"],L.VALID_TYPES=["submit","reset","button"],L.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],L.styles=_t,L.formAssociated=!0,L);x([n({type:String})],b.prototype,"id",2),x([n({type:String,reflect:!0})],b.prototype,"name",2),x([n({reflect:!0})],b.prototype,"size",1),x([n({type:Boolean,reflect:!0})],b.prototype,"fullWidth",2),x([n({reflect:!0})],b.prototype,"variant",1),x([n({type:Boolean,reflect:!0})],b.prototype,"inverted",2),x([n({type:String})],b.prototype,"label",2),x([n({type:String})],b.prototype,"ariaLabel",2),x([n({type:String})],b.prototype,"prefixIcon",2),x([n({type:String})],b.prototype,"suffixIcon",2),x([n({type:Boolean,reflect:!0})],b.prototype,"circle",2),x([n({type:String})],b.prototype,"icon",2),x([n({type:Boolean,reflect:!0})],b.prototype,"disabled",2),x([n({type:String})],b.prototype,"form",2),x([n({type:String})],b.prototype,"value",2),x([n({type:String})],b.prototype,"ariaDescription",2),x([n({reflect:!0})],b.prototype,"type",1),x([n({type:Function})],b.prototype,"onClick",2),x([n({type:String})],b.prototype,"href",2),x([n({reflect:!0})],b.prototype,"target",1);let Ee=b;customElements.get("nys-button")||customElements.define("nys-button",Ee);const Me=_`
927
927
  :host {
928
928
  /* Anything that can be overridden should be defined here */
929
929
 
@@ -1279,7 +1279,7 @@
1279
1279
  .nys-checkbox__requiredwrapper {
1280
1280
  display: inline;
1281
1281
  }
1282
- `;var mt=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,F=(a,e,t,o)=>{for(var s=o>1?void 0:o?xt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&mt(e,t,s),s};let wt=0;const I=(Q=class extends p{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(e){this._size=Q.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${wt++}`),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(e){e.has("required")&&this.required&&this._setupCheckboxRequired(),e.has("size")&&this.updateCheckboxSize(),e.has("tile")&&this.updateCheckboxTile(),e.has("showError")&&this.updateCheckboxShowError()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.groupExist=!0})}async _handleInvalid(e){e.preventDefault(),this.showError=!0,this._manageCheckboxRequired();const t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(l=>{if(l.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(v=>v.checked).length===0)return l}else return typeof l.checkValidity=="function"&&!l.checkValidity()})===this&&o.focus():o.focus()}}async _setupCheckboxRequired(){const e=this.querySelector("nys-checkbox"),t=this.errorMessage||"This field is required",o=e?await e.getInputElement():null;this._internals.setValidity({valueMissing:!0},t,o||this)}_handleCheckboxChange(e){const t=e,{name:o}=t.detail,r=Array.from(this.querySelectorAll("nys-checkbox")).filter(i=>i.checked).map(i=>i.value);this.name=o,this._internals.setFormValue(r.join(", ")),this._manageCheckboxRequired()}async _manageCheckboxRequired(){if(this.required){const e=this.errorMessage||"Please select at least one option.",t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;let s=!1;this.querySelectorAll("nys-checkbox").forEach(i=>{i.checked&&(s=!0)}),s?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},e,o||this),this.showError=!0)}}updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.setAttribute("size",this.size)})}updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}render(){return d` <div class="nys-checkboxgroup" role="group">
1282
+ `;var wt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,j=(a,e,t,o)=>{for(var s=o>1?void 0:o?kt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&wt(e,t,s),s};let $t=0;const Z=(J=class extends g{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(e){this._size=J.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${$t++}`),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(e){e.has("required")&&this.required&&this._setupCheckboxRequired(),e.has("size")&&this.updateCheckboxSize(),e.has("tile")&&this.updateCheckboxTile(),e.has("showError")&&this.updateCheckboxShowError()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.groupExist=!0})}async _handleInvalid(e){e.preventDefault(),this.showError=!0,this._manageCheckboxRequired();const t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(c=>{if(c.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(p=>p.checked).length===0)return c}else return typeof c.checkValidity=="function"&&!c.checkValidity()})===this&&o.focus():o.focus()}}async _setupCheckboxRequired(){const e=this.querySelector("nys-checkbox"),t=this.errorMessage||"This field is required",o=e?await e.getInputElement():null;this._internals.setValidity({valueMissing:!0},t,o||this)}_handleCheckboxChange(e){const t=e,{name:o}=t.detail,r=Array.from(this.querySelectorAll("nys-checkbox")).filter(i=>i.checked).map(i=>i.value);this.name=o,this._internals.setFormValue(r.join(", ")),this._manageCheckboxRequired()}async _manageCheckboxRequired(){if(this.required){const e=this.errorMessage||"Please select at least one option.",t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;let s=!1;this.querySelectorAll("nys-checkbox").forEach(i=>{i.checked&&(s=!0)}),s?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},e,o||this),this.showError=!0)}}updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.setAttribute("size",this.size)})}updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}render(){return l` <div class="nys-checkboxgroup" role="group">
1283
1283
  <nys-label
1284
1284
  id=${this.id}
1285
1285
  label=${this.label}
@@ -1296,14 +1296,14 @@
1296
1296
  errorMessage=${this._internals.validationMessage||this.errorMessage}
1297
1297
  .showDivider=${!this.tile}
1298
1298
  ></nys-errormessage>
1299
- </div>`}},Q.VALID_SIZES=["sm","md"],Q.styles=Le,Q.formAssociated=!0,Q);F([n({type:String})],I.prototype,"id",2),F([n({type:String,reflect:!0})],I.prototype,"name",2),F([n({type:Boolean,reflect:!0})],I.prototype,"required",2),F([n({type:Boolean,reflect:!0})],I.prototype,"optional",2),F([n({type:Boolean,reflect:!0})],I.prototype,"showError",2),F([n({type:String})],I.prototype,"errorMessage",2),F([n({type:String})],I.prototype,"label",2),F([n({type:String})],I.prototype,"description",2),F([n({type:Boolean,reflect:!0})],I.prototype,"tile",2),F([n({reflect:!0})],I.prototype,"size",1);let Se=I;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",Se);var kt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,V=(a,e,t,o)=>{for(var s=o>1?void 0:o?$t(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&kt(e,t,s),s};let Lt=0;const E=(J=class extends p{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(e){this._size=J.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${Lt++}`),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 o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input"),t=this.errorMessage||"This field is required";e&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing&&(o="This field is required"),this._setValidityMessage(o)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this.showError=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&t.focus():t.focus()}}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(e){const{checked:t}=e.target;this.checked=t,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(e){e.code==="Space"&&(e.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),await this.updateComplete,this._validate(),this._emitChangeEvent()))}render(){var e;return d`
1299
+ </div>`}},J.VALID_SIZES=["sm","md"],J.styles=Me,J.formAssociated=!0,J);j([n({type:String})],Z.prototype,"id",2),j([n({type:String,reflect:!0})],Z.prototype,"name",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"required",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"optional",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"showError",2),j([n({type:String})],Z.prototype,"errorMessage",2),j([n({type:String})],Z.prototype,"label",2),j([n({type:String})],Z.prototype,"description",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"tile",2),j([n({reflect:!0})],Z.prototype,"size",1);let De=Z;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",De);var St=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,V=(a,e,t,o)=>{for(var s=o>1?void 0:o?Lt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&St(e,t,s),s};let Et=0;const M=(e1=class extends g{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(e){this._size=e1.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${Et++}`),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 o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input"),t=this.errorMessage||"This field is required";e&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing&&(o="This field is required"),this._setValidityMessage(o)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this.showError=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(e){const{checked:t}=e.target;this.checked=t,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(e){e.code==="Space"&&(e.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),await this.updateComplete,this._validate(),this._emitChangeEvent()))}render(){var e;return l`
1300
1300
  <label class="nys-checkbox">
1301
1301
  <div class="nys-checkbox__checkboxwrapper">
1302
1302
  <input
1303
1303
  id="${this.id}"
1304
1304
  class="nys-checkbox__checkbox"
1305
1305
  type="checkbox"
1306
- name="${h(this.name?this.name:void 0)}"
1306
+ name="${y(this.name?this.name:void 0)}"
1307
1307
  .checked=${this.checked}
1308
1308
  ?disabled=${this.disabled}
1309
1309
  .value=${this.value}
@@ -1316,32 +1316,32 @@
1316
1316
  @blur="${this._handleBlur}"
1317
1317
  @keydown="${this._handleKeydown}"
1318
1318
  />
1319
- ${this.checked?d`<nys-icon
1319
+ ${this.checked?l`<nys-icon
1320
1320
  for="${this.id}"
1321
1321
  name="check"
1322
1322
  size="${this.size==="md"?"4xl":this.size==="sm"?"2xl":"xl"}"
1323
1323
  class="nys-checkbox__icon"
1324
1324
  ></nys-icon>`:""}
1325
1325
  </div>
1326
- ${this.label&&d` <div class="nys-checkbox__text">
1326
+ ${this.label&&l` <div class="nys-checkbox__text">
1327
1327
  <div class="nys-checkbox__requiredwrapper">
1328
1328
  <label for=${this.id} class="nys-checkbox__label"
1329
1329
  >${this.label}</label
1330
1330
  >
1331
- ${this.required?d`<label class="nys-checkbox__required">*</label>`:""}
1331
+ ${this.required?l`<label class="nys-checkbox__required">*</label>`:""}
1332
1332
  </div>
1333
1333
  <label for=${this.id} class="nys-checkbox__description">
1334
1334
  <slot name="description">${this.description}</slot>
1335
1335
  </label>
1336
1336
  </div>`}
1337
1337
  </label>
1338
- ${((e=this.parentElement)==null?void 0:e.tagName.toLowerCase())!=="nys-checkboxgroup"?d`<nys-errormessage
1338
+ ${((e=this.parentElement)==null?void 0:e.tagName.toLowerCase())!=="nys-checkboxgroup"?l`<nys-errormessage
1339
1339
  id="single-error-message"
1340
1340
  ?showError=${this.showError}
1341
1341
  errorMessage=${this._internals.validationMessage||this.errorMessage}
1342
1342
  .showDivider=${!this.tile}
1343
1343
  ></nys-errormessage>`:""}
1344
- `}},J.VALID_SIZES=["sm","md"],J.styles=Le,J.formAssociated=!0,J);V([n({type:Boolean,reflect:!0})],E.prototype,"checked",2),V([n({type:Boolean,reflect:!0})],E.prototype,"disabled",2),V([n({type:Boolean,reflect:!0})],E.prototype,"required",2),V([n({type:String})],E.prototype,"label",2),V([n({type:String})],E.prototype,"description",2),V([n({type:String})],E.prototype,"id",2),V([n({type:String,reflect:!0})],E.prototype,"name",2),V([n({type:String})],E.prototype,"value",2),V([n({type:Boolean,reflect:!0})],E.prototype,"showError",2),V([n({type:String})],E.prototype,"errorMessage",2),V([n({type:Boolean})],E.prototype,"groupExist",2),V([n({type:Boolean,reflect:!0})],E.prototype,"tile",2),V([n({reflect:!0})],E.prototype,"size",1);let Me=E;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",Me);const St=m`
1344
+ `}},e1.VALID_SIZES=["sm","md"],e1.styles=Me,e1.formAssociated=!0,e1);V([n({type:Boolean,reflect:!0})],M.prototype,"checked",2),V([n({type:Boolean,reflect:!0})],M.prototype,"disabled",2),V([n({type:Boolean,reflect:!0})],M.prototype,"required",2),V([n({type:String})],M.prototype,"label",2),V([n({type:String})],M.prototype,"description",2),V([n({type:String})],M.prototype,"id",2),V([n({type:String,reflect:!0})],M.prototype,"name",2),V([n({type:String})],M.prototype,"value",2),V([n({type:Boolean,reflect:!0})],M.prototype,"showError",2),V([n({type:String})],M.prototype,"errorMessage",2),V([n({type:Boolean})],M.prototype,"groupExist",2),V([n({type:Boolean,reflect:!0})],M.prototype,"tile",2),V([n({reflect:!0})],M.prototype,"size",1);let Ve=M;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",Ve);const Mt=_`
1345
1345
  :host {
1346
1346
  --_nys-errormessage-font-family: var(
1347
1347
  --nys-font-family-ui,
@@ -1393,10 +1393,10 @@
1393
1393
  border-top: var(--_nys-errormessage-divider-width) solid
1394
1394
  var(--_nys-errormessage-color);
1395
1395
  }
1396
- `;var Mt=Object.defineProperty,Q1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Mt(e,t,s),s};const O1=class O1 extends p{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}>
1396
+ `;var Dt=Object.defineProperty,ee=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Dt(e,t,s),s};const R1=class R1 extends g{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return l`${this.showError?l`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
1397
1397
  <nys-icon name="error" size="2xl"></nys-icon>
1398
1398
  ${this._internals.validationMessage||this.errorMessage}
1399
- </div>`:""}`}};O1.styles=St,O1.formAssociated=!0;let C1=O1;Q1([n({type:Boolean})],C1.prototype,"showError"),Q1([n({type:String})],C1.prototype,"errorMessage"),Q1([n({type:Boolean,reflect:!0})],C1.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",C1);const Et={png:[137,80,78,71,13,10,26,10],jpg:a=>a.length>=4&&a[0]===255&&a[1]===216&&a[2]===255&&[224,225,219].includes(a[3]),pdf:a=>{let e=0;for(;e<a.length&&[32,10,13].includes(a[e]);)e++;return a[e]===37&&a[e+1]===80&&a[e+2]===68&&a[e+3]===70},gif:[71,73,70,56],mp4:a=>{const e=[102,116,121,112];for(let t=0;t<=a.length-e.length;t++){let o=!0;for(let s=0;s<e.length;s++)if(a[t+s]!==e[s]){o=!1;break}if(o)return!0}return!1}};function Dt(a,e){if(typeof e=="function")return e(a);if(a.length<e.length)return!1;for(let t=0;t<e.length;t++)if(a[t]!==e[t])return!1;return!0}const Ee={"image/png":["png"],"image/jpeg":["jpg"],"image/jpg":["jpg"],"image/*":["png","jpg","gif"],"video/mp4":["mp4"],"video/*":["mp4"],"application/pdf":["pdf"],".pdf":["pdf"],".jpg":["jpg"],".jpeg":["jpg"],".png":["png"],".mp4":["mp4"]};async function Vt(a,e){if(!e||e.trim()==="")return!0;const o=await a.slice(0,32).arrayBuffer(),s=new Uint8Array(o),i=e.toLowerCase().split(",").map(c=>c.trim()),l=new Set;for(const c of i)if(Ee[c])for(const y of Ee[c])l.add(y);i.some(c=>c.startsWith("image/"))&&(l.add("png"),l.add("jpg")),i.some(c=>c.startsWith("video/"))&&l.add("mp4");for(const c of l){const y=Et[c];if(y&&Dt(s,y))return!0}return l.size===0}const zt=m`
1399
+ </div>`:""}`}};R1.styles=Mt,R1.formAssociated=!0;let v1=R1;ee([n({type:Boolean})],v1.prototype,"showError"),ee([n({type:String})],v1.prototype,"errorMessage"),ee([n({type:Boolean,reflect:!0})],v1.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",v1);async function Vt(a,e){if(!e||e.trim()==="")return!0;const t=e.toLowerCase().split(",").map(r=>r.trim()),o=a.name.toLowerCase(),s=o.includes(".")?o.split(".").pop():"";for(const r of t)if(r.startsWith(".")&&r.slice(1)===s||r.endsWith("/*")&&a.type.startsWith(r.slice(0,-1))||a.type===r)return!0;return!1}const zt=_`
1400
1400
  :host {
1401
1401
  /* Global Fileinput Styles */
1402
1402
  --_nys-fileinput-gap: var(--nys-space-100, 8px);
@@ -1424,7 +1424,7 @@
1424
1424
  var(--nys-space-100, 8px)
1425
1425
  );
1426
1426
  --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
1427
- var(--nys-color-neutral-300, #a7a9ab);
1427
+ var(--nys-color-neutral-200, #bec0c1);
1428
1428
  --_nys-fileinput-dropzone-color: var(--nys-color-text-disabled, #bec0c1);
1429
1429
  }
1430
1430
 
@@ -1462,27 +1462,33 @@
1462
1462
  gap: 12px;
1463
1463
  align-self: stretch;
1464
1464
  border-radius: var(--_nys-fileinput-dropzone-radius);
1465
- border: var(--_nys-fileinput-dropzone-border);
1465
+ outline: var(--_nys-fileinput-dropzone-border);
1466
1466
  background: var(--_nys-fileinput-dropzone-background);
1467
+ transition: all 60ms ease-in-out;
1467
1468
  }
1468
1469
 
1469
1470
  .nys-fileinput__dropzone:hover {
1470
1471
  cursor: pointer;
1471
- --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
1472
- var(--nys-color-neutral-900, #1b1b1b);
1472
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) dashed
1473
+ var(--nys-color-neutral-700, #4a4d4f);
1473
1474
  }
1474
1475
 
1475
1476
  .nys-fileinput__dropzone.drag-active {
1476
- --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) solid
1477
- var(--nys-color-neutral-900, #1b1b1b);
1477
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) solid
1478
+ var(--nys-color-theme, #154973);
1478
1479
  --_nys-fileinput-dropzone-background: var(--nys-color-theme-faint, #f7fafd);
1479
1480
  }
1480
1481
 
1481
1482
  .nys-fileinput__dropzone.error {
1482
- --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) dashed
1483
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 1px) dashed
1483
1484
  var(--nys-color-danger, #b52c2c);
1484
1485
  }
1485
1486
 
1487
+ .nys-fileinput__dropzone.error:hover {
1488
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 2px) dashed
1489
+ var(--nys-color-emergency, #721c1c);
1490
+ }
1491
+
1486
1492
  .nys-fileinput__dropzone.disabled {
1487
1493
  cursor: not-allowed;
1488
1494
  --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
@@ -1510,7 +1516,7 @@
1510
1516
  progress::-webkit-progress-bar {
1511
1517
  background: var(--_nys-fileinput-progress-background);
1512
1518
  }
1513
- `,Ht=m`
1519
+ `,Ht=_`
1514
1520
  :host {
1515
1521
  /* Global fileitem Styles */
1516
1522
  --_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
@@ -1567,7 +1573,8 @@
1567
1573
  .file-item__info {
1568
1574
  display: flex;
1569
1575
  flex-direction: column;
1570
- width: 100%;
1576
+ flex: 1;
1577
+ min-width: 0;
1571
1578
  font-family: var(--_nys-fileitem-font-family);
1572
1579
  font-size: var(--_nys-fileitem-font-size);
1573
1580
  font-style: normal;
@@ -1576,13 +1583,30 @@
1576
1583
  letter-spacing: var(--_nys-fileitem-letterspacing);
1577
1584
  }
1578
1585
 
1586
+ .file-item__info-name {
1587
+ display: flex;
1588
+ max-width: 100%;
1589
+ overflow: hidden;
1590
+ white-space: nowrap;
1591
+ align-items: center;
1592
+ }
1593
+
1594
+ .file-item__info-name-start {
1595
+ overflow: hidden;
1596
+ text-overflow: ellipsis;
1597
+ white-space: nowrap;
1598
+ flex-shrink: 1;
1599
+ min-width: 0;
1600
+ }
1601
+
1579
1602
  .file-item p {
1580
1603
  margin: 0;
1581
1604
  }
1582
1605
 
1583
- .error-msg {
1606
+ .file-item__error {
1584
1607
  color: var(--_nys-fileitem-error-color);
1585
1608
  text-overflow: ellipsis;
1609
+ font-weight: 700;
1586
1610
  }
1587
1611
 
1588
1612
  /**** Progress Bar ****/
@@ -1627,26 +1651,35 @@
1627
1651
  transform: rotate(360deg);
1628
1652
  }
1629
1653
  }
1630
- `;var At=Object.defineProperty,U1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&At(e,t,s),s};const te=class te extends p{constructor(){super(...arguments),this.filename="",this.status="pending",this.progress=0,this.errorMessage=""}_handleRemove(){this.dispatchEvent(new CustomEvent("nys-fileRemove",{detail:{filename:this.filename},bubbles:!0,composed:!0}))}truncateFilename(e){const t=e.lastIndexOf(".");if(t===-1)return e.length>30?e.slice(0,30)+"...":e;const o=e.slice(t),s=e.slice(0,t),r=30;if(s.length<=r)return e;const i=s.slice(0,r-3),l=s.slice(-3);return`${i}...${l}${o}`}render(){return d`
1631
- <div class="file-item ${this.status}">
1632
- <div class="file-item__main" role="group" aria-label="Filename: ${this.filename}">
1654
+ `;var At=Object.defineProperty,P1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&At(e,t,s),s};const oe=class oe extends g{constructor(){super(...arguments),this.filename="",this.status="pending",this.progress=0,this.errorMessage=""}_handleRemove(){this.dispatchEvent(new CustomEvent("nys-fileRemove",{detail:{filename:this.filename},bubbles:!0,composed:!0}))}splitFilename(e){const t=e.lastIndexOf("."),o=t!==-1?e.slice(t):"",s=t!==-1?e.slice(0,t):e,r=s.slice(0,s.length-3),i=s.slice(-3);return{startPart:r,endPart:i,extension:o}}render(){const{startPart:e,endPart:t,extension:o}=this.splitFilename(this.filename);return l`
1655
+ <div
1656
+ class="file-item ${this.status}"
1657
+ aria-busy=${this.status==="processing"?"true":"false"}
1658
+ aria-label="You have selected ${this.filename}"
1659
+ >
1660
+ <div class="file-item__main" role="group">
1633
1661
  <nys-icon
1634
1662
  class="file-icon"
1635
1663
  name=${this.status==="processing"?"progress_activity":this.status==="error"?"error":"attach_file"}
1636
1664
  size="2xl"
1637
1665
  ></nys-icon>
1638
1666
  <div class="file-item__info">
1639
- <p">
1640
- ${this.truncateFilename(this.filename)}
1641
- </p>
1642
- ${this.errorMessage?d`<p
1643
- class="error-msg"
1644
- role="alert"
1645
- aria-live="assertive"
1646
- id="${this.filename}-error"
1647
- >
1648
- ${this.errorMessage}
1649
- </p>`:null}
1667
+ <div class="file-item__info-name">
1668
+ <span class="file-item__info-name-start">${e}</span>
1669
+ <span class="file-item__info-name-end"
1670
+ >${t}${o}</span
1671
+ >
1672
+ </div>
1673
+ ${this.errorMessage?l`<p
1674
+ class="file-item__error"
1675
+ role="alert"
1676
+ aria-live="assertive"
1677
+ aria-invalid="true"
1678
+ aria-errormessage=${this.errorMessage}
1679
+ id="${this.filename}-error"
1680
+ >
1681
+ ${this.errorMessage}
1682
+ </p>`:null}
1650
1683
  </div>
1651
1684
  <nys-button
1652
1685
  circle
@@ -1655,20 +1688,21 @@
1655
1688
  size="sm"
1656
1689
  variant="ghost"
1657
1690
  .onClick=${()=>this._handleRemove()}
1691
+ ariaLabel="Remove file: ${this.filename}"
1658
1692
  ></nys-button>
1659
1693
  </div>
1660
- ${this.status==="processing"?d`<div
1661
- class="progress-container"
1662
- role="progressbar"
1663
- aria-valuemin="0"
1664
- aria-valuemax="100"
1665
- aria-valuenow="${this.progress}"
1666
- aria-label="Upload progress for ${this.filename}"
1667
- >
1668
- <progress value=${this.progress} max="100"></progress>
1669
- </div>`:null}
1694
+ ${this.status==="processing"?l`<div
1695
+ class="file-item__progress-container"
1696
+ role="progressbar"
1697
+ aria-valuemin="0"
1698
+ aria-valuemax="100"
1699
+ aria-valuenow="${this.progress}"
1700
+ aria-label="Upload progress for ${this.filename}"
1701
+ >
1702
+ <progress value=${this.progress} max="100"></progress>
1703
+ </div>`:null}
1670
1704
  </div>
1671
- `}};te.styles=Ht;let f1=te;U1([n({type:String})],f1.prototype,"filename"),U1([n({type:String})],f1.prototype,"status"),U1([n({type:Number})],f1.prototype,"progress"),U1([n({type:String})],f1.prototype,"errorMessage"),customElements.define("nys-fileitem",f1);var Zt=Object.defineProperty,z=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Zt(e,t,s),s};let It=0;const P1=class P1 extends p{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.multiple=!1,this.accept="",this.disabled=!1,this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.dropzone=!1,this.width="full",this._selectedFiles=[],this._dragActive=!1,this._internals=this.attachInternals()}get _isDropDisabled(){return this.disabled||!this.multiple&&this._selectedFiles.length>0}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-fileinput-${Date.now()}-${It++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}_setValue(){var e;if(this.multiple){const t=this._selectedFiles.map(o=>o.file);if(t.length>0){const o=new FormData;t.forEach(s=>{o.append(this.name,s)}),this._internals.setFormValue(o)}else this._internals.setFormValue(null)}else{const t=((e=this._selectedFiles[0])==null?void 0:e.file)||null;this._internals.setFormValue(t)}this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"Please upload a file.";this.required&&this._selectedFiles.length==0?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=e===(this.errorMessage||"Please upload a file."),(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){const e=this._selectedFiles.some(s=>s.status==="error"),t=this.required&&this._selectedFiles.length===0;let o="";t?o=this.errorMessage||"Please upload a file.":e&&(o="One or more files are invalid."),this._setValidityMessage(o)}async _saveSelectedFiles(e){if(this._selectedFiles.some(s=>s.file.name==e.name)||!this.multiple&&this._selectedFiles.length>=1)return;const o={file:e,progress:0,status:"pending"};this._selectedFiles.push(o),await this._processFile(o),this._setValue(),this._validate()}async _processFile(e){e.status="processing";try{if(!await Vt(e.file,this.accept)){e.status="error",e.errorMsg="File format does not match expected type.",this.requestUpdate();return}const o=new FileReader;o.onprogress=s=>{if(s.lengthComputable){const r=Math.round(s.loaded*100/s.total);e.progress=r,this.requestUpdate()}},o.onload=()=>{e.progress=100,e.status="done",this.requestUpdate()},o.onerror=()=>{e.status="error",e.errorMsg="Failed to load file.",this.requestUpdate()},o.readAsArrayBuffer(e.file)}catch{e.status="error",e.errorMsg="Error validating file.",this.requestUpdate()}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{files:this._selectedFiles},bubbles:!0,composed:!0}))}_openFileDialog(){const e=this.renderRoot.querySelector(".hidden-file-input");e==null||e.click()}_handleFileChange(e){const t=e.target,o=t.files;(o?Array.from(o):[]).map(r=>{this._saveSelectedFiles(r)}),t.value="",this.requestUpdate(),this._dispatchChangeEvent()}_handleFileRemove(e){const t=e.detail.filename;this._selectedFiles=this._selectedFiles.filter(o=>o.file.name!==t),this._setValue(),this._validate(),this.requestUpdate(),this._dispatchChangeEvent()}_onDragOver(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._dragActive||(this._dragActive=!0,this.requestUpdate()))}_onDragLeave(e){this.disabled||(e.stopPropagation(),e.preventDefault(),e.currentTarget===e.target&&(this._dragActive=!1,this.requestUpdate()))}_onDrop(e){var s;if(this.disabled)return;e.preventDefault(),this._dragActive=!1,this.requestUpdate();const t=(s=e.dataTransfer)==null?void 0:s.files;if(!t)return;const o=Array.from(t);this.multiple?o.forEach(r=>{this._saveSelectedFiles(r)}):this._saveSelectedFiles(o[0]),this.requestUpdate(),this._dispatchChangeEvent()}_handleInvalid(e){var o;e.preventDefault(),this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&t.focus():t.focus()}}render(){return d`<div
1705
+ `}};oe.styles=Ht;let C1=oe;P1([n({type:String})],C1.prototype,"filename"),P1([n({type:String})],C1.prototype,"status"),P1([n({type:Number})],C1.prototype,"progress"),P1([n({type:String})],C1.prototype,"errorMessage"),customElements.define("nys-fileitem",C1);var It=Object.defineProperty,z=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&It(e,t,s),s};let Zt=0;const T1=class T1 extends g{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.multiple=!1,this.accept="",this.disabled=!1,this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.dropzone=!1,this.width="full",this._selectedFiles=[],this._dragActive=!1,this._internals=this.attachInternals()}get _isDropDisabled(){return this.disabled||!this.multiple&&this._selectedFiles.length>0}get _buttonAriaLabel(){return this._selectedFiles.length===0?this.multiple?"Choose files: ":"Choose file: ":this.multiple?"Change files: ":"Change file: "}get _buttonAriaDescription(){if(this._selectedFiles.length===0)return`${this.label+" "+this.description}`;const e=this._selectedFiles.some(s=>s.status==="error");let t="";if(this._selectedFiles.length===1)t=`You have selected ${this._selectedFiles[0].file.name}.`;else{const s=this._selectedFiles.map(r=>r.file.name).join(", ");t=`You have selected ${this._selectedFiles.length} files: ${s}`}return`${t}${e?" Error: One or more files are not valid file types.":""}`}get _innerNysButton(){var o;const e=this.renderRoot.querySelector('[name="file-btn"]');return(o=e==null?void 0:e.shadowRoot)==null?void 0:o.querySelector("button")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-fileinput-${Date.now()}-${Zt++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}_setValue(){var e;if(this.multiple){const t=this._selectedFiles.map(o=>o.file);if(t.length>0){const o=new FormData;t.forEach(s=>{o.append(this.name,s)}),this._internals.setFormValue(o)}else this._internals.setFormValue(null)}else{const t=((e=this._selectedFiles[0])==null?void 0:e.file)||null;this._internals.setFormValue(t)}this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"Please upload a file.";this.required&&this._selectedFiles.length==0?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=e===(this.errorMessage||"Please upload a file."),(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){const e=this._selectedFiles.some(s=>s.status==="error"),t=this.required&&this._selectedFiles.length===0;let o="";t?o=this.errorMessage||"Please upload a file.":e&&(o="One or more files are invalid."),this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){e.preventDefault(),this._validate();const t=this._innerNysButton;if(t){const o=this._internals.form;o?Array.from(o.elements).find(i=>typeof i.checkValidity=="function"&&!i.checkValidity())===this&&t.focus():t.focus()}}async _saveSelectedFiles(e){if(this._selectedFiles.some(s=>s.file.name==e.name)||!this.multiple&&this._selectedFiles.length>=1)return;const o={file:e,progress:0,status:"pending"};this._selectedFiles.push(o),await this._processFile(o),this._setValue(),this._validate()}async _processFile(e){e.status="processing";try{if(!await Vt(e.file,this.accept)){e.status="error",e.errorMsg="File type is invalid.",this.requestUpdate();return}const o=new FileReader;o.onprogress=s=>{if(s.lengthComputable){const r=Math.round(s.loaded*100/s.total);e.progress=r,this.requestUpdate()}},o.onload=()=>{e.progress=100,e.status="done",this.requestUpdate()},o.onerror=()=>{e.status="error",e.errorMsg="Failed to load file.",this.requestUpdate()},o.readAsArrayBuffer(e.file)}catch{e.status="error",e.errorMsg="Error validating file.",this.requestUpdate()}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{files:this._selectedFiles},bubbles:!0,composed:!0}))}_openFileDialog(){const e=this.renderRoot.querySelector(".hidden-file-input");e==null||e.click()}_handlePostFileSelectionFocus(){if(this.multiple){const e=this._innerNysButton;e&&e.focus()}else this._focusFirstFileItemIfSingleMode()}async _focusFirstFileItemIfSingleMode(){var e;if(!this.multiple){await this.updateComplete;const t=this.renderRoot.querySelector("nys-fileitem"),o=(e=t==null?void 0:t.shadowRoot)==null?void 0:e.querySelector(".file-item");o&&(o.setAttribute("tabindex","-1"),o.focus())}}_handleFileChange(e){const t=e.target,o=t.files;(o?Array.from(o):[]).map(r=>{this._saveSelectedFiles(r)}),t.value="",this.requestUpdate(),this._dispatchChangeEvent(),this._handlePostFileSelectionFocus()}_handleFileRemove(e){const t=e.detail.filename;this._selectedFiles=this._selectedFiles.filter(o=>o.file.name!==t),this._setValue(),this._validate(),this.requestUpdate(),this._dispatchChangeEvent()}_onDragOver(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._dragActive||(this._dragActive=!0,this.requestUpdate()))}_onDragLeave(e){this.disabled||(e.stopPropagation(),e.preventDefault(),e.currentTarget===e.target&&(this._dragActive=!1,this.requestUpdate()))}_onDrop(e){var s;if(this.disabled)return;e.preventDefault(),this._dragActive=!1,this.requestUpdate();const t=(s=e.dataTransfer)==null?void 0:s.files;if(!t)return;const o=Array.from(t);this.multiple?o.forEach(r=>{this._saveSelectedFiles(r)}):this._saveSelectedFiles(o[0]),this.requestUpdate(),this._dispatchChangeEvent()}render(){return l`<div
1672
1706
  class="nys-fileinput"
1673
1707
  @nys-fileRemove=${this._handleFileRemove}
1674
1708
  >
@@ -1682,8 +1716,8 @@
1682
1716
  </nys-label>
1683
1717
 
1684
1718
  <input
1685
- id=${this.id}
1686
1719
  class="hidden-file-input"
1720
+ tabindex="-1"
1687
1721
  type="file"
1688
1722
  name=${this.name}
1689
1723
  ?multiple=${this.multiple}
@@ -1691,13 +1725,12 @@
1691
1725
  ?required=${this.required}
1692
1726
  ?disabled=${this.disabled||!this.multiple&&this._selectedFiles.length>0}
1693
1727
  aria-disabled="${this.disabled}"
1694
- aria-label="Drag files here or choose from folder"
1695
- aria-describedby="file-input-specific-hint"
1696
- style="position: absolute; width: 1px; height: 1px; opacity: 0;"
1728
+ aria-hidden="true"
1729
+ hidden
1697
1730
  @change=${this._handleFileChange}
1698
1731
  />
1699
1732
 
1700
- ${this.dropzone?d`<div
1733
+ ${this.dropzone?l`<div
1701
1734
  class="nys-fileinput__dropzone
1702
1735
  ${this._dragActive?"drag-active":""}
1703
1736
  ${this._isDropDisabled?"disabled":""}
@@ -1707,33 +1740,38 @@
1707
1740
  @dragover=${this._isDropDisabled?null:this._onDragOver}
1708
1741
  @dragleave=${this._isDropDisabled?null:this._onDragLeave}
1709
1742
  @drop=${this._isDropDisabled?null:this._onDrop}
1743
+ aria-label="Drag files here or choose from folder"
1710
1744
  >
1711
- ${this._dragActive?d`<p>Drop file to upload</p>`:d` <nys-button
1712
- id="file-btn"
1745
+ ${this._dragActive?l`<p>Drop file to upload</p>`:l` <nys-button
1746
+ id=${this.id}
1713
1747
  name="file-btn"
1714
1748
  label=${this.multiple?"Choose files":"Choose file"}
1715
1749
  variant="outline"
1750
+ ariaLabel=${this._buttonAriaLabel}
1751
+ ariaDescription=${this._buttonAriaDescription}
1716
1752
  ?disabled=${this._isDropDisabled}
1717
1753
  .onClick=${e=>{e.stopPropagation(),this._openFileDialog()}}
1718
1754
  ></nys-button>
1719
1755
  <p>or drag here</p>`}
1720
- </div>`:d`<nys-button
1721
- id="file-btn"
1756
+ </div>`:l`<nys-button
1757
+ id=${this.id}
1722
1758
  name="file-btn"
1723
1759
  label=${this.multiple?"Choose files":"Choose file"}
1724
1760
  variant="outline"
1761
+ ariaLabel=${this._buttonAriaLabel}
1762
+ ariaDescription=${this._buttonAriaDescription}
1725
1763
  ?disabled=${this.disabled||!this.multiple&&this._selectedFiles.length>0}
1726
1764
  .onClick=${()=>this._openFileDialog()}
1727
1765
  ></nys-button>`}
1728
- ${this.showError?d`
1766
+ ${this.showError?l`
1729
1767
  <nys-errormessage
1730
1768
  ?showError=${this.showError}
1731
1769
  errorMessage=${this._internals.validationMessage||this.errorMessage}
1732
1770
  ></nys-errormessage>
1733
1771
  `:null}
1734
- ${this._selectedFiles.length>0?d`
1772
+ ${this._selectedFiles.length>0?l`
1735
1773
  <ul>
1736
- ${this._selectedFiles.map(e=>d`<li>
1774
+ ${this._selectedFiles.map(e=>l`<li>
1737
1775
  <nys-fileitem
1738
1776
  filename=${e.file.name}
1739
1777
  status=${e.status}
@@ -1743,7 +1781,7 @@
1743
1781
  </li>`)}
1744
1782
  </ul>
1745
1783
  `:null}
1746
- </div>`}};P1.styles=zt,P1.formAssociated=!0;let $=P1;z([n({type:String})],$.prototype,"id"),z([n({type:String,reflect:!0})],$.prototype,"name"),z([n({type:String})],$.prototype,"label"),z([n({type:String})],$.prototype,"description"),z([n({type:Boolean})],$.prototype,"multiple"),z([n({type:String})],$.prototype,"accept"),z([n({type:Boolean,reflect:!0})],$.prototype,"disabled"),z([n({type:Boolean,reflect:!0})],$.prototype,"required"),z([n({type:Boolean,reflect:!0})],$.prototype,"optional"),z([n({type:Boolean,reflect:!0})],$.prototype,"showError"),z([n({type:String})],$.prototype,"errorMessage"),z([n({type:Boolean})],$.prototype,"dropzone"),z([n({type:String,reflect:!0})],$.prototype,"width"),customElements.get("nys-fileinput")||customElements.define("nys-fileinput",$);const Ut={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
1784
+ </div>`}};T1.styles=zt,T1.formAssociated=!0;let $=T1;z([n({type:String})],$.prototype,"id"),z([n({type:String,reflect:!0})],$.prototype,"name"),z([n({type:String})],$.prototype,"label"),z([n({type:String})],$.prototype,"description"),z([n({type:Boolean})],$.prototype,"multiple"),z([n({type:String})],$.prototype,"accept"),z([n({type:Boolean,reflect:!0})],$.prototype,"disabled"),z([n({type:Boolean,reflect:!0})],$.prototype,"required"),z([n({type:Boolean,reflect:!0})],$.prototype,"optional"),z([n({type:Boolean,reflect:!0})],$.prototype,"showError"),z([n({type:String})],$.prototype,"errorMessage"),z([n({type:Boolean})],$.prototype,"dropzone"),z([n({type:String,reflect:!0})],$.prototype,"width"),customElements.get("nys-fileinput")||customElements.define("nys-fileinput",$);const Bt={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
1747
1785
  <mask id="mask0_12372_781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
1748
1786
  <rect width="24" height="24" fill="#D9D9D9"/>
1749
1787
  </mask>
@@ -2203,7 +2241,7 @@
2203
2241
  <g mask="url(#mask0_12372_621)">
2204
2242
  <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)"/>
2205
2243
  </g>
2206
- </svg>`},Bt=m`
2244
+ </svg>`},Ut=_`
2207
2245
  :host {
2208
2246
  display: inline-block;
2209
2247
  --_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. */
@@ -2303,7 +2341,7 @@
2303
2341
  .nys-icon--flip-both {
2304
2342
  transform: scale(-1, -1);
2305
2343
  }
2306
- `;var qt=Object.defineProperty,Ot=Object.getOwnPropertyDescriptor,v1=(a,e,t,o)=>{for(var s=o>1?void 0:o?Ot(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&qt(e,t,s),s};const i1=(h1=class extends p{constructor(){super(...arguments),this.name="",this.label="",this.ariaDescription="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(e){this._size=h1.VALID_TYPES.includes(e)?e:"sm"}getIcon(){const e=Ut[this.name];if(!e)return null;const s=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;return s instanceof SVGElement?(s.setAttribute("role","img"),this.label?(s.setAttribute("aria-label",this.label),s.removeAttribute("aria-hidden")):(s.setAttribute("aria-hidden","true"),s.removeAttribute("aria-label")),this.ariaDescription&&s.setAttribute("aria-description",this.ariaDescription),s.style.rotate=`${this.rotate}deg`,s.style.color=this.color||"currentcolor",s.classList.add(`nys-icon--${this.size}`),s.classList.add("nys-icon--svg"),this.flip&&s.classList.add(`nys-icon--flip-${this.flip}`),s):null}render(){const e=this.getIcon();return e?d`${e}`:null}},h1.styles=Bt,h1.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","40","48","64"],h1);v1([n({type:String,reflect:!0})],i1.prototype,"name",2),v1([n({type:String})],i1.prototype,"label",2),v1([n({type:String})],i1.prototype,"ariaDescription",2),v1([n({type:String})],i1.prototype,"rotate",2),v1([n({type:String})],i1.prototype,"flip",2),v1([n({type:String})],i1.prototype,"color",2),v1([n({reflect:!0})],i1.prototype,"size",1);let De=i1;customElements.get("nys-icon")||customElements.define("nys-icon",De);const Pt=m`
2344
+ `;var Pt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,_1=(a,e,t,o)=>{for(var s=o>1?void 0:o?qt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Pt(e,t,s),s};const a1=(y1=class extends g{constructor(){super(...arguments),this.name="",this.label="",this.ariaDescription="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(e){this._size=y1.VALID_TYPES.includes(e)?e:"sm"}getIcon(){const e=Bt[this.name];if(!e)return null;const s=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;return s instanceof SVGElement?(s.setAttribute("role","img"),this.label?(s.setAttribute("aria-label",this.label),s.removeAttribute("aria-hidden")):(s.setAttribute("aria-hidden","true"),s.removeAttribute("aria-label")),this.ariaDescription&&s.setAttribute("aria-description",this.ariaDescription),s.style.rotate=`${this.rotate}deg`,s.style.color=this.color||"currentcolor",s.classList.add(`nys-icon--${this.size}`),s.classList.add("nys-icon--svg"),this.flip&&s.classList.add(`nys-icon--flip-${this.flip}`),s):null}render(){const e=this.getIcon();return e?l`${e}`:null}},y1.styles=Ut,y1.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","40","48","64"],y1);_1([n({type:String,reflect:!0})],a1.prototype,"name",2),_1([n({type:String})],a1.prototype,"label",2),_1([n({type:String})],a1.prototype,"ariaDescription",2),_1([n({type:String})],a1.prototype,"rotate",2),_1([n({type:String})],a1.prototype,"flip",2),_1([n({type:String})],a1.prototype,"color",2),_1([n({reflect:!0})],a1.prototype,"size",1);let ze=a1;customElements.get("nys-icon")||customElements.define("nys-icon",ze);const Ot=_`
2307
2345
  :host {
2308
2346
  /* Label Typography */
2309
2347
  --_nys-label-font-family: var(
@@ -2376,18 +2414,18 @@
2376
2414
  font-weight: var(--nys-optional-font-weight);
2377
2415
  color: var(--nys-optional-font-color);
2378
2416
  }
2379
- `;var Nt=Object.defineProperty,B1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Nt(e,t,s),s};const se=class se extends p{constructor(){super(...arguments),this.id="",this.label="",this.description="",this.flag=""}render(){return d`
2417
+ `;var Rt=Object.defineProperty,q1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Rt(e,t,s),s};const re=class re extends g{constructor(){super(...arguments),this.id="",this.label="",this.description="",this.flag=""}render(){return l`
2380
2418
  <div class="nys-label">
2381
2419
  <label for=${this.id} class="nys-label__label"
2382
2420
  >${this.label}
2383
- ${this.flag==="required"?d`<label class="nys-label__required">*</label>`:""}
2384
- ${this.flag==="optional"?d`<label class="nys-label__optional">(Optional)</label>`:""}</label
2421
+ ${this.flag==="required"?l`<label class="nys-label__required">*</label>`:""}
2422
+ ${this.flag==="optional"?l`<label class="nys-label__optional">(Optional)</label>`:""}</label
2385
2423
  >
2386
2424
  <label for=${this.id} class="nys-label__description">
2387
2425
  <slot name="description">${this.description}</slot>
2388
2426
  </label>
2389
2427
  </div>
2390
- `}};se.styles=Pt;let a1=se;B1([n({type:String})],a1.prototype,"id"),B1([n({type:String})],a1.prototype,"label"),B1([n({type:String})],a1.prototype,"description"),B1([n({type:String})],a1.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",a1);const Ve=m`
2428
+ `}};re.styles=Ot;let l1=re;q1([n({type:String})],l1.prototype,"id"),q1([n({type:String})],l1.prototype,"label"),q1([n({type:String})],l1.prototype,"description"),q1([n({type:String})],l1.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",l1);const He=_`
2391
2429
  :host {
2392
2430
  /* Global Radiobutton Styles */
2393
2431
  --_nys-radiobutton-size: var(--nys-size-400, 32px);
@@ -2739,7 +2777,7 @@
2739
2777
  color: var(--_nys-radiobutton-disabled-color-text);
2740
2778
  cursor: not-allowed;
2741
2779
  }
2742
- `;var Tt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,U=(a,e,t,o)=>{for(var s=o>1?void 0:o?Rt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Tt(e,t,s),s};let Ft=0;const A=(e1=class extends p{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(e){this._size=e1.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${Ft++}`),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(e){(e.has("required")||e.has("selectedValue"))&&this._manageRequire(),e.has("size")&&this._updateRadioButtonsSize(),e.has("tile")&&this._updateRadioButtonsTile(),e.has("showError")&&this._updateRadioButtonsShowError()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((t,o)=>{this.required&&o===0&&t.setAttribute("required","required")})}async _manageRequire(){const e=this.errorMessage||"Please select an option.",t=this.querySelector("nys-radiobutton"),o=t?await t.getInputElement():null;o&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},e,o):(this.showError=!1,this._internals.setValidity({},"",o)))}_initializeCheckedRadioValue(){const e=this.querySelector("nys-radiobutton[checked]");e&&(this.selectedValue=e.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_handleRadioButtonChange(e){const t=e,{name:o,value:s}=t.detail;this.name=o,this.selectedValue=s,this._internals.setFormValue(this.selectedValue)}async _handleInvalid(e){if(e.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const t=this.querySelector("nys-radiobutton"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(l=>{if(l.tagName.toLowerCase()==="nys-radiogroup"){if(!l.querySelector("nys-radiobutton").checkValidity())return l}else return typeof l.checkValidity=="function"&&!l.checkValidity()})===this&&o.focus():o.focus()}}}render(){return d` <div
2780
+ `;var Tt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,B=(a,e,t,o)=>{for(var s=o>1?void 0:o?Nt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Tt(e,t,s),s};let Ft=0;const A=(t1=class extends g{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(e){this._size=t1.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${Ft++}`),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(e){(e.has("required")||e.has("selectedValue"))&&this._manageRequire(),e.has("size")&&this._updateRadioButtonsSize(),e.has("tile")&&this._updateRadioButtonsTile(),e.has("showError")&&this._updateRadioButtonsShowError()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((t,o)=>{this.required&&o===0&&t.setAttribute("required","required")})}async _manageRequire(){const e=this.errorMessage||"Please select an option.",t=this.querySelector("nys-radiobutton"),o=t?await t.getInputElement():null;o&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},e,o):(this.showError=!1,this._internals.setValidity({},"",o)))}_initializeCheckedRadioValue(){const e=this.querySelector("nys-radiobutton[checked]");e&&(this.selectedValue=e.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_handleRadioButtonChange(e){const t=e,{name:o,value:s}=t.detail;this.name=o,this.selectedValue=s,this._internals.setFormValue(this.selectedValue)}async _handleInvalid(e){if(e.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const t=this.querySelector("nys-radiobutton"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(c=>{if(c.tagName.toLowerCase()==="nys-radiogroup"){if(!c.querySelector("nys-radiobutton").checkValidity())return c}else return typeof c.checkValidity=="function"&&!c.checkValidity()})===this&&o.focus():o.focus()}}}render(){return l` <div
2743
2781
  role="radiogroup"
2744
2782
  class="nys-radiogroup"
2745
2783
  aria-required="${this.required?"true":"false"}"
@@ -2761,13 +2799,13 @@
2761
2799
  errorMessage=${this._internals.validationMessage||this.errorMessage}
2762
2800
  .showDivider=${!this.tile}
2763
2801
  ></nys-errormessage>
2764
- </div>`}},e1.VALID_SIZES=["sm","md"],e1.styles=Ve,e1.formAssociated=!0,e1);U([n({type:String})],A.prototype,"id",2),U([n({type:String,reflect:!0})],A.prototype,"name",2),U([n({type:Boolean,reflect:!0})],A.prototype,"required",2),U([n({type:Boolean,reflect:!0})],A.prototype,"optional",2),U([n({type:Boolean,reflect:!0})],A.prototype,"showError",2),U([n({type:String})],A.prototype,"errorMessage",2),U([n({type:String})],A.prototype,"label",2),U([n({type:String})],A.prototype,"description",2),U([W()],A.prototype,"selectedValue",2),U([n({reflect:!0})],A.prototype,"size",1),U([n({type:Boolean,reflect:!0})],A.prototype,"tile",2);let ze=A;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",ze);var jt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,j=(a,e,t,o)=>{for(var s=o>1?void 0:o?Gt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&jt(e,t,s),s};let Yt=0;const B=(C=class extends p{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(e){this._size=C.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${Yt++}`),this.checked&&(C.buttonGroup[this.name]&&(C.buttonGroup[this.name].checked=!1,C.buttonGroup[this.name].requestUpdate()),C.buttonGroup[this.name]=this)}updated(e){e.has("checked")&&this.checked&&C.buttonGroup[this.name]!==this&&(C.buttonGroup[this.name]&&(C.buttonGroup[this.name].checked=!1,C.buttonGroup[this.name].requestUpdate()),C.buttonGroup[this.name]=this)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.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||(C.buttonGroup[this.name]&&(C.buttonGroup[this.name].checked=!1,C.buttonGroup[this.name].requestUpdate()),C.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent())}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleKeydown(e){e.code==="Space"&&(e.preventDefault(),!this.disabled&&!this.checked&&(C.buttonGroup[this.name]&&(C.buttonGroup[this.name].checked=!1,C.buttonGroup[this.name].requestUpdate()),C.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent()))}render(){return d`
2802
+ </div>`}},t1.VALID_SIZES=["sm","md"],t1.styles=He,t1.formAssociated=!0,t1);B([n({type:String})],A.prototype,"id",2),B([n({type:String,reflect:!0})],A.prototype,"name",2),B([n({type:Boolean,reflect:!0})],A.prototype,"required",2),B([n({type:Boolean,reflect:!0})],A.prototype,"optional",2),B([n({type:Boolean,reflect:!0})],A.prototype,"showError",2),B([n({type:String})],A.prototype,"errorMessage",2),B([n({type:String})],A.prototype,"label",2),B([n({type:String})],A.prototype,"description",2),B([N()],A.prototype,"selectedValue",2),B([n({reflect:!0})],A.prototype,"size",1),B([n({type:Boolean,reflect:!0})],A.prototype,"tile",2);let Ae=A;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",Ae);var jt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,G=(a,e,t,o)=>{for(var s=o>1?void 0:o?Gt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&jt(e,t,s),s};let Yt=0;const U=(v=class extends g{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(e){this._size=v.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${Yt++}`),this.checked&&(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this)}updated(e){e.has("checked")&&this.checked&&v.buttonGroup[this.name]!==this&&(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.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||(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent())}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleKeydown(e){e.code==="Space"&&(e.preventDefault(),!this.disabled&&!this.checked&&(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent()))}render(){return l`
2765
2803
  <label class="nys-radiobutton">
2766
2804
  <input
2767
2805
  id="${this.id}"
2768
2806
  class="nys-radiobutton__radio"
2769
2807
  type="radio"
2770
- name="${h(this.name?this.name:void 0)}"
2808
+ name="${y(this.name?this.name:void 0)}"
2771
2809
  .checked=${this.checked}
2772
2810
  ?disabled=${this.disabled}
2773
2811
  .value=${this.value}
@@ -2780,7 +2818,7 @@
2780
2818
  @blur="${this._handleBlur}"
2781
2819
  @keydown="${this._handleKeydown}"
2782
2820
  />
2783
- ${this.label&&d` <div class="nys-radiobutton__text">
2821
+ ${this.label&&l` <div class="nys-radiobutton__text">
2784
2822
  <label for=${this.id} class="nys-radiobutton__label"
2785
2823
  >${this.label}</label
2786
2824
  >
@@ -2789,7 +2827,7 @@
2789
2827
  </label>
2790
2828
  </div>`}
2791
2829
  </label>
2792
- `}},C.VALID_SIZES=["sm","md"],C.buttonGroup={},C.styles=Ve,C);j([n({type:Boolean,reflect:!0})],B.prototype,"checked",2),j([n({type:Boolean,reflect:!0})],B.prototype,"disabled",2),j([n({type:Boolean,reflect:!0})],B.prototype,"required",2),j([n({type:String})],B.prototype,"label",2),j([n({type:String})],B.prototype,"description",2),j([n({type:String})],B.prototype,"id",2),j([n({type:String,reflect:!0})],B.prototype,"name",2),j([n({type:String})],B.prototype,"value",2),j([n({reflect:!0})],B.prototype,"size",1),j([n({type:Boolean,reflect:!0})],B.prototype,"tile",2);let He=B;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",He);const Wt=m`
2830
+ `}},v.VALID_SIZES=["sm","md"],v.buttonGroup={},v.styles=He,v);G([n({type:Boolean,reflect:!0})],U.prototype,"checked",2),G([n({type:Boolean,reflect:!0})],U.prototype,"disabled",2),G([n({type:Boolean,reflect:!0})],U.prototype,"required",2),G([n({type:String})],U.prototype,"label",2),G([n({type:String})],U.prototype,"description",2),G([n({type:String})],U.prototype,"id",2),G([n({type:String,reflect:!0})],U.prototype,"name",2),G([n({type:String})],U.prototype,"value",2),G([n({reflect:!0})],U.prototype,"size",1),G([n({type:Boolean,reflect:!0})],U.prototype,"tile",2);let Ie=U;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",Ie);const Wt=_`
2793
2831
  :host {
2794
2832
  /* Global Select Styles */
2795
2833
  --_nys-select-width: 100%;
@@ -2936,7 +2974,7 @@
2936
2974
  --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
2937
2975
  var(--_nys-select-error-color);
2938
2976
  }
2939
- `;var Kt=Object.defineProperty,z1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Kt(e,t,s),s};class l1 extends p{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{var s;const o=e.assignedNodes({flatten:!0});o.length>0&&(this.label=((s=o[0].textContent)==null?void 0:s.trim())||"")})}render(){return d`
2977
+ `;var Kt=Object.defineProperty,A1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Kt(e,t,s),s};class c1 extends g{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{var s;const o=e.assignedNodes({flatten:!0});o.length>0&&(this.label=((s=o[0].textContent)==null?void 0:s.trim())||"")})}render(){return l`
2940
2978
  <option
2941
2979
  ?disabled=${this.disabled}
2942
2980
  ?selected=${this.selected}
@@ -2946,7 +2984,7 @@
2946
2984
  >
2947
2985
  <slot>${this.label}</slot>
2948
2986
  </option>
2949
- `}}z1([n({type:Boolean,reflect:!0})],l1.prototype,"disabled"),z1([n({type:Boolean,reflect:!0})],l1.prototype,"selected"),z1([n({type:String})],l1.prototype,"value"),z1([n({type:String})],l1.prototype,"label"),z1([n({type:Boolean,reflect:!0})],l1.prototype,"hidden"),customElements.define("nys-option",l1);var Xt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,Z=(a,e,t,o)=>{for(var s=o>1?void 0:o?Qt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Xt(e,t,s),s};let Jt=0;const H=(t1=class extends p{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(e){this._width=t1.VALID_WIDTHS.includes(e)?e:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Jt++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_handleSlotChange(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector('slot:not([name="description"])'),t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!e||!t)return;t.querySelectorAll("option:not([hidden])").forEach(i=>i.remove()),e.assignedElements({flatten:!0}).forEach(i=>{var l;if(i instanceof l1){const c=document.createElement("option");c.value=i.value,c.textContent=i.label||((l=i.textContent)==null?void 0:l.trim())||"",c.disabled=i.disabled,c.selected=i.selected,t.appendChild(c)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!e)return;const t=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(!e)return;let t=e.validationMessage;this._manageRequire(),this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("select");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(t){const s=this._internals.form;s?Array.from(s.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&t.focus():t.focus()}}_handleChange(e){const t=e.target;this.value=t.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(e){var t;if(super.updated(e),e.has("value")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector("select");o&&(o.value=this.value)}}render(){return d`
2987
+ `}}A1([n({type:Boolean,reflect:!0})],c1.prototype,"disabled"),A1([n({type:Boolean,reflect:!0})],c1.prototype,"selected"),A1([n({type:String})],c1.prototype,"value"),A1([n({type:String})],c1.prototype,"label"),A1([n({type:Boolean,reflect:!0})],c1.prototype,"hidden"),customElements.define("nys-option",c1);var Xt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,I=(a,e,t,o)=>{for(var s=o>1?void 0:o?Qt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Xt(e,t,s),s};let Jt=0;const H=(s1=class extends g{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(e){this._width=s1.VALID_WIDTHS.includes(e)?e:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Jt++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_handleSlotChange(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector('slot:not([name="description"])'),t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!e||!t)return;t.querySelectorAll("option:not([hidden])").forEach(i=>i.remove()),e.assignedElements({flatten:!0}).forEach(i=>{var c;if(i instanceof c1){const h=document.createElement("option");h.value=i.value,h.textContent=i.label||((c=i.textContent)==null?void 0:c.trim())||"",h.disabled=i.disabled,h.selected=i.selected,t.appendChild(h)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!e)return;const t=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(!e)return;let t=e.validationMessage;this._manageRequire(),this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("select");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_handleChange(e){const t=e.target;this.value=t.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(e){var t;if(super.updated(e),e.has("value")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector("select");o&&(o.value=this.value)}}render(){return l`
2950
2988
  <div class="nys-select">
2951
2989
  <nys-label
2952
2990
  id=${this.id}
@@ -2987,7 +3025,7 @@
2987
3025
  errorMessage=${this._internals.validationMessage||this.errorMessage}
2988
3026
  ></nys-errormessage>
2989
3027
  </div>
2990
- `}},t1.VALID_WIDTHS=["sm","md","lg","full"],t1.styles=Wt,t1.formAssociated=!0,t1);Z([n({type:String})],H.prototype,"id",2),Z([n({type:String,reflect:!0})],H.prototype,"name",2),Z([n({type:String})],H.prototype,"label",2),Z([n({type:String})],H.prototype,"description",2),Z([n({type:String})],H.prototype,"value",2),Z([n({type:Boolean,reflect:!0})],H.prototype,"disabled",2),Z([n({type:Boolean,reflect:!0})],H.prototype,"required",2),Z([n({type:Boolean,reflect:!0})],H.prototype,"optional",2),Z([n({type:String})],H.prototype,"form",2),Z([n({type:Boolean,reflect:!0})],H.prototype,"showError",2),Z([n({type:String})],H.prototype,"errorMessage",2),Z([n({reflect:!0})],H.prototype,"width",1);let Ae=H;customElements.get("nys-select")||customElements.define("nys-select",Ae);const e2=m`
3028
+ `}},s1.VALID_WIDTHS=["sm","md","lg","full"],s1.styles=Wt,s1.formAssociated=!0,s1);I([n({type:String})],H.prototype,"id",2),I([n({type:String,reflect:!0})],H.prototype,"name",2),I([n({type:String})],H.prototype,"label",2),I([n({type:String})],H.prototype,"description",2),I([n({type:String})],H.prototype,"value",2),I([n({type:Boolean,reflect:!0})],H.prototype,"disabled",2),I([n({type:Boolean,reflect:!0})],H.prototype,"required",2),I([n({type:Boolean,reflect:!0})],H.prototype,"optional",2),I([n({type:String})],H.prototype,"form",2),I([n({type:Boolean,reflect:!0})],H.prototype,"showError",2),I([n({type:String})],H.prototype,"errorMessage",2),I([n({reflect:!0})],H.prototype,"width",1);let Ze=H;customElements.get("nys-select")||customElements.define("nys-select",Ze);const e2=_`
2991
3029
  :host {
2992
3030
  /* Global Skipnav Styles */
2993
3031
  --_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
@@ -3059,7 +3097,7 @@
3059
3097
  left: auto;
3060
3098
  outline: none;
3061
3099
  }
3062
- `;var t2=Object.defineProperty,Ze=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&t2(e,t,s),s};const oe=class oe extends p{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.add("show")}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.remove("show")}_handleClick(){const e=(this.href||"#main-content").replace("#",""),t=document.getElementById(e);t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none")}render(){return d`
3100
+ `;var t2=Object.defineProperty,Be=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&t2(e,t,s),s};const ie=class ie extends g{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.add("show")}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.remove("show")}_handleClick(){const e=(this.href||"#main-content").replace("#",""),t=document.getElementById(e);t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none")}render(){return l`
3063
3101
  <div class="nys-skipnav">
3064
3102
  <a
3065
3103
  id=${this.id}
@@ -3073,7 +3111,7 @@
3073
3111
  Skip to main content
3074
3112
  </a>
3075
3113
  </div>
3076
- `}};oe.styles=e2;let k1=oe;Ze([n({type:String})],k1.prototype,"id"),Ze([n({type:String})],k1.prototype,"href"),customElements.get("nys-skipnav")||customElements.define("nys-skipnav",k1);const s2=m`
3114
+ `}};ie.styles=e2;let $1=ie;Be([n({type:String})],$1.prototype,"id"),Be([n({type:String})],$1.prototype,"href"),customElements.get("nys-skipnav")||customElements.define("nys-skipnav",$1);const s2=_`
3077
3115
  :host {
3078
3116
  /* Anything that can be overridden should be defined here */
3079
3117
 
@@ -3214,7 +3252,7 @@
3214
3252
  color: var(--_nys-textarea-disabled-color-text);
3215
3253
  cursor: not-allowed;
3216
3254
  }
3217
- `;var o2=Object.defineProperty,r2=Object.getOwnPropertyDescriptor,L=(a,e,t,o)=>{for(var s=o>1?void 0:o?r2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&o2(e,t,s),s};let n2=0;const k=(P=class extends p{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(e){this._resize=P.VALID_RESIZE.includes(e)?e:"vertical"}async updated(e){await Promise.resolve(),e.has("width")&&(this.width=P.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${n2++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(!e)return;let t=e.validationMessage;this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("textarea");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(t){const s=this._internals.form;s?Array.from(s.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&t.focus():t.focus()}}_handleInput(e){const t=e.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"))}_handleSelect(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("selectionchange",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return d`
3255
+ `;var o2=Object.defineProperty,r2=Object.getOwnPropertyDescriptor,S=(a,e,t,o)=>{for(var s=o>1?void 0:o?r2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&o2(e,t,s),s};let i2=0;const k=(O=class extends g{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(e){this._resize=O.VALID_RESIZE.includes(e)?e:"vertical"}async updated(e){await Promise.resolve(),e.has("width")&&(this.width=O.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${i2++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(!e)return;let t=e.validationMessage;this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("textarea");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_handleInput(e){const t=e.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"))}_handleSelect(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("selectionchange",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return l`
3218
3256
  <label class="nys-textarea">
3219
3257
  <nys-label
3220
3258
  id=${this.id}
@@ -3231,14 +3269,14 @@
3231
3269
  ?disabled=${this.disabled}
3232
3270
  ?required=${this.required}
3233
3271
  ?readonly=${this.readonly}
3234
- aria-disabled=${h(this.disabled?"true":void 0)}
3235
- aria-required=${h(this.required?"true":void 0)}
3236
- aria-label=${h(this.label||void 0)}
3237
- aria-description=${h(this.description||void 0)}
3238
- placeholder=${h(this.placeholder?this.placeholder:void 0)}
3239
- maxlength=${h(this.maxlength!==""?this.maxlength:void 0)}
3272
+ aria-disabled=${y(this.disabled?"true":void 0)}
3273
+ aria-required=${y(this.required?"true":void 0)}
3274
+ aria-label=${y(this.label||void 0)}
3275
+ aria-description=${y(this.description||void 0)}
3276
+ placeholder=${y(this.placeholder?this.placeholder:void 0)}
3277
+ maxlength=${y(this.maxlength!==""?this.maxlength:void 0)}
3240
3278
  .rows=${this.rows}
3241
- form=${h(this.form||void 0)}
3279
+ form=${y(this.form||void 0)}
3242
3280
  @input=${this._handleInput}
3243
3281
  @focus="${this._handleFocus}"
3244
3282
  @blur="${this._handleBlur}"
@@ -3252,7 +3290,7 @@ ${this.value}</textarea
3252
3290
  errorMessage=${this._internals.validationMessage||this.errorMessage}
3253
3291
  ></nys-errormessage>
3254
3292
  </label>
3255
- `}},P.VALID_WIDTHS=["sm","md","lg","full"],P.VALID_RESIZE=["vertical","none"],P.styles=s2,P.formAssociated=!0,P);L([n({type:String})],k.prototype,"id",2),L([n({type:String,reflect:!0})],k.prototype,"name",2),L([n({type:String})],k.prototype,"label",2),L([n({type:String})],k.prototype,"description",2),L([n({type:String})],k.prototype,"placeholder",2),L([n({type:String})],k.prototype,"value",2),L([n({type:Boolean,reflect:!0})],k.prototype,"disabled",2),L([n({type:Boolean,reflect:!0})],k.prototype,"readonly",2),L([n({type:Boolean,reflect:!0})],k.prototype,"required",2),L([n({type:Boolean,reflect:!0})],k.prototype,"optional",2),L([n({type:String})],k.prototype,"form",2),L([n({type:Number})],k.prototype,"maxlength",2),L([n({reflect:!0})],k.prototype,"width",2),L([n({type:Number})],k.prototype,"rows",2),L([n({reflect:!0})],k.prototype,"resize",1),L([n({type:Boolean,reflect:!0})],k.prototype,"showError",2),L([n({type:String})],k.prototype,"errorMessage",2);let Ie=k;customElements.get("nys-textarea")||customElements.define("nys-textarea",Ie);const i2=m`
3293
+ `}},O.VALID_WIDTHS=["sm","md","lg","full"],O.VALID_RESIZE=["vertical","none"],O.styles=s2,O.formAssociated=!0,O);S([n({type:String})],k.prototype,"id",2),S([n({type:String,reflect:!0})],k.prototype,"name",2),S([n({type:String})],k.prototype,"label",2),S([n({type:String})],k.prototype,"description",2),S([n({type:String})],k.prototype,"placeholder",2),S([n({type:String})],k.prototype,"value",2),S([n({type:Boolean,reflect:!0})],k.prototype,"disabled",2),S([n({type:Boolean,reflect:!0})],k.prototype,"readonly",2),S([n({type:Boolean,reflect:!0})],k.prototype,"required",2),S([n({type:Boolean,reflect:!0})],k.prototype,"optional",2),S([n({type:String})],k.prototype,"form",2),S([n({type:Number})],k.prototype,"maxlength",2),S([n({reflect:!0})],k.prototype,"width",2),S([n({type:Number})],k.prototype,"rows",2),S([n({reflect:!0})],k.prototype,"resize",1),S([n({type:Boolean,reflect:!0})],k.prototype,"showError",2),S([n({type:String})],k.prototype,"errorMessage",2);let Ue=k;customElements.get("nys-textarea")||customElements.define("nys-textarea",Ue);const n2=_`
3256
3294
  :host {
3257
3295
  /* Anything that can be overridden should be defined here */
3258
3296
 
@@ -3465,7 +3503,7 @@ ${this.value}</textarea
3465
3503
  color: var(--_nys-textinput-disabled-color-text);
3466
3504
  cursor: not-allowed;
3467
3505
  }
3468
- `;var a2=Object.defineProperty,l2=Object.getOwnPropertyDescriptor,_=(a,e,t,o)=>{for(var s=o>1?void 0:o?l2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&a2(e,t,s),s};let c2=0;const f=(N=class extends p{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(e){this._type=N.VALID_TYPES.includes(e)?e:"text"}async updated(e){e.has("width")&&(await Promise.resolve(),this.width=N.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${c2++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&(!this.value||((r=this.value)==null?void 0:r.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var s,r;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;this.showError=!!e,(r=this._originalErrorMessage)!=null&&r.trim()&&e!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=e;const o=e?{customError:!0}:{};this._internals.setValidity(o,this.errorMessage,t)}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing?o="This field is required":t.typeMismatch?o="Invalid format for this type":t.patternMismatch?o="Invalid format":t.tooShort?o=`Value is too short. Minimum length is ${e.minLength}`:t.tooLong?o=`Value is too long. Maximum length is ${e.maxLength}`:t.rangeUnderflow?o=`Value must be at least ${e.min}`:t.rangeOverflow?o=`Value must be at most ${e.max}`:t.stepMismatch?o="Invalid step value":o=e.validationMessage,this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&t.focus():t.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(e){const t=e.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(e){var i,l;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="'+e+'"]'),o=(l=this.shadowRoot)==null?void 0:l.querySelector(".nys-textinput__buttoncontainer");if(!t||!o)return;const s=t.assignedElements();let r=!1;s.forEach(c=>{c instanceof HTMLElement&&c.tagName.toLowerCase()==="nys-button"&&!r?(r=!0,c.setAttribute("size","sm"),c.setAttribute("variant","primary"),this.disabled?c.setAttribute("disabled","true"):c.removeAttribute("disabled")):(console.warn("The '"+e+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",c),c.remove())}),e==="startButton"?o.classList.toggle("has-start-button",r):e==="endButton"&&o.classList.toggle("has-end-button",r)}render(){return d`
3506
+ `;var a2=Object.defineProperty,l2=Object.getOwnPropertyDescriptor,m=(a,e,t,o)=>{for(var s=o>1?void 0:o?l2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&a2(e,t,s),s};let c2=0;const C=(R=class extends g{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(e){this._type=R.VALID_TYPES.includes(e)?e:"text"}async updated(e){e.has("width")&&(await Promise.resolve(),this.width=R.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${c2++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&(!this.value||((r=this.value)==null?void 0:r.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var s,r;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;this.showError=!!e,(r=this._originalErrorMessage)!=null&&r.trim()&&e!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=e;const o=e?{customError:!0}:{};this._internals.setValidity(o,this.errorMessage,t)}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing?o="This field is required":t.typeMismatch?o="Invalid format for this type":t.patternMismatch?o="Invalid format":t.tooShort?o=`Value is too short. Minimum length is ${e.minLength}`:t.tooLong?o=`Value is too long. Maximum length is ${e.maxLength}`:t.rangeUnderflow?o=`Value must be at least ${e.min}`:t.rangeOverflow?o=`Value must be at most ${e.max}`:t.stepMismatch?o="Invalid step value":o=e.validationMessage,this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(e){const t=e.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(e){var i,c;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="'+e+'"]'),o=(c=this.shadowRoot)==null?void 0:c.querySelector(".nys-textinput__buttoncontainer");if(!t||!o)return;const s=t.assignedElements();let r=!1;s.forEach(h=>{h instanceof HTMLElement&&h.tagName.toLowerCase()==="nys-button"&&!r?(r=!0,h.setAttribute("size","sm"),h.setAttribute("variant","primary"),this.disabled?h.setAttribute("disabled","true"):h.removeAttribute("disabled")):(console.warn("The '"+e+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",h),h.remove())}),e==="startButton"?o.classList.toggle("has-start-button",r):e==="endButton"&&o.classList.toggle("has-end-button",r)}render(){return l`
3469
3507
  <div class="nys-textinput">
3470
3508
  <nys-label
3471
3509
  id=${this.id}
@@ -3493,18 +3531,18 @@ ${this.value}</textarea
3493
3531
  aria-disabled="${this.disabled}"
3494
3532
  aria-label="${[this.label,this.description].filter(Boolean).join(" ")}"
3495
3533
  .value=${this.value}
3496
- placeholder=${h(this.placeholder?this.placeholder:void 0)}
3497
- pattern=${h(this.pattern?this.pattern:void 0)}
3498
- min=${h(this.min!==""?this.min:void 0)}
3499
- maxlength=${h(this.maxlength!==""?this.maxlength:void 0)}
3500
- step=${h(this.step!==""?this.step:void 0)}
3501
- max=${h(this.max!==""?this.max:void 0)}
3502
- form=${h(this.form?this.form:void 0)}
3534
+ placeholder=${y(this.placeholder?this.placeholder:void 0)}
3535
+ pattern=${y(this.pattern?this.pattern:void 0)}
3536
+ min=${y(this.min!==""?this.min:void 0)}
3537
+ maxlength=${y(this.maxlength!==""?this.maxlength:void 0)}
3538
+ step=${y(this.step!==""?this.step:void 0)}
3539
+ max=${y(this.max!==""?this.max:void 0)}
3540
+ form=${y(this.form?this.form:void 0)}
3503
3541
  @input=${this._handleInput}
3504
3542
  @focus="${this._handleFocus}"
3505
3543
  @blur="${this._handleBlur}"
3506
3544
  />
3507
- ${this.type==="password"?d` <nys-button
3545
+ ${this.type==="password"?l` <nys-button
3508
3546
  class="eye-icon"
3509
3547
  id="password-toggle"
3510
3548
  suffixIcon="slotted"
@@ -3529,7 +3567,7 @@ ${this.value}</textarea
3529
3567
  errorMessage=${this.errorMessage}
3530
3568
  ></nys-errormessage>
3531
3569
  </div>
3532
- `}},N.VALID_TYPES=["email","number","password","search","tel","text","url"],N.VALID_WIDTHS=["sm","md","lg","full"],N.styles=i2,N.formAssociated=!0,N);_([n({type:String})],f.prototype,"id",2),_([n({type:String,reflect:!0})],f.prototype,"name",2),_([n({reflect:!0})],f.prototype,"type",1),_([n({type:String})],f.prototype,"label",2),_([n({type:String})],f.prototype,"description",2),_([n({type:String})],f.prototype,"placeholder",2),_([n({type:String})],f.prototype,"value",2),_([n({type:Boolean,reflect:!0})],f.prototype,"disabled",2),_([n({type:Boolean,reflect:!0})],f.prototype,"readonly",2),_([n({type:Boolean,reflect:!0})],f.prototype,"required",2),_([n({type:Boolean,reflect:!0})],f.prototype,"optional",2),_([n({type:String})],f.prototype,"form",2),_([n({type:String})],f.prototype,"pattern",2),_([n({type:Number})],f.prototype,"maxlength",2),_([n({reflect:!0})],f.prototype,"width",2),_([n({type:Number})],f.prototype,"step",2),_([n({type:Number})],f.prototype,"min",2),_([n({type:Number})],f.prototype,"max",2),_([n({type:Boolean,reflect:!0})],f.prototype,"showError",2),_([n({type:String})],f.prototype,"errorMessage",2),_([W()],f.prototype,"showPassword",2);let Ue=f;customElements.get("nys-textinput")||customElements.define("nys-textinput",Ue);const d2=m`
3570
+ `}},R.VALID_TYPES=["email","number","password","search","tel","text","url"],R.VALID_WIDTHS=["sm","md","lg","full"],R.styles=n2,R.formAssociated=!0,R);m([n({type:String})],C.prototype,"id",2),m([n({type:String,reflect:!0})],C.prototype,"name",2),m([n({reflect:!0})],C.prototype,"type",1),m([n({type:String})],C.prototype,"label",2),m([n({type:String})],C.prototype,"description",2),m([n({type:String})],C.prototype,"placeholder",2),m([n({type:String})],C.prototype,"value",2),m([n({type:Boolean,reflect:!0})],C.prototype,"disabled",2),m([n({type:Boolean,reflect:!0})],C.prototype,"readonly",2),m([n({type:Boolean,reflect:!0})],C.prototype,"required",2),m([n({type:Boolean,reflect:!0})],C.prototype,"optional",2),m([n({type:String})],C.prototype,"form",2),m([n({type:String})],C.prototype,"pattern",2),m([n({type:Number})],C.prototype,"maxlength",2),m([n({reflect:!0})],C.prototype,"width",2),m([n({type:Number})],C.prototype,"step",2),m([n({type:Number})],C.prototype,"min",2),m([n({type:Number})],C.prototype,"max",2),m([n({type:Boolean,reflect:!0})],C.prototype,"showError",2),m([n({type:String})],C.prototype,"errorMessage",2),m([N()],C.prototype,"showPassword",2);let Pe=C;customElements.get("nys-textinput")||customElements.define("nys-textinput",Pe);const h2=_`
3533
3571
  :host {
3534
3572
  /* Global Toggle Styles */
3535
3573
  --_nys-toggle-width: var(--nys-font-size-8xl, 44px);
@@ -3805,14 +3843,14 @@ ${this.value}</textarea
3805
3843
  --toggle-transition-duration: 0s; /* Disable animation */
3806
3844
  }
3807
3845
  }
3808
- `;var h2=Object.defineProperty,y2=Object.getOwnPropertyDescriptor,G=(a,e,t,o)=>{for(var s=o>1?void 0:o?y2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&h2(e,t,s),s};let u2=0;const q=(s1=class extends p{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(e){this._size=s1.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${u2++}`)}updated(e){(e.has("checked")||e.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(e){const{checked:t}=e.target;this.checked=t,this._emitChangeEvent()}_handleKeyDown(e){!this.disabled&&(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.checked=!this.checked,this._emitChangeEvent())}render(){return d`
3846
+ `;var d2=Object.defineProperty,y2=Object.getOwnPropertyDescriptor,Y=(a,e,t,o)=>{for(var s=o>1?void 0:o?y2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&d2(e,t,s),s};let u2=0;const P=(o1=class extends g{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(e){this._size=o1.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${u2++}`)}updated(e){(e.has("checked")||e.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(e){const{checked:t}=e.target;this.checked=t,this._emitChangeEvent()}_handleKeyDown(e){!this.disabled&&(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.checked=!this.checked,this._emitChangeEvent())}render(){return l`
3809
3847
  <label class="nys-toggle">
3810
3848
  <div class="nys-toggle__content">
3811
3849
  <div class="nys-toggle__toggle">
3812
3850
  <input
3813
3851
  id="${this.id}"
3814
3852
  type="checkbox"
3815
- name="${h(this.name?this.name:void 0)}"
3853
+ name="${y(this.name?this.name:void 0)}"
3816
3854
  .value=${this.value}
3817
3855
  form=${this.form}
3818
3856
  .checked=${this.checked}
@@ -3827,7 +3865,7 @@ ${this.value}</textarea
3827
3865
  />
3828
3866
  <span class="slider">
3829
3867
  <div class="knob">
3830
- ${this.noIcon?"":d`<nys-icon
3868
+ ${this.noIcon?"":l`<nys-icon
3831
3869
  class="toggle-icon"
3832
3870
  name="${this.checked?"check":"close"}"
3833
3871
  size="2xl"
@@ -3841,7 +3879,176 @@ ${this.value}</textarea
3841
3879
  </div>
3842
3880
  </div>
3843
3881
  </label>
3844
- `}},s1.VALID_SIZES=["sm","md"],s1.styles=d2,s1.formAssociated=!0,s1);G([n({type:String})],q.prototype,"id",2),G([n({type:String,reflect:!0})],q.prototype,"name",2),G([n({type:String})],q.prototype,"value",2),G([n({type:Boolean,reflect:!0})],q.prototype,"checked",2),G([n({type:Boolean,reflect:!0})],q.prototype,"disabled",2),G([n({type:Boolean})],q.prototype,"noIcon",2),G([n({type:String})],q.prototype,"label",2),G([n({type:String})],q.prototype,"description",2),G([n({reflect:!0})],q.prototype,"size",1),G([n({type:String})],q.prototype,"form",2);let Be=q;customElements.get("nys-toggle")||customElements.define("nys-toggle",Be);const p2=m`
3882
+ `}},o1.VALID_SIZES=["sm","md"],o1.styles=h2,o1.formAssociated=!0,o1);Y([n({type:String})],P.prototype,"id",2),Y([n({type:String,reflect:!0})],P.prototype,"name",2),Y([n({type:String})],P.prototype,"value",2),Y([n({type:Boolean,reflect:!0})],P.prototype,"checked",2),Y([n({type:Boolean,reflect:!0})],P.prototype,"disabled",2),Y([n({type:Boolean})],P.prototype,"noIcon",2),Y([n({type:String})],P.prototype,"label",2),Y([n({type:String})],P.prototype,"description",2),Y([n({reflect:!0})],P.prototype,"size",1),Y([n({type:String})],P.prototype,"form",2);let qe=P;customElements.get("nys-toggle")||customElements.define("nys-toggle",qe);const p2=_`
3883
+ :host {
3884
+ /* Global Tooltip Styles */
3885
+ --_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
3886
+ --_nys-tooltip-background: var(--nys-color-ink, #1b1b1b);
3887
+ --_nys-tooltip-border-radius: var(--nys-radius-md, 4px);
3888
+ --_nys-tooltip-font-family: var(--nys-type-family-ui, "Proxima Nova");
3889
+ --_nys-tooltip-font-size: var(--nys-type-size-ui-sm, 14px);
3890
+ --_nys-tooltip-letterspacing: var(--nys-font-letterspacing-ui-sm, 0.044px);
3891
+ --_nys-tooltip-lineheight: var(--nys-font-lineheight-ui-sm, 24px);
3892
+ }
3893
+
3894
+ .nys-tooltip__main {
3895
+ position: relative;
3896
+ }
3897
+
3898
+ .nys-tooltip__wrapper {
3899
+ width: fit-content;
3900
+ display: flex;
3901
+ cursor: pointer;
3902
+ }
3903
+
3904
+ .nys-tooltip__trigger {
3905
+ display: flex;
3906
+ }
3907
+
3908
+ .nys-tooltip__content {
3909
+ position: absolute;
3910
+ display: none;
3911
+ max-width: 400px;
3912
+ width: max-content;
3913
+ max-height: 120px;
3914
+ padding: var(--nys-space-50, 4px) var(--nys-space-100, 8px);
3915
+ background: var(--_nys-tooltip-background);
3916
+ border-radius: var(--_nys-tooltip-border-radius);
3917
+ cursor: auto;
3918
+ z-index: 1;
3919
+ }
3920
+
3921
+ .nys-tooltip__inner {
3922
+ display: block;
3923
+ color: var(--_nys-tooltip-color);
3924
+ font-family: var(--_nys-tooltip-font-family);
3925
+ font-size: var(--_nys-tooltip-font-size);
3926
+ font-weight: 400;
3927
+ line-height: var(--_nys-tooltip-lineheight);
3928
+ letter-spacing: var(--_nys-tooltip-letterspacing);
3929
+ white-space: normal;
3930
+ word-break: break-word;
3931
+ overflow: hidden;
3932
+ text-overflow: ellipsis;
3933
+ display: -webkit-box;
3934
+ -webkit-line-clamp: 4;
3935
+ -webkit-box-orient: vertical;
3936
+ }
3937
+
3938
+ /* Tooltip Arrow (default) */
3939
+ .nys-tooltip__arrow {
3940
+ position: absolute;
3941
+ width: 14px;
3942
+ height: 6px;
3943
+ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="6" viewBox="0 0 15 6" fill="none"><path d="M8.15079 5.44218C7.7763 5.76317 7.2237 5.76317 6.84921 5.44218L0.5 0H14.5L8.15079 5.44218Z" fill="%231B1B1B"/></svg>')
3944
+ no-repeat center;
3945
+ }
3946
+
3947
+ .nys-tooltip__content[active] {
3948
+ display: block;
3949
+ }
3950
+
3951
+ /* ===================== POSITIONING ===================== */
3952
+ /* Top */
3953
+ :host([position="top"]) .nys-tooltip__content {
3954
+ bottom: 100%;
3955
+ left: 50%;
3956
+ transform: translateX(-50%);
3957
+ margin-bottom: 10px;
3958
+ }
3959
+
3960
+ :host([position="top"]) .nys-tooltip__arrow {
3961
+ top: 100%;
3962
+ left: var(--arrow-offset-x, 50%);
3963
+ transform: translateX(-50%);
3964
+ }
3965
+
3966
+ /* Bottom */
3967
+ :host([position="bottom"]) .nys-tooltip__content {
3968
+ top: 100%;
3969
+ left: 50%;
3970
+ transform: translateX(-50%);
3971
+ margin-top: 10px;
3972
+ }
3973
+
3974
+ :host([position="bottom"]) .nys-tooltip__arrow {
3975
+ bottom: 100%;
3976
+ left: var(--arrow-offset-x, 50%);
3977
+ transform: translateX(-50%) rotate(180deg);
3978
+ }
3979
+
3980
+ /* Left */
3981
+ :host([position="left"]) .nys-tooltip__content {
3982
+ left: auto;
3983
+ right: 100%;
3984
+ top: 50%;
3985
+ transform: translateY(-50%);
3986
+ margin-right: 10px;
3987
+ }
3988
+
3989
+ :host([position="left"]) .nys-tooltip__arrow {
3990
+ left: 100%;
3991
+ top: 50%;
3992
+ transform: translateY(-50%) rotate(-90deg);
3993
+ margin-left: -4px;
3994
+ }
3995
+ /* Right */
3996
+ :host([position="right"]) .nys-tooltip__content {
3997
+ left: 100%;
3998
+ top: 50%;
3999
+ transform: translateY(-50%);
4000
+ margin-left: 10px;
4001
+ }
4002
+
4003
+ :host([position="right"]) .nys-tooltip__arrow {
4004
+ right: 100%;
4005
+ top: 50%;
4006
+ transform: translateY(-50%) rotate(90deg);
4007
+ margin-right: -4px;
4008
+ }
4009
+
4010
+ :host([inverted]) .nys-tooltip__content {
4011
+ --_nys-tooltip-color: var(--nys-color-text, #1b1b1b);
4012
+ --_nys-tooltip-background: var(--nys-color-ink-reverse, #fff);
4013
+ }
4014
+
4015
+ :host([inverted]) .nys-tooltip__arrow {
4016
+ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="6" viewBox="0 0 15 6" fill="none"><path d="M8.15079 5.44218C7.7763 5.76317 7.2237 5.76317 6.84921 5.44218L0.5 0H14.5L8.15079 5.44218Z" fill="white"/></svg>')
4017
+ no-repeat center;
4018
+ }
4019
+
4020
+ @media (max-width: 400px) {
4021
+ .nys-tooltip__content {
4022
+ max-width: calc(
4023
+ 100vw - 2rem
4024
+ ); /* 2rem = 32px = 16px margin on each side */
4025
+ }
4026
+ }
4027
+ `;var f2=Object.defineProperty,g2=Object.getOwnPropertyDescriptor,S1=(a,e,t,o)=>{for(var s=o>1?void 0:o?g2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&f2(e,t,s),s};let v2=0;const ne=class ne extends g{constructor(){super(),this.id="",this.text="",this.inverted=!1,this.focusable=!1,this._active=!1,this._userHasSetPosition=!1,this._originalUserPosition=null,this._internallyUpdatingPosition=!1,this._position=null,this._handleTooltipEnter=()=>{if(this._active=!0,this._addScrollListeners(),this._userHasSetPosition&&this._originalUserPosition&&this._doesPositionFit(this._originalUserPosition)){this.position=this._originalUserPosition,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)});return}this.autoPositionTooltip()},this._handleBlurOrMouseLeave=()=>{var t;this._active=!1,this._removeScrollListeners();const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._resetTooltipPositioningStyles(e)},this._handleScrollOrResize=()=>{this._active&&(this._userHasSetPosition&&this._originalUserPosition?this._doesPositionFit(this._originalUserPosition)?(this._setInternalPosition(this._originalUserPosition),this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)})):this.autoPositionTooltip():this.autoPositionTooltip())},this._handleEscapeKey=e=>{var t;if(e.key==="Escape"&&this._active){this._active=!1,this._removeScrollListeners();const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");o&&this._resetTooltipPositioningStyles(o)}}}get position(){return this._position}set position(e){const t=this._position;this._position=e,this.requestUpdate("position",t),this._internallyUpdatingPosition||(this._userHasSetPosition=e!==null,this._originalUserPosition=e)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-tooltip-${Date.now()}-${v2++}`),window.addEventListener("keydown",this._handleEscapeKey)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleEscapeKey)}get _firstAssignedEl(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}firstUpdated(){const e=this._firstAssignedEl;e&&this._applyFocusBehavior(e)}updated(e){super.updated(e);const t=this._firstAssignedEl;t&&e.has("text")&&this._passAriaDescription(t)}_addScrollListeners(){window.addEventListener("scroll",this._handleScrollOrResize,!0),window.addEventListener("resize",this._handleScrollOrResize)}_removeScrollListeners(){window.removeEventListener("scroll",this._handleScrollOrResize,!0),window.removeEventListener("resize",this._handleScrollOrResize)}_passAriaDescription(e){e.tagName.toLowerCase().startsWith("nys-")&&e.setAttribute("ariaDescription",this.text)}async _applyFocusBehavior(e){var o;if(!this.focusable)return;if(e.tagName.toLowerCase()==="nys-icon"){"updateComplete"in e&&await e.updateComplete;const s=(o=e.shadowRoot)==null?void 0:o.querySelector("svg");s&&s.setAttribute("tabindex","0")}else e.setAttribute("tabindex","0")}_doesPositionFit(e){var u,p;const t=(u=this.shadowRoot)==null?void 0:u.querySelector(".nys-tooltip__wrapper"),o=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!t||!o||e==null)return;const s=t.getBoundingClientRect(),r=o.getBoundingClientRect(),i=8,c={top:s.top-i,left:s.left-i,bottom:window.innerHeight-s.bottom-i,right:window.innerWidth-s.right-i};return{top:c.top>=r.height,bottom:c.bottom>=r.height,left:c.left>=r.width,right:c.right>=r.width}[e]}async autoPositionTooltip(){var u,p;const e=(u=this.shadowRoot)==null?void 0:u.querySelector(".nys-tooltip__wrapper"),t=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!e||!t)return;const o=e.getBoundingClientRect(),s=8,r={top:o.top-s,left:o.left-s,bottom:window.innerHeight-o.bottom-s,right:window.innerWidth-o.right-s};let i=["top","bottom","right","left"];if(this._userHasSetPosition&&this._originalUserPosition){const d=this._originalUserPosition;d==="left"?i=["left","right","top","bottom"]:d==="right"?i=["right","left","top","bottom"]:d==="top"?i=["top","bottom","right","left"]:d==="bottom"&&(i=["bottom","top","right","left"])}for(const d of i)if(this._doesPositionFit(d)){this._setInternalPosition(d),await this.updateComplete,this._shiftTooltipIntoViewport(t);return}let c="top",h=r.top;for(const d of i)r[d]>h&&(h=r[d],c=d);this._setInternalPosition(c),await this.updateComplete,this._shiftTooltipIntoViewport(t)}_setInternalPosition(e){this._internallyUpdatingPosition=!0,this.position=e,this._internallyUpdatingPosition=!1}_shiftTooltipIntoViewport(e){var p;const t=e.getBoundingClientRect(),s=((p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__wrapper")).getBoundingClientRect(),r=s.left+s.width/2,i=t.left<0,c=t.right>window.innerWidth;this._resetTooltipPositioningStyles(e),i?(e.style.left="0px",e.style.transform="none"):c&&(e.style.right="0px",e.style.left="auto",e.style.transform="none");const h=e.getBoundingClientRect(),u=r-h.left;e.style.setProperty("--arrow-offset-x",`${u}px`)}_resetTooltipPositioningStyles(e){e.style.left="",e.style.right="",e.style.transform=""}render(){var e;return l`
4028
+ <div class="nys-tooltip__main">
4029
+ <div
4030
+ class="nys-tooltip__wrapper"
4031
+ @mouseenter=${this._handleTooltipEnter}
4032
+ @mouseleave=${this._handleBlurOrMouseLeave}
4033
+ @focusin=${this._handleTooltipEnter}
4034
+ @focusout=${this._handleBlurOrMouseLeave}
4035
+ >
4036
+ <span class="nys-tooltip__trigger">
4037
+ <slot></slot>
4038
+ </span>
4039
+ </div>
4040
+ ${(e=this.text)!=null&&e.trim()?l`<div
4041
+ id=${this.id}
4042
+ class="nys-tooltip__content"
4043
+ role="tooltip"
4044
+ aria-hidden=${!this._active}
4045
+ ?active=${this._active}
4046
+ >
4047
+ <div class="nys-tooltip__inner">${this.text}</div>
4048
+ <span class="nys-tooltip__arrow"></span>
4049
+ </div>`:""}
4050
+ </div>
4051
+ `}};ne.styles=p2;let W=ne;S1([n({type:String})],W.prototype,"id",2),S1([n({type:String})],W.prototype,"text",2),S1([n({type:Boolean,reflect:!0})],W.prototype,"inverted",2),S1([n({type:Boolean,reflect:!0})],W.prototype,"focusable",2),S1([N()],W.prototype,"_active",2),S1([n({type:String,reflect:!0})],W.prototype,"position",1),customElements.get("nys-tooltip")||customElements.define("nys-tooltip",W);const C2=_`
3845
4052
  :host {
3846
4053
  /* Global Unav Header Styles */
3847
4054
  --_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
@@ -4188,7 +4395,7 @@ ${this.value}</textarea
4188
4395
  display: none;
4189
4396
  }
4190
4397
  }
4191
- `,g2=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
4398
+ `,_2=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
4192
4399
  <path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
4193
4400
  <path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
4194
4401
  <path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
@@ -4204,7 +4411,7 @@ ${this.value}</textarea
4204
4411
  <path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="#154973"/>
4205
4412
  <path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
4206
4413
  <path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
4207
- </svg>`;var C2=Object.defineProperty,b1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&C2(e,t,s),s};const re=class re extends p{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(g2,"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(e){var t;if(e.key==="Escape"&&(this._handleSearchBlur(),e.target.blur()),e.key==="Enter"){const o=(t=e.target.value)==null?void 0:t.trim();o!==""&&this._handleSearch(o)}}_handleSearchButton(e){var s,r;const o=(r=((s=this.shadowRoot)==null?void 0:s.getElementById(e)).value)==null?void 0:r.trim();o!==""&&this._handleSearch(o)}_handleSearch(e){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=${e}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return d`
4414
+ </svg>`;var b2=Object.defineProperty,b1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&b2(e,t,s),s};const ae=class ae extends g{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(_2,"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(e){var t;if(e.key==="Escape"&&(this._handleSearchBlur(),e.target.blur()),e.key==="Enter"){const o=(t=e.target.value)==null?void 0:t.trim();o!==""&&this._handleSearch(o)}}_handleSearchButton(e){var s,r;const o=(r=((s=this.shadowRoot)==null?void 0:s.getElementById(e)).value)==null?void 0:r.trim();o!==""&&this._handleSearch(o)}_handleSearch(e){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=${e}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return l`
4208
4415
  <header class="nys-unavheader">
4209
4416
  <div class="nys-unavheader__trustbarwrapper">
4210
4417
  <div
@@ -4300,7 +4507,7 @@ ${this.value}</textarea
4300
4507
  </div>
4301
4508
  </div>
4302
4509
  <div class="nys-unavheader__right">
4303
- ${this.hideTranslate?null:d`<div class="nys-unavheader__translatewrapper">
4510
+ ${this.hideTranslate?null:l`<div class="nys-unavheader__translatewrapper">
4304
4511
  <div
4305
4512
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
4306
4513
  >
@@ -4320,7 +4527,7 @@ ${this.value}</textarea
4320
4527
  ></nys-icon>
4321
4528
  </nys-button>
4322
4529
  </div>
4323
- ${this.isSearchFocused?null:d`<div class="nys-unavheader--lg nys-unavheader--xl">
4530
+ ${this.isSearchFocused?null:l`<div class="nys-unavheader--lg nys-unavheader--xl">
4324
4531
  <nys-button
4325
4532
  variant="ghost"
4326
4533
  label="Translate"
@@ -4334,7 +4541,7 @@ ${this.value}</textarea
4334
4541
  <div
4335
4542
  class="nys-unavheader__languagelist ${this.languageVisible?"show":"hide"}"
4336
4543
  >
4337
- ${this.languages.map(([e,t])=>d`<a
4544
+ ${this.languages.map(([e,t])=>l`<a
4338
4545
  class="nys-unavheader__languagelink"
4339
4546
  target="_self"
4340
4547
  href="https://${t?t+".":""}${window.location.hostname}"
@@ -4342,7 +4549,7 @@ ${this.value}</textarea
4342
4549
  >`)}
4343
4550
  </div>
4344
4551
  </div>`}
4345
- ${this.hideSearch?null:d` <div
4552
+ ${this.hideSearch?null:l` <div
4346
4553
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
4347
4554
  >
4348
4555
  <nys-button
@@ -4407,7 +4614,7 @@ ${this.value}</textarea
4407
4614
  </div>
4408
4615
  </div>
4409
4616
  </header>
4410
- `}};re.styles=p2;let O=re;b1([n({type:Boolean})],O.prototype,"trustbarVisible"),b1([n({type:Boolean})],O.prototype,"searchDropdownVisible"),b1([n({type:Boolean})],O.prototype,"languageVisible"),b1([n({type:Boolean})],O.prototype,"isSearchFocused"),b1([n({type:Boolean})],O.prototype,"hideTranslate"),b1([n({type:Boolean})],O.prototype,"hideSearch"),b1([n({type:String,reflect:!0})],O.prototype,"languages"),customElements.get("nys-unavheader")||customElements.define("nys-unavheader",O);const f2=m`
4617
+ `}};ae.styles=C2;let q=ae;b1([n({type:Boolean})],q.prototype,"trustbarVisible"),b1([n({type:Boolean})],q.prototype,"searchDropdownVisible"),b1([n({type:Boolean})],q.prototype,"languageVisible"),b1([n({type:Boolean})],q.prototype,"isSearchFocused"),b1([n({type:Boolean})],q.prototype,"hideTranslate"),b1([n({type:Boolean})],q.prototype,"hideSearch"),b1([n({type:String,reflect:!0})],q.prototype,"languages"),customElements.get("nys-unavheader")||customElements.define("nys-unavheader",q);const m2=_`
4411
4618
  :host {
4412
4619
  /* Global Header Styles */
4413
4620
  --_nys-globalheader-text-color: var(
@@ -4687,10 +4894,10 @@ ${this.value}</textarea
4687
4894
  --_nys-globalheader-gutter: var(--nys-gutter-xl, 64px);
4688
4895
  }
4689
4896
  }
4690
- `;var v2=Object.defineProperty,H1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&v2(e,t,s),s};const ne=class ne extends p{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,i,l;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(c=>c.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".nys-globalheader__content"),s=(l=this.shadowRoot)==null?void 0:l.querySelector(".nys-globalheader__content-mobile");o&&s&&(o.innerHTML="",s.innerHTML="",t.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const y=c.cloneNode(!0),v=c.cloneNode(!0);["script","iframe","object","embed, img"].forEach(T=>{y.querySelectorAll(T).forEach(Y=>Y.remove())}),o.appendChild(y),s.appendChild(v),c.remove()}}))}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}render(){var e,t,o,s,r,i,l,c;return d`
4897
+ `;var x2=Object.defineProperty,I1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&x2(e,t,s),s};const le=class le extends g{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,i,c;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(h=>h.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".nys-globalheader__content"),s=(c=this.shadowRoot)==null?void 0:c.querySelector(".nys-globalheader__content-mobile");o&&s&&(o.innerHTML="",s.innerHTML="",t.forEach(h=>{if(h.nodeType===Node.ELEMENT_NODE){const u=h.cloneNode(!0),p=h.cloneNode(!0);["script","iframe","object","embed, img"].forEach(T=>{u.querySelectorAll(T).forEach(K=>K.remove())}),o.appendChild(u),s.appendChild(p),h.remove()}}))}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}render(){var e,t,o,s,r,i,c,h;return l`
4691
4898
  <header class="nys-globalheader">
4692
4899
  <div class="nys-globalheader__main-container">
4693
- ${this.slotHasContent?d` <div class="nys-globalheader__button-container">
4900
+ ${this.slotHasContent?l` <div class="nys-globalheader__button-container">
4694
4901
  <button
4695
4902
  class="nys-globalheader__mobile-menu-button"
4696
4903
  @click="${this._toggleMobileMenu}"
@@ -4705,37 +4912,37 @@ ${this.value}</textarea
4705
4912
  >
4706
4913
  </button>
4707
4914
  </div>`:""}
4708
- ${(e=this.homepageLink)!=null&&e.trim()?d`<a
4915
+ ${(e=this.homepageLink)!=null&&e.trim()?l`<a
4709
4916
  class="nys-globalheader__name-container-link"
4710
4917
  href=${(r=this.homepageLink)==null?void 0:r.trim()}
4711
4918
  >
4712
4919
  <div class="nys-globalheader__name-container">
4713
- ${((i=this.appName)==null?void 0:i.trim().length)>0?d`<div
4920
+ ${((i=this.appName)==null?void 0:i.trim().length)>0?l`<div
4714
4921
  class="nys-globalheader__appName nys-globalheader__name"
4715
4922
  >
4716
4923
  ${this.appName}
4717
4924
  </div> `:""}
4718
- ${((l=this.agencyName)==null?void 0:l.trim().length)>0?d`<div
4719
- class="nys-globalheader__agencyName nys-globalheader__name ${((c=this.appName)==null?void 0:c.trim().length)>0?"":"main"}"
4925
+ ${((c=this.agencyName)==null?void 0:c.trim().length)>0?l`<div
4926
+ class="nys-globalheader__agencyName nys-globalheader__name ${((h=this.appName)==null?void 0:h.trim().length)>0?"":"main"}"
4720
4927
  >
4721
4928
  ${this.agencyName}
4722
4929
  </div> `:""}
4723
4930
  </div>
4724
- </a>`:d`
4931
+ </a>`:l`
4725
4932
  <div class="nys-globalheader__name-container">
4726
- ${((t=this.appName)==null?void 0:t.trim().length)>0?d`<div
4933
+ ${((t=this.appName)==null?void 0:t.trim().length)>0?l`<div
4727
4934
  class="nys-globalheader__appName nys-globalheader__name"
4728
4935
  >
4729
4936
  ${this.appName}
4730
4937
  </div> `:""}
4731
- ${((o=this.agencyName)==null?void 0:o.trim().length)>0?d`<div
4938
+ ${((o=this.agencyName)==null?void 0:o.trim().length)>0?l`<div
4732
4939
  class="nys-globalheader__agencyName nys-globalheader__name ${((s=this.appName)==null?void 0:s.trim().length)>0?"":"main"}"
4733
4940
  >
4734
4941
  ${this.agencyName}
4735
4942
  </div> `:""}
4736
4943
  </div>
4737
4944
  `}
4738
- ${this.slotHasContent?d`<div class="nys-globalheader__content">
4945
+ ${this.slotHasContent?l`<div class="nys-globalheader__content">
4739
4946
  <slot
4740
4947
  style="display: hidden"
4741
4948
  @slotchange="${this._handleSlotChange}"
@@ -4746,7 +4953,7 @@ ${this.value}</textarea
4746
4953
  <div
4747
4954
  class="nys-globalheader__content-mobile ${this.isMobileMenuOpen?"":"close"}"
4748
4955
  ></div>
4749
- `}};ne.styles=f2;let X=ne;H1([n({type:String})],X.prototype,"appName"),H1([n({type:String})],X.prototype,"agencyName"),H1([n({type:String})],X.prototype,"homepageLink"),H1([W()],X.prototype,"slotHasContent"),H1([W()],X.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",X);const b2=m`
4956
+ `}};le.styles=m2;let Q=le;I1([n({type:String})],Q.prototype,"appName"),I1([n({type:String})],Q.prototype,"agencyName"),I1([n({type:String})],Q.prototype,"homepageLink"),I1([N()],Q.prototype,"slotHasContent"),I1([N()],Q.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",Q);const w2=_`
4750
4957
  :host {
4751
4958
  /* Global Footer Styles */
4752
4959
  --_nys-globalfooter-text-color: var(
@@ -4901,13 +5108,13 @@ ${this.value}</textarea
4901
5108
  --_nys-globalfooter-gutter: var(--nys-gutter-xl, 64px);
4902
5109
  }
4903
5110
  }
4904
- `;var _2=Object.defineProperty,J1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&_2(e,t,s),s};const ie=class ie extends p{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,i;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(l=>l.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".nys-globalfooter__content"),s=t==null?void 0:t.some(l=>l.tagName==="H4");o&&(o.classList.toggle("columns",s),o.classList.toggle("small",!s),o.innerHTML="",t.forEach(l=>{if(l.nodeType===Node.ELEMENT_NODE){const c=l.cloneNode(!0);["script","iframe","object","embed","img"].forEach(v=>{c.querySelectorAll(v).forEach(g=>g.remove())}),o.appendChild(c),l.remove()}}))}render(){var e,t;return d`
5111
+ `;var k2=Object.defineProperty,te=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&k2(e,t,s),s};const ce=class ce extends g{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,i;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(c=>c.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".nys-globalfooter__content"),s=t==null?void 0:t.some(c=>c.tagName==="H4");o&&(o.classList.toggle("columns",s),o.classList.toggle("small",!s),o.innerHTML="",t.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const h=c.cloneNode(!0);["script","iframe","object","embed","img"].forEach(p=>{h.querySelectorAll(p).forEach(d=>d.remove())}),o.appendChild(h),c.remove()}}))}render(){var e,t;return l`
4905
5112
  <footer class="nys-globalfooter">
4906
5113
  <div class="nys-globalfooter__main-container">
4907
- ${(e=this.homepageLink)!=null&&e.trim()?d`<a href=${(t=this.homepageLink)==null?void 0:t.trim()}>
5114
+ ${(e=this.homepageLink)!=null&&e.trim()?l`<a href=${(t=this.homepageLink)==null?void 0:t.trim()}>
4908
5115
  <p class="nys-globalfooter__name">${this.agencyName}</p>
4909
- </a>`:d`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
4910
- ${this.slotHasContent?d`<div class="nys-globalfooter__content">
5116
+ </a>`:l`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
5117
+ ${this.slotHasContent?l`<div class="nys-globalfooter__content">
4911
5118
  <slot
4912
5119
  style="display: hidden"
4913
5120
  @slotchange="${this._handleSlotChange}"
@@ -4915,7 +5122,7 @@ ${this.value}</textarea
4915
5122
  </div>`:""}
4916
5123
  </div>
4917
5124
  </footer>
4918
- `}};ie.styles=b2;let _1=ie;J1([n({type:String})],_1.prototype,"agencyName"),J1([n({type:String})],_1.prototype,"homepageLink"),J1([W()],_1.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",_1);const m2=m`
5125
+ `}};ce.styles=w2;let m1=ce;te([n({type:String})],m1.prototype,"agencyName"),te([n({type:String})],m1.prototype,"homepageLink"),te([N()],m1.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",m1);const $2=_`
4919
5126
  :host {
4920
5127
  /* Global Footer Styles */
4921
5128
  --_nys-unavfooter-link-color: var(
@@ -5071,7 +5278,7 @@ ${this.value}</textarea
5071
5278
  --_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
5072
5279
  }
5073
5280
  }
5074
- `,x2=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
5281
+ `,S2=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
5075
5282
  <path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
5076
5283
  <path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
5077
5284
  <path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
@@ -5087,7 +5294,7 @@ ${this.value}</textarea
5087
5294
  <path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="white"/>
5088
5295
  <path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="white"/>
5089
5296
  <path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="white"/>
5090
- </svg>`,ae=class ae extends p{_getNysLogo(){return new DOMParser().parseFromString(x2,"image/svg+xml").documentElement}render(){return d`
5297
+ </svg>`,he=class he extends g{_getNysLogo(){return new DOMParser().parseFromString(S2,"image/svg+xml").documentElement}render(){return l`
5091
5298
  <footer class="nys-unavfooter">
5092
5299
  <div class="nys-unavfooter__main-container">
5093
5300
  <div class="nys-unavfooter__container_menu">
@@ -5115,5 +5322,5 @@ ${this.value}</textarea
5115
5322
  </div>
5116
5323
  </div>
5117
5324
  </footer>
5118
- `}};ae.styles=m2;let q1=ae;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",q1),u.NysAlert=we,u.NysAvatar=ke,u.NysBacktotop=g1,u.NysButton=$e,u.NysCheckbox=Me,u.NysCheckboxgroup=Se,u.NysErrorMessage=C1,u.NysFileinput=$,u.NysGlobalFooter=_1,u.NysGlobalHeader=X,u.NysIcon=De,u.NysLabel=a1,u.NysOption=l1,u.NysRadiobutton=He,u.NysRadiogroup=ze,u.NysSelect=Ae,u.NysSkipnav=k1,u.NysTextarea=Ie,u.NysTextinput=Ue,u.NysToggle=Be,u.NysUnavFooter=q1,u.NysUnavHeader=O,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
5325
+ `}};he.styles=$2;let O1=he;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",O1),f.NysAlert=Se,f.NysAvatar=Le,f.NysBacktotop=g1,f.NysButton=Ee,f.NysCheckbox=Ve,f.NysCheckboxgroup=De,f.NysErrorMessage=v1,f.NysFileinput=$,f.NysGlobalFooter=m1,f.NysGlobalHeader=Q,f.NysIcon=ze,f.NysLabel=l1,f.NysOption=c1,f.NysRadiobutton=Ie,f.NysRadiogroup=Ae,f.NysSelect=Ze,f.NysSkipnav=$1,f.NysTextarea=Ue,f.NysTextinput=Pe,f.NysToggle=qe,f.NysTooltip=W,f.NysUnavFooter=O1,f.NysUnavHeader=q,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
5119
5326
  //# sourceMappingURL=nysds.js.map