@cfpb/cfpb-design-system 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +75 -52
  2. package/dist/base/index.css +1 -1
  3. package/dist/base/index.css.map +2 -2
  4. package/dist/base/index.js +1 -1
  5. package/dist/base/index.js.map +1 -1
  6. package/dist/components/cfpb-buttons/index.css +1 -1
  7. package/dist/components/cfpb-buttons/index.css.map +2 -2
  8. package/dist/components/cfpb-buttons/index.js +1 -1
  9. package/dist/components/cfpb-buttons/index.js.map +1 -1
  10. package/dist/components/cfpb-expandables/index.css +1 -1
  11. package/dist/components/cfpb-expandables/index.css.map +2 -2
  12. package/dist/components/cfpb-expandables/index.js +1 -1
  13. package/dist/components/cfpb-expandables/index.js.map +1 -1
  14. package/dist/components/cfpb-forms/index.css +1 -1
  15. package/dist/components/cfpb-forms/index.css.map +2 -2
  16. package/dist/components/cfpb-forms/index.js +1 -1
  17. package/dist/components/cfpb-forms/index.js.map +1 -1
  18. package/dist/components/cfpb-icons/index.css +1 -1
  19. package/dist/components/cfpb-icons/index.css.map +2 -2
  20. package/dist/components/cfpb-icons/index.js +1 -1
  21. package/dist/components/cfpb-icons/index.js.map +1 -1
  22. package/dist/components/cfpb-layout/index.css +1 -1
  23. package/dist/components/cfpb-layout/index.css.map +2 -2
  24. package/dist/components/cfpb-layout/index.js +1 -1
  25. package/dist/components/cfpb-layout/index.js.map +1 -1
  26. package/dist/components/cfpb-notifications/index.css +1 -1
  27. package/dist/components/cfpb-notifications/index.css.map +2 -2
  28. package/dist/components/cfpb-notifications/index.js +1 -1
  29. package/dist/components/cfpb-notifications/index.js.map +1 -1
  30. package/dist/components/cfpb-pagination/index.css +1 -1
  31. package/dist/components/cfpb-pagination/index.css.map +2 -2
  32. package/dist/components/cfpb-pagination/index.js +1 -1
  33. package/dist/components/cfpb-pagination/index.js.map +1 -1
  34. package/dist/components/cfpb-tables/index.css +1 -1
  35. package/dist/components/cfpb-tables/index.css.map +2 -2
  36. package/dist/components/cfpb-tables/index.js +1 -1
  37. package/dist/components/cfpb-tables/index.js.map +1 -1
  38. package/dist/components/cfpb-tooltips/index.css +1 -1
  39. package/dist/components/cfpb-tooltips/index.css.map +2 -2
  40. package/dist/components/cfpb-tooltips/index.js +1 -1
  41. package/dist/components/cfpb-tooltips/index.js.map +1 -1
  42. package/dist/components/cfpb-typography/index.css +1 -1
  43. package/dist/components/cfpb-typography/index.css.map +2 -2
  44. package/dist/components/cfpb-typography/index.js +1 -1
  45. package/dist/components/cfpb-typography/index.js.map +1 -1
  46. package/dist/index.css +1 -1
  47. package/dist/index.css.map +2 -2
  48. package/dist/index.js +1 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/utilities/index.css +1 -1
  51. package/dist/utilities/index.css.map +2 -2
  52. package/dist/utilities/index.js +1 -1
  53. package/dist/utilities/index.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/abstracts/vars.scss +40 -37
  56. package/src/components/cfpb-forms/form-alert.scss +8 -6
  57. package/src/components/cfpb-forms/form-field.scss +70 -154
  58. package/src/components/cfpb-forms/multiselect.scss +1 -1
  59. package/src/components/cfpb-forms/text-input.scss +34 -98
  60. package/src/utilities/utilities.scss +15 -0
