From 290b87e4889c16c5e846e3039a7266ebb7c09e99 Mon Sep 17 00:00:00 2001 From: Chris Contolini Date: Wed, 4 Dec 2024 14:02:32 -0500 Subject: [PATCH] Return Tooltip instance to match JSDoc description --- .../cfpb-design-system/dist/components/cfpb-tooltips/index.js | 2 +- .../dist/components/cfpb-tooltips/index.js.map | 4 ++-- .../cfpb-design-system/src/components/cfpb-tooltips/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js b/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js index 3aeff3e67..ac277877f 100644 --- a/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js +++ b/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js @@ -1,2 +1,2 @@ -(()=>{var vo=Object.defineProperty;var go=Object.getOwnPropertySymbols;var ka=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable;var bo=(e,t,r)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nr=(e,t)=>{for(var r in t||(t={}))ka.call(t,r)&&bo(e,r,t[r]);if(go)for(var r of go(t))Sa.call(t,r)&&bo(e,r,t[r]);return e};var j=(e,t)=>{for(var r in t)vo(e,r,{get:t[r],enumerable:!0})};var $="top",J="bottom",K="right",G="left",Nt="auto",Me=[$,J,K,G],Oe="start",Ve="end",yo="clippingParents",zt="viewport",et="popper",xo="reference",sr=Me.reduce(function(e,t){return e.concat([t+"-"+Oe,t+"-"+Ve])},[]),Pt=[].concat(Me,[Nt]).reduce(function(e,t){return e.concat([t,t+"-"+Oe,t+"-"+Ve])},[]),Ea="beforeRead",Da="read",Oa="afterRead",La="beforeMain",Aa="main",Ta="afterMain",ja="beforeWrite",Ca="write",Ma="afterWrite",_o=[Ea,Da,Oa,La,Aa,Ta,ja,Ca,Ma];function ee(e){return e?(e.nodeName||"").toLowerCase():null}function H(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function me(e){var t=H(e).Element;return e instanceof t||e instanceof Element}function Z(e){var t=H(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tt(e){if(typeof ShadowRoot=="undefined")return!1;var t=H(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ba(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!Z(i)||!ee(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(s){var d=a[s];d===!1?i.removeAttribute(s):i.setAttribute(s,d===!0?"":d)}))})}function Ia(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),d=s.reduce(function(l,m){return l[m]="",l},{});!Z(a)||!ee(a)||(Object.assign(a.style,d),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var ut={name:"applyStyles",enabled:!0,phase:"write",fn:Ba,effect:Ia,requires:["computeStyles"]};function te(e){return e.split("-")[0]}var be=Math.max,qe=Math.min,Le=Math.round;function rt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ht(){return!/^((?!chrome|android).)*safari/i.test(rt())}function ue(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),a=1,i=1;t&&Z(e)&&(a=e.offsetWidth>0&&Le(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Le(o.height)/e.offsetHeight||1);var s=me(e)?H(e):window,d=s.visualViewport,l=!ht()&&r,m=(o.left+(l&&d?d.offsetLeft:0))/a,c=(o.top+(l&&d?d.offsetTop:0))/i,v=o.width/a,y=o.height/i;return{width:v,height:y,top:c,right:m+v,bottom:c+y,left:m,x:m,y:c}}function He(e){var t=ue(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ft(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&tt(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function se(e){return H(e).getComputedStyle(e)}function lr(e){return["table","td","th"].indexOf(ee(e))>=0}function ae(e){return((me(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ae(e){return ee(e)==="html"?e:e.assignedSlot||e.parentNode||(tt(e)?e.host:null)||ae(e)}function wo(e){return!Z(e)||se(e).position==="fixed"?null:e.offsetParent}function Na(e){var t=/firefox/i.test(rt()),r=/Trident/i.test(rt());if(r&&Z(e)){var o=se(e);if(o.position==="fixed")return null}var a=Ae(e);for(tt(a)&&(a=a.host);Z(a)&&["html","body"].indexOf(ee(a))<0;){var i=se(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ve(e){for(var t=H(e),r=wo(e);r&&lr(r)&&se(r).position==="static";)r=wo(r);return r&&(ee(r)==="html"||ee(r)==="body"&&se(r).position==="static")?t:r||Na(e)||t}function $e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,r){return be(e,qe(t,r))}function ko(e,t,r){var o=Fe(e,t,r);return o>r?r:o}function gt(){return{top:0,right:0,bottom:0,left:0}}function bt(e){return Object.assign({},gt(),e)}function vt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var za=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,bt(typeof t!="number"?t:vt(t,Me))};function Pa(e){var t,r=e.state,o=e.name,a=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,d=te(r.placement),l=$e(d),m=[G,K].indexOf(d)>=0,c=m?"height":"width";if(!(!i||!s)){var v=za(a.padding,r),y=He(i),f=l==="y"?$:G,E=l==="y"?J:K,w=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],k=s[l]-r.rects.reference[l],L=ve(i),T=L?l==="y"?L.clientHeight||0:L.clientWidth||0:0,B=w/2-k/2,n=v[f],b=T-y[c]-v[E],h=T/2-y[c]/2+B,A=Fe(n,h,b),S=l;r.modifiersData[o]=(t={},t[S]=A,t.centerOffset=A-h,t)}}function Ra(e){var t=e.state,r=e.options,o=r.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ft(t.elements.popper,a)&&(t.elements.arrow=a))}var So={name:"arrow",enabled:!0,phase:"main",fn:Pa,effect:Ra,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e){return e.split("-")[1]}var Va={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qa(e,t){var r=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:Le(r*a)/a||0,y:Le(o*a)/a||0}}function Eo(e){var t,r=e.popper,o=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,d=e.position,l=e.gpuAcceleration,m=e.adaptive,c=e.roundOffsets,v=e.isFixed,y=s.x,f=y===void 0?0:y,E=s.y,w=E===void 0?0:E,k=typeof c=="function"?c({x:f,y:w}):{x:f,y:w};f=k.x,w=k.y;var L=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),B=G,n=$,b=window;if(m){var h=ve(r),A="clientHeight",S="clientWidth";if(h===H(r)&&(h=ae(r),se(h).position!=="static"&&d==="absolute"&&(A="scrollHeight",S="scrollWidth")),h=h,a===$||(a===G||a===K)&&i===Ve){n=J;var C=v&&h===b&&b.visualViewport?b.visualViewport.height:h[A];w-=C-o.height,w*=l?1:-1}if(a===G||(a===$||a===J)&&i===Ve){B=K;var M=v&&h===b&&b.visualViewport?b.visualViewport.width:h[S];f-=M-o.width,f*=l?1:-1}}var z=Object.assign({position:d},m&&Va),P=c===!0?qa({x:f,y:w},H(r)):{x:f,y:w};if(f=P.x,w=P.y,l){var V;return Object.assign({},z,(V={},V[n]=T?"0":"",V[B]=L?"0":"",V.transform=(b.devicePixelRatio||1)<=1?"translate("+f+"px, "+w+"px)":"translate3d("+f+"px, "+w+"px, 0)",V))}return Object.assign({},z,(t={},t[n]=T?w+"px":"",t[B]=L?f+"px":"",t.transform="",t))}function Ha(e){var t=e.state,r=e.options,o=r.gpuAcceleration,a=o===void 0?!0:o,i=r.adaptive,s=i===void 0?!0:i,d=r.roundOffsets,l=d===void 0?!0:d,m={placement:te(t.placement),variation:he(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Eo(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eo(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Do={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ha,data:{}};var Rt={passive:!0};function $a(e){var t=e.state,r=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,s=o.resize,d=s===void 0?!0:s,l=H(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&m.forEach(function(c){c.addEventListener("scroll",r.update,Rt)}),d&&l.addEventListener("resize",r.update,Rt),function(){i&&m.forEach(function(c){c.removeEventListener("scroll",r.update,Rt)}),d&&l.removeEventListener("resize",r.update,Rt)}}var Oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$a,data:{}};var Fa={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e){return e.replace(/left|right|bottom|top/g,function(t){return Fa[t]})}var Ua={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,function(t){return Ua[t]})}function Ue(e){var t=H(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function We(e){return ue(ae(e)).left+Ue(e).scrollLeft}function dr(e,t){var r=H(e),o=ae(e),a=r.visualViewport,i=o.clientWidth,s=o.clientHeight,d=0,l=0;if(a){i=a.width,s=a.height;var m=ht();(m||!m&&t==="fixed")&&(d=a.offsetLeft,l=a.offsetTop)}return{width:i,height:s,x:d+We(e),y:l}}function cr(e){var t,r=ae(e),o=Ue(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=be(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=be(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+We(e),l=-o.scrollTop;return se(a||r).direction==="rtl"&&(d+=be(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:d,y:l}}function Ge(e){var t=se(e),r=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+o)}function qt(e){return["html","body","#document"].indexOf(ee(e))>=0?e.ownerDocument.body:Z(e)&&Ge(e)?e:qt(Ae(e))}function Be(e,t){var r;t===void 0&&(t=[]);var o=qt(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=H(o),s=a?[i].concat(i.visualViewport||[],Ge(o)?o:[]):o,d=t.concat(s);return a?d:d.concat(Be(Ae(s)))}function at(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wa(e,t){var r=ue(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Lo(e,t,r){return t===zt?at(dr(e,r)):me(t)?Wa(t,r):at(cr(ae(e)))}function Ga(e){var t=Be(Ae(e)),r=["absolute","fixed"].indexOf(se(e).position)>=0,o=r&&Z(e)?ve(e):e;return me(o)?t.filter(function(a){return me(a)&&ft(a,o)&&ee(a)!=="body"}):[]}function pr(e,t,r,o){var a=t==="clippingParents"?Ga(e):[].concat(t),i=[].concat(a,[r]),s=i[0],d=i.reduce(function(l,m){var c=Lo(e,m,o);return l.top=be(c.top,l.top),l.right=qe(c.right,l.right),l.bottom=qe(c.bottom,l.bottom),l.left=be(c.left,l.left),l},Lo(e,s,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function yt(e){var t=e.reference,r=e.element,o=e.placement,a=o?te(o):null,i=o?he(o):null,s=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,l;switch(a){case $:l={x:s,y:t.y-r.height};break;case J:l={x:s,y:t.y+t.height};break;case K:l={x:t.x+t.width,y:d};break;case G:l={x:t.x-r.width,y:d};break;default:l={x:t.x,y:t.y}}var m=a?$e(a):null;if(m!=null){var c=m==="y"?"height":"width";switch(i){case Oe:l[m]=l[m]-(t[c]/2-r[c]/2);break;case Ve:l[m]=l[m]+(t[c]/2-r[c]/2);break;default:}}return l}function ye(e,t){t===void 0&&(t={});var r=t,o=r.placement,a=o===void 0?e.placement:o,i=r.strategy,s=i===void 0?e.strategy:i,d=r.boundary,l=d===void 0?yo:d,m=r.rootBoundary,c=m===void 0?zt:m,v=r.elementContext,y=v===void 0?et:v,f=r.altBoundary,E=f===void 0?!1:f,w=r.padding,k=w===void 0?0:w,L=bt(typeof k!="number"?k:vt(k,Me)),T=y===et?xo:et,B=e.rects.popper,n=e.elements[E?T:y],b=pr(me(n)?n:n.contextElement||ae(e.elements.popper),l,c,s),h=ue(e.elements.reference),A=yt({reference:h,element:B,strategy:"absolute",placement:a}),S=at(Object.assign({},B,A)),C=y===et?S:h,M={top:b.top-C.top+L.top,bottom:C.bottom-b.bottom+L.bottom,left:b.left-C.left+L.left,right:C.right-b.right+L.right},z=e.modifiersData.offset;if(y===et&&z){var P=z[a];Object.keys(M).forEach(function(V){var re=[K,J].indexOf(V)>=0?1:-1,oe=[$,J].indexOf(V)>=0?"y":"x";M[V]+=P[oe]*re})}return M}function mr(e,t){t===void 0&&(t={});var r=t,o=r.placement,a=r.boundary,i=r.rootBoundary,s=r.padding,d=r.flipVariations,l=r.allowedAutoPlacements,m=l===void 0?Pt:l,c=he(o),v=c?d?sr:sr.filter(function(E){return he(E)===c}):Me,y=v.filter(function(E){return m.indexOf(E)>=0});y.length===0&&(y=v);var f=y.reduce(function(E,w){return E[w]=ye(e,{placement:w,boundary:a,rootBoundary:i,padding:s})[te(w)],E},{});return Object.keys(f).sort(function(E,w){return f[E]-f[w]})}function Xa(e){if(te(e)===Nt)return[];var t=ot(e);return[Vt(e),t,Vt(t)]}function Ya(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!0:s,l=r.fallbackPlacements,m=r.padding,c=r.boundary,v=r.rootBoundary,y=r.altBoundary,f=r.flipVariations,E=f===void 0?!0:f,w=r.allowedAutoPlacements,k=t.options.placement,L=te(k),T=L===k,B=l||(T||!E?[ot(k)]:Xa(k)),n=[k].concat(B).reduce(function(N,W){return N.concat(te(W)===Nt?mr(t,{placement:W,boundary:c,rootBoundary:v,padding:m,flipVariations:E,allowedAutoPlacements:w}):W)},[]),b=t.rects.reference,h=t.rects.popper,A=new Map,S=!0,C=n[0],M=0;M=0,oe=re?"width":"height",F=ye(t,{placement:z,boundary:c,rootBoundary:v,altBoundary:y,padding:m}),X=re?V?K:G:V?J:$;b[oe]>h[oe]&&(X=ot(X));var U=ot(X),Q=[];if(i&&Q.push(F[P]<=0),d&&Q.push(F[X]<=0,F[U]<=0),Q.every(function(N){return N})){C=z,S=!1;break}A.set(z,Q)}if(S)for(var u=E?3:1,g=function(W){var Y=n.find(function(Te){var Ee=A.get(Te);if(Ee)return Ee.slice(0,W).every(function(Ke){return Ke})});if(Y)return C=Y,"break"},x=u;x>0;x--){var D=g(x);if(D==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}var Ao={name:"flip",enabled:!0,phase:"main",fn:Ya,requiresIfExists:["offset"],data:{_skip:!1}};function To(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jo(e){return[$,K,J,G].some(function(t){return e[t]>=0})}function Ka(e){var t=e.state,r=e.name,o=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=ye(t,{elementContext:"reference"}),d=ye(t,{altBoundary:!0}),l=To(s,o),m=To(d,a,i),c=jo(l),v=jo(m);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:m,isReferenceHidden:c,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":v})}var Co={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ka};function Ja(e,t,r){var o=te(e),a=[G,$].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],d=i[1];return s=s||0,d=(d||0)*a,[G,K].indexOf(o)>=0?{x:d,y:s}:{x:s,y:d}}function Za(e){var t=e.state,r=e.options,o=e.name,a=r.offset,i=a===void 0?[0,0]:a,s=Pt.reduce(function(c,v){return c[v]=Ja(v,t.rects,i),c},{}),d=s[t.placement],l=d.x,m=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=m),t.modifiersData[o]=s}var Mo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Za};function Qa(e){var t=e.state,r=e.name;t.modifiersData[r]=yt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Bo={name:"popperOffsets",enabled:!0,phase:"read",fn:Qa,data:{}};function ur(e){return e==="x"?"y":"x"}function ei(e){var t=e.state,r=e.options,o=e.name,a=r.mainAxis,i=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!1:s,l=r.boundary,m=r.rootBoundary,c=r.altBoundary,v=r.padding,y=r.tether,f=y===void 0?!0:y,E=r.tetherOffset,w=E===void 0?0:E,k=ye(t,{boundary:l,rootBoundary:m,padding:v,altBoundary:c}),L=te(t.placement),T=he(t.placement),B=!T,n=$e(L),b=ur(n),h=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,C=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(h){if(i){var V,re=n==="y"?$:G,oe=n==="y"?J:K,F=n==="y"?"height":"width",X=h[n],U=X+k[re],Q=X-k[oe],u=f?-S[F]/2:0,g=T===Oe?A[F]:S[F],x=T===Oe?-S[F]:-A[F],D=t.elements.arrow,N=f&&D?He(D):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gt(),Y=W[re],Te=W[oe],Ee=Fe(0,A[F],N[F]),Ke=B?A[F]/2-u-Ee-Y-M.mainAxis:g-Ee-Y-M.mainAxis,je=B?-A[F]/2+u+Ee+Te+M.mainAxis:x+Ee+Te+M.mainAxis,Je=t.elements.arrow&&ve(t.elements.arrow),Et=Je?n==="y"?Je.clientTop||0:Je.clientLeft||0:0,lt=(V=z==null?void 0:z[n])!=null?V:0,Dt=X+Ke-lt-Et,Ot=X+je-lt,dt=Fe(f?qe(U,Dt):U,X,f?be(Q,Ot):Q);h[n]=dt,P[n]=dt-X}if(d){var ct,Lt=n==="x"?$:G,At=n==="x"?J:K,De=h[b],Ce=b==="y"?"height":"width",pt=De+k[Lt],Pe=De-k[At],mt=[$,G].indexOf(L)!==-1,Tt=(ct=z==null?void 0:z[b])!=null?ct:0,jt=mt?pt:De-A[Ce]-S[Ce]-Tt+M.altAxis,Ct=mt?De+A[Ce]+S[Ce]-Tt-M.altAxis:Pe,Mt=f&&mt?ko(jt,De,Ct):Fe(f?jt:pt,De,f?Ct:Pe);h[b]=Mt,P[b]=Mt-De}t.modifiersData[o]=P}}var Io={name:"preventOverflow",enabled:!0,phase:"main",fn:ei,requiresIfExists:["offset"]};function hr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fr(e){return e===H(e)||!Z(e)?Ue(e):hr(e)}function ti(e){var t=e.getBoundingClientRect(),r=Le(t.width)/e.offsetWidth||1,o=Le(t.height)/e.offsetHeight||1;return r!==1||o!==1}function gr(e,t,r){r===void 0&&(r=!1);var o=Z(t),a=Z(t)&&ti(t),i=ae(t),s=ue(e,a,r),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((ee(t)!=="body"||Ge(i))&&(d=fr(t)),Z(t)?(l=ue(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=We(i))),{x:s.left+d.scrollLeft-l.x,y:s.top+d.scrollTop-l.y,width:s.width,height:s.height}}function ri(e){var t=new Map,r=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(d){if(!r.has(d)){var l=t.get(d);l&&a(l)}}),o.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),o}function br(e){var t=ri(e);return _o.reduce(function(r,o){return r.concat(t.filter(function(a){return a.phase===o}))},[])}function vr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function yr(e){var t=e.reduce(function(r,o){var a=r[o.name];return r[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var No={placement:"bottom",modifiers:[],strategy:"absolute"};function zo(){for(var e=arguments.length,t=new Array(e),r=0;r-1}function Zo(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Ro(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function ni(e){return e.split(/\s+/).filter(Boolean)}function it(e){return[].concat(e)}function Vo(e,t){e.indexOf(t)===-1&&e.push(t)}function si(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function li(e){return e.split("-")[0]}function $t(e){return[].slice.call(e)}function qo(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function xt(){return document.createElement("div")}function Ft(e){return["Element","Fragment"].some(function(t){return Or(e,t)})}function di(e){return Or(e,"NodeList")}function ci(e){return Or(e,"MouseEvent")}function pi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function mi(e){return Ft(e)?[e]:di(e)?$t(e):Array.isArray(e)?e:$t(document.querySelectorAll(e))}function wr(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function Ho(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function ui(e){var t,r=it(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function hi(e,t){var r=t.clientX,o=t.clientY;return e.every(function(a){var i=a.popperRect,s=a.popperState,d=a.props,l=d.interactiveBorder,m=li(s.placement),c=s.modifiersData.offset;if(!c)return!0;var v=m==="bottom"?c.top.y:0,y=m==="top"?c.bottom.y:0,f=m==="right"?c.left.x:0,E=m==="left"?c.right.x:0,w=i.top-o+v>l,k=o-i.bottom-y>l,L=i.left-r+f>l,T=r-i.right-E>l;return w||k||L||T})}function kr(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[o](a,r)})}function $o(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var Se={isTouch:!1},Fo=0;function fi(){Se.isTouch||(Se.isTouch=!0,window.performance&&document.addEventListener("mousemove",Qo))}function Qo(){var e=performance.now();e-Fo<20&&(Se.isTouch=!1,document.removeEventListener("mousemove",Qo)),Fo=e}function gi(){var e=document.activeElement;if(pi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function bi(){document.addEventListener("touchstart",fi,Xe),window.addEventListener("blur",gi)}var vi=typeof window!="undefined"&&typeof document!="undefined",yi=vi?!!window.msCrypto:!1;var xi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_i={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xe=Object.assign({appendTo:Jo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},xi,_i),wi=Object.keys(xe),ki=function(t){var r=Object.keys(t);r.forEach(function(o){xe[o]=t[o]})};function ea(e){var t=e.plugins||[],r=t.reduce(function(o,a){var i=a.name,s=a.defaultValue;if(i){var d;o[i]=e[i]!==void 0?e[i]:(d=xe[i])!=null?d:s}return o},{});return Object.assign({},e,r)}function Si(e,t){var r=t?Object.keys(ea(Object.assign({},xe,{plugins:t}))):wi,o=r.reduce(function(a,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return a;if(i==="content")a[i]=s;else try{a[i]=JSON.parse(s)}catch(d){a[i]=s}return a},{});return o}function Uo(e,t){var r=Object.assign({},t,{content:Zo(t.content,[e])},t.ignoreAttributes?{}:Si(e,t.plugins));return r.aria=Object.assign({},xe.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Ei=function(){return"innerHTML"};function Er(e,t){e[Ei()]=t}function Wo(e){var t=xt();return e===!0?t.className=Yo:(t.className=Ko,Ft(e)?t.appendChild(e):Er(t,e)),t}function Go(e,t){Ft(t.content)?(Er(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Er(e,t.content):e.textContent=t.content)}function Dr(e){var t=e.firstElementChild,r=$t(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(Xo)}),arrow:r.find(function(o){return o.classList.contains(Yo)||o.classList.contains(Ko)}),backdrop:r.find(function(o){return o.classList.contains(ii)})}}function ta(e){var t=xt(),r=xt();r.className=ai,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=xt();o.className=Xo,o.setAttribute("data-state","hidden"),Go(o,e.props),t.appendChild(r),r.appendChild(o),a(e.props,e.props);function a(i,s){var d=Dr(t),l=d.box,m=d.content,c=d.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Go(m,e.props),s.arrow?c?i.arrow!==s.arrow&&(l.removeChild(c),l.appendChild(Wo(s.arrow))):l.appendChild(Wo(s.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:a}}ta.$$tippy=!0;var Di=1,Ht=[],Sr=[];function Oi(e,t){var r=Uo(e,Object.assign({},xe,ea(qo(t)))),o,a,i,s=!1,d=!1,l=!1,m=!1,c,v,y,f=[],E=Ro(Dt,r.interactiveDebounce),w,k=Di++,L=null,T=si(r.plugins),B={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:k,reference:e,popper:xt(),popperInstance:L,props:r,state:B,plugins:T,clearDelayTimeouts:jt,setProps:Ct,setContent:Mt,show:ba,hide:va,hideWithInteractivity:ya,enable:mt,disable:Tt,unmount:xa,destroy:_a};if(!r.render)return n;var b=r.render(n),h=b.popper,A=b.onUpdate;h.setAttribute("data-tippy-root",""),h.id="tippy-"+n.id,n.popper=h,e._tippy=n,h._tippy=n;var S=T.map(function(p){return p.fn(n)}),C=e.hasAttribute("aria-expanded");return Je(),u(),X(),U("onCreate",[n]),r.showOnCreate&&pt(),h.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),h.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&re().addEventListener("mousemove",E)}),n;function M(){var p=n.props.touch;return Array.isArray(p)?p:[p,0]}function z(){return M()[0]==="hold"}function P(){var p;return!!((p=n.props.render)!=null&&p.$$tippy)}function V(){return w||e}function re(){var p=V().parentNode;return p?ui(p):document}function oe(){return Dr(h)}function F(p){return n.state.isMounted&&!n.state.isVisible||Se.isTouch||c&&c.type==="focus"?0:_r(n.props.delay,p?0:1,xe.delay)}function X(p){p===void 0&&(p=!1),h.style.pointerEvents=n.props.interactive&&!p?"":"none",h.style.zIndex=""+n.props.zIndex}function U(p,_,O){if(O===void 0&&(O=!0),S.forEach(function(I){I[p]&&I[p].apply(I,_)}),O){var R;(R=n.props)[p].apply(R,_)}}function Q(){var p=n.props.aria;if(p.content){var _="aria-"+p.content,O=h.id,R=it(n.props.triggerTarget||e);R.forEach(function(I){var ne=I.getAttribute(_);if(n.state.isVisible)I.setAttribute(_,ne?ne+" "+O:O);else{var pe=ne&&ne.replace(O,"").trim();pe?I.setAttribute(_,pe):I.removeAttribute(_)}})}}function u(){if(!(C||!n.props.aria.expanded)){var p=it(n.props.triggerTarget||e);p.forEach(function(_){n.props.interactive?_.setAttribute("aria-expanded",n.state.isVisible&&_===V()?"true":"false"):_.removeAttribute("aria-expanded")})}}function g(){re().removeEventListener("mousemove",E),Ht=Ht.filter(function(p){return p!==E})}function x(p){if(!(Se.isTouch&&(l||p.type==="mousedown"))){var _=p.composedPath&&p.composedPath()[0]||p.target;if(!(n.props.interactive&&$o(h,_))){if(it(n.props.triggerTarget||e).some(function(O){return $o(O,_)})){if(Se.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[n,p]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),d=!0,setTimeout(function(){d=!1}),n.state.isMounted||Y())}}}function D(){l=!0}function N(){l=!1}function W(){var p=re();p.addEventListener("mousedown",x,!0),p.addEventListener("touchend",x,Xe),p.addEventListener("touchstart",N,Xe),p.addEventListener("touchmove",D,Xe)}function Y(){var p=re();p.removeEventListener("mousedown",x,!0),p.removeEventListener("touchend",x,Xe),p.removeEventListener("touchstart",N,Xe),p.removeEventListener("touchmove",D,Xe)}function Te(p,_){Ke(p,function(){!n.state.isVisible&&h.parentNode&&h.parentNode.contains(h)&&_()})}function Ee(p,_){Ke(p,_)}function Ke(p,_){var O=oe().box;function R(I){I.target===O&&(kr(O,"remove",R),_())}if(p===0)return _();kr(O,"remove",v),kr(O,"add",R),v=R}function je(p,_,O){O===void 0&&(O=!1);var R=it(n.props.triggerTarget||e);R.forEach(function(I){I.addEventListener(p,_,O),f.push({node:I,eventType:p,handler:_,options:O})})}function Je(){z()&&(je("touchstart",lt,{passive:!0}),je("touchend",Ot,{passive:!0})),ni(n.props.trigger).forEach(function(p){if(p!=="manual")switch(je(p,lt),p){case"mouseenter":je("mouseleave",Ot);break;case"focus":je(yi?"focusout":"blur",dt);break;case"focusin":je("focusout",dt);break}})}function Et(){f.forEach(function(p){var _=p.node,O=p.eventType,R=p.handler,I=p.options;_.removeEventListener(O,R,I)}),f=[]}function lt(p){var _,O=!1;if(!(!n.state.isEnabled||ct(p)||d)){var R=((_=c)==null?void 0:_.type)==="focus";c=p,w=p.currentTarget,u(),!n.state.isVisible&&ci(p)&&Ht.forEach(function(I){return I(p)}),p.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?O=!0:pt(p),p.type==="click"&&(s=!O),O&&!R&&Pe(p)}}function Dt(p){var _=p.target,O=V().contains(_)||h.contains(_);if(!(p.type==="mousemove"&&O)){var R=Ce().concat(h).map(function(I){var ne,pe=I._tippy,Ze=(ne=pe.popperInstance)==null?void 0:ne.state;return Ze?{popperRect:I.getBoundingClientRect(),popperState:Ze,props:r}:null}).filter(Boolean);hi(R,p)&&(g(),Pe(p))}}function Ot(p){var _=ct(p)||n.props.trigger.indexOf("click")>=0&&s;if(!_){if(n.props.interactive){n.hideWithInteractivity(p);return}Pe(p)}}function dt(p){n.props.trigger.indexOf("focusin")<0&&p.target!==V()||n.props.interactive&&p.relatedTarget&&h.contains(p.relatedTarget)||Pe(p)}function ct(p){return Se.isTouch?z()!==p.type.indexOf("touch")>=0:!1}function Lt(){At();var p=n.props,_=p.popperOptions,O=p.placement,R=p.offset,I=p.getReferenceClientRect,ne=p.moveTransition,pe=P()?Dr(h).arrow:null,Ze=I?{getBoundingClientRect:I,contextElement:I.contextElement||V()}:e,fo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Bt){var Qe=Bt.state;if(P()){var wa=oe(),ir=wa.box;["placement","reference-hidden","escaped"].forEach(function(It){It==="placement"?ir.setAttribute("data-placement",Qe.placement):Qe.attributes.popper["data-popper-"+It]?ir.setAttribute("data-"+It,""):ir.removeAttribute("data-"+It)}),Qe.attributes.popper={}}}},Re=[{name:"offset",options:{offset:R}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ne}},fo];P()&&pe&&Re.push({name:"arrow",options:{element:pe,padding:3}}),Re.push.apply(Re,(_==null?void 0:_.modifiers)||[]),n.popperInstance=xr(Ze,h,Object.assign({},_,{placement:O,onFirstUpdate:y,modifiers:Re}))}function At(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function De(){var p=n.props.appendTo,_,O=V();n.props.interactive&&p===Jo||p==="parent"?_=O.parentNode:_=Zo(p,[O]),_.contains(h)||_.appendChild(h),n.state.isMounted=!0,Lt()}function Ce(){return $t(h.querySelectorAll("[data-tippy-root]"))}function pt(p){n.clearDelayTimeouts(),p&&U("onTrigger",[n,p]),W();var _=F(!0),O=M(),R=O[0],I=O[1];Se.isTouch&&R==="hold"&&I&&(_=I),_?o=setTimeout(function(){n.show()},_):n.show()}function Pe(p){if(n.clearDelayTimeouts(),U("onUntrigger",[n,p]),!n.state.isVisible){Y();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(p.type)>=0&&s)){var _=F(!1);_?a=setTimeout(function(){n.state.isVisible&&n.hide()},_):i=requestAnimationFrame(function(){n.hide()})}}function mt(){n.state.isEnabled=!0}function Tt(){n.hide(),n.state.isEnabled=!1}function jt(){clearTimeout(o),clearTimeout(a),cancelAnimationFrame(i)}function Ct(p){if(!n.state.isDestroyed){U("onBeforeUpdate",[n,p]),Et();var _=n.props,O=Uo(e,Object.assign({},_,qo(p),{ignoreAttributes:!0}));n.props=O,Je(),_.interactiveDebounce!==O.interactiveDebounce&&(g(),E=Ro(Dt,O.interactiveDebounce)),_.triggerTarget&&!O.triggerTarget?it(_.triggerTarget).forEach(function(R){R.removeAttribute("aria-expanded")}):O.triggerTarget&&e.removeAttribute("aria-expanded"),u(),X(),A&&A(_,O),n.popperInstance&&(Lt(),Ce().forEach(function(R){requestAnimationFrame(R._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[n,p])}}function Mt(p){n.setProps({content:p})}function ba(){var p=n.state.isVisible,_=n.state.isDestroyed,O=!n.state.isEnabled,R=Se.isTouch&&!n.props.touch,I=_r(n.props.duration,0,xe.duration);if(!(p||_||O||R)&&!V().hasAttribute("disabled")&&(U("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,P()&&(h.style.visibility="visible"),X(),W(),n.state.isMounted||(h.style.transition="none"),P()){var ne=oe(),pe=ne.box,Ze=ne.content;wr([pe,Ze],0)}y=function(){var Re;if(!(!n.state.isVisible||m)){if(m=!0,h.offsetHeight,h.style.transition=n.props.moveTransition,P()&&n.props.animation){var ar=oe(),Bt=ar.box,Qe=ar.content;wr([Bt,Qe],I),Ho([Bt,Qe],"visible")}Q(),u(),Vo(Sr,n),(Re=n.popperInstance)==null||Re.forceUpdate(),U("onMount",[n]),n.props.animation&&P()&&Ee(I,function(){n.state.isShown=!0,U("onShown",[n])})}},De()}}function va(){var p=!n.state.isVisible,_=n.state.isDestroyed,O=!n.state.isEnabled,R=_r(n.props.duration,1,xe.duration);if(!(p||_||O)&&(U("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,m=!1,s=!1,P()&&(h.style.visibility="hidden"),g(),Y(),X(!0),P()){var I=oe(),ne=I.box,pe=I.content;n.props.animation&&(wr([ne,pe],R),Ho([ne,pe],"hidden"))}Q(),u(),n.props.animation?P()&&Te(R,n.unmount):n.unmount()}}function ya(p){re().addEventListener("mousemove",E),Vo(Ht,E),E(p)}function xa(){n.state.isVisible&&n.hide(),n.state.isMounted&&(At(),Ce().forEach(function(p){p._tippy.unmount()}),h.parentNode&&h.parentNode.removeChild(h),Sr=Sr.filter(function(p){return p!==n}),n.state.isMounted=!1,U("onHidden",[n]))}function _a(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),Et(),delete e._tippy,n.state.isDestroyed=!0,U("onDestroy",[n]))}}function _t(e,t){t===void 0&&(t={});var r=xe.plugins.concat(t.plugins||[]);bi();var o=Object.assign({},t,{plugins:r}),a=mi(e);if(0)var i,s;var d=a.reduce(function(l,m){var c=m&&Oi(m,o);return c&&l.push(c),l},[]);return Ft(e)?d[0]:d}_t.defaultProps=xe;_t.setDefaultProps=ki;_t.currentInput=Se;var hp=Object.assign({},ut,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});_t.setDefaultProps({render:ta});var ra=_t;var Ut={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};var Lr={};j(Lr,{default:()=>Ai});var Ai={};var Ar={};j(Ar,{default:()=>ji});var ji={};var Tr={};j(Tr,{default:()=>Mi});var Mi={};var jr={};j(jr,{default:()=>Ii});var Ii={};var Cr={};j(Cr,{default:()=>zi});var zi={};var Mr={};j(Mr,{default:()=>Ri});var Ri={};function Wt(){let e=getComputedStyle(document.body).fontSize;return e=e===""?-1:e,parseFloat(e)}function Vi(e,t){let r=e.min,o=e.max;Wt()>0&&Wt()!==16&&(r=r/16*Wt(),o=o/16*Wt());let i=r||0,s=o||Number.POSITIVE_INFINITY;return i<=t&&t<=s}function qi(e){let t={};e=e||window.innerWidth;let r;for(r in Ut)t[r]=Vi(Ut[r],e);return t}var Gt="mobile",Hi="tablet",$i="desktop";function Br(e){let t=!1,r=qi();return(e===Gt&&r.bpXS||e===Hi&&r.bpSM||e===$i&&(r.bpMED||r.bpLG||r.bpXL))&&(t=!0),t}var fe="data-js-hook",Xt="behavior_",Ir="state_";function ie(){let e={};function t(a,i){return{}.hasOwnProperty.call(e,a)?e[a].push(i):e[a]=[i],this}function r(a,i){if(!{}.hasOwnProperty.call(e,a))return this;let s=e[a].indexOf(i);return s!==-1&&e[a].splice(s,1),this}function o(a,i){if(!{}.hasOwnProperty.call(e,a))return this;i=i||{};let s=e[a];for(let d=0,l=s.length;de,this}function Ye(e,t){if(!e)return!1;let r=e.getAttribute(fe);return r?(r=r.split(" "),r.indexOf(t)>-1):!1}function le(e,t){if(Ye(e,t))return t;if(t.indexOf(" ")!==-1){let o=fe+" values cannot contain spaces!";throw new Error(o)}let r=e.getAttribute(fe);return r!==null&&(t=r+" "+t),e.setAttribute(fe,t),t}var Nr=Ir+"atomic_init";function Fi(e,t){if(!e||!e.classList){let r=e+' is not valid. Check that element is a DOM node with class "'+t+'"';throw new Error(r)}return e}function Ui(e,t){let r=e.classList.contains(t)?e:e.querySelector("."+t);if(!r){let o=t+" not found on or in passed DOM node.";throw new Error(o)}return r}function _e(e,t){return Fi(e,t),Ui(e,t)}function ge(e){return Ye(e,Nr)?!1:(le(e,Nr),!0)}function de(e,t,r,o={}){let i=(r||document).querySelectorAll(e),s=[],d,l;for(let m=0,c=i.length;m>>0;Y--;){for(W=!1,D=x[Y],N=D.parentElement;N!==u;)N.getAttribute(fe)&&N.getAttribute(fe).split(" ").indexOf(wt)!==-1?(W=!0,N=u):N=N.parentElement;W||g.unshift(x[Y])}return g}function B(u=!1){return i=u?m:s,o.forEach(g=>{n("expanded",g,u),g.addEventListener("click",S.bind(this)),g.addEventListener("touchstart",b,{passive:!0}),g.addEventListener("mouseover",h.bind(this)),g.addEventListener("mouseout",A.bind(this))}),a.setAttribute("data-open",u?"true":"false"),t&&!u&&a.setAttribute("hidden",""),F(),this}function n(u,g,x){let D=String(x);return g.setAttribute("aria-"+u,D),D}function b(){L=!0}function h(u){k||(L||this.dispatchEvent("triggerover",{target:this,trigger:u.target,type:"triggerover"}),L=!1)}function A(u){k||this.dispatchEvent("triggerout",{target:this,trigger:u.target,type:"triggerout"})}function S(u){if(!k)switch(this.dispatchEvent("triggerclick",{target:this,trigger:u.target,type:"triggerclick"}),u.preventDefault(),i){case s:case d:this.expand();break;case l:case m:this.collapse();break}}function C(){if(c==null||c.halt(),i===l||i===m)return this;if(i=l,t&&a.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!v||!y)return E(),this;let u=c==null?void 0:c.isAnimated();return u&&c.addEventListener(q.END_EVENT,E),v(),u||E(),this}function M(){if(c==null||c.halt(),i===d||i===s)return this;for(let g=0,x=o.length;gw,this.getTransition=()=>c,this.getDom=oe,this.isAnimating=()=>i===l||i===d,this.isExpanded=()=>i===m,this.resume=F,this.setData=U,this.suspend=X,Ie.BASE_CLASS=wt,this}var Kt={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function oa(e){let t=new ie,r=new q(e,Kt,this);function o(s){return r.init(s),this}function a(){return r.applyClass(Kt.ALPHA_100),this}function i(){return r.applyClass(Kt.ALPHA_0),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.remove=r.remove,this.setElement=r.setElement,this.fadeIn=a,this.fadeOut=i,this.init=o,this}oa.CLASSES=Kt;function q(e,t,r){let o=t,a=e;if(!r)throw new Error("Child transition argument must be defined!");let i=r,s,d,l,m=!1,c=!1,v=!1;if(typeof o.CSS_PROPERTY=="undefined"||typeof o.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function y(){d&&m?(a.addEventListener(d,l),i.dispatchEvent(q.BEGIN_EVENT,{target:i,type:q.BEGIN_EVENT}),a.classList.add(q.ANIMATING_CLASS),c=!0):(i.dispatchEvent(q.BEGIN_EVENT,{target:i,type:q.BEGIN_EVENT}),l())}function f(){a.removeEventListener(d,l)}function E(S){return S&&S.propertyName!==o.CSS_PROPERTY?!1:(f(),a.classList.remove(q.ANIMATING_CLASS),i.dispatchEvent(q.END_EVENT,{target:i,type:q.END_EVENT}),c=!1,!0)}function w(){let S;for(S in o)({}).hasOwnProperty.call(o,S)&&o[S]!==o.BASE_CLASS&&a.classList.contains(o[S])&&a.classList.remove(o[S])}function k(){c&&(a.style.webkitTransitionDuration="0",a.style.mozTransitionDuration="0",a.style.oTransitionDuration="0",a.style.transitionDuration="0",a.removeEventListener(d,l),l(),a.style.webkitTransitionDuration="",a.style.mozTransitionDuration="",a.style.oTransitionDuration="",a.style.transitionDuration="")}function L(){k(),w(),a.classList.remove(o.BASE_CLASS)}function T(){a.classList.remove(q.NO_ANIMATION_CLASS),m=!0}function B(){a.classList.add(q.NO_ANIMATION_CLASS),m=!1}function n(S){if(!S){let P="Element does not have TransitionEnd event. It may be null!";throw new Error(P)}let C,M={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},z;for(z in M)if({}.hasOwnProperty.call(M,z)&&typeof S.style[z]!="undefined"){C=M[z];break}return C}function b(S){L(),T(),a=S,a.classList.add(o.BASE_CLASS),d=n(a)}function h(S){if(m=!a.classList.contains(q.NO_ANIMATION_CLASS),l=E.bind(this),b(a),!S)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return a.classList.add(S),this}function A(S){return v||(w(),v=!0),a.classList.contains(S)?!1:(f(),a.classList.remove(s),s=S,y(),a.classList.add(s),!0)}return this.animateOff=B,this.animateOn=T,this.applyClass=A,this.halt=k,this.init=h,this.isAnimated=()=>m,this.remove=L,this.setElement=b,this}q.BEGIN_EVENT="transitionbegin";q.END_EVENT="transitionend";q.NO_ANIMATION_CLASS="u-no-animation";q.ANIMATING_CLASS="u-is-animating";var kt={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 ce(e){let t=new ie,r=new q(e,kt,this),o=0;function a(){let y=e.scrollHeight+"px";e.style.maxHeight=y}function i(){window.removeEventListener("load",i),a()}function s(v){return r.init(v),window.addEventListener("load",i),window.addEventListener("resize",()=>{a()}),this}function d(){return a(),r.applyClass(kt.MH_DEFAULT),(!o||e.scrollHeight>o)&&(o=e.scrollHeight),this}function l(){return r.applyClass(kt.MH_SUMMARY),o=e.scrollHeight,this}function m(){return r.applyClass(kt.MH_ZERO),o=e.scrollHeight,this}function c(){return e.style.maxHeight="",r.remove()}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.setElement=r.setElement,this.refresh=a,this.remove=c,this.init=s,this.maxHeightDefault=d,this.maxHeightSummary=l,this.maxHeightZero=m,this}ce.CLASSES=kt;var Ne={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 aa(e){let t=new ie,r=new q(e,Ne,this);function o(l){return r.init(l),this}function a(){return r.applyClass(Ne.MOVE_TO_ORIGIN),this}function i(l){l=l||1;let m=[Ne.MOVE_LEFT,Ne.MOVE_LEFT_2X,Ne.MOVE_LEFT_3X];return r.applyClass(m[l-1]),this}function s(){return r.applyClass(Ne.MOVE_RIGHT),this}function d(){return r.applyClass(Ne.MOVE_UP),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.setElement=r.setElement,this.remove=r.remove,this.init=o,this.moveLeft=()=>i(1),this.moveLeft2=()=>i(2),this.moveLeft3=()=>i(3),this.moveRight=s,this.moveToOrigin=a,this.moveUp=d,this}aa.CLASSES=Ne;var nt="o-expandable";function ze(e){let t=_e(e,nt),r,o,a,i,s;function d(){if(!ge(t))return this;r=t.querySelector(`.${nt}__header`),o=t.querySelector(`.${nt}__content`),a=t.querySelector(`.${nt}__label`);let c=t.classList.contains(`${nt}--onload-open`);le(t,"behavior_flyout-menu"),le(r,"behavior_flyout-menu_trigger"),le(o,"behavior_flyout-menu_content");let v=c?ce.CLASSES.MH_DEFAULT:ce.CLASSES.MH_ZERO;return i=new ce(o).init(v),s=new Ie(t),s.setTransition(i,i.maxHeightZero,i.maxHeightDefault),s.init(c),s.addEventListener("expandbegin",()=>{o.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),s.addEventListener("collapseend",()=>{o.classList.add("u-hidden")}),this}function l(){return a.textContent.trim()}this.init=d,this.expand=()=>s.expand(),this.collapse=()=>s.collapse(),this.isExpanded=()=>s.isExpanded(),this.refresh=()=>s.getTransition().refresh(),this.getLabelText=l;let m=new ie;return this.addEventListener=m.addEventListener,this.removeEventListener=m.removeEventListener,this.dispatchEvent=m.dispatchEvent,this}ze.BASE_CLASS=nt;ze.init=e=>de(`.${ze.BASE_CLASS}`,ze,e);var Jt="o-expandable-group";function Zt(e){let t=_e(e,Jt),r=t.classList.contains(`${Jt}--accordion`),o,a;function i(d){let l=d.target;a&&a!==l&&a.collapse(),a=l}function s(d){return ge(t)?(r&&(o=d,o.forEach(l=>{l.addEventListener("expandbegin",i)})),this):this}return this.init=s,this}Zt.BASE_CLASS=Jt;Zt.init=e=>{(e||document).querySelectorAll(`.${Jt}`).forEach(o=>{let a=de(`.${ze.BASE_CLASS}`,ze,o);new Zt(o).init(a)})};var st="o-summary";function Qt(e){let t=_e(e,st),r=t.classList.contains(`${st}--mobile`),o=t.querySelector(`.${st}__content`),a=t.querySelector(`.${st}__btn`),i,s,d;function l(){return ge(t)?(window.addEventListener("load",m),this):this}function m(){window.removeEventListener("load",m),d=!f(),le(t,"behavior_flyout-menu"),le(o,"behavior_flyout-menu_content"),le(a,"behavior_flyout-menu_trigger"),s=new Ie(t,!1),i=new ce(o),i.init(d?ce.CLASSES.MH_SUMMARY:ce.CLASSES.MH_DEFAULT),s.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),s.addEventListener("triggerclick",E),s.init(),y(),window.addEventListener("resize",y),"onorientationchange"in window&&window.addEventListener("orientationchange",y),t.addEventListener("focusin",c),o.addEventListener("click",v)}function c(b){!d&&b.target!==a&&(a.click(),t.removeEventListener("focusin",c))}function v(b){b.target.tagName!=="A"&&s.isExpanded()&&i.refresh()}function y(){f()?B():T()}function f(){return r&&!Br(Gt)||o.scrollHeight<=88}function E(){s.addEventListener("expandend",w)}function w(){L(),window.removeEventListener("resize",y),window.removeEventListener("orientationchange",y),s.removeEventListener("expandend",w),s.suspend(),i.remove()}function k(){a.classList.remove("u-hidden")}function L(){a.classList.add("u-hidden")}function T(){return d&&(s.collapse(),i.animateOn(),k(),d=!1),!d}function B(){return d||(i.animateOff(),s.expand(),L(),d=!0),d}let n=new ie;return this.addEventListener=n.addEventListener,this.removeEventListener=n.removeEventListener,this.dispatchEvent=n.dispatchEvent,this.init=l,this}Qt.BASE_CLASS=st;Qt.init=e=>de(`.${st}`,Qt,e);var St="o-summary-minimal";function er(e){let t=_e(e,St),r=t.querySelector(`.${St}__content`),o=t.querySelector(`.${St}__btn`),a,i;function s(){return ge(t)?(le(t,"behavior_flyout-menu"),le(r,"behavior_flyout-menu_content"),le(o,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),i=new Ie(t,!1),a=new ce(r),a.init(ce.CLASSES.MH_SUMMARY),i.setTransition(a,a.maxHeightSummary,a.maxHeightDefault),i.init(),t.addEventListener("focusin",l),r.addEventListener("click",m),i.collapse(),a.animateOn()}function l(v){v.target!==o&&(o.click(),t.removeEventListener("focusin",l))}function m(v){v.target.tagName!=="A"&&i.isExpanded()&&a.refresh()}let c=new ie;return this.addEventListener=c.addEventListener,this.removeEventListener=c.removeEventListener,this.dispatchEvent=c.dispatchEvent,this.init=s,this}er.BASE_CLASS=St;er.init=e=>de(`.${St}`,er,e);var Pr={};j(Pr,{default:()=>Zi});var Zi={};var Rr={};j(Rr,{default:()=>en});var en={};var Vr={};j(Vr,{default:()=>rn});var rn={};var qr={};j(qr,{default:()=>an});var an={};var Hr={};j(Hr,{default:()=>sn});var sn={};var $r={};j($r,{default:()=>dn});var dn={};var Fr={};j(Fr,{default:()=>pn});var pn={};var Ur={};j(Ur,{default:()=>un});var un={};var Wr={};j(Wr,{default:()=>fn});var fn={};var gn;function bn(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function vn(e,t){return RegExp(bn(t.trim()),"i").test(e)}function yn(e,t,r){let o=e,a=t,i=(r==null?void 0:r.maxSelections)||5,s=[],d=[],l=[],m=[],c=-1;function v(b){return a+"-"+b.value.trim().replace(/\s+/g,"-").toLowerCase()}function y(){return d.length>=i}function f(b){let h,A=[],S=!1;for(let C=0,M=b.length;C0&&(l=s.reduce(function(h,A,S){return k(h,A,S,b)},[])),c=-1,l}function T(b){return s[b]}function B(b){let h=l.length,A=h===0?s.length:h;b<0?c=-1:b>=A?c=A-1:c=b}function n(){return c}return this.init=E,this.toggleOption=w,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=y,this.filterIndices=L,this.clearFilter=function(){return l=m=[],gn},this.getFilterIndices=function(){return l},this.getLastFilterIndices=function(){return m},this.getIndex=n,this.setIndex=B,this.resetIndex=function(){return c=-1,c},this.getOption=T,this}var la=yn;function we(e,t,r){let o=document.createElement(e);return Object.keys(r).forEach(a=>{let i=r[a];a in o?o[a]=i:o.setAttribute(a,i)}),t&&t.appendChild(o),o}var da='';var Sn=da,ke="o-multiselect",En="a-checkbox",Dn="a-text-input",ca="prev",tr="next",Gr="Enter",On=" ",pa="Escape",Ln="ArrowUp",ma="ArrowDown",ua="Tab",ha={renderTags:!0,maxSelections:5};function rr(e){e.classList.add(ke);let t=_e(e,ke),r=!1,o,a,i,s,d,l,m,c,v,y,f,E=[],w;function k(){f.classList.remove("u-no-results"),f.classList.add("u-filtered");let u=i.getLastFilterIndices();for(let g=0,x=u.length;g0?(k(),!0):(T(),!1)}function n(u){L(),i.resetIndex();let g=i.filterIndices(u);B(g)}function b(){return l.classList.add("u-active"),y.classList.remove("u-invisible"),y.setAttribute("aria-hidden",!1),w.dispatchEvent("expandbegin",{target:w}),w}function h(){return l.classList.remove("u-active"),y.classList.add("u-invisible"),y.setAttribute("aria-hidden",!0),i.resetIndex(),w.dispatchEvent("collapsebegin",{target:w}),w}function A(u){u===tr?i.setIndex(i.getIndex()+1):u===ca&&i.setIndex(i.getIndex()-1);let g=i.getIndex();if(g>-1){let x=g,D=i.getFilterIndices();D.length>0&&(x=D[g]);let W=i.getOption(x).value,Te=f.querySelector('[data-option="'+W+'"]').querySelector("input");r=!0,Te.focus()}else r=!1,v.focus()}function S(){v.value="",L()}function C(u){let g=u.target;g.tagName==="BUTTON"&&(u.preventDefault(),g.removeEventListener("click",C),g.querySelector("label").click())}function M(u){if(u.key===On||u.key===Gr){let g=u.target.querySelector("label");f.querySelector("#"+g.getAttribute("for")).click()}}function z(u){return o+"-"+u.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function P(u,g){let x=z(g),D=we("li",null,{"data-option":g.value}),N=we("button",D,{type:"button",class:"a-tag-filter",innerHTML:""});u.appendChild(D),N.addEventListener("click",C),N.addEventListener("keydown",M)}function V(u){let g=i.getOption(u)||i.getOption(i.getIndex());if(g){if(g.checked){f.classList.contains("u-max-selections")&&f.classList.remove("u-max-selections");let x='[data-option="'+g.value+'"]',D=m.querySelector(x);typeof D!="undefined"&&D&&(m==null||m.removeChild(D))}else d!=null&&d.renderTags&&m&&P(m,g);i.toggleOption(u),i.isAtMaxSelections()&&f.classList.add("u-max-selections"),w.dispatchEvent("selectionsupdated",{target:w})}i.resetIndex(),r=!1,y.getAttribute("aria-hidden")==="false"&&v.focus()}function re(u){V(Number(u.target.getAttribute("data-index"))),S()}function oe(){c.addEventListener("mousemove",function(x){let D=x.target;x.offsetX>D.offsetWidth-35?D.style.cursor="pointer":D.style.cursor="auto"}),c.addEventListener("mouseup",function(x){let D=x.target;x.offsetX>D.offsetWidth-35&&y.offsetHeight===140&&v.blur()}),v.addEventListener("input",function(){n(this.value)}),v.addEventListener("focus",function(){y.getAttribute("aria-hidden")==="true"&&b()}),v.addEventListener("blur",function(){!r&&y.getAttribute("aria-hidden")==="false"&&h()}),v.addEventListener("keydown",function(x){let D=x.key;y.getAttribute("aria-hidden")==="true"&&D!==ua&&b(),D===Gr?(x.preventDefault(),A(tr)):D===pa?(S(),h()):D===ma?A(tr):D===ua&&!x.shiftKey&&y.getAttribute("aria-hidden")==="false"&&h()}),f.addEventListener("mousedown",function(){r=!0}),f.addEventListener("keydown",function(x){let D=x.key,N=x.target,W=N.checked;if(D===Gr){x.preventDefault(),N.checked=!W;let Y=new Event("change",{bubbles:!1,cancelable:!0});N.dispatchEvent(Y)}else D===pa?(v.focus(),h()):D===Ln?A(ca):D===ma&&A(tr)}),y.addEventListener("mousedown",function(x){x.target.tagName==="LABEL"&&(r=!0)});let u=f.querySelectorAll("input");for(let x=0,D=u.length;x0){i=new la(s,o,d).init();let g=F();t.parentNode.removeChild(t),t=g,ge(t),oe()}return this}function U(){return i}this.init=X,this.expand=b,this.collapse=h;let Q=new ie;return this.addEventListener=Q.addEventListener,this.removeEventListener=Q.removeEventListener,this.dispatchEvent=Q.dispatchEvent,this.getModel=U,this.updateSelections=V,this.selectionClickHandler=C,this.selectionKeyDownHandler=M,this}rr.BASE_CLASS=ke;rr.init=e=>de(`.${ke}`,rr,void 0,e);var Xr={};j(Xr,{default:()=>Tn});var Tn={};var Yr={};j(Yr,{default:()=>Cn});var Cn={};var Kr={};j(Kr,{default:()=>Bn});var Bn={};var Jr={};j(Jr,{default:()=>Nn});var Nn={};var Zr={};j(Zr,{default:()=>Pn});var Pn={};var Qr={};j(Qr,{default:()=>Vn});var Vn={};var eo={};j(eo,{default:()=>Hn});var Hn={};var to={};j(to,{default:()=>Fn});var Fn={};var ro={};j(ro,{default:()=>Wn});var Wn={};var oo={};j(oo,{default:()=>Xn});var Xn={};var ao={};j(ao,{default:()=>Kn});var Kn={};var io={};j(io,{default:()=>Zn});var Zn={};var no={};j(no,{default:()=>es});var es={};var so={};j(so,{default:()=>rs});var rs={};var lo={};j(lo,{default:()=>as});var as={};var co={};j(co,{default:()=>ns});var ns={};var po={};j(po,{default:()=>ls});var ls={};var mo={};j(mo,{default:()=>cs});var cs={};var uo={};j(uo,{default:()=>ms});var ms={};var ho={};j(ho,{default:()=>hs});var hs={};var fa={};j(fa,{default:()=>gs});var gs={};var ga="data-tooltip";function or(e){let t=e.getAttribute(ga);function r(){ra(e,{theme:"cfpb",maxWidth:450,content:function(o){let a=o.parentElement.querySelector(`#${t}`),i=document.createElement("div"),s=document.importNode(a.content,!0);return i.appendChild(s),i},plugins:[{name:"hideOnEsc",defaultValue:!0,fn({hide:o}){function a(i){i.key==="Escape"&&o()}return{onShow(){document.body.addEventListener("keydown",a)},onHide(){document.body.removeEventListener("keydown",a)}}}}]})}return this.init=r,this}or.BASE_ATTRIBUTE=ga;or.init=e=>de(`[${or.BASE_ATTRIBUTE}]`,or,e);})(); +(()=>{var vo=Object.defineProperty;var go=Object.getOwnPropertySymbols;var ka=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable;var bo=(e,t,r)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nr=(e,t)=>{for(var r in t||(t={}))ka.call(t,r)&&bo(e,r,t[r]);if(go)for(var r of go(t))Sa.call(t,r)&&bo(e,r,t[r]);return e};var j=(e,t)=>{for(var r in t)vo(e,r,{get:t[r],enumerable:!0})};var $="top",J="bottom",K="right",G="left",Nt="auto",Me=[$,J,K,G],Oe="start",Ve="end",yo="clippingParents",zt="viewport",et="popper",xo="reference",sr=Me.reduce(function(e,t){return e.concat([t+"-"+Oe,t+"-"+Ve])},[]),Pt=[].concat(Me,[Nt]).reduce(function(e,t){return e.concat([t,t+"-"+Oe,t+"-"+Ve])},[]),Ea="beforeRead",Da="read",Oa="afterRead",La="beforeMain",Aa="main",Ta="afterMain",ja="beforeWrite",Ca="write",Ma="afterWrite",_o=[Ea,Da,Oa,La,Aa,Ta,ja,Ca,Ma];function ee(e){return e?(e.nodeName||"").toLowerCase():null}function H(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function me(e){var t=H(e).Element;return e instanceof t||e instanceof Element}function Z(e){var t=H(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tt(e){if(typeof ShadowRoot=="undefined")return!1;var t=H(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ba(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!Z(i)||!ee(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(s){var d=a[s];d===!1?i.removeAttribute(s):i.setAttribute(s,d===!0?"":d)}))})}function Ia(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),d=s.reduce(function(l,m){return l[m]="",l},{});!Z(a)||!ee(a)||(Object.assign(a.style,d),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var ut={name:"applyStyles",enabled:!0,phase:"write",fn:Ba,effect:Ia,requires:["computeStyles"]};function te(e){return e.split("-")[0]}var be=Math.max,qe=Math.min,Le=Math.round;function rt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ht(){return!/^((?!chrome|android).)*safari/i.test(rt())}function ue(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),a=1,i=1;t&&Z(e)&&(a=e.offsetWidth>0&&Le(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Le(o.height)/e.offsetHeight||1);var s=me(e)?H(e):window,d=s.visualViewport,l=!ht()&&r,m=(o.left+(l&&d?d.offsetLeft:0))/a,c=(o.top+(l&&d?d.offsetTop:0))/i,v=o.width/a,y=o.height/i;return{width:v,height:y,top:c,right:m+v,bottom:c+y,left:m,x:m,y:c}}function He(e){var t=ue(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ft(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&tt(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function se(e){return H(e).getComputedStyle(e)}function lr(e){return["table","td","th"].indexOf(ee(e))>=0}function ae(e){return((me(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ae(e){return ee(e)==="html"?e:e.assignedSlot||e.parentNode||(tt(e)?e.host:null)||ae(e)}function wo(e){return!Z(e)||se(e).position==="fixed"?null:e.offsetParent}function Na(e){var t=/firefox/i.test(rt()),r=/Trident/i.test(rt());if(r&&Z(e)){var o=se(e);if(o.position==="fixed")return null}var a=Ae(e);for(tt(a)&&(a=a.host);Z(a)&&["html","body"].indexOf(ee(a))<0;){var i=se(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ve(e){for(var t=H(e),r=wo(e);r&&lr(r)&&se(r).position==="static";)r=wo(r);return r&&(ee(r)==="html"||ee(r)==="body"&&se(r).position==="static")?t:r||Na(e)||t}function $e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,r){return be(e,qe(t,r))}function ko(e,t,r){var o=Fe(e,t,r);return o>r?r:o}function gt(){return{top:0,right:0,bottom:0,left:0}}function bt(e){return Object.assign({},gt(),e)}function vt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var za=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,bt(typeof t!="number"?t:vt(t,Me))};function Pa(e){var t,r=e.state,o=e.name,a=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,d=te(r.placement),l=$e(d),m=[G,K].indexOf(d)>=0,c=m?"height":"width";if(!(!i||!s)){var v=za(a.padding,r),y=He(i),f=l==="y"?$:G,E=l==="y"?J:K,w=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],k=s[l]-r.rects.reference[l],L=ve(i),T=L?l==="y"?L.clientHeight||0:L.clientWidth||0:0,B=w/2-k/2,n=v[f],b=T-y[c]-v[E],h=T/2-y[c]/2+B,A=Fe(n,h,b),S=l;r.modifiersData[o]=(t={},t[S]=A,t.centerOffset=A-h,t)}}function Ra(e){var t=e.state,r=e.options,o=r.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ft(t.elements.popper,a)&&(t.elements.arrow=a))}var So={name:"arrow",enabled:!0,phase:"main",fn:Pa,effect:Ra,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e){return e.split("-")[1]}var Va={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qa(e,t){var r=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:Le(r*a)/a||0,y:Le(o*a)/a||0}}function Eo(e){var t,r=e.popper,o=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,d=e.position,l=e.gpuAcceleration,m=e.adaptive,c=e.roundOffsets,v=e.isFixed,y=s.x,f=y===void 0?0:y,E=s.y,w=E===void 0?0:E,k=typeof c=="function"?c({x:f,y:w}):{x:f,y:w};f=k.x,w=k.y;var L=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),B=G,n=$,b=window;if(m){var h=ve(r),A="clientHeight",S="clientWidth";if(h===H(r)&&(h=ae(r),se(h).position!=="static"&&d==="absolute"&&(A="scrollHeight",S="scrollWidth")),h=h,a===$||(a===G||a===K)&&i===Ve){n=J;var C=v&&h===b&&b.visualViewport?b.visualViewport.height:h[A];w-=C-o.height,w*=l?1:-1}if(a===G||(a===$||a===J)&&i===Ve){B=K;var M=v&&h===b&&b.visualViewport?b.visualViewport.width:h[S];f-=M-o.width,f*=l?1:-1}}var z=Object.assign({position:d},m&&Va),P=c===!0?qa({x:f,y:w},H(r)):{x:f,y:w};if(f=P.x,w=P.y,l){var V;return Object.assign({},z,(V={},V[n]=T?"0":"",V[B]=L?"0":"",V.transform=(b.devicePixelRatio||1)<=1?"translate("+f+"px, "+w+"px)":"translate3d("+f+"px, "+w+"px, 0)",V))}return Object.assign({},z,(t={},t[n]=T?w+"px":"",t[B]=L?f+"px":"",t.transform="",t))}function Ha(e){var t=e.state,r=e.options,o=r.gpuAcceleration,a=o===void 0?!0:o,i=r.adaptive,s=i===void 0?!0:i,d=r.roundOffsets,l=d===void 0?!0:d,m={placement:te(t.placement),variation:he(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Eo(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eo(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Do={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ha,data:{}};var Rt={passive:!0};function $a(e){var t=e.state,r=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,s=o.resize,d=s===void 0?!0:s,l=H(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&m.forEach(function(c){c.addEventListener("scroll",r.update,Rt)}),d&&l.addEventListener("resize",r.update,Rt),function(){i&&m.forEach(function(c){c.removeEventListener("scroll",r.update,Rt)}),d&&l.removeEventListener("resize",r.update,Rt)}}var Oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$a,data:{}};var Fa={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e){return e.replace(/left|right|bottom|top/g,function(t){return Fa[t]})}var Ua={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,function(t){return Ua[t]})}function Ue(e){var t=H(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function We(e){return ue(ae(e)).left+Ue(e).scrollLeft}function dr(e,t){var r=H(e),o=ae(e),a=r.visualViewport,i=o.clientWidth,s=o.clientHeight,d=0,l=0;if(a){i=a.width,s=a.height;var m=ht();(m||!m&&t==="fixed")&&(d=a.offsetLeft,l=a.offsetTop)}return{width:i,height:s,x:d+We(e),y:l}}function cr(e){var t,r=ae(e),o=Ue(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=be(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=be(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+We(e),l=-o.scrollTop;return se(a||r).direction==="rtl"&&(d+=be(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:d,y:l}}function Ge(e){var t=se(e),r=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+o)}function qt(e){return["html","body","#document"].indexOf(ee(e))>=0?e.ownerDocument.body:Z(e)&&Ge(e)?e:qt(Ae(e))}function Be(e,t){var r;t===void 0&&(t=[]);var o=qt(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=H(o),s=a?[i].concat(i.visualViewport||[],Ge(o)?o:[]):o,d=t.concat(s);return a?d:d.concat(Be(Ae(s)))}function at(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wa(e,t){var r=ue(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Lo(e,t,r){return t===zt?at(dr(e,r)):me(t)?Wa(t,r):at(cr(ae(e)))}function Ga(e){var t=Be(Ae(e)),r=["absolute","fixed"].indexOf(se(e).position)>=0,o=r&&Z(e)?ve(e):e;return me(o)?t.filter(function(a){return me(a)&&ft(a,o)&&ee(a)!=="body"}):[]}function pr(e,t,r,o){var a=t==="clippingParents"?Ga(e):[].concat(t),i=[].concat(a,[r]),s=i[0],d=i.reduce(function(l,m){var c=Lo(e,m,o);return l.top=be(c.top,l.top),l.right=qe(c.right,l.right),l.bottom=qe(c.bottom,l.bottom),l.left=be(c.left,l.left),l},Lo(e,s,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function yt(e){var t=e.reference,r=e.element,o=e.placement,a=o?te(o):null,i=o?he(o):null,s=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,l;switch(a){case $:l={x:s,y:t.y-r.height};break;case J:l={x:s,y:t.y+t.height};break;case K:l={x:t.x+t.width,y:d};break;case G:l={x:t.x-r.width,y:d};break;default:l={x:t.x,y:t.y}}var m=a?$e(a):null;if(m!=null){var c=m==="y"?"height":"width";switch(i){case Oe:l[m]=l[m]-(t[c]/2-r[c]/2);break;case Ve:l[m]=l[m]+(t[c]/2-r[c]/2);break;default:}}return l}function ye(e,t){t===void 0&&(t={});var r=t,o=r.placement,a=o===void 0?e.placement:o,i=r.strategy,s=i===void 0?e.strategy:i,d=r.boundary,l=d===void 0?yo:d,m=r.rootBoundary,c=m===void 0?zt:m,v=r.elementContext,y=v===void 0?et:v,f=r.altBoundary,E=f===void 0?!1:f,w=r.padding,k=w===void 0?0:w,L=bt(typeof k!="number"?k:vt(k,Me)),T=y===et?xo:et,B=e.rects.popper,n=e.elements[E?T:y],b=pr(me(n)?n:n.contextElement||ae(e.elements.popper),l,c,s),h=ue(e.elements.reference),A=yt({reference:h,element:B,strategy:"absolute",placement:a}),S=at(Object.assign({},B,A)),C=y===et?S:h,M={top:b.top-C.top+L.top,bottom:C.bottom-b.bottom+L.bottom,left:b.left-C.left+L.left,right:C.right-b.right+L.right},z=e.modifiersData.offset;if(y===et&&z){var P=z[a];Object.keys(M).forEach(function(V){var re=[K,J].indexOf(V)>=0?1:-1,oe=[$,J].indexOf(V)>=0?"y":"x";M[V]+=P[oe]*re})}return M}function mr(e,t){t===void 0&&(t={});var r=t,o=r.placement,a=r.boundary,i=r.rootBoundary,s=r.padding,d=r.flipVariations,l=r.allowedAutoPlacements,m=l===void 0?Pt:l,c=he(o),v=c?d?sr:sr.filter(function(E){return he(E)===c}):Me,y=v.filter(function(E){return m.indexOf(E)>=0});y.length===0&&(y=v);var f=y.reduce(function(E,w){return E[w]=ye(e,{placement:w,boundary:a,rootBoundary:i,padding:s})[te(w)],E},{});return Object.keys(f).sort(function(E,w){return f[E]-f[w]})}function Xa(e){if(te(e)===Nt)return[];var t=ot(e);return[Vt(e),t,Vt(t)]}function Ya(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!0:s,l=r.fallbackPlacements,m=r.padding,c=r.boundary,v=r.rootBoundary,y=r.altBoundary,f=r.flipVariations,E=f===void 0?!0:f,w=r.allowedAutoPlacements,k=t.options.placement,L=te(k),T=L===k,B=l||(T||!E?[ot(k)]:Xa(k)),n=[k].concat(B).reduce(function(N,W){return N.concat(te(W)===Nt?mr(t,{placement:W,boundary:c,rootBoundary:v,padding:m,flipVariations:E,allowedAutoPlacements:w}):W)},[]),b=t.rects.reference,h=t.rects.popper,A=new Map,S=!0,C=n[0],M=0;M=0,oe=re?"width":"height",F=ye(t,{placement:z,boundary:c,rootBoundary:v,altBoundary:y,padding:m}),X=re?V?K:G:V?J:$;b[oe]>h[oe]&&(X=ot(X));var U=ot(X),Q=[];if(i&&Q.push(F[P]<=0),d&&Q.push(F[X]<=0,F[U]<=0),Q.every(function(N){return N})){C=z,S=!1;break}A.set(z,Q)}if(S)for(var u=E?3:1,g=function(W){var Y=n.find(function(Te){var Ee=A.get(Te);if(Ee)return Ee.slice(0,W).every(function(Ke){return Ke})});if(Y)return C=Y,"break"},x=u;x>0;x--){var D=g(x);if(D==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}var Ao={name:"flip",enabled:!0,phase:"main",fn:Ya,requiresIfExists:["offset"],data:{_skip:!1}};function To(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jo(e){return[$,K,J,G].some(function(t){return e[t]>=0})}function Ka(e){var t=e.state,r=e.name,o=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=ye(t,{elementContext:"reference"}),d=ye(t,{altBoundary:!0}),l=To(s,o),m=To(d,a,i),c=jo(l),v=jo(m);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:m,isReferenceHidden:c,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":v})}var Co={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ka};function Ja(e,t,r){var o=te(e),a=[G,$].indexOf(o)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],d=i[1];return s=s||0,d=(d||0)*a,[G,K].indexOf(o)>=0?{x:d,y:s}:{x:s,y:d}}function Za(e){var t=e.state,r=e.options,o=e.name,a=r.offset,i=a===void 0?[0,0]:a,s=Pt.reduce(function(c,v){return c[v]=Ja(v,t.rects,i),c},{}),d=s[t.placement],l=d.x,m=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=m),t.modifiersData[o]=s}var Mo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Za};function Qa(e){var t=e.state,r=e.name;t.modifiersData[r]=yt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Bo={name:"popperOffsets",enabled:!0,phase:"read",fn:Qa,data:{}};function ur(e){return e==="x"?"y":"x"}function ei(e){var t=e.state,r=e.options,o=e.name,a=r.mainAxis,i=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!1:s,l=r.boundary,m=r.rootBoundary,c=r.altBoundary,v=r.padding,y=r.tether,f=y===void 0?!0:y,E=r.tetherOffset,w=E===void 0?0:E,k=ye(t,{boundary:l,rootBoundary:m,padding:v,altBoundary:c}),L=te(t.placement),T=he(t.placement),B=!T,n=$e(L),b=ur(n),h=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,C=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(h){if(i){var V,re=n==="y"?$:G,oe=n==="y"?J:K,F=n==="y"?"height":"width",X=h[n],U=X+k[re],Q=X-k[oe],u=f?-S[F]/2:0,g=T===Oe?A[F]:S[F],x=T===Oe?-S[F]:-A[F],D=t.elements.arrow,N=f&&D?He(D):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gt(),Y=W[re],Te=W[oe],Ee=Fe(0,A[F],N[F]),Ke=B?A[F]/2-u-Ee-Y-M.mainAxis:g-Ee-Y-M.mainAxis,je=B?-A[F]/2+u+Ee+Te+M.mainAxis:x+Ee+Te+M.mainAxis,Je=t.elements.arrow&&ve(t.elements.arrow),Et=Je?n==="y"?Je.clientTop||0:Je.clientLeft||0:0,lt=(V=z==null?void 0:z[n])!=null?V:0,Dt=X+Ke-lt-Et,Ot=X+je-lt,dt=Fe(f?qe(U,Dt):U,X,f?be(Q,Ot):Q);h[n]=dt,P[n]=dt-X}if(d){var ct,Lt=n==="x"?$:G,At=n==="x"?J:K,De=h[b],Ce=b==="y"?"height":"width",pt=De+k[Lt],Pe=De-k[At],mt=[$,G].indexOf(L)!==-1,Tt=(ct=z==null?void 0:z[b])!=null?ct:0,jt=mt?pt:De-A[Ce]-S[Ce]-Tt+M.altAxis,Ct=mt?De+A[Ce]+S[Ce]-Tt-M.altAxis:Pe,Mt=f&&mt?ko(jt,De,Ct):Fe(f?jt:pt,De,f?Ct:Pe);h[b]=Mt,P[b]=Mt-De}t.modifiersData[o]=P}}var Io={name:"preventOverflow",enabled:!0,phase:"main",fn:ei,requiresIfExists:["offset"]};function hr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fr(e){return e===H(e)||!Z(e)?Ue(e):hr(e)}function ti(e){var t=e.getBoundingClientRect(),r=Le(t.width)/e.offsetWidth||1,o=Le(t.height)/e.offsetHeight||1;return r!==1||o!==1}function gr(e,t,r){r===void 0&&(r=!1);var o=Z(t),a=Z(t)&&ti(t),i=ae(t),s=ue(e,a,r),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((ee(t)!=="body"||Ge(i))&&(d=fr(t)),Z(t)?(l=ue(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=We(i))),{x:s.left+d.scrollLeft-l.x,y:s.top+d.scrollTop-l.y,width:s.width,height:s.height}}function ri(e){var t=new Map,r=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(d){if(!r.has(d)){var l=t.get(d);l&&a(l)}}),o.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),o}function br(e){var t=ri(e);return _o.reduce(function(r,o){return r.concat(t.filter(function(a){return a.phase===o}))},[])}function vr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function yr(e){var t=e.reduce(function(r,o){var a=r[o.name];return r[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var No={placement:"bottom",modifiers:[],strategy:"absolute"};function zo(){for(var e=arguments.length,t=new Array(e),r=0;r-1}function Zo(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Ro(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function ni(e){return e.split(/\s+/).filter(Boolean)}function it(e){return[].concat(e)}function Vo(e,t){e.indexOf(t)===-1&&e.push(t)}function si(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function li(e){return e.split("-")[0]}function $t(e){return[].slice.call(e)}function qo(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function xt(){return document.createElement("div")}function Ft(e){return["Element","Fragment"].some(function(t){return Or(e,t)})}function di(e){return Or(e,"NodeList")}function ci(e){return Or(e,"MouseEvent")}function pi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function mi(e){return Ft(e)?[e]:di(e)?$t(e):Array.isArray(e)?e:$t(document.querySelectorAll(e))}function wr(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function Ho(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function ui(e){var t,r=it(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function hi(e,t){var r=t.clientX,o=t.clientY;return e.every(function(a){var i=a.popperRect,s=a.popperState,d=a.props,l=d.interactiveBorder,m=li(s.placement),c=s.modifiersData.offset;if(!c)return!0;var v=m==="bottom"?c.top.y:0,y=m==="top"?c.bottom.y:0,f=m==="right"?c.left.x:0,E=m==="left"?c.right.x:0,w=i.top-o+v>l,k=o-i.bottom-y>l,L=i.left-r+f>l,T=r-i.right-E>l;return w||k||L||T})}function kr(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[o](a,r)})}function $o(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var Se={isTouch:!1},Fo=0;function fi(){Se.isTouch||(Se.isTouch=!0,window.performance&&document.addEventListener("mousemove",Qo))}function Qo(){var e=performance.now();e-Fo<20&&(Se.isTouch=!1,document.removeEventListener("mousemove",Qo)),Fo=e}function gi(){var e=document.activeElement;if(pi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function bi(){document.addEventListener("touchstart",fi,Xe),window.addEventListener("blur",gi)}var vi=typeof window!="undefined"&&typeof document!="undefined",yi=vi?!!window.msCrypto:!1;var xi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_i={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xe=Object.assign({appendTo:Jo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},xi,_i),wi=Object.keys(xe),ki=function(t){var r=Object.keys(t);r.forEach(function(o){xe[o]=t[o]})};function ea(e){var t=e.plugins||[],r=t.reduce(function(o,a){var i=a.name,s=a.defaultValue;if(i){var d;o[i]=e[i]!==void 0?e[i]:(d=xe[i])!=null?d:s}return o},{});return Object.assign({},e,r)}function Si(e,t){var r=t?Object.keys(ea(Object.assign({},xe,{plugins:t}))):wi,o=r.reduce(function(a,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return a;if(i==="content")a[i]=s;else try{a[i]=JSON.parse(s)}catch(d){a[i]=s}return a},{});return o}function Uo(e,t){var r=Object.assign({},t,{content:Zo(t.content,[e])},t.ignoreAttributes?{}:Si(e,t.plugins));return r.aria=Object.assign({},xe.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Ei=function(){return"innerHTML"};function Er(e,t){e[Ei()]=t}function Wo(e){var t=xt();return e===!0?t.className=Yo:(t.className=Ko,Ft(e)?t.appendChild(e):Er(t,e)),t}function Go(e,t){Ft(t.content)?(Er(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Er(e,t.content):e.textContent=t.content)}function Dr(e){var t=e.firstElementChild,r=$t(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(Xo)}),arrow:r.find(function(o){return o.classList.contains(Yo)||o.classList.contains(Ko)}),backdrop:r.find(function(o){return o.classList.contains(ii)})}}function ta(e){var t=xt(),r=xt();r.className=ai,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=xt();o.className=Xo,o.setAttribute("data-state","hidden"),Go(o,e.props),t.appendChild(r),r.appendChild(o),a(e.props,e.props);function a(i,s){var d=Dr(t),l=d.box,m=d.content,c=d.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Go(m,e.props),s.arrow?c?i.arrow!==s.arrow&&(l.removeChild(c),l.appendChild(Wo(s.arrow))):l.appendChild(Wo(s.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:a}}ta.$$tippy=!0;var Di=1,Ht=[],Sr=[];function Oi(e,t){var r=Uo(e,Object.assign({},xe,ea(qo(t)))),o,a,i,s=!1,d=!1,l=!1,m=!1,c,v,y,f=[],E=Ro(Dt,r.interactiveDebounce),w,k=Di++,L=null,T=si(r.plugins),B={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:k,reference:e,popper:xt(),popperInstance:L,props:r,state:B,plugins:T,clearDelayTimeouts:jt,setProps:Ct,setContent:Mt,show:ba,hide:va,hideWithInteractivity:ya,enable:mt,disable:Tt,unmount:xa,destroy:_a};if(!r.render)return n;var b=r.render(n),h=b.popper,A=b.onUpdate;h.setAttribute("data-tippy-root",""),h.id="tippy-"+n.id,n.popper=h,e._tippy=n,h._tippy=n;var S=T.map(function(p){return p.fn(n)}),C=e.hasAttribute("aria-expanded");return Je(),u(),X(),U("onCreate",[n]),r.showOnCreate&&pt(),h.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),h.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&re().addEventListener("mousemove",E)}),n;function M(){var p=n.props.touch;return Array.isArray(p)?p:[p,0]}function z(){return M()[0]==="hold"}function P(){var p;return!!((p=n.props.render)!=null&&p.$$tippy)}function V(){return w||e}function re(){var p=V().parentNode;return p?ui(p):document}function oe(){return Dr(h)}function F(p){return n.state.isMounted&&!n.state.isVisible||Se.isTouch||c&&c.type==="focus"?0:_r(n.props.delay,p?0:1,xe.delay)}function X(p){p===void 0&&(p=!1),h.style.pointerEvents=n.props.interactive&&!p?"":"none",h.style.zIndex=""+n.props.zIndex}function U(p,_,O){if(O===void 0&&(O=!0),S.forEach(function(I){I[p]&&I[p].apply(I,_)}),O){var R;(R=n.props)[p].apply(R,_)}}function Q(){var p=n.props.aria;if(p.content){var _="aria-"+p.content,O=h.id,R=it(n.props.triggerTarget||e);R.forEach(function(I){var ne=I.getAttribute(_);if(n.state.isVisible)I.setAttribute(_,ne?ne+" "+O:O);else{var pe=ne&&ne.replace(O,"").trim();pe?I.setAttribute(_,pe):I.removeAttribute(_)}})}}function u(){if(!(C||!n.props.aria.expanded)){var p=it(n.props.triggerTarget||e);p.forEach(function(_){n.props.interactive?_.setAttribute("aria-expanded",n.state.isVisible&&_===V()?"true":"false"):_.removeAttribute("aria-expanded")})}}function g(){re().removeEventListener("mousemove",E),Ht=Ht.filter(function(p){return p!==E})}function x(p){if(!(Se.isTouch&&(l||p.type==="mousedown"))){var _=p.composedPath&&p.composedPath()[0]||p.target;if(!(n.props.interactive&&$o(h,_))){if(it(n.props.triggerTarget||e).some(function(O){return $o(O,_)})){if(Se.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[n,p]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),d=!0,setTimeout(function(){d=!1}),n.state.isMounted||Y())}}}function D(){l=!0}function N(){l=!1}function W(){var p=re();p.addEventListener("mousedown",x,!0),p.addEventListener("touchend",x,Xe),p.addEventListener("touchstart",N,Xe),p.addEventListener("touchmove",D,Xe)}function Y(){var p=re();p.removeEventListener("mousedown",x,!0),p.removeEventListener("touchend",x,Xe),p.removeEventListener("touchstart",N,Xe),p.removeEventListener("touchmove",D,Xe)}function Te(p,_){Ke(p,function(){!n.state.isVisible&&h.parentNode&&h.parentNode.contains(h)&&_()})}function Ee(p,_){Ke(p,_)}function Ke(p,_){var O=oe().box;function R(I){I.target===O&&(kr(O,"remove",R),_())}if(p===0)return _();kr(O,"remove",v),kr(O,"add",R),v=R}function je(p,_,O){O===void 0&&(O=!1);var R=it(n.props.triggerTarget||e);R.forEach(function(I){I.addEventListener(p,_,O),f.push({node:I,eventType:p,handler:_,options:O})})}function Je(){z()&&(je("touchstart",lt,{passive:!0}),je("touchend",Ot,{passive:!0})),ni(n.props.trigger).forEach(function(p){if(p!=="manual")switch(je(p,lt),p){case"mouseenter":je("mouseleave",Ot);break;case"focus":je(yi?"focusout":"blur",dt);break;case"focusin":je("focusout",dt);break}})}function Et(){f.forEach(function(p){var _=p.node,O=p.eventType,R=p.handler,I=p.options;_.removeEventListener(O,R,I)}),f=[]}function lt(p){var _,O=!1;if(!(!n.state.isEnabled||ct(p)||d)){var R=((_=c)==null?void 0:_.type)==="focus";c=p,w=p.currentTarget,u(),!n.state.isVisible&&ci(p)&&Ht.forEach(function(I){return I(p)}),p.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?O=!0:pt(p),p.type==="click"&&(s=!O),O&&!R&&Pe(p)}}function Dt(p){var _=p.target,O=V().contains(_)||h.contains(_);if(!(p.type==="mousemove"&&O)){var R=Ce().concat(h).map(function(I){var ne,pe=I._tippy,Ze=(ne=pe.popperInstance)==null?void 0:ne.state;return Ze?{popperRect:I.getBoundingClientRect(),popperState:Ze,props:r}:null}).filter(Boolean);hi(R,p)&&(g(),Pe(p))}}function Ot(p){var _=ct(p)||n.props.trigger.indexOf("click")>=0&&s;if(!_){if(n.props.interactive){n.hideWithInteractivity(p);return}Pe(p)}}function dt(p){n.props.trigger.indexOf("focusin")<0&&p.target!==V()||n.props.interactive&&p.relatedTarget&&h.contains(p.relatedTarget)||Pe(p)}function ct(p){return Se.isTouch?z()!==p.type.indexOf("touch")>=0:!1}function Lt(){At();var p=n.props,_=p.popperOptions,O=p.placement,R=p.offset,I=p.getReferenceClientRect,ne=p.moveTransition,pe=P()?Dr(h).arrow:null,Ze=I?{getBoundingClientRect:I,contextElement:I.contextElement||V()}:e,fo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Bt){var Qe=Bt.state;if(P()){var wa=oe(),ir=wa.box;["placement","reference-hidden","escaped"].forEach(function(It){It==="placement"?ir.setAttribute("data-placement",Qe.placement):Qe.attributes.popper["data-popper-"+It]?ir.setAttribute("data-"+It,""):ir.removeAttribute("data-"+It)}),Qe.attributes.popper={}}}},Re=[{name:"offset",options:{offset:R}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ne}},fo];P()&&pe&&Re.push({name:"arrow",options:{element:pe,padding:3}}),Re.push.apply(Re,(_==null?void 0:_.modifiers)||[]),n.popperInstance=xr(Ze,h,Object.assign({},_,{placement:O,onFirstUpdate:y,modifiers:Re}))}function At(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function De(){var p=n.props.appendTo,_,O=V();n.props.interactive&&p===Jo||p==="parent"?_=O.parentNode:_=Zo(p,[O]),_.contains(h)||_.appendChild(h),n.state.isMounted=!0,Lt()}function Ce(){return $t(h.querySelectorAll("[data-tippy-root]"))}function pt(p){n.clearDelayTimeouts(),p&&U("onTrigger",[n,p]),W();var _=F(!0),O=M(),R=O[0],I=O[1];Se.isTouch&&R==="hold"&&I&&(_=I),_?o=setTimeout(function(){n.show()},_):n.show()}function Pe(p){if(n.clearDelayTimeouts(),U("onUntrigger",[n,p]),!n.state.isVisible){Y();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(p.type)>=0&&s)){var _=F(!1);_?a=setTimeout(function(){n.state.isVisible&&n.hide()},_):i=requestAnimationFrame(function(){n.hide()})}}function mt(){n.state.isEnabled=!0}function Tt(){n.hide(),n.state.isEnabled=!1}function jt(){clearTimeout(o),clearTimeout(a),cancelAnimationFrame(i)}function Ct(p){if(!n.state.isDestroyed){U("onBeforeUpdate",[n,p]),Et();var _=n.props,O=Uo(e,Object.assign({},_,qo(p),{ignoreAttributes:!0}));n.props=O,Je(),_.interactiveDebounce!==O.interactiveDebounce&&(g(),E=Ro(Dt,O.interactiveDebounce)),_.triggerTarget&&!O.triggerTarget?it(_.triggerTarget).forEach(function(R){R.removeAttribute("aria-expanded")}):O.triggerTarget&&e.removeAttribute("aria-expanded"),u(),X(),A&&A(_,O),n.popperInstance&&(Lt(),Ce().forEach(function(R){requestAnimationFrame(R._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[n,p])}}function Mt(p){n.setProps({content:p})}function ba(){var p=n.state.isVisible,_=n.state.isDestroyed,O=!n.state.isEnabled,R=Se.isTouch&&!n.props.touch,I=_r(n.props.duration,0,xe.duration);if(!(p||_||O||R)&&!V().hasAttribute("disabled")&&(U("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,P()&&(h.style.visibility="visible"),X(),W(),n.state.isMounted||(h.style.transition="none"),P()){var ne=oe(),pe=ne.box,Ze=ne.content;wr([pe,Ze],0)}y=function(){var Re;if(!(!n.state.isVisible||m)){if(m=!0,h.offsetHeight,h.style.transition=n.props.moveTransition,P()&&n.props.animation){var ar=oe(),Bt=ar.box,Qe=ar.content;wr([Bt,Qe],I),Ho([Bt,Qe],"visible")}Q(),u(),Vo(Sr,n),(Re=n.popperInstance)==null||Re.forceUpdate(),U("onMount",[n]),n.props.animation&&P()&&Ee(I,function(){n.state.isShown=!0,U("onShown",[n])})}},De()}}function va(){var p=!n.state.isVisible,_=n.state.isDestroyed,O=!n.state.isEnabled,R=_r(n.props.duration,1,xe.duration);if(!(p||_||O)&&(U("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,m=!1,s=!1,P()&&(h.style.visibility="hidden"),g(),Y(),X(!0),P()){var I=oe(),ne=I.box,pe=I.content;n.props.animation&&(wr([ne,pe],R),Ho([ne,pe],"hidden"))}Q(),u(),n.props.animation?P()&&Te(R,n.unmount):n.unmount()}}function ya(p){re().addEventListener("mousemove",E),Vo(Ht,E),E(p)}function xa(){n.state.isVisible&&n.hide(),n.state.isMounted&&(At(),Ce().forEach(function(p){p._tippy.unmount()}),h.parentNode&&h.parentNode.removeChild(h),Sr=Sr.filter(function(p){return p!==n}),n.state.isMounted=!1,U("onHidden",[n]))}function _a(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),Et(),delete e._tippy,n.state.isDestroyed=!0,U("onDestroy",[n]))}}function _t(e,t){t===void 0&&(t={});var r=xe.plugins.concat(t.plugins||[]);bi();var o=Object.assign({},t,{plugins:r}),a=mi(e);if(0)var i,s;var d=a.reduce(function(l,m){var c=m&&Oi(m,o);return c&&l.push(c),l},[]);return Ft(e)?d[0]:d}_t.defaultProps=xe;_t.setDefaultProps=ki;_t.currentInput=Se;var hp=Object.assign({},ut,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});_t.setDefaultProps({render:ta});var ra=_t;var Ut={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};var Lr={};j(Lr,{default:()=>Ai});var Ai={};var Ar={};j(Ar,{default:()=>ji});var ji={};var Tr={};j(Tr,{default:()=>Mi});var Mi={};var jr={};j(jr,{default:()=>Ii});var Ii={};var Cr={};j(Cr,{default:()=>zi});var zi={};var Mr={};j(Mr,{default:()=>Ri});var Ri={};function Wt(){let e=getComputedStyle(document.body).fontSize;return e=e===""?-1:e,parseFloat(e)}function Vi(e,t){let r=e.min,o=e.max;Wt()>0&&Wt()!==16&&(r=r/16*Wt(),o=o/16*Wt());let i=r||0,s=o||Number.POSITIVE_INFINITY;return i<=t&&t<=s}function qi(e){let t={};e=e||window.innerWidth;let r;for(r in Ut)t[r]=Vi(Ut[r],e);return t}var Gt="mobile",Hi="tablet",$i="desktop";function Br(e){let t=!1,r=qi();return(e===Gt&&r.bpXS||e===Hi&&r.bpSM||e===$i&&(r.bpMED||r.bpLG||r.bpXL))&&(t=!0),t}var fe="data-js-hook",Xt="behavior_",Ir="state_";function ie(){let e={};function t(a,i){return{}.hasOwnProperty.call(e,a)?e[a].push(i):e[a]=[i],this}function r(a,i){if(!{}.hasOwnProperty.call(e,a))return this;let s=e[a].indexOf(i);return s!==-1&&e[a].splice(s,1),this}function o(a,i){if(!{}.hasOwnProperty.call(e,a))return this;i=i||{};let s=e[a];for(let d=0,l=s.length;de,this}function Ye(e,t){if(!e)return!1;let r=e.getAttribute(fe);return r?(r=r.split(" "),r.indexOf(t)>-1):!1}function le(e,t){if(Ye(e,t))return t;if(t.indexOf(" ")!==-1){let o=fe+" values cannot contain spaces!";throw new Error(o)}let r=e.getAttribute(fe);return r!==null&&(t=r+" "+t),e.setAttribute(fe,t),t}var Nr=Ir+"atomic_init";function Fi(e,t){if(!e||!e.classList){let r=e+' is not valid. Check that element is a DOM node with class "'+t+'"';throw new Error(r)}return e}function Ui(e,t){let r=e.classList.contains(t)?e:e.querySelector("."+t);if(!r){let o=t+" not found on or in passed DOM node.";throw new Error(o)}return r}function _e(e,t){return Fi(e,t),Ui(e,t)}function ge(e){return Ye(e,Nr)?!1:(le(e,Nr),!0)}function de(e,t,r,o={}){let i=(r||document).querySelectorAll(e),s=[],d,l;for(let m=0,c=i.length;m>>0;Y--;){for(W=!1,D=x[Y],N=D.parentElement;N!==u;)N.getAttribute(fe)&&N.getAttribute(fe).split(" ").indexOf(wt)!==-1?(W=!0,N=u):N=N.parentElement;W||g.unshift(x[Y])}return g}function B(u=!1){return i=u?m:s,o.forEach(g=>{n("expanded",g,u),g.addEventListener("click",S.bind(this)),g.addEventListener("touchstart",b,{passive:!0}),g.addEventListener("mouseover",h.bind(this)),g.addEventListener("mouseout",A.bind(this))}),a.setAttribute("data-open",u?"true":"false"),t&&!u&&a.setAttribute("hidden",""),F(),this}function n(u,g,x){let D=String(x);return g.setAttribute("aria-"+u,D),D}function b(){L=!0}function h(u){k||(L||this.dispatchEvent("triggerover",{target:this,trigger:u.target,type:"triggerover"}),L=!1)}function A(u){k||this.dispatchEvent("triggerout",{target:this,trigger:u.target,type:"triggerout"})}function S(u){if(!k)switch(this.dispatchEvent("triggerclick",{target:this,trigger:u.target,type:"triggerclick"}),u.preventDefault(),i){case s:case d:this.expand();break;case l:case m:this.collapse();break}}function C(){if(c==null||c.halt(),i===l||i===m)return this;if(i=l,t&&a.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!v||!y)return E(),this;let u=c==null?void 0:c.isAnimated();return u&&c.addEventListener(q.END_EVENT,E),v(),u||E(),this}function M(){if(c==null||c.halt(),i===d||i===s)return this;for(let g=0,x=o.length;gw,this.getTransition=()=>c,this.getDom=oe,this.isAnimating=()=>i===l||i===d,this.isExpanded=()=>i===m,this.resume=F,this.setData=U,this.suspend=X,Ie.BASE_CLASS=wt,this}var Kt={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function oa(e){let t=new ie,r=new q(e,Kt,this);function o(s){return r.init(s),this}function a(){return r.applyClass(Kt.ALPHA_100),this}function i(){return r.applyClass(Kt.ALPHA_0),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.remove=r.remove,this.setElement=r.setElement,this.fadeIn=a,this.fadeOut=i,this.init=o,this}oa.CLASSES=Kt;function q(e,t,r){let o=t,a=e;if(!r)throw new Error("Child transition argument must be defined!");let i=r,s,d,l,m=!1,c=!1,v=!1;if(typeof o.CSS_PROPERTY=="undefined"||typeof o.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function y(){d&&m?(a.addEventListener(d,l),i.dispatchEvent(q.BEGIN_EVENT,{target:i,type:q.BEGIN_EVENT}),a.classList.add(q.ANIMATING_CLASS),c=!0):(i.dispatchEvent(q.BEGIN_EVENT,{target:i,type:q.BEGIN_EVENT}),l())}function f(){a.removeEventListener(d,l)}function E(S){return S&&S.propertyName!==o.CSS_PROPERTY?!1:(f(),a.classList.remove(q.ANIMATING_CLASS),i.dispatchEvent(q.END_EVENT,{target:i,type:q.END_EVENT}),c=!1,!0)}function w(){let S;for(S in o)({}).hasOwnProperty.call(o,S)&&o[S]!==o.BASE_CLASS&&a.classList.contains(o[S])&&a.classList.remove(o[S])}function k(){c&&(a.style.webkitTransitionDuration="0",a.style.mozTransitionDuration="0",a.style.oTransitionDuration="0",a.style.transitionDuration="0",a.removeEventListener(d,l),l(),a.style.webkitTransitionDuration="",a.style.mozTransitionDuration="",a.style.oTransitionDuration="",a.style.transitionDuration="")}function L(){k(),w(),a.classList.remove(o.BASE_CLASS)}function T(){a.classList.remove(q.NO_ANIMATION_CLASS),m=!0}function B(){a.classList.add(q.NO_ANIMATION_CLASS),m=!1}function n(S){if(!S){let P="Element does not have TransitionEnd event. It may be null!";throw new Error(P)}let C,M={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},z;for(z in M)if({}.hasOwnProperty.call(M,z)&&typeof S.style[z]!="undefined"){C=M[z];break}return C}function b(S){L(),T(),a=S,a.classList.add(o.BASE_CLASS),d=n(a)}function h(S){if(m=!a.classList.contains(q.NO_ANIMATION_CLASS),l=E.bind(this),b(a),!S)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return a.classList.add(S),this}function A(S){return v||(w(),v=!0),a.classList.contains(S)?!1:(f(),a.classList.remove(s),s=S,y(),a.classList.add(s),!0)}return this.animateOff=B,this.animateOn=T,this.applyClass=A,this.halt=k,this.init=h,this.isAnimated=()=>m,this.remove=L,this.setElement=b,this}q.BEGIN_EVENT="transitionbegin";q.END_EVENT="transitionend";q.NO_ANIMATION_CLASS="u-no-animation";q.ANIMATING_CLASS="u-is-animating";var kt={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 ce(e){let t=new ie,r=new q(e,kt,this),o=0;function a(){let y=e.scrollHeight+"px";e.style.maxHeight=y}function i(){window.removeEventListener("load",i),a()}function s(v){return r.init(v),window.addEventListener("load",i),window.addEventListener("resize",()=>{a()}),this}function d(){return a(),r.applyClass(kt.MH_DEFAULT),(!o||e.scrollHeight>o)&&(o=e.scrollHeight),this}function l(){return r.applyClass(kt.MH_SUMMARY),o=e.scrollHeight,this}function m(){return r.applyClass(kt.MH_ZERO),o=e.scrollHeight,this}function c(){return e.style.maxHeight="",r.remove()}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.setElement=r.setElement,this.refresh=a,this.remove=c,this.init=s,this.maxHeightDefault=d,this.maxHeightSummary=l,this.maxHeightZero=m,this}ce.CLASSES=kt;var Ne={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 aa(e){let t=new ie,r=new q(e,Ne,this);function o(l){return r.init(l),this}function a(){return r.applyClass(Ne.MOVE_TO_ORIGIN),this}function i(l){l=l||1;let m=[Ne.MOVE_LEFT,Ne.MOVE_LEFT_2X,Ne.MOVE_LEFT_3X];return r.applyClass(m[l-1]),this}function s(){return r.applyClass(Ne.MOVE_RIGHT),this}function d(){return r.applyClass(Ne.MOVE_UP),this}return this.addEventListener=t.addEventListener,this.dispatchEvent=t.dispatchEvent,this.removeEventListener=t.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.setElement=r.setElement,this.remove=r.remove,this.init=o,this.moveLeft=()=>i(1),this.moveLeft2=()=>i(2),this.moveLeft3=()=>i(3),this.moveRight=s,this.moveToOrigin=a,this.moveUp=d,this}aa.CLASSES=Ne;var nt="o-expandable";function ze(e){let t=_e(e,nt),r,o,a,i,s;function d(){if(!ge(t))return this;r=t.querySelector(`.${nt}__header`),o=t.querySelector(`.${nt}__content`),a=t.querySelector(`.${nt}__label`);let c=t.classList.contains(`${nt}--onload-open`);le(t,"behavior_flyout-menu"),le(r,"behavior_flyout-menu_trigger"),le(o,"behavior_flyout-menu_content");let v=c?ce.CLASSES.MH_DEFAULT:ce.CLASSES.MH_ZERO;return i=new ce(o).init(v),s=new Ie(t),s.setTransition(i,i.maxHeightZero,i.maxHeightDefault),s.init(c),s.addEventListener("expandbegin",()=>{o.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),s.addEventListener("collapseend",()=>{o.classList.add("u-hidden")}),this}function l(){return a.textContent.trim()}this.init=d,this.expand=()=>s.expand(),this.collapse=()=>s.collapse(),this.isExpanded=()=>s.isExpanded(),this.refresh=()=>s.getTransition().refresh(),this.getLabelText=l;let m=new ie;return this.addEventListener=m.addEventListener,this.removeEventListener=m.removeEventListener,this.dispatchEvent=m.dispatchEvent,this}ze.BASE_CLASS=nt;ze.init=e=>de(`.${ze.BASE_CLASS}`,ze,e);var Jt="o-expandable-group";function Zt(e){let t=_e(e,Jt),r=t.classList.contains(`${Jt}--accordion`),o,a;function i(d){let l=d.target;a&&a!==l&&a.collapse(),a=l}function s(d){return ge(t)?(r&&(o=d,o.forEach(l=>{l.addEventListener("expandbegin",i)})),this):this}return this.init=s,this}Zt.BASE_CLASS=Jt;Zt.init=e=>{(e||document).querySelectorAll(`.${Jt}`).forEach(o=>{let a=de(`.${ze.BASE_CLASS}`,ze,o);new Zt(o).init(a)})};var st="o-summary";function Qt(e){let t=_e(e,st),r=t.classList.contains(`${st}--mobile`),o=t.querySelector(`.${st}__content`),a=t.querySelector(`.${st}__btn`),i,s,d;function l(){return ge(t)?(window.addEventListener("load",m),this):this}function m(){window.removeEventListener("load",m),d=!f(),le(t,"behavior_flyout-menu"),le(o,"behavior_flyout-menu_content"),le(a,"behavior_flyout-menu_trigger"),s=new Ie(t,!1),i=new ce(o),i.init(d?ce.CLASSES.MH_SUMMARY:ce.CLASSES.MH_DEFAULT),s.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),s.addEventListener("triggerclick",E),s.init(),y(),window.addEventListener("resize",y),"onorientationchange"in window&&window.addEventListener("orientationchange",y),t.addEventListener("focusin",c),o.addEventListener("click",v)}function c(b){!d&&b.target!==a&&(a.click(),t.removeEventListener("focusin",c))}function v(b){b.target.tagName!=="A"&&s.isExpanded()&&i.refresh()}function y(){f()?B():T()}function f(){return r&&!Br(Gt)||o.scrollHeight<=88}function E(){s.addEventListener("expandend",w)}function w(){L(),window.removeEventListener("resize",y),window.removeEventListener("orientationchange",y),s.removeEventListener("expandend",w),s.suspend(),i.remove()}function k(){a.classList.remove("u-hidden")}function L(){a.classList.add("u-hidden")}function T(){return d&&(s.collapse(),i.animateOn(),k(),d=!1),!d}function B(){return d||(i.animateOff(),s.expand(),L(),d=!0),d}let n=new ie;return this.addEventListener=n.addEventListener,this.removeEventListener=n.removeEventListener,this.dispatchEvent=n.dispatchEvent,this.init=l,this}Qt.BASE_CLASS=st;Qt.init=e=>de(`.${st}`,Qt,e);var St="o-summary-minimal";function er(e){let t=_e(e,St),r=t.querySelector(`.${St}__content`),o=t.querySelector(`.${St}__btn`),a,i;function s(){return ge(t)?(le(t,"behavior_flyout-menu"),le(r,"behavior_flyout-menu_content"),le(o,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),i=new Ie(t,!1),a=new ce(r),a.init(ce.CLASSES.MH_SUMMARY),i.setTransition(a,a.maxHeightSummary,a.maxHeightDefault),i.init(),t.addEventListener("focusin",l),r.addEventListener("click",m),i.collapse(),a.animateOn()}function l(v){v.target!==o&&(o.click(),t.removeEventListener("focusin",l))}function m(v){v.target.tagName!=="A"&&i.isExpanded()&&a.refresh()}let c=new ie;return this.addEventListener=c.addEventListener,this.removeEventListener=c.removeEventListener,this.dispatchEvent=c.dispatchEvent,this.init=s,this}er.BASE_CLASS=St;er.init=e=>de(`.${St}`,er,e);var Pr={};j(Pr,{default:()=>Zi});var Zi={};var Rr={};j(Rr,{default:()=>en});var en={};var Vr={};j(Vr,{default:()=>rn});var rn={};var qr={};j(qr,{default:()=>an});var an={};var Hr={};j(Hr,{default:()=>sn});var sn={};var $r={};j($r,{default:()=>dn});var dn={};var Fr={};j(Fr,{default:()=>pn});var pn={};var Ur={};j(Ur,{default:()=>un});var un={};var Wr={};j(Wr,{default:()=>fn});var fn={};var gn;function bn(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function vn(e,t){return RegExp(bn(t.trim()),"i").test(e)}function yn(e,t,r){let o=e,a=t,i=(r==null?void 0:r.maxSelections)||5,s=[],d=[],l=[],m=[],c=-1;function v(b){return a+"-"+b.value.trim().replace(/\s+/g,"-").toLowerCase()}function y(){return d.length>=i}function f(b){let h,A=[],S=!1;for(let C=0,M=b.length;C0&&(l=s.reduce(function(h,A,S){return k(h,A,S,b)},[])),c=-1,l}function T(b){return s[b]}function B(b){let h=l.length,A=h===0?s.length:h;b<0?c=-1:b>=A?c=A-1:c=b}function n(){return c}return this.init=E,this.toggleOption=w,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=y,this.filterIndices=L,this.clearFilter=function(){return l=m=[],gn},this.getFilterIndices=function(){return l},this.getLastFilterIndices=function(){return m},this.getIndex=n,this.setIndex=B,this.resetIndex=function(){return c=-1,c},this.getOption=T,this}var la=yn;function we(e,t,r){let o=document.createElement(e);return Object.keys(r).forEach(a=>{let i=r[a];a in o?o[a]=i:o.setAttribute(a,i)}),t&&t.appendChild(o),o}var da='';var Sn=da,ke="o-multiselect",En="a-checkbox",Dn="a-text-input",ca="prev",tr="next",Gr="Enter",On=" ",pa="Escape",Ln="ArrowUp",ma="ArrowDown",ua="Tab",ha={renderTags:!0,maxSelections:5};function rr(e){e.classList.add(ke);let t=_e(e,ke),r=!1,o,a,i,s,d,l,m,c,v,y,f,E=[],w;function k(){f.classList.remove("u-no-results"),f.classList.add("u-filtered");let u=i.getLastFilterIndices();for(let g=0,x=u.length;g0?(k(),!0):(T(),!1)}function n(u){L(),i.resetIndex();let g=i.filterIndices(u);B(g)}function b(){return l.classList.add("u-active"),y.classList.remove("u-invisible"),y.setAttribute("aria-hidden",!1),w.dispatchEvent("expandbegin",{target:w}),w}function h(){return l.classList.remove("u-active"),y.classList.add("u-invisible"),y.setAttribute("aria-hidden",!0),i.resetIndex(),w.dispatchEvent("collapsebegin",{target:w}),w}function A(u){u===tr?i.setIndex(i.getIndex()+1):u===ca&&i.setIndex(i.getIndex()-1);let g=i.getIndex();if(g>-1){let x=g,D=i.getFilterIndices();D.length>0&&(x=D[g]);let W=i.getOption(x).value,Te=f.querySelector('[data-option="'+W+'"]').querySelector("input");r=!0,Te.focus()}else r=!1,v.focus()}function S(){v.value="",L()}function C(u){let g=u.target;g.tagName==="BUTTON"&&(u.preventDefault(),g.removeEventListener("click",C),g.querySelector("label").click())}function M(u){if(u.key===On||u.key===Gr){let g=u.target.querySelector("label");f.querySelector("#"+g.getAttribute("for")).click()}}function z(u){return o+"-"+u.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function P(u,g){let x=z(g),D=we("li",null,{"data-option":g.value}),N=we("button",D,{type:"button",class:"a-tag-filter",innerHTML:""});u.appendChild(D),N.addEventListener("click",C),N.addEventListener("keydown",M)}function V(u){let g=i.getOption(u)||i.getOption(i.getIndex());if(g){if(g.checked){f.classList.contains("u-max-selections")&&f.classList.remove("u-max-selections");let x='[data-option="'+g.value+'"]',D=m.querySelector(x);typeof D!="undefined"&&D&&(m==null||m.removeChild(D))}else d!=null&&d.renderTags&&m&&P(m,g);i.toggleOption(u),i.isAtMaxSelections()&&f.classList.add("u-max-selections"),w.dispatchEvent("selectionsupdated",{target:w})}i.resetIndex(),r=!1,y.getAttribute("aria-hidden")==="false"&&v.focus()}function re(u){V(Number(u.target.getAttribute("data-index"))),S()}function oe(){c.addEventListener("mousemove",function(x){let D=x.target;x.offsetX>D.offsetWidth-35?D.style.cursor="pointer":D.style.cursor="auto"}),c.addEventListener("mouseup",function(x){let D=x.target;x.offsetX>D.offsetWidth-35&&y.offsetHeight===140&&v.blur()}),v.addEventListener("input",function(){n(this.value)}),v.addEventListener("focus",function(){y.getAttribute("aria-hidden")==="true"&&b()}),v.addEventListener("blur",function(){!r&&y.getAttribute("aria-hidden")==="false"&&h()}),v.addEventListener("keydown",function(x){let D=x.key;y.getAttribute("aria-hidden")==="true"&&D!==ua&&b(),D===Gr?(x.preventDefault(),A(tr)):D===pa?(S(),h()):D===ma?A(tr):D===ua&&!x.shiftKey&&y.getAttribute("aria-hidden")==="false"&&h()}),f.addEventListener("mousedown",function(){r=!0}),f.addEventListener("keydown",function(x){let D=x.key,N=x.target,W=N.checked;if(D===Gr){x.preventDefault(),N.checked=!W;let Y=new Event("change",{bubbles:!1,cancelable:!0});N.dispatchEvent(Y)}else D===pa?(v.focus(),h()):D===Ln?A(ca):D===ma&&A(tr)}),y.addEventListener("mousedown",function(x){x.target.tagName==="LABEL"&&(r=!0)});let u=f.querySelectorAll("input");for(let x=0,D=u.length;x0){i=new la(s,o,d).init();let g=F();t.parentNode.removeChild(t),t=g,ge(t),oe()}return this}function U(){return i}this.init=X,this.expand=b,this.collapse=h;let Q=new ie;return this.addEventListener=Q.addEventListener,this.removeEventListener=Q.removeEventListener,this.dispatchEvent=Q.dispatchEvent,this.getModel=U,this.updateSelections=V,this.selectionClickHandler=C,this.selectionKeyDownHandler=M,this}rr.BASE_CLASS=ke;rr.init=e=>de(`.${ke}`,rr,void 0,e);var Xr={};j(Xr,{default:()=>Tn});var Tn={};var Yr={};j(Yr,{default:()=>Cn});var Cn={};var Kr={};j(Kr,{default:()=>Bn});var Bn={};var Jr={};j(Jr,{default:()=>Nn});var Nn={};var Zr={};j(Zr,{default:()=>Pn});var Pn={};var Qr={};j(Qr,{default:()=>Vn});var Vn={};var eo={};j(eo,{default:()=>Hn});var Hn={};var to={};j(to,{default:()=>Fn});var Fn={};var ro={};j(ro,{default:()=>Wn});var Wn={};var oo={};j(oo,{default:()=>Xn});var Xn={};var ao={};j(ao,{default:()=>Kn});var Kn={};var io={};j(io,{default:()=>Zn});var Zn={};var no={};j(no,{default:()=>es});var es={};var so={};j(so,{default:()=>rs});var rs={};var lo={};j(lo,{default:()=>as});var as={};var co={};j(co,{default:()=>ns});var ns={};var po={};j(po,{default:()=>ls});var ls={};var mo={};j(mo,{default:()=>cs});var cs={};var uo={};j(uo,{default:()=>ms});var ms={};var ho={};j(ho,{default:()=>hs});var hs={};var fa={};j(fa,{default:()=>gs});var gs={};var ga="data-tooltip";function or(e){let t=e.getAttribute(ga);function r(){return ra(e,{theme:"cfpb",maxWidth:450,content:function(o){let a=o.parentElement.querySelector(`#${t}`),i=document.createElement("div"),s=document.importNode(a.content,!0);return i.appendChild(s),i},plugins:[{name:"hideOnEsc",defaultValue:!0,fn({hide:o}){function a(i){i.key==="Escape"&&o()}return{onShow(){document.body.addEventListener("keydown",a)},onHide(){document.body.removeEventListener("keydown",a)}}}}]})}return this.init=r,this}or.BASE_ATTRIBUTE=ga;or.init=e=>de(`[${or.BASE_ATTRIBUTE}]`,or,e);})(); //# sourceMappingURL=index.js.map diff --git a/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js.map b/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js.map index 2a16b40a3..367fc3027 100644 --- a/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js.map +++ b/packages/cfpb-design-system/dist/components/cfpb-tooltips/index.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../../../../node_modules/@popperjs/core/lib/enums.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js", "../../../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js", "../../../../../node_modules/@popperjs/core/lib/utils/math.js", "../../../../../node_modules/@popperjs/core/lib/utils/userAgent.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/contains.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js", "../../../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js", "../../../../../node_modules/@popperjs/core/lib/utils/within.js", "../../../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js", "../../../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js", "../../../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/arrow.js", "../../../../../node_modules/@popperjs/core/lib/utils/getVariation.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js", "../../../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js", "../../../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js", "../../../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js", "../../../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js", "../../../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js", "../../../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/flip.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/hide.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/offset.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js", "../../../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js", "../../../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js", "../../../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js", "../../../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js", "../../../../../node_modules/@popperjs/core/lib/utils/debounce.js", "../../../../../node_modules/@popperjs/core/lib/utils/mergeByName.js", "../../../../../node_modules/@popperjs/core/lib/createPopper.js", "../../../../../node_modules/@popperjs/core/lib/popper.js", "../../../../../node_modules/tippy.js/src/constants.ts", "../../../../../node_modules/tippy.js/src/utils.ts", "../../../../../node_modules/tippy.js/src/dom-utils.ts", "../../../../../node_modules/tippy.js/src/bindGlobalEventListeners.ts", "../../../../../node_modules/tippy.js/src/browser.ts", "../../../../../node_modules/tippy.js/src/validation.ts", "../../../../../node_modules/tippy.js/src/props.ts", "../../../../../node_modules/tippy.js/src/template.ts", "../../../../../node_modules/tippy.js/src/createTippy.ts", "../../../../../node_modules/tippy.js/src/index.ts", "../../../../../node_modules/tippy.js/src/addons/createSingleton.ts", "../../../../../node_modules/tippy.js/src/addons/delegate.ts", "../../../../../node_modules/tippy.js/src/plugins/animateFill.ts", "../../../../../node_modules/tippy.js/src/plugins/followCursor.ts", "../../../../../node_modules/tippy.js/src/plugins/inlinePositioning.ts", "../../../../../node_modules/tippy.js/src/plugins/sticky.ts", "../../../../../node_modules/tippy.js/build/base.js", "../../../../../packages/cfpb-design-system/src/abstracts/vars-breakpoints.js", "../../../../../packages/cfpb-design-system/src/base/normalize.scss", "../../../../../packages/cfpb-design-system/src/base/base.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-buttons/button.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-buttons/button-group.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-buttons/button-link.scss", "../../../../../packages/cfpb-design-system/src/utilities/utilities.scss", "../../../../../packages/cfpb-design-system/src/utilities/breakpoint-state.js", "../../../../../packages/cfpb-design-system/src/utilities/standard-type.js", "../../../../../packages/cfpb-design-system/src/utilities/event-observer.js", "../../../../../packages/cfpb-design-system/src/utilities/data-hook.js", "../../../../../packages/cfpb-design-system/src/utilities/atomic-helpers.js", "../../../../../packages/cfpb-design-system/src/utilities/behavior/behavior.js", "../../../../../packages/cfpb-design-system/src/utilities/type-checkers.js", "../../../../../packages/cfpb-design-system/src/utilities/media-helpers.js", "../../../../../packages/cfpb-design-system/src/utilities/behavior/flyout-menu.js", "../../../../../packages/cfpb-design-system/src/utilities/transition/alpha-transition.js", "../../../../../packages/cfpb-design-system/src/utilities/transition/base-transition.js", "../../../../../packages/cfpb-design-system/src/utilities/transition/max-height-transition.js", "../../../../../packages/cfpb-design-system/src/utilities/transition/move-transition.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-expandables/expandable.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-expandables/expandable-group.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-expandables/summary.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-expandables/summary-minimal.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/form.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/form-alert.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/form-field.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/label.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/range.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/search-input.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/select.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/tag.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/text-input.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/multiselect-model.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/multiselect-utils.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-icons/icons/error.svg", "../../../../../packages/cfpb-design-system/src/components/cfpb-forms/multiselect.js", "../../../../../packages/cfpb-design-system/src/components/cfpb-icons/icon.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/card.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/card-group.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/email-signup.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/featured-content-module.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/hero.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/layout.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/text-introduction.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-layout/well.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-notifications/banner.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-notifications/notification.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-pagination/pagination.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-tables/table.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/date.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/link.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/list.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/meta-header.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/pull-quote.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/slug-header.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-typography/tagline.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-tooltips/tooltip.scss", "../../../../../packages/cfpb-design-system/src/components/cfpb-tooltips/index.js"], - "sourcesContent": ["export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];", "export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}", "export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}", "import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };", "import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};", "import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}", "export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;", "export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}", "import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}", "import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}", "import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}", "import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}", "import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}", "import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}", "import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}", "import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}", "import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}", "export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}", "import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}", "export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}", "import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}", "export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}", "import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};", "export default function getVariation(placement) {\n return placement.split('-')[1];\n}", "import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};", "import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};", "var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}", "var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}", "import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}", "import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}", "import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}", "import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}", "import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}", "import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}", "import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}", "export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}", "import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}", "import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}", "import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}", "import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}", "import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases \u2013 research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};", "import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};", "import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};", "import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};", "export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}", "import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};", "export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}", "import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}", "import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}", "import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}", "export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}", "export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}", "import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update \u2013 it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update \u2013 it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };", "import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";", "export const ROUND_ARROW =\n '';\n\nexport const BOX_CLASS = `__NAMESPACE_PREFIX__-box`;\nexport const CONTENT_CLASS = `__NAMESPACE_PREFIX__-content`;\nexport const BACKDROP_CLASS = `__NAMESPACE_PREFIX__-backdrop`;\nexport const ARROW_CLASS = `__NAMESPACE_PREFIX__-arrow`;\nexport const SVG_ARROW_CLASS = `__NAMESPACE_PREFIX__-svg-arrow`;\n\nexport const TOUCH_OPTIONS = {passive: true, capture: true};\n\nexport const TIPPY_DEFAULT_APPEND_TO = () => document.body;\n", "import {BasePlacement, Placement} from './types';\n\nexport function hasOwnProperty(\n obj: Record,\n key: string\n): boolean {\n return {}.hasOwnProperty.call(obj, key);\n}\n\nexport function getValueAtIndexOrReturn(\n value: T | [T | null, T | null],\n index: number,\n defaultValue: T | [T, T]\n): T {\n if (Array.isArray(value)) {\n const v = value[index];\n return v == null\n ? Array.isArray(defaultValue)\n ? defaultValue[index]\n : defaultValue\n : v;\n }\n\n return value;\n}\n\nexport function isType(value: any, type: string): boolean {\n const str = {}.toString.call(value);\n return str.indexOf('[object') === 0 && str.indexOf(`${type}]`) > -1;\n}\n\nexport function invokeWithArgsOrReturn(value: any, args: any[]): any {\n return typeof value === 'function' ? value(...args) : value;\n}\n\nexport function debounce(\n fn: (arg: T) => void,\n ms: number\n): (arg: T) => void {\n // Avoid wrapping in `setTimeout` if ms is 0 anyway\n if (ms === 0) {\n return fn;\n }\n\n let timeout: any;\n\n return (arg): void => {\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n fn(arg);\n }, ms);\n };\n}\n\nexport function removeProperties(obj: T, keys: string[]): Partial {\n const clone = {...obj};\n keys.forEach((key) => {\n delete (clone as any)[key];\n });\n return clone;\n}\n\nexport function splitBySpaces(value: string): string[] {\n return value.split(/\\s+/).filter(Boolean);\n}\n\nexport function normalizeToArray(value: T | T[]): T[] {\n return ([] as T[]).concat(value);\n}\n\nexport function pushIfUnique(arr: T[], value: T): void {\n if (arr.indexOf(value) === -1) {\n arr.push(value);\n }\n}\n\nexport function appendPxIfNumber(value: string | number): string {\n return typeof value === 'number' ? `${value}px` : value;\n}\n\nexport function unique(arr: T[]): T[] {\n return arr.filter((item, index) => arr.indexOf(item) === index);\n}\n\nexport function getNumber(value: string | number): number {\n return typeof value === 'number' ? value : parseFloat(value);\n}\n\nexport function getBasePlacement(placement: Placement): BasePlacement {\n return placement.split('-')[0] as BasePlacement;\n}\n\nexport function arrayFrom(value: ArrayLike): any[] {\n return [].slice.call(value);\n}\n\nexport function removeUndefinedProps(\n obj: Record\n): Partial> {\n return Object.keys(obj).reduce((acc, key) => {\n if (obj[key] !== undefined) {\n (acc as any)[key] = obj[key];\n }\n\n return acc;\n }, {});\n}\n", "import {ReferenceElement, Targets} from './types';\nimport {PopperTreeData} from './types-internal';\nimport {arrayFrom, isType, normalizeToArray, getBasePlacement} from './utils';\n\nexport function div(): HTMLDivElement {\n return document.createElement('div');\n}\n\nexport function isElement(value: unknown): value is Element | DocumentFragment {\n return ['Element', 'Fragment'].some((type) => isType(value, type));\n}\n\nexport function isNodeList(value: unknown): value is NodeList {\n return isType(value, 'NodeList');\n}\n\nexport function isMouseEvent(value: unknown): value is MouseEvent {\n return isType(value, 'MouseEvent');\n}\n\nexport function isReferenceElement(value: any): value is ReferenceElement {\n return !!(value && value._tippy && value._tippy.reference === value);\n}\n\nexport function getArrayOfElements(value: Targets): Element[] {\n if (isElement(value)) {\n return [value];\n }\n\n if (isNodeList(value)) {\n return arrayFrom(value);\n }\n\n if (Array.isArray(value)) {\n return value;\n }\n\n return arrayFrom(document.querySelectorAll(value));\n}\n\nexport function setTransitionDuration(\n els: (HTMLDivElement | null)[],\n value: number\n): void {\n els.forEach((el) => {\n if (el) {\n el.style.transitionDuration = `${value}ms`;\n }\n });\n}\n\nexport function setVisibilityState(\n els: (HTMLDivElement | null)[],\n state: 'visible' | 'hidden'\n): void {\n els.forEach((el) => {\n if (el) {\n el.setAttribute('data-state', state);\n }\n });\n}\n\nexport function getOwnerDocument(\n elementOrElements: Element | Element[]\n): Document {\n const [element] = normalizeToArray(elementOrElements);\n\n // Elements created via a