reshaped 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.js CHANGED
@@ -24,4 +24,4 @@ Check the render method of \``+_+"`."}return""}}function da(_){{if(_!==void 0){v
24
24
 
25
25
  Check your code at `+k+":"+I+"."}return""}}var bo={};function ua(_){{var k=vo();if(!k){var I=typeof _=="string"?_:_.displayName||_.name;I&&(k=`
26
26
 
27
- Check the top-level render call using <`+I+">.")}return k}}function po(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var I=ua(k);if(bo[I])return;bo[I]=!0;var A="";_&&_._owner&&_._owner!==Yn.current&&(A=" It was passed a child from "+D(_._owner.type)+"."),pt(_),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,A),pt(null)}}function xo(_,k){{if(typeof _!="object")return;if(qt(_))for(var I=0;I<_.length;I++){var A=_[I];Xn(A)&&po(A,k)}else if(Xn(_))_._store&&(_._store.validated=!0);else if(_){var U=y(_);if(typeof U=="function"&&U!==_.entries)for(var J=U.call(_),W;!(W=J.next()).done;)Xn(W.value)&&po(W.value,k)}}}function _a(_){{var k=_.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var A=D(k);an(I,_.props,"prop",A,_)}else if(k.PropTypes!==void 0&&!Gn){Gn=!0;var U=D(k);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ma(_){{for(var k=Object.keys(_.props),I=0;I<k.length;I++){var A=k[I];if(A!=="children"&&A!=="key"){pt(_),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),pt(null);break}}_.ref!==null&&(pt(_),p("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function wo(_,k,I,A,U,J){{var W=P(_);if(!W){var V="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=da(U);be?V+=be:V+=vo();var oe;_===null?oe="null":qt(_)?oe="array":_!==void 0&&_.$$typeof===t?(oe="<"+(D(_.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof _,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,V)}var ae=ca(_,k,I,U,J);if(ae==null)return ae;if(W){var Ne=k.children;if(Ne!==void 0)if(A)if(qt(Ne)){for(var xt=0;xt<Ne.length;xt++)xo(Ne[xt],_);Object.freeze&&Object.freeze(Ne)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xo(Ne,_)}return _===r?ma(ae):_a(ae),ae}}function fa(_,k,I){return wo(_,k,I,!0)}function ha(_,k,I){return wo(_,k,I,!1)}var ga=ha,va=fa;yt.Fragment=r,yt.jsx=ga,yt.jsxs=va}()),yt}process.env.NODE_ENV==="production"?xe.exports=No():xe.exports=$o();var s=xe.exports;const Zn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function zo(e,t){const n=Zn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const Eo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=M(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),er=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&r||o?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},H=(e,t,n,r)=>{if(typeof n!="object"){const o=er(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,i)=>{const a=i==="s",l=er(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},te=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,r)=>{const o=t[r];return o===void 0||o===!1?n:C(v({},n),{[`${e}-${r}`]:o})},{}),To=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,$e=(e,t)=>To(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(v({},r),{[o]:t(i,o)})},{}):t(e,"s"),ze=e=>{const t=c.useId();return e||t},_n=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),tr=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=M(a),f=ze(),u=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(v({},l),{className:d,children:s.jsx(_n.Provider,{value:u,children:t})}))},Io=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=qe(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(tr,C(v({},r),{onToggle:a,active:o}))},jt={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},Mo=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:u,className:h,attributes:m}=e,g=M(jt.root,h,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],u&&jt["--full-width"]),b=v({},m),x=c.useRef(!1),y=o||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),p=!!(r||m!=null&&m.href),j=!!(y||w||i);let $;if(p)b.href=a?void 0:r||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",b.type=i||(m==null?void 0:m.type)||"button",b.disabled=a||(m==null?void 0:m.disabled);else if(j){const S=!(f==="label")||y||w;$=f||"span",b.role=S?"button":void 0,b.tabIndex=S?0:void 0}else $=f||"span";const z=E=>{var S;a||x.current||(o==null||o(E),(S=m==null?void 0:m.onClick)==null||S.call(m,E))},T=E=>{if(b.role==="button"||p)return;const O=E.key===" ",P=E.key==="Enter";!O&&!P||(E.preventDefault(),z(E),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(v({ref:t},b),{className:g,onClick:z,onKeyDown:T,children:n}))},Ae=c.forwardRef(Mo),mn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},At=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=M(mn.root,r,n&&mn["--blank"],...H(mn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(v({},o),{role:"separator","aria-orientation":a,className:i}))},Ft={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},Lt=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=M(Ft.root,...H(Ft,"--hidden",o),r&&Ft["--visibility"],i&&Ft[`--display-${i}`]);return typeof n=="function"?s.jsx(s.Fragment,{children:n(a)}):s.jsx(t,{className:a,children:n})},K={root:"_root_ewdir_1",item:"_item_ewdir_10","--padding":"_--padding_ewdir_18","--padding-top":"_--padding-top_ewdir_23","--padding-bottom":"_--padding-bottom_ewdir_27","--padding-start":"_--padding-start_ewdir_31","--padding-end":"_--padding-end_ewdir_35","--animated":"_--animated_ewdir_39","--align-text-start":"_--align-text-start_ewdir_1","--align-text-center":"_--align-text-center_ewdir_1","--align-text-end":"_--align-text-end_ewdir_1","--bg-neutral":"_--bg-neutral_ewdir_1","--bg-positive":"_--bg-positive_ewdir_1","--bg-critical":"_--bg-critical_ewdir_1","--bg-primary":"_--bg-primary_ewdir_1","--bg-neutral-faded":"_--bg-neutral-faded_ewdir_1","--bg-positive-faded":"_--bg-positive-faded_ewdir_1","--bg-critical-faded":"_--bg-critical-faded_ewdir_1","--bg-primary-faded":"_--bg-primary-faded_ewdir_1","--bg-page":"_--bg-page_ewdir_1","--bg-page-faded":"_--bg-page-faded_ewdir_1","--bg-disabled":"_--bg-disabled_ewdir_1","--bg-disabled-faded":"_--bg-disabled-faded_ewdir_1","--bg-elevation-base":"_--bg-elevation-base_ewdir_1","--bg-elevation-raised":"_--bg-elevation-raised_ewdir_1","--bg-elevation-overlay":"_--bg-elevation-overlay_ewdir_1","--bg-white":"_--bg-white_ewdir_65","--bg-black":"_--bg-black_ewdir_70","--shadow-raised":"_--shadow-raised_ewdir_75","--shadow-overlay":"_--shadow-overlay_ewdir_79","--bd":"_--bd_ewdir_83","--bd-neutral-faded":"_--bd-neutral-faded_ewdir_1","--bd-neutral":"_--bd-neutral_ewdir_1","--bd-positive":"_--bd-positive_ewdir_1","--bd-positive-faded":"_--bd-positive-faded_ewdir_1","--bd-critical":"_--bd-critical_ewdir_1","--bd-critical-faded":"_--bd-critical-faded_ewdir_1","--bd-primary":"_--bd-primary_ewdir_1","--bd-primary-faded":"_--bd-primary-faded_ewdir_1","--bd-disabled":"_--bd-disabled_ewdir_1","--bd-transparent":"_--bd-transparent_ewdir_94","--overflow-hidden":"_--overflow-hidden_ewdir_98","--divided":"_--divided_ewdir_102","--flex":"_--flex_ewdir_106","--direction-column":"_--direction-column_ewdir_1","item--gap-before":"_item--gap-before_ewdir_118","item--gap-auto":"_item--gap-auto_ewdir_122","--direction-column-reverse":"_--direction-column-reverse_ewdir_1","--direction-row":"_--direction-row_ewdir_1","--direction-row-reverse":"_--direction-row-reverse_ewdir_1","--nowrap":"_--nowrap_ewdir_177","--wrap":"_--wrap_ewdir_185","--nowrap-false--m":"_--nowrap-false--m_ewdir_1","--wrap-true--m":"_--wrap-true--m_ewdir_1","--nowrap-true--m":"_--nowrap-true--m_ewdir_1","--wrap-false--m":"_--wrap-false--m_ewdir_1","--nowrap-false--l":"_--nowrap-false--l_ewdir_1","--wrap-true--l":"_--wrap-true--l_ewdir_1","--nowrap-true--l":"_--nowrap-true--l_ewdir_1","--wrap-false--l":"_--wrap-false--l_ewdir_1","--nowrap-false--xl":"_--nowrap-false--xl_ewdir_1","--wrap-true--xl":"_--wrap-true--xl_ewdir_1","--nowrap-true--xl":"_--nowrap-true--xl_ewdir_1","--wrap-false--xl":"_--wrap-false--xl_ewdir_1","--align-start":"_--align-start_ewdir_1","--align-end":"_--align-end_ewdir_1","--align-center":"_--align-center_ewdir_1","--align-stretch":"_--align-stretch_ewdir_1","--align-baseline":"_--align-baseline_ewdir_1","--justify-start":"_--justify-start_ewdir_1","--justify-end":"_--justify-end_ewdir_1","--justify-center":"_--justify-center_ewdir_1","--justify-space-between":"_--justify-space-between_ewdir_1",divider:"_divider_ewdir_244","item--grow":"_item--grow_ewdir_248","item--columns":"_item--columns_ewdir_266","item--columns-1":"_item--columns-1_ewdir_1","item--columns-2":"_item--columns-2_ewdir_1","item--columns-3":"_item--columns-3_ewdir_1","item--columns-4":"_item--columns-4_ewdir_1","item--columns-5":"_item--columns-5_ewdir_1","item--columns-6":"_item--columns-6_ewdir_1","item--columns-7":"_item--columns-7_ewdir_1","item--columns-8":"_item--columns-8_ewdir_1","item--columns-9":"_item--columns-9_ewdir_1","item--columns-10":"_item--columns-10_ewdir_1","item--columns-11":"_item--columns-11_ewdir_1","item--columns-12":"_item--columns-12_ewdir_1","item--columns-auto":"_item--columns-auto_ewdir_287","item--columns-1--m":"_item--columns-1--m_ewdir_1","item--columns-auto--m":"_item--columns-auto--m_ewdir_1","item--columns-2--m":"_item--columns-2--m_ewdir_1","item--columns-3--m":"_item--columns-3--m_ewdir_1","item--columns-4--m":"_item--columns-4--m_ewdir_1","item--columns-5--m":"_item--columns-5--m_ewdir_1","item--columns-6--m":"_item--columns-6--m_ewdir_1","item--columns-7--m":"_item--columns-7--m_ewdir_1","item--columns-8--m":"_item--columns-8--m_ewdir_1","item--columns-9--m":"_item--columns-9--m_ewdir_1","item--columns-10--m":"_item--columns-10--m_ewdir_1","item--columns-11--m":"_item--columns-11--m_ewdir_1","item--columns-12--m":"_item--columns-12--m_ewdir_1","item--columns-1--l":"_item--columns-1--l_ewdir_1","item--columns-auto--l":"_item--columns-auto--l_ewdir_1","item--columns-2--l":"_item--columns-2--l_ewdir_1","item--columns-3--l":"_item--columns-3--l_ewdir_1","item--columns-4--l":"_item--columns-4--l_ewdir_1","item--columns-5--l":"_item--columns-5--l_ewdir_1","item--columns-6--l":"_item--columns-6--l_ewdir_1","item--columns-7--l":"_item--columns-7--l_ewdir_1","item--columns-8--l":"_item--columns-8--l_ewdir_1","item--columns-9--l":"_item--columns-9--l_ewdir_1","item--columns-10--l":"_item--columns-10--l_ewdir_1","item--columns-11--l":"_item--columns-11--l_ewdir_1","item--columns-12--l":"_item--columns-12--l_ewdir_1","item--columns-1--xl":"_item--columns-1--xl_ewdir_1","item--columns-auto--xl":"_item--columns-auto--xl_ewdir_1","item--columns-2--xl":"_item--columns-2--xl_ewdir_1","item--columns-3--xl":"_item--columns-3--xl_ewdir_1","item--columns-4--xl":"_item--columns-4--xl_ewdir_1","item--columns-5--xl":"_item--columns-5--xl_ewdir_1","item--columns-6--xl":"_item--columns-6--xl_ewdir_1","item--columns-7--xl":"_item--columns-7--xl_ewdir_1","item--columns-8--xl":"_item--columns-8--xl_ewdir_1","item--columns-9--xl":"_item--columns-9--xl_ewdir_1","item--columns-10--xl":"_item--columns-10--xl_ewdir_1","item--columns-11--xl":"_item--columns-11--xl_ewdir_1","item--columns-12--xl":"_item--columns-12--xl_ewdir_1","--direction-column--m":"_--direction-column--m_ewdir_1","--direction-column-reverse--m":"_--direction-column-reverse--m_ewdir_1","--direction-row--m":"_--direction-row--m_ewdir_1","--direction-row-reverse--m":"_--direction-row-reverse--m_ewdir_1","--align-start--m":"_--align-start--m_ewdir_1","--align-end--m":"_--align-end--m_ewdir_1","--align-center--m":"_--align-center--m_ewdir_1","--align-stretch--m":"_--align-stretch--m_ewdir_1","--align-baseline--m":"_--align-baseline--m_ewdir_1","--justify-start--m":"_--justify-start--m_ewdir_1","--justify-end--m":"_--justify-end--m_ewdir_1","--justify-center--m":"_--justify-center--m_ewdir_1","--justify-space-between--m":"_--justify-space-between--m_ewdir_1","item--grow-true--m":"_item--grow-true--m_ewdir_1","item--grow-false--m":"_item--grow-false--m_ewdir_1","--direction-column--l":"_--direction-column--l_ewdir_1","--direction-column-reverse--l":"_--direction-column-reverse--l_ewdir_1","--direction-row--l":"_--direction-row--l_ewdir_1","--direction-row-reverse--l":"_--direction-row-reverse--l_ewdir_1","--align-start--l":"_--align-start--l_ewdir_1","--align-end--l":"_--align-end--l_ewdir_1","--align-center--l":"_--align-center--l_ewdir_1","--align-stretch--l":"_--align-stretch--l_ewdir_1","--align-baseline--l":"_--align-baseline--l_ewdir_1","--justify-start--l":"_--justify-start--l_ewdir_1","--justify-end--l":"_--justify-end--l_ewdir_1","--justify-center--l":"_--justify-center--l_ewdir_1","--justify-space-between--l":"_--justify-space-between--l_ewdir_1","item--grow-true--l":"_item--grow-true--l_ewdir_1","item--grow-false--l":"_item--grow-false--l_ewdir_1","--direction-column--xl":"_--direction-column--xl_ewdir_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_ewdir_1","--direction-row--xl":"_--direction-row--xl_ewdir_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_ewdir_1","--align-start--xl":"_--align-start--xl_ewdir_1","--align-end--xl":"_--align-end--xl_ewdir_1","--align-center--xl":"_--align-center--xl_ewdir_1","--align-stretch--xl":"_--align-stretch--xl_ewdir_1","--align-baseline--xl":"_--align-baseline--xl_ewdir_1","--justify-start--xl":"_--justify-start--xl_ewdir_1","--justify-end--xl":"_--justify-end--xl_ewdir_1","--justify-center--xl":"_--justify-center--xl_ewdir_1","--justify-space-between--xl":"_--justify-space-between--xl_ewdir_1","item--grow-true--xl":"_item--grow-true--xl_ewdir_1","item--grow-false--xl":"_item--grow-false--xl_ewdir_1"},nr={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},fn=e=>e?{classNames:[nr.root,...H(nr,"--radius",e)]}:null,rr={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},or=e=>{if(e===void 0)return null;const t=[rr.root,...H(rr,"--bleed",$e(e,r=>typeof r=="number"&&r>0))],n=te("--rs-bleed",e);return{classNames:t,variables:n}},So={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},hn=e=>{if(!e)return null;const t=te("--rs-w",e);return{classNames:H(So,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Po={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},Ct=e=>{if(!e)return null;const t=te("--rs-h",e);return{classNames:H(Po,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},qo={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},Ao=e=>{if(!e)return null;const t=te("--rs-max-w",e);return{classNames:H(qo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Fo={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},Lo=e=>{if(!e)return null;const t=te("--rs-max-h",e);return{classNames:H(Fo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Do={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},Vo=e=>e?{classNames:H(Do,"--position",e)}:null,Oo={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},kt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=te(r,e);return{classNames:H(Oo,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Bo={root:"_root_i342i_1"},Wo=e=>{if(!e)return null;const t=te("--rs-ratio",e);return{classNames:Bo.root,variables:t}},sr=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=M(K.item,l,r==="auto"&&K["item--gap-auto"],r!==void 0&&K["item--gap-before"],t&&K["item--columns"],...H(K,"item--grow",n),...H(K,"item--columns",t)),u=v(v({},te("--rs-view-item-order",i)),te("--rs-view-item-gap-before",r));return s.jsx(o,C(v({},d),{style:v(v({},d==null?void 0:d.style),u),className:f,children:a}))},L=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:u,paddingInline:h,paddingBlock:m,paddingBottom:g,paddingEnd:b,paddingStart:x,paddingTop:y,bleed:w,animated:p,backgroundColor:j,borderColor:$,borderRadius:z,shadow:T,textAlign:E,overflow:S,position:O="relative",inset:P,insetTop:q,insetBottom:B,insetStart:D,insetEnd:F,zIndex:Z,grow:fe,as:he="div",children:se,divided:ee,className:He,attributes:ke}=e;let re=!!t||!!n||!!o||!!e.direction;const R=e.direction||(re?"column":void 0),Y=fn(z),G=or(w),ie=hn(a),ye=Ct(i),X=Ao(f),pe=Lo(d),ge=Vo(O),Me=kt(P),Re=kt(q,"top"),et=kt(B,"bottom"),tt=kt(D,"start"),Se=kt(F,"end"),Pe=Wo(l);let Pt=0,st;const vt=({className:ve,key:de})=>{const Ve=M(K.divider,ve);let _e=!1;return typeof R=="string"&&R.startsWith("row")?_e=!0:R&&(_e=Object.keys(R).reduce((Oe,Ue)=>{const je=R[Ue];return je?C(v({},Oe),{[Ue]:je.startsWith("row")}):Oe},{})),s.jsx("div",{className:Ve,children:s.jsx(At,{vertical:_e,blank:!0})},`${de}-divider`)},an=({className:ve,child:de,index:Ve})=>{var ln,cn,dn;const _e=de.type===sr,bt=de.type===L,Oe=de.key||Ve,Ue=!!Ve&&ee&&vt({className:ve,key:Oe});let je;return _e?je=c.cloneElement(de,{className:M(ve,de.props.className)}):ve||!c.isValidElement(de)?je=s.jsx("div",{className:ve,children:de},Oe):je=de,_e&&((ln=de.props)!=null&&ln.grow)&&(st=de.props.grow),_e&&((cn=de.props)==null?void 0:cn.gap)==="auto"&&(st=!0),(_e||bt)&&((dn=de.props)!=null&&dn.grow)&&(re=!0),[Ue,je]},Un=c.Children.map(se,(ve,de)=>{if(!ve)return null;const Ve=Pt;if(Pt+=1,ve.type===Lt&&typeof ve.props.children!="function"){const _e=ve.props,{children:bt}=_e,Oe=qe(_e,["children"]),Ue=ve.key||de;return c.createElement(Lt,C(v({},Oe),{key:Ue}),je=>an({className:je,child:bt,index:Ve}))}return an({child:ve,index:Ve})}),qt=M(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,E&&K[`--align-text-${E}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],S&&K[`--overflow-${S}`],p&&K["--animated"],ee&&K["--divided"],(u!==void 0||h!==void 0||m!==void 0)&&K["--padding"],g!==void 0&&K["--padding-bottom"],b!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(re||st)&&K["--flex"],...H(K,"--direction",R),...H(K,"--align",t),...H(K,"--justify",n),...H(K,"--nowrap",st||r===!1),...H(K,"--wrap",r),...H(K,"item--grow",fe)),Kn=v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({},ke==null?void 0:ke.style),te("--rs-view-gap",o)),te("--rs-view-p-vertical",m||u)),te("--rs-view-p-horizontal",h||u)),te("--rs-view-p-bottom",g)),te("--rs-view-p-top",y)),te("--rs-view-p-start",x)),te("--rs-view-p-end",b)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Z?{"--rs-view-z":Z}:{});return s.jsx(he,C(v({},ke),{className:qt,style:Kn,children:Un}))};L.Item=sr;const gn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},le=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=Ct(o),d=M(gn.root,n,l==null?void 0:l.classNames,r&&gn[`--color-${r}`],i&&gn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),u=v(v({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(v({},a),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(f,{focusable:!1})}))},Ho=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),ir={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ro=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(_n),d=M(ir.icon,n&&ir["icon--active"]),f=()=>{r==null||r(!n)},u={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(v({},u),{onClick:f}),{active:n})}):s.jsx(Ae,{onClick:f,fullWidth:!0,attributes:u,children:s.jsxs(L,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(L.Item,{grow:!0,children:t}),s.jsx(le,{size:l||4,svg:Ho,className:d})]})})},Nt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},vn="data-rs-no-transition",Uo=()=>{document.documentElement.setAttribute(vn,"true")},Ko=()=>{document.documentElement.removeAttribute(vn)},Yo=()=>!document.documentElement.hasAttribute(vn),ar={root:"_root_14pfm_1","--animated":"_--animated_14pfm_9"},lr=e=>{const{children:t,active:n,attributes:r}=e,o=c.useRef(null),i=c.useRef(!1),[a,l]=c.useState(n?"auto":null),d=M(ar.root,i.current&&a!=="auto"&&ar["--animated"]),f=u=>{u.propertyName==="height"&&l(n?"auto":null)};return c.useEffect(()=>{Nt(()=>{i.current=!0})},[]),c.useEffect(()=>{const u=o.current;if(!u||!i.current)return;let h=0;n&&(u.style.height="auto",h=u.clientHeight,u.style.height="0"),n||(u.style.height=`${u.clientHeight}px`),l(h)},[n]),s.jsx("div",C(v({},r),{className:d,ref:o,style:a!==null?{height:a,overflow:a==="auto"?"visible":void 0}:void 0,onTransitionEnd:f,role:"region",hidden:!n&&a===null,children:t}))},Go=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(_n);return s.jsx(lr,{active:n,attributes:{"aria-labelledby":r,id:o},children:t})},bn=e=>{const{active:t}=e;return t!==void 0?s.jsx(tr,v({},e)):s.jsx(Io,v({},e))};bn.Trigger=Ro,bn.Content=Go;const pn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Xo=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=M(pn.root,a&&pn["--elevated"],t&&pn[`--position-${t}`],l);return s.jsx(L,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Jo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Q=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,u=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||u&&Jo[u]||"div",m=M(nt.root,n&&nt[`--color-${n}`],...H(nt,"--variant",t),...H(nt,"--align",o),r&&nt[`--weight-${r}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),g=C(v({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(v({},f),{className:m,style:g,children:l}))},Qo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,u=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(Q,{variant:"body-3",as:"span",children:n})]}):s.jsxs(L,{gap:1,children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(Q,{variant:"body-3",children:n})]}),m=g=>o?s.jsxs(L,{gap:2,direction:a?"row":"column",children:[a?s.jsx(L.Item,{grow:!0,children:g}):g,o&&s.jsx(Q,{variant:"body-3",weight:"medium",children:s.jsx(L,{direction:"row",gap:3,children:o})})]}):g;return s.jsx(L,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(v({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(le,{svg:r,size:5,color:u?"primary":i}),s.jsx(L.Item,{grow:!0,children:m(h())})]}):m(h())})},cr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Zo=cr.Provider,$t=()=>c.useContext(cr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=$t();return{attributes:e,required:t,hasError:n,disabled:r}},dr={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},xn=(e,t)=>`${e}-${t||"caption"}`,Dt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=ze(n),f=i?"fieldset":"div",[u,h]=c.useState(!1),[m,g]=c.useState(!1),b=[u&&xn(d),m&&xn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":b},y=()=>{g(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Zo,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},es=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=$t(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(Q,C(v({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:dr.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(Q,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ur=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=$t(),d=xn(o.id,n),f=n==="error"?"critical":"neutral-faded",u=n==="error"?l:a;return s.jsx(Q,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:u},className:dr.caption,children:t})},ts=e=>{const{children:t}=e,{disabled:n}=$t();return s.jsx(ur,{disabled:n,children:t})},ns=e=>{const{children:t}=e,{hasError:n}=$t();return n?s.jsx(ur,{variant:"error",children:t}):null};Dt.Label=es,Dt.Helper=ts,Dt.Error=ns;const _r={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Vt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=M(_r.root,i.map(l=>_r[`--side-${l}`]),r);return s.jsx("div",C(v({},o),{className:a,children:n}))},Ee={root:"_root_1qgw7_1",input:"_input_1qgw7_21",slot:"_slot_1qgw7_42",icon:"_icon_1qgw7_43",affix:"_affix_1qgw7_44",attachment:"_attachment_1qgw7_60","attachment--position-start":"_attachment--position-start_1qgw7_66","attachment--position-end":"_attachment--position-end_1qgw7_76","--disabled":"_--disabled_1qgw7_90","--size-medium":"_--size-medium_1qgw7_1","--size-large":"_--size-large_1qgw7_1","--size-xlarge":"_--size-xlarge_1qgw7_1","--variant-faded":"_--variant-faded_1qgw7_154","--variant-headless":"_--variant-headless_1qgw7_163","--status-error":"_--status-error_1qgw7_168","--size-medium--m":"_--size-medium--m_1qgw7_1","--size-large--m":"_--size-large--m_1qgw7_1","--size-xlarge--m":"_--size-xlarge--m_1qgw7_1","--size-medium--l":"_--size-medium--l_1qgw7_1","--size-large--l":"_--size-large--l_1qgw7_1","--size-xlarge--l":"_--size-xlarge--l_1qgw7_1","--size-medium--xl":"_--size-medium--xl_1qgw7_1","--size-large--xl":"_--size-large--xl_1qgw7_1","--size-xlarge--xl":"_--size-xlarge--xl_1qgw7_1"},mr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=M(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&s.jsx("div",{className:Ee.slot,children:t},"slot"),n&&s.jsx("div",{className:Ee.icon,children:s.jsx(le,{size:$e(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&s.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return s.jsx("span",{className:a,children:i==="end"?l.reverse():l})},wn=e=>{var P;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:u,endSlot:h,prefix:m,suffix:g,size:b="medium",variant:x="outline",className:y,attributes:w}=e,p=Ye(),j=ze(e.id),$=(p==null?void 0:p.attributes.id)||((P=e.inputAttributes)==null?void 0:P.id)||j,z=(p==null?void 0:p.disabled)||e.disabled,T=(p==null?void 0:p.hasError)||e.hasError,E=v(v({},e.inputAttributes),p==null?void 0:p.attributes),S=M(Ee.root,y,b&&H(Ee,"--size",b),T&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=q=>{t&&t({name:o,value:q.target.value,event:q})};return s.jsxs("div",C(v({},w),{"data-rs-aligner-target":!0,className:S,children:[s.jsx(mr,{position:"start",icon:d,slot:u,size:b,affix:m}),s.jsx("input",C(v({},E),{className:Ee.input,disabled:z,name:o,placeholder:l,value:i,defaultValue:a,onChange:O,onFocus:n||(E==null?void 0:E.onFocus),onBlur:r||(E==null?void 0:E.onBlur),id:$})),s.jsx(mr,{position:"end",icon:f,slot:h,size:b,affix:g})]}))};wn.Aligner=Vt;const rs="Enter",os="Tab",fr="ArrowUp",hr="ArrowDown",gr="ArrowRight",vr="ArrowLeft",yn="data-rs-keyboard",Ot="data-rs-focus";class ss{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,r=n&&this.get(n),o=this.generateId();return this.chain[o]={previousId:n,data:t},r&&(r.nextId=o),this.tailId=o,o}remove(t){var d,f;const n=this.chain[t];if(!n)return;const r=n.previousId,o=r&&this.get(r),i=n.nextId,a=i&&this.get(i);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(this.tailId=r!=null?r:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const r=this.get(t),o=this.remove(t);return!r||!r.previousId||n(r)?o:this.removePreviousTill(r.previousId,n)}}const br=()=>document.documentElement.hasAttribute(yn),pr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Bt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,jn=(e,t)=>{const r=Array.from(e.querySelectorAll(pr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},xr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=jn(t,n),a=i.length-1,l=Bt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let u=f[r];const h=u>a||u<0;return h&&(o==="action-menu"?u=r==="prev"?f.first:f.last:u=r==="prev"?f.last:f.first),{overflow:h,el:i[u]}},Wt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Ht=(e,t)=>{const n=xr({root:e,target:t});Wt(n.el)},is=e=>Ht(e,"next"),as=e=>Ht(e,"prev"),ls=e=>Ht(e,"first"),cs=e=>Ht(e,"last"),ds=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const i=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");i&&a&&(o.setAttribute("aria-hidden","true"),e.push(o)),o=o.nextSibling}},n=()=>{e.forEach(r=>{r.removeAttribute("aria-hidden")}),e=[]};return r=>{let o=r;for(e.length&&n();o!==document.body;)t(o),o=o.parentElement;return{release:n}}})(),Rt=(()=>{let e=null,t=null;const n=new ss;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=Bt(),f=i==="dialog",u=i==="content-menu",h=i==="selection-menu",m=f||u,g=i==="action-menu"||h,b=jn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=jn(r,l?d:void 0);$.length&&Wt($[0],i)}),w=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,E=>document.body.contains(E.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!br()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Rt(T.data.root,T.data.options)},p=$=>{const z=$.key,T=z===os,E=T&&!$.shiftKey,S=T&&$.shiftKey,O=g&&z===fr,P=g&&z===hr,q=S&&m||O,B=E&&m||P,D=Bt()===d,F=xr({root:r,target:q?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&g||u&&T&&F.overflow){S&&!D&&$.preventDefault(),w(),a==null||a();return}!q&&!B||($.preventDefault(),F.el&&Wt(F.el,i))};if(e&&e(),f&&(t=ds(r)),y.observe(r,{childList:!0,subtree:!0}),!b.length)return null;document.addEventListener("keydown",p),e=()=>document.removeEventListener("keydown",p);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Wt(b[0],i)),w}})(),us=100,_s=150;let it={},Fe=null;const wr=e=>{it[e]&&(e===Fe&&(Fe=it[e].parentId),delete it[e],Fe===null&&(it={}))},ms=(e,t,n)=>{var i;const r=Fe?it[Fe]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&Fe&&wr(Fe),it[e]={parentId:Fe,triggerRef:n,contentRef:t},Fe=e},yr=(e=!1,t,n)=>{const r=ze(),o=c.useCallback(()=>Fe===r,[r]);return c.useEffect(()=>{e?ms(r,t,n):wr(r)},[e,r,t,n]),o},ce=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Te={},Cn=[],jr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),kn=e=>jr(e).split(at).sort().join(at),Cr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},fs=e=>{const t=[],n=e.join(at),o=kn(n).split(at),i=(a,l)=>{l.forEach((d,f)=>{const u=a?`${a}+${d}`:d;t.push(u),i(u,l.slice(f+1))})};return i("",o),t},hs=(e,t)=>{const n=Object.keys(e);n.length&&fs(n).forEach(r=>{t(r)})},Nn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(kn(r),o)})})};class gs{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Nn(t,(r,o)=>{o&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:o,ref:n}))})},this.unbindHotkeys=t=>{Nn(t,(n,r)=>{var o,i;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{hs(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=kn(t.key);Nn(this.hotkeyMap,(r,o)=>{r.split(at).includes(n)&&(o.used=!1)})}}}const Ut=new gs,kr=c.createContext({}),vs=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||o===0)return;const g=Cr(m);g&&(Te[g]=m,(g==="meta"||g==="control")&&(Te.mod=m),r(Object.keys(Te).length),g==="meta"&&Cn.push(...Object.keys(Te)),Te.Meta&&Cn.push(g))},[o]),l=c.useCallback(m=>{if(o===0)return;const g=Cr(m);g&&(delete Te[g],(g==="meta"||g==="control")&&delete Te.mod,g==="meta"&&Cn.forEach(b=>{delete Te[b]}),r(Object.keys(Te).length))},[o]),d=m=>!jr(m).split(at).some(b=>!Te[b]),f=c.useCallback((m,g)=>(i(b=>b+1),Ut.bindHotkeys(m,g),()=>{i(b=>b-1),Ut.unbindHotkeys(m)}),[]),u=c.useCallback(m=>{m.key&&(a(m),Ut.handleKeyDown(Te,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Ut.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",h)}),[u,h]),s.jsx(kr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},bs=()=>c.useContext(kr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=bs(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},$n=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ps=e=>{const t=c.useState(e||!1),[n,r]=t;return ce(()=>{const o=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&r(l)})});return o.observe(document.documentElement,{attributes:!0}),()=>o.disconnect()},[n]),ce(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext($n).rtl,zn=e=>{const t=e&&window.getComputedStyle(e).overflowY,n=t==null?void 0:t.includes("scroll");return e===document.body||!e?document.body:n&&e.scrollHeight>e.clientHeight?e:zn(e.parentElement)},Nr=16,Kt=["top-start","top","top-end"],Yt=["bottom-start","bottom","bottom-end"],Gt=["start","start-bottom","start-top"],Xt=["end","end-bottom","end-top"],xs={top:[...Kt,...Yt,...Xt,...Gt],bottom:[...Yt,...Kt,...Xt,...Gt],start:[...Gt,...Xt,...Kt,...Yt],end:[...Xt,...Gt,...Kt,...Yt]},ws=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,$r=(e,t)=>Math.floor(e/2-t/2),ys=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return xs[n]},En=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,i=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=i},zr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=ws(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=$r(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(f){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=$r(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=Nr,u=window.innerWidth-Nr*2):a==="trigger"&&(u=e.width),{styles:{left:l,top:d,width:u,height:h},position:f}},Er={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},Tn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},js=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Tn).forEach(g=>{const b=Tn[g];a.style[g]=b.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=zn(e),u=f.getBoundingClientRect(),h={top:u.top+document.documentElement.scrollTop-f.scrollTop,left:u.left+document.documentElement.scrollLeft-f.scrollLeft};let m=zr(l,d,h,n);if(!En(m.styles)&&!o){const g=ys(r),b=g.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:p}=w;y.some(j=>{const $=C(v({},n),{width:p?"full":n.width,position:j}),z=zr(l,d,h,$);return En(z.styles)?(m=z,!0):!1})};x(g),En(m.styles)||x(b,{fullWidth:!0})}return a.parentNode.removeChild(a),m},Cs=(e,t)=>{switch(t.type){case"render":return C(v({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return C(v({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:v(v({},Er),t.payload.styles)});case"show":return C(v({},e),{status:"visible"});case"hide":return C(v({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(v({},e),{status:"idle",styles:Tn});default:throw new Error("Invalid reducer type")}},ks=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(Cs,{position:r,styles:Er,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),g=c.useCallback(()=>{if(!e.current||!t.current)return;const b=js(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:b})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&g(),l.status==="positioned"&&Nt(()=>u())},[l.status,g,u]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:g,render:f,hide:h,remove:m}),[f,g,h,m,l.position,l.styles,l.status])},Ns=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(o=!0)}),!o&&t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Tr=c.createContext({}),Jt=()=>c.useContext(Tr),$s=Tr.Provider,Ir=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:u,contentAttributes:h,position:m,active:g,id:b,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),p=c.useRef(null),j=ze(b),$=c.useRef(),z=c.useRef(null),T=c.useRef(!1),E=c.useRef(!1),S=c.useRef(!0),O=ks(w,p,{width:l,position:m,defaultActive:g,forcePosition:i}),P=Jt(),{status:q,updatePosition:B,render:D,hide:F,remove:Z}=O,fe=yr(t!=="hover"&&q!=="idle",p,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),se=c.useCallback(()=>{!T.current&&q==="idle"&&(n==null||n())},[q]),ee=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&q!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=P==null?void 0:P.handleClose)==null||Me.call(P)))},[q,fe,t]),He=c.useCallback(X=>{var ge;(ge=p.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||E.current||ee()},[ee,t,a]),ke=c.useCallback(()=>{se()},[se]),re=c.useCallback(()=>{he(),$.current=setTimeout(se,us)},[he,$,se]),R=c.useCallback(()=>{he(),$.current=setTimeout(()=>ee(),_s)},[he,$,ee]),Y=c.useCallback(()=>{q==="idle"?se():ee()},[q,se,ee]),G=()=>E.current=!0,ie=()=>E.current=!1;ce(()=>{if(g){D();return}Yo()&&!d?F():Z()},[g,D,F,d]);const ye=c.useCallback(X=>{p.current!==X.currentTarget||X.propertyName!=="transform"||q==="hidden"&&Z()},[Z,q]);return ce(()=>{q!=="visible"||!p.current||(z.current=Rt(p.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,ee()}}))},[q,t,ee,a]),c.useEffect(()=>{!d&&q!=="hidden"||d&&q!=="idle"||z.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),z.current({withoutFocusReturn:!S.current}),z.current=null,S.current=!0)},[q,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=Zn(B,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[B]),c.useEffect(()=>{B()},[y,B]),c.useImperativeHandle(x,()=>({open:se,close:ee}),[se,ee]),rt({Escape:()=>ee()},[ee]),Ns([p,w],()=>{S.current=!1,ee()}),s.jsx($s,{value:{id:j,flyout:O,triggerElRef:w,flyoutElRef:p,handleClose:ee,handleOpen:se,handleFocus:ke,handleBlur:He,handleMouseEnter:re,handleMouseLeave:R,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:u,contentAttributes:h},children:o})},zs=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),r&&r()};return s.jsx(Ir,C(v({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},Es=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:u,trapFocusMode:h}=Jt();let m={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(m.onClick=u),o==="hover"&&(m.onMouseEnter=d,m.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(m.onFocus=a,m["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?m["aria-haspopup"]="dialog":h==="selection-menu"?(m["aria-haspopup"]="listbox",m["aria-autocomplete"]="list"):m["aria-haspopup"]="menu",m["aria-expanded"]=i.status!=="idle",m["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(m)})},Mr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),In=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Ts=()=>{const{mode:e}=c.useContext(In);return e},Sr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Mr),{mode:r,setMode:o,invertMode:i}=c.useContext(In);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},Is={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),u=Ts(),h=Sr(),m=!h.theme,g=t||d||h.theme,b=m?u:h.colorMode,y=r==="inverted"?b==="light"?"dark":"light":r||b,w=M(Is.root,i),p=j=>{f(j)};return ce(()=>{l(!0)},[]),ce(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",g),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[g,y,m]),s.jsx(Mr.Provider,{value:{theme:g,colorMode:y,setTheme:p},children:s.jsx("div",{className:w,"data-rs-theme":m?void 0:g,"data-rs-color-mode":m||!r&&!a?void 0:y,children:o})})},Ms=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light");ce(()=>{Uo(),document.documentElement.setAttribute("data-rs-color-mode",r),Nt(()=>{Ko()})},[r]),ce(()=>{const a=document.documentElement.getAttribute("data-rs-color-mode");a&&o(a)},[]);const i=c.useMemo(()=>({mode:r,setMode:o,invertMode:()=>{o(r==="light"?"dark":"light")}}),[r]);return s.jsx(In.Provider,{value:i,children:n})},Pr=c.createContext({}),Ss=()=>c.useContext(Pr),Qt=e=>{const{children:t,targetRef:n}=e,r=Ss(),o=n||r.scopeRef;return me.createPortal(s.jsx(lt,{children:t}),(o==null?void 0:o.current)||document.body)};function Ps(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Pr.Provider,{value:{scopeRef:n},children:t(n)})}Qt.Scope=Ps;const zt={content:"_content_bicti_1",inner:"_inner_bicti_7","--position-top":"_--position-top_bicti_13","--position-top-end":"_--position-top-end_bicti_14","--position-top-start":"_--position-top-start_bicti_15","--position-bottom":"_--position-bottom_bicti_21","--position-bottom-end":"_--position-bottom-end_bicti_22","--position-bottom-start":"_--position-bottom-start_bicti_23","--position-start":"_--position-start_bicti_39","--position-start-top":"_--position-start-top_bicti_40","--position-start-bottom":"_--position-start-bottom_bicti_41","--position-end":"_--position-end_bicti_47","--position-end-top":"_--position-end-top_bicti_48","--position-end-bottom":"_--position-end-bottom_bicti_49","--visible":"_--visible_bicti_65","--animated":"_--animated_bicti_70"},qs=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:u,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:g,contentGap:b,contentClassName:x,contentAttributes:y,trapFocusMode:w}=Jt(),{styles:p,status:j,position:$}=o,[z,T]=c.useState(!1);if(ce(()=>{T(!0)},[]),j==="idle"||!z)return null;const E=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),S=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":w==="dialog"?O="dialog":w==="selection-menu"?O="listbox":w==="action-menu"&&(O="menu");const P=s.jsx("div",{className:E,style:C(v({},p),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?u:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g,children:s.jsx("div",C(v({role:O},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:S,children:t}))}),q=zn(l.current);return s.jsx(Qt,{targetRef:q===document.body?void 0:{current:q},children:P})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx(Ir,v({},e)):s.jsx(zs,v({},e))};Xe.Trigger=Es,Xe.Content=qs;const Mn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},As={root:"_root_e7w6q_1"},Sn=e=>{if(!e)return null;const t=te("--rs-p",e);return{classNames:As.root,variables:t}},ct=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:u="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:g,instanceRef:b}=e,x=(j=e.padding)!=null?j:u==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=Sn(x),p=M(Mn.content,!!d&&Mn["content--has-width"],u&&Mn[`content--variant-${u}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:b,position:m,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:g,contentGap:f,contentClassName:p,contentAttributes:{style:v({},w==null?void 0:w.variables)},children:l})};ct.Trigger=Xe.Trigger,ct.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},Fs=e=>s.jsx(Vt,C(v({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Ls=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:u,size:h="medium",roundedCorners:m,className:g,attributes:b}=e,x=M(Be.root,g,H(Be,"--size",h),H(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=$e(h,p=>p==="large"?3:2),w=$e(h,p=>p==="large"?5:4);return s.jsx(Ae,{disabled:d,className:x,attributes:C(v({},b),{"data-rs-aligner-target":!0}),onClick:f,href:u,ref:t,children:s.jsxs(L,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(le,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(L.Item,{grow:!0,className:Be.content,children:i}),o]})})},Pn=c.forwardRef(Ls);Pn.Aligner=Fs;const Zt=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),en={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},qn=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=qe(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(ct,C(v({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ds=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(qn),[i]=Ge(),{ref:a}=rt({[i?gr:vr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[rs]:()=>{const d=Bt();d==null||d.click()}},[o==null?void 0:o.current]),l=M(en.menu,r);return s.jsx(ct.Content,{className:l,attributes:C(v({},n),{ref:a}),children:t})},Vs=e=>{const{children:t}=e;return s.jsx("div",{className:en.section,role:"group",children:t})},qr=e=>{const{onClick:t}=e,{handleClose:n}=Jt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Pn,C(v({},e),{roundedCorners:!0,className:en.item,attributes:v({role:"menuitem"},e.attributes),onClick:r}))},Os=e=>{const{children:t}=e,n=c.useRef();return s.jsx(qn.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Bs=e=>{const l=e,{children:t,attributes:n}=l,r=qe(l,["children","attributes"]),o=c.useContext(qn),[i]=Ge(),{ref:a}=rt({[i?vr:gr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(qr,C(v({},r),{attributes:C(v({},n),{ref:a}),endSlot:s.jsx(le,{autoWidth:!0,svg:Zt,className:en.arrow}),children:t}))},Ws=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Bs,{attributes:n,children:t})})};we.Trigger=ct.Trigger,we.Content=Ds,we.Section=Vs,we.Item=qr,we.SubMenu=Os,we.SubTrigger=Ws;const Ar=c.createContext({}),Fr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=qe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,m=c.useCallback(()=>d(!0),[]),g=()=>d(!1);rt({[`${fr},${hr}`]:()=>m()},[m],{ref:a});const b=p=>{n==null||n(p),u(!1),m()},x=p=>{n==null||n({value:p.value,name:o}),r==null||r({value:p.value}),u(!0)},y=p=>{var j;requestAnimationFrame(()=>{f&&(d(!1),u(!1))}),(j=i.onFocus)==null||j.call(i,p)};return s.jsx(Ar.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:g,onOpen:m,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var z=$,{ref:p}=z,j=qe(z,["ref"]);return s.jsx(wn,C(v({},i),{name:o,onChange:b,attributes:C(v({},i.attributes),{ref:p}),inputAttributes:C(v({},j),{onFocus:T=>{var E;(E=j.onFocus)==null||E.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Hs=e=>{const a=e,{value:t,onClick:n}=a,r=qe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Ar),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(v({},r),{attributes:C(v({},r.attributes),{role:"option"}),onClick:i}))};Fr.Item=Hs;const tn={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},Rs=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:u}=e,h=i?$e(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=Ct(o),g=M(tn.root,f,m==null?void 0:m.classNames,t&&tn[`--color-${t}`],n&&tn[`--variant-${n}`]),b=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:tn.img}):l?s.jsx(le,{svg:l,size:$e(o,x=>Math.ceil(x*.4))}):a;return s.jsx(L,{borderRadius:h,attributes:C(v({},u),{style:v({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:g,children:b()})},Lr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ie={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Us=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=M(Ie.container,o,r&&Ie["--container-overlap"],n&&Ie[`--container-position-${n}`]);return s.jsx("div",C(v({},i),{className:a,children:t}))},Dr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:u,onDismiss:h,dismissAriaLabel:m,className:g,attributes:b}=e,x=!!(u||f),y=o==="large"?4:3.5,w=M(Ie.root,g,r&&Ie["--rounded"],d&&Ie["--hidden"],o&&Ie[`--size-${o}`],n&&Ie[`--color-${n}`],l&&Ie[`--variant-${l}`],x&&Ie["--actionable"]);return s.jsxs(Ae,{onClick:u,href:f,className:w,attributes:b,children:[i&&s.jsx(le,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(Q,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(le,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Ae,{onClick:h,className:Ie.dismiss,as:"span",attributes:{"aria-label":m},children:s.jsx(le,{svg:Lr,size:y})})]})};Dr.Container=Us;const nn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},Vr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=M(nn.root,r,H(nn,"--size",t),n&&nn[`--color-${n}`]);return s.jsx("span",C(v({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:nn.inner})}))},ue={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},Ks=e=>{const{children:t,className:n,attributes:r}=e,o=M(ue.group,n);return s.jsx("div",C(v({},r),{className:o,role:"group",children:t}))},Ys=e=>s.jsx(Vt,C(v({},e),{side:e.side||e.position,className:[ue.aligner,e.className]})),Gs=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:u,size:h="medium",className:m,children:g,rounded:b,attributes:x,onClick:y,icon:w,endIcon:p}=e,j=(w||p)&&!g,$=M(ue.root,m,r&&ue[`--color-${r}`],n&&ue[`--variant-${n}`],H(ue,"--size",h),H(ue,"--full-width",a),o&&n!=="ghost"&&ue["--elevated"],b&&ue["--rounded"],d&&ue["--disabled"],l&&ue["--loading"],i&&ue["--highlighted"],j&&ue["--icon-only"]),z=T=>{if(!(T==="start"&&w||T==="end"&&p))return null;const P=M(ue.icon,T==="end"&&ue["--icon-position-end"]),q=$e(h,B=>B==="large"?5:B==="xlarge"?6:4);return s.jsx(le,{className:P,svg:T==="start"?w:p,size:q,autoWidth:!0})};return s.jsxs(Ae,{disabled:d||l,className:$,attributes:C(v({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:u,ref:t,children:[l&&s.jsx("div",{className:ue.loader,children:s.jsx(Vr,{size:"small",color:"inherit"})}),z("start"),g&&s.jsx("span",{className:ue.text,children:g}),z("end")]})},Ce=c.forwardRef(Gs);Ce.Group=Ks,Ce.Aligner=Ys;const Et={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Xs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:u,onClick:h}=e,m=M(Et.root,l,r&&Et["--disabled"],a&&Et[`--variant-${a}`],i&&Et[`--color-${i}`],n&&Et["--with-icon"]);return s.jsxs(Ae,{href:o,disabled:r,className:m,attributes:f,type:u,onClick:h,ref:t,children:[n&&s.jsx(le,{svg:n}),d]})},Or=c.forwardRef(Xs),Js=()=>s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),s.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),s.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Qs=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(Q,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Or,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Br=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,u]=c.useState(!1),h=M(a),m=c.Children.count(t);let g=0;const b=()=>{u(!0)};return s.jsx("nav",C(v({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(L,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=m-(d||0),p=g===0,j=g>w,$=!d||p||j||f,z=g===w;g+=1;let T=null;return $?T=x:z&&(T=s.jsx(Ce.Aligner,{children:s.jsx(Ce,{variant:"ghost",size:"small",icon:Js,onClick:b})})),T===null?null:s.jsxs(L,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&s.jsx(Q,{color:"neutral-faded",children:n||s.jsx(le,{svg:Zt,size:3})}),s.jsx(Q,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))};Br.Item=Qs;const dt={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Zs=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:u,attributes:h,as:m="div"}=e,g=!!d||!!l,b=fn("medium"),x=or(i),y=Sn(n),w=Ct(a),p=M(dt.root,b==null?void 0:b.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,g&&dt["--actionable"],o&&dt["--elevated"],r&&dt["--selected"],u),j=v(v(v(v({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return g?s.jsx(Ae,{className:p,attributes:C(v({},h),{style:j}),href:d,as:m,onClick:l,ref:t,children:s.jsx("span",{className:dt.content,children:f})}):s.jsx(m,C(v({},h),{onClick:l,href:d,ref:t,className:p,style:j,children:s.jsx("span",{className:dt.content,children:f})}))},ei=c.forwardRef(Zs),Wr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})});var ut=(e=>(e.back="back",e.forward="forward",e))(ut||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Hr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=t===ut.forward,m=t===(i?ut.back:ut.forward),g=M(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return ce(()=>{const b=n.current;if(!b||!a)return;let x;const y=Math.abs(r),w=y<=0,p=y+b.clientWidth>=b.scrollWidth-1;return(h?p:w)?(d(!1),x=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:g,"aria-hidden":"true",children:s.jsx(Ce,{onClick:o,icon:m?Zt:Wr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},ti=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,u]=c.useState(!1),[h,m]=c.useState(0),[g]=Ge(),b=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([E,S])=>{x[E]=typeof S=="number"&&S>0});const y=M(We.root,l,...H(We,"--bleed",typeof o=="number"?!0:x)),w=zo(E=>{const S=E.target;m(S.scrollLeft)},16),p=()=>{const S=getComputedStyle(b.current).gap.split(" ")[0];return Number(S.replace("px",""))},j=()=>{const E=b.current;E.scrollBy({left:E.clientWidth+p(),top:0,behavior:"smooth"})},$=()=>{const E=b.current;E.scrollBy({left:-E.clientWidth-p(),top:0,behavior:"smooth"})},z=g?j:$,T=g?$:j;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:T})),ce(()=>{u(!0)},[]),s.jsxs("section",C(v({},d),{className:y,style:v(v({},te("--rs-carousel-items",r)),te("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Hr,{isRTL:g,type:ut.back,scrollElRef:b,scrollPosition:h,onClick:z,mounted:f}),s.jsx(Hr,{isRTL:g,type:ut.forward,scrollElRef:b,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(L,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:w},children:c.Children.map(t,E=>s.jsx(L.Item,{className:We.item,as:"li",children:E}))})]}))},ni={root:"_root_1feer_1"},An=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:u,attributes:h}=e,m=M(ni.root,u);return s.jsx("input",C(v({},h),{className:m,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Rr=c.createContext(null),ri=()=>c.useContext(Rr),Ur=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:u,checked:h}=d;if(!u)return;let m=[...o];h?m.push(u):m=m.filter(g=>g!==u),t&&t({name:n,value:m,event:f})};return s.jsx(Rr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},oi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Ur,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},si=e=>{const{value:t}=e;return t!==void 0?s.jsx(Ur,v({},e)):s.jsx(oi,v({},e))},Kr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},ii=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,u=ri(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),g=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?($=u.value)==null?void 0:$.includes(n):e.checked,x=u?void 0:e.defaultChecked,y=u?u.name:e.name,w=c.useRef(null),p=M(Je.root,l,m&&Je["--error"],g&&Je["--disabled"]),j=z=>{if(!y)return;const{checked:T}=z.target,E={name:y,value:n,checked:T,event:z};r&&r(E),u!=null&&u.onChange&&u.onChange(E)};return ce(()=>{w.current.indeterminate=a||!1},[a,b]),s.jsxs("label",C(v({},d),{className:p,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(An,{className:Je.input,type:"checkbox",checked:b,defaultChecked:x,name:y,disabled:g,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(v({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(le,{svg:Kr,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},ai={root:"_root_1c40o_1"},li=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=M(ai.root,o);return s.jsx(L,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},Tt={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},ci=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=M(Tt.root,l,i&&Tt[`--variant-${i}`],n&&Tt[`--align-${n}`],o&&Tt["--hide-close"]),u=i==="media"?"div":Ce.Aligner;return s.jsxs("div",C(v({},d),{className:f,children:[t,!o&&s.jsx(u,{className:Tt.close,children:s.jsx(Ce,C(v({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Lr}))})]}))},di={root:"_root_r7flr_1"},ui=e=>{const{children:t}=e;return s.jsx("div",{className:di.root,children:t})},Yr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},_i=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=M(Yr.root,n&&Yr["--active"],r);return s.jsx(Q,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},rn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},mi=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:u,attributes:h,imageAttributes:m}=e,[g,b]=c.useState("loading"),x=fn(f),y=hn(r),w=Ct(o),p=M(rn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&rn[`--display-mode-${d}`],u),j=M(rn.image,p),$=M(rn.fallback,p),z=v(v({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=S=>{b("success"),i==null||i(S)},E=S=>{b("error"),a==null||a(S)};return c.useEffect(()=>{b("loading")},[t]),(g==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(v({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):s.jsx("div",C(v({},h),{className:$,style:z,children:l})):s.jsx("img",C(v(v({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:E,className:j,style:z}))},Fn=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:i}},fi=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Gr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),r=c.useRef(!1),o=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(r.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",r.current){const d=fi();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),t(!1)},[t,r,n]);return{scrollLocked:e,lockScroll:o,unlockScroll:i}},_t={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Xr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),u=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:g}=Gr(),{active:b,activate:x,deactivate:y}=Fn(t||!1),{active:w,activate:p,deactivate:j}=Fn(t||!1),$=yr(t,f),z=M(_t.root,w&&_t["--visible"],r&&_t["--transparent"],i),T=D=>{if(!f.current)return;const F=f.current.firstChild;if(F)return F.contains(D)},E=()=>{f.current&&(h.current=Rt(f.current))},S=()=>{h.current&&(h.current(),h.current=null)},O=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),P=D=>{u.current=!T(D.target)},q=D=>{const F=!T(D.target);u.current&&F&&!r&&O()},B=D=>{D.propertyName!=="opacity"||D.target!==D.currentTarget||w||(r||g(),y())};return rt({Escape:O},[O]),c.useEffect(()=>{t&&!b&&x(),!t&&b&&j()},[t,x,j,b]),c.useEffect(()=>{b&&(r||m(),Nt(()=>p()))},[b,p,m,r]),c.useEffect(()=>{if(b)return E(),()=>S()},[b]),c.useEffect(()=>()=>{r||g()},[g,r]),ce(()=>{d(!0)},[]),!b||!l?null:s.jsx(Qt,{children:s.jsx(Qt.Scope,{children:D=>s.jsx("div",C(v({},a),{ref:D,role:"button",tabIndex:-1,className:z,onMouseDown:P,onMouseUp:q,onTransitionEnd:B,children:s.jsx("div",{className:_t.wrapper,children:s.jsx("div",{className:_t.inner,children:s.jsx("div",{className:_t.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Ln={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Jr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Qr=()=>c.useContext(Jr),hi=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},gi=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Dn=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,u=ze(),[h,m]=c.useState(!1),[g,b]=c.useState(!1),x=Sn(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:g,setSubtitleMounted:b,id:u}),[u,g,h]);return s.jsx(Xr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const p=M(Ln.root,d,x==null?void 0:x.classNames,w&&Ln["--active"],H(Ln,"--position",a));return s.jsx(Jr.Provider,{value:y,children:s.jsx("div",C(v({},f),{style:v(v({},x==null?void 0:x.variables),te("--rs-modal-size",o)),"aria-labelledby":h?`${u}-title`:void 0,"aria-describedby":g?`${u}-subtitle`:void 0,className:p,"aria-modal":"true",role:"dialog",children:t}))})}})};Dn.Title=hi,Dn.Subtitle=gi;const It={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},vi=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=M(It.root,l,o&&It[`--color-${o}`],i&&It[`--size-${i}`],!!a&&It["--duration"]),u=r-n,h=t-n,b=`${Math.max(n,Math.min(r,h))/u*100-100}%`;return s.jsx("div",C(v({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:It.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Zr=c.createContext(null),bi=()=>c.useContext(Zr),eo=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return s.jsx(Zr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},pi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(eo,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},xi=e=>{const{value:t}=e;return t!==void 0?s.jsx(eo,v({},e)):s.jsx(pi,v({},e))},ot={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},wi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),u=bi(),h=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),g=u?u.value===n:e.checked,b=u?void 0:e.defaultChecked,x=u?u.name:e.name,y=M(ot.root,a,h&&ot["--error"],m&&ot["--disabled"]),w=p=>{if(!x)return;const{checked:j}=p.target,$={name:x,value:n,checked:j,event:p};r&&r($),u!=null&&u.onChange&&u.onChange($)};return s.jsxs("label",C(v({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(An,{className:ot.input,type:"radio",checked:g,defaultChecked:b,name:x,disabled:m,value:n,onChange:w,onFocus:o,onBlur:i,attributes:d}),s.jsx("div",{className:ot.decorator})]}),t&&s.jsx("span",{className:ot.text,children:t})]}))},to={short:4e3,long:8e3},Mt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],no={queues:Mt.reduce((e,t)=>v({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},on=c.createContext(no),yi=()=>{const{add:e,hide:t}=c.useContext(on);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Le={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},ji=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:u}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=o==="neutral"?"neutral-faded":"transparent",g=t==="small"?"span":"div",b=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(Q,{variant:"body-3",weight:"bold",as:g,children:[a," "]}),s.jsx(Q,{variant:"body-3",as:g,children:n})]}),w=s.jsxs(L,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:b?"start":"center",className:Le.toast,attributes:u,children:[i&&s.jsx(le,{size:5,svg:i,className:Le.icon}),d&&!i&&s.jsx(L.Item,{children:d}),s.jsx(L.Item,{grow:!0,children:s.jsxs(L,{direction:b?"column":"row",align:b?"start":"center",gap:3,children:[s.jsx(L.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(L,{gap:.5,children:[y,r&&s.jsx(L,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(L,{direction:"row",align:"center",gap:2,children:x.map((p,j)=>{const $=t==="large"?j===0:j===x.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return p.type===Ce?c.createElement(Ce,C(v(v({},T),p.props),{key:j})):p})})]})})]});return o==="inverted"?s.jsx(lt,{colorMode:"inverted",children:w}):w},Ci=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(on),[u,h]=c.useState(),m=c.useRef(),g=c.useRef(!1),b=c.useRef(null),x=c.useRef(null),y=r==="entered",w=M(Le.container,y&&Le["container--visible"],i===0&&Le[`container--index-${i}`],!o&&(i===1||i===2)&&Le[`container--index-${i}`],!o&&i>=3&&Le["container--index-overflow"]),p=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{p();const z=typeof a=="string"?to[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:to.short))},[d,n,a,p]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?p():j())},[o,j,p,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?b.current=Rt(x.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&br()&&(b.current(),b.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const z=()=>{g.current=!0,Nt(()=>{g.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:g.current?"0s":void 0},onTransitionEnd:$,onFocus:p,onBlur:j,children:s.jsx("span",{className:Le.wrapper,children:s.jsx(ji,C(v({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},ki=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(on),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:u}=(r==null?void 0:r[t])||{},h=M(Le.region,Le[`region--position-${t}`]),m=d.filter(p=>p.status==="entered").length;let g=0;const b=()=>{a.current=!0},x=p=>{let j=p.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(pr),j=j.parentElement;$||i(z=>!z),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?s.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((p,j)=>{const $=m-j+g-1;return p.status!=="entered"&&(g+=1),s.jsx(Ci,C(v({},p),{index:$,inspected:o||!!u}),p.id)})}):null};let Ni=0;const $i=()=>`__rs-toast-${Ni++}`,zi=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=qe(r,["position"]);return C(v({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.status!=="entering"?u:u.id===a?C(v({},u),{status:"entered"}):u)}),n;case"hide":const{id:l}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.id===l?C(v({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].filter(u=>u.id!==d)}),n}},Ei=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(zi,no.queues),i=c.useCallback(u=>{const h=$i();return console.log("add"),o({type:"add",payload:{toastProps:u,id:h}}),h},[]),a=c.useCallback(u=>{o({type:"show",payload:{id:u}})},[]),l=c.useCallback(u=>{console.log("hide"),o({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{o({type:"remove",payload:{id:u}})},[]),f=c.useMemo(()=>({queues:r,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,i,d,n]);return s.jsxs(on.Provider,{value:f,children:[t,Mt.map(u=>s.jsx(ki,{position:u},u))]})},Ti=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(yn,"true")},t=()=>{document.documentElement.removeAttribute(yn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},ac="",Ii={root:"_root_18j53_1"},Mi=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ps(n);return Ti(),s.jsx($n.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(vs,{children:s.jsx(Ei,{options:o,children:t})})})},Si=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=M(Ii.root,o);return s.jsx(Ms,{defaultMode:r,children:s.jsx(lt,{name:t,defaultName:n,className:i,children:s.jsx(Mi,C(v({},e),{children:e.children}))})})},St={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Pi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=M(St.root,!!n&&St["--with-background"],r&&St[`--position-${r}`],i),d=M(St.scrim,a);return s.jsxs("div",C(v({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:St.content,children:t})})]}))},qi=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),De={root:"_root_fqxht_1",input:"_input_fqxht_18",slot:"_slot_fqxht_48",arrow:"_arrow_fqxht_63","--size-medium":"_--size-medium_fqxht_1","--size-large":"_--size-large_fqxht_1","--size-xlarge":"_--size-xlarge_fqxht_1","--variant-faded":"_--variant-faded_fqxht_118","--variant-headless":"_--variant-headless_fqxht_127","--status-error":"_--status-error_fqxht_132","--placeholder":"_--placeholder_fqxht_147","--disabled":"_--disabled_fqxht_151","--size-medium--m":"_--size-medium--m_fqxht_1","--size-large--m":"_--size-large--m_fqxht_1","--size-xlarge--m":"_--size-xlarge--m_fqxht_1","--size-medium--l":"_--size-medium--l_fqxht_1","--size-large--l":"_--size-large--l_fqxht_1","--size-xlarge--l":"_--size-xlarge--l_fqxht_1","--size-medium--xl":"_--size-medium--xl_fqxht_1","--size-large--xl":"_--size-large--xl_fqxht_1","--size-xlarge--xl":"_--size-xlarge--xl_fqxht_1"},Ai=e=>{var B,D;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:u,icon:h,startSlot:m,size:g="medium",variant:b="outline",className:x,attributes:y}=e,[w,p]=c.useState(a===void 0?!l:!a),j=Ye(),$=ze(e.id),z=((B=j==null?void 0:j.attributes)==null?void 0:B.id)||((D=e.inputAttributes)==null?void 0:D.id)||$,T=(j==null?void 0:j.disabled)||e.disabled,E=(j==null?void 0:j.hasError)||e.hasError,S=v(v({},e.inputAttributes),j==null?void 0:j.attributes),O=M(De.root,x,g&&H(De,"--size",g),E&&De["--status-error"],T&&De["--disabled"],w&&f&&De["--placeholder"],b&&De[`--variant-${b}`]),P=F=>{const Z=F.target.value;a===void 0&&p(!Z),t&&t({name:i,value:Z,event:F})};c.useEffect(()=>{a!==void 0&&p(!a)},[a]);const q=(m||h)&&s.jsx("div",{className:De.slot,children:h?s.jsx(le,{size:$e(g,F=>F==="large"?5:F==="xlarge"?6:4),svg:h}):m});return s.jsxs("div",C(v({},y),{className:O,children:[f?s.jsxs(s.Fragment,{children:[q,s.jsxs("select",C(v({},S),{className:De.input,disabled:T,name:i,value:a,defaultValue:l,onChange:P,onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur),id:z,children:[d&&s.jsx("option",{value:"",children:d}),f.map(F=>s.jsx("option",{value:F.value,disabled:F.disabled,children:F.label},F.value))]}))]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ae,{className:De.input,disabled:T,onClick:n,attributes:C(v({},S),{onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur)}),children:[q,u||(d?s.jsx(Q,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:De.arrow,children:s.jsx(le,{svg:qi,color:T?"disabled":"neutral-faded",size:$e(g,F=>F==="large"||F==="xlarge"?5:4)})})]}))},Fi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Li=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=M(Fi.root,o);return s.jsx(L,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Di=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:u,renderValue:h}=e,m=c.useId(),g=M(Qe.thumb,i&&Qe["thumb--active"]),b=h?h({value:r}):r,x=y=>{f(+y.target.value)};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":m}),s.jsx("div",{ref:t,className:g,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:s.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",weight:"medium",children:b})})})]})},ro=c.forwardRef(Di),oo=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Vn=(e,t)=>Math.round(e/t)*t,On=e=>{var ke;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:u}=e,h=n&&e.minValue!==void 0?Vn(e.minValue,i):void 0,m=Vn(n?e.maxValue:e.value,i),g=c.useRef(null),b=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[p]=Ge(),j=Ye(),$=ze(),z=((ke=j==null?void 0:j.attributes)==null?void 0:ke.id)||$,T=`${z}-min`,E=`${z}-max`,S=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,S&&Qe["--disabled"],f),P=c.useCallback(re=>{if(!g.current)return;const R=g.current.clientWidth;let G=(re-g.current.getBoundingClientRect().left)/R;p&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Vn(ie,i)},[r,o,p,i]),q=re=>(re-o)/(r-o)*100,B=c.useCallback((re,R)=>{if(!n)return;const Y=R!=null&&R.commit?l:a;Y==null||Y({minValue:re,maxValue:m,name:t})},[m,t,n]),D=c.useCallback((re,R)=>{if(n){const G=R!=null&&R.commit?l:a;G==null||G({minValue:h,maxValue:re,name:t});return}const Y=R!=null&&R.commit?l:a;Y==null||Y({value:re,name:t})},[h,t,n]),F=({nativeEvent:re})=>{if(S)return;let R,Y;const G=oo(re),ie=P(G);[{ref:b,id:T},{ref:x,id:E}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(R===void 0||ge<=R)&&(R=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&B(ie),Y===E&&D(ie),w(Y))},Z=()=>{S||w(T)},fe=()=>{S||w(E)},he=c.useCallback(()=>{y===T&&h!==void 0&&B(h,{commit:!0}),y===E&&D(m,{commit:!0}),w(null)},[h,m,B,D,y,T,E]),se=c.useCallback(re=>{if(!y)return;const R=oo(re),Y=P(R);if(Y===void 0)return;let G=y;y===T&&Y>m&&(G=E),y===E&&h&&Y<h&&(G=T),G===T&&B(Y),G===E&&D(Y),y!==G&&w(G)},[y,h,m,P,D,B,E,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",se),window.addEventListener("touchmove",se),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se)}),[he,se]);const ee=h&&q(h),He=q(m);return s.jsxs("div",C(v({},u),{className:O,onMouseDown:F,onTouchStart:F,children:[s.jsx("div",{className:Qe.bar,ref:g,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${ee||0}%`,width:`${He-(ee||0)}%`}})}),h!==void 0&&ee!==void 0&&s.jsx(ro,{id:T,active:T===y,name:t,disabled:S,onChange:B,value:h,onDragStart:Z,position:ee,max:r,min:o,ref:b,renderValue:d}),s.jsx(ro,{id:E,active:E===y,name:t,disabled:S,onChange:D,value:m,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Vi=e=>{const{min:t,max:n,onChange:r,range:o}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(o?n:t),[l,d]=c.useState(i),[f,u]=c.useState(a),h=g=>{o||(u(g.value),r==null||r(g))},m=g=>{o&&(d(g.minValue),u(g.maxValue),r==null||r(g))};return o?s.jsx(On,C(v({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):s.jsx(On,C(v({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Oi=e=>{const o=e,{min:t=0,max:n=100}=o,r=qe(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?s.jsx(On,C(v({},r),{min:t,max:n})):s.jsx(Vi,C(v({},r),{min:t,max:n}))},Bi={verticalDivider:"_verticalDivider_oa23g_1"},Wi=e=>{const{title:t,subtitle:n,children:r,direction:o,className:i,attributes:a,labelDisplay:l,step:d,completed:f,active:u,last:h}=e,m=l&&$e(l,b=>b==="hidden"),g=s.jsx(L,{gap:3,grow:!0,children:s.jsxs(L.Item,{children:[s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),s.jsx(Q,{variant:"caption-1",color:"neutral-faded",children:n})]})});return s.jsxs(L,{children:[s.jsxs(L,{attributes:a,className:i,direction:"row",gap:2,align:"center",position:"static",children:[s.jsxs(L.Item,{children:[s.jsx(L,{align:"center",justify:"center",backgroundColor:u||f?"primary":"neutral-faded",borderColor:u||f?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:s.jsx(Q,{variant:"body-3",weight:u?"bold":"medium",children:f?s.jsx(le,{svg:Kr,size:4}):d})}),o==="column"&&!h&&s.jsx(At,{vertical:!0,className:Bi.verticalDivider})]}),l?s.jsx(Lt,{hide:m,children:g}):g]}),o==="column"&&r&&s.jsx(lr,{active:u,children:s.jsx(L,{paddingStart:10,paddingTop:2,children:r})})]})},Hi=e=>null,so=e=>{const{children:t,direction:n="row",activeId:r,labelDisplay:o,className:i,attributes:a}=e,l=n==="column",d=c.Children.count(t);return s.jsx(L,{attributes:a,direction:n,align:l?"stretch":"center",className:i,gap:3,wrap:!1,children:c.Children.map(t,(f,u)=>{const h=f.props.id||`${u}`;return s.jsxs(c.Fragment,{children:[s.jsx(Wi,C(v({},f.props),{id:f.props.id||`${u}`,active:(r==null?void 0:r.toString())===h,step:u+1,last:u===d-1,direction:n,labelDisplay:o})),!l&&u<d-1&&s.jsx(L,{grow:!0,children:s.jsx(At,{})})]},u)})})};so.Item=Hi;const mt={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Ri=e=>{var p;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:u,attributes:h}=e,m=M(mt.root,o&&mt[`root--size-${o}`],i&&mt["root--reversed"],u),g=Ye(),b=ze((g==null?void 0:g.attributes.id)||e.id||((p=e.inputAttributes)==null?void 0:p.id)),x=v(v({},e.inputAttributes),g==null?void 0:g.attributes),y=(g==null?void 0:g.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(v({},h),{className:m,children:[s.jsx("input",C(v({type:"checkbox"},x),{className:mt.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:b})),s.jsx("span",{className:mt.area,"aria-hidden":"true",children:s.jsx("span",{className:mt.thumb})}),t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t})]}))},Ui={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Ki=e=>{if(!e)return null;const t=te("--rs-min-w",e);return{classNames:H(Ui,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},io=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:u}=e,h=e.width==="auto"?"0px":e.width,m=hn(h),g=Ki(t||h),b=M(Ze.cell,m==null?void 0:m.classNames,g==null?void 0:g.classNames,o&&Ze[`cell--align-${o}`]),x=v(v(v(v({},m==null?void 0:m.variables),g==null?void 0:g.variables),te("--rs-table-p-vertical",d!=null?d:a)),te("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(v({},u),{className:b,rowSpan:n,colSpan:r,style:x,children:f}))},Yi=e=>s.jsx(io,C(v({},e),{tagName:"td"})),Gi=e=>s.jsx(io,C(v({},e),{tagName:"th"})),Xi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(v({},r),{className:o,children:n}))},Bn=e=>s.jsx("tbody",{children:e.children}),ao=e=>s.jsx("thead",{children:e.children}),ft=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(v({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Bn||l.type===ao)?t:s.jsx(Bn,{children:t})})}))};ft.Cell=Yi,ft.Heading=Gi,ft.Row=Xi,ft.Body=Bn,ft.Head=ao;const lo=c.createContext({}),Ji=lo.Provider,Wn=e=>{const r=c.useContext(lo),{id:t}=r,n=qe(r,["id"]);return C(v({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},co=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,u=ze(),h=c.useRef(null),m=c.useRef(h.current),g=c.useRef(null),[b,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&o&&o({value:w,name:l})};return s.jsx(Ji,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:u,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:g,selection:b,setSelection:x},children:t})},Qi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),i=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return s.jsx(co,C(v({},e),{onChange:i,onSilentChange:a,value:r,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},Zi=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:u,value:h,selection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(n),y=c.useRef(null),w=h===n,p=w&&m.status==="idle",j=M(ne.item,p&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=g.current,g.current=y.current},[g,b]),E=()=>{var F,Z,fe;if(i&&!l)return;const S=x.current,O=(F=y.current)==null?void 0:F.parentElement,P=(Z=g.current)==null?void 0:Z.parentElement;if(T(),l&&l({value:n,name:f}),!S||!O||!P||S.scrollWidth===S.clientWidth)return;const q=O.offsetLeft<P.offsetLeft,B=(O.offsetLeft-S.scrollLeft)/S.clientWidth;(q?B<.3:B>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),s.jsx("div",C(v({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Ae,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:E,className:ne.button,as:f?"label":void 0,attributes:C(v({},!$&&z),{"aria-controls":d}),children:[f&&s.jsx(An,{type:"radio",name:f,value:n,checked:p,onChange:E,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(le,{svg:o,className:ne.icon,size:4}),r&&s.jsx(Q,{variant:u==="large"?"body-2":"body-3",children:r})]})]})}))},uo=c.forwardRef(Zi),_o=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:_o(e.parentElement,t),ea=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:u,selection:h,setSelection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(),[y]=Ge(),[w,p]=c.useState(null),j=M(ne.root,u&&ne[`--size-${u}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=M(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),z=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},E=()=>{m(P=>C(v({},P),{status:"idle"}))},S=c.useCallback(P=>{if(!x.current)return null;const q=_o(P,x.current);return q?{scaleX:q.clientWidth,scaleY:q.clientHeight,top:q.offsetTop,left:q.offsetLeft}:null},[x]),{ref:O}=rt({"ArrowLeft, ArrowUp":P=>{d||(P.preventDefault(),as(x.current))},"ArrowRight, ArrowDown":P=>{d||(P.preventDefault(),is(x.current))},Home:P=>{d||(P.preventDefault(),ls(x.current))},End:P=>{d||(P.preventDefault(),cs(x.current))}});return ce(()=>{if(o)return;const P=c.Children.toArray(t)[0];!P||P.type!==uo||i(P.props.value)},[o]),ce(()=>{if(!b.current||b.current===g.current)return;const P=S(b.current);P&&m(C(v({},P),{status:"prepared"}))},[o,S]),ce(()=>{if(h.status!=="prepared"||!g.current)return;const P=S(g.current);P&&m(C(v({},P),{status:"animated"}))},[h]),ce(()=>{const P=x.current;if(!P||f==="column")return;const q=()=>{P.clientWidth<P.scrollWidth||p(null);const F=P.scrollLeft*(y?-1:1),Z=F>1,fe=F+P.clientWidth<P.scrollWidth-1;if(fe&&Z)return p("both");if(Z)return p("start");if(fe)return p("end")},B=Eo(q,100);return requestAnimationFrame(()=>{q()}),window.addEventListener("resize",B),P.addEventListener("scroll",B),()=>{window.removeEventListener("resize",B),P.removeEventListener("scroll",B)}},[y]),s.jsxs("div",C(v({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(P,q)=>P?s.jsx("div",{className:ne.listItem,children:P},P.props.value||P.key||q):null),s.jsx("div",{onTransitionEnd:E,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&s.jsx("span",{className:ne.prev,children:s.jsx(Ce,{onClick:T,size:"small",icon:Wr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(Ce,{onClick:z,size:"small",icon:Zt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},ta=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=Wn(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},sn=e=>{const{value:t}=e;return t!==void 0?s.jsx(co,v({},e)):s.jsx(Qi,v({},e))};sn.Item=uo,sn.List=ea,sn.Panel=ta;const ht={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},mo=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:u,attributes:h}=e,m=Ye(),g=ze(e.id),b=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||g,x=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,w=v(v({},e.inputAttributes),m==null?void 0:m.attributes),p=M(ht.root,d&&H(ht,"--size",d),y&&ht["--status-error"],x&&ht["--disabled"],f&&ht[`--variant-${f}`],u),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(v({},h),{"data-rs-aligner-target":!0,className:p,children:s.jsx("textarea",C(v({rows:3},w),{className:ht.input,disabled:x,name:o,placeholder:l,value:i,defaultValue:a,onChange:j,onFocus:n||(w==null?void 0:w.onFocus),onBlur:r||(w==null?void 0:w.onBlur),id:b}))}))};mo.Aligner=Vt;const Hn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Rn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=M(Hn.item,!i&&Hn["item--full-width"],r);return s.jsxs(L,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Hn.marker,children:n}),s.jsx(L.Item,{grow:!0,children:t})]})},fo=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return s.jsx("ul",C(v({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Rn?i:s.jsx(Rn,{children:i},a))}))};fo.Item=Rn;const na={root:"_root_9090g_1"},ra=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:i,position:a="bottom",active:l}=e;return s.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:i,triggerType:"hover",children:[s.jsx(Xe.Trigger,{children:r}),s.jsx(Xe.Content,{children:s.jsx(lt,{colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",className:na.root,children:n})})})]})},gt={m:660,l:900,xl:1280},ho={s:`(max-width: ${gt.m-1}px)`,m:`(min-width: ${gt.m}px) and (max-width: ${gt.l-1}px)`,l:`(min-width: ${gt.l}px) and (max-width: ${gt.xl-1}px)`,xl:`(min-width: ${gt.xl}px)`},oa=e=>{const{defaultViewport:t}=c.useContext($n),[n,r]=c.useState(t);return ce(()=>{const i=Object.keys(ho).map(a=>{const l=window.matchMedia(ho[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},sa=e=>{const{w:t="auto",h:n=50,children:r}=e;return s.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:r})};N.Accordion=bn,N.ActionBar=Xo,N.Actionable=Ae,N.Alert=Qo,N.Autocomplete=Fr,N.Avatar=Rs,N.Badge=Dr,N.Breadcrumbs=Br,N.Button=Ce,N.Card=ei,N.Carousel=ti,N.Checkbox=ii,N.CheckboxGroup=si,N.Container=li,N.Dismissible=ci,N.Divider=At,N.DropdownMenu=we,N.FormControl=Dt,N.Hidden=Lt,N.HiddenVisually=ui,N.Hotkey=_i,N.Icon=le,N.Image=mi,N.Link=Or,N.Loader=Vr,N.MenuItem=Pn,N.Modal=Dn,N.Overlay=Xr,N.Placeholder=sa,N.Popover=ct,N.Progress=vi,N.Radio=wi,N.RadioGroup=xi,N.Reshaped=Si,N.Scrim=Pi,N.Select=Ai,N.Skeleton=Li,N.Slider=Oi,N.Stepper=so,N.Switch=Ri,N.Table=ft,N.Tabs=sn,N.Text=Q,N.TextArea=mo,N.TextField=wn,N.Theme=lt,N.Timeline=fo,N.Tooltip=ra,N.View=L,N.classNames=M,N.responsiveClassNames=H,N.responsivePropDependency=$e,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=ce,N.useRTL=Ge,N.useResponsiveClientValue=oa,N.useScrollLock=Gr,N.useTheme=Sr,N.useToast=yi,N.useToggle=Fn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+I+">.")}return k}}function po(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var I=ua(k);if(bo[I])return;bo[I]=!0;var A="";_&&_._owner&&_._owner!==Yn.current&&(A=" It was passed a child from "+D(_._owner.type)+"."),pt(_),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,A),pt(null)}}function xo(_,k){{if(typeof _!="object")return;if(qt(_))for(var I=0;I<_.length;I++){var A=_[I];Xn(A)&&po(A,k)}else if(Xn(_))_._store&&(_._store.validated=!0);else if(_){var U=y(_);if(typeof U=="function"&&U!==_.entries)for(var J=U.call(_),W;!(W=J.next()).done;)Xn(W.value)&&po(W.value,k)}}}function _a(_){{var k=_.type;if(k==null||typeof k=="string")return;var I;if(typeof k=="function")I=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===d||k.$$typeof===h))I=k.propTypes;else return;if(I){var A=D(k);an(I,_.props,"prop",A,_)}else if(k.PropTypes!==void 0&&!Gn){Gn=!0;var U=D(k);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ma(_){{for(var k=Object.keys(_.props),I=0;I<k.length;I++){var A=k[I];if(A!=="children"&&A!=="key"){pt(_),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),pt(null);break}}_.ref!==null&&(pt(_),p("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function wo(_,k,I,A,U,J){{var W=P(_);if(!W){var V="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=da(U);be?V+=be:V+=vo();var oe;_===null?oe="null":qt(_)?oe="array":_!==void 0&&_.$$typeof===t?(oe="<"+(D(_.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof _,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,V)}var ae=ca(_,k,I,U,J);if(ae==null)return ae;if(W){var Ne=k.children;if(Ne!==void 0)if(A)if(qt(Ne)){for(var xt=0;xt<Ne.length;xt++)xo(Ne[xt],_);Object.freeze&&Object.freeze(Ne)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xo(Ne,_)}return _===r?ma(ae):_a(ae),ae}}function fa(_,k,I){return wo(_,k,I,!0)}function ha(_,k,I){return wo(_,k,I,!1)}var ga=ha,va=fa;yt.Fragment=r,yt.jsx=ga,yt.jsxs=va}()),yt}process.env.NODE_ENV==="production"?xe.exports=No():xe.exports=$o();var s=xe.exports;const Zn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function zo(e,t){const n=Zn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const Eo=(e,t)=>{let n=!1;return(...r)=>{n||(e(...r),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...r)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const r=M(...n);return r?`${t} ${r}`:t}return n?`${t} ${n}`:t},""),er=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},i=typeof e=="string"?e:e(t);return t===!0&&r||o?i:t===!0&&!r?`${i}-true`:t===!1&&!r?`${i}-false`:t!==void 0?`${i}-${t}`:null},H=(e,t,n,r)=>{if(typeof n!="object"){const o=er(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,i)=>{const a=i==="s",l=er(t,n[i],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${i}`;return[...o,e[`${l}${d}`]]},[])},te=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,r)=>{const o=t[r];return o===void 0||o===!1?n:C(v({},n),{[`${e}-${r}`]:o})},{}),To=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,$e=(e,t)=>To(e)?Object.keys(e).reduce((r,o)=>{const i=e[o];return i==null?r:C(v({},r),{[o]:t(i,o)})},{}):t(e,"s"),ze=e=>{const t=c.useId();return e||t},_n=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),tr=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:i,className:a,attributes:l}=e,d=M(a),f=ze(),u=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:i}),[r]);return s.jsx("div",C(v({},l),{className:d,children:s.jsx(_n.Provider,{value:u,children:t})}))},Io=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=qe(l,["defaultActive","onToggle"]),[o,i]=c.useState(t||!1),a=d=>{i(d),n==null||n(d)};return s.jsx(tr,C(v({},r),{onToggle:a,active:o}))},jt={root:"_root_1ao0i_1","--disabled":"_--disabled_1ao0i_28","--full-width":"_--full-width_1ao0i_37","--inset":"_--inset_1ao0i_45","--radius-inherit":"_--radius-inherit_1ao0i_49"},Mo=(e,t)=>{const{children:n,href:r,onClick:o,type:i,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:u,className:h,attributes:m}=e,g=M(jt.root,h,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],u&&jt["--full-width"]),b=v({},m),x=c.useRef(!1),y=o||(m==null?void 0:m.onClick),w=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),p=!!(r||m!=null&&m.href),j=!!(y||w||i);let $;if(p)b.href=a?void 0:r||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",b.type=i||(m==null?void 0:m.type)||"button",b.disabled=a||(m==null?void 0:m.disabled);else if(j){const S=!(f==="label")||y||w;$=f||"span",b.role=S?"button":void 0,b.tabIndex=S?0:void 0}else $=f||"span";const z=E=>{var S;a||x.current||(o==null||o(E),(S=m==null?void 0:m.onClick)==null||S.call(m,E))},T=E=>{if(b.role==="button"||p)return;const O=E.key===" ",P=E.key==="Enter";!O&&!P||(E.preventDefault(),z(E),x.current=!0,requestAnimationFrame(()=>{x.current=!1}))};return s.jsx($,C(v({ref:t},b),{className:g,onClick:z,onKeyDown:T,children:n}))},Ae=c.forwardRef(Mo),mn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},At=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,i=M(mn.root,r,n&&mn["--blank"],...H(mn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),s.jsx("div",C(v({},o),{role:"separator","aria-orientation":a,className:i}))},Ft={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},Lt=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:i}=e,a=M(Ft.root,...H(Ft,"--hidden",o),r&&Ft["--visibility"],i&&Ft[`--display-${i}`]);return typeof n=="function"?s.jsx(s.Fragment,{children:n(a)}):s.jsx(t,{className:a,children:n})},K={root:"_root_ewdir_1",item:"_item_ewdir_10","--padding":"_--padding_ewdir_18","--padding-top":"_--padding-top_ewdir_23","--padding-bottom":"_--padding-bottom_ewdir_27","--padding-start":"_--padding-start_ewdir_31","--padding-end":"_--padding-end_ewdir_35","--animated":"_--animated_ewdir_39","--align-text-start":"_--align-text-start_ewdir_1","--align-text-center":"_--align-text-center_ewdir_1","--align-text-end":"_--align-text-end_ewdir_1","--bg-neutral":"_--bg-neutral_ewdir_1","--bg-positive":"_--bg-positive_ewdir_1","--bg-critical":"_--bg-critical_ewdir_1","--bg-primary":"_--bg-primary_ewdir_1","--bg-neutral-faded":"_--bg-neutral-faded_ewdir_1","--bg-positive-faded":"_--bg-positive-faded_ewdir_1","--bg-critical-faded":"_--bg-critical-faded_ewdir_1","--bg-primary-faded":"_--bg-primary-faded_ewdir_1","--bg-page":"_--bg-page_ewdir_1","--bg-page-faded":"_--bg-page-faded_ewdir_1","--bg-disabled":"_--bg-disabled_ewdir_1","--bg-disabled-faded":"_--bg-disabled-faded_ewdir_1","--bg-elevation-base":"_--bg-elevation-base_ewdir_1","--bg-elevation-raised":"_--bg-elevation-raised_ewdir_1","--bg-elevation-overlay":"_--bg-elevation-overlay_ewdir_1","--bg-white":"_--bg-white_ewdir_65","--bg-black":"_--bg-black_ewdir_70","--shadow-raised":"_--shadow-raised_ewdir_75","--shadow-overlay":"_--shadow-overlay_ewdir_79","--bd":"_--bd_ewdir_83","--bd-neutral-faded":"_--bd-neutral-faded_ewdir_1","--bd-neutral":"_--bd-neutral_ewdir_1","--bd-positive":"_--bd-positive_ewdir_1","--bd-positive-faded":"_--bd-positive-faded_ewdir_1","--bd-critical":"_--bd-critical_ewdir_1","--bd-critical-faded":"_--bd-critical-faded_ewdir_1","--bd-primary":"_--bd-primary_ewdir_1","--bd-primary-faded":"_--bd-primary-faded_ewdir_1","--bd-disabled":"_--bd-disabled_ewdir_1","--bd-transparent":"_--bd-transparent_ewdir_94","--overflow-hidden":"_--overflow-hidden_ewdir_98","--divided":"_--divided_ewdir_102","--flex":"_--flex_ewdir_106","--direction-column":"_--direction-column_ewdir_1","item--gap-before":"_item--gap-before_ewdir_118","item--gap-auto":"_item--gap-auto_ewdir_122","--direction-column-reverse":"_--direction-column-reverse_ewdir_1","--direction-row":"_--direction-row_ewdir_1","--direction-row-reverse":"_--direction-row-reverse_ewdir_1","--nowrap":"_--nowrap_ewdir_177","--wrap":"_--wrap_ewdir_185","--nowrap-false--m":"_--nowrap-false--m_ewdir_1","--wrap-true--m":"_--wrap-true--m_ewdir_1","--nowrap-true--m":"_--nowrap-true--m_ewdir_1","--wrap-false--m":"_--wrap-false--m_ewdir_1","--nowrap-false--l":"_--nowrap-false--l_ewdir_1","--wrap-true--l":"_--wrap-true--l_ewdir_1","--nowrap-true--l":"_--nowrap-true--l_ewdir_1","--wrap-false--l":"_--wrap-false--l_ewdir_1","--nowrap-false--xl":"_--nowrap-false--xl_ewdir_1","--wrap-true--xl":"_--wrap-true--xl_ewdir_1","--nowrap-true--xl":"_--nowrap-true--xl_ewdir_1","--wrap-false--xl":"_--wrap-false--xl_ewdir_1","--align-start":"_--align-start_ewdir_1","--align-end":"_--align-end_ewdir_1","--align-center":"_--align-center_ewdir_1","--align-stretch":"_--align-stretch_ewdir_1","--align-baseline":"_--align-baseline_ewdir_1","--justify-start":"_--justify-start_ewdir_1","--justify-end":"_--justify-end_ewdir_1","--justify-center":"_--justify-center_ewdir_1","--justify-space-between":"_--justify-space-between_ewdir_1",divider:"_divider_ewdir_244","item--grow":"_item--grow_ewdir_248","item--columns":"_item--columns_ewdir_266","item--columns-1":"_item--columns-1_ewdir_1","item--columns-2":"_item--columns-2_ewdir_1","item--columns-3":"_item--columns-3_ewdir_1","item--columns-4":"_item--columns-4_ewdir_1","item--columns-5":"_item--columns-5_ewdir_1","item--columns-6":"_item--columns-6_ewdir_1","item--columns-7":"_item--columns-7_ewdir_1","item--columns-8":"_item--columns-8_ewdir_1","item--columns-9":"_item--columns-9_ewdir_1","item--columns-10":"_item--columns-10_ewdir_1","item--columns-11":"_item--columns-11_ewdir_1","item--columns-12":"_item--columns-12_ewdir_1","item--columns-auto":"_item--columns-auto_ewdir_287","item--columns-1--m":"_item--columns-1--m_ewdir_1","item--columns-auto--m":"_item--columns-auto--m_ewdir_1","item--columns-2--m":"_item--columns-2--m_ewdir_1","item--columns-3--m":"_item--columns-3--m_ewdir_1","item--columns-4--m":"_item--columns-4--m_ewdir_1","item--columns-5--m":"_item--columns-5--m_ewdir_1","item--columns-6--m":"_item--columns-6--m_ewdir_1","item--columns-7--m":"_item--columns-7--m_ewdir_1","item--columns-8--m":"_item--columns-8--m_ewdir_1","item--columns-9--m":"_item--columns-9--m_ewdir_1","item--columns-10--m":"_item--columns-10--m_ewdir_1","item--columns-11--m":"_item--columns-11--m_ewdir_1","item--columns-12--m":"_item--columns-12--m_ewdir_1","item--columns-1--l":"_item--columns-1--l_ewdir_1","item--columns-auto--l":"_item--columns-auto--l_ewdir_1","item--columns-2--l":"_item--columns-2--l_ewdir_1","item--columns-3--l":"_item--columns-3--l_ewdir_1","item--columns-4--l":"_item--columns-4--l_ewdir_1","item--columns-5--l":"_item--columns-5--l_ewdir_1","item--columns-6--l":"_item--columns-6--l_ewdir_1","item--columns-7--l":"_item--columns-7--l_ewdir_1","item--columns-8--l":"_item--columns-8--l_ewdir_1","item--columns-9--l":"_item--columns-9--l_ewdir_1","item--columns-10--l":"_item--columns-10--l_ewdir_1","item--columns-11--l":"_item--columns-11--l_ewdir_1","item--columns-12--l":"_item--columns-12--l_ewdir_1","item--columns-1--xl":"_item--columns-1--xl_ewdir_1","item--columns-auto--xl":"_item--columns-auto--xl_ewdir_1","item--columns-2--xl":"_item--columns-2--xl_ewdir_1","item--columns-3--xl":"_item--columns-3--xl_ewdir_1","item--columns-4--xl":"_item--columns-4--xl_ewdir_1","item--columns-5--xl":"_item--columns-5--xl_ewdir_1","item--columns-6--xl":"_item--columns-6--xl_ewdir_1","item--columns-7--xl":"_item--columns-7--xl_ewdir_1","item--columns-8--xl":"_item--columns-8--xl_ewdir_1","item--columns-9--xl":"_item--columns-9--xl_ewdir_1","item--columns-10--xl":"_item--columns-10--xl_ewdir_1","item--columns-11--xl":"_item--columns-11--xl_ewdir_1","item--columns-12--xl":"_item--columns-12--xl_ewdir_1","--direction-column--m":"_--direction-column--m_ewdir_1","--direction-column-reverse--m":"_--direction-column-reverse--m_ewdir_1","--direction-row--m":"_--direction-row--m_ewdir_1","--direction-row-reverse--m":"_--direction-row-reverse--m_ewdir_1","--align-start--m":"_--align-start--m_ewdir_1","--align-end--m":"_--align-end--m_ewdir_1","--align-center--m":"_--align-center--m_ewdir_1","--align-stretch--m":"_--align-stretch--m_ewdir_1","--align-baseline--m":"_--align-baseline--m_ewdir_1","--justify-start--m":"_--justify-start--m_ewdir_1","--justify-end--m":"_--justify-end--m_ewdir_1","--justify-center--m":"_--justify-center--m_ewdir_1","--justify-space-between--m":"_--justify-space-between--m_ewdir_1","item--grow-true--m":"_item--grow-true--m_ewdir_1","item--grow-false--m":"_item--grow-false--m_ewdir_1","--direction-column--l":"_--direction-column--l_ewdir_1","--direction-column-reverse--l":"_--direction-column-reverse--l_ewdir_1","--direction-row--l":"_--direction-row--l_ewdir_1","--direction-row-reverse--l":"_--direction-row-reverse--l_ewdir_1","--align-start--l":"_--align-start--l_ewdir_1","--align-end--l":"_--align-end--l_ewdir_1","--align-center--l":"_--align-center--l_ewdir_1","--align-stretch--l":"_--align-stretch--l_ewdir_1","--align-baseline--l":"_--align-baseline--l_ewdir_1","--justify-start--l":"_--justify-start--l_ewdir_1","--justify-end--l":"_--justify-end--l_ewdir_1","--justify-center--l":"_--justify-center--l_ewdir_1","--justify-space-between--l":"_--justify-space-between--l_ewdir_1","item--grow-true--l":"_item--grow-true--l_ewdir_1","item--grow-false--l":"_item--grow-false--l_ewdir_1","--direction-column--xl":"_--direction-column--xl_ewdir_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_ewdir_1","--direction-row--xl":"_--direction-row--xl_ewdir_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_ewdir_1","--align-start--xl":"_--align-start--xl_ewdir_1","--align-end--xl":"_--align-end--xl_ewdir_1","--align-center--xl":"_--align-center--xl_ewdir_1","--align-stretch--xl":"_--align-stretch--xl_ewdir_1","--align-baseline--xl":"_--align-baseline--xl_ewdir_1","--justify-start--xl":"_--justify-start--xl_ewdir_1","--justify-end--xl":"_--justify-end--xl_ewdir_1","--justify-center--xl":"_--justify-center--xl_ewdir_1","--justify-space-between--xl":"_--justify-space-between--xl_ewdir_1","item--grow-true--xl":"_item--grow-true--xl_ewdir_1","item--grow-false--xl":"_item--grow-false--xl_ewdir_1"},nr={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},fn=e=>e?{classNames:[nr.root,...H(nr,"--radius",e)]}:null,rr={root:"_root_o5mer_1","--bleed":"_--bleed_o5mer_10","--bleed-true--m":"_--bleed-true--m_o5mer_1","--bleed-false--m":"_--bleed-false--m_o5mer_1","--bleed-true--l":"_--bleed-true--l_o5mer_1","--bleed-false--l":"_--bleed-false--l_o5mer_1","--bleed-true--xl":"_--bleed-true--xl_o5mer_1","--bleed-false--xl":"_--bleed-false--xl_o5mer_1"},or=e=>{if(e===void 0)return null;const t=[rr.root,...H(rr,"--bleed",$e(e,r=>typeof r=="number"&&r>0))],n=te("--rs-bleed",e);return{classNames:t,variables:n}},So={literal:"_literal_1a6gk_1",unit:"_unit_1a6gk_5","literal--m":"_literal--m_1a6gk_1","unit--m":"_unit--m_1a6gk_1","literal--l":"_literal--l_1a6gk_1","unit--l":"_unit--l_1a6gk_1","literal--xl":"_literal--xl_1a6gk_1","unit--xl":"_unit--xl_1a6gk_1"},hn=e=>{if(!e)return null;const t=te("--rs-w",e);return{classNames:H(So,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Po={literal:"_literal_ea0g1_1",unit:"_unit_ea0g1_2","literal--m":"_literal--m_ea0g1_1","unit--m":"_unit--m_ea0g1_1","literal--l":"_literal--l_ea0g1_1","unit--l":"_unit--l_ea0g1_1","literal--xl":"_literal--xl_ea0g1_1","unit--xl":"_unit--xl_ea0g1_1"},Ct=e=>{if(!e)return null;const t=te("--rs-h",e);return{classNames:H(Po,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},qo={literal:"_literal_ezw0c_1",unit:"_unit_ezw0c_5","literal--m":"_literal--m_ezw0c_1","unit--m":"_unit--m_ezw0c_1","literal--l":"_literal--l_ezw0c_1","unit--l":"_unit--l_ezw0c_1","literal--xl":"_literal--xl_ezw0c_1","unit--xl":"_unit--xl_ezw0c_1"},Ao=e=>{if(!e)return null;const t=te("--rs-max-w",e);return{classNames:H(qo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Fo={literal:"_literal_kt8jw_1",unit:"_unit_kt8jw_5","literal--m":"_literal--m_kt8jw_1","unit--m":"_unit--m_kt8jw_1","literal--l":"_literal--l_kt8jw_1","unit--l":"_unit--l_kt8jw_1","literal--xl":"_literal--xl_kt8jw_1","unit--xl":"_unit--xl_kt8jw_1"},Lo=e=>{if(!e)return null;const t=te("--rs-max-h",e);return{classNames:H(Fo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Do={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},Vo=e=>e?{classNames:H(Do,"--position",e)}:null,Oo={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},kt=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",r=`--rs-inset${n}`,o=te(r,e);return{classNames:H(Oo,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},Bo={root:"_root_i342i_1"},Wo=e=>{if(!e)return null;const t=te("--rs-ratio",e);return{classNames:Bo.root,variables:t}},sr=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:i,children:a,className:l,attributes:d}=e,f=M(K.item,l,r==="auto"&&K["item--gap-auto"],r!==void 0&&K["item--gap-before"],t&&K["item--columns"],...H(K,"item--grow",n),...H(K,"item--columns",t)),u=v(v({},te("--rs-view-item-order",i)),te("--rs-view-item-gap-before",r));return s.jsx(o,C(v({},d),{style:v(v({},d==null?void 0:d.style),u),className:f,children:a}))},L=e=>{const{align:t,justify:n,wrap:r,gap:o,height:i,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:u,paddingInline:h,paddingBlock:m,paddingBottom:g,paddingEnd:b,paddingStart:x,paddingTop:y,bleed:w,animated:p,backgroundColor:j,borderColor:$,borderRadius:z,shadow:T,textAlign:E,overflow:S,position:O="relative",inset:P,insetTop:q,insetBottom:B,insetStart:D,insetEnd:F,zIndex:Z,grow:fe,as:he="div",children:se,divided:ee,className:He,attributes:ke}=e;let re=!!t||!!n||!!o||!!e.direction;const R=e.direction||(re?"column":void 0),Y=fn(z),G=or(w),ie=hn(a),ye=Ct(i),X=Ao(f),pe=Lo(d),ge=Vo(O),Me=kt(P),Re=kt(q,"top"),et=kt(B,"bottom"),tt=kt(D,"start"),Se=kt(F,"end"),Pe=Wo(l);let Pt=0,st;const vt=({className:ve,key:de})=>{const Ve=M(K.divider,ve);let _e=!1;return typeof R=="string"&&R.startsWith("row")?_e=!0:R&&(_e=Object.keys(R).reduce((Oe,Ue)=>{const je=R[Ue];return je?C(v({},Oe),{[Ue]:je.startsWith("row")}):Oe},{})),s.jsx("div",{className:Ve,children:s.jsx(At,{vertical:_e,blank:!0})},`${de}-divider`)},an=({className:ve,child:de,index:Ve})=>{var ln,cn,dn;const _e=de.type===sr,bt=de.type===L,Oe=de.key||Ve,Ue=!!Ve&&ee&&vt({className:ve,key:Oe});let je;return _e?je=c.cloneElement(de,{className:M(ve,de.props.className)}):ve||!c.isValidElement(de)?je=s.jsx("div",{className:ve,children:de},Oe):je=de,_e&&((ln=de.props)!=null&&ln.grow)&&(st=de.props.grow),_e&&((cn=de.props)==null?void 0:cn.gap)==="auto"&&(st=!0),(_e||bt)&&((dn=de.props)!=null&&dn.grow)&&(re=!0),[Ue,je]},Un=c.Children.map(se,(ve,de)=>{if(!ve)return null;const Ve=Pt;if(Pt+=1,ve.type===Lt&&typeof ve.props.children!="function"){const _e=ve.props,{children:bt}=_e,Oe=qe(_e,["children"]),Ue=ve.key||de;return c.createElement(Lt,C(v({},Oe),{key:Ue}),je=>an({className:je,child:bt,index:Ve}))}return an({child:ve,index:Ve})}),qt=M(K.root,He,Y==null?void 0:Y.classNames,ge==null?void 0:ge.classNames,G==null?void 0:G.classNames,ie==null?void 0:ie.classNames,ye==null?void 0:ye.classNames,Pe==null?void 0:Pe.classNames,X==null?void 0:X.classNames,pe==null?void 0:pe.classNames,Me==null?void 0:Me.classNames,Re==null?void 0:Re.classNames,et==null?void 0:et.classNames,tt==null?void 0:tt.classNames,Se==null?void 0:Se.classNames,E&&K[`--align-text-${E}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],T&&K[`--shadow-${T}`],S&&K[`--overflow-${S}`],p&&K["--animated"],ee&&K["--divided"],(u!==void 0||h!==void 0||m!==void 0)&&K["--padding"],g!==void 0&&K["--padding-bottom"],b!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(re||st)&&K["--flex"],...H(K,"--direction",R),...H(K,"--align",t),...H(K,"--justify",n),...H(K,"--nowrap",st||r===!1),...H(K,"--wrap",r),...H(K,"item--grow",fe)),Kn=v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({},ke==null?void 0:ke.style),te("--rs-view-gap",o)),te("--rs-view-p-vertical",m||u)),te("--rs-view-p-horizontal",h||u)),te("--rs-view-p-bottom",g)),te("--rs-view-p-top",y)),te("--rs-view-p-start",x)),te("--rs-view-p-end",b)),G==null?void 0:G.variables),ie==null?void 0:ie.variables),ye==null?void 0:ye.variables),Pe==null?void 0:Pe.variables),X==null?void 0:X.variables),pe==null?void 0:pe.variables),Me==null?void 0:Me.variables),Re==null?void 0:Re.variables),et==null?void 0:et.variables),tt==null?void 0:tt.variables),Se==null?void 0:Se.variables),Z?{"--rs-view-z":Z}:{});return s.jsx(he,C(v({},ke),{className:qt,style:Kn,children:Un}))};L.Item=sr;const gn={root:"_root_1f0uh_1","--auto":"_--auto_1f0uh_8","--color-neutral":"_--color-neutral_1f0uh_1","--color-neutral-faded":"_--color-neutral-faded_1f0uh_1","--color-primary":"_--color-primary_1f0uh_1","--color-positive":"_--color-positive_1f0uh_1","--color-critical":"_--color-critical_1f0uh_1","--color-disabled":"_--color-disabled_1f0uh_1"},le=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:i,attributes:a}=e,l=Ct(o),d=M(gn.root,n,l==null?void 0:l.classNames,r&&gn[`--color-${r}`],i&&gn["--auto"]),f=typeof t=="object"?t:s.jsx(t,{}),u=v(v({},a==null?void 0:a.style),l==null?void 0:l.variables);return s.jsx("span",C(v({},a),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(f,{focusable:!1})}))},Ho=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),ir={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ro=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:i,iconPosition:a="end",iconSize:l}=c.useContext(_n),d=M(ir.icon,n&&ir["icon--active"]),f=()=>{r==null||r(!n)},u={"aria-expanded":n,"aria-controls":i,id:o};return typeof t=="function"?s.jsx(s.Fragment,{children:t(C(v({},u),{onClick:f}),{active:n})}):s.jsx(Ae,{onClick:f,fullWidth:!0,attributes:u,children:s.jsxs(L,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[s.jsx(L.Item,{grow:!0,children:t}),s.jsx(le,{size:l||4,svg:Ho,className:d})]})})},Nt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},vn="data-rs-no-transition",Uo=()=>{document.documentElement.setAttribute(vn,"true")},Ko=()=>{document.documentElement.removeAttribute(vn)},Yo=()=>!document.documentElement.hasAttribute(vn),ar={root:"_root_14pfm_1","--animated":"_--animated_14pfm_9"},lr=e=>{const{children:t,active:n,attributes:r}=e,o=c.useRef(null),i=c.useRef(!1),[a,l]=c.useState(n?"auto":null),d=M(ar.root,i.current&&a!=="auto"&&ar["--animated"]),f=u=>{u.propertyName==="height"&&l(n?"auto":null)};return c.useEffect(()=>{Nt(()=>{i.current=!0})},[]),c.useEffect(()=>{const u=o.current;if(!u||!i.current)return;let h=0;n&&(u.style.height="auto",h=u.clientHeight,u.style.height="0"),n||(u.style.height=`${u.clientHeight}px`),l(h)},[n]),s.jsx("div",C(v({},r),{className:d,ref:o,style:a!==null?{height:a,overflow:a==="auto"?"visible":void 0}:void 0,onTransitionEnd:f,role:"region",hidden:!n&&a===null,children:t}))},Go=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(_n);return s.jsx(lr,{active:n,attributes:{"aria-labelledby":r,id:o},children:t})},bn=e=>{const{active:t}=e;return t!==void 0?s.jsx(tr,v({},e)):s.jsx(Io,v({},e))};bn.Trigger=Ro,bn.Content=Go;const pn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Xo=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:i,elevated:a,className:l,attributes:d}=e,f=M(pn.root,a&&pn["--elevated"],t&&pn[`--position-${t}`],l);return s.jsx(L,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:i})},nt={root:"_root_gm5sj_1","--clamp":"_--clamp_gm5sj_6","--align-start":"_--align-start_gm5sj_1","--align-center":"_--align-center_gm5sj_1","--align-end":"_--align-end_gm5sj_1","--variant-title-1":"_--variant-title-1_gm5sj_1","--variant-title-2":"_--variant-title-2_gm5sj_1","--variant-title-3":"_--variant-title-3_gm5sj_1","--variant-title-4":"_--variant-title-4_gm5sj_1","--variant-title-5":"_--variant-title-5_gm5sj_1","--variant-title-6":"_--variant-title-6_gm5sj_1","--variant-featured-1":"_--variant-featured-1_gm5sj_1","--variant-featured-2":"_--variant-featured-2_gm5sj_1","--variant-featured-3":"_--variant-featured-3_gm5sj_1","--variant-body-1":"_--variant-body-1_gm5sj_1","--variant-body-2":"_--variant-body-2_gm5sj_1","--variant-body-3":"_--variant-body-3_gm5sj_1","--variant-caption-1":"_--variant-caption-1_gm5sj_1","--variant-caption-2":"_--variant-caption-2_gm5sj_1","--weight-regular":"_--weight-regular_gm5sj_1","--weight-medium":"_--weight-medium_gm5sj_1","--weight-bold":"_--weight-bold_gm5sj_1","--color-neutral":"_--color-neutral_gm5sj_1","--color-neutral-faded":"_--color-neutral-faded_gm5sj_1","--color-primary":"_--color-primary_gm5sj_1","--color-positive":"_--color-positive_gm5sj_1","--color-critical":"_--color-critical_gm5sj_1","--color-disabled":"_--color-disabled_gm5sj_1","--decoration-line-through":"_--decoration-line-through_gm5sj_139","--align-start--m":"_--align-start--m_gm5sj_1","--align-center--m":"_--align-center--m_gm5sj_1","--align-end--m":"_--align-end--m_gm5sj_1","--variant-title-1--m":"_--variant-title-1--m_gm5sj_1","--variant-title-2--m":"_--variant-title-2--m_gm5sj_1","--variant-title-3--m":"_--variant-title-3--m_gm5sj_1","--variant-title-4--m":"_--variant-title-4--m_gm5sj_1","--variant-title-5--m":"_--variant-title-5--m_gm5sj_1","--variant-title-6--m":"_--variant-title-6--m_gm5sj_1","--variant-featured-1--m":"_--variant-featured-1--m_gm5sj_1","--variant-featured-2--m":"_--variant-featured-2--m_gm5sj_1","--variant-featured-3--m":"_--variant-featured-3--m_gm5sj_1","--variant-body-1--m":"_--variant-body-1--m_gm5sj_1","--variant-body-2--m":"_--variant-body-2--m_gm5sj_1","--variant-body-3--m":"_--variant-body-3--m_gm5sj_1","--variant-caption-1--m":"_--variant-caption-1--m_gm5sj_1","--variant-caption-2--m":"_--variant-caption-2--m_gm5sj_1","--align-start--l":"_--align-start--l_gm5sj_1","--align-center--l":"_--align-center--l_gm5sj_1","--align-end--l":"_--align-end--l_gm5sj_1","--variant-title-1--l":"_--variant-title-1--l_gm5sj_1","--variant-title-2--l":"_--variant-title-2--l_gm5sj_1","--variant-title-3--l":"_--variant-title-3--l_gm5sj_1","--variant-title-4--l":"_--variant-title-4--l_gm5sj_1","--variant-title-5--l":"_--variant-title-5--l_gm5sj_1","--variant-title-6--l":"_--variant-title-6--l_gm5sj_1","--variant-featured-1--l":"_--variant-featured-1--l_gm5sj_1","--variant-featured-2--l":"_--variant-featured-2--l_gm5sj_1","--variant-featured-3--l":"_--variant-featured-3--l_gm5sj_1","--variant-body-1--l":"_--variant-body-1--l_gm5sj_1","--variant-body-2--l":"_--variant-body-2--l_gm5sj_1","--variant-body-3--l":"_--variant-body-3--l_gm5sj_1","--variant-caption-1--l":"_--variant-caption-1--l_gm5sj_1","--variant-caption-2--l":"_--variant-caption-2--l_gm5sj_1","--align-start--xl":"_--align-start--xl_gm5sj_1","--align-center--xl":"_--align-center--xl_gm5sj_1","--align-end--xl":"_--align-end--xl_gm5sj_1","--variant-title-1--xl":"_--variant-title-1--xl_gm5sj_1","--variant-title-2--xl":"_--variant-title-2--xl_gm5sj_1","--variant-title-3--xl":"_--variant-title-3--xl_gm5sj_1","--variant-title-4--xl":"_--variant-title-4--xl_gm5sj_1","--variant-title-5--xl":"_--variant-title-5--xl_gm5sj_1","--variant-title-6--xl":"_--variant-title-6--xl_gm5sj_1","--variant-featured-1--xl":"_--variant-featured-1--xl_gm5sj_1","--variant-featured-2--xl":"_--variant-featured-2--xl_gm5sj_1","--variant-featured-3--xl":"_--variant-featured-3--xl_gm5sj_1","--variant-body-1--xl":"_--variant-body-1--xl_gm5sj_1","--variant-body-2--xl":"_--variant-body-2--xl_gm5sj_1","--variant-body-3--xl":"_--variant-body-3--xl_gm5sj_1","--variant-caption-1--xl":"_--variant-caption-1--xl_gm5sj_1","--variant-caption-2--xl":"_--variant-caption-2--xl_gm5sj_1"},Jo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Q=e=>{const{variant:t,color:n,weight:r,align:o,decoration:i,maxLines:a,children:l,className:d,attributes:f}=e,u=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),h=e.as||u&&Jo[u]||"div",m=M(nt.root,n&&nt[`--color-${n}`],...H(nt,"--variant",t),...H(nt,"--align",o),r&&nt[`--weight-${r}`],i&&nt[`--decoration-${i}`],a!==void 0&&nt["--clamp"],d),g=C(v({},f==null?void 0:f.style),{"--rs-text-lines":a});return s.jsx(h,C(v({},f),{className:m,style:g,children:l}))},Qo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:i="neutral",inline:a,bleed:l,className:d,attributes:f}=e,u=i==="neutral",h=()=>a?s.jsxs(s.Fragment,{children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&s.jsx(Q,{variant:"body-3",as:"span",children:n})]}):s.jsxs(L,{gap:1,children:[t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),n&&s.jsx(Q,{variant:"body-3",children:n})]}),m=g=>o?s.jsxs(L,{gap:2,direction:a?"row":"column",children:[a?s.jsx(L.Item,{grow:!0,children:g}):g,o&&s.jsx(Q,{variant:"body-3",weight:"medium",children:s.jsx(L,{direction:"row",gap:3,children:o})})]}):g;return s.jsx(L,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${i}-faded`,backgroundColor:`${i}-faded`,className:d,attributes:C(v({},f),{role:i==="critical"?"alert":"status"}),children:r?s.jsxs(s.Fragment,{children:[s.jsx(le,{svg:r,size:5,color:u?"primary":i}),s.jsx(L.Item,{grow:!0,children:m(h())})]}):m(h())})},cr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Zo=cr.Provider,$t=()=>c.useContext(cr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=$t();return{attributes:e,required:t,hasError:n,disabled:r}},dr={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},xn=(e,t)=>`${e}-${t||"caption"}`,Dt=e=>{const{children:t,id:n,required:r,hasError:o,group:i,disabled:a,size:l}=e,d=ze(n),f=i?"fieldset":"div",[u,h]=c.useState(!1),[m,g]=c.useState(!1),b=[u&&xn(d),m&&xn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":b},y=()=>{g(!0)},w=()=>{h(!0)};return s.jsx(f,{children:s.jsx(Zo,{value:{required:r,hasError:o,errorRef:y,helperRef:w,attributes:x,group:i,disabled:a,size:l},children:t})})},es=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:i,size:a}=$t(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return s.jsxs(Q,C(v({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:dr.label,color:i?"disabled":void 0,children:[t,r&&s.jsx(Q,{color:i?"disabled":"critical",as:"span",children:"*"})]}))},ur=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:i,helperRef:a,errorRef:l}=$t(),d=xn(o.id,n),f=n==="error"?"critical":"neutral-faded",u=n==="error"?l:a;return s.jsx(Q,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:u},className:dr.caption,children:t})},ts=e=>{const{children:t}=e,{disabled:n}=$t();return s.jsx(ur,{disabled:n,children:t})},ns=e=>{const{children:t}=e,{hasError:n}=$t();return n?s.jsx(ur,{variant:"error",children:t}):null};Dt.Label=es,Dt.Helper=ts,Dt.Error=ns;const _r={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Vt=e=>{const{side:t="all",children:n,className:r,attributes:o}=e,i=typeof t=="string"?[t]:t,a=M(_r.root,i.map(l=>_r[`--side-${l}`]),r);return s.jsx("div",C(v({},o),{className:a,children:n}))},Ee={root:"_root_1qgw7_1",input:"_input_1qgw7_21",slot:"_slot_1qgw7_42",icon:"_icon_1qgw7_43",affix:"_affix_1qgw7_44",attachment:"_attachment_1qgw7_60","attachment--position-start":"_attachment--position-start_1qgw7_66","attachment--position-end":"_attachment--position-end_1qgw7_76","--disabled":"_--disabled_1qgw7_90","--size-medium":"_--size-medium_1qgw7_1","--size-large":"_--size-large_1qgw7_1","--size-xlarge":"_--size-xlarge_1qgw7_1","--variant-faded":"_--variant-faded_1qgw7_154","--variant-headless":"_--variant-headless_1qgw7_163","--status-error":"_--status-error_1qgw7_168","--size-medium--m":"_--size-medium--m_1qgw7_1","--size-large--m":"_--size-large--m_1qgw7_1","--size-xlarge--m":"_--size-xlarge--m_1qgw7_1","--size-medium--l":"_--size-medium--l_1qgw7_1","--size-large--l":"_--size-large--l_1qgw7_1","--size-xlarge--l":"_--size-xlarge--l_1qgw7_1","--size-medium--xl":"_--size-medium--xl_1qgw7_1","--size-large--xl":"_--size-large--xl_1qgw7_1","--size-xlarge--xl":"_--size-xlarge--xl_1qgw7_1"},mr=e=>{const{slot:t,icon:n,size:r,affix:o,position:i}=e;if(!n&&!t&&!o)return null;const a=M(Ee.attachment,Ee[`attachment--position-${i}`]),l=[t&&s.jsx("div",{className:Ee.slot,children:t},"slot"),n&&s.jsx("div",{className:Ee.icon,children:s.jsx(le,{size:$e(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&s.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return s.jsx("span",{className:a,children:i==="end"?l.reverse():l})},wn=e=>{var P;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:u,endSlot:h,prefix:m,suffix:g,size:b="medium",variant:x="outline",className:y,attributes:w}=e,p=Ye(),j=ze(e.id),$=(p==null?void 0:p.attributes.id)||((P=e.inputAttributes)==null?void 0:P.id)||j,z=(p==null?void 0:p.disabled)||e.disabled,T=(p==null?void 0:p.hasError)||e.hasError,E=v(v({},e.inputAttributes),p==null?void 0:p.attributes),S=M(Ee.root,y,b&&H(Ee,"--size",b),T&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=q=>{t&&t({name:o,value:q.target.value,event:q})};return s.jsxs("div",C(v({},w),{"data-rs-aligner-target":!0,className:S,children:[s.jsx(mr,{position:"start",icon:d,slot:u,size:b,affix:m}),s.jsx("input",C(v({},E),{className:Ee.input,disabled:z,name:o,placeholder:l,value:i,defaultValue:a,onChange:O,onFocus:n||(E==null?void 0:E.onFocus),onBlur:r||(E==null?void 0:E.onBlur),id:$})),s.jsx(mr,{position:"end",icon:f,slot:h,size:b,affix:g})]}))};wn.Aligner=Vt;const rs="Enter",os="Tab",fr="ArrowUp",hr="ArrowDown",gr="ArrowRight",vr="ArrowLeft",yn="data-rs-keyboard",Ot="data-rs-focus";class ss{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,r=n&&this.get(n),o=this.generateId();return this.chain[o]={previousId:n,data:t},r&&(r.nextId=o),this.tailId=o,o}remove(t){var d,f;const n=this.chain[t];if(!n)return;const r=n.previousId,o=r&&this.get(r),i=n.nextId,a=i&&this.get(i);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),i||(this.tailId=r!=null?r:null);const l=this.get(t).data;return delete this.chain[t],l}removePreviousTill(t,n){const r=this.get(t),o=this.remove(t);return!r||!r.previousId||n(r)?o:this.removePreviousTill(r.previousId,n)}}const br=()=>document.documentElement.hasAttribute(yn),pr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Bt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,jn=(e,t)=>{const r=Array.from(e.querySelectorAll(pr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},xr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,i=jn(t,n),a=i.length-1,l=Bt(),d=i.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let u=f[r];const h=u>a||u<0;return h&&(o==="action-menu"?u=r==="prev"?f.first:f.last:u=r==="prev"?f.last:f.first),{overflow:h,el:i[u]}},Wt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Ht=(e,t)=>{const n=xr({root:e,target:t});Wt(n.el)},is=e=>Ht(e,"next"),as=e=>Ht(e,"prev"),ls=e=>Ht(e,"first"),cs=e=>Ht(e,"last"),ds=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const i=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");i&&a&&(o.setAttribute("aria-hidden","true"),e.push(o)),o=o.nextSibling}},n=()=>{e.forEach(r=>{r.removeAttribute("aria-hidden")}),e=[]};return r=>{let o=r;for(e.length&&n();o!==document.body;)t(o),o=o.parentElement;return{release:n}}})(),Rt=(()=>{let e=null,t=null;const n=new ss;return(r,o={})=>{const{mode:i="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=Bt(),f=i==="dialog",u=i==="content-menu",h=i==="selection-menu",m=f||u,g=i==="action-menu"||h,b=jn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=jn(r,l?d:void 0);$.length&&Wt($[0],i)}),w=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,E=>document.body.contains(E.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!br()}),e&&(e(),t&&t.release(),e=null,t=null);const T=n.tailId&&n.get(n.tailId);T&&Rt(T.data.root,T.data.options)},p=$=>{const z=$.key,T=z===os,E=T&&!$.shiftKey,S=T&&$.shiftKey,O=g&&z===fr,P=g&&z===hr,q=S&&m||O,B=E&&m||P,D=Bt()===d,F=xr({root:r,target:q?"prev":"next",extraElement:l?d:void 0,mode:i});if(T&&g||u&&T&&F.overflow){S&&!D&&$.preventDefault(),w(),a==null||a();return}!q&&!B||($.preventDefault(),F.el&&Wt(F.el,i))};if(e&&e(),f&&(t=ds(r)),y.observe(r,{childList:!0,subtree:!0}),!b.length)return null;document.addEventListener("keydown",p),e=()=>document.removeEventListener("keydown",p);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),Wt(b[0],i)),w}})(),us=100,_s=150;let it={},Fe=null;const wr=e=>{it[e]&&(e===Fe&&(Fe=it[e].parentId),delete it[e],Fe===null&&(it={}))},ms=(e,t,n)=>{var i;const r=Fe?it[Fe]:void 0;!((n==null?void 0:n.current)&&r&&((i=r.contentRef.current)==null?void 0:i.contains(n.current)))&&n&&Fe&&wr(Fe),it[e]={parentId:Fe,triggerRef:n,contentRef:t},Fe=e},yr=(e=!1,t,n)=>{const r=ze(),o=c.useCallback(()=>Fe===r,[r]);return c.useEffect(()=>{e?ms(r,t,n):wr(r)},[e,r,t,n]),o},ce=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",Te={},Cn=[],jr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),kn=e=>jr(e).split(at).sort().join(at),Cr=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},fs=e=>{const t=[],n=e.join(at),o=kn(n).split(at),i=(a,l)=>{l.forEach((d,f)=>{const u=a?`${a}+${d}`:d;t.push(u),i(u,l.slice(f+1))})};return i("",o),t},hs=(e,t)=>{const n=Object.keys(e);n.length&&fs(n).forEach(r=>{t(r)})},Nn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(kn(r),o)})})};class gs{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Nn(t,(r,o)=>{o&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:o,ref:n}))})},this.unbindHotkeys=t=>{Nn(t,(n,r)=>{var o,i;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(i=this.hotkeyMap[n])!=null&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{hs(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(i=>{var a;(a=i.ref)!=null&&a.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=kn(t.key);Nn(this.hotkeyMap,(r,o)=>{r.split(at).includes(n)&&(o.used=!1)})}}}const Ut=new gs,kr=c.createContext({}),vs=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,i]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||o===0)return;const g=Cr(m);g&&(Te[g]=m,(g==="meta"||g==="control")&&(Te.mod=m),r(Object.keys(Te).length),g==="meta"&&Cn.push(...Object.keys(Te)),Te.Meta&&Cn.push(g))},[o]),l=c.useCallback(m=>{if(o===0)return;const g=Cr(m);g&&(delete Te[g],(g==="meta"||g==="control")&&delete Te.mod,g==="meta"&&Cn.forEach(b=>{delete Te[b]}),r(Object.keys(Te).length))},[o]),d=m=>!jr(m).split(at).some(b=>!Te[b]),f=c.useCallback((m,g)=>(i(b=>b+1),Ut.bindHotkeys(m,g),()=>{i(b=>b-1),Ut.unbindHotkeys(m)}),[]),u=c.useCallback(m=>{m.key&&(a(m),Ut.handleKeyDown(Te,m))},[a]),h=c.useCallback(m=>{m.key&&(l(m),Ut.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",h)}),[u,h]),s.jsx(kr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},bs=()=>c.useContext(kr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=bs(),i=c.useRef(null),a=(n==null?void 0:n.ref)||i;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},$n=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ps=e=>{const t=c.useState(e||!1),[n,r]=t;return ce(()=>{const o=new MutationObserver(i=>{i.forEach(a=>{if(a.attributeName!=="dir")return;const l=a.target.dir==="rtl";n!==l&&r(l)})});return o.observe(document.documentElement,{attributes:!0}),()=>o.disconnect()},[n]),ce(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext($n).rtl,zn=e=>{const t=e&&window.getComputedStyle(e).overflowY,n=t==null?void 0:t.includes("scroll");return e===document.body||!e?document.body:n&&e.scrollHeight>e.clientHeight?e:zn(e.parentElement)},Nr=16,Kt=["top-start","top","top-end"],Yt=["bottom-start","bottom","bottom-end"],Gt=["start","start-bottom","start-top"],Xt=["end","end-bottom","end-top"],xs={top:[...Kt,...Yt,...Xt,...Gt],bottom:[...Yt,...Kt,...Xt,...Gt],start:[...Gt,...Xt,...Kt,...Yt],end:[...Xt,...Gt,...Kt,...Yt]},ws=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,$r=(e,t)=>Math.floor(e/2-t/2),ys=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return xs[n]},En=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,i=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=i},zr=(e,t,n,r)=>{const{position:o,rtl:i,width:a}=r;let l=0,d=0,f=o;switch(i&&(f=ws(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=$r(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":l=e.left-t.width;break;case"end":case"end-top":case"end-bottom":l=e.right;break;case"top-start":case"bottom-start":l=e.left;break;case"top-end":case"bottom-end":l=e.right-t.width;break}switch(f){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=$r(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||l===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),l=Math.round(l+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const h=Math.ceil(t.height);return a==="full"?(l=Nr,u=window.innerWidth-Nr*2):a==="trigger"&&(u=e.width),{styles:{left:l,top:d,width:u,height:h},position:f}},Er={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},Tn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},js=(e,t,n)=>{const{position:r,forcePosition:o,width:i}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Tn).forEach(g=>{const b=Tn[g];a.style[g]=b.toString()}),i&&(i==="trigger"?a.style.width=`${l.width}px`:i!=="full"&&(a.style.width=i)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=zn(e),u=f.getBoundingClientRect(),h={top:u.top+document.documentElement.scrollTop-f.scrollTop,left:u.left+document.documentElement.scrollLeft-f.scrollLeft};let m=zr(l,d,h,n);if(!En(m.styles)&&!o){const g=ys(r),b=g.filter(y=>y==="top"||y==="bottom"),x=(y,w={})=>{const{fullWidth:p}=w;y.some(j=>{const $=C(v({},n),{width:p?"full":n.width,position:j}),z=zr(l,d,h,$);return En(z.styles)?(m=z,!0):!1})};x(g),En(m.styles)||x(b,{fullWidth:!0})}return a.parentNode.removeChild(a),m},Cs=(e,t)=>{switch(t.type){case"render":return C(v({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return C(v({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:v(v({},Er),t.payload.styles)});case"show":return C(v({},e),{status:"visible"});case"hide":return C(v({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return C(v({},e),{status:"idle",styles:Tn});default:throw new Error("Invalid reducer type")}},ks=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:i}=n,[a]=Ge(),[l,d]=c.useReducer(Cs,{position:r,styles:Er,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),h=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),g=c.useCallback(()=>{if(!e.current||!t.current)return;const b=js(e.current,t.current,{width:i,position:r,forcePosition:o,rtl:a});d({type:"position",payload:b})},[e,t,r,a,o,i]);return c.useEffect(()=>{l.status==="rendered"&&g(),l.status==="positioned"&&Nt(()=>u())},[l.status,g,u]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:g,render:f,hide:h,remove:m}),[f,g,h,m,l.position,l.styles,l.status])},Ns=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(o=!0)}),!o&&t(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},Tr=c.createContext({}),Jt=()=>c.useContext(Tr),$s=Tr.Provider,Ir=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:i,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:u,contentAttributes:h,position:m,active:g,id:b,instanceRef:x}=e,[y]=Ge(),w=c.useRef(null),p=c.useRef(null),j=ze(b),$=c.useRef(),z=c.useRef(null),T=c.useRef(!1),E=c.useRef(!1),S=c.useRef(!0),O=ks(w,p,{width:l,position:m,defaultActive:g,forcePosition:i}),P=Jt(),{status:q,updatePosition:B,render:D,hide:F,remove:Z}=O,fe=yr(t!=="hover"&&q!=="idle",p,w),he=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),se=c.useCallback(()=>{!T.current&&q==="idle"&&(n==null||n())},[q]),ee=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&q!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=P==null?void 0:P.handleClose)==null||Me.call(P)))},[q,fe,t]),He=c.useCallback(X=>{var ge;(ge=p.current)!=null&&ge.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||E.current||ee()},[ee,t,a]),ke=c.useCallback(()=>{se()},[se]),re=c.useCallback(()=>{he(),$.current=setTimeout(se,us)},[he,$,se]),R=c.useCallback(()=>{he(),$.current=setTimeout(()=>ee(),_s)},[he,$,ee]),Y=c.useCallback(()=>{q==="idle"?se():ee()},[q,se,ee]),G=()=>E.current=!0,ie=()=>E.current=!1;ce(()=>{if(g){D();return}Yo()&&!d?F():Z()},[g,D,F,d]);const ye=c.useCallback(X=>{p.current!==X.currentTarget||X.propertyName!=="transform"||q==="hidden"&&Z()},[Z,q]);return ce(()=>{q!=="visible"||!p.current||(z.current=Rt(p.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,ee()}}))},[q,t,ee,a]),c.useEffect(()=>{!d&&q!=="hidden"||d&&q!=="idle"||z.current&&(t==="hover"&&(T.current=!0,setTimeout(()=>{T.current=!1},100)),z.current({withoutFocusReturn:!S.current}),z.current=null,S.current=!0)},[q,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=Zn(B,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[B]),c.useEffect(()=>{B()},[y,B]),c.useImperativeHandle(x,()=>({open:se,close:ee}),[se,ee]),rt({Escape:()=>ee()},[ee]),Ns([p,w],()=>{S.current=!1,ee()}),s.jsx($s,{value:{id:j,flyout:O,triggerElRef:w,flyoutElRef:p,handleClose:ee,handleOpen:se,handleFocus:ke,handleBlur:He,handleMouseEnter:re,handleMouseLeave:R,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:u,contentAttributes:h},children:o})},zs=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,i]=c.useState(t||!1),a=()=>{i(!1),n&&n()},l=()=>{i(!0),r&&r()};return s.jsx(Ir,C(v({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},Es=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:i,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:u,trapFocusMode:h}=Jt();let m={onBlur:l,ref:r};return(o==="click"||h==="action-menu")&&(m.onClick=u),o==="hover"&&(m.onMouseEnter=d,m.onMouseLeave=f),(o==="hover"&&h!=="action-menu"||o==="focus")&&(m.onFocus=a,m["aria-describedby"]=n),(o==="click"||o==="focus"||h==="action-menu")&&(h==="dialog"?m["aria-haspopup"]="dialog":h==="selection-menu"?(m["aria-haspopup"]="listbox",m["aria-autocomplete"]="list"):m["aria-haspopup"]="menu",m["aria-expanded"]=i.status!=="idle",m["aria-controls"]=i.status!=="idle"?n:void 0),s.jsx(s.Fragment,{children:t(m)})},Mr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),In=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),Ts=()=>{const{mode:e}=c.useContext(In);return e},Sr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Mr),{mode:r,setMode:o,invertMode:i}=c.useContext(In);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:i}),[e,r,o,i,t,n])},Is={root:"_root_r30zs_1"},lt=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:i}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),u=Ts(),h=Sr(),m=!h.theme,g=t||d||h.theme,b=m?u:h.colorMode,y=r==="inverted"?b==="light"?"dark":"light":r||b,w=M(Is.root,i),p=j=>{f(j)};return ce(()=>{l(!0)},[]),ce(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",g),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[g,y,m]),s.jsx(Mr.Provider,{value:{theme:g,colorMode:y,setTheme:p},children:s.jsx("div",{className:w,"data-rs-theme":m?void 0:g,"data-rs-color-mode":m||!r&&!a?void 0:y,children:o})})},Ms=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),i=c.useCallback(l=>{document.documentElement.setAttribute("data-rs-color-mode",l),o(d=>(d!==l&&Uo(),l))},[]);ce(()=>{Nt(()=>{Ko()})},[r]),ce(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&i(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return s.jsx(In.Provider,{value:a,children:n})},Pr=c.createContext({}),Ss=()=>c.useContext(Pr),Qt=e=>{const{children:t,targetRef:n}=e,r=Ss(),o=n||r.scopeRef;return me.createPortal(s.jsx(lt,{children:t}),(o==null?void 0:o.current)||document.body)};function Ps(e){const{children:t}=e,n=c.useRef(null);return s.jsx(Pr.Provider,{value:{scopeRef:n},children:t(n)})}Qt.Scope=Ps;const zt={content:"_content_bicti_1",inner:"_inner_bicti_7","--position-top":"_--position-top_bicti_13","--position-top-end":"_--position-top-end_bicti_14","--position-top-start":"_--position-top-start_bicti_15","--position-bottom":"_--position-bottom_bicti_21","--position-bottom-end":"_--position-bottom-end_bicti_22","--position-bottom-start":"_--position-bottom-start_bicti_23","--position-start":"_--position-start_bicti_39","--position-start-top":"_--position-start-top_bicti_40","--position-start-bottom":"_--position-start-bottom_bicti_41","--position-end":"_--position-end_bicti_47","--position-end-top":"_--position-end-top_bicti_48","--position-end-bottom":"_--position-end-bottom_bicti_49","--visible":"_--visible_bicti_65","--animated":"_--animated_bicti_70"},qs=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:i,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:u,handleMouseLeave:h,handleContentMouseDown:m,handleContentMouseUp:g,contentGap:b,contentClassName:x,contentAttributes:y,trapFocusMode:w}=Jt(),{styles:p,status:j,position:$}=o,[z,T]=c.useState(!1);if(ce(()=>{T(!0)},[]),j==="idle"||!z)return null;const E=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),S=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":w==="dialog"?O="dialog":w==="selection-menu"?O="listbox":w==="action-menu"&&(O="menu");const P=s.jsx("div",{className:E,style:C(v({},p),{"--rs-flyout-gap":b}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?u:void 0,onMouseLeave:f==="hover"?h:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g,children:s.jsx("div",C(v({role:O},r),{id:i,"aria-modal":f==="click",style:y==null?void 0:y.style,className:S,children:t}))}),q=zn(l.current);return s.jsx(Qt,{targetRef:q===document.body?void 0:{current:q},children:P})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?s.jsx(Ir,v({},e)):s.jsx(zs,v({},e))};Xe.Trigger=Es,Xe.Content=qs;const Mn={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},As={root:"_root_e7w6q_1"},Sn=e=>{if(!e)return null;const t=te("--rs-p",e);return{classNames:As.root,variables:t}},ct=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:i,defaultActive:a,children:l,width:d,contentGap:f,variant:u="elevated",triggerType:h="click",position:m="bottom",disableHideAnimation:g,instanceRef:b}=e,x=(j=e.padding)!=null?j:u==="headless"?0:4,y=e.trapFocusMode||(h==="hover"?"content-menu":void 0),w=Sn(x),p=M(Mn.content,!!d&&Mn["content--has-width"],u&&Mn[`content--variant-${u}`],w==null?void 0:w.classNames);return s.jsx(Xe,{id:t,instanceRef:b,position:m,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:h,active:i,defaultActive:a,width:d,disableHideAnimation:g,contentGap:f,contentClassName:p,contentAttributes:{style:v({},w==null?void 0:w.variables)},children:l})};ct.Trigger=Xe.Trigger,ct.Content=Xe.Content;const Be={root:"_root_13dku_1",icon:"_icon_13dku_12",content:"_content_13dku_17","--rounded-corners":"_--rounded-corners_13dku_22","--size-small":"_--size-small_13dku_1","--size-medium":"_--size-medium_13dku_1","--size-large":"_--size-large_13dku_1","--color-neutral":"_--color-neutral_13dku_61","--selected":"_--selected_13dku_65","--color-critical":"_--color-critical_13dku_71","--color-primary":"_--color-primary_13dku_81","--disabled":"_--disabled_13dku_102",aligner:"_aligner_13dku_123","--rounded-corners-true--m":"_--rounded-corners-true--m_13dku_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13dku_1","--size-small--m":"_--size-small--m_13dku_1","--size-medium--m":"_--size-medium--m_13dku_1","--size-large--m":"_--size-large--m_13dku_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13dku_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13dku_1","--size-small--l":"_--size-small--l_13dku_1","--size-medium--l":"_--size-medium--l_13dku_1","--size-large--l":"_--size-large--l_13dku_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13dku_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13dku_1","--size-small--xl":"_--size-small--xl_13dku_1","--size-medium--xl":"_--size-medium--xl_13dku_1","--size-large--xl":"_--size-large--xl_13dku_1"},Fs=e=>s.jsx(Vt,C(v({},e),{side:e.side||"inline",className:[Be.aligner,e.className]})),Ls=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:i,color:a="primary",selected:l,disabled:d,onClick:f,href:u,size:h="medium",roundedCorners:m,className:g,attributes:b}=e,x=M(Be.root,g,H(Be,"--size",h),H(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=$e(h,p=>p==="large"?3:2),w=$e(h,p=>p==="large"?5:4);return s.jsx(Ae,{disabled:d,className:x,attributes:C(v({},b),{"data-rs-aligner-target":!0}),onClick:f,href:u,ref:t,children:s.jsxs(L,{direction:"row",gap:y,align:"center",children:[n&&s.jsx(le,{svg:n,className:Be.icon,size:w}),!n&&r,i&&s.jsx(L.Item,{grow:!0,className:Be.content,children:i}),o]})})},Pn=c.forwardRef(Ls);Pn.Aligner=Fs;const Zt=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),en={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},qn=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,i=qe(a,["children","position","triggerType","trapFocusMode"]);return s.jsx(ct,C(v({},i),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ds=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(qn),[i]=Ge(),{ref:a}=rt({[i?gr:vr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[rs]:()=>{const d=Bt();d==null||d.click()}},[o==null?void 0:o.current]),l=M(en.menu,r);return s.jsx(ct.Content,{className:l,attributes:C(v({},n),{ref:a}),children:t})},Vs=e=>{const{children:t}=e;return s.jsx("div",{className:en.section,role:"group",children:t})},qr=e=>{const{onClick:t}=e,{handleClose:n}=Jt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return s.jsx(Pn,C(v({},e),{roundedCorners:!0,className:en.item,attributes:v({role:"menuitem"},e.attributes),onClick:r}))},Os=e=>{const{children:t}=e,n=c.useRef();return s.jsx(qn.Provider,{value:n,children:s.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Bs=e=>{const l=e,{children:t,attributes:n}=l,r=qe(l,["children","attributes"]),o=c.useContext(qn),[i]=Ge(),{ref:a}=rt({[i?vr:gr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return s.jsx(qr,C(v({},r),{attributes:C(v({},n),{ref:a}),endSlot:s.jsx(le,{autoWidth:!0,svg:Zt,className:en.arrow}),children:t}))},Ws=e=>{const{children:t}=e;return s.jsx(we.Trigger,{children:n=>s.jsx(Bs,{attributes:n,children:t})})};we.Trigger=ct.Trigger,we.Content=Ds,we.Section=Vs,we.Item=qr,we.SubMenu=Os,we.SubTrigger=Ws;const Ar=c.createContext({}),Fr=e=>{const w=e,{children:t,onChange:n,onItemSelect:r,name:o}=w,i=qe(w,["children","onChange","onItemSelect","name"]),a=c.useRef(null),[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=!!c.Children.toArray(t).filter(Boolean).length,m=c.useCallback(()=>d(!0),[]),g=()=>d(!1);rt({[`${fr},${hr}`]:()=>m()},[m],{ref:a});const b=p=>{n==null||n(p),u(!1),m()},x=p=>{n==null||n({value:p.value,name:o}),r==null||r({value:p.value}),u(!0)},y=p=>{var j;requestAnimationFrame(()=>{f&&(d(!1),u(!1))}),(j=i.onFocus)==null||j.call(i,p)};return s.jsx(Ar.Provider,{value:{onItemClick:x},children:s.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!f&&h&&l,onClose:g,onOpen:m,disableHideAnimation:!0,children:[s.jsx(we.Trigger,{children:$=>{var z=$,{ref:p}=z,j=qe(z,["ref"]);return s.jsx(wn,C(v({},i),{name:o,onChange:b,attributes:C(v({},i.attributes),{ref:p}),inputAttributes:C(v({},j),{onFocus:T=>{var E;(E=j.onFocus)==null||E.call(j),y(T)},ref:a,role:"combobox"})}))}}),s.jsx(we.Content,{children:t})]})})},Hs=e=>{const a=e,{value:t,onClick:n}=a,r=qe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Ar),i=l=>{n==null||n(l),o({value:t})};return s.jsx(we.Item,C(v({},r),{attributes:C(v({},r.attributes),{role:"option"}),onClick:i}))};Fr.Item=Hs;const tn={root:"_root_1m0a1_1",img:"_img_1m0a1_13","--variant-faded":"_--variant-faded_1m0a1_20","--color-neutral":"_--color-neutral_1m0a1_21","--color-critical":"_--color-critical_1m0a1_25","--color-positive":"_--color-positive_1m0a1_29","--color-primary":"_--color-primary_1m0a1_33"},Rs=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:i,initials:a,icon:l,alt:d,className:f,attributes:u}=e,h=i?$e(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=Ct(o),g=M(tn.root,f,m==null?void 0:m.classNames,t&&tn[`--color-${t}`],n&&tn[`--variant-${n}`]),b=()=>r?s.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:tn.img}):l?s.jsx(le,{svg:l,size:$e(o,x=>Math.ceil(x*.4))}):a;return s.jsx(L,{borderRadius:h,attributes:C(v({},u),{style:v({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:g,children:b()})},Lr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Ie={root:"_root_xbb1o_1",dismiss:"_dismiss_xbb1o_21","--actionable":"_--actionable_xbb1o_26","--variant-faded":"_--variant-faded_xbb1o_1","--variant-outline":"_--variant-outline_xbb1o_1","--color-positive":"_--color-positive_xbb1o_47","--color-critical":"_--color-critical_xbb1o_67","--color-primary":"_--color-primary_xbb1o_87","--size-small":"_--size-small_xbb1o_1","--size-medium":"_--size-medium_xbb1o_1","--size-large":"_--size-large_xbb1o_1","--rounded":"_--rounded_xbb1o_133","--hidden":"_--hidden_xbb1o_145",container:"_container_xbb1o_152","--container-overlap":"_--container-overlap_xbb1o_177","--container-position-top-end":"_--container-position-top-end_xbb1o_181","--container-position-bottom-end":"_--container-position-bottom-end_xbb1o_193"},Us=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:i}=e,a=M(Ie.container,o,r&&Ie["--container-overlap"],n&&Ie[`--container-position-${n}`]);return s.jsx("div",C(v({},i),{className:a,children:t}))},Dr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:i,endIcon:a,variant:l,hidden:d,href:f,onClick:u,onDismiss:h,dismissAriaLabel:m,className:g,attributes:b}=e,x=!!(u||f),y=o==="large"?4:3.5,w=M(Ie.root,g,r&&Ie["--rounded"],d&&Ie["--hidden"],o&&Ie[`--size-${o}`],n&&Ie[`--color-${n}`],l&&Ie[`--variant-${l}`],x&&Ie["--actionable"]);return s.jsxs(Ae,{onClick:u,href:f,className:w,attributes:b,children:[i&&s.jsx(le,{svg:i,autoWidth:!0,size:y}),t&&s.jsx(Q,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&s.jsx(le,{svg:a,autoWidth:!0,size:y}),h&&s.jsx(Ae,{onClick:h,className:Ie.dismiss,as:"span",attributes:{"aria-label":m},children:s.jsx(le,{svg:Lr,size:y})})]})};Dr.Container=Us;const nn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},Vr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,i=o==null?void 0:o["aria-label"],a=M(nn.root,r,H(nn,"--size",t),n&&nn[`--color-${n}`]);return s.jsx("span",C(v({},o),{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:a,children:s.jsx("span",{className:nn.inner})}))},ue={root:"_root_6msy8_1",loader:"_loader_6msy8_37",icon:"_icon_6msy8_45","--icon-position-end":"_--icon-position-end_6msy8_49",text:"_text_6msy8_60","--loading":"_--loading_6msy8_66","--elevated":"_--elevated_6msy8_83","--icon-only":"_--icon-only_6msy8_87","--rounded":"_--rounded_6msy8_93","--size-small":"_--size-small_6msy8_1","--size-medium":"_--size-medium_6msy8_1","--size-large":"_--size-large_6msy8_1","--size-xlarge":"_--size-xlarge_6msy8_1","--full-width":"_--full-width_6msy8_135","--variant-solid":"_--variant-solid_6msy8_149","--color-black":"_--color-black_6msy8_149","--color-white":"_--color-white_6msy8_150","--variant-faded":"_--variant-faded_6msy8_151","--color-neutral":"_--color-neutral_6msy8_151","--color-primary":"_--color-primary_6msy8_152","--color-critical":"_--color-critical_6msy8_153","--color-positive":"_--color-positive_6msy8_154","--color-inherit":"_--color-inherit_6msy8_155","--variant-outline":"_--variant-outline_6msy8_156","--variant-ghost":"_--variant-ghost_6msy8_157","--highlighted":"_--highlighted_6msy8_176","--disabled":"_--disabled_6msy8_529",group:"_group_6msy8_561",aligner:"_aligner_6msy8_622","--size-small--m":"_--size-small--m_6msy8_1","--size-medium--m":"_--size-medium--m_6msy8_1","--size-large--m":"_--size-large--m_6msy8_1","--size-xlarge--m":"_--size-xlarge--m_6msy8_1","--full-width-true--m":"_--full-width-true--m_6msy8_1","--full-width-false--m":"_--full-width-false--m_6msy8_1","--size-small--l":"_--size-small--l_6msy8_1","--size-medium--l":"_--size-medium--l_6msy8_1","--size-large--l":"_--size-large--l_6msy8_1","--size-xlarge--l":"_--size-xlarge--l_6msy8_1","--full-width-true--l":"_--full-width-true--l_6msy8_1","--full-width-false--l":"_--full-width-false--l_6msy8_1","--size-small--xl":"_--size-small--xl_6msy8_1","--size-medium--xl":"_--size-medium--xl_6msy8_1","--size-large--xl":"_--size-large--xl_6msy8_1","--size-xlarge--xl":"_--size-xlarge--xl_6msy8_1","--full-width-true--xl":"_--full-width-true--xl_6msy8_1","--full-width-false--xl":"_--full-width-false--xl_6msy8_1"},Ks=e=>{const{children:t,className:n,attributes:r}=e,o=M(ue.group,n);return s.jsx("div",C(v({},r),{className:o,role:"group",children:t}))},Ys=e=>s.jsx(Vt,C(v({},e),{side:e.side||e.position,className:[ue.aligner,e.className]})),Gs=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:i,fullWidth:a,loading:l,disabled:d,type:f,href:u,size:h="medium",className:m,children:g,rounded:b,attributes:x,onClick:y,icon:w,endIcon:p}=e,j=(w||p)&&!g,$=M(ue.root,m,r&&ue[`--color-${r}`],n&&ue[`--variant-${n}`],H(ue,"--size",h),H(ue,"--full-width",a),o&&n!=="ghost"&&ue["--elevated"],b&&ue["--rounded"],d&&ue["--disabled"],l&&ue["--loading"],i&&ue["--highlighted"],j&&ue["--icon-only"]),z=T=>{if(!(T==="start"&&w||T==="end"&&p))return null;const P=M(ue.icon,T==="end"&&ue["--icon-position-end"]),q=$e(h,B=>B==="large"?5:B==="xlarge"?6:4);return s.jsx(le,{className:P,svg:T==="start"?w:p,size:q,autoWidth:!0})};return s.jsxs(Ae,{disabled:d||l,className:$,attributes:C(v({},x),{"data-rs-aligner-target":!0}),type:f,onClick:y,href:u,ref:t,children:[l&&s.jsx("div",{className:ue.loader,children:s.jsx(Vr,{size:"small",color:"inherit"})}),z("start"),g&&s.jsx("span",{className:ue.text,children:g}),z("end")]})},Ce=c.forwardRef(Gs);Ce.Group=Ks,Ce.Aligner=Ys;const Et={root:"_root_def7r_1","--color-primary":"_--color-primary_def7r_6","--color-critical":"_--color-critical_def7r_10","--color-positive":"_--color-positive_def7r_14","--color-inherit":"_--color-inherit_def7r_18","--variant-plain":"_--variant-plain_def7r_22","--disabled":"_--disabled_def7r_26","--variant-underline":"_--variant-underline_def7r_32","--with-icon":"_--with-icon_def7r_48"},Xs=(e,t)=>{const{icon:n,disabled:r,href:o,color:i="primary",variant:a="underline",className:l,children:d,attributes:f,type:u,onClick:h}=e,m=M(Et.root,l,r&&Et["--disabled"],a&&Et[`--variant-${a}`],i&&Et[`--color-${i}`],n&&Et["--with-icon"]);return s.jsxs(Ae,{href:o,disabled:r,className:m,attributes:f,type:u,onClick:h,ref:t,children:[n&&s.jsx(le,{svg:n}),d]})},Or=c.forwardRef(Xs),Js=()=>s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),s.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),s.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Qs=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:i}=e;return!r&&!n&&!i?s.jsx(Q,{variant:"body-3",weight:"medium",color:"neutral",children:t}):s.jsx(Or,{onClick:n,href:r,icon:o,disabled:i,variant:"plain",color:"inherit",children:t})},Br=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:i,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,u]=c.useState(!1),h=M(a),m=c.Children.count(t);let g=0;const b=()=>{u(!0)};return s.jsx("nav",C(v({},l),{"aria-label":i||(l==null?void 0:l["aria-label"]),className:h,children:s.jsx(L,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const w=m-(d||0),p=g===0,j=g>w,$=!d||p||j||f,z=g===w;g+=1;let T=null;return $?T=x:z&&(T=s.jsx(Ce.Aligner,{children:s.jsx(Ce,{variant:"ghost",size:"small",icon:Js,onClick:b})})),T===null?null:s.jsxs(L,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&s.jsx(Q,{color:"neutral-faded",children:n||s.jsx(le,{svg:Zt,size:3})}),s.jsx(Q,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:T})]},y)})})}))};Br.Item=Qs;const dt={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Zs=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:i,height:a,onClick:l,href:d,children:f,className:u,attributes:h,as:m="div"}=e,g=!!d||!!l,b=fn("medium"),x=or(i),y=Sn(n),w=Ct(a),p=M(dt.root,b==null?void 0:b.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,g&&dt["--actionable"],o&&dt["--elevated"],r&&dt["--selected"],u),j=v(v(v(v({},h==null?void 0:h.style),x==null?void 0:x.variables),y==null?void 0:y.variables),w==null?void 0:w.variables);return g?s.jsx(Ae,{className:p,attributes:C(v({},h),{style:j}),href:d,as:m,onClick:l,ref:t,children:s.jsx("span",{className:dt.content,children:f})}):s.jsx(m,C(v({},h),{onClick:l,href:d,ref:t,className:p,style:j,children:s.jsx("span",{className:dt.content,children:f})}))},ei=c.forwardRef(Zs),Wr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})});var ut=(e=>(e.back="back",e.forward="forward",e))(ut||{});const We={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Hr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:i,mounted:a}=e,[l,d]=c.useState(!1),[f,u]=c.useState(!1),h=t===ut.forward,m=t===(i?ut.back:ut.forward),g=M(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return ce(()=>{const b=n.current;if(!b||!a)return;let x;const y=Math.abs(r),w=y<=0,p=y+b.clientWidth>=b.scrollWidth-1;return(h?p:w)?(d(!1),x=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),s.jsx("div",{className:g,"aria-hidden":"true",children:s.jsx(Ce,{onClick:o,icon:m?Zt:Wr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},ti=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:i,instanceRef:a,className:l,attributes:d}=e,[f,u]=c.useState(!1),[h,m]=c.useState(0),[g]=Ge(),b=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([E,S])=>{x[E]=typeof S=="number"&&S>0});const y=M(We.root,l,...H(We,"--bleed",typeof o=="number"?!0:x)),w=zo(E=>{const S=E.target;m(S.scrollLeft)},16),p=()=>{const S=getComputedStyle(b.current).gap.split(" ")[0];return Number(S.replace("px",""))},j=()=>{const E=b.current;E.scrollBy({left:E.clientWidth+p(),top:0,behavior:"smooth"})},$=()=>{const E=b.current;E.scrollBy({left:-E.clientWidth-p(),top:0,behavior:"smooth"})},z=g?j:$,T=g?$:j;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:T})),ce(()=>{u(!0)},[]),s.jsxs("section",C(v({},d),{className:y,style:v(v({},te("--rs-carousel-items",r)),te("--rs-carousel-bleed",o)),children:[i!=="hidden"&&s.jsxs(s.Fragment,{children:[s.jsx(Hr,{isRTL:g,type:ut.back,scrollElRef:b,scrollPosition:h,onClick:z,mounted:f}),s.jsx(Hr,{isRTL:g,type:ut.forward,scrollElRef:b,scrollPosition:h,onClick:T,mounted:f})]}),s.jsx(L,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:b,onScroll:w},children:c.Children.map(t,E=>s.jsx(L.Item,{className:We.item,as:"li",children:E}))})]}))},ni={root:"_root_1feer_1"},An=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:i,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:u,attributes:h}=e,m=M(ni.root,u);return s.jsx("input",C(v({},h),{className:m,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:i||(h==null?void 0:h.onFocus),onBlur:a||(h==null?void 0:h.onBlur)}))},Rr=c.createContext(null),ri=()=>c.useContext(Rr),Ur=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=d=>{const{event:f,value:u,checked:h}=d;if(!u)return;let m=[...o];h?m.push(u):m=m.filter(g=>g!==u),t&&t({name:n,value:m,event:f})};return s.jsx(Rr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},oi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(Ur,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},si=e=>{const{value:t}=e;return t!==void 0?s.jsx(Ur,v({},e)):s.jsx(oi,v({},e))},Kr=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),Je={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},ii=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,u=ri(),h=Ye(),m=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),g=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?($=u.value)==null?void 0:$.includes(n):e.checked,x=u?void 0:e.defaultChecked,y=u?u.name:e.name,w=c.useRef(null),p=M(Je.root,l,m&&Je["--error"],g&&Je["--disabled"]),j=z=>{if(!y)return;const{checked:T}=z.target,E={name:y,value:n,checked:T,event:z};r&&r(E),u!=null&&u.onChange&&u.onChange(E)};return ce(()=>{w.current.indeterminate=a||!1},[a,b]),s.jsxs("label",C(v({},d),{className:p,children:[s.jsxs("span",{className:Je.field,children:[s.jsx(An,{className:Je.input,type:"checkbox",checked:b,defaultChecked:x,name:y,disabled:g,value:n,onChange:j,onFocus:o,onBlur:i,attributes:C(v({},f),{ref:w})}),s.jsx("div",{className:Je.decorator,children:s.jsx(le,{svg:Kr,className:Je.icon})})]}),t&&s.jsx("span",{className:Je.text,children:t})]}))},ai={root:"_root_1c40o_1"},li=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:i}=e,a=M(ai.root,o);return s.jsx(L,{attributes:i,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},Tt={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},ci=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:i,closeAriaLabel:a,className:l,attributes:d}=e,f=M(Tt.root,l,i&&Tt[`--variant-${i}`],n&&Tt[`--align-${n}`],o&&Tt["--hide-close"]),u=i==="media"?"div":Ce.Aligner;return s.jsxs("div",C(v({},d),{className:f,children:[t,!o&&s.jsx(u,{className:Tt.close,children:s.jsx(Ce,C(v({size:"small"},i==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Lr}))})]}))},di={root:"_root_r7flr_1"},ui=e=>{const{children:t}=e;return s.jsx("div",{className:di.root,children:t})},Yr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},_i=e=>{const{children:t,active:n,className:r,attributes:o}=e,i=M(Yr.root,n&&Yr["--active"],r);return s.jsx(Q,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:i,attributes:o,children:t})},rn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},mi=e=>{const{src:t,alt:n,width:r,height:o,onLoad:i,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:u,attributes:h,imageAttributes:m}=e,[g,b]=c.useState("loading"),x=fn(f),y=hn(r),w=Ct(o),p=M(rn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,w==null?void 0:w.classNames,d&&rn[`--display-mode-${d}`],u),j=M(rn.image,p),$=M(rn.fallback,p),z=v(v({},y==null?void 0:y.variables),w==null?void 0:w.variables),T=S=>{b("success"),i==null||i(S)},E=S=>{b("error"),a==null||a(S)};return c.useEffect(()=>{b("loading")},[t]),(g==="error"||!t)&&l?typeof l=="string"?s.jsx("img",C(v({},h),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):s.jsx("div",C(v({},h),{className:$,style:z,children:l})):s.jsx("img",C(v(v({},h),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:T,onError:E,className:j,style:z}))},Fn=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),i=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:i}},fi=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Gr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),r=c.useRef(!1),o=c.useCallback(()=>{const{body:a}=document,l=a.getBoundingClientRect();if(r.current=l.left+l.right<window.innerWidth,n.current=a.style.overflow,a.style.overflow="hidden",r.current){const d=fi();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),i=c.useCallback(()=>{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),t(!1)},[t,r,n]);return{scrollLocked:e,lockScroll:o,unlockScroll:i}},_t={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Xr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:i,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),u=c.useRef(!1),h=c.useRef(null),{lockScroll:m,unlockScroll:g}=Gr(),{active:b,activate:x,deactivate:y}=Fn(t||!1),{active:w,activate:p,deactivate:j}=Fn(t||!1),$=yr(t,f),z=M(_t.root,w&&_t["--visible"],r&&_t["--transparent"],i),T=D=>{if(!f.current)return;const F=f.current.firstChild;if(F)return F.contains(D)},E=()=>{f.current&&(h.current=Rt(f.current))},S=()=>{h.current&&(h.current(),h.current=null)},O=c.useCallback(()=>{!w||!$()||o&&o()},[w,$]),P=D=>{u.current=!T(D.target)},q=D=>{const F=!T(D.target);u.current&&F&&!r&&O()},B=D=>{D.propertyName!=="opacity"||D.target!==D.currentTarget||w||(r||g(),y())};return rt({Escape:O},[O]),c.useEffect(()=>{t&&!b&&x(),!t&&b&&j()},[t,x,j,b]),c.useEffect(()=>{b&&(r||m(),Nt(()=>p()))},[b,p,m,r]),c.useEffect(()=>{if(b)return E(),()=>S()},[b]),c.useEffect(()=>()=>{r||g()},[g,r]),ce(()=>{d(!0)},[]),!b||!l?null:s.jsx(Qt,{children:s.jsx(Qt.Scope,{children:D=>s.jsx("div",C(v({},a),{ref:D,role:"button",tabIndex:-1,className:z,onMouseDown:P,onMouseUp:q,onTransitionEnd:B,children:s.jsx("div",{className:_t.wrapper,children:s.jsx("div",{className:_t.inner,children:s.jsx("div",{className:_t.content,ref:f,children:typeof n=="function"?n({active:w}):n})})})}))})})},Ln={root:"_root_1cqfg_1","--position-center":"_--position-center_1cqfg_1","--position-bottom":"_--position-bottom_1cqfg_1","--position-start":"_--position-start_1cqfg_1","--position-end":"_--position-end_1cqfg_1","--active":"_--active_1cqfg_88","--position-center--m":"_--position-center--m_1cqfg_1","--position-bottom--m":"_--position-bottom--m_1cqfg_1","--position-start--m":"_--position-start--m_1cqfg_1","--position-end--m":"_--position-end--m_1cqfg_1","--position-center--l":"_--position-center--l_1cqfg_1","--position-bottom--l":"_--position-bottom--l_1cqfg_1","--position-start--l":"_--position-start--l_1cqfg_1","--position-end--l":"_--position-end--l_1cqfg_1","--position-center--xl":"_--position-center--xl_1cqfg_1","--position-bottom--xl":"_--position-bottom--xl_1cqfg_1","--position-start--xl":"_--position-start--xl_1cqfg_1","--position-end--xl":"_--position-end--xl_1cqfg_1"},Jr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Qr=()=>c.useContext(Jr),hi=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},gi=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Qr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),s.jsx(Q,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},Dn=e=>{const{children:t,onClose:n,active:r,size:o,padding:i=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,u=ze(),[h,m]=c.useState(!1),[g,b]=c.useState(!1),x=Sn(i),y=c.useMemo(()=>({titleMounted:h,setTitleMounted:m,subtitleMounted:g,setSubtitleMounted:b,id:u}),[u,g,h]);return s.jsx(Xr,{onClose:n,active:r,transparent:l,children:({active:w})=>{const p=M(Ln.root,d,x==null?void 0:x.classNames,w&&Ln["--active"],H(Ln,"--position",a));return s.jsx(Jr.Provider,{value:y,children:s.jsx("div",C(v({},f),{style:v(v({},x==null?void 0:x.variables),te("--rs-modal-size",o)),"aria-labelledby":h?`${u}-title`:void 0,"aria-describedby":g?`${u}-subtitle`:void 0,className:p,"aria-modal":"true",role:"dialog",children:t}))})}})};Dn.Title=hi,Dn.Subtitle=gi;const It={root:"_root_1ux6v_1",value:"_value_1ux6v_9","--duration":"_--duration_1ux6v_23","--size-small":"_--size-small_1ux6v_27","--size-medium":"_--size-medium_1ux6v_31","--color-primary":"_--color-primary_1ux6v_35","--color-critical":"_--color-critical_1ux6v_39","--color-positive":"_--color-positive_1ux6v_43","--color-white":"_--color-white_1ux6v_47"},vi=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:i="medium",duration:a,className:l,attributes:d}=e,f=M(It.root,l,o&&It[`--color-${o}`],i&&It[`--size-${i}`],!!a&&It["--duration"]),u=r-n,h=t-n,b=`${Math.max(n,Math.min(r,h))/u*100-100}%`;return s.jsx("div",C(v({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:s.jsx("div",{className:It.value,style:{"--rs-progress-value":b,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Zr=c.createContext(null),bi=()=>c.useContext(Zr),eo=e=>{const{onChange:t,name:n,disabled:r,value:o,children:i,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return s.jsx(Zr.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:i})},pi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),i=a=>{a.value&&(o(a.value),n&&n(a))};return s.jsx(eo,C(v({},e),{value:r,defaultValue:void 0,onChange:i}))},xi=e=>{const{value:t}=e;return t!==void 0?s.jsx(eo,v({},e)):s.jsx(pi,v({},e))},ot={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},wi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:i,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),u=bi(),h=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),g=u?u.value===n:e.checked,b=u?void 0:e.defaultChecked,x=u?u.name:e.name,y=M(ot.root,a,h&&ot["--error"],m&&ot["--disabled"]),w=p=>{if(!x)return;const{checked:j}=p.target,$={name:x,value:n,checked:j,event:p};r&&r($),u!=null&&u.onChange&&u.onChange($)};return s.jsxs("label",C(v({},l),{className:y,children:[s.jsxs("span",{className:ot.field,children:[s.jsx(An,{className:ot.input,type:"radio",checked:g,defaultChecked:b,name:x,disabled:m,value:n,onChange:w,onFocus:o,onBlur:i,attributes:d}),s.jsx("div",{className:ot.decorator})]}),t&&s.jsx("span",{className:ot.text,children:t})]}))},to={short:4e3,long:8e3},Mt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],no={queues:Mt.reduce((e,t)=>v({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},on=c.createContext(no),yi=()=>{const{add:e,hide:t}=c.useContext(on);return c.useMemo(()=>({show:e,hide:t}),[e,t])},Le={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},ji=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:i,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:u}=e;let h=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(h=f?"neutral":"elevation-overlay");const m=o==="neutral"?"neutral-faded":"transparent",g=t==="small"?"span":"div",b=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&s.jsxs(s.Fragment,{children:[a&&s.jsxs(Q,{variant:"body-3",weight:"bold",as:g,children:[a," "]}),s.jsx(Q,{variant:"body-3",as:g,children:n})]}),w=s.jsxs(L,{backgroundColor:h,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:b?"start":"center",className:Le.toast,attributes:u,children:[i&&s.jsx(le,{size:5,svg:i,className:Le.icon}),d&&!i&&s.jsx(L.Item,{children:d}),s.jsx(L.Item,{grow:!0,children:s.jsxs(L,{direction:b?"column":"row",align:b?"start":"center",gap:3,children:[s.jsx(L.Item,{grow:!0,children:y&&r||t!=="small"?s.jsxs(L,{gap:.5,children:[y,r&&s.jsx(L,{gap:3,children:r})]}):y||r}),x.length&&s.jsx(L,{direction:"row",align:"center",gap:2,children:x.map((p,j)=>{const $=t==="large"?j===0:j===x.length-1,T={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return p.type===Ce?c.createElement(Ce,C(v(v({},T),p.props),{key:j})):p})})]})})]});return o==="inverted"?s.jsx(lt,{colorMode:"inverted",children:w}):w},Ci=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:i}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(on),[u,h]=c.useState(),m=c.useRef(),g=c.useRef(!1),b=c.useRef(null),x=c.useRef(null),y=r==="entered",w=M(Le.container,y&&Le["container--visible"],i===0&&Le[`container--index-${i}`],!o&&(i===1||i===2)&&Le[`container--index-${i}`],!o&&i>=3&&Le["container--index-overflow"]),p=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{p();const z=typeof a=="string"?to[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:to.short))},[d,n,a,p]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?p():j())},[o,j,p,y]),c.useEffect(()=>{x.current&&h(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?b.current=Rt(x.current,{includeTrigger:!0,mode:"content-menu"}):b.current&&br()&&(b.current(),b.current=null))},[y]),c.useEffect(()=>{if(!y||i>0)return;const z=()=>{g.current=!0,Nt(()=>{g.current=!1}),x.current&&h(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,i]),s.jsx("li",{className:w,style:{height:r==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:g.current?"0s":void 0},onTransitionEnd:$,onFocus:p,onBlur:j,children:s.jsx("span",{className:Le.wrapper,children:s.jsx(ji,C(v({},t),{collapsed:i>0&&!o,attributes:{ref:x}}))})})},ki=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(on),[o,i]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:u}=(r==null?void 0:r[t])||{},h=M(Le.region,Le[`region--position-${t}`]),m=d.filter(p=>p.status==="entered").length;let g=0;const b=()=>{a.current=!0},x=p=>{let j=p.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(pr),j=j.parentElement;$||i(z=>!z),a.current=!1},y=()=>{a.current||i(!0)},w=()=>{a.current||i(!1)};return c.useEffect(()=>{d.length===0&&i(!1)},[d.length]),d.length?s.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:l,onTouchStart:b,onClick:x,onMouseEnter:y,onMouseLeave:w,style:{width:f},children:d.map((p,j)=>{const $=m-j+g-1;return p.status!=="entered"&&(g+=1),s.jsx(Ci,C(v({},p),{index:$,inspected:o||!!u}),p.id)})}):null};let Ni=0;const $i=()=>`__rs-toast-${Ni++}`,zi=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,i=qe(r,["position"]);return C(v({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:a}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.status!=="entering"?u:u.id===a?C(v({},u),{status:"entered"}):u)}),n;case"hide":const{id:l}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].map(u=>u.id===l?C(v({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=v({},e),Mt.forEach(f=>{n[f]=n[f].filter(u=>u.id!==d)}),n}},Ei=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(zi,no.queues),i=c.useCallback(u=>{const h=$i();return console.log("add"),o({type:"add",payload:{toastProps:u,id:h}}),h},[]),a=c.useCallback(u=>{o({type:"show",payload:{id:u}})},[]),l=c.useCallback(u=>{console.log("hide"),o({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{o({type:"remove",payload:{id:u}})},[]),f=c.useMemo(()=>({queues:r,add:i,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,i,d,n]);return s.jsxs(on.Provider,{value:f,children:[t,Mt.map(u=>s.jsx(ki,{position:u},u))]})},Ti=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(yn,"true")},t=()=>{document.documentElement.removeAttribute(yn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},ac="",Ii={root:"_root_18j53_1"},Mi=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,i=ps(n);return Ti(),s.jsx($n.Provider,{value:{rtl:i,defaultViewport:r},children:s.jsx(vs,{children:s.jsx(Ei,{options:o,children:t})})})},Si=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,i=M(Ii.root,o);return s.jsx(Ms,{defaultMode:r,children:s.jsx(lt,{name:t,defaultName:n,className:i,children:s.jsx(Mi,C(v({},e),{children:e.children}))})})},St={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Pi=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:i,scrimClassName:a}=e,l=M(St.root,!!n&&St["--with-background"],r&&St[`--position-${r}`],i),d=M(St.scrim,a);return s.jsxs("div",C(v({},o),{className:l,children:[n,s.jsx("div",{className:d,children:s.jsx("div",{className:St.content,children:t})})]}))},qi=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),De={root:"_root_fqxht_1",input:"_input_fqxht_18",slot:"_slot_fqxht_48",arrow:"_arrow_fqxht_63","--size-medium":"_--size-medium_fqxht_1","--size-large":"_--size-large_fqxht_1","--size-xlarge":"_--size-xlarge_fqxht_1","--variant-faded":"_--variant-faded_fqxht_118","--variant-headless":"_--variant-headless_fqxht_127","--status-error":"_--status-error_fqxht_132","--placeholder":"_--placeholder_fqxht_147","--disabled":"_--disabled_fqxht_151","--size-medium--m":"_--size-medium--m_fqxht_1","--size-large--m":"_--size-large--m_fqxht_1","--size-xlarge--m":"_--size-xlarge--m_fqxht_1","--size-medium--l":"_--size-medium--l_fqxht_1","--size-large--l":"_--size-large--l_fqxht_1","--size-xlarge--l":"_--size-xlarge--l_fqxht_1","--size-medium--xl":"_--size-medium--xl_fqxht_1","--size-large--xl":"_--size-large--xl_fqxht_1","--size-xlarge--xl":"_--size-xlarge--xl_fqxht_1"},Ai=e=>{var B,D;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:i,value:a,defaultValue:l,placeholder:d,options:f,children:u,icon:h,startSlot:m,size:g="medium",variant:b="outline",className:x,attributes:y}=e,[w,p]=c.useState(a===void 0?!l:!a),j=Ye(),$=ze(e.id),z=((B=j==null?void 0:j.attributes)==null?void 0:B.id)||((D=e.inputAttributes)==null?void 0:D.id)||$,T=(j==null?void 0:j.disabled)||e.disabled,E=(j==null?void 0:j.hasError)||e.hasError,S=v(v({},e.inputAttributes),j==null?void 0:j.attributes),O=M(De.root,x,g&&H(De,"--size",g),E&&De["--status-error"],T&&De["--disabled"],w&&f&&De["--placeholder"],b&&De[`--variant-${b}`]),P=F=>{const Z=F.target.value;a===void 0&&p(!Z),t&&t({name:i,value:Z,event:F})};c.useEffect(()=>{a!==void 0&&p(!a)},[a]);const q=(m||h)&&s.jsx("div",{className:De.slot,children:h?s.jsx(le,{size:$e(g,F=>F==="large"?5:F==="xlarge"?6:4),svg:h}):m});return s.jsxs("div",C(v({},y),{className:O,children:[f?s.jsxs(s.Fragment,{children:[q,s.jsxs("select",C(v({},S),{className:De.input,disabled:T,name:i,value:a,defaultValue:l,onChange:P,onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur),id:z,children:[d&&s.jsx("option",{value:"",children:d}),f.map(F=>s.jsx("option",{value:F.value,disabled:F.disabled,children:F.label},F.value))]}))]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ae,{className:De.input,disabled:T,onClick:n,attributes:C(v({},S),{onFocus:r||(S==null?void 0:S.onFocus),onBlur:o||(S==null?void 0:S.onBlur)}),children:[q,u||(d?s.jsx(Q,{color:"neutral-faded",children:d}):null)]}),s.jsx("input",{type:"hidden",value:a,name:i})]}),s.jsx("div",{className:De.arrow,children:s.jsx(le,{svg:qi,color:T?"disabled":"neutral-faded",size:$e(g,F=>F==="large"||F==="xlarge"?5:4)})})]}))},Fi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Li=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:i}=e,a=M(Fi.root,o);return s.jsx(L,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:i})},Qe={root:"_root_k9a0x_1",bar:"_bar_k9a0x_10",input:"_input_k9a0x_19",selection:"_selection_k9a0x_28",tooltip:"_tooltip_k9a0x_34",thumb:"_thumb_k9a0x_50","thumb--active":"_thumb--active_k9a0x_1","--disabled":"_--disabled_k9a0x_104"},Di=(e,t)=>{const{name:n,value:r,disabled:o,active:i,position:a,max:l,min:d,onChange:f,onDragStart:u,renderValue:h}=e,m=c.useId(),g=M(Qe.thumb,i&&Qe["thumb--active"]),b=h?h({value:r}):r,x=y=>{f(+y.target.value)};return s.jsxs(s.Fragment,{children:[s.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":m}),s.jsx("div",{ref:t,className:g,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:s.jsx(lt,{className:Qe.tooltip,colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",weight:"medium",children:b})})})]})},ro=c.forwardRef(Di),oo=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Vn=(e,t)=>Math.round(e/t)*t,On=e=>{var ke;const{name:t,range:n,max:r,min:o,step:i=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:u}=e,h=n&&e.minValue!==void 0?Vn(e.minValue,i):void 0,m=Vn(n?e.maxValue:e.value,i),g=c.useRef(null),b=c.useRef(null),x=c.useRef(null),[y,w]=c.useState(null),[p]=Ge(),j=Ye(),$=ze(),z=((ke=j==null?void 0:j.attributes)==null?void 0:ke.id)||$,T=`${z}-min`,E=`${z}-max`,S=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,S&&Qe["--disabled"],f),P=c.useCallback(re=>{if(!g.current)return;const R=g.current.clientWidth;let G=(re-g.current.getBoundingClientRect().left)/R;p&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Vn(ie,i)},[r,o,p,i]),q=re=>(re-o)/(r-o)*100,B=c.useCallback((re,R)=>{if(!n)return;const Y=R!=null&&R.commit?l:a;Y==null||Y({minValue:re,maxValue:m,name:t})},[m,t,n]),D=c.useCallback((re,R)=>{if(n){const G=R!=null&&R.commit?l:a;G==null||G({minValue:h,maxValue:re,name:t});return}const Y=R!=null&&R.commit?l:a;Y==null||Y({value:re,name:t})},[h,t,n]),F=({nativeEvent:re})=>{if(S)return;let R,Y;const G=oo(re),ie=P(G);[{ref:b,id:T},{ref:x,id:E}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,ge=Math.abs(pe.getBoundingClientRect().left-G);(R===void 0||ge<=R)&&(R=ge,Y=X.id)}),!(!Y||ie===void 0)&&(Y===T&&B(ie),Y===E&&D(ie),w(Y))},Z=()=>{S||w(T)},fe=()=>{S||w(E)},he=c.useCallback(()=>{y===T&&h!==void 0&&B(h,{commit:!0}),y===E&&D(m,{commit:!0}),w(null)},[h,m,B,D,y,T,E]),se=c.useCallback(re=>{if(!y)return;const R=oo(re),Y=P(R);if(Y===void 0)return;let G=y;y===T&&Y>m&&(G=E),y===E&&h&&Y<h&&(G=T),G===T&&B(Y),G===E&&D(Y),y!==G&&w(G)},[y,h,m,P,D,B,E,T]);c.useEffect(()=>(window.addEventListener("mouseup",he),window.addEventListener("touchend",he),window.addEventListener("mousemove",se),window.addEventListener("touchmove",se),()=>{window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se)}),[he,se]);const ee=h&&q(h),He=q(m);return s.jsxs("div",C(v({},u),{className:O,onMouseDown:F,onTouchStart:F,children:[s.jsx("div",{className:Qe.bar,ref:g,children:s.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${ee||0}%`,width:`${He-(ee||0)}%`}})}),h!==void 0&&ee!==void 0&&s.jsx(ro,{id:T,active:T===y,name:t,disabled:S,onChange:B,value:h,onDragStart:Z,position:ee,max:r,min:o,ref:b,renderValue:d}),s.jsx(ro,{id:E,active:E===y,name:t,disabled:S,onChange:D,value:m,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Vi=e=>{const{min:t,max:n,onChange:r,range:o}=e,i="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,a="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(o?n:t),[l,d]=c.useState(i),[f,u]=c.useState(a),h=g=>{o||(u(g.value),r==null||r(g))},m=g=>{o&&(d(g.minValue),u(g.maxValue),r==null||r(g))};return o?s.jsx(On,C(v({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):s.jsx(On,C(v({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:h}))},Oi=e=>{const o=e,{min:t=0,max:n=100}=o,r=qe(o,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?s.jsx(On,C(v({},r),{min:t,max:n})):s.jsx(Vi,C(v({},r),{min:t,max:n}))},Bi={verticalDivider:"_verticalDivider_oa23g_1"},Wi=e=>{const{title:t,subtitle:n,children:r,direction:o,className:i,attributes:a,labelDisplay:l,step:d,completed:f,active:u,last:h}=e,m=l&&$e(l,b=>b==="hidden"),g=s.jsx(L,{gap:3,grow:!0,children:s.jsxs(L.Item,{children:[s.jsx(Q,{variant:"body-3",weight:"medium",children:t}),s.jsx(Q,{variant:"caption-1",color:"neutral-faded",children:n})]})});return s.jsxs(L,{children:[s.jsxs(L,{attributes:a,className:i,direction:"row",gap:2,align:"center",position:"static",children:[s.jsxs(L.Item,{children:[s.jsx(L,{align:"center",justify:"center",backgroundColor:u||f?"primary":"neutral-faded",borderColor:u||f?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:s.jsx(Q,{variant:"body-3",weight:u?"bold":"medium",children:f?s.jsx(le,{svg:Kr,size:4}):d})}),o==="column"&&!h&&s.jsx(At,{vertical:!0,className:Bi.verticalDivider})]}),l?s.jsx(Lt,{hide:m,children:g}):g]}),o==="column"&&r&&s.jsx(lr,{active:u,children:s.jsx(L,{paddingStart:10,paddingTop:2,children:r})})]})},Hi=e=>null,so=e=>{const{children:t,direction:n="row",activeId:r,labelDisplay:o,className:i,attributes:a}=e,l=n==="column",d=c.Children.count(t);return s.jsx(L,{attributes:a,direction:n,align:l?"stretch":"center",className:i,gap:3,wrap:!1,children:c.Children.map(t,(f,u)=>{const h=f.props.id||`${u}`;return s.jsxs(c.Fragment,{children:[s.jsx(Wi,C(v({},f.props),{id:f.props.id||`${u}`,active:(r==null?void 0:r.toString())===h,step:u+1,last:u===d-1,direction:n,labelDisplay:o})),!l&&u<d-1&&s.jsx(L,{grow:!0,children:s.jsx(At,{})})]},u)})})};so.Item=Hi;const mt={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Ri=e=>{var p;const{children:t,name:n,checked:r,size:o,reversed:i,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:u,attributes:h}=e,m=M(mt.root,o&&mt[`root--size-${o}`],i&&mt["root--reversed"],u),g=Ye(),b=ze((g==null?void 0:g.attributes.id)||e.id||((p=e.inputAttributes)==null?void 0:p.id)),x=v(v({},e.inputAttributes),g==null?void 0:g.attributes),y=(g==null?void 0:g.disabled)||e.disabled,w=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return s.jsxs("label",C(v({},h),{className:m,children:[s.jsx("input",C(v({type:"checkbox"},x),{className:mt.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:w,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:b})),s.jsx("span",{className:mt.area,"aria-hidden":"true",children:s.jsx("span",{className:mt.thumb})}),t&&s.jsx(Q,{variant:"body-3",weight:"medium",children:t})]}))},Ui={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Ki=e=>{if(!e)return null;const t=te("--rs-min-w",e);return{classNames:H(Ui,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Ze={root:"_root_1we4q_1",table:"_table_1we4q_14",row:"_row_1we4q_21",cell:"_cell_1we4q_25","cell--align-start":"_cell--align-start_1we4q_1","cell--align-center":"_cell--align-center_1we4q_1","cell--align-end":"_cell--align-end_1we4q_1","--row-highlighted":"_--row-highlighted_1we4q_49","--border-outer":"_--border-outer_1we4q_53","--border-column":"_--border-column_1we4q_57"},io=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:i,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:u}=e,h=e.width==="auto"?"0px":e.width,m=hn(h),g=Ki(t||h),b=M(Ze.cell,m==null?void 0:m.classNames,g==null?void 0:g.classNames,o&&Ze[`cell--align-${o}`]),x=v(v(v(v({},m==null?void 0:m.variables),g==null?void 0:g.variables),te("--rs-table-p-vertical",d!=null?d:a)),te("--rs-table-p-horizontal",l!=null?l:a));return s.jsx(i,C(v({},u),{className:b,rowSpan:n,colSpan:r,style:x,children:f}))},Yi=e=>s.jsx(io,C(v({},e),{tagName:"td"})),Gi=e=>s.jsx(io,C(v({},e),{tagName:"th"})),Xi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return s.jsx("tr",C(v({},r),{className:o,children:n}))},Bn=e=>s.jsx("tbody",{children:e.children}),ao=e=>s.jsx("thead",{children:e.children}),ft=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:i}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return s.jsx("div",C(v({},i),{className:a,children:s.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Bn||l.type===ao)?t:s.jsx(Bn,{children:t})})}))};ft.Cell=Yi,ft.Heading=Gi,ft.Row=Xi,ft.Body=Bn,ft.Head=ao;const lo=c.createContext({}),Ji=lo.Provider,Wn=e=>{const r=c.useContext(lo),{id:t}=r,n=qe(r,["id"]);return C(v({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},co=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:i,variant:a,name:l,direction:d="row",size:f="medium"}=e,u=ze(),h=c.useRef(null),m=c.useRef(h.current),g=c.useRef(null),[b,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=w=>{w!==void 0&&o&&o({value:w,name:l})};return s.jsx(Ji,{value:{value:n,name:l,size:f,direction:d,itemWidth:i,variant:a,onChange:r,id:u,setDefaultValue:y,elActiveRef:h,elPrevActiveRef:m,elScrollableRef:g,selection:b,setSelection:x},children:t})},Qi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),i=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return s.jsx(co,C(v({},e),{onChange:i,onSilentChange:a,value:r,defaultValue:void 0}))},ne={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},Zi=(e,t)=>{const{value:n,children:r,icon:o,href:i,attributes:a}=e,{onChange:l,panelId:d,name:f,size:u,value:h,selection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(n),y=c.useRef(null),w=h===n,p=w&&m.status==="idle",j=M(ne.item,p&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:w?0:-1,"aria-selected":w},T=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");b.current=g.current,g.current=y.current},[g,b]),E=()=>{var F,Z,fe;if(i&&!l)return;const S=x.current,O=(F=y.current)==null?void 0:F.parentElement,P=(Z=g.current)==null?void 0:Z.parentElement;if(T(),l&&l({value:n,name:f}),!S||!O||!P||S.scrollWidth===S.clientWidth)return;const q=O.offsetLeft<P.offsetLeft,B=(O.offsetLeft-S.scrollLeft)/S.clientWidth;(q?B<.3:B>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{w&&T()},[w,T]),s.jsx("div",C(v({},a),{className:j,ref:y,role:"presentation",children:s.jsxs(Ae,{ref:t,href:i,insetFocus:!0,onClick:f?void 0:E,className:ne.button,as:f?"label":void 0,attributes:C(v({},!$&&z),{"aria-controls":d}),children:[f&&s.jsx(An,{type:"radio",name:f,value:n,checked:p,onChange:E,className:ne.radio}),s.jsxs("span",{className:ne.buttonContent,children:[o&&s.jsx(le,{svg:o,className:ne.icon,size:4}),r&&s.jsx(Q,{variant:u==="large"?"body-2":"body-3",children:r})]})]})}))},uo=c.forwardRef(Zi),_o=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:_o(e.parentElement,t),ea=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:i,itemWidth:a,variant:l,name:d,direction:f,size:u,selection:h,setSelection:m,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:x}=Wn(),[y]=Ge(),[w,p]=c.useState(null),j=M(ne.root,u&&ne[`--size-${u}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],w&&ne[`--cut-off-${w}`],n),$=M(ne.selector,h.status==="idle"&&ne["--selector-hidden"],h.status==="animated"&&ne["--selector-animated"]),z=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},T=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},E=()=>{m(P=>C(v({},P),{status:"idle"}))},S=c.useCallback(P=>{if(!x.current)return null;const q=_o(P,x.current);return q?{scaleX:q.clientWidth,scaleY:q.clientHeight,top:q.offsetTop,left:q.offsetLeft}:null},[x]),{ref:O}=rt({"ArrowLeft, ArrowUp":P=>{d||(P.preventDefault(),as(x.current))},"ArrowRight, ArrowDown":P=>{d||(P.preventDefault(),is(x.current))},Home:P=>{d||(P.preventDefault(),ls(x.current))},End:P=>{d||(P.preventDefault(),cs(x.current))}});return ce(()=>{if(o)return;const P=c.Children.toArray(t)[0];!P||P.type!==uo||i(P.props.value)},[o]),ce(()=>{if(!b.current||b.current===g.current)return;const P=S(b.current);P&&m(C(v({},P),{status:"prepared"}))},[o,S]),ce(()=>{if(h.status!=="prepared"||!g.current)return;const P=S(g.current);P&&m(C(v({},P),{status:"animated"}))},[h]),ce(()=>{const P=x.current;if(!P||f==="column")return;const q=()=>{P.clientWidth<P.scrollWidth||p(null);const F=P.scrollLeft*(y?-1:1),Z=F>1,fe=F+P.clientWidth<P.scrollWidth-1;if(fe&&Z)return p("both");if(Z)return p("start");if(fe)return p("end")},B=Eo(q,100);return requestAnimationFrame(()=>{q()}),window.addEventListener("resize",B),P.addEventListener("scroll",B),()=>{window.removeEventListener("resize",B),P.removeEventListener("scroll",B)}},[y]),s.jsxs("div",C(v({},r),{className:j,children:[s.jsx("div",{className:ne.inner,ref:x,children:s.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(P,q)=>P?s.jsx("div",{className:ne.listItem,children:P},P.props.value||P.key||q):null),s.jsx("div",{onTransitionEnd:E,className:$,style:{"--rs-tab-selection-x":h.left,"--rs-tab-selection-y":h.top,"--rs-tab-selection-scale-x":h.scaleX,"--rs-tab-selection-scale-y":h.scaleY}})]})}),(w==="start"||w==="both")&&s.jsx("span",{className:ne.prev,children:s.jsx(Ce,{onClick:T,size:"small",icon:Wr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(w==="end"||w==="both")&&s.jsx("span",{className:ne.next,children:s.jsx(Ce,{onClick:z,size:"small",icon:Zt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},ta=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:i}=Wn(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return s.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":i,children:a&&n})},sn=e=>{const{value:t}=e;return t!==void 0?s.jsx(co,v({},e)):s.jsx(Qi,v({},e))};sn.Item=uo,sn.List=ea,sn.Panel=ta;const ht={root:"_root_13usd_1",input:"_input_13usd_5","--size-medium":"_--size-medium_13usd_1","--size-large":"_--size-large_13usd_1","--size-xlarge":"_--size-xlarge_13usd_1","--variant-faded":"_--variant-faded_13usd_69","--variant-headless":"_--variant-headless_13usd_80","--status-error":"_--status-error_13usd_87","--size-medium--m":"_--size-medium--m_13usd_1","--size-large--m":"_--size-large--m_13usd_1","--size-xlarge--m":"_--size-xlarge--m_13usd_1","--size-medium--l":"_--size-medium--l_13usd_1","--size-large--l":"_--size-large--l_13usd_1","--size-xlarge--l":"_--size-xlarge--l_13usd_1","--size-medium--xl":"_--size-medium--xl_13usd_1","--size-large--xl":"_--size-large--xl_13usd_1","--size-xlarge--xl":"_--size-xlarge--xl_13usd_1"},mo=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:r,name:o,value:i,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:u,attributes:h}=e,m=Ye(),g=ze(e.id),b=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||g,x=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,w=v(v({},e.inputAttributes),m==null?void 0:m.attributes),p=M(ht.root,d&&H(ht,"--size",d),y&&ht["--status-error"],x&&ht["--disabled"],f&&ht[`--variant-${f}`],u),j=T=>{t&&t({name:o,value:T.target.value,event:T})};return s.jsx("div",C(v({},h),{"data-rs-aligner-target":!0,className:p,children:s.jsx("textarea",C(v({rows:3},w),{className:ht.input,disabled:x,name:o,placeholder:l,value:i,defaultValue:a,onChange:j,onFocus:n||(w==null?void 0:w.onFocus),onBlur:r||(w==null?void 0:w.onBlur),id:b}))}))};mo.Aligner=Vt;const Hn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Rn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,i=n!==null,a=M(Hn.item,!i&&Hn["item--full-width"],r);return s.jsxs(L,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[i&&s.jsx("span",{className:Hn.marker,children:n}),s.jsx(L.Item,{grow:!0,children:t})]})},fo=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return s.jsx("ul",C(v({},r),{className:o,children:c.Children.map(t,(i,a)=>(i==null?void 0:i.type)===Rn?i:s.jsx(Rn,{children:i},a))}))};fo.Item=Rn;const na={root:"_root_9090g_1"},ra=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:i,position:a="bottom",active:l}=e;return s.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:i,triggerType:"hover",children:[s.jsx(Xe.Trigger,{children:r}),s.jsx(Xe.Content,{children:s.jsx(lt,{colorMode:"inverted",children:s.jsx(Q,{variant:"caption-1",className:na.root,children:n})})})]})},gt={m:660,l:900,xl:1280},ho={s:`(max-width: ${gt.m-1}px)`,m:`(min-width: ${gt.m}px) and (max-width: ${gt.l-1}px)`,l:`(min-width: ${gt.l}px) and (max-width: ${gt.xl-1}px)`,xl:`(min-width: ${gt.xl}px)`},oa=e=>{const{defaultViewport:t}=c.useContext($n),[n,r]=c.useState(t);return ce(()=>{const i=Object.keys(ho).map(a=>{const l=window.matchMedia(ho[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return i.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{i.forEach(({handler:a,mq:l})=>{l.removeEventListener("change",a)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},sa=e=>{const{w:t="auto",h:n=50,children:r}=e;return s.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:r})};N.Accordion=bn,N.ActionBar=Xo,N.Actionable=Ae,N.Alert=Qo,N.Autocomplete=Fr,N.Avatar=Rs,N.Badge=Dr,N.Breadcrumbs=Br,N.Button=Ce,N.Card=ei,N.Carousel=ti,N.Checkbox=ii,N.CheckboxGroup=si,N.Container=li,N.Dismissible=ci,N.Divider=At,N.DropdownMenu=we,N.FormControl=Dt,N.Hidden=Lt,N.HiddenVisually=ui,N.Hotkey=_i,N.Icon=le,N.Image=mi,N.Link=Or,N.Loader=Vr,N.MenuItem=Pn,N.Modal=Dn,N.Overlay=Xr,N.Placeholder=sa,N.Popover=ct,N.Progress=vi,N.Radio=wi,N.RadioGroup=xi,N.Reshaped=Si,N.Scrim=Pi,N.Select=Ai,N.Skeleton=Li,N.Slider=Oi,N.Stepper=so,N.Switch=Ri,N.Table=ft,N.Tabs=sn,N.Text=Q,N.TextArea=mo,N.TextField=wn,N.Theme=lt,N.Timeline=fo,N.Tooltip=ra,N.View=L,N.classNames=M,N.responsiveClassNames=H,N.responsivePropDependency=$e,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=ce,N.useRTL=Ge,N.useResponsiveClientValue=oa,N.useScrollLock=Gr,N.useTheme=Sr,N.useToast=yi,N.useToggle=Fn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
@@ -6,10 +6,17 @@ import { GlobalColorModeContext } from "./Theme.context.js";
6
6
  const GlobalColorMode = (props) => {
7
7
  const { defaultMode, children } = props;
8
8
  const [mode, setMode] = React.useState(defaultMode || "light");
9
+ const changeColorMode = React.useCallback((targetMode) => {
10
+ document.documentElement.setAttribute("data-rs-color-mode", targetMode);
11
+ setMode((prevMode) => {
12
+ if (prevMode !== targetMode) {
13
+ // Avoid components styles animating when switching to another color mode
14
+ disableTransitions();
15
+ }
16
+ return targetMode;
17
+ });
18
+ }, []);
9
19
  useIsomorphicLayoutEffect(() => {
10
- // Avoid components styles animating when switching to another color mode
11
- disableTransitions();
12
- document.documentElement.setAttribute("data-rs-color-mode", mode);
13
20
  onNextFrame(() => {
14
21
  enableTransitions();
15
22
  });
@@ -21,15 +28,15 @@ const GlobalColorMode = (props) => {
21
28
  useIsomorphicLayoutEffect(() => {
22
29
  const nextColorMode = document.documentElement.getAttribute("data-rs-color-mode");
23
30
  if (nextColorMode)
24
- setMode(nextColorMode);
31
+ changeColorMode(nextColorMode);
25
32
  }, []);
26
33
  const value = React.useMemo(() => ({
27
34
  mode,
28
- setMode,
35
+ setMode: changeColorMode,
29
36
  invertMode: () => {
30
- setMode(mode === "light" ? "dark" : "light");
37
+ changeColorMode(mode === "light" ? "dark" : "light");
31
38
  },
32
- }), [mode]);
39
+ }), [mode, changeColorMode]);
33
40
  return (React.createElement(GlobalColorModeContext.Provider, { value: value }, children));
34
41
  };
35
42
  export default GlobalColorMode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reshaped",
3
3
  "description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
4
- "version": "2.5.1",
4
+ "version": "2.5.2",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "email": "hello@reshaped.so",
7
7
  "homepage": "https://reshaped.so",