@cfpb/cfpb-design-system 3.1.7 → 3.1.8

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.
@@ -1,2 +1,2 @@
1
- (()=>{var bt=Object.defineProperty;var mt=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable;var pt=(a,e,t)=>e in a?bt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,_e=(a,e)=>{for(var t in e||(e={}))Et.call(e,t)&&pt(a,t,e[t]);if(mt)for(var t of mt(e))Dt.call(e,t)&&pt(a,t,e[t]);return a};var u=(a,e)=>{for(var t in e)bt(a,t,{get:e[t],enumerable:!0})};var we={};u(we,{default:()=>Lt});var Lt={};var re={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function ne(){let a=getComputedStyle(document.body).fontSize;return a=a===""?-1:a,parseFloat(a)}function Tt(a,e){let t=a.min,r=a.max;ne()>0&&ne()!==16&&(t=t/16*ne(),r=r/16*ne());let i=t||0,l=r||Number.POSITIVE_INFINITY;return i<=e&&e<=l}function jt(a){let e={};a=a||window.innerWidth;let t;for(t in re)e[t]=Tt(re[t],a);return e}var le="mobile",zt="tablet",Ot="desktop";function ke(a){let e=!1,t=jt();return(a===le&&t.bpXS||a===zt&&t.bpSM||a===Ot&&(t.bpMED||t.bpLG||t.bpXL))&&(e=!0),e}var B="data-js-hook",se="behavior_",Se="state_";function A(){let a={};function e(o,i){return{}.hasOwnProperty.call(a,o)?a[o].push(i):a[o]=[i],this}function t(o,i){if(!{}.hasOwnProperty.call(a,o))return this;let l=a[o].indexOf(i);return l!==-1&&a[o].splice(l,1),this}function r(o,i){if(!{}.hasOwnProperty.call(a,o))return this;i=i||{};let l=a[o];for(let d=0,c=l.length;d<c;d++)l[d].call(this,i);return this}return this.addEventListener=e,this.removeEventListener=t,this.dispatchEvent=r,this.getRegisteredEvents=()=>a,this}function W(a,e){if(!a)return!1;let t=a.getAttribute(B);return t?(t=t.split(" "),t.indexOf(e)>-1):!1}function L(a,e){if(W(a,e))return e;if(e.indexOf(" ")!==-1){let r=B+" values cannot contain spaces!";throw new Error(r)}let t=a.getAttribute(B);return t!==null&&(e=t+" "+e),a.setAttribute(B,e),e}var Ee=Se+"atomic_init";function It(a,e){if(!a||!a.classList){let t=a+' is not valid. Check that element is a DOM node with class "'+e+'"';throw new Error(t)}return a}function Bt(a,e){let t=a.classList.contains(e)?a:a.querySelector("."+e);if(!t){let r=e+" not found on or in passed DOM node.";throw new Error(r)}return t}function q(a,e){return It(a,e),Bt(a,e)}function M(a){return W(a,Ee)?!1:(L(a,Ee),!0)}function F(a,e,t,r={}){let i=(t||document).querySelectorAll(a),l=[],d,c;for(let p=0,h=i.length;p<h;p++)c=i[p],W(c,Ee)===!1&&(d=new e(c),d.init(r),l.push(d));return l}var De={};u(De,{default:()=>Nt});var Nt={};var Ae={};u(Ae,{default:()=>qt});var qt={};var Le={};u(Le,{default:()=>Ht});var Ht={};var Te={};u(Te,{default:()=>Gt});var Gt={};var je={};u(je,{default:()=>Ut});var Ut={};var ze={};u(ze,{default:()=>Xt});var Xt={};var Oe={};u(Oe,{default:()=>Jt});var Jt={};var Ie={};u(Ie,{default:()=>Wt});var Wt={};var Be={};u(Be,{default:()=>Zt});var Zt={};var Me={};u(Me,{default:()=>ea});var ea={};var Ne={};u(Ne,{default:()=>aa});var aa={};var Ce={};u(Ce,{default:()=>oa});var oa={};var qe={};u(qe,{default:()=>na});var na={};var Fe={};u(Fe,{default:()=>sa});var sa={};var He={};u(He,{default:()=>ca});var ca={};var ha;function ma(a){return a.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function pa(a,e){return RegExp(ma(e.trim()),"i").test(a)}function ba(a,e,t){let r=a,o=e,i=(t==null?void 0:t.maxSelections)||5,l=[],d=[],c=[],p=[],h=-1;function f(g){return o+"-"+g.value.trim().replace(/\s+/g,"-").toLowerCase()}function y(){return d.length>=i}function v(g){let w,D=[],x=!1;for(let z=0,C=g.length;z<C;z++)w=g[z],x=y()?!1:w.defaultSelected,D.push({id:f(w),value:w.value,text:w.text,checked:x}),x&&d.push(z);return D}function T(){return l=v(r),this}function S(g){return l[g].checked=!l[g].checked,d.length<i&&l[g].checked?(d.push(g),d.sort(),!0):(l[g].checked=!1,d=d.filter(function(w){return w!==g}),!1)}function E(g,w,D,x){return pa(w.text,x)&&g.push(D),g}function j(g){return Object.prototype.toString.call(g)!=="[object String]"&&(g=""),p=c,l.length>0&&(c=l.reduce(function(w,D,x){return E(w,D,x,g)},[])),h=-1,c}function V(g){return l[g]}function R(g){let w=c.length,D=w===0?l.length:w;g<0?h=-1:g>=D?h=D-1:h=g}function O(){return h}return this.init=T,this.toggleOption=S,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=y,this.filterIndices=j,this.clearFilter=function(){return c=p=[],ha},this.getFilterIndices=function(){return c},this.getLastFilterIndices=function(){return p},this.getIndex=O,this.setIndex=R,this.resetIndex=function(){return h=-1,h},this.getOption=V,this}var ut=ba;function H(a,e,t){let r=document.createElement(a);return Object.keys(t).forEach(o=>{let i=t[o];o in r?r[o]=i:r.setAttribute(o,i)}),e&&e.appendChild(r),r}var gt='<svg xmlns="http://www.w3.org/2000/svg" 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 xa=gt,N="o-multiselect",va="a-checkbox",_a="a-text-input",ft="prev",de="next",Ve="Enter",wa=" ",yt="Escape",ka="ArrowUp",xt="ArrowDown",vt="Tab",_t={renderTags:!0,maxSelections:5};function ce(a){a.classList.add(N);let e=q(a,N),t=!1,r,o,i,l,d,c,p,h,f,y,v,T=[],S;function E(){v.classList.remove("u-no-results"),v.classList.add("u-filtered");let n=i.getLastFilterIndices();for(let s=0,m=n.length;s<m;s++)T[n[s]].classList.remove("u-filter-match");n=i.getFilterIndices();for(let s=0,m=n.length;s<m;s++)T[n[s]].classList.add("u-filter-match")}function j(){v.classList.remove("u-filtered","u-no-results");for(let n=0,s=v.children.length;n<s;n++)v.children[n].classList.remove("u-filter-match");i.clearFilter()}function V(){v.classList.add("u-no-results"),v.classList.remove("u-filtered")}function R(n){return n.length>0?(E(),!0):(V(),!1)}function O(n){j(),i.resetIndex();let s=i.filterIndices(n);R(s)}function g(){return c.classList.add("u-active"),y.classList.remove("u-invisible"),y.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return c.classList.remove("u-active"),y.classList.add("u-invisible"),y.setAttribute("aria-hidden",!0),i.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function D(n){n===de?i.setIndex(i.getIndex()+1):n===ft&&i.setIndex(i.getIndex()-1);let s=i.getIndex();if(s>-1){let m=s,b=i.getFilterIndices();b.length>0&&(m=b[s]);let P=i.getOption(m).value,St=v.querySelector('[data-option="'+P+'"]').querySelector("input");t=!0,St.focus()}else t=!1,f.focus()}function x(){f.value="",j()}function z(n){let s=n.target;s.tagName==="BUTTON"&&(n.preventDefault(),s.removeEventListener("click",z),s.querySelector("label").click())}function C(n){if(n.key===wa||n.key===Ve){let s=n.target.querySelector("label");v.querySelector("#"+s.getAttribute("for")).click()}}function U(n){return r+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function $(n,s){let m=U(s),b=H("li",null,{"data-option":s.value}),k=H("button",b,{type:"button",innerHTML:"<label for="+m+">"+s.text+xa+"</label>"});n.appendChild(b),k.addEventListener("click",z),k.addEventListener("keydown",C)}function ie(n){let s=i.getOption(n)||i.getOption(i.getIndex());if(s){if(s.checked){v.classList.contains("u-max-selections")&&v.classList.remove("u-max-selections");let m='[data-option="'+s.value+'"]',b=p.querySelector(m);typeof b!="undefined"&&b&&(p==null||p.removeChild(b))}else d!=null&&d.renderTags&&p&&$(p,s);i.toggleOption(n),i.isAtMaxSelections()&&v.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}i.resetIndex(),t=!1,y.getAttribute("aria-hidden")==="false"&&f.focus()}function fe(n){ie(Number(n.target.getAttribute("data-index"))),x()}function ye(){h.addEventListener("mousemove",function(m){let b=m.target;m.offsetX>b.offsetWidth-35?b.style.cursor="pointer":b.style.cursor="auto"}),h.addEventListener("mouseup",function(m){let b=m.target;m.offsetX>b.offsetWidth-35&&y.offsetHeight===140&&f.blur()}),f.addEventListener("input",function(){O(this.value)}),f.addEventListener("focus",function(){y.getAttribute("aria-hidden")==="true"&&g()}),f.addEventListener("blur",function(){!t&&y.getAttribute("aria-hidden")==="false"&&w()}),f.addEventListener("keydown",function(m){let b=m.key;y.getAttribute("aria-hidden")==="true"&&b!==vt&&g(),b===Ve?(m.preventDefault(),D(de)):b===yt?(x(),w()):b===xt?D(de):b===vt&&!m.shiftKey&&y.getAttribute("aria-hidden")==="false"&&w()}),v.addEventListener("mousedown",function(){t=!0}),v.addEventListener("keydown",function(m){let b=m.key,k=m.target,P=k.checked;if(b===Ve){m.preventDefault(),k.checked=!P;let G=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(G)}else b===yt?(f.focus(),w()):b===ka?D(ft):b===xt&&D(de)}),y.addEventListener("mousedown",function(m){m.target.tagName==="LABEL"&&(t=!0)});let n=v.querySelectorAll("input");for(let m=0,b=n.length;m<b;m++)n[m].addEventListener("change",fe);let s=p.querySelectorAll("button");for(let m=0,b=s.length;m<b;m++)s[m].addEventListener("click",z),s[m].addEventListener("keydown",C)}function oe(){c=document.createElement("div"),c.className=N,p=H("ul",null,{className:N+"__choices"}),h=H("header",c,{className:N+"__header"}),f=H("input",h,{className:N+"__search "+_a,type:"text",placeholder:o||"Select up to five",id:e.id,autocomplete:"off"}),y=H("fieldset",c,{className:N+"__fieldset u-invisible","aria-hidden":"true"});let n=N+"__options";i.isAtMaxSelections()&&(n+=" u-max-selections"),v=H("ul",y,{className:n});let s,m,b;for(let k=0,P=l.length;k<P;k++){s=l[k],m=U(s),b=i.getOption(k).checked;let G=H("li",v,{"data-option":s.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});H("input",G,{id:m,type:"checkbox",value:s.value,name:r,class:va+" "+N+"__checkbox",checked:b,"data-index":k}),H("label",G,{for:m,textContent:s.text,className:N+"__label a-label"}),T.push(G),b&&(d!=null&&d.renderTags)&&$(p,s)}return c.insertBefore(p,h),e.parentNode.insertBefore(c,e),c.appendChild(e),c}function xe(n=_t){if(!M(e))return this;if(Ge())return this;if(S=this,r=e.name||e.id,o=e.getAttribute("placeholder"),l=e.options||[],d=_e(_e({},_t),n),l.length>0){i=new ut(l,r,d).init();let s=oe();e.parentNode.removeChild(e),e=s,M(e),ye()}return this}function ve(){return i}this.init=xe,this.expand=g,this.collapse=w;let Y=new A;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.getModel=ve,this.updateSelections=ie,this.selectionClickHandler=z,this.selectionKeyDownHandler=C,this}ce.BASE_CLASS=N;ce.init=a=>F(`.${N}`,ce,void 0,a);var Re={};u(Re,{default:()=>Ea});var Ea={};var Ue={};u(Ue,{default:()=>Aa});var Aa={};var Pe={};u(Pe,{default:()=>Ta});var Ta={};var Xe={};u(Xe,{default:()=>za});var za={};var Ke={};u(Ke,{default:()=>Ia});var Ia={};var Je={};u(Je,{default:()=>Ma});var Ma={};var Ye={};u(Ye,{default:()=>Ca});var Ca={};var We={};u(We,{default:()=>Fa});var Fa={};var $e={};u($e,{default:()=>Va});var Va={};var Ze={};u(Ze,{default:()=>Ra});var Ra={};var Qe={};u(Qe,{default:()=>Pa});var Pa={};var et={};u(et,{default:()=>Ka});var Ka={};var tt={};u(tt,{default:()=>Ya});var Ya={};var at={};u(at,{default:()=>$a});var $a={};var it={};u(it,{default:()=>Qa});var Qa={};var ot={};u(ot,{default:()=>ti});var ti={};var rt={};u(rt,{default:()=>ii});var ii={};var nt={};u(nt,{default:()=>ri});var ri={};var lt={};u(lt,{default:()=>li});var li={};var st={};u(st,{default:()=>di});var di={};function he(a,e){let t;if(W(a,e))return t=a,t;if(a){let r="["+B+"="+e+"]";t=a.querySelector(r)}if(!t){let r=e+" behavior not found on passed DOM node!";throw new Error(r)}return t}var ci=Object.prototype.toString;var hi=Array.isArray||function(e){return ci.call(e)==="[object Array]"};function Ge(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var ee=se+"flyout-menu",mi="["+B+"="+ee;function X(a,e=!0){let t=he(a,ee),r=V(a),o=he(a,ee+"_content"),i=0,l=0,d=1,c=2,p=3,h,f,y,v=$.bind(this),T=U.bind(this),S,E=!0,j=!1;function V(n){let s=[],m=n.querySelectorAll(`${mi}_trigger]`),b,k,P;for(let G=m.length>>>0;G--;){for(P=!1,b=m[G],k=b.parentElement;k!==n;)k.getAttribute(B)&&k.getAttribute(B).split(" ").indexOf(ee)!==-1?(P=!0,k=n):k=k.parentElement;P||s.unshift(m[G])}return s}function R(n=!1){return i=n?p:l,r.forEach(s=>{O("expanded",s,n),s.addEventListener("click",x.bind(this)),s.addEventListener("touchstart",g,{passive:!0}),s.addEventListener("mouseover",w.bind(this)),s.addEventListener("mouseout",D.bind(this))}),o.setAttribute("data-open",n?"true":"false"),e&&!n&&o.setAttribute("hidden",""),oe(),this}function O(n,s,m){let b=String(m);return s.setAttribute("aria-"+n,b),b}function g(){j=!0}function w(n){E||(j||this.dispatchEvent("triggerover",{target:this,trigger:n.target,type:"triggerover"}),j=!1)}function D(n){E||this.dispatchEvent("triggerout",{target:this,trigger:n.target,type:"triggerout"})}function x(n){if(!E)switch(this.dispatchEvent("triggerclick",{target:this,trigger:n.target,type:"triggerclick"}),n.preventDefault(),i){case l:case d:this.expand();break;case c:case p:this.collapse();break}}function z(){if(h==null||h.halt(),i===c||i===p)return this;if(i=c,e&&o.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!f||!y)return T(),this;let n=h==null?void 0:h.isAnimated();return n&&h.addEventListener(_.END_EVENT,T),f(),n||T(),this}function C(){if(h==null||h.halt(),i===d||i===l)return this;for(let s=0,m=r.length;s<m;s++)O("expanded",r[s],!1);if(o.setAttribute("data-open","false"),i=d,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!y||!f)return v(),this;let n=h==null?void 0:h.isAnimated();return n&&h.addEventListener(_.END_EVENT,v),y(),n||v(),this}function U(){i=p,o.setAttribute("data-open","true"),h&&h.removeEventListener(_.END_EVENT,T),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,s=r.length;n<s;n++)O("expanded",r[n],!0)}function $(){i=l,e&&o.setAttribute("hidden",""),h&&h.removeEventListener(_.END_EVENT,v),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function ie(n,s,m){h=n,s&&s!==y&&(y=s),m&&m!==f&&(f=m)}function fe(){h&&h.remove();let n;h=n,f=n,y=n}function ye(){return{container:t,content:o,trigger:r}}function oe(){return E&&(E=!1),!E}function xe(){return E||(E=!0),E}function ve(n){return S=n,this}let Y=new A;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.init=R,this.expand=z,this.collapse=C,this.setTransition=ie,this.clearTransition=fe,this.getData=()=>S,this.getTransition=()=>h,this.getDom=ye,this.isAnimating=()=>i===c||i===d,this.isExpanded=()=>i===p,this.resume=oe,this.setData=ve,this.suspend=xe,X.BASE_CLASS=ee,this}var me={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function wt(a){let e=new A,t=new _(a,me,this);function r(l){return t.init(l),this}function o(){return t.applyClass(me.ALPHA_100),this}function i(){return t.applyClass(me.ALPHA_0),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.remove=t.remove,this.setElement=t.setElement,this.fadeIn=o,this.fadeOut=i,this.init=r,this}wt.CLASSES=me;function _(a,e,t){let r=e,o=a;if(!t)throw new Error("Child transition argument must be defined!");let i=t,l,d,c,p=!1,h=!1,f=!1;if(typeof r.CSS_PROPERTY=="undefined"||typeof r.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function y(){d&&p?(o.addEventListener(d,c),i.dispatchEvent(_.BEGIN_EVENT,{target:i,type:_.BEGIN_EVENT}),o.classList.add(_.ANIMATING_CLASS),h=!0):(i.dispatchEvent(_.BEGIN_EVENT,{target:i,type:_.BEGIN_EVENT}),c())}function v(){o.removeEventListener(d,c)}function T(x){return x&&x.propertyName!==r.CSS_PROPERTY?!1:(v(),o.classList.remove(_.ANIMATING_CLASS),i.dispatchEvent(_.END_EVENT,{target:i,type:_.END_EVENT}),h=!1,!0)}function S(){let x;for(x in r)({}).hasOwnProperty.call(r,x)&&r[x]!==r.BASE_CLASS&&o.classList.contains(r[x])&&o.classList.remove(r[x])}function E(){h&&(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 j(){E(),S(),o.classList.remove(r.BASE_CLASS)}function V(){o.classList.remove(_.NO_ANIMATION_CLASS),p=!0}function R(){o.classList.add(_.NO_ANIMATION_CLASS),p=!1}function O(x){if(!x){let $="Element does not have TransitionEnd event. It may be null!";throw new Error($)}let z,C={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},U;for(U in C)if({}.hasOwnProperty.call(C,U)&&typeof x.style[U]!="undefined"){z=C[U];break}return z}function g(x){j(),V(),o=x,o.classList.add(r.BASE_CLASS),d=O(o)}function w(x){if(p=!o.classList.contains(_.NO_ANIMATION_CLASS),c=T.bind(this),g(o),!x)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return o.classList.add(x),this}function D(x){return f||(S(),f=!0),o.classList.contains(x)?!1:(v(),o.classList.remove(l),l=x,y(),o.classList.add(l),!0)}return this.animateOff=R,this.animateOn=V,this.applyClass=D,this.halt=E,this.init=w,this.isAnimated=()=>p,this.remove=j,this.setElement=g,this}_.BEGIN_EVENT="transitionbegin";_.END_EVENT="transitionend";_.NO_ANIMATION_CLASS="u-no-animation";_.ANIMATING_CLASS="u-is-animating";var te={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 I(a){let e=new A,t=new _(a,te,this),r=0;function o(){let y=a.scrollHeight+"px";a.style.maxHeight=y}function i(){window.removeEventListener("load",i),o()}function l(f){return t.init(f),window.addEventListener("load",i),window.addEventListener("resize",()=>{o()}),this}function d(){return o(),t.applyClass(te.MH_DEFAULT),(!r||a.scrollHeight>r)&&(r=a.scrollHeight),this}function c(){return t.applyClass(te.MH_SUMMARY),r=a.scrollHeight,this}function p(){return t.applyClass(te.MH_ZERO),r=a.scrollHeight,this}function h(){return a.style.maxHeight="",t.remove()}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.refresh=o,this.remove=h,this.init=l,this.maxHeightDefault=d,this.maxHeightSummary=c,this.maxHeightZero=p,this}I.CLASSES=te;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 kt(a){let e=new A,t=new _(a,K,this);function r(c){return t.init(c),this}function o(){return t.applyClass(K.MOVE_TO_ORIGIN),this}function i(c){c=c||1;let p=[K.MOVE_LEFT,K.MOVE_LEFT_2X,K.MOVE_LEFT_3X];return t.applyClass(p[c-1]),this}function l(){return t.applyClass(K.MOVE_RIGHT),this}function d(){return t.applyClass(K.MOVE_UP),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.remove=t.remove,this.init=r,this.moveLeft=()=>i(1),this.moveLeft2=()=>i(2),this.moveLeft3=()=>i(3),this.moveRight=l,this.moveToOrigin=o,this.moveUp=d,this}kt.CLASSES=K;var dt={};u(dt,{default:()=>ui});var ui={};var Z="o-expandable";function J(a){let e=q(a,Z),t,r,o,i,l;function d(){if(!M(e))return this;t=e.querySelector(`.${Z}__header`),r=e.querySelector(`.${Z}__content`),o=e.querySelector(`.${Z}__label`);let h=e.classList.contains(`${Z}--onload-open`);L(e,"behavior_flyout-menu"),L(t,"behavior_flyout-menu_trigger"),L(r,"behavior_flyout-menu_content");let f=h?I.CLASSES.MH_DEFAULT:I.CLASSES.MH_ZERO;return i=new I(r).init(f),l=new X(e),l.setTransition(i,i.maxHeightZero,i.maxHeightDefault),l.init(h),l.addEventListener("expandbegin",()=>{r.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),l.addEventListener("collapseend",()=>{r.classList.add("u-hidden")}),this}function c(){return o.textContent.trim()}this.init=d,this.expand=()=>l.expand(),this.collapse=()=>l.collapse(),this.isExpanded=()=>l.isExpanded(),this.refresh=()=>l.getTransition().refresh(),this.getLabelText=c;let p=new A;return this.addEventListener=p.addEventListener,this.removeEventListener=p.removeEventListener,this.dispatchEvent=p.dispatchEvent,this}J.BASE_CLASS=Z;J.init=a=>F(`.${J.BASE_CLASS}`,J,a);var ct={};u(ct,{default:()=>fi});var fi={};var pe="o-expandable-group";function be(a){let e=q(a,pe),t=e.classList.contains(`${pe}--accordion`),r,o;function i(d){let c=d.target;o&&o!==c&&o.collapse(),o=c}function l(d){return M(e)?(t&&(r=d,r.forEach(c=>{c.addEventListener("expandbegin",i)})),this):this}return this.init=l,this}be.BASE_CLASS=pe;be.init=a=>{(a||document).querySelectorAll(`.${pe}`).forEach(r=>{let o=F(`.${J.BASE_CLASS}`,J,r);new be(r).init(o)})};var ht={};u(ht,{default:()=>xi});var xi={};var Q="o-summary";function ue(a){let e=q(a,Q),t=e.classList.contains(`${Q}--mobile`),r=e.querySelector(`.${Q}__content`),o=e.querySelector(`.${Q}__btn`),i,l,d;function c(){return M(e)?(window.addEventListener("load",p),this):this}function p(){window.removeEventListener("load",p),d=!v(),L(e,"behavior_flyout-menu"),L(r,"behavior_flyout-menu_content"),L(o,"behavior_flyout-menu_trigger"),l=new X(e,!1),i=new I(r),i.init(d?I.CLASSES.MH_SUMMARY:I.CLASSES.MH_DEFAULT),l.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),l.addEventListener("triggerclick",T),l.init(),y(),window.addEventListener("resize",y),"onorientationchange"in window&&window.addEventListener("orientationchange",y),e.addEventListener("focusin",h),r.addEventListener("click",f)}function h(g){!d&&g.target!==o&&(o.click(),e.removeEventListener("focusin",h))}function f(g){g.target.tagName!=="A"&&l.isExpanded()&&i.refresh()}function y(){v()?R():V()}function v(){return t&&!ke(le)||r.scrollHeight<=88}function T(){l.addEventListener("expandend",S)}function S(){j(),window.removeEventListener("resize",y),window.removeEventListener("orientationchange",y),l.removeEventListener("expandend",S),l.suspend(),i.remove()}function E(){o.classList.remove("u-hidden")}function j(){o.classList.add("u-hidden")}function V(){return d&&(l.collapse(),i.animateOn(),E(),d=!1),!d}function R(){return d||(i.animateOff(),l.expand(),j(),d=!0),d}let O=new A;return this.addEventListener=O.addEventListener,this.removeEventListener=O.removeEventListener,this.dispatchEvent=O.dispatchEvent,this.init=c,this}ue.BASE_CLASS=Q;ue.init=a=>F(`.${Q}`,ue,a);var ae="o-summary-minimal";function ge(a){let e=q(a,ae),t=e.querySelector(`.${ae}__content`),r=e.querySelector(`.${ae}__btn`),o,i;function l(){return M(e)?(L(e,"behavior_flyout-menu"),L(t,"behavior_flyout-menu_content"),L(r,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),i=new X(e,!1),o=new I(t),o.init(I.CLASSES.MH_SUMMARY),i.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),i.init(),e.addEventListener("focusin",c),t.addEventListener("click",p),i.collapse(),o.animateOn()}function c(f){f.target!==r&&(r.click(),e.removeEventListener("focusin",c))}function p(f){f.target.tagName!=="A"&&i.isExpanded()&&o.refresh()}let h=new A;return this.addEventListener=h.addEventListener,this.removeEventListener=h.removeEventListener,this.dispatchEvent=h.dispatchEvent,this.init=l,this}ge.BASE_CLASS=ae;ge.init=a=>F(`.${ae}`,ge,a);})();
1
+ (()=>{var bt=Object.defineProperty;var mt=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable;var pt=(a,e,t)=>e in a?bt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,_e=(a,e)=>{for(var t in e||(e={}))Et.call(e,t)&&pt(a,t,e[t]);if(mt)for(var t of mt(e))Dt.call(e,t)&&pt(a,t,e[t]);return a};var u=(a,e)=>{for(var t in e)bt(a,t,{get:e[t],enumerable:!0})};var we={};u(we,{default:()=>Lt});var Lt={};var re={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function ne(){let a=getComputedStyle(document.body).fontSize;return a=a===""?-1:a,parseFloat(a)}function Tt(a,e){let t=a.min,r=a.max;ne()>0&&ne()!==16&&(t=t/16*ne(),r=r/16*ne());let i=t||0,l=r||Number.POSITIVE_INFINITY;return i<=e&&e<=l}function jt(a){let e={};a=a||window.innerWidth;let t;for(t in re)e[t]=Tt(re[t],a);return e}var le="mobile",zt="tablet",Ot="desktop";function ke(a){let e=!1,t=jt();return(a===le&&t.bpXS||a===zt&&t.bpSM||a===Ot&&(t.bpMED||t.bpLG||t.bpXL))&&(e=!0),e}var B="data-js-hook",se="behavior_",Se="state_";function A(){let a={};function e(o,i){return{}.hasOwnProperty.call(a,o)?a[o].push(i):a[o]=[i],this}function t(o,i){if(!{}.hasOwnProperty.call(a,o))return this;let l=a[o].indexOf(i);return l!==-1&&a[o].splice(l,1),this}function r(o,i){if(!{}.hasOwnProperty.call(a,o))return this;i=i||{};let l=a[o];for(let d=0,c=l.length;d<c;d++)l[d].call(this,i);return this}return this.addEventListener=e,this.removeEventListener=t,this.dispatchEvent=r,this.getRegisteredEvents=()=>a,this}function W(a,e){if(!a)return!1;let t=a.getAttribute(B);return t?(t=t.split(" "),t.indexOf(e)>-1):!1}function L(a,e){if(W(a,e))return e;if(e.indexOf(" ")!==-1){let r=B+" values cannot contain spaces!";throw new Error(r)}let t=a.getAttribute(B);return t!==null&&(e=t+" "+e),a.setAttribute(B,e),e}var Ee=Se+"atomic_init";function It(a,e){if(!a||!a.classList){let t=a+' is not valid. Check that element is a DOM node with class "'+e+'"';throw new Error(t)}return a}function Bt(a,e){let t=a.classList.contains(e)?a:a.querySelector("."+e);if(!t){let r=e+" not found on or in passed DOM node.";throw new Error(r)}return t}function C(a,e){return It(a,e),Bt(a,e)}function M(a){return W(a,Ee)?!1:(L(a,Ee),!0)}function q(a,e,t,r={}){let i=(t||document).querySelectorAll(a),l=[],d,c;for(let p=0,h=i.length;p<h;p++)c=i[p],W(c,Ee)===!1&&(d=new e(c),d.init(r),l.push(d));return l}var De={};u(De,{default:()=>Nt});var Nt={};var Ae={};u(Ae,{default:()=>qt});var qt={};var Le={};u(Le,{default:()=>Ht});var Ht={};var Te={};u(Te,{default:()=>Gt});var Gt={};var je={};u(je,{default:()=>Ut});var Ut={};var ze={};u(ze,{default:()=>Xt});var Xt={};var Oe={};u(Oe,{default:()=>Jt});var Jt={};var Ie={};u(Ie,{default:()=>Wt});var Wt={};var Be={};u(Be,{default:()=>Zt});var Zt={};var Me={};u(Me,{default:()=>ea});var ea={};var Ne={};u(Ne,{default:()=>aa});var aa={};var Ce={};u(Ce,{default:()=>oa});var oa={};var qe={};u(qe,{default:()=>na});var na={};var Fe={};u(Fe,{default:()=>sa});var sa={};var He={};u(He,{default:()=>ca});var ca={};var ha;function ma(a){return a.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function pa(a,e){return RegExp(ma(e.trim()),"i").test(a)}function ba(a,e,t){let r=a,o=e,i=(t==null?void 0:t.maxSelections)||5,l=[],d=[],c=[],p=[],h=-1;function f(g){return o+"-"+g.value.trim().replace(/\s+/g,"-").toLowerCase()}function y(){return d.length>=i}function v(g){let w,D=[],x=!1;for(let z=0,N=g.length;z<N;z++)w=g[z],x=y()?!1:w.defaultSelected,D.push({id:f(w),value:w.value,text:w.text,checked:x}),x&&d.push(z);return D}function T(){return l=v(r),this}function S(g){return l[g].checked=!l[g].checked,d.length<i&&l[g].checked?(d.push(g),d.sort(),!0):(l[g].checked=!1,d=d.filter(function(w){return w!==g}),!1)}function E(g,w,D,x){return pa(w.text,x)&&g.push(D),g}function j(g){return Object.prototype.toString.call(g)!=="[object String]"&&(g=""),p=c,l.length>0&&(c=l.reduce(function(w,D,x){return E(w,D,x,g)},[])),h=-1,c}function V(g){return l[g]}function R(g){let w=c.length,D=w===0?l.length:w;g<0?h=-1:g>=D?h=D-1:h=g}function O(){return h}return this.init=T,this.toggleOption=S,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=y,this.filterIndices=j,this.clearFilter=function(){return c=p=[],ha},this.getFilterIndices=function(){return c},this.getLastFilterIndices=function(){return p},this.getIndex=O,this.setIndex=R,this.resetIndex=function(){return h=-1,h},this.getOption=V,this}var ut=ba;function F(a,e,t){let r=document.createElement(a);return Object.keys(t).forEach(o=>{let i=t[o];o in r?r[o]=i:r.setAttribute(o,i)}),e&&e.appendChild(r),r}var gt='<svg xmlns="http://www.w3.org/2000/svg" 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 xa=gt,H="o-multiselect",va="a-checkbox",_a="a-text-input",ft="prev",de="next",Ve="Enter",wa=" ",yt="Escape",ka="ArrowUp",xt="ArrowDown",vt="Tab",_t={renderTags:!0,maxSelections:5};function ce(a){a.classList.add(H);let e=C(a,H),t=!1,r,o,i,l,d,c,p,h,f,y,v,T=[],S;function E(){v.classList.remove("u-no-results"),v.classList.add("u-filtered");let n=i.getLastFilterIndices();for(let s=0,m=n.length;s<m;s++)T[n[s]].classList.remove("u-filter-match");n=i.getFilterIndices();for(let s=0,m=n.length;s<m;s++)T[n[s]].classList.add("u-filter-match")}function j(){v.classList.remove("u-filtered","u-no-results");for(let n=0,s=v.children.length;n<s;n++)v.children[n].classList.remove("u-filter-match");i.clearFilter()}function V(){v.classList.add("u-no-results"),v.classList.remove("u-filtered")}function R(n){return n.length>0?(E(),!0):(V(),!1)}function O(n){j(),i.resetIndex();let s=i.filterIndices(n);R(s)}function g(){return c.classList.add("u-active"),y.classList.remove("u-invisible"),y.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return c.classList.remove("u-active"),y.classList.add("u-invisible"),y.setAttribute("aria-hidden",!0),i.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function D(n){n===de?i.setIndex(i.getIndex()+1):n===ft&&i.setIndex(i.getIndex()-1);let s=i.getIndex();if(s>-1){let m=s,b=i.getFilterIndices();b.length>0&&(m=b[s]);let P=i.getOption(m).value,St=v.querySelector('[data-option="'+P+'"]').querySelector("input");t=!0,St.focus()}else t=!1,f.focus()}function x(){f.value="",j()}function z(n){let s=n.target;s.tagName==="BUTTON"&&(n.preventDefault(),s.removeEventListener("click",z),s.querySelector("label").click())}function N(n){if(n.key===wa||n.key===Ve){let s=n.target.querySelector("label");v.querySelector("#"+s.getAttribute("for")).click()}}function U(n){return r+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function $(n,s){let m=U(s),b=F("li",null,{"data-option":s.value}),k=F("button",b,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+m+">"+s.text+xa+"</label>"});n.appendChild(b),k.addEventListener("click",z),k.addEventListener("keydown",N)}function ie(n){let s=i.getOption(n)||i.getOption(i.getIndex());if(s){if(s.checked){v.classList.contains("u-max-selections")&&v.classList.remove("u-max-selections");let m='[data-option="'+s.value+'"]',b=p.querySelector(m);typeof b!="undefined"&&b&&(p==null||p.removeChild(b))}else d!=null&&d.renderTags&&p&&$(p,s);i.toggleOption(n),i.isAtMaxSelections()&&v.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}i.resetIndex(),t=!1,y.getAttribute("aria-hidden")==="false"&&f.focus()}function fe(n){ie(Number(n.target.getAttribute("data-index"))),x()}function ye(){h.addEventListener("mousemove",function(m){let b=m.target;m.offsetX>b.offsetWidth-35?b.style.cursor="pointer":b.style.cursor="auto"}),h.addEventListener("mouseup",function(m){let b=m.target;m.offsetX>b.offsetWidth-35&&y.offsetHeight===140&&f.blur()}),f.addEventListener("input",function(){O(this.value)}),f.addEventListener("focus",function(){y.getAttribute("aria-hidden")==="true"&&g()}),f.addEventListener("blur",function(){!t&&y.getAttribute("aria-hidden")==="false"&&w()}),f.addEventListener("keydown",function(m){let b=m.key;y.getAttribute("aria-hidden")==="true"&&b!==vt&&g(),b===Ve?(m.preventDefault(),D(de)):b===yt?(x(),w()):b===xt?D(de):b===vt&&!m.shiftKey&&y.getAttribute("aria-hidden")==="false"&&w()}),v.addEventListener("mousedown",function(){t=!0}),v.addEventListener("keydown",function(m){let b=m.key,k=m.target,P=k.checked;if(b===Ve){m.preventDefault(),k.checked=!P;let G=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(G)}else b===yt?(f.focus(),w()):b===ka?D(ft):b===xt&&D(de)}),y.addEventListener("mousedown",function(m){m.target.tagName==="LABEL"&&(t=!0)});let n=v.querySelectorAll("input");for(let m=0,b=n.length;m<b;m++)n[m].addEventListener("change",fe);let s=p.querySelectorAll("button");for(let m=0,b=s.length;m<b;m++)s[m].addEventListener("click",z),s[m].addEventListener("keydown",N)}function oe(){c=document.createElement("div"),c.className=H,p=F("ul",null,{className:"m-tag-group"}),h=F("header",c,{className:H+"__header"}),f=F("input",h,{className:H+"__search "+_a,type:"text",placeholder:o||"Select up to five",id:e.id,autocomplete:"off"}),y=F("fieldset",c,{className:H+"__fieldset u-invisible","aria-hidden":"true"});let n=H+"__options";i.isAtMaxSelections()&&(n+=" u-max-selections"),v=F("ul",y,{className:n});let s,m,b;for(let k=0,P=l.length;k<P;k++){s=l[k],m=U(s),b=i.getOption(k).checked;let G=F("li",v,{"data-option":s.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});F("input",G,{id:m,type:"checkbox",value:s.value,name:r,class:va+" "+H+"__checkbox",checked:b,"data-index":k}),F("label",G,{for:m,textContent:s.text,className:H+"__label a-label"}),T.push(G),b&&(d!=null&&d.renderTags)&&$(p,s)}return c.insertBefore(p,h),e.parentNode.insertBefore(c,e),c.appendChild(e),c}function xe(n=_t){if(!M(e))return this;if(Ge())return this;if(S=this,r=e.name||e.id,o=e.getAttribute("placeholder"),l=e.options||[],d=_e(_e({},_t),n),l.length>0){i=new ut(l,r,d).init();let s=oe();e.parentNode.removeChild(e),e=s,M(e),ye()}return this}function ve(){return i}this.init=xe,this.expand=g,this.collapse=w;let Y=new A;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.getModel=ve,this.updateSelections=ie,this.selectionClickHandler=z,this.selectionKeyDownHandler=N,this}ce.BASE_CLASS=H;ce.init=a=>q(`.${H}`,ce,void 0,a);var Re={};u(Re,{default:()=>Ea});var Ea={};var Ue={};u(Ue,{default:()=>Aa});var Aa={};var Pe={};u(Pe,{default:()=>Ta});var Ta={};var Xe={};u(Xe,{default:()=>za});var za={};var Ke={};u(Ke,{default:()=>Ia});var Ia={};var Je={};u(Je,{default:()=>Ma});var Ma={};var Ye={};u(Ye,{default:()=>Ca});var Ca={};var We={};u(We,{default:()=>Fa});var Fa={};var $e={};u($e,{default:()=>Va});var Va={};var Ze={};u(Ze,{default:()=>Ra});var Ra={};var Qe={};u(Qe,{default:()=>Pa});var Pa={};var et={};u(et,{default:()=>Ka});var Ka={};var tt={};u(tt,{default:()=>Ya});var Ya={};var at={};u(at,{default:()=>$a});var $a={};var it={};u(it,{default:()=>Qa});var Qa={};var ot={};u(ot,{default:()=>ti});var ti={};var rt={};u(rt,{default:()=>ii});var ii={};var nt={};u(nt,{default:()=>ri});var ri={};var lt={};u(lt,{default:()=>li});var li={};var st={};u(st,{default:()=>di});var di={};function he(a,e){let t;if(W(a,e))return t=a,t;if(a){let r="["+B+"="+e+"]";t=a.querySelector(r)}if(!t){let r=e+" behavior not found on passed DOM node!";throw new Error(r)}return t}var ci=Object.prototype.toString;var hi=Array.isArray||function(e){return ci.call(e)==="[object Array]"};function Ge(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var ee=se+"flyout-menu",mi="["+B+"="+ee;function X(a,e=!0){let t=he(a,ee),r=V(a),o=he(a,ee+"_content"),i=0,l=0,d=1,c=2,p=3,h,f,y,v=$.bind(this),T=U.bind(this),S,E=!0,j=!1;function V(n){let s=[],m=n.querySelectorAll(`${mi}_trigger]`),b,k,P;for(let G=m.length>>>0;G--;){for(P=!1,b=m[G],k=b.parentElement;k!==n;)k.getAttribute(B)&&k.getAttribute(B).split(" ").indexOf(ee)!==-1?(P=!0,k=n):k=k.parentElement;P||s.unshift(m[G])}return s}function R(n=!1){return i=n?p:l,r.forEach(s=>{O("expanded",s,n),s.addEventListener("click",x.bind(this)),s.addEventListener("touchstart",g,{passive:!0}),s.addEventListener("mouseover",w.bind(this)),s.addEventListener("mouseout",D.bind(this))}),o.setAttribute("data-open",n?"true":"false"),e&&!n&&o.setAttribute("hidden",""),oe(),this}function O(n,s,m){let b=String(m);return s.setAttribute("aria-"+n,b),b}function g(){j=!0}function w(n){E||(j||this.dispatchEvent("triggerover",{target:this,trigger:n.target,type:"triggerover"}),j=!1)}function D(n){E||this.dispatchEvent("triggerout",{target:this,trigger:n.target,type:"triggerout"})}function x(n){if(!E)switch(this.dispatchEvent("triggerclick",{target:this,trigger:n.target,type:"triggerclick"}),n.preventDefault(),i){case l:case d:this.expand();break;case c:case p:this.collapse();break}}function z(){if(h==null||h.halt(),i===c||i===p)return this;if(i=c,e&&o.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!f||!y)return T(),this;let n=h==null?void 0:h.isAnimated();return n&&h.addEventListener(_.END_EVENT,T),f(),n||T(),this}function N(){if(h==null||h.halt(),i===d||i===l)return this;for(let s=0,m=r.length;s<m;s++)O("expanded",r[s],!1);if(o.setAttribute("data-open","false"),i=d,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!y||!f)return v(),this;let n=h==null?void 0:h.isAnimated();return n&&h.addEventListener(_.END_EVENT,v),y(),n||v(),this}function U(){i=p,o.setAttribute("data-open","true"),h&&h.removeEventListener(_.END_EVENT,T),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,s=r.length;n<s;n++)O("expanded",r[n],!0)}function $(){i=l,e&&o.setAttribute("hidden",""),h&&h.removeEventListener(_.END_EVENT,v),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function ie(n,s,m){h=n,s&&s!==y&&(y=s),m&&m!==f&&(f=m)}function fe(){h&&h.remove();let n;h=n,f=n,y=n}function ye(){return{container:t,content:o,trigger:r}}function oe(){return E&&(E=!1),!E}function xe(){return E||(E=!0),E}function ve(n){return S=n,this}let Y=new A;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.init=R,this.expand=z,this.collapse=N,this.setTransition=ie,this.clearTransition=fe,this.getData=()=>S,this.getTransition=()=>h,this.getDom=ye,this.isAnimating=()=>i===c||i===d,this.isExpanded=()=>i===p,this.resume=oe,this.setData=ve,this.suspend=xe,X.BASE_CLASS=ee,this}var me={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function wt(a){let e=new A,t=new _(a,me,this);function r(l){return t.init(l),this}function o(){return t.applyClass(me.ALPHA_100),this}function i(){return t.applyClass(me.ALPHA_0),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.remove=t.remove,this.setElement=t.setElement,this.fadeIn=o,this.fadeOut=i,this.init=r,this}wt.CLASSES=me;function _(a,e,t){let r=e,o=a;if(!t)throw new Error("Child transition argument must be defined!");let i=t,l,d,c,p=!1,h=!1,f=!1;if(typeof r.CSS_PROPERTY=="undefined"||typeof r.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function y(){d&&p?(o.addEventListener(d,c),i.dispatchEvent(_.BEGIN_EVENT,{target:i,type:_.BEGIN_EVENT}),o.classList.add(_.ANIMATING_CLASS),h=!0):(i.dispatchEvent(_.BEGIN_EVENT,{target:i,type:_.BEGIN_EVENT}),c())}function v(){o.removeEventListener(d,c)}function T(x){return x&&x.propertyName!==r.CSS_PROPERTY?!1:(v(),o.classList.remove(_.ANIMATING_CLASS),i.dispatchEvent(_.END_EVENT,{target:i,type:_.END_EVENT}),h=!1,!0)}function S(){let x;for(x in r)({}).hasOwnProperty.call(r,x)&&r[x]!==r.BASE_CLASS&&o.classList.contains(r[x])&&o.classList.remove(r[x])}function E(){h&&(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 j(){E(),S(),o.classList.remove(r.BASE_CLASS)}function V(){o.classList.remove(_.NO_ANIMATION_CLASS),p=!0}function R(){o.classList.add(_.NO_ANIMATION_CLASS),p=!1}function O(x){if(!x){let $="Element does not have TransitionEnd event. It may be null!";throw new Error($)}let z,N={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},U;for(U in N)if({}.hasOwnProperty.call(N,U)&&typeof x.style[U]!="undefined"){z=N[U];break}return z}function g(x){j(),V(),o=x,o.classList.add(r.BASE_CLASS),d=O(o)}function w(x){if(p=!o.classList.contains(_.NO_ANIMATION_CLASS),c=T.bind(this),g(o),!x)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return o.classList.add(x),this}function D(x){return f||(S(),f=!0),o.classList.contains(x)?!1:(v(),o.classList.remove(l),l=x,y(),o.classList.add(l),!0)}return this.animateOff=R,this.animateOn=V,this.applyClass=D,this.halt=E,this.init=w,this.isAnimated=()=>p,this.remove=j,this.setElement=g,this}_.BEGIN_EVENT="transitionbegin";_.END_EVENT="transitionend";_.NO_ANIMATION_CLASS="u-no-animation";_.ANIMATING_CLASS="u-is-animating";var te={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 I(a){let e=new A,t=new _(a,te,this),r=0;function o(){let y=a.scrollHeight+"px";a.style.maxHeight=y}function i(){window.removeEventListener("load",i),o()}function l(f){return t.init(f),window.addEventListener("load",i),window.addEventListener("resize",()=>{o()}),this}function d(){return o(),t.applyClass(te.MH_DEFAULT),(!r||a.scrollHeight>r)&&(r=a.scrollHeight),this}function c(){return t.applyClass(te.MH_SUMMARY),r=a.scrollHeight,this}function p(){return t.applyClass(te.MH_ZERO),r=a.scrollHeight,this}function h(){return a.style.maxHeight="",t.remove()}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.refresh=o,this.remove=h,this.init=l,this.maxHeightDefault=d,this.maxHeightSummary=c,this.maxHeightZero=p,this}I.CLASSES=te;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 kt(a){let e=new A,t=new _(a,K,this);function r(c){return t.init(c),this}function o(){return t.applyClass(K.MOVE_TO_ORIGIN),this}function i(c){c=c||1;let p=[K.MOVE_LEFT,K.MOVE_LEFT_2X,K.MOVE_LEFT_3X];return t.applyClass(p[c-1]),this}function l(){return t.applyClass(K.MOVE_RIGHT),this}function d(){return t.applyClass(K.MOVE_UP),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.remove=t.remove,this.init=r,this.moveLeft=()=>i(1),this.moveLeft2=()=>i(2),this.moveLeft3=()=>i(3),this.moveRight=l,this.moveToOrigin=o,this.moveUp=d,this}kt.CLASSES=K;var dt={};u(dt,{default:()=>ui});var ui={};var Z="o-expandable";function J(a){let e=C(a,Z),t,r,o,i,l;function d(){if(!M(e))return this;t=e.querySelector(`.${Z}__header`),r=e.querySelector(`.${Z}__content`),o=e.querySelector(`.${Z}__label`);let h=e.classList.contains(`${Z}--onload-open`);L(e,"behavior_flyout-menu"),L(t,"behavior_flyout-menu_trigger"),L(r,"behavior_flyout-menu_content");let f=h?I.CLASSES.MH_DEFAULT:I.CLASSES.MH_ZERO;return i=new I(r).init(f),l=new X(e),l.setTransition(i,i.maxHeightZero,i.maxHeightDefault),l.init(h),l.addEventListener("expandbegin",()=>{r.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),l.addEventListener("collapseend",()=>{r.classList.add("u-hidden")}),this}function c(){return o.textContent.trim()}this.init=d,this.expand=()=>l.expand(),this.collapse=()=>l.collapse(),this.isExpanded=()=>l.isExpanded(),this.refresh=()=>l.getTransition().refresh(),this.getLabelText=c;let p=new A;return this.addEventListener=p.addEventListener,this.removeEventListener=p.removeEventListener,this.dispatchEvent=p.dispatchEvent,this}J.BASE_CLASS=Z;J.init=a=>q(`.${J.BASE_CLASS}`,J,a);var ct={};u(ct,{default:()=>fi});var fi={};var pe="o-expandable-group";function be(a){let e=C(a,pe),t=e.classList.contains(`${pe}--accordion`),r,o;function i(d){let c=d.target;o&&o!==c&&o.collapse(),o=c}function l(d){return M(e)?(t&&(r=d,r.forEach(c=>{c.addEventListener("expandbegin",i)})),this):this}return this.init=l,this}be.BASE_CLASS=pe;be.init=a=>{(a||document).querySelectorAll(`.${pe}`).forEach(r=>{let o=q(`.${J.BASE_CLASS}`,J,r);new be(r).init(o)})};var ht={};u(ht,{default:()=>xi});var xi={};var Q="o-summary";function ue(a){let e=C(a,Q),t=e.classList.contains(`${Q}--mobile`),r=e.querySelector(`.${Q}__content`),o=e.querySelector(`.${Q}__btn`),i,l,d;function c(){return M(e)?(window.addEventListener("load",p),this):this}function p(){window.removeEventListener("load",p),d=!v(),L(e,"behavior_flyout-menu"),L(r,"behavior_flyout-menu_content"),L(o,"behavior_flyout-menu_trigger"),l=new X(e,!1),i=new I(r),i.init(d?I.CLASSES.MH_SUMMARY:I.CLASSES.MH_DEFAULT),l.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),l.addEventListener("triggerclick",T),l.init(),y(),window.addEventListener("resize",y),"onorientationchange"in window&&window.addEventListener("orientationchange",y),e.addEventListener("focusin",h),r.addEventListener("click",f)}function h(g){!d&&g.target!==o&&(o.click(),e.removeEventListener("focusin",h))}function f(g){g.target.tagName!=="A"&&l.isExpanded()&&i.refresh()}function y(){v()?R():V()}function v(){return t&&!ke(le)||r.scrollHeight<=88}function T(){l.addEventListener("expandend",S)}function S(){j(),window.removeEventListener("resize",y),window.removeEventListener("orientationchange",y),l.removeEventListener("expandend",S),l.suspend(),i.remove()}function E(){o.classList.remove("u-hidden")}function j(){o.classList.add("u-hidden")}function V(){return d&&(l.collapse(),i.animateOn(),E(),d=!1),!d}function R(){return d||(i.animateOff(),l.expand(),j(),d=!0),d}let O=new A;return this.addEventListener=O.addEventListener,this.removeEventListener=O.removeEventListener,this.dispatchEvent=O.dispatchEvent,this.init=c,this}ue.BASE_CLASS=Q;ue.init=a=>q(`.${Q}`,ue,a);var ae="o-summary-minimal";function ge(a){let e=C(a,ae),t=e.querySelector(`.${ae}__content`),r=e.querySelector(`.${ae}__btn`),o,i;function l(){return M(e)?(L(e,"behavior_flyout-menu"),L(t,"behavior_flyout-menu_content"),L(r,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),i=new X(e,!1),o=new I(t),o.init(I.CLASSES.MH_SUMMARY),i.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),i.init(),e.addEventListener("focusin",c),t.addEventListener("click",p),i.collapse(),o.animateOn()}function c(f){f.target!==r&&(r.click(),e.removeEventListener("focusin",c))}function p(f){f.target.tagName!=="A"&&i.isExpanded()&&o.refresh()}let h=new A;return this.addEventListener=h.addEventListener,this.removeEventListener=h.removeEventListener,this.dispatchEvent=h.dispatchEvent,this.init=l,this}ge.BASE_CLASS=ae;ge.init=a=>q(`.${ae}`,ge,a);})();
2
2
  //# sourceMappingURL=index.js.map