@@ -1,2 +1,2 @@
1
- (()=>{var mt=Object.defineProperty;var dt=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var ct=(e,t,a)=>t in e?mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,we=(e,t)=>{for(var a in t||(t={}))jt.call(t,a)&&ct(e,a,t[a]);if(dt)for(var a of dt(t))Tt.call(t,a)&&ct(e,a,t[a]);return e};var g=(e,t)=>{for(var a in t)mt(e,a,{get:t[a],enumerable:!0})};var ke={};g(ke,{default:()=>zt});var zt={};var se={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function le(){let e=getComputedStyle(document.body).fontSize;return e=e===""?-1:e,parseFloat(e)}function It(e,t){let a=e.min,i=e.max;le()>0&&le()!==16&&(a=a/16*le(),i=i/16*le());let r=a||0,s=i||Number.POSITIVE_INFINITY;return r<=t&&t<=s}function Bt(e){let t={};e=e||window.innerWidth;let a;for(a in se)t[a]=It(se[a],e);return t}var de="mobile",Mt="tablet",Nt="desktop";function Se(e){let t=!1,a=Bt();return(e===de&&a.bpXS||e===Mt&&a.bpSM||e===Nt&&(a.bpMED||a.bpLG||a.bpXL))&&(t=!0),t}var I="data-js-hook",Z="behavior_",Ee="state_";function D(){let e={};function t(o,r){return{}.hasOwnProperty.call(e,o)?e[o].push(r):e[o]=[r],this}function a(o,r){if(!{}.hasOwnProperty.call(e,o))return this;let s=e[o].indexOf(r);return s!==-1&&e[o].splice(s,1),this}function i(o,r){if(!{}.hasOwnProperty.call(e,o))return this;r=r||{};let s=e[o];for(let d=0,c=s.length;d<c;d++)s[d].call(this,r);return this}return this.addEventListener=t,this.removeEventListener=a,this.dispatchEvent=i,this.getRegisteredEvents=()=>e,this}function Y(e,t){if(!e)return!1;let a=e.getAttribute(I);return a?(a=a.split(" "),a.indexOf(t)>-1):!1}function A(e,t){if(Y(e,t))return t;if(t.indexOf(" ")!==-1){let i=I+" values cannot contain spaces!";throw new Error(i)}let a=e.getAttribute(I);return a!==null&&(t=a+" "+t),e.setAttribute(I,t),t}var Le=Ee+"atomic_init";function qt(e,t){if(!e||!e.classList){let a=e+' is not valid. Check that element is a DOM node with class "'+t+'"';throw new Error(a)}return e}function Ct(e,t){let a=e.classList.contains(t)?e:e.querySelector("."+t);if(!a){let i=t+" not found on or in passed DOM node.";throw new Error(i)}return a}function q(e,t){return qt(e,t),Ct(e,t)}function M(e){return Y(e,Le)?!1:(A(e,Le),!0)}function C(e,t,a,i={}){let r=(a||document).querySelectorAll(e),s=[],d,c;for(let p=0,m=r.length;p<m;p++)c=r[p],Y(c,Le)===!1&&(d=new t(c),d.init(i),s.push(d));return s}var De={};g(De,{default:()=>Ft});var Ft={};var Ae={};g(Ae,{default:()=>Vt});var Vt={};var je={};g(je,{default:()=>Rt});var Rt={};var Te={};g(Te,{default:()=>Pt});var Pt={};var Oe={};g(Oe,{default:()=>Kt});var Kt={};var Q="o-expandable";function P(e){let t=q(e,Q),a,i,o,r,s;function d(){if(!M(t))return this;a=t.querySelector(`.${Q}__header`),i=t.querySelector(`.${Q}__content`),o=t.querySelector(`.${Q}__label`);let m=t.classList.contains(`${Q}--onload-open`);A(t,"behavior_flyout-menu"),A(a,"behavior_flyout-menu_trigger"),A(i,"behavior_flyout-menu_content");let f=m?B.CLASSES.MH_DEFAULT:B.CLASSES.MH_ZERO;return r=new B(i).init(f),s=new X(t),s.setTransition(r,r.maxHeightZero,r.maxHeightDefault),s.init(m),s.addEventListener("expandbegin",()=>{i.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),s.addEventListener("collapseend",()=>{i.classList.add("u-hidden")}),this}function c(){return o.textContent.trim()}this.init=d,this.expand=()=>s.expand(),this.collapse=()=>s.collapse(),this.isExpanded=()=>s.isExpanded(),this.refresh=()=>s.getTransition().refresh(),this.getLabelText=c;let p=new D;return this.addEventListener=p.addEventListener,this.removeEventListener=p.removeEventListener,this.dispatchEvent=p.dispatchEvent,this}P.BASE_CLASS=Q;P.init=e=>C(`.${P.BASE_CLASS}`,P,e);var ce="o-expandable-group";function me(e){let t=q(e,ce),a=t.classList.contains(`${ce}--accordion`),i,o;function r(d){let c=d.target;o&&o!==c&&o.collapse(),o=c}function s(d){return M(t)?(a&&(i=d,i.forEach(c=>{c.addEventListener("expandbegin",r)})),this):this}return this.init=s,this}me.BASE_CLASS=ce;me.init=e=>{(e||document).querySelectorAll(`.${ce}`).forEach(i=>{let o=C(`.${P.BASE_CLASS}`,P,i);new me(i).init(o)})};var ee="o-summary";function he(e){let t=q(e,ee),a=t.classList.contains(`${ee}--mobile`),i=t.querySelector(`.${ee}__content`),o=t.querySelector(`.${ee}__btn`),r,s,d;function c(){return M(t)?(window.addEventListener("load",p),this):this}function p(){window.removeEventListener("load",p),d=!x(),A(t,"behavior_flyout-menu"),A(i,"behavior_flyout-menu_content"),A(o,"behavior_flyout-menu_trigger"),s=new X(t,!1),r=new B(i),r.init(d?B.CLASSES.MH_SUMMARY:B.CLASSES.MH_DEFAULT),s.setTransition(r,r.maxHeightSummary,r.maxHeightDefault),s.addEventListener("triggerclick",j),s.init(),v(),window.addEventListener("resize",v),"onorientationchange"in window&&window.addEventListener("orientationchange",v),t.addEventListener("focusin",m),i.addEventListener("click",f)}function m(b){!d&&b.target!==o&&(o.click(),t.removeEventListener("focusin",m))}function f(b){b.target.tagName!=="A"&&s.isExpanded()&&r.refresh()}function v(){x()?G():H()}function x(){return a&&!Se(de)||i.scrollHeight<=88}function j(){s.addEventListener("expandend",S)}function S(){T(),window.removeEventListener("resize",v),window.removeEventListener("orientationchange",v),s.removeEventListener("expandend",S),s.suspend(),r.remove()}function E(){o.classList.remove("u-hidden")}function T(){o.classList.add("u-hidden")}function H(){return d&&(s.collapse(),r.animateOn(),E(),d=!1),!d}function G(){return d||(r.animateOff(),s.expand(),T(),d=!0),d}let z=new D;return this.addEventListener=z.addEventListener,this.removeEventListener=z.removeEventListener,this.dispatchEvent=z.dispatchEvent,this.init=c,this}he.BASE_CLASS=ee;he.init=e=>C(`.${ee}`,he,e);var te="o-summary-minimal";function pe(e){let t=q(e,te),a=t.querySelector(`.${te}__content`),i=t.querySelector(`.${te}__btn`),o,r;function s(){return M(t)?(A(t,"behavior_flyout-menu"),A(a,"behavior_flyout-menu_content"),A(i,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),r=new X(t,!1),o=new B(a),o.init(B.CLASSES.MH_SUMMARY),r.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),r.init(),t.addEventListener("focusin",c),a.addEventListener("click",p),r.collapse(),o.animateOn()}function c(f){f.target!==i&&(i.click(),t.removeEventListener("focusin",c))}function p(f){f.target.tagName!=="A"&&r.isExpanded()&&o.refresh()}let m=new D;return this.addEventListener=m.addEventListener,this.removeEventListener=m.removeEventListener,this.dispatchEvent=m.dispatchEvent,this.init=s,this}pe.BASE_CLASS=te;pe.init=e=>C(`.${te}`,pe,e);var ze={};g(ze,{default:()=>Wt});var Wt={};var Ie={};g(Ie,{default:()=>Qt});var Qt={};var Be={};g(Be,{default:()=>ta});var ta={};var Me={};g(Me,{default:()=>ra});var ra={};var Ne={};g(Ne,{default:()=>ia});var ia={};var qe={};g(qe,{default:()=>sa});var sa={};var Ce={};g(Ce,{default:()=>da});var da={};var $e={};g($e,{default:()=>ma});var ma={};var Fe={};g(Fe,{default:()=>pa});var pa={};var ua;function ba(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function ga(e,t){return RegExp(ba(t.trim()),"i").test(e)}function fa(e,t,a){let i=e,o=t,r=(a==null?void 0:a.maxSelections)||5,s=[],d=[],c=[],p=[],m=-1;function f(b){return o+"-"+b.value.trim().replace(/\s+/g,"-").toLowerCase()}function v(){return d.length>=r}function x(b){let w,L=[],y=!1;for(let O=0,N=b.length;O<N;O++)w=b[O],y=v()?!1:w.defaultSelected,L.push({id:f(w),value:w.value,text:w.text,checked:y}),y&&d.push(O);return L}function j(){return s=x(i),this}function S(b){return s[b].checked=!s[b].checked,d.length<r&&s[b].checked?(d.push(b),d.sort(),!0):(s[b].checked=!1,d=d.filter(function(w){return w!==b}),!1)}function E(b,w,L,y){return ga(w.text,y)&&b.push(L),b}function T(b){return Object.prototype.toString.call(b)!=="[object String]"&&(b=""),p=c,s.length>0&&(c=s.reduce(function(w,L,y){return E(w,L,y,b)},[])),m=-1,c}function H(b){return s[b]}function G(b){let w=c.length,L=w===0?s.length:w;b<0?m=-1:b>=L?m=L-1:m=b}function z(){return m}return this.init=j,this.toggleOption=S,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=v,this.filterIndices=T,this.clearFilter=function(){return c=p=[],ua},this.getFilterIndices=function(){return c},this.getLastFilterIndices=function(){return p},this.getIndex=z,this.setIndex=G,this.resetIndex=function(){return m=-1,m},this.getOption=H,this}var bt=fa;function $(e,t,a){let i=document.createElement(e);return Object.keys(a).forEach(o=>{let r=a[o];o in i?i[o]=r:i.setAttribute(o,r)}),t&&t.appendChild(i),i}var gt='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>';var wa=gt,F="o-multiselect",ka="a-checkbox",Sa="a-text-input",ft="prev",ue="next",He="Enter",Ea=" ",vt="Escape",La="ArrowUp",yt="ArrowDown",xt="Tab",_t={renderTags:!0,maxSelections:5};function be(e){e.classList.add(F);let t=q(e,F),a=!1,i,o,r,s,d,c,p,m,f,v,x,j=[],S;function E(){x.classList.remove("u-no-results"),x.classList.add("u-filtered");let n=r.getLastFilterIndices();for(let l=0,h=n.length;l<h;l++)j[n[l]].classList.remove("u-filter-match");n=r.getFilterIndices();for(let l=0,h=n.length;l<h;l++)j[n[l]].classList.add("u-filter-match")}function T(){x.classList.remove("u-filtered","u-no-results");for(let n=0,l=x.children.length;n<l;n++)x.children[n].classList.remove("u-filter-match");r.clearFilter()}function H(){x.classList.add("u-no-results"),x.classList.remove("u-filtered")}function G(n){return n.length>0?(E(),!0):(H(),!1)}function z(n){T(),r.resetIndex();let l=r.filterIndices(n);G(l)}function b(){return c.classList.add("u-active"),v.classList.remove("u-invisible"),v.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return c.classList.remove("u-active"),v.classList.add("u-invisible"),v.setAttribute("aria-hidden",!0),r.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function L(n){n===ue?r.setIndex(r.getIndex()+1):n===ft&&r.setIndex(r.getIndex()-1);let l=r.getIndex();if(l>-1){let h=l,u=r.getFilterIndices();u.length>0&&(h=u[l]);let U=r.getOption(h).value,At=x.querySelector('[data-option="'+U+'"]').querySelector("input");a=!0,At.focus()}else a=!1,f.focus()}function y(){f.value="",T()}function O(n){let l=n.target;l.tagName==="BUTTON"&&(n.preventDefault(),l.removeEventListener("click",O),l.querySelector("label").click())}function N(n){if(n.key===Ea||n.key===He){let l=n.target.querySelector("label");x.querySelector("#"+l.getAttribute("for")).click()}}function R(n){return i+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function W(n,l){let h=R(l),u=$("li",null,{"data-option":l.value}),k=$("button",u,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+h+">"+l.text+wa+"</label>"});n.appendChild(u),k.addEventListener("click",O),k.addEventListener("keydown",N)}function ie(n){let l=r.getOption(n)||r.getOption(r.getIndex());if(l){if(l.checked){x.classList.contains("u-max-selections")&&x.classList.remove("u-max-selections");let h='[data-option="'+l.value+'"]',u=p.querySelector(h);typeof u!="undefined"&&u&&(p==null||p.removeChild(u))}else d!=null&&d.renderTags&&p&&W(p,l);r.toggleOption(n),r.isAtMaxSelections()&&x.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}r.resetIndex(),a=!1,v.getAttribute("aria-hidden")==="false"&&f.focus()}function ve(n){ie(Number(n.target.getAttribute("data-index"))),y()}function ye(){m.addEventListener("mousemove",function(h){let u=h.target;h.offsetX>u.offsetWidth-35?u.style.cursor="pointer":u.style.cursor="auto"}),m.addEventListener("mouseup",function(h){let u=h.target;h.offsetX>u.offsetWidth-35&&v.offsetHeight===140&&f.blur()}),f.addEventListener("input",function(){z(this.value)}),f.addEventListener("focus",function(){v.getAttribute("aria-hidden")==="true"&&b()}),f.addEventListener("blur",function(){!a&&v.getAttribute("aria-hidden")==="false"&&w()}),f.addEventListener("keydown",function(h){let u=h.key;v.getAttribute("aria-hidden")==="true"&&u!==xt&&b(),u===He?(h.preventDefault(),L(ue)):u===vt?(y(),w()):u===yt?L(ue):u===xt&&!h.shiftKey&&v.getAttribute("aria-hidden")==="false"&&w()}),x.addEventListener("mousedown",function(){a=!0}),x.addEventListener("keydown",function(h){let u=h.key,k=h.target,U=k.checked;if(u===He){h.preventDefault(),k.checked=!U;let V=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(V)}else u===vt?(f.focus(),w()):u===La?L(ft):u===yt&&L(ue)}),v.addEventListener("mousedown",function(h){h.target.tagName==="LABEL"&&(a=!0)});let n=x.querySelectorAll("input");for(let h=0,u=n.length;h<u;h++)n[h].addEventListener("change",ve);let l=p.querySelectorAll("button");for(let h=0,u=l.length;h<u;h++)l[h].addEventListener("click",O),l[h].addEventListener("keydown",N)}function ne(){c=document.createElement("div"),c.className=F,p=$("ul",null,{className:"m-tag-group"}),m=$("header",c,{className:F+"__header"}),f=$("input",m,{className:F+"__search "+Sa,type:"text",placeholder:o||"Select up to five",id:t.id,autocomplete:"off"}),v=$("fieldset",c,{className:F+"__fieldset u-invisible","aria-hidden":"true"});let n=F+"__options";r.isAtMaxSelections()&&(n+=" u-max-selections"),x=$("ul",v,{className:n});let l,h,u;for(let k=0,U=s.length;k<U;k++){l=s[k],h=R(l),u=r.getOption(k).checked;let V=$("li",x,{"data-option":l.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});$("input",V,{id:h,type:"checkbox",value:l.value,name:i,class:ka+" "+F+"__checkbox",checked:u,"data-index":k}),$("label",V,{for:h,textContent:l.text,className:F+"__label a-label"}),j.push(V),u&&(d!=null&&d.renderTags)&&W(p,l)}return c.insertBefore(p,m),t.parentNode.insertBefore(c,t),c.appendChild(t),c}function xe(n=_t){if(!M(t))return this;if(Ve())return this;if(S=this,i=t.name||t.id,o=t.getAttribute("placeholder"),s=t.options||[],d=we(we({},_t),n),s.length>0){r=new bt(s,i,d).init();let l=ne();t.parentNode.removeChild(t),t=l,M(t),ye()}return this}function _e(){return r}this.init=xe,this.expand=b,this.collapse=w;let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.getModel=_e,this.updateSelections=ie,this.selectionClickHandler=O,this.selectionKeyDownHandler=N,this}be.BASE_CLASS=F;be.init=e=>C(`.${F}`,be,void 0,e);var Ge={};g(Ge,{default:()=>Aa});var Aa={};var Re={};g(Re,{default:()=>Ta});var Ta={};var Ue={};g(Ue,{default:()=>za});var za={};var Pe={};g(Pe,{default:()=>Ba});var Ba={};var Xe={};g(Xe,{default:()=>Na});var Na={};var Ke={};g(Ke,{default:()=>Ca});var Ca={};var Je={};g(Je,{default:()=>Fa});var Fa={};var Ye={};g(Ye,{default:()=>Va});var Va={};var We={};g(We,{default:()=>Ra});var Ra={};var Ze={};g(Ze,{default:()=>Pa});var Pa={};var Qe={};g(Qe,{default:()=>Ka});var Ka={};var et={};g(et,{default:()=>Ya});var Ya={};var tt={};g(tt,{default:()=>Za});var Za={};var at={};g(at,{default:()=>er});var er={};var rt={};g(rt,{default:()=>ar});var ar={};var ot={};g(ot,{default:()=>or});var or={};var it={};g(it,{default:()=>nr});var nr={};var nt={};g(nt,{default:()=>lr});var lr={};var st={};g(st,{default:()=>cr});var cr={};var lt={};g(lt,{default:()=>hr});var hr={};function wt(e,t){t=t||document;let a=[];try{a=t.querySelectorAll(e)}catch(i){let o=`${e} not found in DOM! ${i}`;throw new Error(o)}return a.length===0&&e.indexOf(Z)===-1&&(a=kt(e,t)),a}function pr(e,t,a,i){let o=[];e instanceof NodeList?o=e:e instanceof Node?o=[e]:typeof e=="string"&&(o=wt(e,i));for(let r=0,s=o.length;r<s;r++)o[r].addEventListener(t,a,!1);return o}function ge(e,t){let a;if(Y(e,t))return a=e,a;if(e){let i="["+I+"="+t+"]";a=e.querySelector(i)}if(!a){let i=t+" behavior not found on passed DOM node!";throw new Error(i)}return a}function kt(e,t){return e=I+"*="+Z+e,e="["+e+"]",wt(e,t)}var ae=Object.prototype.toString;function St(e){return typeof e=="undefined"}function ur(e){return typeof e!="undefined"}function br(e){return e!==null&&typeof e=="object"}function Et(e){return ae.call(e)==="[object String]"}function gr(e){return ae.call(e)==="[object Number]"}function fr(e){return ae.call(e)==="[object Date]"}var vr=Array.isArray||function(t){return ae.call(t)==="[object Array]"};function yr(e){return ae.call(e)==="[object Function]"}function xr(e){return St(e)||e===null||Et(e)&&e.length<=0||/^\s*$/.test(e)}function Ve(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var re=Z+"flyout-menu",_r="["+I+"="+re;function X(e,t=!0){let a=ge(e,re),i=H(e),o=ge(e,re+"_content"),r=0,s=0,d=1,c=2,p=3,m,f,v,x=W.bind(this),j=R.bind(this),S,E=!0,T=!1;function H(n){let l=[],h=n.querySelectorAll(`${_r}_trigger]`),u,k,U;for(let V=h.length>>>0;V--;){for(U=!1,u=h[V],k=u.parentElement;k!==n;)k.getAttribute(I)&&k.getAttribute(I).split(" ").indexOf(re)!==-1?(U=!0,k=n):k=k.parentElement;U||l.unshift(h[V])}return l}function G(n=!1){return r=n?p:s,i.forEach(l=>{z("expanded",l,n),l.addEventListener("click",y.bind(this)),l.addEventListener("touchstart",b,{passive:!0}),l.addEventListener("mouseover",w.bind(this)),l.addEventListener("mouseout",L.bind(this))}),o.setAttribute("data-open",n?"true":"false"),t&&!n&&o.setAttribute("hidden",""),ne(),this}function z(n,l,h){let u=String(h);return l.setAttribute("aria-"+n,u),u}function b(){T=!0}function w(n){E||(T||this.dispatchEvent("triggerover",{target:this,trigger:n.target,type:"triggerover"}),T=!1)}function L(n){E||this.dispatchEvent("triggerout",{target:this,trigger:n.target,type:"triggerout"})}function y(n){if(!E)switch(this.dispatchEvent("triggerclick",{target:this,trigger:n.target,type:"triggerclick"}),n.preventDefault(),r){case s:case d:this.expand();break;case c:case p:this.collapse();break}}function O(){if(m==null||m.halt(),r===c||r===p)return this;if(r=c,t&&o.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!f||!v)return j(),this;let n=m==null?void 0:m.isAnimated();return n&&m.addEventListener(_.END_EVENT,j),f(),n||j(),this}function N(){if(m==null||m.halt(),r===d||r===s)return this;for(let l=0,h=i.length;l<h;l++)z("expanded",i[l],!1);if(o.setAttribute("data-open","false"),r=d,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!v||!f)return x(),this;let n=m==null?void 0:m.isAnimated();return n&&m.addEventListener(_.END_EVENT,x),v(),n||x(),this}function R(){r=p,o.setAttribute("data-open","true"),m&&m.removeEventListener(_.END_EVENT,j),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,l=i.length;n<l;n++)z("expanded",i[n],!0)}function W(){r=s,t&&o.setAttribute("hidden",""),m&&m.removeEventListener(_.END_EVENT,x),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function ie(n,l,h){m=n,l&&l!==v&&(v=l),h&&h!==f&&(f=h)}function ve(){m&&m.remove();let n;m=n,f=n,v=n}function ye(){return{container:a,content:o,trigger:i}}function ne(){return E&&(E=!1),!E}function xe(){return E||(E=!0),E}function _e(n){return S=n,this}let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.init=G,this.expand=O,this.collapse=N,this.setTransition=ie,this.clearTransition=ve,this.getData=()=>S,this.getTransition=()=>m,this.getDom=ye,this.isAnimating=()=>r===c||r===d,this.isExpanded=()=>r===p,this.resume=ne,this.setData=_e,this.suspend=xe,X.BASE_CLASS=re,this}var fe={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function Lt(e){let t=new D,a=new _(e,fe,this);function i(s){return a.init(s),this}function o(){return a.applyClass(fe.ALPHA_100),this}function r(){return a.applyClass(fe.ALPHA_0),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.remove=a.remove,this.setElement=a.setElement,this.fadeIn=o,this.fadeOut=r,this.init=i,this}Lt.CLASSES=fe;function _(e,t,a){let i=t,o=e;if(!a)throw new Error("Child transition argument must be defined!");let r=a,s,d,c,p=!1,m=!1,f=!1;if(typeof i.CSS_PROPERTY=="undefined"||typeof i.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function v(){d&&p?(o.addEventListener(d,c),r.dispatchEvent(_.BEGIN_EVENT,{target:r,type:_.BEGIN_EVENT}),o.classList.add(_.ANIMATING_CLASS),m=!0):(r.dispatchEvent(_.BEGIN_EVENT,{target:r,type:_.BEGIN_EVENT}),c())}function x(){o.removeEventListener(d,c)}function j(y){return y&&y.propertyName!==i.CSS_PROPERTY?!1:(x(),o.classList.remove(_.ANIMATING_CLASS),r.dispatchEvent(_.END_EVENT,{target:r,type:_.END_EVENT}),m=!1,!0)}function S(){let y;for(y in i)({}).hasOwnProperty.call(i,y)&&i[y]!==i.BASE_CLASS&&o.classList.contains(i[y])&&o.classList.remove(i[y])}function E(){m&&(o.style.webkitTransitionDuration="0",o.style.mozTransitionDuration="0",o.style.oTransitionDuration="0",o.style.transitionDuration="0",o.removeEventListener(d,c),c(),o.style.webkitTransitionDuration="",o.style.mozTransitionDuration="",o.style.oTransitionDuration="",o.style.transitionDuration="")}function T(){E(),S(),o.classList.remove(i.BASE_CLASS)}function H(){o.classList.remove(_.NO_ANIMATION_CLASS),p=!0}function G(){o.classList.add(_.NO_ANIMATION_CLASS),p=!1}function z(y){if(!y){let W="Element does not have TransitionEnd event. It may be null!";throw new Error(W)}let O,N={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},R;for(R in N)if({}.hasOwnProperty.call(N,R)&&typeof y.style[R]!="undefined"){O=N[R];break}return O}function b(y){T(),H(),o=y,o.classList.add(i.BASE_CLASS),d=z(o)}function w(y){if(p=!o.classList.contains(_.NO_ANIMATION_CLASS),c=j.bind(this),b(o),!y)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return o.classList.add(y),this}function L(y){return f||(S(),f=!0),o.classList.contains(y)?!1:(x(),o.classList.remove(s),s=y,v(),o.classList.add(s),!0)}return this.animateOff=G,this.animateOn=H,this.applyClass=L,this.halt=E,this.init=w,this.isAnimated=()=>p,this.remove=T,this.setElement=b,this}_.BEGIN_EVENT="transitionbegin";_.END_EVENT="transitionend";_.NO_ANIMATION_CLASS="u-no-animation";_.ANIMATING_CLASS="u-is-animating";var oe={CSS_PROPERTY:"max-height",BASE_CLASS:"u-max-height-transition",MH_DEFAULT:"u-max-height-default",MH_SUMMARY:"u-max-height-summary",MH_ZERO:"u-max-height-zero"};function B(e){let t=new D,a=new _(e,oe,this),i=0;function o(){let v=e.scrollHeight+"px";e.style.maxHeight=v}function r(){window.removeEventListener("load",r),o()}function s(f){return a.init(f),window.addEventListener("load",r),window.addEventListener("resize",()=>{o()}),this}function d(){return o(),a.applyClass(oe.MH_DEFAULT),(!i||e.scrollHeight>i)&&(i=e.scrollHeight),this}function c(){return a.applyClass(oe.MH_SUMMARY),i=e.scrollHeight,this}function p(){return a.applyClass(oe.MH_ZERO),i=e.scrollHeight,this}function m(){return e.style.maxHeight="",a.remove()}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.setElement=a.setElement,this.refresh=o,this.remove=m,this.init=s,this.maxHeightDefault=d,this.maxHeightSummary=c,this.maxHeightZero=p,this}B.CLASSES=oe;var K={CSS_PROPERTY:"transform",BASE_CLASS:"u-move-transition",MOVE_TO_ORIGIN:"u-move-to-origin",MOVE_LEFT:"u-move-left",MOVE_LEFT_2X:"u-move-left-2x",MOVE_LEFT_3X:"u-move-left-3x",MOVE_RIGHT:"u-move-right",MOVE_UP:"u-move-up"};function Dt(e){let t=new D,a=new _(e,K,this);function i(c){return a.init(c),this}function o(){return a.applyClass(K.MOVE_TO_ORIGIN),this}function r(c){c=c||1;let p=[K.MOVE_LEFT,K.MOVE_LEFT_2X,K.MOVE_LEFT_3X];return a.applyClass(p[c-1]),this}function s(){return a.applyClass(K.MOVE_RIGHT),this}function d(){return a.applyClass(K.MOVE_UP),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.setElement=a.setElement,this.remove=a.remove,this.init=i,this.moveLeft=()=>r(1),this.moveLeft2=()=>r(2),this.moveLeft3=()=>r(3),this.moveRight=s,this.moveToOrigin=o,this.moveUp=d,this}Dt.CLASSES=K;})();
1
+ (()=>{var ur=Object.defineProperty;var cr=Object.getOwnPropertySymbols;var jr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable;var sr=(e,r,a)=>r in e?ur(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,we=(e,r)=>{for(var a in r||(r={}))jr.call(r,a)&&sr(e,a,r[a]);if(cr)for(var a of cr(r))Tr.call(r,a)&&sr(e,a,r[a]);return e};var f=(e,r)=>{for(var a in r)ur(e,a,{get:r[a],enumerable:!0})};var ke={};f(ke,{default:()=>zr});var zr={};var le={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function de(){let e=getComputedStyle(document.body).fontSize;return e=e===""?-1:e,parseFloat(e)}function Ir(e,r){let a=e.min,i=e.max;de()>0&&de()!==16&&(a=a/16*de(),i=i/16*de());let t=a||0,l=i||Number.POSITIVE_INFINITY;return t<=r&&r<=l}function Br(e){let r={};e=e||window.innerWidth;let a;for(a in le)r[a]=Ir(le[a],e);return r}var ce="mobile",Mr="tablet",Nr="desktop";function Se(e){let r=!1,a=Br();return(e===ce&&a.bpXS||e===Mr&&a.bpSM||e===Nr&&(a.bpMED||a.bpLG||a.bpXL))&&(r=!0),r}var I="data-js-hook",Z="behavior_",Ee="state_";function D(){let e={};function r(o,t){return{}.hasOwnProperty.call(e,o)?e[o].push(t):e[o]=[t],this}function a(o,t){if(!{}.hasOwnProperty.call(e,o))return this;let l=e[o].indexOf(t);return l!==-1&&e[o].splice(l,1),this}function i(o,t){if(!{}.hasOwnProperty.call(e,o))return this;t=t||{};let l=e[o];for(let c=0,s=l.length;c<s;c++)l[c].call(this,t);return this}return this.addEventListener=r,this.removeEventListener=a,this.dispatchEvent=i,this.getRegisteredEvents=()=>e,this}function Y(e,r){if(!e)return!1;let a=e.getAttribute(I);return a?(a=a.split(" "),a.indexOf(r)>-1):!1}function A(e,r){if(Y(e,r))return r;if(r.indexOf(" ")!==-1){let i=I+" values cannot contain spaces!";throw new Error(i)}let a=e.getAttribute(I);return a!==null&&(r=a+" "+r),e.setAttribute(I,r),r}var Le=Ee+"atomic_init";function qr(e,r){if(!e||!e.classList){let a=e+' is not valid. Check that element is a DOM node with class "'+r+'"';throw new Error(a)}return e}function Cr(e,r){let a=e.classList.contains(r)?e:e.querySelector("."+r);if(!a){let i=r+" not found on or in passed DOM node.";throw new Error(i)}return a}function q(e,r){return qr(e,r),Cr(e,r)}function M(e){return Y(e,Le)?!1:(A(e,Le),!0)}function C(e,r,a,i={}){let t=(a||document).querySelectorAll(e),l=[],c,s;for(let b=0,u=t.length;b<u;b++)s=t[b],Y(s,Le)===!1&&(c=new r(s),c.init(i),l.push(c));return l}var De={};f(De,{default:()=>Fr});var Fr={};var Ae={};f(Ae,{default:()=>Vr});var Vr={};var je={};f(je,{default:()=>Rr});var Rr={};var Te={};f(Te,{default:()=>Pr});var Pr={};var Oe={};f(Oe,{default:()=>Kr});var Kr={};var Q="o-expandable";function P(e){let r=q(e,Q),a,i,o,t,l;function c(){if(!M(r))return this;a=r.querySelector(`.${Q}__header`),i=r.querySelector(`.${Q}__content`),o=r.querySelector(`.${Q}__label`);let u=r.classList.contains(`${Q}--onload-open`);A(r,"behavior_flyout-menu"),A(a,"behavior_flyout-menu_trigger"),A(i,"behavior_flyout-menu_content");let g=u?B.CLASSES.MH_DEFAULT:B.CLASSES.MH_ZERO;return t=new B(i).init(g),l=new X(r),l.setTransition(t,t.maxHeightZero,t.maxHeightDefault),l.init(u),l.addEventListener("expandbegin",()=>{i.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),l.addEventListener("collapseend",()=>{i.classList.add("u-hidden")}),this}function s(){return o.textContent.trim()}this.init=c,this.expand=()=>l.expand(),this.collapse=()=>l.collapse(),this.isExpanded=()=>l.isExpanded(),this.refresh=()=>l.getTransition().refresh(),this.getLabelText=s;let b=new D;return this.addEventListener=b.addEventListener,this.removeEventListener=b.removeEventListener,this.dispatchEvent=b.dispatchEvent,this}P.BASE_CLASS=Q;P.init=e=>C(`.${P.BASE_CLASS}`,P,e);var se="o-expandable-group";function ue(e){let r=q(e,se),a=r.classList.contains(`${se}--accordion`),i,o;function t(c){let s=c.target;o&&o!==s&&o.collapse(),o=s}function l(c){return M(r)?(a&&(i=c,i.forEach(s=>{s.addEventListener("expandbegin",t)})),this):this}return this.init=l,this}ue.BASE_CLASS=se;ue.init=e=>{(e||document).querySelectorAll(`.${se}`).forEach(i=>{let o=C(`.${P.BASE_CLASS}`,P,i);new ue(i).init(o)})};var ee="o-summary";function he(e){let r=q(e,ee),a=r.classList.contains(`${ee}--mobile`),i=r.querySelector(`.${ee}__content`),o=r.querySelector(`.${ee}__btn`),t,l,c;function s(){return M(r)?(window.addEventListener("load",b),this):this}function b(){window.removeEventListener("load",b),c=!x(),A(r,"behavior_flyout-menu"),A(i,"behavior_flyout-menu_content"),A(o,"behavior_flyout-menu_trigger"),l=new X(r,!1),t=new B(i),t.init(c?B.CLASSES.MH_SUMMARY:B.CLASSES.MH_DEFAULT),l.setTransition(t,t.maxHeightSummary,t.maxHeightDefault),l.addEventListener("triggerclick",j),l.init(),v(),window.addEventListener("resize",v),"onorientationchange"in window&&window.addEventListener("orientationchange",v),r.addEventListener("focusin",u),i.addEventListener("click",g)}function u(m){!c&&m.target!==o&&(o.click(),r.removeEventListener("focusin",u))}function g(m){m.target.tagName!=="A"&&l.isExpanded()&&t.refresh()}function v(){x()?G():H()}function x(){return a&&!Se(ce)||i.scrollHeight<=88}function j(){l.addEventListener("expandend",S)}function S(){T(),window.removeEventListener("resize",v),window.removeEventListener("orientationchange",v),l.removeEventListener("expandend",S),l.suspend(),t.remove()}function E(){o.classList.remove("u-hidden")}function T(){o.classList.add("u-hidden")}function H(){return c&&(l.collapse(),t.animateOn(),E(),c=!1),!c}function G(){return c||(t.animateOff(),l.expand(),T(),c=!0),c}let z=new D;return this.addEventListener=z.addEventListener,this.removeEventListener=z.removeEventListener,this.dispatchEvent=z.dispatchEvent,this.init=s,this}he.BASE_CLASS=ee;he.init=e=>C(`.${ee}`,he,e);var re="o-summary-minimal";function be(e){let r=q(e,re),a=r.querySelector(`.${re}__content`),i=r.querySelector(`.${re}__btn`),o,t;function l(){return M(r)?(A(r,"behavior_flyout-menu"),A(a,"behavior_flyout-menu_content"),A(i,"behavior_flyout-menu_trigger"),window.addEventListener("load",c),this):this}function c(){window.removeEventListener("load",c),t=new X(r,!1),o=new B(a),o.init(B.CLASSES.MH_SUMMARY),t.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),t.init(),r.addEventListener("focusin",s),a.addEventListener("click",b),t.collapse(),o.animateOn()}function s(g){g.target!==i&&(i.click(),r.removeEventListener("focusin",s))}function b(g){g.target.tagName!=="A"&&t.isExpanded()&&o.refresh()}let u=new D;return this.addEventListener=u.addEventListener,this.removeEventListener=u.removeEventListener,this.dispatchEvent=u.dispatchEvent,this.init=l,this}be.BASE_CLASS=re;be.init=e=>C(`.${re}`,be,e);var ze={};f(ze,{default:()=>Wr});var Wr={};var Ie={};f(Ie,{default:()=>Qr});var Qr={};var Be={};f(Be,{default:()=>ra});var ra={};var Me={};f(Me,{default:()=>ta});var ta={};var Ne={};f(Ne,{default:()=>ia});var ia={};var qe={};f(qe,{default:()=>la});var la={};var Ce={};f(Ce,{default:()=>ca});var ca={};var $e={};f($e,{default:()=>ua});var ua={};var Fe={};f(Fe,{default:()=>ba});var ba={};var pa;function ma(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function fa(e,r){return RegExp(ma(r.trim()),"i").test(e)}function ga(e,r,a){let i=e,o=r,t=(a==null?void 0:a.maxSelections)||5,l=[],c=[],s=[],b=[],u=-1;function g(m){return o+"-"+m.value.trim().replace(/\s+/g,"-").toLowerCase()}function v(){return c.length>=t}function x(m){let w,L=[],y=!1;for(let O=0,N=m.length;O<N;O++)w=m[O],y=v()?!1:w.defaultSelected,L.push({id:g(w),value:w.value,text:w.text,checked:y}),y&&c.push(O);return L}function j(){return l=x(i),this}function S(m){return l[m].checked=!l[m].checked,c.length<t&&l[m].checked?(c.push(m),c.sort(),!0):(l[m].checked=!1,c=c.filter(function(w){return w!==m}),!1)}function E(m,w,L,y){return fa(w.text,y)&&m.push(L),m}function T(m){return Object.prototype.toString.call(m)!=="[object String]"&&(m=""),b=s,l.length>0&&(s=l.reduce(function(w,L,y){return E(w,L,y,m)},[])),u=-1,s}function H(m){return l[m]}function G(m){let w=s.length,L=w===0?l.length:w;m<0?u=-1:m>=L?u=L-1:u=m}function z(){return u}return this.init=j,this.toggleOption=S,this.getSelectedIndices=function(){return c},this.isAtMaxSelections=v,this.filterIndices=T,this.clearFilter=function(){return s=b=[],pa},this.getFilterIndices=function(){return s},this.getLastFilterIndices=function(){return b},this.getIndex=z,this.setIndex=G,this.resetIndex=function(){return u=-1,u},this.getOption=H,this}var mr=ga;function $(e,r,a){let i=document.createElement(e);return Object.keys(a).forEach(o=>{let t=a[o];o in i?i[o]=t:i.setAttribute(o,t)}),r&&r.appendChild(i),i}var fr='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>';var wa=fr,F="o-multiselect",ka="a-checkbox",Sa="a-text-input",gr="prev",pe="next",He="Enter",Ea=" ",vr="Escape",La="ArrowUp",yr="ArrowDown",xr="Tab",_r={renderTags:!0,maxSelections:5};function me(e){e.classList.add(F);let r=q(e,F),a=!1,i,o,t,l,c,s,b,u,g,v,x,j=[],S;function E(){x.classList.remove("u-no-results"),x.classList.add("u-filtered");let n=t.getLastFilterIndices();for(let d=0,h=n.length;d<h;d++)j[n[d]].classList.remove("u-filter-match");n=t.getFilterIndices();for(let d=0,h=n.length;d<h;d++)j[n[d]].classList.add("u-filter-match")}function T(){x.classList.remove("u-filtered","u-no-results");for(let n=0,d=x.children.length;n<d;n++)x.children[n].classList.remove("u-filter-match");t.clearFilter()}function H(){x.classList.add("u-no-results"),x.classList.remove("u-filtered")}function G(n){return n.length>0?(E(),!0):(H(),!1)}function z(n){T(),t.resetIndex();let d=t.filterIndices(n);G(d)}function m(){return s.classList.add("u-active"),v.classList.remove("u-invisible"),v.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return s.classList.remove("u-active"),v.classList.add("u-invisible"),v.setAttribute("aria-hidden",!0),t.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function L(n){n===pe?t.setIndex(t.getIndex()+1):n===gr&&t.setIndex(t.getIndex()-1);let d=t.getIndex();if(d>-1){let h=d,p=t.getFilterIndices();p.length>0&&(h=p[d]);let U=t.getOption(h).value,Ar=x.querySelector('[data-option="'+U+'"]').querySelector("input");a=!0,Ar.focus()}else a=!1,g.focus()}function y(){g.value="",T()}function O(n){let d=n.target;d.tagName==="BUTTON"&&(n.preventDefault(),d.removeEventListener("click",O),d.querySelector("label").click())}function N(n){if(n.key===Ea||n.key===He){let d=n.target.querySelector("label");x.querySelector("#"+d.getAttribute("for")).click()}}function R(n){return i+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function W(n,d){let h=R(d),p=$("li",null,{"data-option":d.value}),k=$("button",p,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+h+">"+d.text+wa+"</label>"});n.appendChild(p),k.addEventListener("click",O),k.addEventListener("keydown",N)}function ie(n){let d=t.getOption(n)||t.getOption(t.getIndex());if(d){if(d.checked){x.classList.contains("u-max-selections")&&x.classList.remove("u-max-selections");let h='[data-option="'+d.value+'"]',p=b.querySelector(h);typeof p!="undefined"&&p&&(b==null||b.removeChild(p))}else c!=null&&c.renderTags&&b&&W(b,d);t.toggleOption(n),t.isAtMaxSelections()&&x.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}t.resetIndex(),a=!1,v.getAttribute("aria-hidden")==="false"&&g.focus()}function ve(n){ie(Number(n.target.getAttribute("data-index"))),y()}function ye(){u.addEventListener("mousemove",function(h){let p=h.target;h.offsetX>p.offsetWidth-35?p.style.cursor="pointer":p.style.cursor="auto"}),u.addEventListener("mouseup",function(h){let p=h.target;h.offsetX>p.offsetWidth-35&&v.offsetHeight===140&&g.blur()}),g.addEventListener("input",function(){z(this.value)}),g.addEventListener("focus",function(){v.getAttribute("aria-hidden")==="true"&&m()}),g.addEventListener("blur",function(){!a&&v.getAttribute("aria-hidden")==="false"&&w()}),g.addEventListener("keydown",function(h){let p=h.key;v.getAttribute("aria-hidden")==="true"&&p!==xr&&m(),p===He?(h.preventDefault(),L(pe)):p===vr?(y(),w()):p===yr?L(pe):p===xr&&!h.shiftKey&&v.getAttribute("aria-hidden")==="false"&&w()}),x.addEventListener("mousedown",function(){a=!0}),x.addEventListener("keydown",function(h){let p=h.key,k=h.target,U=k.checked;if(p===He){h.preventDefault(),k.checked=!U;let V=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(V)}else p===vr?(g.focus(),w()):p===La?L(gr):p===yr&&L(pe)}),v.addEventListener("mousedown",function(h){h.target.tagName==="LABEL"&&(a=!0)});let n=x.querySelectorAll("input");for(let h=0,p=n.length;h<p;h++)n[h].addEventListener("change",ve);let d=b.querySelectorAll("button");for(let h=0,p=d.length;h<p;h++)d[h].addEventListener("click",O),d[h].addEventListener("keydown",N)}function ne(){s=document.createElement("div"),s.className=F,b=$("ul",null,{className:"m-tag-group"}),u=$("header",s,{className:F+"__header"}),g=$("input",u,{className:F+"__search "+Sa,type:"text",placeholder:o||"Select up to five",id:r.id,autocomplete:"off"}),v=$("fieldset",s,{className:F+"__fieldset u-invisible","aria-hidden":"true"});let n=F+"__options";t.isAtMaxSelections()&&(n+=" u-max-selections"),x=$("ul",v,{className:n});let d,h,p;for(let k=0,U=l.length;k<U;k++){d=l[k],h=R(d),p=t.getOption(k).checked;let V=$("li",x,{"data-option":d.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});$("input",V,{id:h,type:"checkbox",value:d.value,name:i,class:ka+" "+F+"__checkbox",checked:p,"data-index":k}),$("label",V,{for:h,textContent:d.text,className:F+"__label a-label"}),j.push(V),p&&(c!=null&&c.renderTags)&&W(b,d)}return s.insertBefore(b,u),r.parentNode.insertBefore(s,r),s.appendChild(r),s}function xe(n=_r){if(!M(r))return this;if(Ve())return this;if(S=this,i=r.name||r.id,o=r.getAttribute("placeholder"),l=r.options||[],c=we(we({},_r),n),l.length>0){t=new mr(l,i,c).init();let d=ne();r.parentNode.removeChild(r),r=d,M(r),ye()}return this}function _e(){return t}this.init=xe,this.expand=m,this.collapse=w;let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.getModel=_e,this.updateSelections=ie,this.selectionClickHandler=O,this.selectionKeyDownHandler=N,this}me.BASE_CLASS=F;me.init=e=>C(`.${F}`,me,void 0,e);var Ge={};f(Ge,{default:()=>Aa});var Aa={};var Re={};f(Re,{default:()=>Ta});var Ta={};var Ue={};f(Ue,{default:()=>za});var za={};var Pe={};f(Pe,{default:()=>Ba});var Ba={};var Xe={};f(Xe,{default:()=>Na});var Na={};var Ke={};f(Ke,{default:()=>Ca});var Ca={};var Je={};f(Je,{default:()=>Fa});var Fa={};var Ye={};f(Ye,{default:()=>Va});var Va={};var We={};f(We,{default:()=>Ra});var Ra={};var Ze={};f(Ze,{default:()=>Pa});var Pa={};var Qe={};f(Qe,{default:()=>Ka});var Ka={};var er={};f(er,{default:()=>Ya});var Ya={};var rr={};f(rr,{default:()=>Za});var Za={};var ar={};f(ar,{default:()=>et});var et={};var tr={};f(tr,{default:()=>at});var at={};var or={};f(or,{default:()=>ot});var ot={};var ir={};f(ir,{default:()=>nt});var nt={};var nr={};f(nr,{default:()=>dt});var dt={};var lr={};f(lr,{default:()=>st});var st={};var dr={};f(dr,{default:()=>ht});var ht={};function wr(e,r){r=r||document;let a=[];try{a=r.querySelectorAll(e)}catch(i){let o=`${e} not found in DOM! ${i}`;throw new Error(o)}return a.length===0&&e.indexOf(Z)===-1&&(a=kr(e,r)),a}function bt(e,r,a,i){let o=[];e instanceof NodeList?o=e:e instanceof Node?o=[e]:typeof e=="string"&&(o=wr(e,i));for(let t=0,l=o.length;t<l;t++)o[t].addEventListener(r,a,!1);return o}function fe(e,r){let a;if(Y(e,r))return a=e,a;if(e){let i="["+I+"="+r+"]";a=e.querySelector(i)}if(!a){let i=r+" behavior not found on passed DOM node!";throw new Error(i)}return a}function kr(e,r){return e=I+"*="+Z+e,e="["+e+"]",wr(e,r)}var ae=Object.prototype.toString;function Sr(e){return typeof e=="undefined"}function pt(e){return typeof e!="undefined"}function mt(e){return e!==null&&typeof e=="object"}function Er(e){return ae.call(e)==="[object String]"}function ft(e){return ae.call(e)==="[object Number]"}function gt(e){return ae.call(e)==="[object Date]"}var vt=Array.isArray||function(r){return ae.call(r)==="[object Array]"};function yt(e){return ae.call(e)==="[object Function]"}function xt(e){return Sr(e)||e===null||Er(e)&&e.length<=0||/^\s*$/.test(e)}function Ve(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var te=Z+"flyout-menu",_t="["+I+"="+te;function X(e,r=!0){let a=fe(e,te),i=H(e),o=fe(e,te+"_content"),t=0,l=0,c=1,s=2,b=3,u,g,v,x=W.bind(this),j=R.bind(this),S,E=!0,T=!1;function H(n){let d=[],h=n.querySelectorAll(`${_t}_trigger]`),p,k,U;for(let V=h.length>>>0;V--;){for(U=!1,p=h[V],k=p.parentElement;k!==n;)k.getAttribute(I)&&k.getAttribute(I).split(" ").indexOf(te)!==-1?(U=!0,k=n):k=k.parentElement;U||d.unshift(h[V])}return d}function G(n=!1){return t=n?b:l,i.forEach(d=>{z("expanded",d,n),d.addEventListener("click",y.bind(this)),d.addEventListener("touchstart",m,{passive:!0}),d.addEventListener("mouseover",w.bind(this)),d.addEventListener("mouseout",L.bind(this))}),o.setAttribute("data-open",n?"true":"false"),r&&!n&&o.setAttribute("hidden",""),ne(),this}function z(n,d,h){let p=String(h);return d.setAttribute("aria-"+n,p),p}function m(){T=!0}function w(n){E||(T||this.dispatchEvent("triggerover",{target:this,trigger:n.target,type:"triggerover"}),T=!1)}function L(n){E||this.dispatchEvent("triggerout",{target:this,trigger:n.target,type:"triggerout"})}function y(n){if(!E)switch(this.dispatchEvent("triggerclick",{target:this,trigger:n.target,type:"triggerclick"}),n.preventDefault(),t){case l:case c:this.expand();break;case s:case b:this.collapse();break}}function O(){if(u==null||u.halt(),t===s||t===b)return this;if(t=s,r&&o.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!g||!v)return j(),this;let n=u==null?void 0:u.isAnimated();return n&&u.addEventListener(_.END_EVENT,j),g(),n||j(),this}function N(){if(u==null||u.halt(),t===c||t===l)return this;for(let d=0,h=i.length;d<h;d++)z("expanded",i[d],!1);if(o.setAttribute("data-open","false"),t=c,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!v||!g)return x(),this;let n=u==null?void 0:u.isAnimated();return n&&u.addEventListener(_.END_EVENT,x),v(),n||x(),this}function R(){t=b,o.setAttribute("data-open","true"),u&&u.removeEventListener(_.END_EVENT,j),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,d=i.length;n<d;n++)z("expanded",i[n],!0)}function W(){t=l,r&&o.setAttribute("hidden",""),u&&u.removeEventListener(_.END_EVENT,x),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function ie(n,d,h){u=n,d&&d!==v&&(v=d),h&&h!==g&&(g=h)}function ve(){u&&u.remove();let n;u=n,g=n,v=n}function ye(){return{container:a,content:o,trigger:i}}function ne(){return E&&(E=!1),!E}function xe(){return E||(E=!0),E}function _e(n){return S=n,this}let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.init=G,this.expand=O,this.collapse=N,this.setTransition=ie,this.clearTransition=ve,this.getData=()=>S,this.getTransition=()=>u,this.getDom=ye,this.isAnimating=()=>t===s||t===c,this.isExpanded=()=>t===b,this.resume=ne,this.setData=_e,this.suspend=xe,X.BASE_CLASS=te,this}var ge={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function Lr(e){let r=new D,a=new _(e,ge,this);function i(l){return a.init(l),this}function o(){return a.applyClass(ge.ALPHA_100),this}function t(){return a.applyClass(ge.ALPHA_0),this}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.remove=a.remove,this.setElement=a.setElement,this.fadeIn=o,this.fadeOut=t,this.init=i,this}Lr.CLASSES=ge;function _(e,r,a){let i=r,o=e;if(!a)throw new Error("Child transition argument must be defined!");let t=a,l,c,s,b=!1,u=!1,g=!1;if(typeof i.CSS_PROPERTY=="undefined"||typeof i.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function v(){c&&b?(o.addEventListener(c,s),t.dispatchEvent(_.BEGIN_EVENT,{target:t,type:_.BEGIN_EVENT}),o.classList.add(_.ANIMATING_CLASS),u=!0):(t.dispatchEvent(_.BEGIN_EVENT,{target:t,type:_.BEGIN_EVENT}),s())}function x(){o.removeEventListener(c,s)}function j(y){return y&&y.propertyName!==i.CSS_PROPERTY?!1:(x(),o.classList.remove(_.ANIMATING_CLASS),t.dispatchEvent(_.END_EVENT,{target:t,type:_.END_EVENT}),u=!1,!0)}function S(){let y;for(y in i)({}).hasOwnProperty.call(i,y)&&i[y]!==i.BASE_CLASS&&o.classList.contains(i[y])&&o.classList.remove(i[y])}function E(){u&&(o.style.webkitTransitionDuration="0",o.style.mozTransitionDuration="0",o.style.oTransitionDuration="0",o.style.transitionDuration="0",o.removeEventListener(c,s),s(),o.style.webkitTransitionDuration="",o.style.mozTransitionDuration="",o.style.oTransitionDuration="",o.style.transitionDuration="")}function T(){E(),S(),o.classList.remove(i.BASE_CLASS)}function H(){o.classList.remove(_.NO_ANIMATION_CLASS),b=!0}function G(){o.classList.add(_.NO_ANIMATION_CLASS),b=!1}function z(y){if(!y){let W="Element does not have TransitionEnd event. It may be null!";throw new Error(W)}let O,N={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},R;for(R in N)if({}.hasOwnProperty.call(N,R)&&typeof y.style[R]!="undefined"){O=N[R];break}return O}function m(y){T(),H(),o=y,o.classList.add(i.BASE_CLASS),c=z(o)}function w(y){if(b=!o.classList.contains(_.NO_ANIMATION_CLASS),s=j.bind(this),m(o),!y)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return o.classList.add(y),this}function L(y){return g||(S(),g=!0),o.classList.contains(y)?!1:(x(),o.classList.remove(l),l=y,v(),o.classList.add(l),!0)}return this.animateOff=G,this.animateOn=H,this.applyClass=L,this.halt=E,this.init=w,this.isAnimated=()=>b,this.remove=T,this.setElement=m,this}_.BEGIN_EVENT="transitionbegin";_.END_EVENT="transitionend";_.NO_ANIMATION_CLASS="u-no-animation";_.ANIMATING_CLASS="u-is-animating";var oe={CSS_PROPERTY:"max-height",BASE_CLASS:"u-max-height-transition",MH_DEFAULT:"u-max-height-default",MH_SUMMARY:"u-max-height-summary",MH_ZERO:"u-max-height-zero"};function B(e){let r=new D,a=new _(e,oe,this),i=0;function o(){let v=e.scrollHeight+"px";e.style.maxHeight=v}function t(){window.removeEventListener("load",t),o()}function l(g){return a.init(g),window.addEventListener("load",t),window.addEventListener("resize",()=>{o()}),this}function c(){return o(),a.applyClass(oe.MH_DEFAULT),(!i||e.scrollHeight>i)&&(i=e.scrollHeight),this}function s(){return a.applyClass(oe.MH_SUMMARY),i=e.scrollHeight,this}function b(){return a.applyClass(oe.MH_ZERO),i=e.scrollHeight,this}function u(){return e.style.maxHeight="",a.remove()}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.setElement=a.setElement,this.refresh=o,this.remove=u,this.init=l,this.maxHeightDefault=c,this.maxHeightSummary=s,this.maxHeightZero=b,this}B.CLASSES=oe;var K={CSS_PROPERTY:"transform",BASE_CLASS:"u-move-transition",MOVE_TO_ORIGIN:"u-move-to-origin",MOVE_LEFT:"u-move-left",MOVE_LEFT_2X:"u-move-left-2x",MOVE_LEFT_3X:"u-move-left-3x",MOVE_RIGHT:"u-move-right",MOVE_UP:"u-move-up"};function Dr(e){let r=new D,a=new _(e,K,this);function i(s){return a.init(s),this}function o(){return a.applyClass(K.MOVE_TO_ORIGIN),this}function t(s){s=s||1;let b=[K.MOVE_LEFT,K.MOVE_LEFT_2X,K.MOVE_LEFT_3X];return a.applyClass(b[s-1]),this}function l(){return a.applyClass(K.MOVE_RIGHT),this}function c(){return a.applyClass(K.MOVE_UP),this}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.setElement=a.setElement,this.remove=a.remove,this.init=i,this.moveLeft=()=>t(1),this.moveLeft2=()=>t(2),this.moveLeft3=()=>t(3),this.moveRight=l,this.moveToOrigin=o,this.moveUp=c,this}Dr.CLASSES=K;})();
2
2
  //# sourceMappingURL=index.js.map