@utahdts/utah-design-system-header 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1553,9 +1553,9 @@ function Se(e, t, n, o, r) {
|
|
|
1553
1553
|
h
|
|
1554
1554
|
));
|
|
1555
1555
|
}
|
|
1556
|
-
if (r != null && r.preventOnClickHandling
|
|
1557
|
-
h.
|
|
1558
|
-
})
|
|
1556
|
+
if (r != null && r.preventOnClickHandling && (te(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (h) => {
|
|
1557
|
+
h.stopPropagation();
|
|
1558
|
+
}), e.addEventListener("focusin", () => d(s)), e.addEventListener("focusout", () => _(s)), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(l)), e.addEventListener("mouseleave", () => _(l))), !(r != null && r.preventOnClickHandling)) {
|
|
1559
1559
|
if (t.onclick)
|
|
1560
1560
|
throw new Error("popupFocusHandler: button already has onclick");
|
|
1561
1561
|
t.onclick = (h) => {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
</span>
|
|
152
152
|
<span class="vertical-menu__divider" />
|
|
153
153
|
</li>
|
|
154
|
-
`;function et(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>et(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>et(e[i],t,n)))))),o}var k="top",z="bottom",K="right",W="left",tt="auto",Ie=[k,z,K,W],pe="start",Te="end",Nn="clippingParents",Mt="viewport",ge="popper",Sn="reference",At=Ie.reduce(function(e,t){return e.concat([t+"-"+pe,t+"-"+Te])},[]),Ot=[].concat(Ie,[tt]).reduce(function(e,t){return e.concat([t,t+"-"+pe,t+"-"+Te])},[]),Un="beforeRead",Cn="read",Rn="afterRead",Dn="beforeMain",Hn="main",Bn="afterMain",xn="beforeWrite",kn="write",Wn="afterWrite",Fn=[Un,Cn,Rn,Dn,Hn,Bn,xn,kn,Wn];function X(e){return e?(e.nodeName||"").toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function se(e){var t=G(e).Element;return e instanceof t||e instanceof Element}function j(e){var t=G(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nt(e){if(typeof ShadowRoot>"u")return!1;var t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!j(i)||!X(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var l=r[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Vn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=u.reduce(function(s,c){return s[c]="",s},{});!j(r)||!X(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(s){r.removeAttribute(s)}))})}}const Gn={name:"applyStyles",enabled:!0,phase:"write",fn:qn,effect:Vn,requires:["computeStyles"]};function Q(e){return e.split("-")[0]}var le=Math.max,Fe=Math.min,fe=Math.round;function ot(){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 wt(){return!/^((?!chrome|android).)*safari/i.test(ot())}function _e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&j(e)&&(r=e.offsetWidth>0&&fe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fe(o.height)/e.offsetHeight||1);var u=se(e)?G(e):window,l=u.visualViewport,s=!wt()&&n,c=(o.left+(s&&l?l.offsetLeft:0))/r,d=(o.top+(s&&l?l.offsetTop:0))/i,_=o.width/r,h=o.height/i;return{width:_,height:h,top:d,right:c+_,bottom:d+h,left:c,x:c,y:d}}function rt(e){var t=_e(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Lt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function oe(e){return G(e).getComputedStyle(e)}function $n(e){return["table","td","th"].indexOf(X(e))>=0}function re(e){return((se(e)?e.ownerDocument:e.document)||window.document).documentElement}function qe(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||re(e)}function yt(e){return!j(e)||oe(e).position==="fixed"?null:e.offsetParent}function Yn(e){var t=/firefox/i.test(ot()),n=/Trident/i.test(ot());if(n&&j(e)){var o=oe(e);if(o.position==="fixed")return null}var r=qe(e);for(nt(r)&&(r=r.host);j(r)&&["html","body"].indexOf(X(r))<0;){var i=oe(r);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 r;r=r.parentNode}return null}function Me(e){for(var t=G(e),n=yt(e);n&&$n(n)&&oe(n).position==="static";)n=yt(n);return n&&(X(n)==="html"||X(n)==="body"&&oe(n).position==="static")?t:n||Yn(e)||t}function it(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ae(e,t,n){return le(e,Fe(t,n))}function zn(e,t,n){var o=Ae(e,t,n);return o>n?n:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Nt(e){return Object.assign({},Pt(),e)}function St(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Kn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nt(typeof t!="number"?t:St(t,Ie))};function jn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,l=Q(n.placement),s=it(l),c=[W,K].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!u)){var _=Kn(r.padding,n),h=rt(i),m=s==="y"?k:W,f=s==="y"?z:K,v=n.rects.reference[d]+n.rects.reference[s]-u[s]-n.rects.popper[d],E=u[s]-n.rects.reference[s],I=Me(i),g=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,O=v/2-E/2,b=_[m],M=g-h[d]-_[f],A=g/2-h[d]/2+O,y=Ae(b,A,M),N=s;n.modifiersData[o]=(t={},t[N]=y,t.centerOffset=y-A,t)}}function Zn(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Lt(t.elements.popper,r)&&(t.elements.arrow=r))}const Xn={name:"arrow",enabled:!0,phase:"main",fn:jn,effect:Zn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e){return e.split("-")[1]}var Qn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jn(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:fe(n*r)/r||0,y:fe(o*r)/r||0}}function Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,_=e.isFixed,h=u.x,m=h===void 0?0:h,f=u.y,v=f===void 0?0:f,E=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=E.x,v=E.y;var I=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),O=W,b=k,M=window;if(c){var A=Me(n),y="clientHeight",N="clientWidth";if(A===G(n)&&(A=re(n),oe(A).position!=="static"&&l==="absolute"&&(y="scrollHeight",N="scrollWidth")),A=A,r===k||(r===W||r===K)&&i===Te){b=z;var U=_&&A===M&&M.visualViewport?M.visualViewport.height:A[y];v-=U-o.height,v*=s?1:-1}if(r===W||(r===k||r===z)&&i===Te){O=K;var S=_&&A===M&&M.visualViewport?M.visualViewport.width:A[N];m-=S-o.width,m*=s?1:-1}}var R=Object.assign({position:l},c&&Qn),F=d===!0?Jn({x:m,y:v},G(n)):{x:m,y:v};if(m=F.x,v=F.y,s){var H;return Object.assign({},R,(H={},H[b]=g?"0":"",H[O]=I?"0":"",H.transform=(M.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",H))}return Object.assign({},R,(t={},t[b]=g?v+"px":"",t[O]=I?m+"px":"",t.transform="",t))}function eo(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,l=n.roundOffsets,s=l===void 0?!0:l,c={placement:Q(t.placement),variation:he(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eo,data:{}};var Ve={passive:!0};function no(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,l=u===void 0?!0:u,s=G(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ve)}),l&&s.addEventListener("resize",n.update,Ve),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ve)}),l&&s.removeEventListener("resize",n.update,Ve)}}const oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:no,data:{}};var ro={left:"right",right:"left",bottom:"top",top:"bottom"};function Ge(e){return e.replace(/left|right|bottom|top/g,function(t){return ro[t]})}var io={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return io[t]})}function at(e){var t=G(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function st(e){return _e(re(e)).left+at(e).scrollLeft}function ao(e,t){var n=G(e),o=re(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,l=0,s=0;if(r){i=r.width,u=r.height;var c=wt();(c||!c&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:u,x:l+st(e),y:s}}function so(e){var t,n=re(e),o=at(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=le(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=le(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+st(e),s=-o.scrollTop;return oe(r||n).direction==="rtl"&&(l+=le(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function lt(e){var t=oe(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Rt(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:j(e)&<(e)?e:Rt(qe(e))}function Oe(e,t){var n;t===void 0&&(t=[]);var o=Rt(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=G(o),u=r?[i].concat(i.visualViewport||[],lt(o)?o:[]):o,l=t.concat(u);return r?l:l.concat(Oe(qe(u)))}function ct(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lo(e,t){var n=_e(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Dt(e,t,n){return t===Mt?ct(ao(e,n)):se(t)?lo(t,n):ct(so(re(e)))}function co(e){var t=Oe(qe(e)),n=["absolute","fixed"].indexOf(oe(e).position)>=0,o=n&&j(e)?Me(e):e;return se(o)?t.filter(function(r){return se(r)&&Lt(r,o)&&X(r)!=="body"}):[]}function uo(e,t,n,o){var r=t==="clippingParents"?co(e):[].concat(t),i=[].concat(r,[n]),u=i[0],l=i.reduce(function(s,c){var d=Dt(e,c,o);return s.top=le(d.top,s.top),s.right=Fe(d.right,s.right),s.bottom=Fe(d.bottom,s.bottom),s.left=le(d.left,s.left),s},Dt(e,u,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ht(e){var t=e.reference,n=e.element,o=e.placement,r=o?Q(o):null,i=o?he(o):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(r){case k:s={x:u,y:t.y-n.height};break;case z:s={x:u,y:t.y+t.height};break;case K:s={x:t.x+t.width,y:l};break;case W:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var c=r?it(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case pe:s[c]=s[c]-(t[d]/2-n[d]/2);break;case Te:s[c]=s[c]+(t[d]/2-n[d]/2);break}}return s}function we(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,u=i===void 0?e.strategy:i,l=n.boundary,s=l===void 0?Nn:l,c=n.rootBoundary,d=c===void 0?Mt:c,_=n.elementContext,h=_===void 0?ge:_,m=n.altBoundary,f=m===void 0?!1:m,v=n.padding,E=v===void 0?0:v,I=Nt(typeof E!="number"?E:St(E,Ie)),g=h===ge?Sn:ge,O=e.rects.popper,b=e.elements[f?g:h],M=uo(se(b)?b:b.contextElement||re(e.elements.popper),s,d,u),A=_e(e.elements.reference),y=Ht({reference:A,element:O,strategy:"absolute",placement:r}),N=ct(Object.assign({},O,y)),U=h===ge?N:A,S={top:M.top-U.top+I.top,bottom:U.bottom-M.bottom+I.bottom,left:M.left-U.left+I.left,right:U.right-M.right+I.right},R=e.modifiersData.offset;if(h===ge&&R){var F=R[r];Object.keys(S).forEach(function(H){var ee=[K,z].indexOf(H)>=0?1:-1,te=[k,z].indexOf(H)>=0?"y":"x";S[H]+=F[te]*ee})}return S}function po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=s===void 0?Ot:s,d=he(o),_=d?l?At:At.filter(function(f){return he(f)===d}):Ie,h=_.filter(function(f){return c.indexOf(f)>=0});h.length===0&&(h=_);var m=h.reduce(function(f,v){return f[v]=we(e,{placement:v,boundary:r,rootBoundary:i,padding:u})[Q(v)],f},{});return Object.keys(m).sort(function(f,v){return m[f]-m[v]})}function fo(e){if(Q(e)===tt)return[];var t=Ge(e);return[Ct(e),t,Ct(t)]}function _o(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,l=u===void 0?!0:u,s=n.fallbackPlacements,c=n.padding,d=n.boundary,_=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,f=m===void 0?!0:m,v=n.allowedAutoPlacements,E=t.options.placement,I=Q(E),g=I===E,O=s||(g||!f?[Ge(E)]:fo(E)),b=[E].concat(O).reduce(function(ve,ae){return ve.concat(Q(ae)===tt?po(t,{placement:ae,boundary:d,rootBoundary:_,padding:c,flipVariations:f,allowedAutoPlacements:v}):ae)},[]),M=t.rects.reference,A=t.rects.popper,y=new Map,N=!0,U=b[0],S=0;S<b.length;S++){var R=b[S],F=Q(R),H=he(R)===pe,ee=[k,z].indexOf(F)>=0,te=ee?"width":"height",q=we(t,{placement:R,boundary:d,rootBoundary:_,altBoundary:h,padding:c}),C=ee?H?K:W:H?z:k;M[te]>A[te]&&(C=Ge(C));var Ue=Ge(C),ie=[];if(i&&ie.push(q[F]<=0),l&&ie.push(q[C]<=0,q[Ue]<=0),ie.every(function(ve){return ve})){U=R,N=!1;break}y.set(R,ie)}if(N)for(var V=f?3:1,Ce=function(ae){var De=b.find(function(ze){var ce=y.get(ze);if(ce)return ce.slice(0,ae).every(function(vt){return vt})});if(De)return U=De,"break"},Re=V;Re>0;Re--){var Ye=Ce(Re);if(Ye==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const ho={name:"flip",enabled:!0,phase:"main",fn:_o,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xt(e){return[k,K,z,W].some(function(t){return e[t]>=0})}function mo(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=we(t,{elementContext:"reference"}),l=we(t,{altBoundary:!0}),s=Bt(u,o),c=Bt(l,r,i),d=xt(s),_=xt(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":_})}const Eo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mo};function vo(e,t,n){var o=Q(e),r=[W,k].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],l=i[1];return u=u||0,l=(l||0)*r,[W,K].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function bo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=Ot.reduce(function(d,_){return d[_]=vo(_,t.rects,i),d},{}),l=u[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const Io={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bo};function To(e){var t=e.state,n=e.name;t.modifiersData[n]=Ht({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const go={name:"popperOffsets",enabled:!0,phase:"read",fn:To,data:{}};function Mo(e){return e==="x"?"y":"x"}function Ao(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,l=u===void 0?!1:u,s=n.boundary,c=n.rootBoundary,d=n.altBoundary,_=n.padding,h=n.tether,m=h===void 0?!0:h,f=n.tetherOffset,v=f===void 0?0:f,E=we(t,{boundary:s,rootBoundary:c,padding:_,altBoundary:d}),I=Q(t.placement),g=he(t.placement),O=!g,b=it(I),M=Mo(b),A=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,S=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(A){if(i){var H,ee=b==="y"?k:W,te=b==="y"?z:K,q=b==="y"?"height":"width",C=A[b],Ue=C+E[ee],ie=C-E[te],V=m?-N[q]/2:0,Ce=g===pe?y[q]:N[q],Re=g===pe?-N[q]:-y[q],Ye=t.elements.arrow,ve=m&&Ye?rt(Ye):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),De=ae[ee],ze=ae[te],ce=Ae(0,y[q],ve[q]),vt=O?y[q]/2-V-ce-De-S.mainAxis:Ce-ce-De-S.mainAxis,kr=O?-y[q]/2+V+ce+ze+S.mainAxis:Re+ce+ze+S.mainAxis,bt=t.elements.arrow&&Me(t.elements.arrow),Wr=bt?b==="y"?bt.clientTop||0:bt.clientLeft||0:0,cn=(H=R==null?void 0:R[b])!=null?H:0,Fr=C+vt-cn-Wr,qr=C+kr-cn,un=Ae(m?Fe(Ue,Fr):Ue,C,m?le(ie,qr):ie);A[b]=un,F[b]=un-C}if(l){var dn,Vr=b==="x"?k:W,Gr=b==="x"?z:K,ue=A[M],Ke=M==="y"?"height":"width",pn=ue+E[Vr],fn=ue-E[Gr],It=[k,W].indexOf(I)!==-1,_n=(dn=R==null?void 0:R[M])!=null?dn:0,hn=It?pn:ue-y[Ke]-N[Ke]-_n+S.altAxis,mn=It?ue+y[Ke]+N[Ke]-_n-S.altAxis:fn,En=m&&It?zn(hn,ue,mn):Ae(m?hn:pn,ue,m?mn:fn);A[M]=En,F[M]=En-ue}t.modifiersData[o]=F}}const Oo={name:"preventOverflow",enabled:!0,phase:"main",fn:Ao,requiresIfExists:["offset"]};function wo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lo(e){return e===G(e)||!j(e)?at(e):wo(e)}function yo(e){var t=e.getBoundingClientRect(),n=fe(t.width)/e.offsetWidth||1,o=fe(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Po(e,t,n){n===void 0&&(n=!1);var o=j(t),r=j(t)&&yo(t),i=re(t),u=_e(e,r,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((X(t)!=="body"||lt(i))&&(l=Lo(t)),j(t)?(s=_e(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=st(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function No(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&r(s)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function So(e){var t=No(e);return Fn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Uo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Co(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var kt={placement:"bottom",modifiers:[],strategy:"absolute"};function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ro(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?kt:r;return function(l,s,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},kt,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},_=[],h=!1,m={state:d,setOptions:function(I){var g=typeof I=="function"?I(d.options):I;v(),d.options=Object.assign({},i,d.options,g),d.scrollParents={reference:se(l)?Oe(l):l.contextElement?Oe(l.contextElement):[],popper:Oe(s)};var O=So(Co([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(b){return b.enabled}),f(),m.update()},forceUpdate:function(){if(!h){var I=d.elements,g=I.reference,O=I.popper;if(Wt(g,O)){d.rects={reference:Po(g,Me(O),d.options.strategy==="fixed"),popper:rt(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(S){return d.modifiersData[S.name]=Object.assign({},S.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var M=d.orderedModifiers[b],A=M.fn,y=M.options,N=y===void 0?{}:y,U=M.name;typeof A=="function"&&(d=A({state:d,options:N,name:U,instance:m})||d)}}}},update:Uo(function(){return new Promise(function(E){m.forceUpdate(),E(d)})}),destroy:function(){v(),h=!0}};if(!Wt(l,s))return m;m.setOptions(c).then(function(E){!h&&c.onFirstUpdate&&c.onFirstUpdate(E)});function f(){d.orderedModifiers.forEach(function(E){var I=E.name,g=E.options,O=g===void 0?{}:g,b=E.effect;if(typeof b=="function"){var M=b({state:d,name:I,instance:m,options:O}),A=function(){};_.push(M||A)}})}function v(){_.forEach(function(E){return E()}),_=[]}return m}}var Do=[oo,go,to,Gn,Io,ho,Oo,Xn,Eo],Ft=Ro({defaultModifiers:Do});function ut(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let $;const Le={},dt={SHIFT:"shift-key"};function qt(){$&&(document.removeEventListener("click",$.globalOnClick),document.removeEventListener("keyup",$.globalOnKeyup),document.removeEventListener("keydown",$.globalOnKeydown),$=null)}function pt(){const e=document.querySelectorAll(`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(a.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const o=document.querySelector(`[aria-controls="${n}"]`);o&&o.setAttribute("aria-expanded","false")}ut(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function Ho(){$&&qt(),$={globalOnClick:()=>{},globalOnKeyup:()=>{},globalOnKeydown:()=>{}},$.globalOnClick=pt,document.addEventListener("click",$.globalOnClick),$.globalOnKeyup=e=>{e.key==="Escape"&&pt(),e.shiftKey||(Le[dt.SHIFT]=!1),Le[e.key]=!1},document.addEventListener("keyup",$.globalOnKeyup),$.globalOnKeydown=e=>{e.shiftKey&&(Le[dt.SHIFT]=!0),Le[e.key]=!0},document.addEventListener("keydown",$.globalOnKeydown)}function Bo(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function ye(e,t,n,o,r){let i=NaN,u=NaN;const l=350,s=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(h){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{Ft(t,n,{placement:(r==null?void 0:r.popupPlacement)||Be.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),ut(n,!0,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach(m=>m.classList.add(a.TOOLTIP__WRAPPER__HIDDEN))},h))}function _(h){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{ut(n,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},h))}if(r!=null&&r.preventOnClickHandling?(ne(!!e.onclick,"popupFocusHandler: wrapper already has an onclick"),e.onclick=h=>{h.preventDefault(),h.stopPropagation()}):(e.addEventListener("focusin",()=>d(s)),e.addEventListener("focusout",()=>_(s))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(l)),e.addEventListener("mouseleave",()=>_(l))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=h=>{var f;const m=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(h.stopPropagation(),h.preventDefault(),m&&t.getAttribute("aria-expanded")==="true"?(_(c),(f=document.activeElement)==null||f.blur()):(Bo()&&pt(),d(c))),r!=null&&r.onClick&&r.onClick(h)}}}const xo=`<div class="popup__wrapper popup__wrapper--hidden">
|
|
154
|
+
`;function et(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>et(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>et(e[i],t,n)))))),o}var k="top",z="bottom",K="right",W="left",tt="auto",Ie=[k,z,K,W],pe="start",Te="end",Nn="clippingParents",Mt="viewport",ge="popper",Sn="reference",At=Ie.reduce(function(e,t){return e.concat([t+"-"+pe,t+"-"+Te])},[]),Ot=[].concat(Ie,[tt]).reduce(function(e,t){return e.concat([t,t+"-"+pe,t+"-"+Te])},[]),Un="beforeRead",Cn="read",Rn="afterRead",Dn="beforeMain",Hn="main",Bn="afterMain",xn="beforeWrite",kn="write",Wn="afterWrite",Fn=[Un,Cn,Rn,Dn,Hn,Bn,xn,kn,Wn];function X(e){return e?(e.nodeName||"").toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function se(e){var t=G(e).Element;return e instanceof t||e instanceof Element}function j(e){var t=G(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nt(e){if(typeof ShadowRoot>"u")return!1;var t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!j(i)||!X(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var l=r[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Vn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=u.reduce(function(s,c){return s[c]="",s},{});!j(r)||!X(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(s){r.removeAttribute(s)}))})}}const Gn={name:"applyStyles",enabled:!0,phase:"write",fn:qn,effect:Vn,requires:["computeStyles"]};function Q(e){return e.split("-")[0]}var le=Math.max,Fe=Math.min,fe=Math.round;function ot(){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 wt(){return!/^((?!chrome|android).)*safari/i.test(ot())}function _e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&j(e)&&(r=e.offsetWidth>0&&fe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fe(o.height)/e.offsetHeight||1);var u=se(e)?G(e):window,l=u.visualViewport,s=!wt()&&n,c=(o.left+(s&&l?l.offsetLeft:0))/r,d=(o.top+(s&&l?l.offsetTop:0))/i,_=o.width/r,h=o.height/i;return{width:_,height:h,top:d,right:c+_,bottom:d+h,left:c,x:c,y:d}}function rt(e){var t=_e(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Lt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function oe(e){return G(e).getComputedStyle(e)}function $n(e){return["table","td","th"].indexOf(X(e))>=0}function re(e){return((se(e)?e.ownerDocument:e.document)||window.document).documentElement}function qe(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||re(e)}function yt(e){return!j(e)||oe(e).position==="fixed"?null:e.offsetParent}function Yn(e){var t=/firefox/i.test(ot()),n=/Trident/i.test(ot());if(n&&j(e)){var o=oe(e);if(o.position==="fixed")return null}var r=qe(e);for(nt(r)&&(r=r.host);j(r)&&["html","body"].indexOf(X(r))<0;){var i=oe(r);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 r;r=r.parentNode}return null}function Me(e){for(var t=G(e),n=yt(e);n&&$n(n)&&oe(n).position==="static";)n=yt(n);return n&&(X(n)==="html"||X(n)==="body"&&oe(n).position==="static")?t:n||Yn(e)||t}function it(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ae(e,t,n){return le(e,Fe(t,n))}function zn(e,t,n){var o=Ae(e,t,n);return o>n?n:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Nt(e){return Object.assign({},Pt(),e)}function St(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Kn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nt(typeof t!="number"?t:St(t,Ie))};function jn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,l=Q(n.placement),s=it(l),c=[W,K].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!u)){var _=Kn(r.padding,n),h=rt(i),m=s==="y"?k:W,f=s==="y"?z:K,v=n.rects.reference[d]+n.rects.reference[s]-u[s]-n.rects.popper[d],E=u[s]-n.rects.reference[s],I=Me(i),g=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,O=v/2-E/2,b=_[m],M=g-h[d]-_[f],A=g/2-h[d]/2+O,y=Ae(b,A,M),N=s;n.modifiersData[o]=(t={},t[N]=y,t.centerOffset=y-A,t)}}function Zn(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Lt(t.elements.popper,r)&&(t.elements.arrow=r))}const Xn={name:"arrow",enabled:!0,phase:"main",fn:jn,effect:Zn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e){return e.split("-")[1]}var Qn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jn(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:fe(n*r)/r||0,y:fe(o*r)/r||0}}function Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,_=e.isFixed,h=u.x,m=h===void 0?0:h,f=u.y,v=f===void 0?0:f,E=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=E.x,v=E.y;var I=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),O=W,b=k,M=window;if(c){var A=Me(n),y="clientHeight",N="clientWidth";if(A===G(n)&&(A=re(n),oe(A).position!=="static"&&l==="absolute"&&(y="scrollHeight",N="scrollWidth")),A=A,r===k||(r===W||r===K)&&i===Te){b=z;var U=_&&A===M&&M.visualViewport?M.visualViewport.height:A[y];v-=U-o.height,v*=s?1:-1}if(r===W||(r===k||r===z)&&i===Te){O=K;var S=_&&A===M&&M.visualViewport?M.visualViewport.width:A[N];m-=S-o.width,m*=s?1:-1}}var R=Object.assign({position:l},c&&Qn),F=d===!0?Jn({x:m,y:v},G(n)):{x:m,y:v};if(m=F.x,v=F.y,s){var H;return Object.assign({},R,(H={},H[b]=g?"0":"",H[O]=I?"0":"",H.transform=(M.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",H))}return Object.assign({},R,(t={},t[b]=g?v+"px":"",t[O]=I?m+"px":"",t.transform="",t))}function eo(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,l=n.roundOffsets,s=l===void 0?!0:l,c={placement:Q(t.placement),variation:he(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eo,data:{}};var Ve={passive:!0};function no(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,l=u===void 0?!0:u,s=G(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ve)}),l&&s.addEventListener("resize",n.update,Ve),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ve)}),l&&s.removeEventListener("resize",n.update,Ve)}}const oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:no,data:{}};var ro={left:"right",right:"left",bottom:"top",top:"bottom"};function Ge(e){return e.replace(/left|right|bottom|top/g,function(t){return ro[t]})}var io={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return io[t]})}function at(e){var t=G(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function st(e){return _e(re(e)).left+at(e).scrollLeft}function ao(e,t){var n=G(e),o=re(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,l=0,s=0;if(r){i=r.width,u=r.height;var c=wt();(c||!c&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:u,x:l+st(e),y:s}}function so(e){var t,n=re(e),o=at(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=le(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=le(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+st(e),s=-o.scrollTop;return oe(r||n).direction==="rtl"&&(l+=le(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function lt(e){var t=oe(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Rt(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:j(e)&<(e)?e:Rt(qe(e))}function Oe(e,t){var n;t===void 0&&(t=[]);var o=Rt(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=G(o),u=r?[i].concat(i.visualViewport||[],lt(o)?o:[]):o,l=t.concat(u);return r?l:l.concat(Oe(qe(u)))}function ct(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lo(e,t){var n=_e(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Dt(e,t,n){return t===Mt?ct(ao(e,n)):se(t)?lo(t,n):ct(so(re(e)))}function co(e){var t=Oe(qe(e)),n=["absolute","fixed"].indexOf(oe(e).position)>=0,o=n&&j(e)?Me(e):e;return se(o)?t.filter(function(r){return se(r)&&Lt(r,o)&&X(r)!=="body"}):[]}function uo(e,t,n,o){var r=t==="clippingParents"?co(e):[].concat(t),i=[].concat(r,[n]),u=i[0],l=i.reduce(function(s,c){var d=Dt(e,c,o);return s.top=le(d.top,s.top),s.right=Fe(d.right,s.right),s.bottom=Fe(d.bottom,s.bottom),s.left=le(d.left,s.left),s},Dt(e,u,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ht(e){var t=e.reference,n=e.element,o=e.placement,r=o?Q(o):null,i=o?he(o):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(r){case k:s={x:u,y:t.y-n.height};break;case z:s={x:u,y:t.y+t.height};break;case K:s={x:t.x+t.width,y:l};break;case W:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var c=r?it(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case pe:s[c]=s[c]-(t[d]/2-n[d]/2);break;case Te:s[c]=s[c]+(t[d]/2-n[d]/2);break}}return s}function we(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,u=i===void 0?e.strategy:i,l=n.boundary,s=l===void 0?Nn:l,c=n.rootBoundary,d=c===void 0?Mt:c,_=n.elementContext,h=_===void 0?ge:_,m=n.altBoundary,f=m===void 0?!1:m,v=n.padding,E=v===void 0?0:v,I=Nt(typeof E!="number"?E:St(E,Ie)),g=h===ge?Sn:ge,O=e.rects.popper,b=e.elements[f?g:h],M=uo(se(b)?b:b.contextElement||re(e.elements.popper),s,d,u),A=_e(e.elements.reference),y=Ht({reference:A,element:O,strategy:"absolute",placement:r}),N=ct(Object.assign({},O,y)),U=h===ge?N:A,S={top:M.top-U.top+I.top,bottom:U.bottom-M.bottom+I.bottom,left:M.left-U.left+I.left,right:U.right-M.right+I.right},R=e.modifiersData.offset;if(h===ge&&R){var F=R[r];Object.keys(S).forEach(function(H){var ee=[K,z].indexOf(H)>=0?1:-1,te=[k,z].indexOf(H)>=0?"y":"x";S[H]+=F[te]*ee})}return S}function po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=s===void 0?Ot:s,d=he(o),_=d?l?At:At.filter(function(f){return he(f)===d}):Ie,h=_.filter(function(f){return c.indexOf(f)>=0});h.length===0&&(h=_);var m=h.reduce(function(f,v){return f[v]=we(e,{placement:v,boundary:r,rootBoundary:i,padding:u})[Q(v)],f},{});return Object.keys(m).sort(function(f,v){return m[f]-m[v]})}function fo(e){if(Q(e)===tt)return[];var t=Ge(e);return[Ct(e),t,Ct(t)]}function _o(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,l=u===void 0?!0:u,s=n.fallbackPlacements,c=n.padding,d=n.boundary,_=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,f=m===void 0?!0:m,v=n.allowedAutoPlacements,E=t.options.placement,I=Q(E),g=I===E,O=s||(g||!f?[Ge(E)]:fo(E)),b=[E].concat(O).reduce(function(ve,ae){return ve.concat(Q(ae)===tt?po(t,{placement:ae,boundary:d,rootBoundary:_,padding:c,flipVariations:f,allowedAutoPlacements:v}):ae)},[]),M=t.rects.reference,A=t.rects.popper,y=new Map,N=!0,U=b[0],S=0;S<b.length;S++){var R=b[S],F=Q(R),H=he(R)===pe,ee=[k,z].indexOf(F)>=0,te=ee?"width":"height",q=we(t,{placement:R,boundary:d,rootBoundary:_,altBoundary:h,padding:c}),C=ee?H?K:W:H?z:k;M[te]>A[te]&&(C=Ge(C));var Ue=Ge(C),ie=[];if(i&&ie.push(q[F]<=0),l&&ie.push(q[C]<=0,q[Ue]<=0),ie.every(function(ve){return ve})){U=R,N=!1;break}y.set(R,ie)}if(N)for(var V=f?3:1,Ce=function(ae){var De=b.find(function(ze){var ce=y.get(ze);if(ce)return ce.slice(0,ae).every(function(vt){return vt})});if(De)return U=De,"break"},Re=V;Re>0;Re--){var Ye=Ce(Re);if(Ye==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const ho={name:"flip",enabled:!0,phase:"main",fn:_o,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xt(e){return[k,K,z,W].some(function(t){return e[t]>=0})}function mo(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=we(t,{elementContext:"reference"}),l=we(t,{altBoundary:!0}),s=Bt(u,o),c=Bt(l,r,i),d=xt(s),_=xt(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":_})}const Eo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mo};function vo(e,t,n){var o=Q(e),r=[W,k].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],l=i[1];return u=u||0,l=(l||0)*r,[W,K].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function bo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=Ot.reduce(function(d,_){return d[_]=vo(_,t.rects,i),d},{}),l=u[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const Io={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bo};function To(e){var t=e.state,n=e.name;t.modifiersData[n]=Ht({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const go={name:"popperOffsets",enabled:!0,phase:"read",fn:To,data:{}};function Mo(e){return e==="x"?"y":"x"}function Ao(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,l=u===void 0?!1:u,s=n.boundary,c=n.rootBoundary,d=n.altBoundary,_=n.padding,h=n.tether,m=h===void 0?!0:h,f=n.tetherOffset,v=f===void 0?0:f,E=we(t,{boundary:s,rootBoundary:c,padding:_,altBoundary:d}),I=Q(t.placement),g=he(t.placement),O=!g,b=it(I),M=Mo(b),A=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,S=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(A){if(i){var H,ee=b==="y"?k:W,te=b==="y"?z:K,q=b==="y"?"height":"width",C=A[b],Ue=C+E[ee],ie=C-E[te],V=m?-N[q]/2:0,Ce=g===pe?y[q]:N[q],Re=g===pe?-N[q]:-y[q],Ye=t.elements.arrow,ve=m&&Ye?rt(Ye):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),De=ae[ee],ze=ae[te],ce=Ae(0,y[q],ve[q]),vt=O?y[q]/2-V-ce-De-S.mainAxis:Ce-ce-De-S.mainAxis,kr=O?-y[q]/2+V+ce+ze+S.mainAxis:Re+ce+ze+S.mainAxis,bt=t.elements.arrow&&Me(t.elements.arrow),Wr=bt?b==="y"?bt.clientTop||0:bt.clientLeft||0:0,cn=(H=R==null?void 0:R[b])!=null?H:0,Fr=C+vt-cn-Wr,qr=C+kr-cn,un=Ae(m?Fe(Ue,Fr):Ue,C,m?le(ie,qr):ie);A[b]=un,F[b]=un-C}if(l){var dn,Vr=b==="x"?k:W,Gr=b==="x"?z:K,ue=A[M],Ke=M==="y"?"height":"width",pn=ue+E[Vr],fn=ue-E[Gr],It=[k,W].indexOf(I)!==-1,_n=(dn=R==null?void 0:R[M])!=null?dn:0,hn=It?pn:ue-y[Ke]-N[Ke]-_n+S.altAxis,mn=It?ue+y[Ke]+N[Ke]-_n-S.altAxis:fn,En=m&&It?zn(hn,ue,mn):Ae(m?hn:pn,ue,m?mn:fn);A[M]=En,F[M]=En-ue}t.modifiersData[o]=F}}const Oo={name:"preventOverflow",enabled:!0,phase:"main",fn:Ao,requiresIfExists:["offset"]};function wo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lo(e){return e===G(e)||!j(e)?at(e):wo(e)}function yo(e){var t=e.getBoundingClientRect(),n=fe(t.width)/e.offsetWidth||1,o=fe(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Po(e,t,n){n===void 0&&(n=!1);var o=j(t),r=j(t)&&yo(t),i=re(t),u=_e(e,r,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((X(t)!=="body"||lt(i))&&(l=Lo(t)),j(t)?(s=_e(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=st(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function No(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&r(s)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function So(e){var t=No(e);return Fn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Uo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Co(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var kt={placement:"bottom",modifiers:[],strategy:"absolute"};function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ro(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?kt:r;return function(l,s,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},kt,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},_=[],h=!1,m={state:d,setOptions:function(I){var g=typeof I=="function"?I(d.options):I;v(),d.options=Object.assign({},i,d.options,g),d.scrollParents={reference:se(l)?Oe(l):l.contextElement?Oe(l.contextElement):[],popper:Oe(s)};var O=So(Co([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(b){return b.enabled}),f(),m.update()},forceUpdate:function(){if(!h){var I=d.elements,g=I.reference,O=I.popper;if(Wt(g,O)){d.rects={reference:Po(g,Me(O),d.options.strategy==="fixed"),popper:rt(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(S){return d.modifiersData[S.name]=Object.assign({},S.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var M=d.orderedModifiers[b],A=M.fn,y=M.options,N=y===void 0?{}:y,U=M.name;typeof A=="function"&&(d=A({state:d,options:N,name:U,instance:m})||d)}}}},update:Uo(function(){return new Promise(function(E){m.forceUpdate(),E(d)})}),destroy:function(){v(),h=!0}};if(!Wt(l,s))return m;m.setOptions(c).then(function(E){!h&&c.onFirstUpdate&&c.onFirstUpdate(E)});function f(){d.orderedModifiers.forEach(function(E){var I=E.name,g=E.options,O=g===void 0?{}:g,b=E.effect;if(typeof b=="function"){var M=b({state:d,name:I,instance:m,options:O}),A=function(){};_.push(M||A)}})}function v(){_.forEach(function(E){return E()}),_=[]}return m}}var Do=[oo,go,to,Gn,Io,ho,Oo,Xn,Eo],Ft=Ro({defaultModifiers:Do});function ut(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let $;const Le={},dt={SHIFT:"shift-key"};function qt(){$&&(document.removeEventListener("click",$.globalOnClick),document.removeEventListener("keyup",$.globalOnKeyup),document.removeEventListener("keydown",$.globalOnKeydown),$=null)}function pt(){const e=document.querySelectorAll(`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(a.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const o=document.querySelector(`[aria-controls="${n}"]`);o&&o.setAttribute("aria-expanded","false")}ut(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function Ho(){$&&qt(),$={globalOnClick:()=>{},globalOnKeyup:()=>{},globalOnKeydown:()=>{}},$.globalOnClick=pt,document.addEventListener("click",$.globalOnClick),$.globalOnKeyup=e=>{e.key==="Escape"&&pt(),e.shiftKey||(Le[dt.SHIFT]=!1),Le[e.key]=!1},document.addEventListener("keyup",$.globalOnKeyup),$.globalOnKeydown=e=>{e.shiftKey&&(Le[dt.SHIFT]=!0),Le[e.key]=!0},document.addEventListener("keydown",$.globalOnKeydown)}function Bo(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function ye(e,t,n,o,r){let i=NaN,u=NaN;const l=350,s=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(h){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{Ft(t,n,{placement:(r==null?void 0:r.popupPlacement)||Be.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),ut(n,!0,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach(m=>m.classList.add(a.TOOLTIP__WRAPPER__HIDDEN))},h))}function _(h){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{ut(n,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},h))}if(r!=null&&r.preventOnClickHandling&&(ne(!!e.onclick,"popupFocusHandler: wrapper already has an onclick"),e.onclick=h=>{h.stopPropagation()}),e.addEventListener("focusin",()=>d(s)),e.addEventListener("focusout",()=>_(s)),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(l)),e.addEventListener("mouseleave",()=>_(l))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=h=>{var f;const m=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(h.stopPropagation(),h.preventDefault(),m&&t.getAttribute("aria-expanded")==="true"?(_(c),(f=document.activeElement)==null||f.blur()):(Bo()&&pt(),d(c))),r!=null&&r.onClick&&r.onClick(h)}}}const xo=`<div class="popup__wrapper popup__wrapper--hidden">
|
|
155
155
|
<div class="popup__content">
|
|
156
156
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
157
157
|
</div>
|