import{a as e,n as t}from"./rolldown-runtime-CNC7AqOf.js";import{t as n}from"./react-Augu_vA3.js";import{L as r,_t as i,ai as a,ct as o,dt as s,lt as c,mt as l,pt as u,qi as d,st as f,yt as p,z as m}from"./forms-CL2ODv4X.js";import{t as h}from"./useTranslation-B_YCgyrR.js";import{t as g}from"./jsx-runtime-CTknu7_t.js";var _=e(n()),v=e(u());function y(){return y=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var S=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=b(e,[`color`,`size`]);return _.createElement(`svg`,y({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`polyline`,{points:`6 9 12 15 18 9`}))});S.propTypes={color:v.default.string,size:v.default.oneOfType([v.default.string,v.default.number])},S.displayName=`ChevronDown`;function C(){return C=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var E=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=w(e,[`color`,`size`]);return _.createElement(`svg`,C({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`polyline`,{points:`18 15 12 9 6 15`}))});E.propTypes={color:v.default.string,size:v.default.oneOfType([v.default.string,v.default.number])},E.displayName=`ChevronUp`;var D,O,k,A,j,M,N,P,F,I,L,R,ee,te,ne,re,ie,ae,z,oe,se,ce,B=t((()=>{D=`bottom`,O=`right`,k=`left`,A=`auto`,j=[`top`,D,O,k],M=`start`,N=`clippingParents`,P=`viewport`,F=`popper`,I=`reference`,L=j.reduce(function(e,t){return e.concat([t+`-`+M,t+`-end`])},[]),R=[].concat(j,[A]).reduce(function(e,t){return e.concat([t,t+`-`+M,t+`-end`])},[]),ee=`beforeRead`,te=`read`,ne=`afterRead`,re=`beforeMain`,ie=`main`,ae=`afterMain`,z=`beforeWrite`,oe=`write`,se=`afterWrite`,ce=[ee,te,ne,re,ie,ae,z,oe,se]}));function V(e){return e?(e.nodeName||``).toLowerCase():null}var H=t((()=>{}));function U(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var W=t((()=>{}));function G(e){return e instanceof U(e).Element||e instanceof Element}function K(e){return e instanceof U(e).HTMLElement||e instanceof HTMLElement}function le(e){return typeof ShadowRoot>`u`?!1:e instanceof U(e).ShadowRoot||e instanceof ShadowRoot}var q=t((()=>{W()}));function ue(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!K(i)||!V(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function de(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(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!K(r)||!V(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var fe,pe=t((()=>{H(),q(),fe={name:`applyStyles`,enabled:!0,phase:`write`,fn:ue,effect:de,requires:[`computeStyles`]}}));function J(e){return e.split(`-`)[0]}var Y=t((()=>{})),me,he,X,ge=t((()=>{me=Math.max,he=Math.min,X=Math.round}));function _e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}var ve=t((()=>{}));function ye(){return!/^((?!chrome|android).)*safari/i.test(_e())}var be=t((()=>{ve()}));function xe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&K(e)&&(i=e.offsetWidth>0&&X(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&X(r.height)/e.offsetHeight||1);var o=(G(e)?U(e):window).visualViewport,s=!ye()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}var Se=t((()=>{q(),ge(),W(),be()}));function Ce(e){var t=xe(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}var we=t((()=>{Se()}));function Te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&le(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}var Ee=t((()=>{q()}));function De(e){return U(e).getComputedStyle(e)}var Oe=t((()=>{W()}));function ke(e){return[`table`,`td`,`th`].indexOf(V(e))>=0}var Ae=t((()=>{H()}));function je(e){return((G(e)?e.ownerDocument:e.document)||window.document).documentElement}var Me=t((()=>{q()}));function Ne(e){return V(e)===`html`?e:e.assignedSlot||e.parentNode||(le(e)?e.host:null)||je(e)}var Pe=t((()=>{H(),Me(),q()}));function Fe(e){return!K(e)||De(e).position===`fixed`?null:e.offsetParent}function Ie(e){var t=/firefox/i.test(_e());if(/Trident/i.test(_e())&&K(e)&&De(e).position===`fixed`)return null;var n=Ne(e);for(le(n)&&(n=n.host);K(n)&&[`html`,`body`].indexOf(V(n))<0;){var r=De(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Le(e){for(var t=U(e),n=Fe(e);n&&ke(n)&&De(n).position===`static`;)n=Fe(n);return n&&(V(n)===`html`||V(n)===`body`&&De(n).position===`static`)?t:n||Ie(e)||t}var Re=t((()=>{W(),H(),Oe(),q(),Ae(),Pe(),ve()}));function ze(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}var Be=t((()=>{}));function Ve(e,t,n){return me(e,he(t,n))}function He(e,t,n){var r=Ve(e,t,n);return r>n?n:r}var Ue=t((()=>{ge()}));function We(){return{top:0,right:0,bottom:0,left:0}}var Ge=t((()=>{}));function Ke(e){return Object.assign({},We(),e)}var qe=t((()=>{Ge()}));function Je(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ye=t((()=>{}));function Xe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=J(n.placement),c=ze(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Qe(i.padding,n),d=Ce(a),f=c===`y`?`top`:k,p=c===`y`?D:O,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Le(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Ve(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Ze(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Te(t.elements.popper,r)&&(t.elements.arrow=r))}var Qe,$e,et=t((()=>{Y(),we(),Ee(),Re(),Be(),Ue(),qe(),Ye(),B(),Qe=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Ke(typeof e==`number`?Je(e,j):e)},$e={name:`arrow`,enabled:!0,phase:`main`,fn:Xe,effect:Ze,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]}}));function tt(e){return e.split(`-`)[1]}var nt=t((()=>{}));function rt(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:X(n*i)/i||0,y:X(r*i)/i||0}}function it(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=k,b=`top`,x=window;if(l){var S=Le(n),C=`clientHeight`,w=`clientWidth`;if(S===U(n)&&(S=je(n),De(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=D;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=O;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var A=Object.assign({position:s},l&&ot),j=u===!0?rt({x:p,y:h},U(n)):{x:p,y:h};if(p=j.x,h=j.y,c){var M;return Object.assign({},A,(M={},M[b]=v?`0`:``,M[y]=_?`0`:``,M.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,M))}return Object.assign({},A,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function at(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:J(t.placement),variation:tt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,it(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,it(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ot,st,ct=t((()=>{B(),Re(),W(),Me(),Oe(),Y(),nt(),ge(),ot={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`},st={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:at,data:{}}}));function lt(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=U(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,ut)}),s&&c.addEventListener(`resize`,n.update,ut),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,ut)}),s&&c.removeEventListener(`resize`,n.update,ut)}}var ut,dt,ft=t((()=>{W(),ut={passive:!0},dt={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:lt,data:{}}}));function pt(e){return e.replace(/left|right|bottom|top/g,function(e){return mt[e]})}var mt,ht=t((()=>{mt={left:`right`,right:`left`,bottom:`top`,top:`bottom`}}));function gt(e){return e.replace(/start|end/g,function(e){return _t[e]})}var _t,vt=t((()=>{_t={start:`end`,end:`start`}}));function yt(e){var t=U(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var bt=t((()=>{W()}));function xt(e){return xe(je(e)).left+yt(e).scrollLeft}var St=t((()=>{Se(),Me(),bt()}));function Ct(e,t){var n=U(e),r=je(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=ye();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+xt(e),y:c}}var wt=t((()=>{W(),Me(),St(),be()}));function Tt(e){var t=je(e),n=yt(e),r=e.ownerDocument?.body,i=me(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=me(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+xt(e),s=-n.scrollTop;return De(r||t).direction===`rtl`&&(o+=me(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}var Et=t((()=>{Me(),Oe(),St(),bt(),ge()}));function Dt(e){var t=De(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}var Ot=t((()=>{Oe()}));function kt(e){return[`html`,`body`,`#document`].indexOf(V(e))>=0?e.ownerDocument.body:K(e)&&Dt(e)?e:kt(Ne(e))}var At=t((()=>{Pe(),Ot(),H(),q()}));function jt(e,t){t===void 0&&(t=[]);var n=kt(e),r=n===e.ownerDocument?.body,i=U(n),a=r?[i].concat(i.visualViewport||[],Dt(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(jt(Ne(a)))}var Mt=t((()=>{At(),Pe(),W(),Ot()}));function Nt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var Pt=t((()=>{}));function Ft(e,t){var n=xe(e,!1,t===`fixed`);return n.top+=e.clientTop,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 It(e,t,n){return t===`viewport`?Nt(Ct(e,n)):G(t)?Ft(t,n):Nt(Tt(je(e)))}function Lt(e){var t=jt(Ne(e)),n=[`absolute`,`fixed`].indexOf(De(e).position)>=0&&K(e)?Le(e):e;return G(n)?t.filter(function(e){return G(e)&&Te(e,n)&&V(e)!==`body`}):[]}function Rt(e,t,n,r){var i=t===`clippingParents`?Lt(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=It(e,n,r);return t.top=me(i.top,t.top),t.right=he(i.right,t.right),t.bottom=he(i.bottom,t.bottom),t.left=me(i.left,t.left),t},It(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var zt=t((()=>{B(),wt(),Et(),Mt(),Re(),Me(),Oe(),q(),Se(),Pe(),Ee(),H(),Pt(),ge()}));function Bt(e){var t=e.reference,n=e.element,r=e.placement,i=r?J(r):null,a=r?tt(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case D:c={x:o,y:t.y+t.height};break;case O:c={x:t.x+t.width,y:s};break;case k:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ze(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case M:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}var Vt=t((()=>{Y(),nt(),Be(),B()}));function Ht(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?N:s,l=n.rootBoundary,u=l===void 0?P:l,d=n.elementContext,f=d===void 0?F:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=Ke(typeof g==`number`?Je(g,j):g),v=f===`popper`?I:F,y=e.rects.popper,b=e.elements[m?v:f],x=Rt(G(b)?b:b.contextElement||je(e.elements.popper),c,u,o),S=xe(e.elements.reference),C=Bt({reference:S,element:y,strategy:`absolute`,placement:i}),w=Nt(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}var Ut=t((()=>{zt(),Me(),Se(),Vt(),Pt(),B(),q(),qe(),Ye()}));function Wt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?R:c,u=tt(r),d=u?s?L:L.filter(function(e){return tt(e)===u}):j,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Ht(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[J(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Gt=t((()=>{nt(),B(),Ut(),Y()}));function Kt(e){if(J(e)===`auto`)return[];var t=pt(e);return[gt(e),t,gt(t)]}function qt(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=J(g)===g,v=c||(_||!m?[pt(g)]:Kt(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(J(n)===`auto`?Wt(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T=0,P=N?`width`:`height`,F=Ht(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),I=N?j?O:k:j?D:`top`;b[P]>x[P]&&(I=pt(I));var L=pt(I),R=[];if(a&&R.push(F[A]<=0),s&&R.push(F[I]<=0,F[L]<=0),R.every(function(e){return e})){w=E,C=!1;break}S.set(E,R)}if(C)for(var ee=m?3:1,te=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ne=ee;ne>0&&te(ne)!==`break`;ne--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Jt,Yt=t((()=>{ht(),Y(),vt(),Ut(),Gt(),B(),nt(),Jt={name:`flip`,enabled:!0,phase:`main`,fn:qt,requiresIfExists:[`offset`],data:{_skip:!1}}}));function Xt(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 Zt(e){return[`top`,O,D,k].some(function(t){return e[t]>=0})}function Qt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ht(t,{elementContext:`reference`}),s=Ht(t,{altBoundary:!0}),c=Xt(o,r),l=Xt(s,i,a),u=Zt(c),d=Zt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var $t,en=t((()=>{B(),Ut(),$t={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Qt}}));function tn(e,t,n){var r=J(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function nn(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=R.reduce(function(e,n){return e[n]=tn(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var rn,an=t((()=>{Y(),B(),rn={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:nn}}));function on(e){var t=e.state,n=e.name;t.modifiersData[n]=Bt({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var sn,cn=t((()=>{Vt(),sn={name:`popperOffsets`,enabled:!0,phase:`read`,fn:on,data:{}}}));function ln(e){return e===`x`?`y`:`x`}var un=t((()=>{}));function dn(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Ht(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=J(t.placement),v=tt(t.placement),y=!v,b=ze(_),x=ln(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(S){if(a){var M=b===`y`?`top`:k,N=b===`y`?D:O,P=b===`y`?`height`:`width`,F=S[b],I=F+g[M],L=F-g[N],R=p?-w[P]/2:0,ee=v===`start`?C[P]:w[P],te=v===`start`?-w[P]:-C[P],ne=t.elements.arrow,re=p&&ne?Ce(ne):{width:0,height:0},ie=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:We(),ae=ie[M],z=ie[N],oe=Ve(0,C[P],re[P]),se=y?C[P]/2-R-oe-ae-E.mainAxis:ee-oe-ae-E.mainAxis,ce=y?-C[P]/2+R+oe+z+E.mainAxis:te+oe+z+E.mainAxis,B=t.elements.arrow&&Le(t.elements.arrow),V=B?b===`y`?B.clientTop||0:B.clientLeft||0:0,H=A?.[b]??0,U=F+se-H-V,W=F+ce-H,G=Ve(p?he(I,U):I,F,p?me(L,W):L);S[b]=G,j[b]=G-F}if(s){var K=b===`x`?`top`:k,le=b===`x`?D:O,q=S[x],ue=x===`y`?`height`:`width`,de=q+g[K],fe=q-g[le],pe=[`top`,k].indexOf(_)!==-1,Y=A?.[x]??0,X=pe?de:q-C[ue]-w[ue]-Y+E.altAxis,ge=pe?q+C[ue]+w[ue]-Y-E.altAxis:fe,_e=p&&pe?He(X,q,ge):Ve(p?X:de,q,p?ge:fe);S[x]=_e,j[x]=_e-q}t.modifiersData[r]=j}}var fn,pn=t((()=>{B(),Y(),Be(),un(),Ue(),we(),Re(),Ut(),nt(),Ge(),ge(),fn={name:`preventOverflow`,enabled:!0,phase:`main`,fn:dn,requiresIfExists:[`offset`]}})),mn=t((()=>{pe(),et(),ct(),ft(),Yt(),en(),an(),cn(),pn()}));function hn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var gn=t((()=>{}));function _n(e){return e===U(e)||!K(e)?yt(e):hn(e)}var vn=t((()=>{bt(),W(),q(),gn()}));function yn(e){var t=e.getBoundingClientRect(),n=X(t.width)/e.offsetWidth||1,r=X(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bn(e,t,n){n===void 0&&(n=!1);var r=K(t),i=K(t)&&yn(t),a=je(t),o=xe(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((V(t)!==`body`||Dt(a))&&(s=_n(t)),K(t)?(c=xe(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=xt(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}var xn=t((()=>{Se(),vn(),H(),q(),St(),Me(),Ot(),ge()}));function Sn(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Cn(e){var t=Sn(e);return ce.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}var wn=t((()=>{B()}));function Tn(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}var En=t((()=>{}));function Dn(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var On=t((()=>{}));function kn(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function An(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?jn:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},jn,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:G(e)?jt(e):e.contextElement?jt(e.contextElement):[],popper:jt(t)};var s=Cn(Dn([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(kn(t,n)){i.rects={reference:bn(t,Le(n),i.options.strategy===`fixed`),popper:Ce(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r{xn(),we(),Mt(),Re(),wn(),En(),On(),q(),jn={placement:`bottom`,modifiers:[],strategy:`absolute`}})),Nn,Pn,Fn=t((()=>{Mn(),ft(),cn(),ct(),pe(),an(),Yt(),pn(),et(),en(),mn(),Nn=[dt,sn,st,fe,rn,Jt,fn,$e,$t],Pn=An({defaultModifiers:Nn})})),In=t((()=>{B(),mn(),Mn(),Fn(),ft(),cn(),ct(),pe()}));In();var Ln=`tippy-content`,Rn=`tippy-backdrop`,zn=`tippy-arrow`,Bn=`tippy-svg-arrow`,Vn={passive:!0,capture:!0},Hn=function(){return document.body};function Un(e,t,n){return Array.isArray(e)?e[t]??(Array.isArray(n)?n[t]:n):e}function Wn(e,t){var n={}.toString.call(e);return n.indexOf(`[object`)===0&&n.indexOf(t+`]`)>-1}function Gn(e,t){return typeof e==`function`?e.apply(void 0,t):e}function Kn(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function qn(e){return e.split(/\s+/).filter(Boolean)}function Jn(e){return[].concat(e)}function Yn(e,t){e.indexOf(t)===-1&&e.push(t)}function Xn(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Zn(e){return e.split(`-`)[0]}function Qn(e){return[].slice.call(e)}function $n(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function er(){return document.createElement(`div`)}function tr(e){return[`Element`,`Fragment`].some(function(t){return Wn(e,t)})}function nr(e){return Wn(e,`NodeList`)}function rr(e){return Wn(e,`MouseEvent`)}function ir(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ar(e){return tr(e)?[e]:nr(e)?Qn(e):Array.isArray(e)?e:Qn(document.querySelectorAll(e))}function or(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+`ms`)})}function sr(e,t){e.forEach(function(e){e&&e.setAttribute(`data-state`,t)})}function cr(e){var t,n=Jn(e)[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function lr(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,a=e.props.interactiveBorder,o=Zn(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c=o===`bottom`?s.top.y:0,l=o===`top`?s.bottom.y:0,u=o===`right`?s.left.x:0,d=o===`left`?s.right.x:0,f=t.top-r+c>a,p=r-t.bottom-l>a,m=t.left-n+u>a,h=n-t.right-d>a;return f||p||m||h})}function ur(e,t,n){var r=t+`EventListener`;[`transitionend`,`webkitTransitionEnd`].forEach(function(t){e[r](t,n)})}function dr(e,t){for(var n=t;n;){if(e.contains(n))return!0;n=n.getRootNode==null?void 0:n.getRootNode()?.host}return!1}var fr={isTouch:!1},pr=0;function mr(){fr.isTouch||(fr.isTouch=!0,window.performance&&document.addEventListener(`mousemove`,hr))}function hr(){var e=performance.now();e-pr<20&&(fr.isTouch=!1,document.removeEventListener(`mousemove`,hr)),pr=e}function gr(){var e=document.activeElement;if(ir(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function _r(){document.addEventListener(`touchstart`,mr,Vn),window.addEventListener(`blur`,gr)}var vr=typeof window<`u`&&typeof document<`u`&&!!window.msCrypto,Z=Object.assign({appendTo:Hn,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},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:`fade`,arrow:!0,content:``,inertia:!1,maxWidth:350,role:`tooltip`,theme:``,zIndex:9999}),yr=Object.keys(Z),br=function(e){Object.keys(e).forEach(function(t){Z[t]=e[t]})};function xr(e){var t=(e.plugins||[]).reduce(function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=e[r]===void 0?Z[r]??i:e[r]),t},{});return Object.assign({},e,t)}function Sr(e,t){return(t?Object.keys(xr(Object.assign({},Z,{plugins:t}))):yr).reduce(function(t,n){var r=(e.getAttribute(`data-tippy-`+n)||``).trim();if(!r)return t;if(n===`content`)t[n]=r;else try{t[n]=JSON.parse(r)}catch{t[n]=r}return t},{})}function Cr(e,t){var n=Object.assign({},t,{content:Gn(t.content,[e])},t.ignoreAttributes?{}:Sr(e,t.plugins));return n.aria=Object.assign({},Z.aria,n.aria),n.aria={expanded:n.aria.expanded===`auto`?t.interactive:n.aria.expanded,content:n.aria.content===`auto`?t.interactive?null:`describedby`:n.aria.content},n}function wr(e){var t=e.firstElementChild,n=Qn(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Ln)}),arrow:n.find(function(e){return e.classList.contains(zn)||e.classList.contains(Bn)}),backdrop:n.find(function(e){return e.classList.contains(Rn)})}}var Tr=1,Er=[],Dr=[];function Or(e,t){var n=Cr(e,Object.assign({},Z,xr($n(t)))),r,i,a,o=!1,s=!1,c=!1,l=!1,u,d,f,p=[],m=Kn(B,n.interactiveDebounce),h,g=Tr++,_=null,v=Xn(n.plugins),y={id:g,reference:e,popper:er(),popperInstance:_,props:n,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:pe,setProps:J,setContent:Y,show:me,hide:he,hideWithInteractivity:X,enable:de,disable:fe,unmount:ge,destroy:_e};if(!n.render)return y;var b=n.render(y),x=b.popper,S=b.onUpdate;x.setAttribute(`data-tippy-root`,``),x.id=`tippy-`+y.id,y.popper=x,e._tippy=y,x._tippy=y;var C=v.map(function(e){return e.fn(y)}),w=e.hasAttribute(`aria-expanded`);return oe(),F(),M(),N(`onCreate`,[y]),n.showOnCreate&&q(),x.addEventListener(`mouseenter`,function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),x.addEventListener(`mouseleave`,function(){y.props.interactive&&y.props.trigger.indexOf(`mouseenter`)>=0&&k().addEventListener(`mousemove`,m)}),y;function T(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return T()[0]===`hold`}function D(){var e;return!!((e=y.props.render)!=null&&e.$$tippy)}function O(){return h||e}function k(){var e=O().parentNode;return e?cr(e):document}function A(){return wr(x)}function j(e){return y.state.isMounted&&!y.state.isVisible||fr.isTouch||u&&u.type===`focus`?0:Un(y.props.delay,+!e,Z.delay)}function M(e){e===void 0&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?``:`none`,x.style.zIndex=``+y.props.zIndex}function N(e,t,n){if(n===void 0&&(n=!0),C.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=y.props)[e].apply(r,t)}}function P(){var t=y.props.aria;if(t.content){var n=`aria-`+t.content,r=x.id;Jn(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+` `+r:r);else{var i=t&&t.replace(r,``).trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function F(){w||!y.props.aria.expanded||Jn(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute(`aria-expanded`,y.state.isVisible&&e===O()?`true`:`false`):e.removeAttribute(`aria-expanded`)})}function I(){k().removeEventListener(`mousemove`,m),Er=Er.filter(function(e){return e!==m})}function L(t){if(!(fr.isTouch&&(c||t.type===`mousedown`))){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(y.props.interactive&&dr(x,n))){if(Jn(y.props.triggerTarget||e).some(function(e){return dr(e,n)})){if(fr.isTouch||y.state.isVisible&&y.props.trigger.indexOf(`click`)>=0)return}else N(`onClickOutside`,[y,t]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),s=!0,setTimeout(function(){s=!1}),y.state.isMounted||ne())}}}function R(){c=!0}function ee(){c=!1}function te(){var e=k();e.addEventListener(`mousedown`,L,!0),e.addEventListener(`touchend`,L,Vn),e.addEventListener(`touchstart`,ee,Vn),e.addEventListener(`touchmove`,R,Vn)}function ne(){var e=k();e.removeEventListener(`mousedown`,L,!0),e.removeEventListener(`touchend`,L,Vn),e.removeEventListener(`touchstart`,ee,Vn),e.removeEventListener(`touchmove`,R,Vn)}function re(e,t){ae(e,function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function ie(e,t){ae(e,t)}function ae(e,t){var n=A().box;function r(e){e.target===n&&(ur(n,`remove`,r),t())}if(e===0)return t();ur(n,`remove`,d),ur(n,`add`,r),d=r}function z(t,n,r){r===void 0&&(r=!1),Jn(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),p.push({node:e,eventType:t,handler:n,options:r})})}function oe(){E()&&(z(`touchstart`,ce,{passive:!0}),z(`touchend`,V,{passive:!0})),qn(y.props.trigger).forEach(function(e){if(e!==`manual`)switch(z(e,ce),e){case`mouseenter`:z(`mouseleave`,V);break;case`focus`:z(vr?`focusout`:`blur`,H);break;case`focusin`:z(`focusout`,H);break}})}function se(){p.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),p=[]}function ce(e){var t=!1;if(!(!y.state.isEnabled||U(e)||s)){var n=u?.type===`focus`;u=e,h=e.currentTarget,F(),!y.state.isVisible&&rr(e)&&Er.forEach(function(t){return t(e)}),e.type===`click`&&(y.props.trigger.indexOf(`mouseenter`)<0||o)&&y.props.hideOnClick!==!1&&y.state.isVisible?t=!0:q(e),e.type===`click`&&(o=!t),t&&!n&&ue(e)}}function B(e){var t=e.target,r=O().contains(t)||x.contains(t);e.type===`mousemove`&&r||lr(le().concat(x).map(function(e){var t=e._tippy.popperInstance?.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:n}:null}).filter(Boolean),e)&&(I(),ue(e))}function V(e){if(!(U(e)||y.props.trigger.indexOf(`click`)>=0&&o)){if(y.props.interactive){y.hideWithInteractivity(e);return}ue(e)}}function H(e){y.props.trigger.indexOf(`focusin`)<0&&e.target!==O()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||ue(e)}function U(e){return fr.isTouch?E()!==e.type.indexOf(`touch`)>=0:!1}function W(){G();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,s=D()?wr(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||O()}:e,l=[{name:`offset`,options:{offset:i}},{name:`preventOverflow`,options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:`flip`,options:{padding:5}},{name:`computeStyles`,options:{adaptive:!o}},{name:`$$tippy`,enabled:!0,phase:`beforeWrite`,requires:[`computeStyles`],fn:function(e){var t=e.state;if(D()){var n=A().box;[`placement`,`reference-hidden`,`escaped`].forEach(function(e){e===`placement`?n.setAttribute(`data-placement`,t.placement):t.attributes.popper[`data-popper-`+e]?n.setAttribute(`data-`+e,``):n.removeAttribute(`data-`+e)}),t.attributes.popper={}}}}];D()&&s&&l.push({name:`arrow`,options:{element:s,padding:3}}),l.push.apply(l,n?.modifiers||[]),y.popperInstance=Pn(c,x,Object.assign({},n,{placement:r,onFirstUpdate:f,modifiers:l}))}function G(){y.popperInstance&&=(y.popperInstance.destroy(),null)}function K(){var e=y.props.appendTo,t,n=O();t=y.props.interactive&&e===Hn||e===`parent`?n.parentNode:Gn(e,[n]),t.contains(x)||t.appendChild(x),y.state.isMounted=!0,W()}function le(){return Qn(x.querySelectorAll(`[data-tippy-root]`))}function q(e){y.clearDelayTimeouts(),e&&N(`onTrigger`,[y,e]),te();var t=j(!0),n=T(),i=n[0],a=n[1];fr.isTouch&&i===`hold`&&a&&(t=a),t?r=setTimeout(function(){y.show()},t):y.show()}function ue(e){if(y.clearDelayTimeouts(),N(`onUntrigger`,[y,e]),!y.state.isVisible){ne();return}if(!(y.props.trigger.indexOf(`mouseenter`)>=0&&y.props.trigger.indexOf(`click`)>=0&&[`mouseleave`,`mousemove`].indexOf(e.type)>=0&&o)){var t=j(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):a=requestAnimationFrame(function(){y.hide()})}}function de(){y.state.isEnabled=!0}function fe(){y.hide(),y.state.isEnabled=!1}function pe(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function J(t){if(!y.state.isDestroyed){N(`onBeforeUpdate`,[y,t]),se();var n=y.props,r=Cr(e,Object.assign({},n,$n(t),{ignoreAttributes:!0}));y.props=r,oe(),n.interactiveDebounce!==r.interactiveDebounce&&(I(),m=Kn(B,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Jn(n.triggerTarget).forEach(function(e){e.removeAttribute(`aria-expanded`)}):r.triggerTarget&&e.removeAttribute(`aria-expanded`),F(),M(),S&&S(n,r),y.popperInstance&&(W(),le().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N(`onAfterUpdate`,[y,t])}}function Y(e){y.setProps({content:e})}function me(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=fr.isTouch&&!y.props.touch,i=Un(y.props.duration,0,Z.duration);if(!(e||t||n||r)&&!O().hasAttribute(`disabled`)&&(N(`onShow`,[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,D()&&(x.style.visibility=`visible`),M(),te(),y.state.isMounted||(x.style.transition=`none`),D()){var a=A(),o=a.box,s=a.content;or([o,s],0)}f=function(){var e;if(!(!y.state.isVisible||l)){if(l=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=A(),n=t.box,r=t.content;or([n,r],i),sr([n,r],`visible`)}P(),F(),Yn(Dr,y),(e=y.popperInstance)==null||e.forceUpdate(),N(`onMount`,[y]),y.props.animation&&D()&&ie(i,function(){y.state.isShown=!0,N(`onShown`,[y])})}},K()}}function he(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Un(y.props.duration,1,Z.duration);if(!(e||t||n)&&(N(`onHide`,[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,l=!1,o=!1,D()&&(x.style.visibility=`hidden`),I(),ne(),M(!0),D()){var i=A(),a=i.box,s=i.content;y.props.animation&&(or([a,s],r),sr([a,s],`hidden`))}P(),F(),y.props.animation?D()&&re(r,y.unmount):y.unmount()}}function X(e){k().addEventListener(`mousemove`,m),Yn(Er,m),m(e)}function ge(){y.state.isVisible&&y.hide(),y.state.isMounted&&(G(),le().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Dr=Dr.filter(function(e){return e!==y}),y.state.isMounted=!1,N(`onHidden`,[y]))}function _e(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),se(),delete e._tippy,y.state.isDestroyed=!0,N(`onDestroy`,[y]))}}function kr(e,t){t===void 0&&(t={});var n=Z.plugins.concat(t.plugins||[]);_r();var r=Object.assign({},t,{plugins:n}),i=ar(e).reduce(function(e,t){var n=t&&Or(t,r);return n&&e.push(n),e},[]);return tr(e)?i[0]:i}kr.defaultProps=Z,kr.setDefaultProps=br,kr.currentInput=fr,Object.assign({},fe,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),kr.setDefaultProps({animation:!1});var Ar=e(d());function jr(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Mr=typeof window<`u`&&typeof document<`u`;function Nr(e,t){e&&(typeof e==`function`&&e(t),{}.hasOwnProperty.call(e,`current`)&&(e.current=t))}function Pr(){return Mr&&document.createElement(`div`)}function Fr(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t[`data-reference-hidden`]=``),e.escaped&&(t[`data-escaped`]=``),t}function Ir(e,t){if(e===t)return!0;if(typeof e==`object`&&e&&typeof t==`object`&&t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(t.hasOwnProperty(n)){if(!Ir(e[n],t[n]))return!1}else return!1;return!0}else return!1}function Lr(e){var t=[];return e.forEach(function(e){t.find(function(t){return Ir(e,t)})||t.push(e)}),t}function Rr(e,t){return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Lr([].concat(e.popperOptions?.modifiers||[],t.popperOptions?.modifiers||[]))})})}var zr=Mr?_.useLayoutEffect:_.useEffect;function Br(e){var t=(0,_.useRef)();return t.current||=typeof e==`function`?e():e,t.current}function Vr(e,t,n){n.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var Hr={name:`className`,defaultValue:``,fn:function(e){var t=e.popper.firstElementChild,n=function(){return!!e.props.render?.$$tippy};function r(){e.props.className&&!n()||Vr(t,`add`,e.props.className)}function i(){n()&&Vr(t,`remove`,e.props.className)}return{onCreate:r,onBeforeUpdate:i,onAfterUpdate:r}}};function Ur(e){function t(t){var n=t.children,r=t.content,i=t.visible,a=t.singleton,o=t.render,s=t.reference,c=t.disabled,l=c!==void 0&&c,u=t.ignoreAttributes,d=u===void 0||u;t.__source,t.__self;var f=jr(t,[`children`,`content`,`visible`,`singleton`,`render`,`reference`,`disabled`,`ignoreAttributes`,`__source`,`__self`]),p=i!==void 0,m=a!==void 0,h=(0,_.useState)(!1),g=h[0],v=h[1],y=(0,_.useState)({}),b=y[0],x=y[1],S=(0,_.useState)(),C=S[0],w=S[1],T=Br(function(){return{container:Pr(),renders:1}}),E=Object.assign({ignoreAttributes:d},f,{content:T.container});p&&(E.trigger=`manual`,E.hideOnClick=!1),m&&(l=!0);var D=E,O=E.plugins||[];o&&(D=Object.assign({},E,{plugins:m&&a.data!=null?[].concat(O,[{fn:function(){return{onTrigger:function(e,t){var n=a.data.children.find(function(e){return e.instance.reference===t.currentTarget});e.state.$$activeSingletonInstance=n.instance,w(n.content)}}}}]):O,render:function(){return{popper:T.container}}}));var k=[s].concat(n?[n.type]:[]);return zr(function(){var t=s;s&&s.hasOwnProperty(`current`)&&(t=s.current);var n=e(t||T.ref||Pr(),Object.assign({},D,{plugins:[Hr].concat(E.plugins||[])}));return T.instance=n,l&&n.disable(),i&&n.show(),m&&a.hook({instance:n,content:r,props:D,setSingletonContent:w}),v(!0),function(){n.destroy(),a?.cleanup(n)}},k),zr(function(){var e;if(T.renders===1){T.renders++;return}var t=T.instance;t.setProps(Rr(t.props,D)),(e=t.popperInstance)==null||e.forceUpdate(),l?t.disable():t.enable(),p&&(i?t.show():t.hide()),m&&a.hook({instance:t,content:r,props:D,setSingletonContent:w})}),zr(function(){if(o){var e=T.instance;e.setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat((e.props.popperOptions?.modifiers||[]).filter(function(e){return e.name!==`$$tippyReact`}),[{name:`$$tippyReact`,enabled:!0,phase:`beforeWrite`,requires:[`computeStyles`],fn:function(e){var t=e.state,n=t.modifiersData?.hide;(b.placement!==t.placement||b.referenceHidden!==n?.isReferenceHidden||b.escaped!==n?.hasPopperEscaped)&&x({placement:t.placement,referenceHidden:n?.isReferenceHidden,escaped:n?.hasPopperEscaped}),t.attributes.popper={}}}])})})}},[b.placement,b.referenceHidden,b.escaped].concat(k)),_.createElement(_.Fragment,null,n?(0,_.cloneElement)(n,{ref:function(e){T.ref=e,Nr(n.ref,e)}}):null,g&&(0,Ar.createPortal)(o?o(Fr(b),C,T.instance):r,T.container))}return t}var Wr=(function(e,t){return(0,_.forwardRef)(function(n,r){var i=n.children,a=jr(n,[`children`]);return _.createElement(e,Object.assign({},t,a),i?(0,_.cloneElement)(i,{ref:function(e){Nr(r,e),Nr(i.ref,e)}}):null)})})(Ur(kr),{render:function(){return``}}),Q=e(g(),1),$=e(s());function Gr(e){let t=i(),{style:n}=e;return(0,Q.jsxs)(`div`,{className:(0,$.default)(`sm:grid sm:gap-10 flex flex-col lg:flex-row ${e.className}`,{"px-5 sm:px-6":!e.noExternalPadding,"py-4 sm:py-3":!e.noVerticalPadding,"sm:items-center":!e.withoutItemsCenter,"sm:grid-cols-2":e.twoGridColumns,"sm:grid-cols-3":!e.twoGridColumns}),onClick:e.onClick,style:{color:t.$3,colorScheme:t.$0,...n},children:[(0,Q.jsxs)(`dt`,{className:(0,$.default)(`text-sm flex flex-col`,{"opacity-75":e.disabledLabels,"h-full justify-start":e.textVerticalAlign===`top`}),style:{color:t.$3,colorScheme:t.$0},children:[(0,Q.jsxs)(`span`,{className:(0,$.default)(`font-medium`,{"whitespace-nowrap":e.withoutWrappingLeftSide}),style:{color:t.$22,colorScheme:t.$0},children:[e.leftSide,e.required&&(0,Q.jsx)(`span`,{className:`ml-1 text-red-600`,children:`*`})]}),e.leftSideHelp&&(typeof e.leftSideHelp==`object`?e.leftSideHelp:(0,Q.jsx)(`span`,{className:`text-xs`,dangerouslySetInnerHTML:{__html:e.leftSideHelp},style:{color:t.$22,colorScheme:t.$0,opacity:.8}}))]}),(0,Q.jsx)(`dd`,{className:(0,$.default)(`mt-4 text-sm sm:mt-0`,{"flex flex-col sm:flex-row sm:justify-end":e.pushContentToRight,"sm:col-span-1":e.twoGridColumns,"sm:col-span-2":!e.twoGridColumns}),style:{color:t.$3,colorScheme:t.$0},children:e.children})]})}var Kr=o.button` color: ${e=>e.theme.color}; &:hover { background-color: ${e=>e.theme.hoverColor}; } `,qr=o(p)` color: ${e=>e.theme.color}; &:hover { background-color: ${e=>e.theme.hoverColor}; } `;function Jr(e){let t=i(),{prevent:n}=a(m),o=r({disablePrevention:e.disablePreventNavigation}),{actionKey:s}=e;return e.to?(0,Q.jsx)(`div`,{className:`p-1`,children:(0,Q.jsxs)(qr,{theme:{color:t.$3,hoverColor:t.$20},to:e.to,className:(0,$.default)({"flex items-center":e.icon},`w-full text-left z-50 block px-4 py-2 text-sm text-gray-700 rounded-[0.1875rem] ${e.className}`),onClick:t=>{n&&(t.preventDefault(),o({url:e.to}))},children:[e.icon&&(0,Q.jsx)(`div`,{children:e.icon}),(0,Q.jsx)(`div`,{className:(0,$.default)({"ml-2":e.icon}),children:e.children})]})}):(0,Q.jsx)(`div`,{className:`p-1`,children:(0,Q.jsxs)(Kr,{theme:{color:t.$3,hoverColor:t.$20},type:`button`,onClick:t=>o({fn:()=>{e.onClick?.(t),e.setVisible?.(!1)},actionKey:s}),ref:e.innerRef,className:(0,$.default)({"flex items-center":e.icon},`w-full text-left z-50 block px-4 py-2 text-sm rounded-[0.1875rem] ${e.className} `),"data-cy":e.cypressRef,children:[e.icon&&(0,Q.jsx)(`div`,{children:e.icon}),(0,Q.jsx)(`div`,{className:(0,$.default)({"ml-2":e.icon}),children:e.children})]})})}function Yr(e){var t=[...arguments].slice(1);e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Xr(e){var t=[...arguments].slice(1);e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Zr=[`mousedown`,`touchstart`],Qr=function(e,t,n){n===void 0&&(n=Zr);var r=(0,_.useRef)(t);(0,_.useEffect)(function(){r.current=t},[t]),(0,_.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&r.current(t)},i=0,a=n;ie.theme.color} !important; background-color: ${e=>e.theme.backgroundColor} !important; border-color: ${e=>e.theme.borderColor} !important; `,ei=o.div` &:hover { background-color: ${e=>e.theme.hoverColor}; } `;function ti(e){let t=(0,_.useRef)(null),[n,r]=(0,_.useState)(!1),a=i(),o=c(),[s,l]=(0,_.useState)(),u=(e,t)=>e===`div`?{onClick:()=>r(!1),key:t}:{setVisible:r,key:t};return Qr(t,()=>{n&&r(!1)}),(0,_.useEffect)(()=>{l(_.Children.toArray(e.children))},[e.children]),(0,Q.jsx)(`div`,{ref:t,children:(0,Q.jsx)(Wr,{disabled:e.disabled,placement:`bottom`,interactive:!0,render:()=>(0,Q.jsx)(ei,{theme:{hoverColor:a.$2},className:`border box rounded-md shadow-lg focus:outline-none whitespace-normal ${e.className}`,style:{backgroundColor:a.$1,borderColor:a.$19,minWidth:e.minWidth??`12rem`,maxWidth:e.maxWidth??`14.7rem`},"data-cy":e.cypressRef,children:s?.map((e,t)=>e&&(e.type==Jr||e.type==`div`)?(0,_.cloneElement)(e,u(e.type,t)):e)}),visible:n,children:e.customLabel?(0,Q.jsx)(`div`,{onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!n)},children:e.customLabel}):(0,Q.jsxs)($r,{theme:{backgroundColor:a.$18,color:a.$1,borderColor:e.labelButtonBorderColor||a.$24},type:`button`,disabled:e.disabled,onClick:()=>r(!n),className:(0,$.default)(`border inline-flex items-center space-x-2 px-4 justify-center rounded-md text-sm disabled:cursor-not-allowed disabled:opacity-75 py-2 ${e.className}`,{"hover:bg-white hover:border-gray-300":!e.cardActions,"hover:opacity-90":e.cardActions}),style:{backgroundColor:e.cardActions?o:``,color:e.cardActions?`white`:``},"data-cy":e.triggerCypressRef??`chevronDownButton`,children:[!e.cardActions&&(0,Q.jsx)(`span`,{children:e.label}),(0,Q.jsx)(S,{size:e.cardActions?18:14})]})})})}function ni(e){let[t]=h(),{padding:n=`regular`,height:r}=e,[a,o]=(0,_.useState)(e.collapsed),s=i();return(0,Q.jsx)(`div`,{ref:e.innerRef,className:(0,$.default)(`border rounded-md overflow-visible ${e.className}`,{"overflow-y-auto":e.withScrollableBody,"h-full":r===`full`}),style:{backgroundColor:s.$1,color:s.$3,borderColor:s.$4,...e.style},children:(0,Q.jsxs)(`form`,{onSubmit:t=>{t.preventDefault(),e.onFormSubmit?.(t)},className:(0,$.default)({"h-full":r===`full`}),children:[e.title&&(0,Q.jsx)(`div`,{className:(0,$.default)({"bg-white sticky top-0":e.withScrollableBody,"px-4 sm:px-6 py-3":n==`small`&&!e.withoutHeaderPadding,"px-4 sm:px-6 py-5":n==`regular`&&!e.withoutHeaderPadding,"border-b":!e.withoutHeaderBorder},e.headerClassName),onClick:()=>e.collapsed!==void 0&&o(!a),style:{borderColor:s.$4,...e.headerStyle},children:(0,Q.jsxs)(`div`,{className:(0,$.default)(`flex items-center justify-between`,{"cursor-pointer select-none":e.collapsed!==void 0}),children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h3`,{className:(0,$.default)(`leading-6 font-medium`,{"text-lg":n==`regular`,"text-md":n==`small`}),children:e.title}),e.description&&(0,Q.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm`,children:e.description})]}),e.topRight,e.collapsed!==void 0&&a&&(0,Q.jsx)(S,{}),e.collapsed!==void 0&&!a&&(0,Q.jsx)(E,{})]})}),(0,Q.jsxs)(`div`,{className:(0,$.default)(e.childrenClassName,{hidden:a,"py-0":e.withoutBodyPadding,"py-4":n===`regular`&&!e.withoutBodyPadding,"py-2":n===`small`&&!e.withoutBodyPadding,"h-full":r===`full`}),children:[e.isLoading&&(0,Q.jsx)(Gr,{leftSide:(0,Q.jsx)(l,{})}),e.withContainer?(0,Q.jsx)(ri,{children:e.children}):e.children]}),(e.withSaveButton||e.additionalAction)&&(0,Q.jsx)(`div`,{className:`border-t px-4 py-5 sm:p-0`,style:{borderColor:s.$20},children:(0,Q.jsx)(`dl`,{className:`sm:divide-y sm:divide-gray-200`,children:(0,Q.jsxs)(`div`,{className:`sm:py-5 sm:px-6 flex justify-end space-x-4`,children:[e.additionalAction,e.withSaveButton&&!e.additionalSaveOptions&&(0,Q.jsx)(f,{onClick:e.onSaveClick,disabled:e.disableSubmitButton,disableWithoutIcon:e.disableWithoutIcon,children:e.saveButtonLabel??t(`save`)}),e.withSaveButton&&e.additionalSaveOptions&&(0,Q.jsxs)(`div`,{className:`flex`,children:[(0,Q.jsx)(f,{className:`rounded-br-none rounded-tr-none px-3`,onClick:e.onSaveClick,disabled:e.disableSubmitButton,disableWithoutIcon:e.disableWithoutIcon,children:e.saveButtonLabel??t(`save`)}),(0,Q.jsx)(ti,{className:`rounded-bl-none rounded-tl-none h-full px-1 border-l-1 border-y-0 border-r-0`,disabled:e.disableSubmitButton,cardActions:!0,labelButtonBorderColor:s.$1,children:e.additionalSaveOptions.map((t,n)=>(0,Q.jsx)(Jr,{icon:t.icon,disabled:e.disableSubmitButton,onClick:t.onClick,children:t.text},n))})]})]})})})]})})}function ri(e){return(0,Q.jsx)(`div`,{className:`px-4 sm:px-6 py-4 space-y-6`,children:e.children})}var ii=o.button` color: ${e=>e.theme.color}; &:hover { background-color: ${e=>e.theme.hoverColor}; }: `,ai=o.a` color: ${e=>e.theme.color}; &:hover { background-color: ${e=>e.theme.hoverColor}; }: `,oi=o(p)` color: ${e=>e.theme.color}; &:hover { background-color: ${e=>e.theme.hoverColor}; }: `;function si(e){let t=i(),n=`block w-full text-left px-4 sm:px-6 block py-4 space-x-3 text-sm ${e.className}`;return e.to?(0,Q.jsx)(oi,{theme:{hoverColor:t.$4,color:t.$3},to:e.to,style:{pointerEvents:e.disableNavigation?`none`:`all`},className:n,children:e.children}):e.href?(0,Q.jsx)(ai,{theme:{hoverColor:t.$4,color:t.$3},target:`_blank`,href:e.href,className:n,rel:`noreferrer`,children:e.children}):(0,Q.jsx)(ii,{theme:{hoverColor:t.$4,color:t.$3},type:`button`,onClick:e.onClick,onChange:e.onChange,className:n,children:e.children})}export{Qr as a,Wr as c,Fn as d,fe as f,ti as i,In as l,ri as n,Jr as o,pe as p,ni as r,Gr as s,si as t,Pn as u};