cdnjs.cloudflare.com Open in urlscan Pro
2606:4700::6811:180e  Public Scan

URL: https://cdnjs.cloudflare.com/ajax/libs/uswds/3.3.0/js/uswds.min.js
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function r(a,n,i){function o(t,e){if(!n[t]){if(!a[t]){var s="function"==typeof require&&require;if(!e&&s)return s(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}s=n[t]={exports:{}},a[t][0].call(s.exports,function(e){return o(a[t][1][e]||e)},s,s.exports,r,a,n,i)}return n[t].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)o(i[e]);return o}({1:[function(e,t,s){"use strict";var r;if("document"in window.self)if("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))(a=document.createElement("_")).classList.add("c1","c2"),a.classList.contains("c2")||((i=function(e){var r=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){for(var t=arguments.length,s=0;s<t;s++)r.call(this,arguments[s])}})("add"),i("remove")),a.classList.toggle("c3",!1),a.classList.contains("c3")&&(r=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:r.call(this,e)});else if("Element"in(i=window.self)){var a="classList",n="prototype",i=i.Element[n],o=Object,c=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},l=Array[n].indexOf||function(e){for(var t=0,s=this.length;t<s;t++)if(t in this&&this[t]===e)return t;return-1},u=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},d=function(e,t){if(""===t)throw new u("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new u("INVALID_CHARACTER_ERR","String contains an invalid character");return l.call(e,t)},p=function(e){for(var t=c.call(e.getAttribute("class")||""),s=t?t.split(/\s+/):[],r=0,a=s.length;r<a;r++)this.push(s[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},f=p[n]=[],b=function(){return new p(this)};if(u[n]=Error[n],f.item=function(e){return this[e]||null},f.contains=function(e){return-1!==d(this,e+="")},f.add=function(){for(var e,t=arguments,s=0,r=t.length,a=!1;-1===d(this,e=t[s]+"")&&(this.push(e),a=!0),++s<r;);a&&this._updateClassName()},f.remove=function(){var e,t,s=arguments,r=0,a=s.length,n=!1;do{for(t=d(this,e=s[r]+"");-1!==t;)this.splice(t,1),n=!0,t=d(this,e)}while(++r<a);n&&this._updateClassName()},f.toggle=function(e,t){var s=this.contains(e+=""),r=s?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!s},f.toString=function(){return this.join(" ")},o.defineProperty){f={get:b,enumerable:!0,configurable:!0};try{o.defineProperty(i,a,f)}catch(e){-2146823252===e.number&&(f.enumerable=!1,o.defineProperty(i,a,f))}}else o[n].__defineGetter__&&i.__defineGetter__(a,b)}},{}],2:[function(e,t,s){"use strict";var r;"function"!=typeof(r=window.Element.prototype).matches&&(r.matches=r.msMatchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),s=0;t[s]&&t[s]!==this;)++s;return Boolean(t[s])}),"function"!=typeof r.closest&&(r.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})},{}],3:[function(e,t,s){"use strict";for(var r={polyfill:function(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var e={get:function(e){var t=r.keys[this.which||this.keyCode];return t=Array.isArray(t)?t[+this.shiftKey]:t}};return Object.defineProperty(KeyboardEvent.prototype,"key",e),e},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}},a=1;a<25;a++)r.keys[111+a]="F"+a;var n="";for(a=65;a<91;a++)n=String.fromCharCode(a),r.keys[a]=[n.toLowerCase(),n.toUpperCase()];"function"==typeof define&&define.amd?define("keyboardevent-key-polyfill",r):void 0!==s&&void 0!==t?t.exports=r:window&&(window.keyboardeventKeyPolyfill=r)},{}],4:[function(e,t,s){"use strict";var c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},s=0;s<10;s++)t["_"+String.fromCharCode(s)]=s;var r,a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===a.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var s,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var n in s=Object(arguments[a]))l.call(s,n)&&(r[n]=s[n]);if(c)for(var i=c(s),o=0;o<i.length;o++)u.call(s,i[o])&&(r[i[o]]=s[i[o]])}return r}},{}],5:[function(e,t,s){"use strict";const c=e("object-assign"),l=e("../delegate"),u=e("../delegateAll"),d=/^(.+):delegate\((.+)\)$/;function p(e,t){var s=e[t];return delete e[t],s}t.exports=function(o,e){const s=Object.keys(o).reduce(function(e,t){s=o[t=t],(i=t.match(d))&&(t=i[1],r=i[2]),"object"==typeof s&&(a={capture:p(s,"capture"),passive:p(s,"passive")}),n={selector:r,delegate:"object"==typeof s?u(s):r?l(r,s):s,options:a};var s,r,a,n,i=-1<t.indexOf(" ")?t.split(" ").map(function(e){return c({type:e},n)}):(n.type=t,[n]);return e.concat(i)},[]);return c({add:function(t){s.forEach(function(e){t.addEventListener(e.type,e.delegate,e.options)})},remove:function(t){s.forEach(function(e){t.removeEventListener(e.type,e.delegate,e.options)})}},e)}},{"../delegate":7,"../delegateAll":8,"object-assign":4}],6:[function(e,t,s){"use strict";t.exports=function(e){return function(t){return e.some(function(e){return!1===e.call(this,t)},this)}}},{}],7:[function(e,t,s){"use strict";e("element-closest"),t.exports=function(s,r){return function(e){var t=e.target.closest(s);if(t)return r.call(t,e)}}},{"element-closest":2}],8:[function(e,t,s){"use strict";const r=e("../delegate"),a=e("../compose");t.exports=function(s){var e=Object.keys(s);return 1===e.length&&"*"===e[0]?s["*"]:(e=e.reduce(function(e,t){return e.push(r(t,s[t])),e},[]),a(e))}},{"../compose":6,"../delegate":7}],9:[function(e,t,s){"use strict";t.exports=function(t,s){return function(e){if(t!==e.target&&!t.contains(e.target))return s.call(this,e)}}},{}],10:[function(e,t,s){"use strict";t.exports={behavior:e("./behavior"),delegate:e("./delegate"),delegateAll:e("./delegateAll"),ignore:e("./ignore"),keymap:e("./keymap")}},{"./behavior":5,"./delegate":7,"./delegateAll":8,"./ignore":9,"./keymap":11}],11:[function(e,t,s){"use strict";e("keyboardevent-key-polyfill");const n={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};t.exports=function(a){const e=Object.keys(a).some(function(e){return-1<e.indexOf("+")});return function(s){var r=function(e,t){var s=e.key;if(t)for(var r in n)!0===e[n[r]]&&(s=[r,s].join("+"));return s}(s,e);return[r,r.toLowerCase()].reduce(function(e,t){return e=t in a?a[r].call(this,s):e},void 0)}},t.exports.MODIFIERS=n},{"keyboardevent-key-polyfill":3}],12:[function(e,t,s){"use strict";t.exports=function(t,s){function r(e){return e.currentTarget.removeEventListener(e.type,r,s),t.call(this,e)}return r}},{}],13:[function(e,t,s){"use strict";var r=/(^\s+)|(\s+$)/g,a=/\s+/,n=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(r,"")};t.exports=function(e,t){if("string"!=typeof e)throw new Error("Expected a string but got "+typeof e);var s=((t=t||window.document).getElementById||function(e){return this.querySelector('[id="'+e.replace(/"/g,'\\"')+'"]')}).bind(t);return 1===(e=n(e).split(a)).length&&""===e[0]?[]:e.map(function(e){var t=s(e);if(t)return t;throw new Error('no element with id: "'+e+'"')})}},{}],14:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/toggle-form-input");var n=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];t.exports=r({[n]:{[`.${e}-show-password`]:function(e){e.preventDefault(),a(this)}}})},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/toggle-form-input":55}],15:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select");var a=e("../../uswds-core/src/js/utils/behavior");const n=e("../../uswds-core/src/js/utils/toggle"),i=e("../../uswds-core/src/js/utils/is-in-viewport");var o=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const c=`.${e}-accordion, .${e}-accordion--bordered`,l=`.${e}-accordion__button[aria-controls]`,u="aria-expanded",d=t=>{return r(l,t).filter(e=>e.closest(c)===t)},p=(t,e)=>{var s=t.closest(c);if(!s)throw new Error(l+" is missing outer "+c);var e=n(t,e),r=s.hasAttribute("data-allow-multiple");e&&!r&&d(s).forEach(e=>{e!==t&&n(e,!1)})};e=a({[o]:{[l](e){p(this),"true"!==this.getAttribute(u)||i(this)||this.scrollIntoView()}}},{init(e){r(l,e).forEach(e=>{var t="true"===e.getAttribute(u);p(e,t)})},ACCORDION:c,BUTTON:l,show:e=>p(e,!0),hide:e=>p(e,!1),toggle:p,getButtons:d});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-in-viewport":48,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/toggle":56}],16:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior"),a=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const n=`.${e}-banner__header`,i=e+"-banner__header--expanded";t.exports=r({[a]:{[n+" [aria-controls]"]:function(e){e.preventDefault(),this.closest(n).classList.toggle(i)}}})},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45}],17:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select");var a=e("../../uswds-core/src/js/utils/behavior"),n=e("../../uswds-core/src/js/utils/debounce"),e=e("../../uswds-core/src/js/config")["prefix"],i=e+"-character-count";const o="."+i,c=`.${e}-character-count__field`,l=`.${e}-character-count__message`,u="The content is too long.",d=e+"-character-count__status--invalid",p=i+"__status",f=i+"__sr-status",b="."+p,h="."+f,v="characters allowed",m=e=>{e=e.closest(o);if(!e)throw new Error(c+" is missing outer "+o);var t=e.querySelector(l);if(t)return{characterCountEl:e,messageEl:t};throw new Error(o+" is missing inner "+l)},g=e=>{var t=document.createElement("div"),s=document.createElement("div"),r=e.dataset.maxlength+" "+v;t.classList.add(""+p,"usa-hint"),s.classList.add(""+f,"usa-sr-only"),t.setAttribute("aria-hidden",!0),s.setAttribute("aria-live","polite"),t.textContent=r,s.textContent=r,e.append(t,s)},w=(e,t)=>{let s="";var r;return s=0===e?t+" "+v:(r=Math.abs(t-e))+` ${"character"+(1===r?"":"s")} `+(t<e?"over limit":"left")},y=n((e,t)=>{e.textContent=t},1e3),A=e=>{var t=m(e)["characterCountEl"],s=e.value.length,r=parseInt(t.getAttribute("data-maxlength"),10),a=t.querySelector(b),t=t.querySelector(h),n=w(s,r);r&&(r=s&&r<s,a.textContent=n,y(t,n),r&&!e.validationMessage&&e.setCustomValidity(u),r||e.validationMessage!==u||e.setCustomValidity(""),a.classList.toggle(d,r))},E=e=>{var t,{characterCountEl:s,messageEl:r}=m(e);r.classList.add("usa-sr-only"),r.removeAttribute("aria-live"),r=e,e=m(r).characterCountEl,(t=r.getAttribute("maxlength"))&&(r.removeAttribute("maxlength"),e.setAttribute("data-maxlength",t)),g(s)};e=a({input:{[c](){A(this)}}},{init(e){r(c,e).forEach(e=>E(e))},MESSAGE_INVALID_CLASS:d,VALIDATION_MESSAGE:u,STATUS_MESSAGE_CLASS:p,STATUS_MESSAGE_SR_ONLY_CLASS:f,DEFAULT_STATUS_LABEL:v,createStatusMessages:g,getCountMessage:w,updateCountMessage:A});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/debounce":46,"../../uswds-core/src/js/utils/select":53}],18:[function(e,t,I){"use strict";var s=e("receptor/keymap");const r=e("../../uswds-core/src/js/utils/select-or-matches");var a=e("../../uswds-core/src/js/utils/behavior");const f=e("../../uswds-core/src/js/utils/sanitizer");var n=e("../../uswds-core/src/js/config")["prefix"],e=e("../../uswds-core/src/js/events")["CLICK"],n=n+"-combo-box";const b=n+"--pristine",h=n+"__select",v=n+"__input",m=n+"__clear-input",O=m+"__wrapper",B=n+"__input-button-separator",g=n+"__toggle-list",H=g+"__wrapper",w=n+"__list",y=n+"__list-option",A=y+"--focused",E=y+"--selected",x=n+"__status",j="."+n,P="."+h,u="."+v,d="."+m,p="."+g,F="."+w,i="."+y,L="."+A,R="."+E,Y="."+x,U=".*{{query}}.*";const _=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",t=(e.value=t,new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:{value:t}}));e.dispatchEvent(t)},S=e=>{var t,s,r,a,n,i,o,c,l,e=e.closest(j);if(e)return t=e.querySelector(P),s=e.querySelector(u),r=e.querySelector(F),a=e.querySelector(Y),n=e.querySelector(L),i=e.querySelector(R),o=e.querySelector(p),c=e.querySelector(d),l=e.classList.contains(b),{comboBoxEl:e,selectEl:t,inputEl:s,listEl:r,statusEl:a,focusedOptionEl:n,selectedOptionEl:i,toggleListBtnEl:o,clearInputBtnEl:c,isPristine:l,disableFiltering:"true"===e.dataset.disableFiltering};throw new Error("Element is missing outer "+j)},C=e=>{var{inputEl:e,toggleListBtnEl:t,clearInputBtnEl:s}=S(e);s.hidden=!0,s.disabled=!0,t.disabled=!0,e.disabled=!0};const o=e=>{e=e.closest(j);if(!e.dataset.enhanced){const u=e.querySelector("select");if(!u)throw new Error(j+" is missing inner select");var t=u.id,r=document.querySelector(`label[for="${t}"]`),a=t+"--list",n=t+"-label",i=t+"--assistiveHint";const d=[];var o=e.dataset["defaultValue"],c=e.dataset["placeholder"];let s;if(c&&d.push({placeholder:c}),o)for(let e=0,t=u.options.length;e<t;e+=1){var l=u.options[e];if(l.value===o){s=l;break}}if(!r||!r.matches(`label[for="${t}"]`))throw new Error(j+` for ${t} is either missing a label or a "for" attribute`);r.setAttribute("id",n),r.setAttribute("id",n),u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1"),u.classList.add("usa-sr-only",h),u.id="",u.value="",["required","aria-label","aria-labelledby"].forEach(e=>{var t;u.hasAttribute(e)&&(t=u.getAttribute(e),d.push({[e]:t}),u.removeAttribute(e))});const p=document.createElement("input");p.setAttribute("id",t),p.setAttribute("aria-owns",a),p.setAttribute("aria-controls",a),p.setAttribute("aria-autocomplete","list"),p.setAttribute("aria-describedby",i),p.setAttribute("aria-expanded","false"),p.setAttribute("autocapitalize","off"),p.setAttribute("autocomplete","off"),p.setAttribute("class",v),p.setAttribute("type","text"),p.setAttribute("role","combobox"),d.forEach(s=>Object.keys(s).forEach(e=>{var t=f.escapeHTML`${s[e]}`;p.setAttribute(e,t)})),e.insertAdjacentElement("beforeend",p),e.insertAdjacentHTML("beforeend",f.escapeHTML`
    <span class="${O}" tabindex="-1">
        <button type="button" class="${m}" aria-label="Clear the select contents">&nbsp;</button>
      </span>
      <span class="${B}">&nbsp;</span>
      <span class="${H}" tabindex="-1">
        <button type="button" tabindex="-1" class="${g}" aria-label="Toggle the dropdown list">&nbsp;</button>
      </span>
      <ul
        tabindex="-1"
        id="${a}"
        class="${w}"
        role="listbox"
        aria-labelledby="${n}"
        hidden>
      </ul>
      <div class="${x} usa-sr-only" role="status"></div>
      <span id="${i}" class="usa-sr-only">
        When autocomplete results are available use up and down arrows to review and enter to select.
        Touch device users, explore by touch or with swipe gestures.
      </span>`),s&&(c=S(e)["inputEl"],_(u,s.value),_(c,s.text),e.classList.add(b)),u.disabled&&(C(e),u.disabled=!1),e.dataset.enhanced="true"}},D=function(e,t){var{skipFocus:s,preventScroll:r}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},{inputEl:e,listEl:a,focusedOptionEl:n}=S(e);n&&(n.classList.remove(A),n.setAttribute("tabIndex","-1")),t?(e.setAttribute("aria-activedescendant",t.id),t.setAttribute("tabIndex","0"),t.classList.add(A),r||(n=t.offsetTop+t.offsetHeight,a.scrollTop+a.offsetHeight<n&&(a.scrollTop=n-a.offsetHeight),t.offsetTop<a.scrollTop&&(a.scrollTop=t.offsetTop)),s||t.focus({preventScroll:r})):(e.setAttribute("aria-activedescendant",""),e.focus())},T=function(e){let r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};const n=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");e=`^(?:${e.replace(/{{(.*?)}}/g,(e,t)=>{var t=t.trim(),s=a[t];return"query"!==t&&s?(t=new RegExp(s,"i"),(s=r.match(t))?n(s[1]):""):n(r)})})$`;return new RegExp(e,"i")},c=e=>{const{comboBoxEl:t,selectEl:s,inputEl:r,listEl:a,statusEl:n,isPristine:i,disableFiltering:o}=S(e);let c,l;const u=a.id+"--option-";var d=(r.value||"").toLowerCase(),e=t.dataset.filter||U,p=T(e,d,t.dataset);const f=[];for(let e=0,t=s.options.length;e<t;e+=1){var b=s.options[e],h=u+f.length;b.value&&(o||i||!d||p.test(b.text))&&(s.value&&b.value===s.value&&(c=h),o&&!l&&p.test(b.text)&&(l=h),f.push(b))}var e=f.length,v=f.map((e,t)=>{var s=u+t,r=[y];let a="-1",n="false";s===c&&(r.push(E,A),a="0",n="true"),c||0!==t||(r.push(A),a="0");var i=document.createElement("li");return i.setAttribute("aria-setsize",f.length),i.setAttribute("aria-posinset",t+1),i.setAttribute("aria-selected",n),i.setAttribute("id",s),i.setAttribute("class",r.join(" ")),i.setAttribute("tabindex",a),i.setAttribute("role","option"),i.setAttribute("data-value",e.value),i.textContent=e.text,i}),m=document.createElement("li");m.setAttribute("class",y+"--no-results"),m.textContent="No results found",a.hidden=!1,e?(a.innerHTML="",v.forEach(e=>a.insertAdjacentElement("beforeend",e))):(a.innerHTML="",a.insertAdjacentElement("beforeend",m)),r.setAttribute("aria-expanded","true"),n.textContent=e?e+` result${1<e?"s":""} available.`:"No results.";let g;i&&c?g=a.querySelector("#"+c):o&&l&&(g=a.querySelector("#"+l)),g&&D(a,g,{skipFocus:!0})},l=e=>{var{inputEl:e,listEl:t,statusEl:s,focusedOptionEl:r}=S(e);s.innerHTML="",e.setAttribute("aria-expanded","false"),e.setAttribute("aria-activedescendant",""),r&&r.classList.remove(A),t.scrollTop=0,t.hidden=!0},$=e=>{var{comboBoxEl:t,selectEl:s,inputEl:r}=S(e);_(s,e.dataset.value),_(r,e.textContent),t.classList.add(b),l(t),r.focus()},k=e=>{var{comboBoxEl:s,selectEl:r,inputEl:a}=S(e),n=r.value,i=(a.value||"").toLowerCase();if(n)for(let e=0,t=r.options.length;e<t;e+=1){var o=r.options[e];if(o.value===n)return i!==o.text&&_(a,o.text),void s.classList.add(b)}i&&_(a)};var M=e=>{var{comboBoxEl:t,listEl:s}=S(e.target),s=(s.hidden&&c(t),s.querySelector(L)||s.querySelector(i));s&&D(t,s),e.preventDefault()},q=e=>{var t=e.target,s=t.nextSibling;s&&D(t,s),e.preventDefault()},N=e=>{var{comboBoxEl:t,listEl:s,focusedOptionEl:r}=S(e.target),r=r&&r.previousSibling,s=!s.hidden;D(t,r),s&&e.preventDefault(),r||l(t)};a=a({[e]:{[u](){var e,t;this.disabled||(e=this,{comboBoxEl:e,listEl:t}=S(e),t.hidden&&c(e))},[p](){var e,t,s;this.disabled||(e=this,{comboBoxEl:e,listEl:t,inputEl:s}=S(e),(t.hidden?c:l)(e),s.focus())},[i](){this.disabled||$(this)},[d](){var e,t,s,r;this.disabled||(e=this,{comboBoxEl:e,listEl:r,selectEl:t,inputEl:s}=S(e),r=!r.hidden,t.value&&_(t),s.value&&_(s),e.classList.remove(b),r&&c(e),s.focus())}},focusout:{[j](e){this.contains(e.relatedTarget)||(k(this),l(this))}},keydown:{[j]:s({Escape:e=>{var{comboBoxEl:e,inputEl:t}=S(e.target);l(e),k(e),t.focus()}}),[u]:s({Enter:e=>{var{comboBoxEl:t,listEl:s}=S(e.target),s=!s.hidden;(e=>{var{comboBoxEl:s,selectEl:r,inputEl:a,statusEl:e}=S(e),n=(e.textContent="",(a.value||"").toLowerCase());if(n)for(let e=0,t=r.options.length;e<t;e+=1){var i=r.options[e];if(i.text.toLowerCase()===n)return _(r,i.value),_(a,i.text),s.classList.add(b)}k(s)})(t),s&&l(t),e.preventDefault()},ArrowDown:M,Down:M}),[i]:s({ArrowUp:N,Up:N,ArrowDown:q,Down:q,Enter:e=>{$(e.target),e.preventDefault()},Tab:e=>{$(e.target),e.preventDefault()},"Shift+Tab":()=>{}})},input:{[u](){this.closest(j).classList.remove(b),c(this)}},mouseover:{[i](){var e;(e=this).classList.contains(A)||D(e,e,{preventScroll:!0})}}},{init(e){r(j,e).forEach(e=>{o(e)})},getComboBoxContext:S,enhanceComboBox:o,generateDynamicRegExp:T,disable:C,enable:e=>{var{inputEl:e,toggleListBtnEl:t,clearInputBtnEl:s}=S(e);s.hidden=!1,s.disabled=!1,t.disabled=!1,e.disabled=!1},displayList:c,hideList:l,COMBO_BOX_CLASS:n});t.exports=a},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select-or-matches":52,"receptor/keymap":11}],19:[function(e,A,E){"use strict";const t=e("receptor/keymap");var _=e("../../uswds-core/src/js/utils/behavior");const S=e("../../uswds-core/src/js/utils/select"),P=e("../../uswds-core/src/js/utils/select-or-matches");var s=e("../../uswds-core/src/js/config")["prefix"],F=e("../../uswds-core/src/js/events")["CLICK"];const R=e("../../uswds-core/src/js/utils/active-element");var Y=e("../../uswds-core/src/js/utils/is-ios-device");const C=e("../../uswds-core/src/js/utils/sanitizer");e=s+"-date-picker";const U=e+"__wrapper",K=e+"--initialized",V=e+"--active",W=e+"__internal-input",z=e+"__external-input",Q=e+"__button",n=e+"__calendar",G=e+"__status",D=n+"__date",Z=D+"--focused",X=D+"--selected",J=D+"--previous-month",ee=D+"--current-month",te=D+"--next-month",se=D+"--range-date",re=D+"--today",ae=D+"--range-date-start",ne=D+"--range-date-end",ie=D+"--within-range",oe=n+"__previous-year",ce=n+"__previous-month",le=n+"__next-year",ue=n+"__next-month",de=n+"__month-selection",pe=n+"__year-selection",p=n+"__month",fe=p+"--focused",be=p+"--selected",x=n+"__year",he=x+"--focused",ve=x+"--selected",me=n+"__previous-year-chunk",ge=n+"__next-year-chunk",we=n+"__date-picker",ye=n+"__month-picker",Ae=n+"__year-picker",T=n+"__table",Ee=n+"__row",$=n+"__cell",k=$+"--center-items",xe=n+"__month-label",je=n+"__day-of-week",b="."+e,Le="."+Q,_e="."+W,h="."+z,v="."+n,Se="."+G;s="."+D;const o="."+Z;e="."+ee;const Ce="."+oe,De="."+ce,Te="."+le,$e="."+ue;var ke="."+pe,Me="."+de,qe="."+p;const m="."+x,Ne="."+me,Ie="."+ge,M="."+we;var Oe="."+ye;const Be="."+Ae,c="."+fe,l="."+he,He="Please enter a valid date",Pe=["January","February","March","April","May","June","July","August","September","October","November","December"],Fe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],j=12,Re="MM/DD/YYYY",Ye="YYYY-MM-DD";function Ue(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.map(e=>e+":not([disabled])").join(", ")}var Ke=Ue(Ce,De,ke,Me,Te,$e,o),Ve=Ue(c),We=Ue(Ne,Ie,l);const ze=(e,t)=>(t!==e.getMonth()&&e.setDate(0),e),Qe=(e,t,s)=>{var r=new Date(0);return r.setFullYear(e,t,s),r},Ge=()=>{var e=new Date,t=e.getDate(),s=e.getMonth(),e=e.getFullYear();return Qe(e,s,t)},Ze=e=>{var t=new Date(0);return t.setFullYear(e.getFullYear(),e.getMonth(),1),t},Xe=e=>{var t=new Date(0);return t.setFullYear(e.getFullYear(),e.getMonth()+1,0),t},q=(e,t)=>{e=new Date(e.getTime());return e.setDate(e.getDate()+t),e},Je=(e,t)=>q(e,-t),et=(e,t)=>q(e,7*t),tt=e=>{var t=e.getDay();return Je(e,t)},N=(e,t)=>{var e=new Date(e.getTime()),s=(e.getMonth()+12+t)%12;return e.setMonth(e.getMonth()+t),ze(e,s),e},st=(e,t)=>N(e,-t),rt=(e,t)=>N(e,12*t),at=(e,t)=>rt(e,-t),f=(e,t)=>{e=new Date(e.getTime());return e.setMonth(t),ze(e,t),e},L=(e,t)=>{var e=new Date(e.getTime()),s=e.getMonth();return e.setFullYear(t),ze(e,s),e},nt=(e,t)=>{let s=t<e?t:e;return new Date(s.getTime())},it=(e,t)=>{let s=e<t?t:e;return new Date(s.getTime())},ot=(e,t)=>e&&t&&e.getFullYear()===t.getFullYear(),I=(e,t)=>ot(e,t)&&e.getMonth()===t.getMonth(),O=(e,t)=>I(e,t)&&e.getDate()===t.getDate(),u=(e,t,s)=>{let r=e;return e<t?r=t:s&&s<e&&(r=s),new Date(r.getTime())},ct=(e,t,s)=>t<=e&&(!s||e<=s),lt=(e,t,s)=>Xe(e)<t||s&&Ze(e)>s,ut=(e,t,s)=>Xe(f(e,11))<t||s&&Ze(f(e,0))>s,g=function(r){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ye,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];let i,o,c,l,u;if(r){let e,t,s;a===Re?[e,t,s]=r.split("/"):[s,e,t]=r.split("-"),s&&(u=parseInt(s,10),Number.isNaN(u)||(l=u,n&&(l=Math.max(0,l),s.length<3)&&(r=(a=Ge().getFullYear())-a%10**s.length,l=r+u))),e&&(u=parseInt(e,10),Number.isNaN(u)||(o=u,n&&(o=Math.max(1,o),o=Math.min(12,o)))),o&&t&&null!=l&&(u=parseInt(t,10),Number.isNaN(u)||(c=u,n&&(a=Qe(l,o,0).getDate(),c=Math.max(1,c),c=Math.min(a,c)))),o&&c&&null!=l&&(i=Qe(l,o-1,c))}return i},B=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ye,s=(e,t)=>("0000"+e).slice(-t),r=e.getMonth()+1,a=e.getDate(),e=e.getFullYear();return t===Re?[s(r,2),s(a,2),s(e,4)].join("/"):[s(e,4),s(r,2),s(a,2)].join("-")},dt=(e,t)=>{var s=[],r=[];let a=0;for(;a<e.length;){r=[];const i=document.createElement("tr");for(;a<e.length&&r.length<t;){var n=document.createElement("td");n.insertAdjacentElement("beforeend",e[a]),r.push(n),a+=1}r.forEach(e=>{i.insertAdjacentElement("beforeend",e)}),s.push(i)}return s},pt=e=>{const t=document.createElement("tbody");return e.forEach(e=>{t.insertAdjacentElement("beforeend",e)}),t},ft=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",t=(e.value=t,new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:{value:t}}));e.dispatchEvent(t)},H=e=>{e=e.closest(b);if(!e)throw new Error("Element is missing outer "+b);var t=e.querySelector(_e),s=e.querySelector(h),r=e.querySelector(v),a=e.querySelector(Le),n=e.querySelector(Se),i=e.querySelector(m),o=g(s.value,Re,!0),c=g(t.value),l=g(r.dataset.value),u=g(e.dataset.minDate),d=g(e.dataset.maxDate),p=g(e.dataset.rangeDate),f=g(e.dataset.defaultDate);if(u&&d&&d<u)throw new Error("Minimum date cannot be after maximum date");return{calendarDate:l,minDate:u,toggleBtnEl:a,selectedDate:c,maxDate:d,firstYearChunkEl:i,datePickerEl:e,inputDate:o,internalInputEl:t,externalInputEl:s,calendarEl:r,rangeDate:p,defaultDate:f,statusEl:n}},bt=e=>{var{externalInputEl:e,toggleBtnEl:t}=H(e);t.disabled=!0,e.disabled=!0};const ht=e=>{var t,s,r,a,{externalInputEl:e,minDate:n,maxDate:i}=H(e),e=e.value;let o=!1;return o=e&&(o=!0,[t,s,r]=(e=e.split("/")).map(e=>{let t;e=parseInt(e,10);return t=Number.isNaN(e)?t:e}),t)&&s&&null!=r&&(a=Qe(r,t-1,s)).getMonth()===t-1&&a.getDate()===s&&a.getFullYear()===r&&4===e[2].length&&ct(a,n,i)?!1:o},vt=e=>{var e=H(e)["externalInputEl"],t=ht(e);t&&!e.validationMessage&&e.setCustomValidity(He),t||e.validationMessage!==He||e.setCustomValidity("")},mt=(e,t)=>{var s,r,a=g(t);a&&(a=B(a,Re),{datePickerEl:e,internalInputEl:s,externalInputEl:r}=H(e),ft(s,t),ft(r,a),vt(e))},d=(e,t)=>{const{datePickerEl:s,calendarEl:r,statusEl:a,selectedDate:d,maxDate:p,minDate:f,rangeDate:b}=H(e),h=Ge();let n=t||h;e=r.hidden;const v=q(n,0);var i=n.getMonth(),t=n.getFullYear();const m=st(n,1),g=N(n,1);var o=B(n),c=Ze(n),l=I(n,f),u=I(n,p),w=d||n;const y=b&&nt(w,b),A=b&&it(w,b),E=b&&q(y,1),x=b&&Je(A,1);for(var w=Pe[i],j=(n=tt(c),[]);j.length<28||n.getMonth()===i||j.length%7!=0;)j.push((e=>{var t=[D],s=e.getDate(),r=e.getMonth(),a=e.getFullYear(),n=e.getDay(),i=B(e);let o="-1";var c=!ct(e,f,p),l=O(e,d),e=(I(e,m)&&t.push(J),I(e,v)&&t.push(ee),I(e,g)&&t.push(te),l&&t.push(X),O(e,h)&&t.push(re),b&&(O(e,b)&&t.push(se),O(e,y)&&t.push(ae),O(e,A)&&t.push(ne),ct(e,E,x))&&t.push(ie),O(e,v)&&(o="0",t.push(Z)),Pe[r]),n=Fe[n],u=document.createElement("button");return u.setAttribute("type","button"),u.setAttribute("tabindex",o),u.setAttribute("class",t.join(" ")),u.setAttribute("data-day",s),u.setAttribute("data-month",r+1),u.setAttribute("data-year",a),u.setAttribute("data-value",i),u.setAttribute("aria-label",C.escapeHTML`${s} ${e} ${a} ${n}`),u.setAttribute("aria-selected",l?"true":"false"),!0==c&&(u.disabled=!0),u.textContent=s,u})(n)),n=q(n,1);var c=dt(j,7),L=r.cloneNode(),o=(L.dataset.value=o,L.style.top=s.offsetHeight+"px",L.hidden=!1,L.innerHTML=C.escapeHTML`
    <div tabindex="-1" class="${we}">
      <div class="${Ee}">
        <div class="${$} ${k}">
          <button
            type="button"
            class="${oe}"
            aria-label="Navigate back one year"
            ${l?'disabled="disabled"':""}
          ></button>
        </div>
        <div class="${$} ${k}">
          <button
            type="button"
            class="${ce}"
            aria-label="Navigate back one month"
            ${l?'disabled="disabled"':""}
          ></button>
        </div>
        <div class="${$} ${xe}">
          <button
            type="button"
            class="${de}" aria-label="${w}. Click to select month"
          >${w}</button>
          <button
            type="button"
            class="${pe}" aria-label="${t}. Click to select year"
          >${t}</button>
        </div>
        <div class="${$} ${k}">
          <button
            type="button"
            class="${ue}"
            aria-label="Navigate forward one month"
            ${u?'disabled="disabled"':""}
          ></button>
        </div>
        <div class="${$} ${k}">
          <button
            type="button"
            class="${le}"
            aria-label="Navigate forward one year"
            ${u?'disabled="disabled"':""}
          ></button>
        </div>
      </div>
    </div>
    `,document.createElement("table")),l=(o.setAttribute("class",T),o.setAttribute("role","presentation"),document.createElement("thead"));o.insertAdjacentElement("beforeend",l);const _=document.createElement("tr"),S=(l.insertAdjacentElement("beforeend",_),{Sunday:"S",Monday:"M",Tuesday:"T",Wednesday:"W",Thursday:"Th",Friday:"Fr",Saturday:"S"});Object.keys(S).forEach(e=>{var t=document.createElement("th");t.setAttribute("class",je),t.setAttribute("scope","presentation"),t.setAttribute("aria-label",e),t.textContent=S[e],_.insertAdjacentElement("beforeend",t)});u=pt(c);o.insertAdjacentElement("beforeend",u);L.querySelector(M).insertAdjacentElement("beforeend",o),r.parentNode.replaceChild(L,r),s.classList.add(V);l=[];return O(d,v)&&l.push("Selected date"),e?(l.push("You can navigate by day using left and right arrows","Weeks by using up and down arrows","Months by using page up and page down keys","Years by using shift plus page up and shift plus page down","Home and end keys navigate to the beginning and end of a week"),a.textContent=""):l.push(w+" "+t),a.textContent=l.join(". "),L},gt=e=>{var{datePickerEl:e,calendarEl:t,statusEl:s}=H(e);e.classList.remove(V),t.hidden=!0,s.textContent=""},wt=e=>{var{calendarEl:e,inputDate:t,minDate:s,maxDate:r}=H(e);!e.hidden&&t&&(t=u(t,s,r),d(e,t))},yt=(e,t)=>{const{calendarEl:s,statusEl:r,calendarDate:o,minDate:c,maxDate:l}=H(e),u=o.getMonth(),d=null==t?u:t;var e=Pe.map((e,t)=>{var s=f(o,t),s=lt(s,c,l);let r="-1";var a=[p],n=t===u,i=(t===d&&(r="0",a.push(fe)),n&&a.push(be),document.createElement("button"));return i.setAttribute("type","button"),i.setAttribute("tabindex",r),i.setAttribute("class",a.join(" ")),i.setAttribute("data-value",t),i.setAttribute("data-label",e),i.setAttribute("aria-selected",n?"true":"false"),!0===s&&(i.disabled=!0),i.textContent=e,i}),t=document.createElement("div"),a=(t.setAttribute("tabindex","-1"),t.setAttribute("class",ye),document.createElement("table")),e=(a.setAttribute("class",T),a.setAttribute("role","presentation"),dt(e,3)),e=pt(e),e=(a.insertAdjacentElement("beforeend",e),t.insertAdjacentElement("beforeend",a),s.cloneNode());return e.insertAdjacentElement("beforeend",t),s.parentNode.replaceChild(e,s),r.textContent="Select a month.",e},w=(e,t)=>{var{calendarEl:e,statusEl:s,calendarDate:r,minDate:a,maxDate:n}=H(e),i=r.getFullYear(),o=null==t?i:t,t=o,c=(t-=t%j,t=Math.max(0,t),ut(L(r,t-1),a,n)),l=ut(L(r,t+j),a,n),u=[];let d=t;for(;u.length<j;){var p=ut(L(r,d),a,n);let e="-1";var f=[x],b=d===i,h=(d===o&&(e="0",f.push(he)),b&&f.push(ve),document.createElement("button"));h.setAttribute("type","button"),h.setAttribute("tabindex",e),h.setAttribute("class",f.join(" ")),h.setAttribute("data-value",d),h.setAttribute("aria-selected",b?"true":"false"),!0===p&&(h.disabled=!0),h.textContent=d,u.push(h),d+=1}var v=e.cloneNode(),m=document.createElement("div"),g=(m.setAttribute("tabindex","-1"),m.setAttribute("class",Ae),document.createElement("table")),w=(g.setAttribute("role","presentation"),g.setAttribute("class",T),document.createElement("tbody")),y=document.createElement("tr"),A=document.createElement("button"),c=(A.setAttribute("type","button"),A.setAttribute("class",me),A.setAttribute("aria-label",`Navigate back ${j} years`),!0===c&&(A.disabled=!0),A.innerHTML=C.escapeHTML`&nbsp`,document.createElement("button")),l=(c.setAttribute("type","button"),c.setAttribute("class",ge),c.setAttribute("aria-label",`Navigate forward ${j} years`),!0===l&&(c.disabled=!0),c.innerHTML=C.escapeHTML`&nbsp`,document.createElement("table")),E=(l.setAttribute("class",T),l.setAttribute("role","presentation"),dt(u,3)),E=pt(E),E=(l.insertAdjacentElement("beforeend",E),document.createElement("td")),A=(E.insertAdjacentElement("beforeend",A),document.createElement("td")),l=(A.setAttribute("colspan","3"),A.insertAdjacentElement("beforeend",l),document.createElement("td"));return l.insertAdjacentElement("beforeend",c),y.insertAdjacentElement("beforeend",E),y.insertAdjacentElement("beforeend",A),y.insertAdjacentElement("beforeend",l),w.insertAdjacentElement("beforeend",y),g.insertAdjacentElement("beforeend",w),m.insertAdjacentElement("beforeend",g),v.insertAdjacentElement("beforeend",m),e.parentNode.replaceChild(v,e),s.textContent=C.escapeHTML`Showing years ${t} to ${t+j-1}. Select a year.`,v},At=e=>{var{datePickerEl:t,externalInputEl:s}=H(e.target);gt(t),s.focus(),e.preventDefault()};var r=i=>e=>{var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(e.target),n=i(s),n=u(n,r,a);O(s,n)||d(t,n).querySelector(o).focus(),e.preventDefault()},Et=r(e=>{return e=e,t=1,et(e,-t);var t}),xt=r(e=>et(e,1)),jt=r(e=>Je(e,1)),Lt=r(e=>q(e,1)),_t=r(e=>tt(e)),St=r(e=>{return t=(e=e).getDay(),q(e,6-t);var t}),Ct=r(e=>N(e,1)),Dt=r(e=>st(e,1)),Tt=r(e=>rt(e,1)),r=r(e=>at(e,1));var a=o=>e=>{var t=e.target,s=parseInt(t.dataset.value,10),{calendarEl:t,calendarDate:r,minDate:a,maxDate:n}=H(t),i=f(r,s),s=o(s),s=Math.max(0,Math.min(11,s)),r=f(r,s),s=u(r,a,n);I(i,s)||yt(t,s.getMonth()).querySelector(c).focus(),e.preventDefault()},$t=a(e=>e-3),kt=a(e=>e+3),Mt=a(e=>e-1),qt=a(e=>e+1),Nt=a(e=>e-e%3),It=a(e=>e+2-e%3),Ot=a(()=>11),a=a(()=>0);var i=o=>e=>{var t=e.target,s=parseInt(t.dataset.value,10),{calendarEl:t,calendarDate:r,minDate:a,maxDate:n}=H(t),i=L(r,s),s=o(s),s=Math.max(0,s),r=L(r,s),s=u(r,a,n);ot(i,s)||w(t,s.getFullYear()).querySelector(l).focus(),e.preventDefault()},Bt=i(e=>e-3),Ht=i(e=>e+3),Pt=i(e=>e-1),Ft=i(e=>e+1),Rt=i(e=>e-e%3),Yt=i(e=>e+2-e%3),Ut=i(e=>e-j),i=i(e=>e+j);var y=n=>{const a=e=>{var e=H(e)["calendarEl"],e=S(n,e),t=e.length-1,s=e[0],r=e[t],a=e.indexOf(R());return{focusableElements:e,isNotFound:-1===a,firstTabStop:s,isFirstTab:0===a,lastTabStop:r,isLastTab:a===t}};return{tabAhead(e){var{firstTabStop:t,isLastTab:s,isNotFound:r}=a(e.target);(s||r)&&(e.preventDefault(),t.focus())},tabBack(e){var{lastTabStop:t,isFirstTab:s,isNotFound:r}=a(e.target);(s||r)&&(e.preventDefault(),t.focus())}}},Ke=y(Ke),Ve=y(Ve),y=y(We),We={[F]:{[Le](){var e,t,s,r,a,n;(e=this).disabled||({calendarEl:t,inputDate:n,minDate:s,maxDate:r,defaultDate:a}=H(e),t.hidden?(n=u(n||a||Ge(),s,r),d(t,n).querySelector(o).focus()):gt(e))},[s](){var e,t,s;(e=this).disabled||({datePickerEl:t,externalInputEl:s}=H(e),mt(e,e.dataset.value),gt(t),s.focus())},[qe](){var e,t,s,r,a;(e=this).disabled||({calendarEl:t,calendarDate:a,minDate:s,maxDate:r}=H(e),e=parseInt(e.dataset.value,10),a=f(a,e),a=u(a,s,r),d(t,a).querySelector(o).focus())},[m](){var e,t,s,r,a;(e=this).disabled||({calendarEl:t,calendarDate:a,minDate:s,maxDate:r}=H(e),e=parseInt(e.innerHTML,10),a=L(a,e),a=u(a,s,r),d(t,a).querySelector(o).focus())},[De](){var t=this;if(!t.disabled){var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=st(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector(De);(e=e.disabled?r.querySelector(M):e).focus()}},[$e](){var t=this;if(!t.disabled){var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=N(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector($e);(e=e.disabled?r.querySelector(M):e).focus()}},[Ce](){var t=this;if(!t.disabled){var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=at(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector(Ce);(e=e.disabled?r.querySelector(M):e).focus()}},[Te](){var t=this;if(!t.disabled){var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),s=rt(s,1),s=u(s,r,a),r=d(t,s);let e=r.querySelector(Te);(e=e.disabled?r.querySelector(M):e).focus()}},[Ne](){var t=this;if(!t.disabled){var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),n=t.querySelector(l),n=parseInt(n.textContent,10)-j,n=Math.max(0,n),s=L(s,n),n=u(s,r,a),s=w(t,n.getFullYear());let e=s.querySelector(Ne);(e=e.disabled?s.querySelector(Be):e).focus()}},[Ie](){var t=this;if(!t.disabled){var{calendarEl:t,calendarDate:s,minDate:r,maxDate:a}=H(t),n=t.querySelector(l),n=parseInt(n.textContent,10)+j,n=Math.max(0,n),s=L(s,n),n=u(s,r,a),s=w(t,n.getFullYear());let e=s.querySelector(Ie);(e=e.disabled?s.querySelector(Be):e).focus()}},[Me](){yt(this).querySelector(c).focus()},[ke](){w(this).querySelector(l).focus()}},keyup:{[v](e){var t=this.dataset.keydownKeyCode;""+e.keyCode!==t&&e.preventDefault()}},keydown:{[h](e){13===e.keyCode&&vt(this)},[s]:t({Up:Et,ArrowUp:Et,Down:xt,ArrowDown:xt,Left:jt,ArrowLeft:jt,Right:Lt,ArrowRight:Lt,Home:_t,End:St,PageDown:Ct,PageUp:Dt,"Shift+PageDown":Tt,"Shift+PageUp":r,Tab:Ke.tabAhead}),[M]:t({Tab:Ke.tabAhead,"Shift+Tab":Ke.tabBack}),[qe]:t({Up:$t,ArrowUp:$t,Down:kt,ArrowDown:kt,Left:Mt,ArrowLeft:Mt,Right:qt,ArrowRight:qt,Home:Nt,End:It,PageDown:Ot,PageUp:a}),[Oe]:t({Tab:Ve.tabAhead,"Shift+Tab":Ve.tabBack}),[m]:t({Up:Bt,ArrowUp:Bt,Down:Ht,ArrowDown:Ht,Left:Pt,ArrowLeft:Pt,Right:Ft,ArrowRight:Ft,Home:Rt,End:Yt,PageDown:i,PageUp:Ut}),[Be]:t({Tab:y.tabAhead,"Shift+Tab":y.tabBack}),[v](e){this.dataset.keydownKeyCode=e.keyCode},[b](e){t({Escape:At})(e)}},focusout:{[h](){vt(this)},[b](e){this.contains(e.relatedTarget)||gt(this)}},input:{[h](){{var t=this,{internalInputEl:s,inputDate:r}=H(t);let e="";r&&!ht(t)&&(e=B(r)),s.value!==e&&ft(s,e)}wt(this)}}},F=(Y()||(We.mouseover={[e](){var e,t,s;(e=this).disabled||(s=(t=e.closest(v)).dataset.value,(e=e.dataset.value)!==s&&(s=g(e),d(t,s).querySelector(o).focus()))},[qe](){var e,t;(e=this).disabled||e.classList.contains(fe)||(t=parseInt(e.dataset.value,10),yt(e,t).querySelector(c).focus())},[m](){var e,t;(e=this).disabled||e.classList.contains(he)||(t=parseInt(e.dataset.value,10),w(e,t).querySelector(l).focus())}}),_(We,{init(e){P(b,e).forEach(e=>{var t=(e=e.closest(b)).dataset.defaultValue,s=e.querySelector("input");if(!s)throw new Error(b+" is missing inner input");s.value&&(s.value="");var r=g(e.dataset.minDate||s.getAttribute("min"));e.dataset.minDate=r?B(r):"0000-01-01",(r=g(e.dataset.maxDate||s.getAttribute("max")))&&(e.dataset.maxDate=B(r));(r=document.createElement("div")).classList.add(U);var a=s.cloneNode();a.classList.add(z),a.type="text",r.appendChild(a),r.insertAdjacentHTML("beforeend",C.escapeHTML`
    <button type="button" class="${Q}" aria-haspopup="true" aria-label="Toggle calendar"></button>
    <div class="${n}" role="dialog" aria-modal="true" hidden></div>
    <div class="usa-sr-only ${G}" role="status" aria-live="polite"></div>`),s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex","-1"),s.style.display="none",s.classList.add(W),s.removeAttribute("id"),s.removeAttribute("name"),s.required=!1,e.appendChild(r),e.classList.add(K),t&&mt(e,t),s.disabled&&(bt(e),s.disabled=!1)})},getDatePickerContext:H,disable:bt,enable:e=>{var{externalInputEl:e,toggleBtnEl:t}=H(e);t.disabled=!1,e.disabled=!1},isDateInputInvalid:ht,setCalendarValue:mt,validateDateInput:vt,renderCalendar:d,updateCalendarIfVisible:wt}));A.exports=F},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/active-element":44,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-ios-device":49,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/select-or-matches":52,"receptor/keymap":11}],20:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select"),n=e("../../uswds-core/src/js/utils/select-or-matches");var i=e("../../uswds-core/src/js/config")["prefix"];const{getDatePickerContext:o,isDateInputInvalid:c,updateCalendarIfVisible:l}=e("../../usa-date-picker/src/index");e=i+"-date-range-picker";const u=e+"__range-start",d=e+"__range-end",p="."+(i+"-date-picker"),f="."+e,b="."+u,h="."+d,v=e=>{var t,s,e=e.closest(f);if(e)return t=e.querySelector(b),s=e.querySelector(h),{dateRangePickerEl:e,rangeStartEl:t,rangeEndEl:s};throw new Error("Element is missing outer "+f)},m=e=>{var{dateRangePickerEl:e,rangeStartEl:t,rangeEndEl:s}=v(e),t=o(t)["internalInputEl"],r=t.value;r&&!c(t)?(s.dataset.minDate=r,s.dataset.rangeDate=r,s.dataset.defaultDate=r):(s.dataset.minDate=e.dataset.minDate||"",s.dataset.rangeDate="",s.dataset.defaultDate=""),l(s)},g=e=>{var{dateRangePickerEl:e,rangeStartEl:t,rangeEndEl:s}=v(e),s=o(s)["internalInputEl"],r=s.value;r&&!c(s)?(t.dataset.maxDate=r,t.dataset.rangeDate=r,t.dataset.defaultDate=r):(t.dataset.maxDate=e.dataset.maxDate||"",t.dataset.rangeDate="",t.dataset.defaultDate=""),l(t)};i=r({"input change":{[b](){m(this)},[h](){g(this)}}},{init(e){n(f,e).forEach(e=>{var e=(e=e).closest(f),[t,s]=a(p,e);if(!t)throw new Error(`${f} is missing inner two '${p}' elements`);if(!s)throw new Error(`${f} is missing second '${p}' element`);t.classList.add(u),s.classList.add(d),e.dataset.minDate||(e.dataset.minDate="0000-01-01");var r=e.dataset["minDate"];(r=(t.dataset.minDate=r,s.dataset.minDate=r,e.dataset)["maxDate"])&&(t.dataset.maxDate=r,s.dataset.maxDate=r),m(e),g(e)})}});t.exports=i},{"../../usa-date-picker/src/index":19,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/select-or-matches":52}],21:[function(e,t,g){"use strict";const s=e("../../uswds-core/src/js/utils/select-or-matches");var r=e("../../uswds-core/src/js/utils/behavior");const A=e("../../uswds-core/src/js/utils/sanitizer");e=e("../../uswds-core/src/js/config").prefix;const c=e+"-file-input",a="."+c,l=e+"-file-input__input",u=e+"-file-input__target",o="."+l,d=e+"-file-input__box",p=e+"-file-input__instructions",E=e+"-file-input__preview",x=e+"-file-input__preview-heading",n=e+"-file-input--disabled",f=e+"-file-input__choose",j=e+"-file-input__accepted-files-message",b=e+"-file-input__drag-text",i=e+"-file-input--drag",L="is-loading",_="display-none",S="has-invalid-file",C=e+"-file-input__preview-image",D=C+"--generic",T=C+"--pdf",$=C+"--word",k=C+"--video",M=C+"--excel",q="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";let N=Boolean(!0);const h=e=>{var t,e=e.closest(a);if(e)return t=e.querySelector(o),{dropZoneEl:e,inputEl:t};throw new Error("Element is missing outer "+a)},v=e=>{var{dropZoneEl:e,inputEl:t}=h(e);t.disabled=!0,e.classList.add(n),e.setAttribute("aria-disabled","true")};const m=e=>{var t=e.charCodeAt(0);return 32===t?"-":65<=t&&t<=90?"img_"+e.toLowerCase():"__"+t.toString(16).slice(-4)},I=e=>e.replace(/[^a-z0-9]/g,m),O=e=>e+"-"+Math.floor(Date.now().toString()/1e3),B=(e,t,s)=>{var r=e.querySelectorAll("."+E),a=e.querySelector(o),n=e.querySelector("."+x),i=e.querySelector("."+j);n&&(n.outerHTML=""),i&&(i.outerHTML="",e.classList.remove(S)),null!==r&&(t&&t.classList.remove(_),a.setAttribute("aria-label",s),Array.prototype.forEach.call(r,e=>{e.parentNode.removeChild(e)}))},w=(e,t,s,r)=>{var a=e,n=t,i=s,o=r,c=n.getAttribute("accept");if(o.classList.remove(S),c){var l=c.split(","),c=document.createElement("div");let t=!0;var u=a.target.files||a.dataTransfer.files;for(let e=0;e<u.length;e+=1){var d=u[e];if(!t)break;for(let e=0;e<l.length;e+=1){var p=l[e];if(t=0<d.name.indexOf(p)||((e,t)=>{let s=!1;e=e.indexOf(t);return s=0<=e?!0:s})(d.type,p.replace(/\*/g,""))){N=!0;break}}}t||(B(o,i),n.value="",o.insertBefore(c,n),c.textContent=n.dataset.errormessage||"This is not a valid file type.",c.classList.add(j),o.classList.add(S),N=!1,a.preventDefault(),a.stopPropagation())}if(!0===N){var f=t,b=s,h=r,v=(i=e).target.files,m=document.createElement("div"),i=f.dataset.defaultAriaLabel,g=[];B(h,b,i);for(let e=0;e<v.length;e+=1){const w=new FileReader,y=v[e].name;g.push(y),0===e?f.setAttribute("aria-label","You have selected the file: "+y):1<=e&&f.setAttribute("aria-label",`You have selected ${v.length} files: `+g.join(", ")),w.onloadstart=function(){var e=O(I(y));b.insertAdjacentHTML("afterend",A.escapeHTML`<div class="${E}" aria-hidden="true">
          <img id="${e}" src="${q}" alt="" class="${C} ${L}"/>${y}
        <div>`)},w.onloadend=function(){var e=O(I(y)),e=document.getElementById(e);0<y.indexOf(".pdf")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${T}")`):0<y.indexOf(".doc")||0<y.indexOf(".pages")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${$}")`):0<y.indexOf(".xls")||0<y.indexOf(".numbers")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${M}")`):0<y.indexOf(".mov")||0<y.indexOf(".mp4")?e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${k}")`):e.setAttribute("onerror",`this.onerror=null;this.src="${q}"; this.classList.add("${D}")`),e.classList.remove(L),e.src=w.result},v[e]&&w.readAsDataURL(v[e]),0===e?(h.insertBefore(m,b),m.innerHTML='Selected file <span class="usa-file-input__choose">Change file</span>'):1<=e&&(h.insertBefore(m,b),m.innerHTML=A.escapeHTML`${e+1} files selected <span class="usa-file-input__choose">Change files</span>`),m&&(b.classList.add(_),m.classList.add(x))}}};e=r({},{init(e){s(a,e).forEach(t=>{const{instructions:s,dropTarget:r}=(e=>{var t=e.hasAttribute("multiple"),s=document.createElement("div"),r=document.createElement("div"),a=document.createElement("div"),n=document.createElement("div"),i=e.hasAttribute("disabled");let o;return e.classList.remove(c),e.classList.add(l),s.classList.add(c),a.classList.add(d),n.classList.add(p),n.setAttribute("aria-hidden","true"),r.classList.add(u),e.setAttribute("aria-live","polite"),e.parentNode.insertBefore(r,e),e.parentNode.insertBefore(s,r),r.appendChild(e),s.appendChild(r),e.parentNode.insertBefore(n,e),e.parentNode.insertBefore(a,e),i&&v(e),t?(o="No files selected",n.innerHTML=A.escapeHTML`<span class="${b}">Drag files here or </span><span class="${f}">choose from folder</span>`):(o="No file selected",n.innerHTML=A.escapeHTML`<span class="${b}">Drag file here or </span><span class="${f}">choose from folder</span>`),e.setAttribute("aria-label",o),e.setAttribute("data-default-aria-label",o),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(s.querySelector("."+b).outerHTML=""),{instructions:n,dropTarget:r}})(t);r.addEventListener("dragover",function(){this.classList.add(i)},!1),r.addEventListener("dragleave",function(){this.classList.remove(i)},!1),r.addEventListener("drop",function(){this.classList.remove(i)},!1),t.addEventListener("change",e=>w(e,t,s,r),!1)})},teardown(e){s(o,e).forEach(e=>{var t=e.parentElement.parentElement;t.parentElement.replaceChild(e,t),e.className=c})},getFileInputContext:h,disable:v,enable:e=>{var{dropZoneEl:e,inputEl:t}=h(e);t.disabled=!1,e.classList.remove(n),e.removeAttribute("aria-disabled")}});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select-or-matches":52}],22:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior"),a=e("../../uswds-core/src/js/events")["CLICK"];const n=e("../../uswds-core/src/js/config")["prefix"],i=`.${n}-footer--big`,o=i+" nav"+` .${n}-footer__primary-link`;function c(r){var e=document.querySelector(i);if(e){e=e.querySelectorAll(o);const a=r?"button":"h4";e.forEach(e=>{var t=e.getAttribute("class"),s=document.createElement(a);s.setAttribute("class",t),s.classList.toggle(n+"-footer__primary-link--button",r),s.textContent=e.textContent,r&&(t=n+"-footer-menu-list-"+Math.floor(1e5*Math.random()),s.setAttribute("aria-controls",t),s.setAttribute("aria-expanded","false"),e.nextElementSibling.setAttribute("id",t),s.setAttribute("type","button")),e.after(s),e.remove()})}}const l=e=>{c(e.matches)};t.exports=r({[a]:{[o]:function(){var e;window.innerWidth<480&&(e="true"===this.getAttribute("aria-expanded"),this.closest(i).querySelectorAll(o).forEach(e=>{e.setAttribute("aria-expanded",!1)}),this.setAttribute("aria-expanded",!e))}}},{HIDE_MAX_WIDTH:480,init(){c(window.innerWidth<480),this.mediaQueryList=window.matchMedia("(max-width: 479.9px)"),this.mediaQueryList.addListener(l)},teardown(){this.mediaQueryList.removeListener(l)}})},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45}],23:[function(e,t,N){"use strict";var s=e("receptor/keymap"),r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select"),n=e("../../uswds-core/src/js/utils/toggle"),i=e("../../uswds-core/src/js/utils/focus-trap"),o=e("../../usa-accordion/src/index");var c=e("../../uswds-core/src/js/utils/scrollbar-width"),l=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const u=`.${e}-header`,d=`.${e}-nav`;var p=`.${e}-nav-container`;const f=`.${e}-nav__primary`,b=`.${e}-nav__primary-item`,h=`button.${e}-nav__link`;var v=d+" a";const m="data-nav-hidden",g=`.${e}-menu-btn`,w=`.${e}-nav__close`;var y=w+`, .${e}-overlay`;const A=[d,`.${e}-overlay`].join(", "),E=`body *:not(${u}, ${p}, ${d}, ${d} *):not([aria-hidden])`,x=(m,"usa-js-mobile-nav--active");let j,L,_;const S=()=>document.body.classList.contains(x);e=c();const C=window.getComputedStyle(document.body).getPropertyValue("padding-right"),D=parseInt(C.replace(/px/,""),10)+parseInt(e.replace(/px/,""),10)+"px",T=()=>{const t=document.querySelector(u).parentNode;(_=document.querySelectorAll(E)).forEach(e=>{e!==t&&(e.setAttribute("aria-hidden",!0),e.setAttribute(m,""))})},$=()=>{(_=document.querySelectorAll("[data-nav-hidden]"))&&_.forEach(e=>{e.removeAttribute("aria-hidden"),e.removeAttribute(m)})};p=e=>{var t=document["body"];const s="boolean"==typeof e?e:!S();t.classList.toggle(x,s),a(A).forEach(e=>e.classList.toggle("is-visible",s)),j.focusTrap.update(s);var e=t.querySelector(w),r=document.querySelector(g);return t.style.paddingRight=t.style.paddingRight===D?C:D,(s?T:$)(),s&&e?e.focus():!s&&document.activeElement===e&&r&&r.focus(),s};const k=()=>{var e=document.body.querySelector(w);S()&&e&&0===e.getBoundingClientRect().width&&j.toggleNav.call(e,!1)},M=()=>j.toggleNav.call(j,!1),q=()=>{L&&(n(L,!1),L=null)};j=r({[l]:{[h](){return L!==this&&q(),L||(L=this,n(L,!0)),!1},body:q,[g]:p,[y]:p,[v](){var e=this.closest(o.ACCORDION);e&&o.getButtons(e).forEach(e=>o.hide(e)),S()&&j.toggleNav.call(j,!1)}},keydown:{[f]:s({Escape:e=>{var t;q(),t=(e=e).target.closest(b),e.target.matches(h)||t.querySelector(h).focus()}})},focusout:{[f](e){e.target.closest(f).contains(e.relatedTarget)||q()}}},{init(e){e=e.matches(d)?e:e.querySelector(d);e&&(j.focusTrap=i(e,{Escape:M})),k(),window.addEventListener("resize",k,!1)},teardown(){window.removeEventListener("resize",k,!1),L=!1},focusTrap:null,toggleNav:p}),t.exports=j},{"../../usa-accordion/src/index":15,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/scrollbar-width":51,"../../uswds-core/src/js/utils/select":53,"../../uswds-core/src/js/utils/toggle":56,"receptor/keymap":11}],24:[function(e,t,s){"use strict";const r=e("receptor/once");var a=e("receptor/keymap");const n=e("../../uswds-core/src/js/utils/select-or-matches");var i=e("../../uswds-core/src/js/utils/behavior"),o=e("../../uswds-core/src/js/config")["prefix"],c=e("../../uswds-core/src/js/events")["CLICK"];const l=e("../../uswds-core/src/js/utils/sanitizer"),u=o+"-current",d=0,p=o+"-in-page-nav",f=o+"-anchor",b=p+"__nav",h=p+"__list",v=p+"__item",m=p+"__link",g=p+"__heading",w=v+"--sub-item",y="main",A=e=>{const t=document.querySelectorAll("."+m);e.map(e=>!0===e.isIntersecting&&1<=e.intersectionRatio&&(t.forEach(e=>e.classList.remove(u)),document.querySelector(`a[href="#${e.target.id}"]`).classList.add(u),!0))},E=e=>{var t=document.querySelector("."+p).dataset.scrollOffset||d;window.scroll({behavior:"smooth",top:e.offsetTop-t,block:"start"})},x=e=>{var t=l.escapeHTML`${e.dataset.titleText||"On this page"}`,s=l.escapeHTML`${e.dataset.titleHeadingLevel||"h4"}`,r={root:null,rootMargin:l.escapeHTML`${e.dataset.rootMargin||"0px 0px 0px 0px"}`,threshold:[l.escapeHTML`${e.dataset.threshold||"1"}`]},a=document.querySelectorAll(`${y} h2, ${y} h3`),n=document.createElement("nav"),s=(n.setAttribute("aria-label",t),n.classList.add(b),document.createElement(s));s.classList.add(g),s.setAttribute("tabindex","0"),s.textContent=t,n.appendChild(s);const o=document.createElement("ul");o.classList.add(h),n.appendChild(o),a.forEach((e,t)=>{var s=document.createElement("li"),r=document.createElement("a"),a=document.createElement("a"),n=e.textContent,i=e.tagName.toLowerCase();s.classList.add(v),"h3"===i&&s.classList.add(w),r.setAttribute("href","#section_"+t),r.setAttribute("class",m),r.textContent=n,a.setAttribute("id","section_"+t),a.setAttribute("class",f),e.insertAdjacentElement("afterbegin",a),o.appendChild(s),s.appendChild(r)}),e.appendChild(n);t=document.querySelectorAll("."+f);const i=new window.IntersectionObserver(A,r);t.forEach(e=>{i.observe(e)})};e=i({[c]:{["."+m](e){e.preventDefault(),this.disabled||(e=this,e=document.querySelector(e.hash),E(e))}},keydown:{["."+m]:a({Enter:e=>{e=(e=>{let t;return t=(e&&1===e.nodeType?e.getAttribute("href"):e.target.hash).replace("#","")})(e);const t=document.getElementById(e).parentElement;t&&(t.setAttribute("tabindex",0),t.focus(),t.addEventListener("blur",r(()=>{t.setAttribute("tabindex",-1)}))),E(t)}})}},{init(e){n("."+p,e).forEach(e=>{x(e)})}});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select-or-matches":52,"receptor/keymap":11,"receptor/once":12}],25:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select-or-matches");var a=e("../../uswds-core/src/js/utils/behavior"),e=e("../../uswds-core/src/js/config")["prefix"];const n="."+(e+"-masked"),i=e+"-input-mask",o=i+"--content",c="placeholder",p="_#dDmMyY9",f="A",b=(e,t)=>e?t.replace(/\W/g,""):t.replace(/\D/g,""),h=e=>!Number.isNaN(parseInt(e,10)),v=e=>!!e&&e.match(/[A-Z]/i),l=e=>{var t=e,s=t.getAttribute("id"),r=(t.value=(e=>{var t=e.dataset.charset,s=t||e.dataset.placeholder,e=e["value"],r=s.length;let a="",n,i;var o=b(t,e);for(n=0,i=0;n<r;n+=1){var c=h(o[i]),l=v(o[i]),u=0<=p.indexOf(s[n]),d=0<=f.indexOf(s[n]);if(u&&c||t&&d&&l)a+=o[i],i+=1;else{if(!t&&!c&&u||t&&(d&&!l||u&&!c))return a;a+=s[n]}if(void 0===o[i])break}return a})(t),r=(t=e).value,t=""+e.dataset.placeholder.substr(r.length),(e=document.createElement("i")).textContent=r,[e,t]),e=document.getElementById(s+"Mask");e.textContent="",e.replaceChildren(r[0],r[1])};e=a({keyup:{[n](){l(this)}}},{init(e){r(n,e).forEach(e=>{var t,s,r;(r=(e=e).getAttribute(c))&&(e.setAttribute("maxlength",r.length),e.setAttribute("data-placeholder",r),e.removeAttribute(c),(t=document.createElement("span")).classList.add(i),t.setAttribute("data-mask",r),(s=document.createElement("span")).classList.add(o),s.setAttribute("aria-hidden","true"),s.id=e.id+"Mask",s.textContent=r,t.appendChild(s),e.closest("form").insertBefore(t,e),t.appendChild(e))})}});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select-or-matches":52}],26:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select"),n=e("../../uswds-core/src/js/config")["prefix"];e=e("../../uswds-core/src/js/events").CLICK;const i=`.${n}-input-group`,o=i+` .${n}-input`;var c=i+` .${n}-input-prefix, ${i} .${n}-input-suffix`;const l="is-focused";function u(){this.closest(i).classList.add(l)}function d(){this.closest(i).classList.remove(l)}r=r({[e]:{[c](){this.closest(i).querySelector(`.${n}-input`).focus()}}},{init(e){a(o,e).forEach(e=>{e.addEventListener("focus",u,!1),e.addEventListener("blur",d,!1)})}});t.exports=r},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select":53}],27:[function(e,t,s){"use strict";var r=e("receptor/keymap"),a=e("../../uswds-core/src/js/utils/behavior");const n=e("../../uswds-core/src/js/utils/toggle"),i=e("../../uswds-core/src/js/utils/focus-trap"),o=e("../../usa-accordion/src/index");var c=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];const l=`.${e}-language__submenu`,u=`.${e}-language__primary`,d=`.${e}-language__primary-item`,p=`button.${e}-language__link`;let f,b;const h=()=>f.toggleLanguage.call(f,!1),v=()=>{b&&(n(b,!1),b=null)};f=a({[c]:{[p](){return b!==this&&v(),b===this?v():b||(b=this,n(b,!0)),!1},body:v,[`.${e}-language`+" a"](){var e=this.closest(o.ACCORDION);e&&o.getButtons(e).forEach(e=>o.hide(e))}},keydown:{[u]:r({Escape:e=>{var t;v(),t=(e=e).target.closest(d),e.target.matches(p)||t.querySelector(p).focus()}})},focusout:{[u](e){e.target.closest(u).contains(e.relatedTarget)||v()}}},{init(e){e=e.matches(l)?e:e.querySelector(l);e&&(f.focusTrap=i(e,{Escape:h}))},teardown(){b=!1},focusTrap:null}),t.exports=f},{"../../usa-accordion/src/index":15,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/toggle":56,"receptor/keymap":11}],28:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select-or-matches"),u=e("../../uswds-core/src/js/utils/focus-trap");var a=e("../../uswds-core/src/js/utils/scrollbar-width"),e=e("../../uswds-core/src/js/config")["prefix"];const d=e+"-modal",p=d+"-overlay",f=d+"-wrapper",b="data-open-modal",h="data-close-modal",v="data-force-action",m="data-modal-hidden",n="."+d,g=`.${f} *[data-focus]`,w=f+` *[${h}]`,y=(b,w+`, .${p}:not([${v}])`),A=`body > *:not(.${f}):not([aria-hidden])`,E=(m,"usa-js-modal--active"),x="is-hidden";let j;e=a();const L=window.getComputedStyle(document.body).getPropertyValue("padding-right"),_=parseInt(L.replace(/px/,""),10)+parseInt(e.replace(/px/,""),10)+"px",S=()=>{j.toggleModal.call(j,!1)};function C(e){let t,s=e.target;var r,a,n,i,o=document["body"],c=!document.body.classList.contains(E),l=s?s.getAttribute("aria-controls"):document.querySelector(".usa-modal-wrapper.is-visible"),l=c?document.getElementById(l):document.querySelector(".usa-modal-wrapper.is-visible");return!!l&&(r=l.querySelector(g)?l.querySelector(g):l.querySelector(".usa-modal"),a=document.getElementById(l.getAttribute("data-opener")),n=o.querySelector("*[data-open-modal][aria-controls]"),i=l.getAttribute(v),(s="keydown"===e.type&&null!==l?l.querySelector(w):s)&&(s.hasAttribute(b)&&(null===this.getAttribute("id")?(t="modal-"+(Math.floor(9e5*Math.random())+1e5),this.setAttribute("id",t)):t=this.getAttribute("id"),l.setAttribute("data-opener",t)),s.closest("."+d))&&!s.hasAttribute(h)&&!s.closest(`[${h}]`)?(e.stopPropagation(),!1):(o.classList.toggle(E,c),l.classList.toggle("is-visible",c),l.classList.toggle(x,!c),i&&o.classList.toggle("usa-js-no-click",c),o.style.paddingRight=o.style.paddingRight===_?L:_,c&&r?(j.focusTrap=i?u(l):u(l,{Escape:S}),j.focusTrap.update(c),r.focus(),document.querySelectorAll(A).forEach(e=>{e.setAttribute("aria-hidden","true"),e.setAttribute(m,"")})):!c&&n&&a&&(document.querySelectorAll("[data-modal-hidden]").forEach(e=>{e.removeAttribute("aria-hidden"),e.removeAttribute(m)}),a.focus(),j.focusTrap.update(c)),c))}j={init(e){r(n,e).forEach(e=>{var t=e.id;{var s=e,r=document.createElement("div"),a=document.createElement("div");const u=e.getAttribute("id");var n=e.getAttribute("aria-labelledby"),i=e.getAttribute("aria-describedby"),o=!!e.hasAttribute(v)&&e.hasAttribute(v),c=document.createElement("div");c.setAttribute("data-placeholder-for",u),c.style.display="none",c.setAttribute("aria-hidden","true");for(let e=0;e<s.attributes.length;e+=1){var l=s.attributes[e];c.setAttribute("data-original-"+l.name,l.value)}s.after(c),s.parentNode.insertBefore(r,s),r.appendChild(s),s.parentNode.insertBefore(a,s),a.appendChild(s),r.classList.add(x),r.classList.add(f),a.classList.add(p),r.setAttribute("role","dialog"),r.setAttribute("id",u),n&&r.setAttribute("aria-labelledby",n),i&&r.setAttribute("aria-describedby",i),o&&r.setAttribute(v,"true"),e.removeAttribute("id"),e.removeAttribute("aria-labelledby"),e.removeAttribute("aria-describedby"),e.setAttribute("tabindex","-1"),r.querySelectorAll(y).forEach(e=>{e.setAttribute("aria-controls",u)}),document.body.appendChild(r)}document.querySelectorAll(`[aria-controls="${t}"]`).forEach(e=>{"A"===e.nodeName&&(e.setAttribute("role","button"),e.addEventListener("click",e=>e.preventDefault())),e.addEventListener("click",C)})})},teardown(e){r(n,e).forEach(e=>{var t=e,s=t,r=(t=s.parentElement.parentElement).getAttribute("id"),a=document.querySelector(`[data-placeholder-for="${r}"]`);if(a){for(let e=0;e<a.attributes.length;e+=1){var n=a.attributes[e];n.name.startsWith("data-original-")&&s.setAttribute(n.name.substr(14),n.value)}a.after(s),a.parentElement.removeChild(a)}t.parentElement.removeChild(t);r=e.id;document.querySelectorAll(`[aria-controls="${r}"]`).forEach(e=>e.removeEventListener("click",C))})},focusTrap:null,toggleModal:C,on(e){this.init(e)},off(e){this.teardown(e)}},t.exports=j},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/scrollbar-width":51,"../../uswds-core/src/js/utils/select-or-matches":52}],29:[function(e,t,s){"use strict";const a=e("receptor/ignore");var r=e("../../uswds-core/src/js/utils/behavior");const n=e("../../uswds-core/src/js/utils/select"),i=e("../../uswds-core/src/js/events")["CLICK"],o=".js-search-button",c=".js-search-form",l="[type=search]",u="header";let d;const p=e=>{e=e.closest(u);return(e||document).querySelector(c)},f=(e,t)=>{var s=p(e);if(!s)throw new Error(`No ${c} found for search toggle in ${u}!`);if(e.hidden=t,s.hidden=!t,t){e=s.querySelector(l);e&&e.focus();const r=a(s,()=>{d&&!function(){f(this,!1),d=void 0}.call(d),document.body.removeEventListener(i,r)});setTimeout(()=>{document.body.addEventListener(i,r)},0)}};e=r({[i]:{".js-search-button":function(){f(this,!0),d=this}}},{init(e){n(o,e).forEach(e=>{f(e,!1)})},teardown(){d=void 0}});t.exports=e},{"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select":53,"receptor/ignore":9}],30:[function(e,t,s){"use strict";const r=e("receptor/once");var a=e("../../uswds-core/src/js/utils/behavior"),n=e("../../uswds-core/src/js/events")["CLICK"],e=e("../../uswds-core/src/js/config")["prefix"];t.exports=a({[n]:{[`.${e}-skipnav[href^="#"], .${e}-footer__return-to-top [href^="#"]`]:function(){var e=encodeURI(this.getAttribute("href"));const t=document.getElementById("#"===e?"main-content":e.slice(1));t&&(t.style.outline="0",t.setAttribute("tabindex",0),t.focus(),t.addEventListener("blur",r(()=>{t.setAttribute("tabindex",-1)})))}}})},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"receptor/once":12}],31:[function(e,t,s){"use strict";const o=e("../../uswds-core/src/js/utils/select");var r=e("../../uswds-core/src/js/utils/behavior"),a=e("../../uswds-core/src/js/events")["CLICK"];const n=e("../../uswds-core/src/js/config")["prefix"],i=e("../../uswds-core/src/js/utils/sanitizer"),c=`.${n}-table`,l="aria-sort",u="ascending",d="descending",p=n+"-table__header__button",f="."+p,b="th[data-sortable]",h=`.${n}-table__announcement-region[aria-live="polite"]`,v=(e,t)=>e.children[t].getAttribute("data-sort-value")||e.children[t].innerText||e.children[t].textContent,m=(r,a)=>(e,t)=>{var s=v(a?e:t,r),t=v(a?t:e,r);return s&&t&&!Number.isNaN(Number(s))&&!Number.isNaN(Number(t))?s-t:s.toString().localeCompare(t,navigator.language,{numeric:!0,ignorePunctuation:!0})},g=e=>{var t=e.innerText,s=e.getAttribute(l)===u,r=t+"', sortable column, currently "+(e.getAttribute(l)===u||e.getAttribute(l)===d||!1?s?"sorted "+u:"sorted "+d:"unsorted"),t=`Click to sort by ${t} in ${s?d:u} order.`;e.setAttribute("aria-label",r),e.querySelector(f).setAttribute("title",t)},w=(t,e)=>{var s,r=t.closest(c);let a=e;if("boolean"!=typeof a&&(a=t.getAttribute(l)===u),!r)throw new Error(b+" is missing outer "+c);if(a=((e,t)=>{e.setAttribute(l,!0===t?d:u),g(e);const s=e.closest(c).querySelector("tbody");var r=[].slice.call(s.querySelectorAll("tr"));const a=[].slice.call(e.parentNode.children).indexOf(e);return r.sort(m(a,!t)).forEach(e=>{[].slice.call(e.children).forEach(e=>e.removeAttribute("data-sort-active")),e.children[a].setAttribute("data-sort-active",!0),s.appendChild(e)}),!0})(t,e)){s=r,o(b,s).filter(e=>e.closest(c)===s).forEach(e=>{e!==t&&((e=e).removeAttribute(l),g(e))});var e=r,r=t,n=e.querySelector("caption").innerText,i=r.getAttribute(l)===u,r=r.innerText;if(!(e=e.nextElementSibling)||!e.matches(h))throw new Error("Table containing a sortable column header is not followed by an aria-live region.");n=`The table named "${n}" is now sorted by ${r} in ${i?u:d} order.`,e.innerText=n}};e=r({[a]:{[f](e){e.preventDefault(),w(e.target.closest(b),e.target.closest(b).getAttribute(l)===u)}}},{init(e){var t,e=o(b,e),e=(e.forEach(e=>{return e=e,(t=document.createElement("button")).setAttribute("tabindex","0"),t.classList.add(p),t.innerHTML=i.escapeHTML`
  <svg class="${n}-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <g class="descending" fill="transparent">
      <path d="M17 17L15.59 15.59L12.9999 18.17V2H10.9999V18.17L8.41 15.58L7 17L11.9999 22L17 17Z" />
    </g>
    <g class="ascending" fill="transparent">
      <path transform="rotate(180, 12, 12)" d="M17 17L15.59 15.59L12.9999 18.17V2H10.9999V18.17L8.41 15.58L7 17L11.9999 22L17 17Z" />
    </g>
    <g class="unsorted" fill="transparent">
      <polygon points="15.17 15 13 17.17 13 6.83 15.17 9 16.58 7.59 12 3 7.41 7.59 8.83 9 11 6.83 11 17.17 8.83 15 7.42 16.41 12 21 16.59 16.41 15.17 15"/>
    </g>
  </svg>
  `,e.appendChild(t),void g(e);var t}),e.filter(e=>e.getAttribute(l)===u||e.getAttribute(l)===d)[0]);void 0!==e&&((t=e.getAttribute(l))===u?w(e,!0):t===d&&w(e,!1))},TABLE:c,SORTABLE_HEADER:b,SORT_BUTTON:f});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/events":36,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/sanitizer":50,"../../uswds-core/src/js/utils/select":53}],32:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/select-or-matches");var n=e("../../uswds-core/src/js/config")["prefix"];const{COMBO_BOX_CLASS:b,enhanceComboBox:i}=e("../../usa-combo-box/src/index"),h="."+(n+"-time-picker"),v={filter:"0?{{ hourQueryFilter }}:{{minuteQueryFilter}}.*{{ apQueryFilter }}m?",apQueryFilter:"([ap])",hourQueryFilter:"([1-9][0-2]?)",minuteQueryFilter:"[\\d]+:([0-9]{0,2})"},m=e=>{let t;var s;return t=e&&([e,s]=e.split(":").map(e=>{let t;e=parseInt(e,10);return t=Number.isNaN(e)?t:e}),null!=e)&&null!=s?60*e+s:t},o=t=>{const s=t.closest(h),r=s.querySelector("input");if(!r)throw new Error(h+" is missing inner input");const a=document.createElement("select");["id","name","required","aria-label","aria-labelledby"].forEach(e=>{var t;r.hasAttribute(e)&&(t=r.getAttribute(e),a.setAttribute(e,t),r.removeAttribute(e))});var n=(e,t)=>("0000"+e).slice(-t),t=Math.max(0,m(s.dataset.minTime)||0),i=Math.min(1439,m(s.dataset.maxTime)||1439),o=Math.floor(Math.max(1,s.dataset.step||30));let c;for(let e=t;e<=i;e+=o){u=e,l=void 0,l=u%60,u=Math.floor(u/60);var{minute:l,hour24:u,hour12:d,ampm:p}={minute:l,hour24:u,hour12:u%12||12,ampm:u<12?"am":"pm"},f=document.createElement("option");f.value=n(u,2)+":"+n(l,2),f.text=d+":"+n(l,2)+p,f.text===r.value&&(c=f.value),a.appendChild(f)}s.classList.add(b),Object.keys(v).forEach(e=>{s.dataset[e]=v[e]}),s.dataset.disableFiltering="true",s.dataset.defaultValue=c,s.appendChild(a),r.remove()};e=r({},{init(e){a(h,e).forEach(e=>{o(e),i(e)})},FILTER_DATASET:v});t.exports=e},{"../../usa-combo-box/src/index":18,"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select-or-matches":52}],33:[function(e,t,s){"use strict";const r=e("../../uswds-core/src/js/utils/select-or-matches");var a=e("../../uswds-core/src/js/utils/behavior"),n=e("../../uswds-core/src/js/config")["prefix"];const f=e("../../uswds-core/src/js/utils/is-in-viewport"),i=`.${n}-tooltip`;e=`.${n}-tooltip__trigger`;const o=n+"-tooltip__trigger",c=n+"-tooltip",b=n+"-tooltip__body",h="is-visible",v=n+"-tooltip__body--wrap",l=e=>{var t=e.parentNode,s=t.querySelector("."+b);return{trigger:e,wrapper:t,body:s}},u=(t,r,e)=>{t.setAttribute("aria-hidden","false"),t.classList.add("is-set");const a=e=>{t.classList.remove(b+"--top"),t.classList.remove(b+"--bottom"),t.classList.remove(b+"--right"),t.classList.remove(b+"--left"),t.classList.add(b+"--"+e)},n=e=>{e.style.top=null,e.style.bottom=null,e.style.right=null,e.style.left=null,e.style.margin=null},i=(e,t)=>parseInt(window.getComputedStyle(e).getPropertyValue(t),10),o=(e,t,s)=>{return 0<i(s,"margin-"+e)?t-i(s,"margin-"+e):t},c=e=>{n(e);var t=o("top",e.offsetHeight,r),s=o("left",e.offsetWidth,r);a("top"),e.style.left="50%",e.style.top="-5px",e.style.margin=`-${t}px 0 0 -${s/2}px`},l=e=>{n(e);var t=o("left",e.offsetWidth,r);a("bottom"),e.style.left="50%",e.style.margin=`5px 0 0 -${t/2}px`},u=e=>{n(e);var t=o("top",e.offsetHeight,r);a("right"),e.style.top="50%",e.style.left=r.offsetLeft+r.offsetWidth+5+"px",e.style.margin=`-${t/2}px 0 0 0`},d=e=>{n(e);var t=o("top",e.offsetHeight,r),s=o("left",r.offsetLeft>e.offsetWidth?r.offsetLeft-e.offsetWidth:e.offsetWidth,r);a("left"),e.style.top="50%",e.style.left="-5px",e.style.margin=`-${t/2}px 0 0 ${r.offsetLeft>e.offsetWidth?s:-s}px`};function p(s,e){e=1<arguments.length&&void 0!==e?e:1;const r=[c,l,u,d];let a=!1;!function e(t){t<r.length&&((0,r[t])(s),f(s)?a=!0:e(t+=1))}(0),a||(s.classList.add(v),e<=2&&p(s,e+=1))}switch(e){case"top":c(t),f(t)||p(t);break;case"bottom":l(t),f(t)||p(t);break;case"right":u(t),f(t)||p(t);break;case"left":d(t),f(t)||p(t)}setTimeout(()=>{t.classList.add(h)},20)},d=e=>{e.classList.remove(h),e.classList.remove("is-set"),e.classList.remove(v),e.setAttribute("aria-hidden","true")},p=e=>{var t="tooltip-"+(Math.floor(9e5*Math.random())+1e5),s=e.getAttribute("title");const r=document.createElement("span");var a=document.createElement("span"),n=e.getAttribute("data-position")?e.getAttribute("data-position"):"top",i=e.getAttribute("data-classes");return e.setAttribute("aria-describedby",t),e.setAttribute("tabindex","0"),e.removeAttribute("title"),e.classList.remove(c),e.classList.add(o),e.parentNode.insertBefore(r,e),r.appendChild(e),r.classList.add(c),r.appendChild(a),i&&i.split(" ").forEach(e=>r.classList.add(e)),a.classList.add(b),a.setAttribute("id",t),a.setAttribute("role","tooltip"),a.setAttribute("aria-hidden","true"),a.textContent=s,{tooltipBody:a,position:n,tooltipContent:s,wrapper:r}};n=a({"mouseover focusin":{[i](e){e=e.target;"BUTTON"===e.nodeName&&e.hasAttribute("title")&&p(e)},[e](e){var{trigger:e,body:t}=l(e.target);u(t,e,e.dataset.position)}},"mouseout focusout":{[e](e){e=l(e.target).body;d(e)}}},{init(e){r(i,e).forEach(e=>{p(e)})},setup:p,getTooltipElements:l,show:u,hide:d});t.exports=n},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-in-viewport":48,"../../uswds-core/src/js/utils/select-or-matches":52}],34:[function(e,t,s){"use strict";var r=e("../../uswds-core/src/js/utils/behavior");const a=e("../../uswds-core/src/js/utils/validate-input");var n=e("../../uswds-core/src/js/config")["prefix"];const i=e("../../uswds-core/src/js/utils/select-or-matches"),o="input[data-validation-element]",c=`.${n}-checklist__item`,l=e=>{var t,r,s,a;a=(t=e).parentNode,s=t.getAttribute("id")+"-sr-summary",t.setAttribute("aria-describedby",s),(t=document.createElement("span")).setAttribute("data-validation-status",""),t.classList.add("usa-sr-only"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic",!0),t.setAttribute("id",s),a.append(t),s=(r=e).parentNode.querySelectorAll(c),a=r.getAttribute("data-validation-element"),r.setAttribute("aria-controls",a),s.forEach(e=>{let t="status incomplete";r.hasAttribute("data-validation-incomplete")&&(t=r.getAttribute("data-validation-incomplete"));var s=`${e.textContent} ${t} `;e.setAttribute("tabindex","0"),e.setAttribute("aria-label",s)})};e=r({"input change":{"input[data-validation-element]"(e){e=e.target,a(e)}}},{init(e){i(o,e).forEach(e=>l(e))}});t.exports=e},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/select-or-matches":52,"../../uswds-core/src/js/utils/validate-input":57}],35:[function(e,t,s){"use strict";t.exports={prefix:"usa"}},{}],36:[function(e,t,s){"use strict";t.exports={CLICK:"click"}},{}],37:[function(e,t,s){"use strict";var r=e("../../../usa-accordion/src/index"),a=e("../../../usa-banner/src/index"),n=e("../../../usa-character-count/src/index"),i=e("../../../usa-combo-box/src/index"),o=e("../../../usa-date-picker/src/index"),c=e("../../../usa-date-range-picker/src/index"),l=e("../../../usa-file-input/src/index"),u=e("../../../usa-footer/src/index"),d=e("../../../usa-in-page-navigation/src/index"),p=e("../../../usa-input-mask/src/index"),f=e("../../../usa-input-prefix-suffix/src/index"),b=e("../../../usa-language-selector/src/index"),h=e("../../../usa-modal/src/index"),v=e("../../../usa-header/src/index"),m=e("../../../_usa-password/src/index"),g=e("../../../usa-search/src/index"),w=e("../../../usa-skipnav/src/index"),y=e("../../../usa-table/src/index"),A=e("../../../usa-time-picker/src/index"),E=e("../../../usa-tooltip/src/index"),e=e("../../../usa-validation/src/index");t.exports={accordion:r,banner:a,characterCount:n,comboBox:i,datePicker:o,dateRangePicker:c,fileInput:l,footer:u,inPageNavigation:d,inputMask:p,inputPrefixSuffix:f,languageSelector:b,modal:h,navigation:v,password:m,search:g,skipnav:w,table:y,timePicker:A,tooltip:E,validator:e}},{"../../../_usa-password/src/index":14,"../../../usa-accordion/src/index":15,"../../../usa-banner/src/index":16,"../../../usa-character-count/src/index":17,"../../../usa-combo-box/src/index":18,"../../../usa-date-picker/src/index":19,"../../../usa-date-range-picker/src/index":20,"../../../usa-file-input/src/index":21,"../../../usa-footer/src/index":22,"../../../usa-header/src/index":23,"../../../usa-in-page-navigation/src/index":24,"../../../usa-input-mask/src/index":25,"../../../usa-input-prefix-suffix/src/index":26,"../../../usa-language-selector/src/index":27,"../../../usa-modal/src/index":28,"../../../usa-search/src/index":29,"../../../usa-skipnav/src/index":30,"../../../usa-table/src/index":31,"../../../usa-time-picker/src/index":32,"../../../usa-tooltip/src/index":33,"../../../usa-validation/src/index":34}],38:[function(e,t,s){"use strict";"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){var t=t||{bubbles:!1,cancelable:!1,detail:null},s=document.createEvent("CustomEvent");return s.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),s})},{}],39:[function(e,t,s){"use strict";var r=window.HTMLElement.prototype;const a="hidden";a in r||Object.defineProperty(r,a,{get(){return this.hasAttribute(a)},set(e){e?this.setAttribute(a,""):this.removeAttribute(a)}})},{}],40:[function(e,t,s){"use strict";e("classlist-polyfill"),e("./element-hidden"),e("./number-is-nan"),e("./custom-event"),e("./svg4everybody")},{"./custom-event":38,"./element-hidden":39,"./number-is-nan":41,"./svg4everybody":42,"classlist-polyfill":1}],41:[function(e,t,s){"use strict";Number.isNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e}},{}],42:[function(e,t,s){"use strict";function b(e,t,s,r){if(s){var a=document.createDocumentFragment(),n=!t.hasAttribute("viewBox")&&s.getAttribute("viewBox");n&&t.setAttribute("viewBox",n);for(var i=document.importNode?document.importNode(s,!0):s.cloneNode(!0),o=document.createElementNS(t.namespaceURI||"http://www.w3.org/2000/svg","g");i.childNodes.length;)o.appendChild(i.firstChild);if(r)for(var c=0;r.attributes.length>c;c++){var l=r.attributes[c];"xlink:href"!==l.name&&"href"!==l.name&&o.setAttribute(l.name,l.value)}a.appendChild(o),e.appendChild(a)}}t.exports=function(e){var c,l=Object(e),e=window.top!==window.self,u=(c="polyfill"in l?l.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&e,{}),d=window.requestAnimationFrame||setTimeout,p=document.getElementsByTagName("use"),f=0;c&&function e(){if(!(f&&p.length-f<=0))for(var t=f=0;t<p.length;){var s,r,a=p[t],n=a.parentNode,i=function(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}(n),o=a.getAttribute("xlink:href")||a.getAttribute("href");!o&&l.attributeName&&(o=a.getAttribute(l.attributeName)),i&&o?c&&(!l.validate||l.validate(o,i,a)?(n.removeChild(a),s=(o=o.split("#")).shift(),o=o.join("#"),s.length?((r=u[s])||((r=u[s]=new XMLHttpRequest).open("GET",s),r.send(),r._embeds=[]),r._embeds.push({parent:n,svg:i,id:o}),function(r,a){r.onreadystatechange=function(){var s;4===r.readyState&&((s=r._cachedDocument)||((s=r._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=r.responseText,s.domain!==document.domain&&(s.domain=document.domain),r._cachedTarget={}),r._embeds.splice(0).map(function(e){var t=(t=r._cachedTarget[e.id])||(r._cachedTarget[e.id]=s.getElementById(e.id));b(e.parent,e.svg,t,a)}))},r.onreadystatechange()}(r,a)):b(n,i,document.getElementById(o),a)):(++t,++f)):++t}d(e,67)}()}},{}],43:[function(e,t,s){"use strict";window.uswdsPresent=!0,e("./polyfills");var r=e("./config");const a=e("./index"),n=e("./polyfills/svg4everybody");r.components=a;e=()=>{const t=document.body;Object.keys(a).forEach(e=>{a[e].on(t)}),n()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e,{once:!0}):e(),s.default=r,s.initComponents=e},{"./config":35,"./index":37,"./polyfills":40,"./polyfills/svg4everybody":42}],44:[function(e,t,s){"use strict";t.exports=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:document).activeElement}},{}],45:[function(e,t,s){"use strict";function r(){for(var e=arguments.length,s=new Array(e),t=0;t<e;t++)s[t]=arguments[t];return function(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.body;s.forEach(e=>{"function"==typeof this[e]&&this[e].call(this,t)})}}const a=e("object-assign"),n=e("receptor/behavior");t.exports=(e,t)=>n(e,a({on:r("init","add"),off:r("teardown","remove")},t))},{"object-assign":4,"receptor/behavior":5}],46:[function(e,t,s){"use strict";t.exports=function(r){var a=this;let n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500,i=null;return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];window.clearTimeout(i),i=window.setTimeout(()=>{r.apply(a,t)},n)}}},{}],47:[function(e,t,s){"use strict";const a=e("object-assign"),n=e("receptor")["keymap"],i=e("./behavior"),o=e("./select"),c=e("./active-element"),l=e=>{const t=o('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',e),s=t[0],r=t[t.length-1];return{firstTabStop:s,lastTabStop:r,tabAhead:function(e){c()===r&&(e.preventDefault(),s.focus())},tabBack:function(e){c()===s?(e.preventDefault(),r.focus()):t.includes(c())||(e.preventDefault(),s.focus())}}};t.exports=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};const s=l(e);var{Esc:e,Escape:r}=t,e=(r&&!e&&(t.Esc=r),n(a({Tab:s.tabAhead,"Shift+Tab":s.tabBack},t)));return i({keydown:e},{init(){s.firstTabStop&&s.firstTabStop.focus()},update(e){e?this.on():this.off()}})}},{"./active-element":44,"./behavior":45,"./select":53,"object-assign":4,receptor:10}],48:[function(e,t,s){"use strict";t.exports=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.documentElement,e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(t.innerHeight||s.clientHeight)&&e.right<=(t.innerWidth||s.clientWidth)}},{}],49:[function(e,t,s){"use strict";t.exports=function(){return"undefined"!=typeof navigator&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!window.MSStream}},{}],50:[function(e,t,s){"use strict";t.exports=function(){"use strict";var n={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return n._entities[e]},escapeHTML:function(e){var t="";for(var s=0;s<e.length;s++){t+=e[s];if(s+1<arguments.length){var r=arguments[s+1]||"";t+=String(r).replace(n._entity,n.getEntity)}}return t},createSafeHTML:function(e){var t=arguments.length;var s=new Array(t>1?t-1:0);for(var r=1;r<t;r++)s[r-1]=arguments[r];var a=n.escapeHTML.apply(n,[e].concat(s));return{__html:a,toString:function(){return"[object WrappedHTMLObject]"},info:"This is a wrapped HTML object. See https://developer.mozilla.or"+"g/en-US/Firefox_OS/Security/Security_Automation for more."}},unwrapSafeHTML:function(){var e=arguments.length;var t=new Array(e);for(var s=0;s<e;s++)t[s]=arguments[s];var r=t.map(function(e){return e.__html});return r.join("")}};return n}()},{}],51:[function(e,t,s){"use strict";t.exports=function(){var e=document.createElement("div"),t=(e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e),document.createElement("div")),t=(e.appendChild(t),e.offsetWidth-t.offsetWidth+"px");return e.parentNode.removeChild(e),t}},{}],52:[function(e,t,s){"use strict";const a=e("./select");t.exports=(e,t)=>{var s,r=a(e,t);return"string"==typeof e&&(s=t)&&"object"==typeof s&&1===s.nodeType&&t.matches(e)&&r.push(t),r}},{"./select":53}],53:[function(e,t,s){"use strict";t.exports=(e,t)=>{var s;return"string"!=typeof e?[]:(s=(t=t&&(s=t)&&"object"==typeof s&&1===s.nodeType?t:window.document).querySelectorAll(e),Array.prototype.slice.call(s))}},{}],54:[function(e,t,s){"use strict";t.exports=(e,t)=>{e.setAttribute("autocapitalize","off"),e.setAttribute("autocorrect","off"),e.setAttribute("type",t?"password":"text")}},{}],55:[function(e,t,s){"use strict";const a=e("resolve-id-refs"),n=e("./toggle-field-mask"),i="aria-pressed",o="data-show-text";t.exports=e=>{const t=e.hasAttribute(i)&&"true"!==e.getAttribute(i);a(e.getAttribute("aria-controls")).forEach(e=>n(e,t)),e.hasAttribute(o)||e.setAttribute(o,e.textContent);var s=e.getAttribute(o),r=e.getAttribute("data-hide-text")||s.replace(/\bShow\b/i,e=>`${"S"===e[0]?"H":"h"}ide`);return e.textContent=t?s:r,e.setAttribute(i,t),t}},{"./toggle-field-mask":54,"resolve-id-refs":13}],56:[function(e,t,s){"use strict";const r="aria-expanded";t.exports=(e,t)=>{let s=t;"boolean"!=typeof s&&(s="false"===e.getAttribute(r)),e.setAttribute(r,s);t=e.getAttribute("aria-controls"),e=document.getElementById(t);if(e)return s?e.removeAttribute("hidden"):e.setAttribute("hidden",""),s;throw new Error(`No toggle target found with id: "${t}"`)}},{}],57:[function(e,t,s){"use strict";const c=e("./debounce");e=e("../config").prefix;const l=e+"-checklist__item--checked";t.exports=function(n){var e=n.dataset.validationElement;const i="#"===e.charAt(0)?document.querySelector(e):document.getElementById(e);if(!i)throw new Error(`No validation element found with id: "${e}"`);let o="";Object.entries(n.dataset).forEach(t=>{var[t,s]=t;if(t.startsWith("validate")){var t=t.substr("validate".length).toLowerCase(),s=new RegExp(s),r=`[data-validator="${t}"]`,r=i.querySelector(r);const a=n.parentNode.querySelector("[data-validation-status]");s=s.test(n.value);if(r.classList.toggle(l,s),!r)throw new Error(`No validator checkbox found for: "${t}"`);s=n.dataset.validationComplete||"status complete",t=n.dataset.validationIncomplete||"status incomplete";let e=r.textContent+" ";r.classList.contains(l)?e+=s:e+=t,r.setAttribute("aria-label",e),o+=e+". ",c(()=>{a.textContent=o},1e3)()}})}},{"../config":35,"./debounce":46}]},{},[43]);
//# sourceMappingURL=uswds.min.js.map