1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee3155a4-f860-4161-9fe7-df63ca219e66",e._sentryDebugIdIdentifier="sentry-dbid-ee3155a4-f860-4161-9fe7-df63ca219e66")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9762],{5762:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(78801),o=n(7620),a=(0,r.F)("close_icon_label_a11y",function(){return o.createElement("path",{d:"M7.11641 8.00054L3.55835 4.44248L4.44223 3.55859L8.00029 7.11665L11.5575 3.55945L12.4414 4.44333L8.88418 8.00054L12.4414 11.5577L11.5575 12.4416L8.00029 8.88442L4.44223 12.4425L3.55835 11.5586L7.11641 8.00054Z"})},function(){return o.createElement("path",{d:"M11.9999 13.237L6.61866 18.6183L5.38123 17.3809L10.7625 11.9996L5.38123 6.6183L6.61866 5.38086L11.9999 10.7621L17.3812 5.38086L18.6187 6.6183L13.2374 11.9996L18.6187 17.3809L17.3812 18.6183L11.9999 13.237Z"})})},6934:(e,t,n)=>{n.d(t,{t:()=>m});var r=n(40683),o=n(32016),a=n(14748),i=n(97867),l=n(85710),s=n(5762),u=n(7620),c=n(43988);let d=(0,a.F)(["z-1","items-center","justify-center","flex-auto","transition-all","ease-spring","duration-moderate","group-enabled:group-hover:motion-safe:scale-110","[&_svg]:w-full","[&_svg]:h-full"],{variants:{size:{large:["w-[theme(fontSize.150)]","h-[theme(fontSize.150)]"],default:["w-[theme(fontSize.100)]","h-[theme(fontSize.100)]"],compact:["w-[theme(fontSize.100)]","h-[theme(fontSize.100)]"]}},defaultVariants:{size:"default"}}),f=({children:e,size:t="default",status:n})=>{let o=(0,c.c3)("ragnar.button"),a=d({size:t});return u.createElement("span",{className:(0,r.i)("relative","flex","flex-col","items-start","min-w-0","min-h-0","w-auto",a)},"error"===n&&u.createElement(s.w,{color:"currentColor","aria-label":o("button_error_icon_a11y")}),"success"===n&&u.createElement(l.S,{color:"currentColor","aria-label":o("button_success_icon_a11y")}),"loading"===n&&u.createElement(i.h,{color:"currentColor","aria-label":o("button_loading_icon_a11y")}),!n&&e)},p=(0,a.F)([],{variants:{variant:{primary:["bg-button-bg-primary","text-on-primary","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-primary-hover","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-primary-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-primary-active","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-primary-active"],primaryReverse:["bg-button-bg-primary-reverse","text-text","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-primary-reverse-active","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-primary-reverse-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-primary-reverse-active","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-primary-reverse-hover"],secondary:["text-text","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-secondary-active","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-secondary-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-secondary-active","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-secondary-hover"],tertiary:["bg-button-bg-tertiary","text-text","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-tertiary-active","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-tertiary-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-tertiary-active","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-tertiary-hover"],outline:["bg-bg","text-text","[&:enabled]:shadow-[inset_0_0_0_2px_theme(colors.text.DEFAULT)]","data-[has-status=true]:shadow-[inset_0_0_0_2px_theme(colors.text.DEFAULT)]","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-outline-active","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-outline-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-outline-active","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-outline-hover"],negativeWeak:["bg-button-bg-negative-weak","text-on-negative-weakest","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-negative-weak-hover","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-negative-weak-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-negative-weak-active","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-negative-weak-active"],brand:["bg-button-bg-brand","text-on-brand","[&:enabled]:data-[has-status=false]:hover:bg-button-bg-brand-hover","[&:enabled]:data-[has-status=false]:focus-visible:bg-button-bg-brand-hover","[&:enabled]:data-[has-status=false]:focus-visible:active:bg-button-bg-brand-active","[&:enabled]:data-[has-status=false]:hover:active:bg-button-bg-brand-active"]},borderRadius:{medium:["rounded-lg"],full:["rounded-full"]},size:{large:["p-[calc(--spacing(3)+2px)]"],default:["p-3"],compact:["p-2"]},status:{loading:[],success:["bg-button-bg-positive","text-on-positive"],error:["bg-button-bg-negative","text-on-negative"]}},defaultVariants:{borderRadius:"medium",size:"default",variant:"primary",status:null}}),m=(0,u.forwardRef)(({children:e,borderRadius:t,size:n,variant:a,disabled:i,className:l,...s},c)=>{let d=s?.status,m=d||void 0,h="success"===m||"error"===m,v=!!d,b=(0,r.a)(["group","items-center","justify-center","focus-visible:z-1","cursor-pointer","transition-[all,scale]","duration-[var(--duration-fast),var(--duration-moderate)]","ease-[var(--ease-snap),var(--ease-spring)]","enabled:active:motion-safe:scale-90","enabled:active:opacity-100","enabled:hover:opacity-100","disabled:cursor-not-allowed","disabled:opacity-100","disabled:hover:opacity-100","hover:opacity-100","[&:disabled]:data-[has-status=false]:bg-disabled-strong","[&:disabled]:data-[has-status=false]:hover:bg-disabled-strong","[&:disabled]:data-[has-status=false]:focus-visible:bg-disabled-strong","[&:disabled]:data-[has-status=false]:text-on-disabled-strong"]),g=p({variant:h?null:a,borderRadius:t,size:n,status:i?null:m});return u.createElement(o.t,{ref:c,disabled:v||i,"data-has-status":!i&&v,className:(0,r.a)(b,g,l),...s},u.createElement(f,{status:i?null:d,size:n},e))})}
1,8243:(e,t,n)=>{let r;n.d(t,{a:()=>th,i:()=>t_,n:()=>tk,r:()=>tA,t:()=>tN});var o,a=n(7620),i=n(54568),l=n(97509);let s=["top","right","bottom","left"],u=Math.min,c=Math.max,d=Math.round,f=Math.floor,p=e=>({x:e,y:e}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function h(e,t){return"function"==typeof e?e(t):e}function v(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function w(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let E=["left","right"],C=["right","left"],S=["top","bottom"],R=["bottom","top"];function L(e){let t=v(e);return m[t]+e.slice(t.length)}function P(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function O(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function _(e,t,n){let r,{reference:o,floating:a}=e,i=w(t),l=g(w(t)),s=y(l),u=v(t),c="y"===i,d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[s]/2-a[s]/2;switch(u){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-a.width,y:f};break;default:r={x:o.x,y:o.y}}switch(b(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}async function N(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=P(p),v=l[f?"floating"===d?"reference":"floating":d],b=O(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(v)))||n?v:v.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},x=O(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:s}):g);return{top:(b.top-x.top+m.top)/w.y,bottom:(x.bottom-b.bottom+m.bottom)/w.y,left:(b.left-x.left+m.left)/w.x,right:(x.right-b.right+m.right)/w.x}}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:N},s=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=_(u,r,s),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:v,fn:b}=h,{x:g,y:y,data:w,reset:x}=await b({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,m[v]={...m[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:d}=_(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:m}};function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return s.some(t=>e[t]>=0)}let M=new Set(["left","top"]);async function T(e,t){let{placement:n,platform:r,elements:o}=e,a=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=v(n),l=b(n),s="y"===w(n),u=M.has(i)?-1:1,c=a&&s?-1:1,d=h(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function D(){return"u">typeof window}function F(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return!!D()&&(e instanceof Node||e instanceof $(e).Node)}function z(e){return!!D()&&(e instanceof Element||e instanceof $(e).Element)}function V(e){return!!D()&&(e instanceof HTMLElement||e instanceof $(e).HTMLElement)}function B(e){return!(!D()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $(e).ShadowRoot)}function H(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Z(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let U=/transform|translate|scale|rotate|perspective|filter/,Y=/paint|layout|strict|content/,X=e=>!!e&&"none"!==e;function K(e){let t=z(e)?J(e):e;return X(t.transform)||X(t.translate)||X(t.scale)||X(t.rotate)||X(t.perspective)||!q()&&(X(t.backdropFilter)||X(t.filter))||U.test(t.willChange||"")||Y.test(t.contain||"")}function q(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function G(e){return/^(html|body|#document)$/.test(F(e))}function J(e){return $(e).getComputedStyle(e)}function Q(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===F(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||I(e);return B(t)?t.host:t}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ee(t);return G(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&H(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=$(o);if(!a)return t.concat(o,et(o,[],n));{let e=en(i);
1return t.concat(i,i.visualViewport||[],H(o)?o:[],e&&n?et(e):[])}}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function er(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=V(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=d(n)!==a||d(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function eo(e){return z(e)?e:e.contextElement}function ea(e){let t=eo(e);if(!V(t))return p(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:a}=er(t),i=(a?d(n.width):n.width)/r,l=(a?d(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let ei=p(0);function el(e){let t=$(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function es(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),i=eo(e),l=p(1);t&&(r?z(r)&&(l=ea(r)):l=ea(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===$(i))&&o)?el(i):p(0),u=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,d=a.width/l.x,f=a.height/l.y;if(i){let e=$(i),t=r&&z(r)?$(r):r,n=e,o=en(n);for(;o&&r&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=J(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=i,o=en(n=$(o))}}return O({width:d,height:f,x:u,y:c})}function eu(e,t){let n=Q(e).scrollLeft;return t?t.left+n:es(I(e)).left+n}function ec(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eu(e,n),y:n.top+t.scrollTop}}function ed(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=$(e),r=I(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;let e=q();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let u=eu(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else u<=25&&(a+=u);return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t){let t,n,a,i,l,s,u;r=I(e),t=I(r),n=Q(r),a=r.ownerDocument.body,i=c(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=c(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-n.scrollLeft+eu(r),u=-n.scrollTop,"rtl"===J(a).direction&&(s+=c(t.clientWidth,a.clientWidth)-i),o={width:i,height:l,x:s,y:u}}else if(z(t)){let e,r,a,i;r=(e=es(t,!0,"fixed"===n)).top+t.clientTop,a=e.left+t.clientLeft,i=V(t)?ea(t):p(1),o={width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:a*i.x,y:r*i.y}}else{let n=el(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return O(o)}function ef(e){return"static"===J(e).position}function ep(e,t){if(!V(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function em(e,t){var n;let r=$(e);if(Z(e))return r;if(!V(e)){let t=ee(e);for(;t&&!G(t);){if(z(t)&&!ef(t))return t;t=ee(t)}return r}let o=ep(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(F(n)))&&ef(o);)o=ep(o,t);return o&&G(o)&&ef(o)&&!K(o)?r:o||function(e){let t=ee(e);for(;V(t)&&!G(t);){if(K(t))return t;if(Z(t))break;t=ee(t)}return null}(e)||r}let eh=async function(e){let t=this.getOffsetParent||em,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=V(t),o=I(t),a="fixed"===n,i=es(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=p(0);if(r||!r&&!a)if(("body"!==F(t)||H(o))&&(l=Q(t)),r){let e=es(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eu(o));a&&!r&&o&&(s.x=eu(o));let u=!o||r||a?p(0):ec(o,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a="fixed"===o,i=I(r),l=!!t&&Z(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=p(1),c=p(0),d=V(r);if((d||!d&&!a)&&(("body"!==F(r)||H(i))&&(s=Q(r)),d)){let e=es(r);u=ea(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!i||d||a?p(0):ec(i,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=et(e,[],!1).filter(e=>z(e)&&"body"!==F(e)),o=null,a="fixed"===J(e).position,i=a?ee(e):e;for(;z(i)&&!G(i);){let t=J(i),n=K(i);n||"fixed"!==t.position||(o=null),(a?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||H(i)&&!n&&function e(t,n){let r=ee(t);return!(r===n||!z(r)||G(r))&&("fixed"===J(r).position||e(r,n))}(e,i)))?o=t:r=r.filter(e=>e!==i),i=ee(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=ed(t,a[0],o),l=i.top,s=i.right,d=i.bottom,f=i.left;for(let e=1;e<a.length;e++){let n=ed(t,a[e],o);l=c(n.top,l),s=u(n.right,s),d=u(n.bottom,d),f=c(n.left,f)}return{width:s-f,height:d-l,x:f,y:l}},getOffsetParent:em,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:ea,isElement:z,isRTL:function(e){return"rtl"===J(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let p=P(f),m={x:n,y:r},v=g(w(o)),x=y(v),E=await i.getDimensions(d),C="y"===v,S=C?"clientHeight":"clientWidth",R=a.reference[x]+a.reference[v]-m[v]-a.floating[x],L=m[v]-a.reference[v],O=await (null==i.getOffsetParent?void 0:i.getOffsetParent(d)),_=O?O[S]:0;_&&await (null==i.isElement?void 0:i.isElement(O))||(_=l.floating[S]||a.floating[x]);let N=_/2-E[x]/2-1,A=u(p[C?"top":"left"],N),k=u(p[C?"bottom":"right"],N),j=_-E[x]-k,M=_/2-E[x]/2+(R/2-L/2),T=c(A,u(M,j)),D=!s.arrow&&null!=b(o)&&M!==T&&a.reference[x]/2-(M<A?A:k)-E[x]/2<0,F=D?M<A?M-A:M-j:0;return{[v]:m[v]+F,data:{[v]:T,centerOffset:M-T-F,...D&&{alignmentOffset:F}},reset:D}}});var ey="u">typeof document?a.useLayoutEffect:function(){};function ew(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ew(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ew(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){let n=ex(e);return Math.round(t*n)/n}function eC(e){let t=a.useRef(e);return ey(()=>{t.current=e}),t}var eS=Object.defineProperty,eR=(e,t)=>eS(e,"name",{value:t,configurable:!0});function eL(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eP(...e){return t=>{let n=!1,r=e.map(e=>{let r=eL(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():eL(e[t],null)}}}}function eO(...e){return a.useCallback(eP(...e),e)}eR(eL,"setRef"),eR(eP,"composeRefs"),eR(eO,"useComposedRefs");var e_=Object.defineProperty,eN=(e,t)=>e_(e,"name",{value:t,configurable:!0});function eA(e){let t=a.forwardRef((t,n)=>{let{children:r,...o}=t,i=null,l=!1,s=[];e$(r)&&"function"==typeof eV&&(r=eV(r._payload)),a.Children.forEach(r,e=>{if(eD(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;e$(t)&&"function"==typeof eV&&(t=eV(t._payload)),i=ej(e,t),s.push(i?.props?.children)}else s.push(e)}),i?i=a.cloneElement(i,void 0,s):!l&&1===a.Children.count(r)&&a.isValidElement(r)&&(i=r);let u=i?eT(i):void 0,c=eO(n,u);if(!i){if(r||0===r)throw Error(l?ez(e):eW(e));return r}let d=eM(o,i.props??{});return i.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}eN(eA,"createSlot");var ek=Symbol.for("radix.slottable");eN(function(e){let t=eN(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ek,t},"createSlottable");var ej=eN((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function eM(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function eT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function eD(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ek}eN(eM,"mergeProps"),eN(eT,"getElementRef"),eN(eD,"isSlottable");var eF=Symbol.for("react.lazy");function e$(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===eF&&"_payload"in e&&eI(e._payload)}function eI(e){return"object"==typeof e&&null!==e&&"then"in e}eN(e$,"isLazyComponent"),eN(eI,"isPromiseLike");var eW=eN(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ez=eN(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),eV=(o||(o=n.t(a,2)))[" use ".trim().toString()],eB=Object.defineProperty,eH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=eA(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});eB(function(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var eZ=Object.defineProperty,eU=a.forwardRef(eZ(function(e,t){let{children:n,width:r=10,height:o=5,...a}=e;return(0,i.jsx)(eH.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),eY=Object.defineProperty,eX=(e,t)=>eY(e,"name",{value:t,configurable:!0});function eK(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eq(...e){return t=>{let n=!1,r=e.map(e=>{let r=eK(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():eK(e[t],null)}}}}function eG(...e){return a.useCallback(eq(...e),e)}eX(eK,"setRef"),eX(eq,"composeRefs"),eX(eG,"useComposedRefs");var eJ=Object.defineProperty,eQ=(e,t)=>eJ(e,"name",{value:t,configurable:!0});function e0(e,t=[]){let n=[];function r(t,r){let o=a.createContext(r);o.displayName=t+"Context";let l=n.length;n=[...n,r];let s=eQ(t=>{let{scope:n,children:r,...s}=t,u=n?.[e]?.[l]||o,c=a.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:r})},"Provider");function u(n,i,s={}){let{optional:c=!1}
1=s,d=i?.[e]?.[l]||o,f=a.useContext(d);if(f)return f;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return s.displayName=t+"Provider",eQ(u,"useContext"),[s,u]}eQ(r,"createContext");let o=eQ(()=>{let t=n.map(e=>a.createContext(e));return eQ(function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,e1(o,...t)]}function e1(...e){let t=e[0];if(1===e.length)return t;let n=eQ(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return eQ(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}eQ(function(e,t){let n=a.createContext(t);n.displayName=e+"Context";let r=eQ(e=>{let{children:t,...r}=e,o=a.useMemo(()=>r,Object.values(r));return(0,i.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,i={}){let{optional:l=!1}=i,s=a.useContext(n);if(s)return s;if(void 0!==t)return t;if(!l)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",eQ(o,"useContext"),[r,o]},"createContext"),eQ(e0,"createContextScope"),eQ(e1,"composeContextScopes");var e2=Object.defineProperty,e4=(e,t)=>e2(e,"name",{value:t,configurable:!0});function e5(e){let t=a.forwardRef((t,n)=>{let{children:r,...o}=t,i=null,l=!1,s=[];tt(r)&&"function"==typeof ta&&(r=ta(r._payload)),a.Children.forEach(r,e=>{if(e9(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;tt(t)&&"function"==typeof ta&&(t=ta(t._payload)),i=e6(e,t),s.push(i?.props?.children)}else s.push(e)}),i?i=a.cloneElement(i,void 0,s):!l&&1===a.Children.count(r)&&a.isValidElement(r)&&(i=r);let u=i?e7(i):void 0,c=eG(n,u);if(!i){if(r||0===r)throw Error(l?to(e):tr(e));return r}let d=e3(o,i.props??{});return i.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}e4(e5,"createSlot");var e8=Symbol.for("radix.slottable");e4(function(e){let t=e4(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=e8,t},"createSlottable");var e6=e4((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function e3(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function e7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function e9(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===e8}e4(e3,"mergeProps"),e4(e7,"getElementRef"),e4(e9,"isSlottable");var te=Symbol.for("react.lazy");function tt(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===te&&"_payload"in e&&tn(e._payload)}function tn(e){return"object"==typeof e&&null!==e&&"then"in e}e4(tt,"isLazyComponent"),e4(tn,"isPromiseLike");var tr=e4(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),to=e4(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ta=(o||(o=n.t(a,2)))[" use ".trim().toString()],ti=Object.defineProperty,tl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=e5(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ts(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}ti(function(e,t){e&&l.flushSync(()=>
1e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(ts,"name",{value:"useCallbackRef",configurable:!0});var tu=globalThis?.document?a.useLayoutEffect:()=>{};function tc(e){let[t,n]=a.useState(void 0);return tu(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(tc,"name",{value:"useSize",configurable:!0});var td=Object.defineProperty,tf=(e,t)=>td(e,"name",{value:t,configurable:!0}),tp="Popper",[tm,th]=e0(tp),[tv,tb]=tm(tp),tg=tf(e=>{let{__scopePopper:t,children:n}=e,[r,o]=a.useState(null),[l,s]=a.useState(void 0);return(0,i.jsx)(tv,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:s,children:n})},"Popper"),ty=a.forwardRef(tf(function(e,t){let{__scopePopper:n,virtualRef:r,...o}=e,l=tb("PopperAnchor",n),s=a.useRef(null),u=l.onAnchorChange,c=eG(t,a.useCallback(e=>{s.current=e,e&&u(e)},[u])),d=a.useRef(null);a.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&u(d.current)});let f=l.placementState&&tO(l.placementState),p=f?.[0],m=f?.[1];return r?null:(0,i.jsx)(tl.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...o,ref:c})},"PopperAnchor")),tw="PopperContent",[tx,tE]=tm(tw),tC=a.forwardRef(tf(function(e,t){var n,r,o,s,d,p,m,P,O,_,N,D,F;let $,W,z,V,B,H,{__scopePopper:Z,side:U="bottom",sideOffset:Y=0,align:X="center",alignOffset:K=0,arrowPadding:q=0,avoidCollisions:G=!0,collisionBoundary:J=[],collisionPadding:Q=0,sticky:ee="partial",hideWhenDetached:en=!1,updatePositionStrategy:er="optimized",onPlaced:ea,...ei}=e,el=tb(tw,Z),[eu,ec]=a.useState(null),ed=eG(t,ec),[ef,ep]=a.useState(null),em=tc(ef),eh=em?.width??0,eS=em?.height??0,eR="number"==typeof Q?Q:{top:0,right:0,bottom:0,left:0,...Q},eL=Array.isArray(J)?J:[J],eP=eL.length>0,eO={padding:eR,boundary:eL.filter(tL),altBoundary:eP},{refs:e_,floatingStyles:eN,placement:eA,isPositioned:ek,middlewareData:ej}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=a.useState(r);ew(m,r)||h(r);let[v,b]=a.useState(null),[g,y]=a.useState(null),w=a.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),x=a.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),E=i||v,C=s||g,S=a.useRef(null),R=a.useRef(null),L=a.useRef(f),P=null!=c,O=eC(c),_=eC(o),N=eC(d),k=a.useCallback(()=>{var e,r;let o,a,i;if(!S.current||!R.current)return;let s={placement:t,strategy:n,middleware:m};_.current&&(s.platform=_.current),(e=S.current,r=R.current,o=new Map,i={...(a={platform:ev,...s}).platform,_c:o},A(e,r,{...a,platform:i})).then(e=>{let t={...e,isPositioned:!1!==N.current};j.current&&!ew(L.current,t)&&(L.current=t,l.flushSync(()=>{p(t)}))})},[m,t,n,_,N]);ey(()=>{!1===d&&L.current.isPositioned&&(L.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let j=a.useRef(!1);ey(()=>(j.current=!0,()=>{j.current=!1}),[]),ey(()=>{if(E&&(S.current=E),C&&(R.current=C),E&&C){if(O.current)return O.current(E,C,k);k()}},[E,C,k,O,P]);let M=a.useMemo(()=>({reference:S,floating:R,setReference:w,setFloating:x}),[w,x]),T=a.useMemo(()=>({reference:E,floating:C}),[E,C]),D=a.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=eE(T.floating,f.x),r=eE(T.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ex(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,T.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:k,refs:M,elements:T,floatingStyles:D}),[f,k,M,T,D])}({strategy:"fixed",placement:U+("center"!==X?"-"+X:""),whileElementsMounted:tf((...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=eo(e),m=a||i?[...p?et(p):[],...t?et(t):[]]:[];
1m.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let h=p&&s?function(e,t){let n,r=null,o=I(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:v}=d;if(l||t(),!h||!v)return;let b={rootMargin:-f(m)+"px "+-f(o.clientWidth-(p+h))+"px "+-f(o.clientHeight-(m+v))+"px "+-f(p)+"px",threshold:c(0,u(1,s))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==s){if(!g)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||eb(d,e.getBoundingClientRect())||i(),g=!1}try{r=new IntersectionObserver(y,{...b,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,b)}r.observe(e)}(!0),a}(p,n):null,v=-1,b=null;l&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&b&&t&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!d&&b.observe(p),t&&b.observe(t));let g=d?es(e):null;return d&&function t(){let r=es(e);g&&!eb(g,r)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),h?.(),null==(e=b)||e.disconnect(),b=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===er}),"whileElementsMounted"),elements:{reference:el.anchor},middleware:[{name:($={name:"offset",options:r=n={mainAxis:Y+eS,alignmentAxis:K},async fn(e){var t,n;let{x:o,y:a,placement:i,middlewareData:l}=e,s=await T(e,r);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}).name,fn:$.fn,options:[n,void 0]},G&&{name:(W={name:"shift",options:d=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===ee?{fn:(o=void 0,{options:o={},fn(e){let{x:t,y:n,placement:r,rects:a,middlewareData:i}=e,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=h(o,e),c={x:t,y:n},d=w(r),f=g(d),p=c[f],m=c[d],b=h(l,e),y="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+y.mainAxis,n=a.reference[f]+a.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var x,E;let e="y"===f?"width":"height",t=M.has(v(r)),n=a.reference[d]-a.floating[e]+(t&&(null==(x=i.offset)?void 0:x[d])||0)+(t?0:y.crossAxis),o=a.reference[d]+a.reference[e]+(t?0:(null==(E=i.offset)?void 0:E[d])||0)-(t?y.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[f]:p,[d]:m}}}).fn,options:[void 0,void 0]}:void 0,...eO},async fn(e){let{x:t,y:n,placement:r,platform:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=h(d,e),f={x:t,y:n},p=await o.detectOverflow(e,s),m=w(v(r)),b=g(m),y=f[b],x=f[m];if(a){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",n=y+p[e],r=y-p[t];y=c(n,u(y,r))}if(i){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=x+p[e],r=x-p[t];x=c(n,u(x,r))}let E=l.fn({...e,[b]:y,[m]:x});return{...E,data:{x:E.x-t,y:E.y-n,enabled:{[b]:a,[m]:i}}}}}).name,fn:W.fn,options:[s,void 0]},G&&{name:(z={name:"flip",options:m=p={...eO},async fn(e){var t,n,r,o,a,i,l,s;let u,c,d,{placement:f,middlewareData:p,rects:P,initialPlacement:O,platform:_,elements:N}=e,{mainAxis:A=!0,crossAxis:k=!0,fallbackPlacements:j,fallbackStrategy:M="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:D=!0,...F}=h(m,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let $=v(f),I=w(O),W=v(O)===O,z=await (null==_.isRTL?void 0:_.isRTL(N.floating)),V=j||(W||!D?[L(O)]:(u=L(O),[x(O),u,x(u)])),B="none"!==T;!j&&B&&V.push(...(c=b(O),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?C:E;return t?E:C;case"left":case"right":return t?S:R;default:return[]}}(v(O),"start"===T,z),c&&(d=d.map(e=>e+"-"+c),D&&(d=d.concat(d.map(x)))),d));let H=[O,...V],Z=await _.detectOverflow(e,F),U=[],Y=(null==(n=p.flip)?void 0:n.overflows)||[];if(A&&U.push(Z[$]),k){let e,t,n,r,o=(i=f,l=P,void 0===(s=z)&&(s=!1),e=b(i),n=y(t=g(w(i))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=L(r)),[r,L(r)]);U.push(Z[o[0]],Z[o[1]])}if(Y=[...Y,{placement:f,overflows:U}],!U.every(e=>e<=0)){let e=((null==(r=p.flip)?void 0:r.index)||0)+1,t=H[e];if(t&&("alignment"!==k||I===w(t)||Y.every(e=>w(e.placement)!==I||e.overflows[0]>0)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(o=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(M){case"bestFit":{let e=null==(a=Y.filter(e=>{if(B){let t=w(e.placement);return t===I||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=O}if(f!==n)return{reset:{placement:n}}}return{}}}).name,fn:z.fn,options:[p,void 0]},{name:(V={name:"size",options:O=P={...eO,apply:tf(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)},"apply")},async fn(e){var t,n;let r,o,{placement:a,rects:i,platform:l,elements:s}=e,{apply:d=()=>{},...f}=h(O,e),p=await l.detectOverflow(e,f),m=v(a),g=b(a),y="y"===w(a),{width:x,height:E}=i.floating;"top"===m||"bottom"===m?(r=m,o=g===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(o=m,r="end"===g?"top":"bottom");let C=E-p.top-p.bottom,S=x-p.left-p.right,R=u(E-p[r],C),L=u(x-p[o],S),P=!e.middlewareData.shift,_=R,N=L;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(N=S),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(_=C),P&&!g){let e=c(p.left,0),t=c(p.right,0),n=c(p.top,0),r=c(p.bottom,0);y?N=x-2*(0!==e||0!==t?e+t:c(p.left,p.right)):_=E-2*(0!==n||0!==r?n+r:c(p.top,p.bottom))}await d({...e,availableWidth:N,availableHeight:_});let A=await l.getDimensions(s.floating);return x!==A.width||E!==A.height?{reset:{rects:!0}}:{}}}).name,fn:V.fn,options:[P,void 0]},ef&&{name:(B={name:"arrow",options:N=_={element:ef,padding:q},fn(e){let{element:t,padding:n}="function"==typeof N?N(e):N;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eg({element:t.current,padding:n}).fn(e):{}:t?eg({element:t,padding:n}).fn(e):{}}}).name,fn:B.fn,options:[_,void 0]},tP({arrowWidth:eh,arrowHeight:eS}),en&&{name:(H={name:"hide",options:F=D={strategy:"referenceHidden",...eO,boundary:eP?eO.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...o}=h(F,e);switch(r){case"referenceHidden":{let r=k(await n.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:j(r)}}}case"escaped":{let r=k(await n.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:j(r)}}}default:return{}}}}).name,fn:H.fn,options:[D,void 0]}]}),eM=el.setPlacementState;tu(()=>(eM(eA),()=>{eM(void 0)}),[eA,eM]);let[eT,eD]=tO(eA),eF=ts(ea);tu(()=>{ek&&eF?.()},[ek,eF]);let e$=ej.arrow?.x,eI=ej.arrow?.y,eW=ej.arrow?.centerOffset!==0,[ez,eV]=a.useState();return tu(()=>{eu&&eV(window.getComputedStyle(eu).zIndex)},[eu]),(0,i.jsx)("div",{ref:e_.setFloating,"data-radix-popper-content-wrapper":"",style:{...eN,transform:ek?eN.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ez,"--radix-popper-transform-origin":[ej.transformOrigin?.x,ej.transformOrigin?.y].join(" "),...ej.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(tx,{scope:Z,placedSide:eT,placedAlign:eD,onArrowChange:ep,arrowX:e$,arrowY:eI,shouldHideArrow:eW,children:(0,i.jsx)(tl.div,{"data-side":eT,"data-align":eD,...ei,ref:ed,style:{...ei.style,animation:ek?ei.style?.animation:"none"}})})})},"PopperContent")),tS={top:"bottom",right:"left",bottom:"top",left:"right"},tR=a.forwardRef(tf(function(e,t){let{__scopePopper:n,...r}=e,o=tE("PopperArrow",n),a=tS[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(eU,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function tL(e){return null!==e}tf(tL,"isNotNull");var tP=tf(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[s,u]=tO(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=a?c:`${d}px`,m=`${-l}px`):"top"===s?(p=a?c:`${d}px`,m=`${r.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=a?c:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,m=a?c:`${f}px`),{data:{x:p,y:m}}}}),"transformOrigin");function tO(e){let[t,n="center"]=e.split("-");return[t,n]}tf(tO,"getSideAndAlignFromPlacement");var t_=tg,tN=ty,tA=tC,tk=tR},20576:(e,t,n)=>{n.d(t,{q:()=>a});var r=n(78801),o=n(7620),a=(0,r.F)("link_icon_label_a11y",function(){return o.createElement("path",{d:"M7.82252 2.33501C9.43587 0.721661 12.0516 0.721663 13.665 2.33502L13.223 2.77696L13.665 2.33502C15.2783 3.94837 15.2783 6.56413 13.665 8.17748L12.0094 9.8331L11.1255 8.94921L12.7811 7.2936C13.9063 6.1684 13.9063 4.3441 12.7811 3.2189C11.6559 2.0937 9.8316 2.0937 8.7064 3.2189L7.00875 4.91655L6.12487 4.03267L7.82252 2.33501ZM10.6919 6.19194L6.19194 10.6919L5.30806 9.80806L9.80806 5.30806L10.6919 6.19194ZM4.86641 7.05889L3.2189 8.7064C2.0937 9.8316 2.0937 11.6559 3.2189 12.7811C4.3441 13.9063 6.1684 13.9063 7.2936 12.7811L8.99184 11.0829L9.87572 11.9667L8.17748 13.665C6.56413 15.2783 3.94837 15.2783 2.33501 13.665C0.721661 12.0516 0.721663 9.43587 2.33502 7.82252L3.98253 6.17501L4.86641 7.05889Z"})},function(){return o.createElement("path",{d:"M11.8059 4.34322C13.9927 2.15643 17.5382 2.15643 19.725 4.34322C21.9118 6.53002 21.9118 10.0755 19.725 12.2623L17.4941 14.4932L16.2567 13.2558L18.4876 11.0249C19.991 9.52149 19.991 7.08404 18.4876 5.58066C16.9842 4.07728 14.5468 4.07728 13.0434 5.58066L10.7558 7.86823L9.51837 6.63079L11.8059 4.34322ZM15.6187 9.61872L9.61872 15.6187L8.38128 14.3813L14.3813 8.38128L15.6187 9.61872ZM7.86902 10.755L5.64902 12.975C4.14564 14.4784 4.14564 16.9159 5.64902 18.4192C7.15239 19.9226 9.58985 19.9226 11.0932 18.4192L13.3816 16.1309L14.619 17.3683L12.3307 19.6567C10.1439 21.8435 6.59837 21.8435 4.41158 19.6567C2.22478 17.4699 2.22479 13.9244 4.41158 11.7376L6.63159 9.51758L7.86902 10.755Z"})})},24941:(e,t,n)=>{n.d(t,{t:()=>l});var r=n(26333),o=n(7620),a=n(54568),i=n(97509),l=o.forwardRef((e,t)=>
1{let{container:n,...l}=e,[s,u]=o.useState(!1);(0,r.o)(()=>u(!0),[]);let c=n||s&&globalThis?.document?.body;return c?i.createPortal((0,a.jsx)(r.t.div,{...l,ref:t}),c):null});l.displayName="Portal"},26333:(e,t,n)=>{n.d(t,{a:()=>u,i:()=>f,n:()=>w,o:()=>l,r:()=>c,t:()=>y});var r,o=n(7620),a=n(54568),i=n(97509),l=globalThis?.document?o.useLayoutEffect:()=>{};function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():s(e[t],null)}}}}(...e),e)}function c(e){let t=o.forwardRef((t,n)=>{var r;let a,i,{children:l,...s}=t,c=null,f=!1,m=[];h(l)&&"function"==typeof g&&(l=g(l._payload)),o.Children.forEach(l,e=>{var t;if(t=e,o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===d){f=!0;let t="child"in e.props?e.props.child:e.props.children;h(t)&&"function"==typeof g&&(t=g(t._payload)),c=p(e,t),m.push(c?.props?.children)}else m.push(e)}),c?c=o.cloneElement(c,void 0,m):!f&&1===o.Children.count(l)&&o.isValidElement(l)&&(c=l);let y=c?(r=c,(i=(a=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?r.ref:(i=(a=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,w=u(n,y);if(!c){if(l||0===l)throw Error(f?b(e):v(e));return l}let x=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(s,c.props??{});return c.type!==o.Fragment&&(x.ref=n?w:y),o.cloneElement(c,x)});return t.displayName=`${e}.Slot`,t}var d=Symbol.for("radix.slottable");function f(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=d,t}var p=(e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},m=Symbol.for("react.lazy");function h(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===m&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var v=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,b=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,g=(r||(r=n.t(o,2)))[" use ".trim().toString()],y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=c(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function w(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},37470:(e,t,n)=>{n.d(t,{i:()=>v,n:()=>eu,r:()=>Z,t:()=>eX});
1var r,o,a,i,l,s,u,c,d=n(7620),f=n(54568),p=n(97509),m=0,h=null;function v(){d.useEffect(()=>{h||(h={start:b(),end:b()});let{start:e,end:t}=h;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),m++,()=>{1===m&&(h?.start.remove(),h?.end.remove(),h=null),m=Math.max(0,m-1)}},[])}function b(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var g=Object.defineProperty,y=(e,t)=>g(e,"name",{value:t,configurable:!0});function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let n=!1,r=e.map(e=>{let r=w(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():w(e[t],null)}}}}function E(...e){return d.useCallback(x(...e),e)}y(w,"setRef"),y(x,"composeRefs"),y(E,"useComposedRefs");var C=Object.defineProperty,S=(e,t)=>C(e,"name",{value:t,configurable:!0});function R(e){let t=d.forwardRef((t,n)=>{let{children:r,...o}=t,a=null,i=!1,l=[];k(r)&&"function"==typeof D&&(r=D(r._payload)),d.Children.forEach(r,e=>{if(N(e)){i=!0;let t="child"in e.props?e.props.child:e.props.children;k(t)&&"function"==typeof D&&(t=D(t._payload)),a=P(e,t),l.push(a?.props?.children)}else l.push(e)}),a?a=d.cloneElement(a,void 0,l):!i&&1===d.Children.count(r)&&d.isValidElement(r)&&(a=r);let s=a?_(a):void 0,u=E(n,s);if(!a){if(r||0===r)throw Error(i?T(e):M(e));return r}let c=O(o,a.props??{});return a.type!==d.Fragment&&(c.ref=n?u:s),d.cloneElement(a,c)});return t.displayName=`${e}.Slot`,t}S(R,"createSlot");var L=Symbol.for("radix.slottable");S(function(e){let t=S(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=L,t},"createSlottable");var P=S((e,t)=>{if("child"in e.props){let t=e.props.child;return d.isValidElement(t)?d.cloneElement(t,void 0,e.props.children(t.props.children)):null}return d.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function O(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function _(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function N(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===L}S(O,"mergeProps"),S(_,"getElementRef"),S(N,"isSlottable");var A=Symbol.for("react.lazy");function k(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===A&&"_payload"in e&&j(e._payload)}function j(e){return"object"==typeof e&&null!==e&&"then"in e}S(k,"isLazyComponent"),S(j,"isPromiseLike");var M=S(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),T=S(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),D=(u||(u=n.t(d,2)))[" use ".trim().toString()],F=Object.defineProperty,$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=R(`Primitive.${t}`),r=d.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function I(e){let t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...e)=>t.current?.(...e),[])}F(function(e,t){e&&p.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(I,"name",{value:"useCallbackRef",configurable:!0});var W=Object.defineProperty,z=(e,t)=>W(e,"name",{value:t,configurable:!0}),V="focusScope.autoFocusOnMount",B="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},Z=d.forwardRef(z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}
1=e,[l,s]=d.useState(null),u=I(o),c=I(a),p=d.useRef(null),m=E(t,s),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:J(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||J(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&J(l)};z(e,"handleFocusIn"),z(t,"handleFocusOut"),z(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,l,h.paused]),d.useEffect(()=>{if(l){Q.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(V,H);l.addEventListener(V,u),l.dispatchEvent(t),t.defaultPrevented||(U(en(X(l)),{select:!0}),document.activeElement===e&&J(l))}return()=>{l.removeEventListener(V,u),setTimeout(()=>{let t=new CustomEvent(B,H);l.addEventListener(B,c),l.dispatchEvent(t),t.defaultPrevented||J(e??document.body,{select:!0}),l.removeEventListener(B,c),Q.remove(h)},0)}}},[l,u,c,h]);let v=d.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=Y(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&J(a,{select:!0})):(e.preventDefault(),n&&J(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,f.jsx)($.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})},"FocusScope"));function U(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(J(r,{select:t}),document.activeElement!==n)return}function Y(e){let t=X(e);return[K(t,e),K(t.reverse(),e)]}function X(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:z(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function K(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):q(r,{upTo:t})))return r}function q(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function G(e){return e instanceof HTMLInputElement&&"select"in e}function J(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G(e)&&t&&e.select()}}z(U,"focusFirst"),z(Y,"getTabbableEdges"),z(X,"getTabbableCandidates"),z(K,"findVisible"),z(q,"isHidden"),z(G,"isSelectableInput"),z(J,"focus");var Q=ee();function ee(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=et(e,t)).unshift(t)},remove(t){e=et(e,t),e[0]?.resume()}}}function et(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function en(e){return e.filter(e=>"A"!==e.tagName)}z(ee,"createFocusScopesStack"),z(et,"arrayRemove"),z(en,"removeLinks");var er=new WeakMap,eo=new WeakMap,ea={},ei=0,el=function(e){return e&&(e.host||el(e.parentNode))},es=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=el(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ea[n]||(ea[n]=new WeakMap);var a=ea[n],i=[],l=new Set,s=new Set(o),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(er.get(e)||0)+1,u=(a.get(e)||0)+1;er.set(e,s),a.set(e,u),i.push(e),1===s&&o&&eo.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
1return c(t),l.clear(),ei++,function(){i.forEach(function(e){var t=er.get(e)-1,o=a.get(e)-1;er.set(e,t),a.set(e,o),t||(eo.has(e)||e.removeAttribute(r),eo.delete(e)),o||e.removeAttribute(n)}),--ei||(er=new WeakMap,er=new WeakMap,eo=new WeakMap,ea={})}},eu=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),es(r,o,n,"aria-hidden")):function(){return null}},ec=function(){return(ec=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var ef="right-scroll-bar-position",ep="width-before-scroll-bar";function em(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eh="u">typeof window?d.useLayoutEffect:d.useEffect,ev=new WeakMap,eb=function(e){var t=e.sideCar,n=ed(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,ec({},n))};eb.isSideCarExport=!0;var eg=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),a=[],i=!1,l={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=o(e,i);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){i=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=ec({async:!0,ssr:!1},r),l),ey=function(){},ew=d.forwardRef(function(e,t){var n,r,o,a,i=d.useRef(null),l=d.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),s=l[0],u=l[1],c=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,b=e.sideCar,g=e.noRelative,y=e.noIsolation,w=e.inert,x=e.allowPinchZoom,E=e.as,C=e.gapMode,S=ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[i,t],r=function(e){return n.forEach(function(t){return em(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,eh(function(){var e=ev.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||em(e,null)}),r.forEach(function(e){t.has(e)||em(e,o)})}ev.set(a,n)},[n]),a),L=ec(ec({},S),s);return d.createElement(d.Fragment,null,h&&d.createElement(b,{sideCar:eg,removeScrollBar:m,shards:v,noRelative:g,noIsolation:y,inert:w,setCallbacks:u,allowPinchZoom:!!x,lockRef:i,gapMode:C}),c?d.cloneElement(d.Children.only(f),ec(ec({},L),{ref:R})):d.createElement(void 0===E?"div":E,ec({},L,{className:p,ref:R}),f))});ew.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ew.classNames={fullWidth:ep,zeroRight:ef};var ex=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eE=function(){var e=ex();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eC=function(){var e=eE();return function(t){return e(t.styles,t.dynamic),null}},eS={left:0,top:0,right:0,gap:0},eR=function(e){return parseInt(e||"",10)||0},eL=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eR(n),eR(r),eR(o)]},eP=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eS;var t=eL(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eO=eC(),e_="data-scroll-locked",eN=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(e_,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(ef," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ep," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ef," .").concat(ef," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ep," .").concat(ep," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(e_,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},eA=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},ek=function(){d.useEffect(function(){return document.body.setAttribute(e_,(eA()+1).toString()),function(){var e=eA()-1;e<=0?document.body.removeAttribute(e_):document.body.setAttribute(e_,e.toString())}},[])},ej=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;ek();var a=d.useMemo(function(){return eP(o)},[o]);return d.createElement(eO,{styles:eN(a,!t,o,n?"":"!important")})},eM=!1;if("u">typeof window)try{var eT=Object.defineProperty({},"passive",{get:function(){return eM=!0,!0}});window.addEventListener("test",eT,eT),window.removeEventListener("test",eT,eT)}catch(e){eM=!1}var eD=!!eM&&{passive:!1},eF=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},e$=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eI(e,r)){var o=eW(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eI=function(e,t){return"v"===e?eF(t,"overflowY"):eF(t,"overflowX")},eW=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ez=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;do{if(!s)break;var m=eW(e,s),h=m[0],v=m[1]-m[2]-i*h;(h||v)&&eI(e,s)&&(f+=v,p+=h);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},eV=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eB=function(e){return[e.deltaX,e.deltaY]},eH=function(e){return e&&"current"in e?e.current:e},eZ=0,eU=[],eY=(s=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(eZ++)[0],a=d.useState(eC)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eH),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eV(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],u="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=e$(d,c);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=e$(d,c)),!m)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return ez(h,t,e,"h"===h?s:u,!0)},[]),s=d.useCallback(function(e){if(eU.length&&eU[eU.length-1]===a){var n="deltaY"in e?eB(e):eV(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
1if(!r){var o=(i.current.shards||[]).map(eH).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=d.useCallback(function(e){n.current=eV(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,eB(t),t.target,l(t,e.lockRef.current))},[]),p=d.useCallback(function(t){u(t.type,eV(t),t.target,l(t,e.lockRef.current))},[]);d.useEffect(function(){return eU.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,eD),document.addEventListener("touchmove",s,eD),document.addEventListener("touchstart",c,eD),function(){eU=eU.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,eD),document.removeEventListener("touchmove",s,eD),document.removeEventListener("touchstart",c,eD)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(ej,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},eg.useMedium(s),eb),eX=d.forwardRef(function(e,t){return d.createElement(ew,ec({},e,{ref:t,sideCar:eY}))});eX.classNames=ew.classNames},39016:(e,t,n)=>{n.d(t,{t:()=>o});var r=n(7620);let o=({children:e,id:t,as:n,...o})=>r.createElement(n||"span",{className:"sr-only",id:t,...o},e)},43834:(e,t,n)=>{n.d(t,{t:()=>o});let r={0:"var(--text-62-5)",1:"var(--text-87-5)",2:"var(--text-100)",3:"var(--text-125)",4:"var(--text-150)",5:"var(--text-175)",6:"var(--text-225)",7:"var(--text-250)",8:"var(--text-300)",9:"var(--text-400)"};function o(e,t){return{className:"w-(--ragnar-icon-size) h-(--ragnar-icon-size)",style:{"--ragnar-icon-size":"string"==typeof e?e:r[e]??`${e}px`,...t}}}},44044:(e,t,n)=>{n.d(t,{s:()=>l});var r=n(88861),o=n(68714),a=n(43834),i=n(7620);let l=({size:e=2,color:t="text",children:n,viewBox:l="0 0 16 16","aria-hidden":s,"aria-label":u,style:c})=>{let d=(0,o.t)(t);return i.createElement(r.t,{viewBox:l,"aria-hidden":s,"aria-label":u,...(0,a.t)(e,c)},i.createElement("g",{fill:d,fillRule:"evenodd",clipRule:"evenodd"},n))}},48904:(e,t,n)=>{n.d(t,{t:()=>a});var r=n(40683),o=n(7620);let a=(0,o.forwardRef)((e,t)=>{let{className:n,as:a="div",...i}=e;return o.createElement(a,{...i,ref:t,className:(0,r.i)(["flex","flex-col","flex-none","items-start","min-w-0","min-h-0","relative","w-auto"],n)})})},49075:(e,t,n)=>{n.d(t,{t:()=>s});var r,o=n(26333),a=n(7620),i=(r||(r=n.t(a,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function s(e){let[t,n]=a.useState(i());return(0,o.o)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},64643:(e,t,n)=>{n.d(t,{t:()=>a});var r=n(7620),o=n(54568);function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,a){let i=r.createContext(a);i.displayName=t+"Context";let l=n.length;n=[...n,a];let s=t=>{let{scope:n,children:a,...s}=t,u=n?.[e]?.[l]||i,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:a})};return s.displayName=t+"Provider",[s,function(n,o,s={}){let{optional:u=!1}=s,c=o?.[e]?.[l]||i,d=r.useContext(c);if(d)return d;if(void 0!==a)return a;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},65422:(e,t,n)=>{n.d(t,{a:()=>H,d:()=>I,i:()=>Z,l:()=>z,n:()=>U,o:()=>B,s:()=>V,u:()=>W});var r=n(40683),o=n(48904),a=n(64643),i=n(26333),l=n(87384),s=n(80797),u=n(49075),c=n(8243),d=n(24941),f=n(37470),p=n(7620),m=n(54568),h="Popover",[v,b]=(0,a.t)(h,[c.a]),g=(0,c.a)(),[y,w]=v(h),x=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=g(t),d=p.useRef(null),[f,v]=p.useState(!1),[b,w]=(0,l.t)({prop:r,defaultProp:o??!1,onChange:a,caller:h});return(0,m.jsx)(c.i,{...s,children:(0,m.jsx)(y,{scope:t,contentId:(0,u.t)(),triggerRef:d,open:b,onOpenChange:w,onOpenToggle:p.useCallback(()=>w(e=>!e),[w]),hasCustomAnchor:f,onCustomAnchorAdd:p.useCallback(()=>v(!0),[]),onCustomAnchorRemove:p.useCallback(()=>v(!1),[]),modal:i,children:n})})};x.displayName=h;var E="PopoverAnchor",C=p.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,o=w(E,n),a=g(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return p.useEffect(()=>(i(),()=>l()),[i,l]),(0,m.jsx)(c.t,{...a,...r,ref:t})});C.displayName=E;var S="PopoverTrigger",R=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=w(S,n),a=g(n),s=(0,i.a)(t,o.triggerRef),u=(0,m.jsx)(i.t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":$(o.open),...r,ref:s,onClick:(0,l.r)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,m.jsx)(c.t,{asChild:!0,...a,children:u})});R.displayName=S;var L="PopoverPortal",[P,O]=v(L,{forceMount:void 0}),_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=w(L,t);return(0,m.jsx)(P,{scope:t,forceMount:n,children:(0,m.jsx)(l.n,{present:n||a.open,children:(0,m.jsx)(d.t,{asChild:!0,container:o,children:r})})})};_.displayName=L;var N="PopoverContent",A=p.forwardRef((e,t)=>{let n=O(N,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=w(N,e.__scopePopover);return(0,m.jsx)(l.n,{present:r||a.open,children:a.modal?(0,m.jsx)(j,{...o,ref:t}):(0,m.jsx)(M,{...o,ref:t})})});A.displayName=N;var k=(0,i.r)("PopoverContent.RemoveScroll"),j=p.forwardRef((e,t)=>{let n=w(N,e.__scopePopover),r=p.useRef(null),o=(0,i.a)(t,r),a=p.useRef(!1);return p.useEffect(()=>{let e=r.current;if(e)return(0,f.n)(e)},[]),(0,m.jsx)(f.t,{as:k,allowPinchZoom:!0,children:(0,m.jsx)(T,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.r)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,l.r)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,l.r)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),M=p.forwardRef((e,t)=>{let n=w(N,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return(0,m.jsx)(T,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),T=p.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,...h}=e,v=w(N,n),b=g(n);return(0,f.i)(),(0,m.jsx)(f.r,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,m.jsx)(s.n,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,m.jsx)(c.r,{"data-state":$(v.open),role:"dialog",id:v.contentId,...b,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),D="PopoverClose";p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=w(D,n);return(0,m.jsx)(i.t.button,{type:"button",...r,ref:t,onClick:(0,l.r)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=D;var F=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e;return(0,m.jsx)(c.n,{...g(n),...r,ref:t})});function $(e){return e?"open":"closed"}F.displayName="PopoverArrow";let I=x,W=({className:e,...t})=>p.createElement(R,{asChild:!0,...t,className:(0,r.i)(e)}),z=e=>{let{className:t,...n}=e;return p.createElement(C,{asChild:!0,className:(0,r.i)(t),...n})},V=(0,p.forwardRef)(({className:e,...t},n)=>p.createElement(A,{ref:n,collisionPadding:16,arrowPadding:4,sideOffset:1,className:(0,r.i
1)(["flex","flex-col","items-stretch","max-w-[calc(100vw-(--spacing(4)))]","max-h-[calc(100vw-(--spacing(4)))]","sm:max-w-[calc(100vw-2*(--spacing(16)))]","sm:max-h-[calc(100vw-2*(--spacing(16)))]","min-w-[200px]","bg-surface-overlay","rounded-lg","[filter:drop-shadow(0px_0px_1px_var(--color-border))_drop-shadow(0_3px_15px_var(--palette-black-alpha-400))]","z-modal","focus:outline-none","data-[side=bottom]:motion-safe:animate-fade-in-bottom","data-[state=closed]:data-[side=bottom]:motion-safe:animate-fade-out-bottom","data-[side=top]:motion-safe:animate-fade-in-top","data-[state=closed]:data-[side=top]:motion-safe:animate-fade-out-top","data-[side=left]:motion-safe:animate-fade-in-left","data-[state=closed]:data-[side=left]:motion-safe:animate-fade-out-left","data-[side=right]:motion-safe:animate-fade-in-right","data-[state=closed]:data-[side=right]:motion-safe:animate-fade-out-right","motion-reduce:animate-fade-in","data-[state=closed]:motion-reduce:animate-fade-out"],e),"aria-labelledby":"ragnar-popover-title",...t})),B=_,H=(0,p.forwardRef)((e,t)=>{let{className:n,...o}=e;return p.createElement(F,{ref:t,className:(0,r.i)("fill-(--color-surface)",n),...o})}),Z=(0,p.forwardRef)(({withPortal:e=!0,showArrow:t=!0,children:n,...r},o)=>{let a=p.createElement(V,{ref:o,...r},t&&p.createElement(H,null),n);return e?p.createElement(B,null,a):a}),U=(0,p.forwardRef)(({className:e,...t},n)=>p.createElement(o.t,{ref:n,className:(0,r.a)("w-full flex-auto px-4 py-2 my-2 overflow-auto",e),...t}))},68714:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(68633),o=n(40683);let a=new Set(Object.keys(r.t.colors));function i(e){return"inherit"===e?"currentColor":a.has(e)?`var(--color-${(0,o.r)(e)})`:e}},78801:(e,t,n)=>{n.d(t,{F:()=>s});var r=n(32246),o=n(15457),a=n(44044),i=n(7620),l=n(43988),s=function(e,t,n){return function(s){var u=s.size,c=(0,o._)(s,["size"]),d="number"==typeof u&&u<=3||void 0===u,f=(0,l.c3)("ragnar.functional_icons");return i.createElement(a.s,(0,r._)({"aria-label":f(e),size:u,viewBox:d?"0 0 16 16":"0 0 24 24"},c),i.createElement(d?t:n,null))}}},80797:(e,t,n)=>{n.d(t,{i:()=>V,n:()=>z});var r,o,a=n(7620),i=n(54568),l=n(97509),s=Object.defineProperty,u=(e,t)=>s(e,"name",{value:t,configurable:!0}),c=!!("u">typeof window&&window.document&&window.document.createElement);function d(e,t,{checkForDefaultPrevented:n=!0}={}){return u(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function f(e){if(!c)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function p(e){return"IFRAME"===e.tagName}u(d,"composeEventHandlers"),u(function(e){if(!c)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),u(f,"getOwnerDocument"),u(function e(t,n=!1){let{activeElement:r}=f(t);if(!r?.nodeName)return null;if(p(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=f(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),u(p,"isFrame");var m=Object.defineProperty,h=(e,t)=>m(e,"name",{value:t,configurable:!0});function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=v(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():v(e[t],null)}}}}function g(...e){return a.useCallback(b(...e),e)}h(v,"setRef"),h(b,"composeRefs"),h(g,"useComposedRefs");var y=Object.defineProperty,w=(e,t)=>y(e,"name",{value:t,configurable:!0});function x(e){let t=a.forwardRef((t,n)=>{let{children:r,...o}=t,i=null,l=!1,s=[];O(r)&&"function"==typeof k&&(r=k(r._payload)),a.Children.forEach(r,e=>{if(L(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;O(t)&&"function"==typeof k&&(t=k(t._payload)),i=C(e,t),s.push(i?.props?.children)}else s.push(e)}),i?i=a.cloneElement(i,void 0,s):!l&&1===a.Children.count(r)&&a.isValidElement(r)&&(i=r);let u=i?R(i):void 0,c=g(n,u);if(!i){if(r||0===r)throw Error(l?A(e):N(e));return r}let d=S(o,i.props??{});return i.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}w(x,"createSlot");var E=Symbol.for("radix.slottable");w(function(e){let t=w(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=E,t},"createSlottable");var C=w((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function S(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}
1:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function R(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function L(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===E}w(S,"mergeProps"),w(R,"getElementRef"),w(L,"isSlottable");var P=Symbol.for("react.lazy");function O(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===P&&"_payload"in e&&_(e._payload)}function _(e){return"object"==typeof e&&null!==e&&"then"in e}w(O,"isLazyComponent"),w(_,"isPromiseLike");var N=w(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),A=w(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),k=(r||(r=n.t(a,2)))[" use ".trim().toString()],j=Object.defineProperty,M=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=x(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function T(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}function D(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}j(T,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(D,"name",{value:"useCallbackRef",configurable:!0});var F=Object.defineProperty,$=(e,t)=>F(e,"name",{value:t,configurable:!0}),I="dismissableLayer.update",W=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),z=a.forwardRef($(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...p}=e,m=a.useContext(W),[h,v]=a.useState(null),b=h?.ownerDocument??globalThis?.document,[,y]=a.useState({}),w=g(t,v),x=Array.from(m.layers),[E]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),C=E?x.indexOf(E):-1,S=h?x.indexOf(h):-1,R=m.layersWithOutsidePointerEventsDisabled.size>0,L=S>=C,P=a.useRef(!1),O=H(e=>{s?.(e),c?.(e),e.defaultPrevented||f?.()},{ownerDocument:b,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...m.branches].some(t=>t.contains(e));return L&&!t},[m.branches,L])}),_=Z(e=>{if(r&&P.current)return;let t=e.target;![...m.branches].some(e=>e.contains(t))&&(u?.(e),c?.(e),e.defaultPrevented||f?.())},b),N=!!h&&S===x.length-1,A=D(e=>{"Escape"===e.key&&(l?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))});return a.useEffect(()=>{if(N)return b.addEventListener("keydown",A,{capture:!0}),()=>b.removeEventListener("keydown",A,{capture:!0})},[b,N,A]),a.useEffect(()=>{if(h)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),U(),()=>{n&&(m.layersWithOutsidePointerEventsDisabled.delete(h),0===m.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o))}},[h,b,n,m]),a.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),U())},[h,m]),a.useEffect(()=>{let e=$(()=>y({}),"handleUpdate");return document.addEventListener(I,e),()=>document.removeEventListener(I,e)},[]),(0,i.jsx)(M.div,{...p,ref:w,style:{pointerEvents:R?L?"auto":"none":void 0,...e.style},onFocusCapture:d(e.onFocusCapture,_.onFocusCapture),onBlurCapture:d(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:d(e.onPointerDownCapture,O.onPointerDownCapture)})},"DismissableLayer"));function V(){let e=a.useContext(W),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}$(V,"useDismissableLayerSurface");var B=$(()=>!0,"IS_TRUE");function H(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:l=B}=t,s=D(e),u=a.useRef(!1),c=a.useRef(!1),d=a.useRef(new Map),f=a.useRef(()=>{});return a.useEffect(()=>{function e(){c.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function a(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&f.current()},0)}function p(e){c.current&&d.current.set(e.type,!1)}$(e,"resetOutsideInteraction"),$(t,"isOutsideInteractionIntercepted"),$(a,"handleInteractionCapture"),$(p,"handleInteractionBubble");
1let m=$(a=>{if(a.target&&!u.current){let i=function(){n.removeEventListener("click",f.current);let r=t();e(),r||Y("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if($(i,"handleAndDispatchPointerDownOutsideEvent"),!l(a.target)){n.removeEventListener("click",f.current),e(),u.current=!1;return}let p={originalEvent:a};c.current=!0,o.current=r&&0===a.button,d.current.clear(),r&&0===a.button?(n.removeEventListener("click",f.current),f.current=i,n.addEventListener("click",f.current,{once:!0})):i()}else n.removeEventListener("click",f.current),e();u.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,a,!0),n.addEventListener(e,p);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",m),n.removeEventListener("click",f.current),h))n.removeEventListener(e,a,!0),n.removeEventListener(e,p)}},[n,s,r,o,i,l]),{onPointerDownCapture:$(()=>u.current=!0,"onPointerDownCapture")}}function Z(e,t=globalThis?.document){let n=D(e),r=a.useRef(!1);return a.useEffect(()=>{let e=$(e=>{e.target&&!r.current&&Y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:$(()=>r.current=!0,"onFocusCapture"),onBlurCapture:$(()=>r.current=!1,"onBlurCapture")}}function U(){let e=new CustomEvent(I);document.dispatchEvent(e)}function Y(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?T(o,a):o.dispatchEvent(a)}$(H,"usePointerDownOutside"),$(Z,"useFocusOutside"),$(U,"dispatchUpdate"),$(Y,"handleAndDispatchCustomEvent")},85710:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(78801),o=n(7620),a=(0,r.F)("checkmark_icon_label_a11y",function(){return o.createElement("path",{d:"M14.4532 4.92992L6.40579 13.4074L1.54663 8.28856L2.45321 7.42798L6.40579 11.5918L13.5466 4.06934L14.4532 4.92992Z"})},function(){return o.createElement("path",{d:"M20.8835 7.59876L9.47478 19.0075L3.1167 12.6494L4.35414 11.412L9.47478 16.5326L19.6461 6.36133L20.8835 7.59876Z"})})},87384:(e,t,n)=>{n.d(t,{n:()=>l,r:()=>i,t:()=>d});var r,o=n(26333),a=n(7620);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}"u">typeof window&&window.document&&window.document.createElement;var l=e=>{var t;let n,r,{present:i,children:l}=e,c=function(e){var t,n;let[r,i]=a.useState(),l=a.useRef(null),s=a.useRef(e),c=a.useRef("none"),d=a.useRef(void 0),[f,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>n[e][t]??e,t));return a.useEffect(()=>{"mounted"===f?(c.current=d.current??u(l.current),d.current=void 0):c.current="none"},[f]),(0,o.o)(()=>{let t=l.current,n=s.current;if(n!==e){let r=c.current,o=u(t);e?(d.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,o.o)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let o=u(l.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(p("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(c.current=u(l.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:a.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,d.current=u(t)}else l.current=null;i(e)},[])}}(i),d="function"==typeof l?l({present:c.isPresent}):a.Children.only(l),f=function(...e){let t=a.useRef(e);return t.current=e,a.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=s(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;
1e++){let t=o[e];"function"==typeof t?t():s(n[e],null)}}},[])}(c.ref,(t=d,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof l||c.isPresent?a.cloneElement(d,{ref:f}):null};function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(e){return e?.animationName||"none"}l.displayName="Presence";var c=(r||(r=n.t(a,2)))[" useInsertionEffect ".trim().toString()]||o.o;function d({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,l]=function({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return c(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{let t=a.useRef(void 0!==e);a.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[u,a.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else i(t)},[s,e,i,l])]}},88861:(e,t,n)=>{n.d(t,{t:()=>a});var r=n(40683),o=n(7620);let a=({children:e,"aria-label":t,className:n,...a})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",role:"img",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","aria-label":t,className:(0,r.i)(n),...a},e)},97867:(e,t,n)=>{n.d(t,{h:()=>l});var r=n(78801),o=n(7620),a=function(e){var t=e.children,n=e.radius;return o.createElement("g",{"data-testid":"loading-svg"},o.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 ".concat(n," ").concat(n),to:"360 ".concat(n," ").concat(n),dur:"800ms",repeatCount:"indefinite"}),t)},i=function(e,t){return function(){return o.createElement(a,{radius:t},o.createElement(e,null))}},l=(0,r.F)("loading_icon_label_a11y",i(function(){return o.createElement(o.Fragment,null,o.createElement("path",{d:"M15 8C15 8.82843 14.3284 9.5 13.5 9.5C12.6716 9.5 12 8.82843 12 8C12 7.17157 12.6716 6.5 13.5 6.5C14.3284 6.5 15 7.17157 15 8Z"}),o.createElement("path",{d:"M4 8C4 8.82843 3.32843 9.5 2.5 9.5C1.67157 9.5 1 8.82843 1 8C1 7.17157 1.67157 6.5 2.5 6.5C3.32843 6.5 4 7.17157 4 8Z"}),o.createElement("path",{d:"M9.5 13.5C9.5 14.3284 8.82843 15 8 15C7.17157 15 6.5 14.3284 6.5 13.5C6.5 12.6716 7.17157 12 8 12C8.82843 12 9.5 12.6716 9.5 13.5Z"}),o.createElement("path",{d:"M9.5 2.5C9.5 3.32843 8.82843 4 8 4C7.17157 4 6.5 3.32843 6.5 2.5C6.5 1.67157 7.17157 1 8 1C8.82843 1 9.5 1.67157 9.5 2.5Z"}))},8),i(function(){return o.createElement(o.Fragment,null,o.createElement("path",{d:"M21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12Z"}),o.createElement("path",{d:"M14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19Z"}),o.createElement("path",{d:"M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z"}),o.createElement("path",{d:"M14 5C14 6.10457 13.1046 7 12 7C10.8954 7 10 6.10457 10 5C10 3.89543 10.8954 3 12 3C13.1046 3 14 3.89543 14 5Z"}))},12))},98556:(e,t,n)=>{n.d(t,{n:()=>f,r:()=>d,t:()=>h});var r=n(14748),o=n(40683),a=n(32016),i=n(97867),l=n(85710),s=n(5762),u=n(7620),c=n(43988);let d=()=>{let[e,t]=(0,u.useState)();return(0,u.useEffect)(()=>{let n=e&&"loading"!==e?setTimeout(t,2e3):void 0;return()=>clearTimeout(n)},[e]),[e,t]},f=(0,r.F)(["data-[has-status=false]:disabled:bg-disabled-strong","data-[has-status=false]:disabled:text-on-disabled-strong","data-[has-status=false]:disabled:shadow-none","disabled:cursor-not-allowed","flex","flex-row","justify-center","items-center","text-center","relative","no-underline","font-body","font-semibold","cursor-pointer","rounded-full","whitespace-nowrap","opacity-100","not-disabled:active:motion-safe:scale-95","not-disabled:active:opacity-100","transition-[all,scale]","duration-[var(--duration-fast),var(--duration-moderate)]","ease-[var(--ease-snap),var(--ease-spring)]","outline-transparent","focus-visible:outline-solid","focus-visible:outline-4","focus-visible:outline-offset-2","focus-visible:outline-interactive-focused"],{variants:{size:{large:"px-8 py-4 text-100 leading-125",default:"px-6 py-3 text-87-5 leading-100",compact:"px-4 py-2 text-87-5 leading-100"},status:{loading:[],success:[],error:[]},variant:{primary:["bg-button-bg-primary","text-on-primary","data-[has-status=false]:hover:bg-button-bg-primary-hover","data-[has-status=false]:active:bg-button-bg-primary-active"],secondary:["bg-transparent","text-text","data-[has-status=false]:hover:bg-button-bg-secondary-hover","data-[has-status=false]:active:bg-button-bg-secondary-active"],tertiary:["bg-button-bg-tertiary","text-text","data-[has-status=false]:hover:bg-button-bg-tertiary-hover","data-[has-status=false]:active:bg-button-bg-tertiary-active"],brand:["bg-button-bg-brand","text-on-brand","data-[has-status=false]:hover:bg-button-bg-brand-hover","data-[has-status=false]:active:bg-button-bg-brand-active"],outline:["text-text","bg-transparent","shadow-[inset_0_0px_0px_2px_var(--color-primary)]","data-[has-status=false]:hover:bg-button-bg-outline-hover","data-[has-status=false]:active:bg-button-bg-outline-active"],primaryReverse:["text-text","bg-button-bg-primary-reverse","data-[has-status=false]:hover:bg-button-bg-primary-reverse-hover","data-[has-status=false]:active:bg-button-bg-primary-reverse-active","data-[has-status=false]:focus-visible:bg-button-bg-primary-reverse"],subtle:["bg-transparent","text-text","border-border-transparent","data-[has-status=false]:hover:bg-transparent","data-[has-status=false]:hover:border-border-transparent","data-[has-status=false]:active:bg-transparent","data-[has-status=false]:active:border-border-transparent","rounded-none","py-0.5","px-0.5","data-[has-status=false]:disabled:bg-transparent","data-[has-status=false]:disabled:text-text-disabled"],positive:["bg-button-bg-positive","text-on-positive","data-[has-status=false]:hover:bg-button-bg-positive-hover","data-[has-status=false]:active:bg-button-bg-positive-active"],negative:["bg-button-bg-negative","text-on-negative","data-[has-status=false]:hover:bg-button-bg-negative-hover","data-[has-status=false]:active:bg-button-bg-negative-active"],negativeWeak:["bg-button-bg-negative-weak","text-on-negative-weak","data-[has-status=false]:hover:bg-button-bg-negative-weak-hover","data-[has-status=false]:active:bg-button-bg-negative-weak-active"]}},defaultVariants:{variant:"tertiary",size:"default"}}),p=(0,r.F)(["flex","flex-row","items-center","text-inherit","transition-opacity"],{variants:{status:{true:["opacity-0"],false:["opacity-100"]}}}),m=({status:e,size:t="default",children:n,iconLeading:r,iconTrailing:a})=>{let d=(0,c.c3)("ragnar.button"),f="compact"===t?1:2,m=p({status:!!e}),h={loading:u.createElement(i.h,{size:f,"aria-label":d("button_loading_icon_a11y"),color:"currentColor"}),success:u.createElement(l.S,{size:f,"aria-label":d("button_success_icon_a11y"),color:"currentColor"}),error:u.createElement(s.w,{size:f,"aria-label":d("button_error_icon_a11y"),color:"currentColor"})};return u.createElement(u.Fragment,null,u.createElement("span",{className:(0,o.a)([e?"opacity-100":"opacity-0","absolute","top-0","bottom-0","left-0","right-0","flex","items-center","justify-center","transition-opacity"])},e?h[e]:null),r&&u.createElement("span",{"data-testid":"leading-icon-container","aria-hidden":!0,
1className:(0,o.a)(m,"mr-1 ")},u.createElement(r,{color:"inherit",size:f})),u.createElement("span",{"data-testid":"button-children","aria-hidden":!!e,className:(0,o.a)(m)},n),a&&u.createElement("span",{"data-testid":"trailing-icon-container","aria-hidden":!0,className:(0,o.a)(m,"ml-1 ")},u.createElement(a,{color:"currentColor",size:f})))},h=(0,u.forwardRef)(({status:e,size:t,children:n,disabled:r,iconLeading:i,iconTrailing:l,variant:s,className:c,...d},p)=>{let h=!!e,v=r||h,b=f({variant:"success"===e?"positive":"error"===e?"negative":s,size:t}),g=(0,o.i)("hover:opacity-100","disabled:opacity-100","aria-[disabled=true]:opacity-100","aria-[disabled=true]:hover:opacity-100");return u.createElement(a.t,{ref:p,className:(0,o.i)("r-button",g,b,c),"data-has-status":h,disabled:v,...d},u.createElement(m,{status:e,size:t,children:n,iconLeading:i,iconTrailing:l}))})}}]); 2//# sourceMappingURL=9762-860fb82f36eded10.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.