reshaped 2.4.0 → 2.4.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
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(N,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(N=typeof globalThis!="undefined"?globalThis:N||self,c(N.Reshaped={},N.React,N.ReactDOM))})(this,function(N,c,_e){"use strict";var
|
1
|
+
(function(N,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(N=typeof globalThis!="undefined"?globalThis:N||self,c(N.Reshaped={},N.React,N.ReactDOM))})(this,function(N,c,_e){"use strict";var da=Object.defineProperty,ua=Object.defineProperties;var _a=Object.getOwnPropertyDescriptors;var an=Object.getOwnPropertySymbols;var vo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable;var fo=(N,c,_e)=>c in N?da(N,c,{enumerable:!0,configurable:!0,writable:!0,value:_e}):N[c]=_e,g=(N,c)=>{for(var _e in c||(c={}))vo.call(c,_e)&&fo(N,_e,c[_e]);if(an)for(var _e of an(c))ho.call(c,_e)&&fo(N,_e,c[_e]);return N},k=(N,c)=>ua(N,_a(c));var Fe=(N,c)=>{var _e={};for(var xe in N)vo.call(N,xe)&&c.indexOf(xe)<0&&(_e[xe]=N[xe]);if(N!=null&&an)for(var xe of an(N))c.indexOf(xe)<0&&ho.call(N,xe)&&(_e[xe]=N[xe]);return _e};var xe={exports:{}},wt={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var Kn;function
|
9
|
+
*/var Kn;function go(){if(Kn)return wt;Kn=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,f){var _,v={},m=null,h=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(h=d.ref);for(_ in d)r.call(d,_)&&!s.hasOwnProperty(_)&&(v[_]=d[_]);if(l&&l.defaultProps)for(_ in d=l.defaultProps,d)v[_]===void 0&&(v[_]=d[_]);return{$$typeof:t,type:l,key:m,ref:h,props:v,_owner:o.current}}return wt.Fragment=n,wt.jsx=a,wt.jsxs=a,wt}var yt={};/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.development.js
|
12
12
|
*
|
@@ -14,14 +14,14 @@
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var Yn;function
|
18
|
-
`+
|
19
|
-
`),
|
20
|
-
`),
|
21
|
-
`+D[
|
17
|
+
*/var Yn;function bo(){return Yn||(Yn=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,x="@@iterator";function y(u){if(u===null||typeof u!="object")return null;var C=p&&u[p]||u[x];return typeof C=="function"?C:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(u){{for(var C=arguments.length,T=new Array(C>1?C-1:0),F=1;F<C;F++)T[F-1]=arguments[F];j("error",u,T)}}function j(u,C,T){{var F=b.ReactDebugCurrentFrame,R=F.getStackAddendum();R!==""&&(C+="%s",T=T.concat([R]));var J=T.map(function(B){return String(B)});J.unshift("Warning: "+C),Function.prototype.apply.call(console[u],console,J)}}var $=!1,z=!1,E=!1,P=!1,I=!1,O;O=Symbol.for("react.module.reference");function S(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===s||I||u===o||u===f||u===_||P||u===h||$||z||E||typeof u=="object"&&u!==null&&(u.$$typeof===m||u.$$typeof===v||u.$$typeof===a||u.$$typeof===l||u.$$typeof===d||u.$$typeof===O||u.getModuleId!==void 0))}function A(u,C,T){var F=u.displayName;if(F)return F;var R=C.displayName||C.name||"";return R!==""?T+"("+R+")":T}function q(u){return u.displayName||"Context"}function V(u){if(u==null)return null;if(typeof u.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case _:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var C=u;return q(C)+".Consumer";case a:var T=u;return q(T._context)+".Provider";case d:return A(u,u.render,"ForwardRef");case v:var F=u.displayName||null;return F!==null?F:V(u.type)||"Memo";case m:{var R=u,J=R._payload,B=R._init;try{return V(B(J))}catch(D){return null}}}return null}var L=Object.assign,Q=0,fe,ve,oe,Z,He,Ce,se;function H(){}H.__reactDisabledLog=!0;function Y(){{if(Q===0){fe=console.log,ve=console.info,oe=console.warn,Z=console.error,He=console.group,Ce=console.groupCollapsed,se=console.groupEnd;var u={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Q++}}function G(){{if(Q--,Q===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},u,{value:fe}),info:L({},u,{value:ve}),warn:L({},u,{value:oe}),error:L({},u,{value:Z}),group:L({},u,{value:He}),groupCollapsed:L({},u,{value:Ce}),groupEnd:L({},u,{value:se})})}Q<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=b.ReactCurrentDispatcher,ye;function X(u,C,T){{if(ye===void 0)try{throw Error()}catch(R){var F=R.stack.trim().match(/\n( *(at )?)/);ye=F&&F[1]||""}return`
|
18
|
+
`+ye+u}}var pe=!1,he;{var Me=typeof WeakMap=="function"?WeakMap:Map;he=new Me}function Re(u,C){if(!u||pe)return"";{var T=he.get(u);if(T!==void 0)return T}var F;pe=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=ie.current,ie.current=null,Y();try{if(C){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Ke){F=Ke}Reflect.construct(u,[],B)}else{try{B.call()}catch(Ke){F=Ke}u.call(B.prototype)}}else{try{throw Error()}catch(Ke){F=Ke}u()}}catch(Ke){if(Ke&&F&&typeof Ke.stack=="string"){for(var D=Ke.stack.split(`
|
19
|
+
`),be=F.stack.split(`
|
20
|
+
`),re=D.length-1,ae=be.length-1;re>=1&&ae>=0&&D[re]!==be[ae];)ae--;for(;re>=1&&ae>=0;re--,ae--)if(D[re]!==be[ae]){if(re!==1||ae!==1)do if(re--,ae--,ae<0||D[re]!==be[ae]){var Ne=`
|
21
|
+
`+D[re].replace(" at new "," at ");return u.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",u.displayName)),typeof u=="function"&&he.set(u,Ne),Ne}while(re>=1&&ae>=0);break}}}finally{pe=!1,ie.current=J,G(),Error.prepareStackTrace=R}var xt=u?u.displayName||u.name:"",mo=xt?X(xt):"";return typeof u=="function"&&he.set(u,mo),mo}function et(u,C,T){return Re(u,!1)}function tt(u){var C=u.prototype;return!!(C&&C.isReactComponent)}function Se(u,C,T){if(u==null)return"";if(typeof u=="function")return Re(u,tt(u));if(typeof u=="string")return X(u);switch(u){case f:return X("Suspense");case _:return X("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case d:return et(u.render);case v:return Se(u.type,C,T);case m:{var F=u,R=F._payload,J=F._init;try{return Se(J(R),C,T)}catch(B){}}}return""}var Pe=Object.prototype.hasOwnProperty,At={},st=b.ReactDebugCurrentFrame;function bt(u){if(u){var C=u._owner,T=Se(u.type,u._source,C?C.type:null);st.setExtraStackFrame(T)}else st.setExtraStackFrame(null)}function on(u,C,T,F,R){{var J=Function.call.bind(Pe);for(var B in u)if(J(u,B)){var D=void 0;try{if(typeof u[B]!="function"){var be=Error((F||"React class")+": "+T+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}D=u[B](C,B,F,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){D=re}D&&!(D instanceof Error)&&(bt(R),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",T,B,typeof D),bt(null)),D instanceof Error&&!(D.message in At)&&(At[D.message]=!0,bt(R),w("Failed %s type: %s",T,D.message),bt(null))}}}var Bn=Array.isArray;function Ft(u){return Bn(u)}function Wn(u){{var C=typeof Symbol=="function"&&Symbol.toStringTag,T=C&&u[Symbol.toStringTag]||u.constructor.name||"Object";return T}}function ge(u){try{return ue(u),!1}catch(C){return!0}}function ue(u){return""+u}function qe(u){if(ge(u))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wn(u)),ue(u)}var me=b.ReactCurrentOwner,it={key:!0,ref:!0,__self:!0,__source:!0},Ue,ke,Ae;Ae={};function sn(u){if(Pe.call(u,"ref")){var C=Object.getOwnPropertyDescriptor(u,"ref").get;if(C&&C.isReactWarning)return!1}return u.ref!==void 0}function Xi(u){if(Pe.call(u,"key")){var C=Object.getOwnPropertyDescriptor(u,"key").get;if(C&&C.isReactWarning)return!1}return u.key!==void 0}function Ji(u,C){if(typeof u.ref=="string"&&me.current&&C&&me.current.stateNode!==C){var T=V(me.current.type);Ae[T]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(me.current.type),u.ref),Ae[T]=!0)}}function Qi(u,C){{var T=function(){Ue||(Ue=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",C))};T.isReactWarning=!0,Object.defineProperty(u,"key",{get:T,configurable:!0})}}function Zi(u,C){{var T=function(){ke||(ke=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",C))};T.isReactWarning=!0,Object.defineProperty(u,"ref",{get:T,configurable:!0})}}var ea=function(u,C,T,F,R,J,B){var D={$$typeof:t,type:u,key:C,ref:T,props:B,_owner:J};return D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(D,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(D,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D};function ta(u,C,T,F,R){{var J,B={},D=null,be=null;T!==void 0&&(qe(T),D=""+T),Xi(C)&&(qe(C.key),D=""+C.key),sn(C)&&(be=C.ref,Ji(C,R));for(J in C)Pe.call(C,J)&&!it.hasOwnProperty(J)&&(B[J]=C[J]);if(u&&u.defaultProps){var re=u.defaultProps;for(J in re)B[J]===void 0&&(B[J]=re[J])}if(D||be){var ae=typeof u=="function"?u.displayName||u.name||"Unknown":u;D&&Qi(B,ae),be&&Zi(B,ae)}return ea(u,D,be,R,F,me.current,B)}}var Hn=b.ReactCurrentOwner,io=b.ReactDebugCurrentFrame;function pt(u){if(u){var C=u._owner,T=Se(u.type,u._source,C?C.type:null);io.setExtraStackFrame(T)}else io.setExtraStackFrame(null)}var Rn;Rn=!1;function Un(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function ao(){{if(Hn.current){var u=V(Hn.current.type);if(u)return`
|
22
22
|
|
23
|
-
Check the render method of \``+u+"`."}return""}}function
|
23
|
+
Check the render method of \``+u+"`."}return""}}function na(u){{if(u!==void 0){var C=u.fileName.replace(/^.*[\\\/]/,""),T=u.lineNumber;return`
|
24
24
|
|
25
|
-
Check your code at `+C+":"+T+"."}return""}}var
|
25
|
+
Check your code at `+C+":"+T+"."}return""}}var lo={};function ra(u){{var C=ao();if(!C){var T=typeof u=="string"?u:u.displayName||u.name;T&&(C=`
|
26
26
|
|
27
|
-
Check the top-level render call using <`+T+">.")}return C}}function dr(u,C){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var T=ol(C);if(cr[T])return;cr[T]=!0;var F="";u&&u._owner&&u._owner!==Hn.current&&(F=" It was passed a child from "+V(u._owner.type)+"."),pt(u),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,F),pt(null)}}function ur(u,C){{if(typeof u!="object")return;if(Ft(u))for(var T=0;T<u.length;T++){var F=u[T];Un(F)&&dr(F,C)}else if(Un(u))u._store&&(u._store.validated=!0);else if(u){var R=w(u);if(typeof R=="function"&&R!==u.entries)for(var J=R.call(u),B;!(B=J.next()).done;)Un(B.value)&&dr(B.value,C)}}}function rl(u){{var C=u.type;if(C==null||typeof C=="string")return;var T;if(typeof C=="function")T=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===d||C.$$typeof===v))T=C.propTypes;else return;if(T){var F=V(C);rn(T,u.props,"prop",F,u)}else if(C.PropTypes!==void 0&&!Rn){Rn=!0;var R=V(C);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sl(u){{for(var C=Object.keys(u.props),T=0;T<C.length;T++){var F=C[T];if(F!=="children"&&F!=="key"){pt(u),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}u.ref!==null&&(pt(u),y("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function _r(u,C,T,F,R,J){{var B=S(u);if(!B){var D="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(D+=" 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 ge=nl(R);ge?D+=ge:D+=ar();var oe;u===null?oe="null":Ft(u)?oe="array":u!==void 0&&u.$$typeof===t?(oe="<"+(V(u.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof u,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,D)}var le=tl(u,C,T,R,J);if(le==null)return le;if(B){var Ne=C.children;if(Ne!==void 0)if(F)if(Ft(Ne)){for(var xt=0;xt<Ne.length;xt++)ur(Ne[xt],u);Object.freeze&&Object.freeze(Ne)}else y("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 ur(Ne,u)}return u===o?sl(le):rl(le),le}}function il(u,C,T){return _r(u,C,T,!0)}function ll(u,C,T){return _r(u,C,T,!1)}var al=ll,cl=il;wt.Fragment=o,wt.jsx=al,wt.jsxs=cl}()),wt}process.env.NODE_ENV==="production"?xe.exports=hr():xe.exports=gr();var i=xe.exports;const Gn=(e,t=20)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};function pr(e,t){const n=Gn(e,t);return o=>("persist"in o&&o.persist(),n(o))}const xr=(e,t)=>{let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...o)},t)},t))}},M=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const o=M(...n);return o?`${t} ${o}`:t}return n?`${t} ${n}`:t},""),Xn=(e,t,n)=>{const{base:o,excludeValueFromClassName:r}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&o||r?s:t===!0&&!o?`${s}-true`:t===!1&&!o?`${s}-false`:t!==void 0?`${s}-${t}`:null},W=(e,t,n,o)=>{if(typeof n!="object"){const r=Xn(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return r?[e[r]]:[]}return Object.keys(n).reduce((r,s)=>{const l=s==="s",a=Xn(t,n[s],{base:l,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=l?"":`--${s}`;return[...r,e[`${a}${d}`]]},[])},ee=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const r=t[o];return r===void 0||r===!1?n:k(h({},n),{[`${e}-${o}`]:r})},{}),yr=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>yr(e)?Object.keys(e).reduce((o,r)=>{const s=e[r];return s==null?o:k(h({},o),{[r]:t(s,r)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},an=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Jn=e=>{const{children:t,onToggle:n,active:o,iconPosition:r,iconSize:s,className:l,attributes:a}=e,d=M(l),f=$e(),_=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:o,onToggle:n,iconPosition:r,iconSize:s}),[o]);return i.jsx("div",k(h({},a),{className:d,children:i.jsx(an.Provider,{value:_,children:t})}))},wr=e=>{const a=e,{defaultActive:t,onToggle:n}=a,o=Fe(a,["defaultActive","onToggle"]),[r,s]=c.useState(t||!1),l=d=>{s(d),n==null||n(d)};return i.jsx(Jn,k(h({},o),{onToggle:l,active:r}))},jt={root:"_root_1e7nv_1","--disabled":"_--disabled_1e7nv_28","--full-width":"_--full-width_1e7nv_37","--inset":"_--inset_1e7nv_45","--radius-inherit":"_--radius-inherit_1e7nv_49"},jr=(e,t)=>{const{children:n,href:o,onClick:r,type:s,disabled:l,insetFocus:a,borderRadius:d,as:f,fullWidth:_,className:v,attributes:m}=e,b=M(jt.root,v,l&&jt["--disabled"],d&&jt[`--radius-${d}`],a&&jt["--inset"],_&&jt["--full-width"]),p=h({},m),x=c.useRef(!1),w=r||(m==null?void 0:m.onClick),g=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),y=!!(o||m!=null&&m.href),j=!!(w||g||s);let $;if(y)p.href=l?void 0:o||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",p.type=s||(m==null?void 0:m.type)||"button",p.disabled=l||(m==null?void 0:m.disabled);else if(j){const O=!(f==="label")||w||g;$=f||"span",p.role=O?"button":void 0,p.tabIndex=O?0:void 0}else $=f||"span";const z=I=>{var O;l||x.current||(r==null||r(I),(O=m==null?void 0:m.onClick)==null||O.call(m,I))},E=I=>{if(p.role==="button"||y)return;const S=I.key===" ",A=I.key==="Enter";!S&&!A||(I.preventDefault(),z(I),x.current=!0)},P=()=>{x.current=!1};return i.jsx($,k(h({ref:t},p),{className:b,onClick:z,onKeyDown:E,onKeyUp:P,children:n}))},Ve=c.forwardRef(jr),cn={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"},Qn=e=>{const{vertical:t,blank:n,className:o,attributes:r}=e,s=M(cn.root,o,n&&cn["--blank"],...W(cn,"--vertical",t));let l;return(typeof t=="boolean"||t===void 0)&&(l=t?"vertical":"horizontal"),i.jsx("div",k(h({},r),{role:"separator","aria-orientation":l,className:s}))},Lt={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"},dn=e=>{const{as:t="div",children:n,visibility:o,hide:r,displayStyle:s}=e,l=M(Lt.root,...W(Lt,"--hidden",r),o&&Lt["--visibility"],s&&Lt[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(l)}):i.jsx(t,{className:l,children:n})},X={root:"_root_2flnb_1",item:"_item_2flnb_10","--padding":"_--padding_2flnb_18","--padding-top":"_--padding-top_2flnb_23","--padding-bottom":"_--padding-bottom_2flnb_27","--padding-start":"_--padding-start_2flnb_31","--padding-end":"_--padding-end_2flnb_35","--animated":"_--animated_2flnb_39","--align-text-start":"_--align-text-start_2flnb_1","--align-text-center":"_--align-text-center_2flnb_1","--align-text-end":"_--align-text-end_2flnb_1","--bg-neutral":"_--bg-neutral_2flnb_1","--bg-positive":"_--bg-positive_2flnb_1","--bg-critical":"_--bg-critical_2flnb_1","--bg-primary":"_--bg-primary_2flnb_1","--bg-neutral-faded":"_--bg-neutral-faded_2flnb_1","--bg-positive-faded":"_--bg-positive-faded_2flnb_1","--bg-critical-faded":"_--bg-critical-faded_2flnb_1","--bg-primary-faded":"_--bg-primary-faded_2flnb_1","--bg-page":"_--bg-page_2flnb_1","--bg-page-faded":"_--bg-page-faded_2flnb_1","--bg-disabled":"_--bg-disabled_2flnb_1","--bg-disabled-faded":"_--bg-disabled-faded_2flnb_1","--bg-elevation-base":"_--bg-elevation-base_2flnb_1","--bg-elevation-raised":"_--bg-elevation-raised_2flnb_1","--bg-elevation-overlay":"_--bg-elevation-overlay_2flnb_1","--bg-white":"_--bg-white_2flnb_65","--bg-black":"_--bg-black_2flnb_70","--shadow-raised":"_--shadow-raised_2flnb_75","--shadow-overlay":"_--shadow-overlay_2flnb_79","--bd":"_--bd_2flnb_83","--bd-neutral-faded":"_--bd-neutral-faded_2flnb_1","--bd-neutral":"_--bd-neutral_2flnb_1","--bd-positive":"_--bd-positive_2flnb_1","--bd-positive-faded":"_--bd-positive-faded_2flnb_1","--bd-critical":"_--bd-critical_2flnb_1","--bd-critical-faded":"_--bd-critical-faded_2flnb_1","--bd-primary":"_--bd-primary_2flnb_1","--bd-primary-faded":"_--bd-primary-faded_2flnb_1","--bd-disabled":"_--bd-disabled_2flnb_1","--bd-transparent":"_--bd-transparent_2flnb_94","--overflow-hidden":"_--overflow-hidden_2flnb_98","--divided":"_--divided_2flnb_102","--flex":"_--flex_2flnb_106","--direction-column":"_--direction-column_2flnb_1","item--gap-before":"_item--gap-before_2flnb_118","item--gap-auto":"_item--gap-auto_2flnb_122","--direction-column-reverse":"_--direction-column-reverse_2flnb_1","--direction-row":"_--direction-row_2flnb_1","--direction-row-reverse":"_--direction-row-reverse_2flnb_1","--nowrap":"_--nowrap_2flnb_177","--wrap":"_--wrap_2flnb_185","--nowrap-false--m":"_--nowrap-false--m_2flnb_1","--wrap-true--m":"_--wrap-true--m_2flnb_1","--nowrap-true--m":"_--nowrap-true--m_2flnb_1","--wrap-false--m":"_--wrap-false--m_2flnb_1","--nowrap-false--l":"_--nowrap-false--l_2flnb_1","--wrap-true--l":"_--wrap-true--l_2flnb_1","--nowrap-true--l":"_--nowrap-true--l_2flnb_1","--wrap-false--l":"_--wrap-false--l_2flnb_1","--nowrap-false--xl":"_--nowrap-false--xl_2flnb_1","--wrap-true--xl":"_--wrap-true--xl_2flnb_1","--nowrap-true--xl":"_--nowrap-true--xl_2flnb_1","--wrap-false--xl":"_--wrap-false--xl_2flnb_1","--align-start":"_--align-start_2flnb_1","--align-end":"_--align-end_2flnb_1","--align-center":"_--align-center_2flnb_1","--align-stretch":"_--align-stretch_2flnb_1","--align-baseline":"_--align-baseline_2flnb_1","--justify-start":"_--justify-start_2flnb_1","--justify-end":"_--justify-end_2flnb_1","--justify-center":"_--justify-center_2flnb_1","--justify-space-between":"_--justify-space-between_2flnb_1",divider:"_divider_2flnb_244","item--grow":"_item--grow_2flnb_248","item--columns-1":"_item--columns-1_2flnb_1","item--columns-2":"_item--columns-2_2flnb_1","item--columns-3":"_item--columns-3_2flnb_1","item--columns-4":"_item--columns-4_2flnb_1","item--columns-5":"_item--columns-5_2flnb_1","item--columns-6":"_item--columns-6_2flnb_1","item--columns-7":"_item--columns-7_2flnb_1","item--columns-8":"_item--columns-8_2flnb_1","item--columns-9":"_item--columns-9_2flnb_1","item--columns-10":"_item--columns-10_2flnb_1","item--columns-11":"_item--columns-11_2flnb_1","item--columns-12":"_item--columns-12_2flnb_1","item--columns-auto":"_item--columns-auto_2flnb_280","item--columns-1--m":"_item--columns-1--m_2flnb_1","item--columns-auto--m":"_item--columns-auto--m_2flnb_1","item--columns-2--m":"_item--columns-2--m_2flnb_1","item--columns-3--m":"_item--columns-3--m_2flnb_1","item--columns-4--m":"_item--columns-4--m_2flnb_1","item--columns-5--m":"_item--columns-5--m_2flnb_1","item--columns-6--m":"_item--columns-6--m_2flnb_1","item--columns-7--m":"_item--columns-7--m_2flnb_1","item--columns-8--m":"_item--columns-8--m_2flnb_1","item--columns-9--m":"_item--columns-9--m_2flnb_1","item--columns-10--m":"_item--columns-10--m_2flnb_1","item--columns-11--m":"_item--columns-11--m_2flnb_1","item--columns-12--m":"_item--columns-12--m_2flnb_1","item--columns-1--l":"_item--columns-1--l_2flnb_1","item--columns-auto--l":"_item--columns-auto--l_2flnb_1","item--columns-2--l":"_item--columns-2--l_2flnb_1","item--columns-3--l":"_item--columns-3--l_2flnb_1","item--columns-4--l":"_item--columns-4--l_2flnb_1","item--columns-5--l":"_item--columns-5--l_2flnb_1","item--columns-6--l":"_item--columns-6--l_2flnb_1","item--columns-7--l":"_item--columns-7--l_2flnb_1","item--columns-8--l":"_item--columns-8--l_2flnb_1","item--columns-9--l":"_item--columns-9--l_2flnb_1","item--columns-10--l":"_item--columns-10--l_2flnb_1","item--columns-11--l":"_item--columns-11--l_2flnb_1","item--columns-12--l":"_item--columns-12--l_2flnb_1","item--columns-1--xl":"_item--columns-1--xl_2flnb_1","item--columns-auto--xl":"_item--columns-auto--xl_2flnb_1","item--columns-2--xl":"_item--columns-2--xl_2flnb_1","item--columns-3--xl":"_item--columns-3--xl_2flnb_1","item--columns-4--xl":"_item--columns-4--xl_2flnb_1","item--columns-5--xl":"_item--columns-5--xl_2flnb_1","item--columns-6--xl":"_item--columns-6--xl_2flnb_1","item--columns-7--xl":"_item--columns-7--xl_2flnb_1","item--columns-8--xl":"_item--columns-8--xl_2flnb_1","item--columns-9--xl":"_item--columns-9--xl_2flnb_1","item--columns-10--xl":"_item--columns-10--xl_2flnb_1","item--columns-11--xl":"_item--columns-11--xl_2flnb_1","item--columns-12--xl":"_item--columns-12--xl_2flnb_1","--direction-column--m":"_--direction-column--m_2flnb_1","--direction-column-reverse--m":"_--direction-column-reverse--m_2flnb_1","--direction-row--m":"_--direction-row--m_2flnb_1","--direction-row-reverse--m":"_--direction-row-reverse--m_2flnb_1","--align-start--m":"_--align-start--m_2flnb_1","--align-end--m":"_--align-end--m_2flnb_1","--align-center--m":"_--align-center--m_2flnb_1","--align-stretch--m":"_--align-stretch--m_2flnb_1","--align-baseline--m":"_--align-baseline--m_2flnb_1","--justify-start--m":"_--justify-start--m_2flnb_1","--justify-end--m":"_--justify-end--m_2flnb_1","--justify-center--m":"_--justify-center--m_2flnb_1","--justify-space-between--m":"_--justify-space-between--m_2flnb_1","item--grow-true--m":"_item--grow-true--m_2flnb_1","item--grow-false--m":"_item--grow-false--m_2flnb_1","--direction-column--l":"_--direction-column--l_2flnb_1","--direction-column-reverse--l":"_--direction-column-reverse--l_2flnb_1","--direction-row--l":"_--direction-row--l_2flnb_1","--direction-row-reverse--l":"_--direction-row-reverse--l_2flnb_1","--align-start--l":"_--align-start--l_2flnb_1","--align-end--l":"_--align-end--l_2flnb_1","--align-center--l":"_--align-center--l_2flnb_1","--align-stretch--l":"_--align-stretch--l_2flnb_1","--align-baseline--l":"_--align-baseline--l_2flnb_1","--justify-start--l":"_--justify-start--l_2flnb_1","--justify-end--l":"_--justify-end--l_2flnb_1","--justify-center--l":"_--justify-center--l_2flnb_1","--justify-space-between--l":"_--justify-space-between--l_2flnb_1","item--grow-true--l":"_item--grow-true--l_2flnb_1","item--grow-false--l":"_item--grow-false--l_2flnb_1","--direction-column--xl":"_--direction-column--xl_2flnb_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_2flnb_1","--direction-row--xl":"_--direction-row--xl_2flnb_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_2flnb_1","--align-start--xl":"_--align-start--xl_2flnb_1","--align-end--xl":"_--align-end--xl_2flnb_1","--align-center--xl":"_--align-center--xl_2flnb_1","--align-stretch--xl":"_--align-stretch--xl_2flnb_1","--align-baseline--xl":"_--align-baseline--xl_2flnb_1","--justify-start--xl":"_--justify-start--xl_2flnb_1","--justify-end--xl":"_--justify-end--xl_2flnb_1","--justify-center--xl":"_--justify-center--xl_2flnb_1","--justify-space-between--xl":"_--justify-space-between--xl_2flnb_1","item--grow-true--xl":"_item--grow-true--xl_2flnb_1","item--grow-false--xl":"_item--grow-false--xl_2flnb_1"},Zn={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"},un=e=>e?{classNames:[Zn.root,...W(Zn,"--radius",e)]}:null,eo={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"},to=e=>{if(e===void 0)return null;const t=[eo.root,...W(eo,"--bleed",Le(e,o=>typeof o=="number"&&o>0))],n=ee("--rs-bleed",e);return{classNames:t,variables:n}},Cr={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"},_n=e=>{if(!e)return null;const t=ee("--rs-w",e);return{classNames:W(Cr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},kr={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=ee("--rs-h",e);return{classNames:W(kr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Nr={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"},$r=e=>{if(!e)return null;const t=ee("--rs-max-w",e);return{classNames:W(Nr,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Er={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"},zr=e=>{if(!e)return null;const t=ee("--rs-max-h",e);return{classNames:W(Er,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Tr={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},Ir=e=>e?{classNames:W(Tr,"--position",e)}:null,Mr={"--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}`:"",o=`--rs-inset${n}`,r=ee(o,e);return{classNames:W(Mr,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:r}},Sr={root:"_root_i342i_1"},Pr=e=>{if(!e)return null;const t=ee("--rs-ratio",e);return{classNames:Sr.root,variables:t}},no=e=>{const{columns:t,grow:n,gapBefore:o,as:r="div",order:s,children:l,className:a,attributes:d}=e,f=M(X.item,a,o==="auto"&&X["item--gap-auto"],o!==void 0&&X["item--gap-before"],...W(X,"item--grow",n),...W(X,"item--columns",t)),_=h(h({},ee("--rs-view-item-order",s)),ee("--rs-view-item-gap-before",o));return i.jsx(r,k(h({},d),{style:h(h({},d==null?void 0:d.style),_),className:f,children:l}))},U=e=>{const{align:t,justify:n,wrap:o,gap:r,height:s,width:l,aspectRatio:a,maxHeight:d,maxWidth:f,padding:_,paddingInline:v,paddingBlock:m,paddingBottom:b,paddingEnd:p,paddingStart:x,paddingTop:w,bleed:g,animated:y,backgroundColor:j,borderColor:$,borderRadius:z,shadow:E,textAlign:P,overflow:I,position:O="relative",inset:S,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Q,grow:fe,as:ve="div",children:re,divided:Z,className:He,attributes:Ce}=e,se=!!t||!!n||!!r||!!e.direction,H=e.direction||(se?"column":void 0),K=un(z),Y=to(g),ie=_n(l),we=Ct(s),G=$r(f),pe=zr(d),be=Ir(O),Me=kt(S),Re=kt(A,"top"),et=kt(q,"bottom"),tt=kt(V,"start"),Se=kt(L,"end"),Pe=Pr(a);let At=0,st;const gt=({className:he,key:ue})=>{const qe=M(X.divider,he);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Ae=H[ke];return Ae?k(h({},Ue),{[ke]:Ae.startsWith("row")}):Ue},{})),i.jsx("div",{className:qe,children:i.jsx(Qn,{vertical:me,blank:!0})},`${ue}-divider`)},rn=({className:he,child:ue,index:qe})=>{var Ae,sn;const me=ue.type===no,it=ue.key||qe,Ue=!!qe&&Z&>({className:he,key:it});let ke;return me?ke=c.cloneElement(ue,{className:M(he,ue.props.className)}):he||!c.isValidElement(ue)?ke=i.jsx("div",{className:he,children:ue},it):ke=ue,me&&((Ae=ue.props)!=null&&Ae.grow)&&(st=ue.props.grow),me&&((sn=ue.props)==null?void 0:sn.gap)==="auto"&&(st=!0),[Ue,ke]},Bn=c.Children.map(re,(he,ue)=>{if(!he)return null;const qe=At;if(At+=1,he.type===dn&&typeof he.props.children!="function"){const me=he.props,{children:it}=me,Ue=Fe(me,["children"]),ke=he.key||ue;return c.createElement(dn,k(h({},Ue),{key:ke}),Ae=>rn({className:Ae,child:it,index:qe}))}return rn({child:he,index:qe})}),Ft=M(X.root,He,K==null?void 0:K.classNames,be==null?void 0:be.classNames,Y==null?void 0:Y.classNames,ie==null?void 0:ie.classNames,we==null?void 0:we.classNames,Pe==null?void 0:Pe.classNames,G==null?void 0:G.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,P&&X[`--align-text-${P}`],j&&X[`--bg-${j}`],$&&X[`--bd-${$}`],$&&X["--bd"],E&&X[`--shadow-${E}`],I&&X[`--overflow-${I}`],y&&X["--animated"],Z&&X["--divided"],(_!==void 0||v!==void 0||m!==void 0)&&X["--padding"],b!==void 0&&X["--padding-bottom"],p!==void 0&&X["--padding-end"],x!==void 0&&X["--padding-start"],w!==void 0&&X["--padding-top"],(se||st)&&X["--flex"],...W(X,"--direction",H),...W(X,"--align",t),...W(X,"--justify",n),...W(X,"--nowrap",st||o===!1),...W(X,"--wrap",o),...W(X,"item--grow",fe)),Wn=h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h({},Ce==null?void 0:Ce.style),ee("--rs-view-gap",r)),ee("--rs-view-p-vertical",m||_)),ee("--rs-view-p-horizontal",v||_)),ee("--rs-view-p-bottom",b)),ee("--rs-view-p-top",w)),ee("--rs-view-p-start",x)),ee("--rs-view-p-end",p)),Y==null?void 0:Y.variables),ie==null?void 0:ie.variables),we==null?void 0:we.variables),Pe==null?void 0:Pe.variables),G==null?void 0:G.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),Q?{"--rs-view-z":Q}:{});return i.jsx(ve,k(h({},Ce),{className:Ft,style:Wn,children:Bn}))};U.Item=no;const mn={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"},de=e=>{const{svg:t,className:n,color:o,size:r="1em",autoWidth:s,attributes:l}=e,a=Ct(r),d=M(mn.root,n,a==null?void 0:a.classNames,o&&mn[`--color-${o}`],s&&mn["--auto"]),f=typeof t=="object"?t:i.jsx(t,{}),_=h(h({},l==null?void 0:l.style),a==null?void 0:a.variables);return i.jsx("span",k(h({},l),{"aria-hidden":"true",className:d,style:_,children:c.cloneElement(f,{focusable:!1})}))},Ar=()=>i.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:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),Nt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Fr=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:r,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext(an),d=M(Nt.icon,n&&Nt["icon--active"]),f=()=>{o==null||o(!n)},_={"aria-expanded":n,"aria-controls":s,id:r};return typeof t=="function"?i.jsx(i.Fragment,{children:t(k(h({},_),{onClick:f}),{active:n})}):i.jsx(Ve,{onClick:f,fullWidth:!0,attributes:_,children:i.jsxs(U,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(U.Item,{grow:!0,children:t}),i.jsx(de,{size:a||4,svg:Ar,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},fn="data-rs-no-transition",Lr=()=>{document.documentElement.setAttribute(fn,"true")},Vr=()=>{document.documentElement.removeAttribute(fn)},Or=()=>!document.documentElement.hasAttribute(fn),Dr=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:r}=c.useContext(an),s=c.useRef(null),l=c.useRef(!1),[a,d]=c.useState(n?"auto":null),f=M(Nt.content,l.current&&a!=="auto"&&Nt["content--animated"],n&&Nt["content--active"]),_=v=>{v.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{$t(()=>{l.current=!0})},[]),c.useEffect(()=>{const v=s.current;if(!v||!l.current)return;let m=0;n&&(v.style.height="auto",m=v.clientHeight,v.style.height="0"),n||(v.style.height=`${v.clientHeight}px`),d(m)},[n]),i.jsx("div",{className:f,ref:s,style:a!==null?{height:a}:void 0,onTransitionEnd:_,"aria-labelledby":o,id:r,role:"region",hidden:!n&&a===null,children:t})},vn=e=>{const{active:t}=e;return t!==void 0?i.jsx(Jn,h({},e)):i.jsx(wr,h({},e))};vn.Trigger=Fr,vn.Content=Dr;const bn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},qr=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:r=4,children:s,elevated:l,className:a,attributes:d}=e,f=M(bn.root,l&&bn["--elevated"],t&&bn[`--position-${t}`],a);return i.jsx(U,{className:f,attributes:d,paddingBlock:n||o,paddingInline:n||r,children:s})},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"},Br={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},te=e=>{const{variant:t,color:n,weight:o,align:r,decoration:s,maxLines:l,children:a,className:d,attributes:f}=e,_=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),v=e.as||_&&Br[_]||"div",m=M(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",r),o&&nt[`--weight-${o}`],s&&nt[`--decoration-${s}`],l!==void 0&&nt["--clamp"],d),b=k(h({},f==null?void 0:f.style),{"--rs-text-lines":l});return i.jsx(v,k(h({},f),{className:m,style:b,children:a}))},Wr=e=>{const{title:t,children:n,icon:o,actionsSlot:r,color:s="neutral",inline:l,bleed:a,className:d,attributes:f}=e,_=s==="neutral",v=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(te,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(te,{variant:"body-3",as:"span",children:n})]}):i.jsxs(U,{gap:1,children:[t&&i.jsx(te,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(te,{variant:"body-3",children:n})]}),m=b=>r?i.jsxs(U,{gap:2,direction:l?"row":"column",children:[l?i.jsx(U.Item,{grow:!0,children:b}):b,r&&i.jsx(te,{variant:"body-3",weight:"medium",children:i.jsx(U,{direction:"row",gap:3,children:r})})]}):b;return i.jsx(U,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:k(h({},f),{role:s==="critical"?"alert":"status"}),children:o?i.jsxs(i.Fragment,{children:[i.jsx(de,{svg:o,size:5,color:_?"primary":s}),i.jsx(U.Item,{grow:!0,children:m(v())})]}):m(v())})},oo=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Hr=oo.Provider,Et=()=>c.useContext(oo),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=Et();return{attributes:e,required:t,hasError:n,disabled:o}},ro={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},hn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:o,hasError:r,group:s,disabled:l,size:a}=e,d=$e(n),f=s?"fieldset":"div",[_,v]=c.useState(!1),[m,b]=c.useState(!1),p=[_&&hn(d),m&&hn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":p},w=()=>{b(!0)},g=()=>{v(!0)};return i.jsx(f,{children:i.jsx(Hr,{value:{required:o,hasError:r,errorRef:w,helperRef:g,attributes:x,group:s,disabled:l,size:a},children:t})})},Rr=e=>{const{children:t}=e,{attributes:n,required:o,group:r,disabled:s,size:l}=Et(),a=`${n.id}-label`,d=r?{as:"legend",attributes:{id:a}}:{as:"label",attributes:{id:a,htmlFor:n.id}};return i.jsxs(te,k(h({},d),{variant:l==="large"?"body-2":"body-3",weight:"medium",className:ro.label,color:s?"disabled":void 0,children:[t,o&&i.jsx(te,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},so=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:r,size:s,helperRef:l,errorRef:a}=Et(),d=hn(r.id,n),f=n==="error"?"critical":"neutral-faded",_=n==="error"?a:l;return i.jsx(te,{as:"span",variant:s==="large"?"body-3":"caption-1",color:o&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:_},className:ro.caption,children:t})},Ur=e=>{const{children:t}=e,{disabled:n}=Et();return i.jsx(so,{disabled:n,children:t})},Kr=e=>{const{children:t}=e,{hasError:n}=Et();return n?i.jsx(so,{variant:"error",children:t}):null};Vt.Label=Rr,Vt.Helper=Ur,Vt.Error=Kr;const Ee={root:"_root_v29im_1",input:"_input_v29im_16",slot:"_slot_v29im_37",icon:"_icon_v29im_38",affix:"_affix_v29im_39",attachment:"_attachment_v29im_55","attachment--position-start":"_attachment--position-start_v29im_60","attachment--position-end":"_attachment--position-end_v29im_73","--disabled":"_--disabled_v29im_86","--size-medium":"_--size-medium_v29im_1","--size-large":"_--size-large_v29im_1","--size-xlarge":"_--size-xlarge_v29im_1","--variant-faded":"_--variant-faded_v29im_150","--variant-headless":"_--variant-headless_v29im_159","--status-error":"_--status-error_v29im_164","--size-medium--m":"_--size-medium--m_v29im_1","--size-large--m":"_--size-large--m_v29im_1","--size-xlarge--m":"_--size-xlarge--m_v29im_1","--size-medium--l":"_--size-medium--l_v29im_1","--size-large--l":"_--size-large--l_v29im_1","--size-xlarge--l":"_--size-xlarge--l_v29im_1","--size-medium--xl":"_--size-medium--xl_v29im_1","--size-large--xl":"_--size-large--xl_v29im_1","--size-xlarge--xl":"_--size-xlarge--xl_v29im_1"},io=e=>{const{slot:t,icon:n,size:o,affix:r,position:s}=e;if(!n&&!t&&!r)return null;const l=M(Ee.attachment,Ee[`attachment--position-${s}`]),a=[t&&i.jsx("div",{className:Ee.slot,children:t},"slot"),n&&i.jsx("div",{className:Ee.icon,children:i.jsx(de,{size:Le(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),r&&i.jsx("div",{className:Ee.affix,children:r},"affix")].filter(Boolean);return i.jsx("span",{className:l,children:s==="end"?a.reverse():a})},lo=e=>{var S;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:l,placeholder:a,icon:d,endIcon:f,startSlot:_,endSlot:v,prefix:m,suffix:b,size:p="medium",variant:x="outline",className:w,attributes:g}=e,y=Ye(),j=$e(e.id),$=(y==null?void 0:y.attributes.id)||((S=e.inputAttributes)==null?void 0:S.id)||j,z=(y==null?void 0:y.disabled)||e.disabled,E=(y==null?void 0:y.hasError)||e.hasError,P=h(h({},e.inputAttributes),y==null?void 0:y.attributes),I=M(Ee.root,w,p&&W(Ee,"--size",p),E&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=A=>{t&&t({name:r,value:A.target.value,event:A})};return i.jsxs("div",k(h({},g),{className:I,children:[i.jsx(io,{position:"start",icon:d,slot:_,size:p,affix:m}),i.jsx("input",k(h({},P),{className:Ee.input,disabled:z,name:r,placeholder:a,value:s,defaultValue:l,onChange:O,onFocus:n||(P==null?void 0:P.onFocus),onBlur:o||(P==null?void 0:P.onBlur),id:$})),i.jsx(io,{position:"end",icon:f,slot:v,size:p,affix:b})]}))},Yr="Enter",Gr="Tab",ao="ArrowUp",co="ArrowDown",uo="ArrowRight",_o="ArrowLeft",gn="data-rs-keyboard",Ot="data-rs-focus";class Xr{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,o=n&&this.get(n),r=this.generateId();return this.chain[r]={previousId:n,data:t},o&&(o.nextId=r),this.tailId=r,r}remove(t){var d,f;const n=this.chain[t];if(!n)return;const o=n.previousId,r=o&&this.get(o),s=n.nextId,l=s&&this.get(s);r&&(r.nextId=(d=n.nextId)!=null?d:null),l&&(l.previousId=(f=n.previousId)!=null?f:null),s||(this.tailId=o!=null?o:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,n){const o=this.get(t),r=this.remove(t);return!o||!o.previousId||n(o)?r:this.removePreviousTill(o.previousId,n)}}const mo=()=>document.documentElement.hasAttribute(gn),fo='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Dt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,pn=(e,t)=>{const o=Array.from(e.querySelectorAll(fo)).filter(r=>!r.hasAttribute("disabled")&&r.clientHeight>0);return t&&o.length&&o.unshift(t),o},vo=e=>{const{root:t,extraElement:n,target:o,mode:r}=e,s=pn(t,n),l=s.length-1,a=Dt(),d=s.indexOf(a),f={next:d+1,prev:d-1,first:0,last:l};let _=f[o];const v=_>l||_<0;return v&&(r==="action-menu"?_=o==="prev"?f.first:f.last:_=o==="prev"?f.last:f.first),{overflow:v,el:s[_]}},qt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Bt=(e,t)=>{const n=vo({root:e,target:t});qt(n.el)},Jr=e=>Bt(e,"next"),Qr=e=>Bt(e,"prev"),Zr=e=>Bt(e,"first"),es=e=>Bt(e,"last"),ts=(()=>{let e=[];const t=o=>{let r=o.parentNode&&o.parentNode.firstChild;for(;r;){const s=r!==o,l=r.nodeType===1&&!r.hasAttribute("aria-hidden");s&&l&&(r.setAttribute("aria-hidden","true"),e.push(r)),r=r.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let r=o;for(e.length&&n();r!==document.body;)t(r),r=r.parentElement;return{release:n}}})(),Wt=(()=>{let e=null,t=null;const n=new Xr;return(o,r={})=>{const{mode:s="dialog",onNavigateOutside:l,includeTrigger:a}=r,d=Dt(),f=s==="dialog",_=s==="content-menu",v=s==="selection-menu",m=f||_,b=s==="action-menu"||v,p=pn(o,a?d:void 0);let x;const w=new MutationObserver(()=>{const $=pn(o,a?d:void 0);$.length&&qt($[0],s)}),g=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,P=>document.body.contains(P.data.trigger)),w.disconnect(),d&&d.focus({preventScroll:z||!mo()}),e&&(e(),t&&t.release(),e=null,t=null);const E=n.tailId&&n.get(n.tailId);E&&Wt(E.data.root,E.data.options)},y=$=>{const z=$.key,E=z===Gr,P=E&&!$.shiftKey,I=E&&$.shiftKey,O=b&&z===ao,S=b&&z===co,A=I&&m||O,q=P&&m||S,V=Dt()===d,L=vo({root:o,target:A?"prev":"next",extraElement:a?d:void 0,mode:s});if(E&&b||_&&E&&L.overflow){I&&!V&&$.preventDefault(),g(),l==null||l();return}!A&&!q||($.preventDefault(),L.el&&qt(L.el,s))};if(e&&e(),f&&(t=ts(o)),w.observe(o,{childList:!0,subtree:!0}),!p.length)return null;document.addEventListener("keydown",y),e=()=>document.removeEventListener("keydown",y);const j=n.tailId&&n.get(n.tailId);return(!j||o!==j.data.root)&&(x=n.add({root:o,trigger:d,options:r}),qt(p[0],s)),g}})(),ns=100,os=150;let lt={},Oe=null;const bo=e=>{lt[e]&&(e===Oe&&(Oe=lt[e].parentId),delete lt[e],Oe===null&&(lt={}))},rs=(e,t,n)=>{var s;const o=Oe?lt[Oe]:void 0;!((n==null?void 0:n.current)&&o&&((s=o.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&Oe&&bo(Oe),lt[e]={parentId:Oe,triggerRef:n,contentRef:t},Oe=e},ho=(e=!1,t,n)=>{const o=$e(),r=c.useCallback(()=>Oe===o,[o]);return c.useEffect(()=>{e?rs(o,t,n):bo(o)},[e,o,t,n]),r},ae=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,at="+",ze={},xn=[],go=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),yn=e=>go(e).split(at).sort().join(at),po=e=>e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase(),ss=e=>{const t=[],n=e.join(at),r=yn(n).split(at),s=(l,a)=>{a.forEach((d,f)=>{const _=l?`${l}+${d}`:d;t.push(_),s(_,a.slice(f+1))})};return s("",r),t},is=(e,t)=>{const n=Object.keys(e);n.length&&ss(n).forEach(o=>{t(o)})},wn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const r=e[n];r&&t(yn(o),r)})})};class ls{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{wn(t,(o,r)=>{r&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:r,ref:n}))})},this.unbindHotkeys=t=>{wn(t,(n,o)=>{var r,s;o&&((r=this.hotkeyMap[n])==null||r.data.forEach(l=>{l.callback===o&&this.hotkeyMap[n].data.delete(l)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{is(t,o=>{const r=this.hotkeyMap[o];!r||r.used||r!=null&&r.data.size&&r.data.forEach(s=>{var l;(l=s.ref)!=null&&l.current&&!(n.target===s.ref.current||s.ref.current.contains(n.target))||(s.callback(t[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=yn(t.key);wn(this.hotkeyMap,(o,r)=>{o.split(at).includes(n)&&(r.used=!1)})}}}const Ht=new ls,xo=c.createContext({}),as=e=>{const{children:t}=e,[n,o]=c.useState(0),[r,s]=c.useState(0),l=c.useCallback(m=>{if(m.repeat||r===0)return;const b=po(m);ze[b]=m,(b==="meta"||b==="control")&&(ze.mod=m),o(Object.keys(ze).length),b==="meta"&&xn.push(...Object.keys(ze)),ze.Meta&&xn.push(b)},[r]),a=c.useCallback(m=>{if(r===0)return;const b=po(m);delete ze[b],(b==="meta"||b==="control")&&delete ze.mod,b==="meta"&&xn.forEach(p=>{delete ze[p]}),o(Object.keys(ze).length)},[r]),d=m=>!go(m).split(at).some(p=>!ze[p]),f=c.useCallback((m,b)=>(s(p=>p+1),Ht.bindHotkeys(m,b),()=>{s(p=>p-1),Ht.unbindHotkeys(m)}),[]),_=c.useCallback(m=>{l(m),Ht.handleKeyDown(ze,m)},[l]),v=c.useCallback(m=>{a(m),Ht.handleKeyUp(m)},[a]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",v),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",v)}),[_,v]),i.jsx(xo.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},cs=()=>c.useContext(xo),ot=(e,t=[],n)=>{const{addHotkeys:o,isPressed:r}=cs(),s=c.useRef(null),l=(n==null?void 0:n.ref)||s;return c.useEffect(()=>{const a=o(e,l);return()=>a==null?void 0:a()},[o,Object.keys(e).join(","),...t]),{ref:l,checkHotkeyState:r}},jn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ds=e=>{const t=c.useState(e||!1),[n,o]=t;return ae(()=>{const r=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=l.target.dir==="rtl";n!==a&&o(a)})});return r.observe(document.documentElement,{attributes:!0}),()=>r.disconnect()},[n]),ae(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(jn).rtl,Cn=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:Cn(e.parentElement)},yo=16,Rt=["top-start","top","top-end"],Ut=["bottom-start","bottom","bottom-end"],Kt=["start","start-bottom","start-top"],Yt=["end","end-bottom","end-top"],us={top:[...Rt,...Ut,...Yt,...Kt],bottom:[...Ut,...Rt,...Yt,...Kt],start:[...Kt,...Yt,...Rt,...Ut],end:[...Yt,...Kt,...Rt,...Ut]},_s=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,wo=(e,t)=>Math.floor(e/2-t/2),ms=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return us[n]},kn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,r=t.scrollTop,s=r+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=r&&e.top+e.height<=s},jo=(e,t,n,o)=>{const{position:r,rtl:s,width:l}=o;let a=0,d=0,f=r;switch(s&&(f=_s(f)),(l==="full"||l==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":a=wo(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":a=e.left-t.width;break;case"end":case"end-top":case"end-bottom":a=e.right;break;case"top-start":case"bottom-start":a=e.left;break;case"top-end":case"bottom-end":a=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=wo(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||a===void 0)throw Error(`[Reshaped, flyout]: ${f} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),a=Math.round(a+(window.scrollX||0)-n.left);let _=Math.ceil(t.width);const v=Math.ceil(t.height);return l==="full"?(a=yo,_=window.innerWidth-yo*2):l==="trigger"&&(_=e.width),{styles:{left:a,top:d,width:_,height:v},position:f}},Co={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},Nn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},fs=(e,t,n)=>{const{position:o,forcePosition:r,width:s}=n,l=t.cloneNode(!0),a=e.getBoundingClientRect();l.style="",Object.keys(Nn).forEach(b=>{const p=Nn[b];l.style[b]=p.toString()}),s&&(s==="trigger"?l.style.width=`${a.width}px`:s!=="full"&&(l.style.width=s)),document.body.appendChild(l);const d=l.getBoundingClientRect(),f=Cn(e),_=f.getBoundingClientRect(),v={top:_.top+document.documentElement.scrollTop-f.scrollTop,left:_.left+document.documentElement.scrollLeft-f.scrollLeft};let m=jo(a,d,v,n);if(!kn(m.styles)&&!r){const b=ms(o),p=b.filter(w=>w==="top"||w==="bottom"),x=(w,g={})=>{const{fullWidth:y}=g;w.some(j=>{const $=k(h({},n),{width:y?"full":n.width,position:j}),z=jo(a,d,v,$);return kn(z.styles)?(m=z,!0):!1})};x(b),kn(m.styles)||x(p,{fullWidth:!0})}return l.parentNode.removeChild(l),m},vs=(e,t)=>{switch(t.type){case"render":return k(h({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return k(h({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:h(h({},Co),t.payload.styles)});case"show":return k(h({},e),{status:"visible"});case"hide":return k(h({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return k(h({},e),{status:"idle",styles:Nn});default:throw new Error("Invalid reducer type")}},bs=(e,t,n)=>{const{position:o="bottom",forcePosition:r,width:s}=n,[l]=Ge(),[a,d]=c.useReducer(vs,{position:o,styles:Co,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),_=c.useCallback(()=>{d({type:"show"})},[]),v=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),b=c.useCallback(()=>{if(!e.current||!t.current)return;const p=fs(e.current,t.current,{width:s,position:o,forcePosition:r,rtl:l});d({type:"position",payload:p})},[e,t,o,l,r,s]);return c.useEffect(()=>{a.status==="rendered"&&b(),a.status==="positioned"&&$t(()=>_())},[a.status,b,_]),c.useMemo(()=>({position:a.position,styles:a.styles,status:a.status,updatePosition:b,render:f,hide:v,remove:m}),[f,b,v,m,a.position,a.styles,a.status])},hs=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=o=>{let r=!1;e.forEach(s=>{(!s.current||s.current===o.target||s.current.contains(o.target))&&(r=!0)}),!r&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},ko=c.createContext({}),Gt=()=>c.useContext(ko),gs=ko.Provider,No=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:r,forcePosition:s,trapFocusMode:l,width:a,disableHideAnimation:d,contentGap:f,contentClassName:_,contentAttributes:v,position:m,active:b,id:p,instanceRef:x}=e,[w]=Ge(),g=c.useRef(null),y=c.useRef(null),j=$e(p),$=c.useRef(),z=c.useRef(null),E=c.useRef(!1),P=c.useRef(!1),I=c.useRef(!0),O=bs(g,y,{width:a,position:m,defaultActive:b,forcePosition:s}),S=Gt(),{status:A,updatePosition:q,render:V,hide:L,remove:Q}=O,fe=ho(t!=="hover"&&A!=="idle",y,g),ve=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),re=c.useCallback(()=>{!E.current&&A==="idle"&&(n==null||n())},[A]),Z=c.useCallback(G=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(o==null||o(),G!=null&&G.closeParents&&((Me=S==null?void 0:S.handleClose)==null||Me.call(S)))},[A,fe,t]),He=c.useCallback(G=>{var be;(be=y.current)!=null&&be.contains(G.relatedTarget)||t==="hover"&&l==="content-menu"||P.current||Z()},[Z,t,l]),Ce=c.useCallback(()=>{re()},[re]),se=c.useCallback(()=>{ve(),$.current=setTimeout(re,ns)},[ve,$,re]),H=c.useCallback(()=>{ve(),$.current=setTimeout(()=>Z(),os)},[ve,$,Z]),K=c.useCallback(()=>{A==="idle"?re():Z()},[A,re,Z]),Y=()=>P.current=!0,ie=()=>P.current=!1;ae(()=>{if(b){V();return}Or()&&!d?L():Q()},[b,V,L,d]);const we=c.useCallback(G=>{y.current!==G.currentTarget||G.propertyName!=="transform"||A==="hidden"&&Q()},[Q,A]);return ae(()=>{A!=="visible"||!y.current||(z.current=Wt(y.current,{mode:l,includeTrigger:t==="hover"&&l==="content-menu",onNavigateOutside:()=>{z.current=null,Z()}}))},[A,t,Z,l]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||z.current&&(t==="hover"&&(E.current=!0,setTimeout(()=>{E.current=!1},100)),z.current({withoutFocusReturn:!I.current}),z.current=null,I.current=!0)},[A,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const G=Gn(q,10);return window.addEventListener("resize",G),()=>window.removeEventListener("resize",G)},[q]),c.useEffect(()=>{q()},[w,q]),c.useImperativeHandle(x,()=>({open:re,close:Z}),[re,Z]),ot({Escape:()=>Z()},[Z]),hs([y,g],()=>{I.current=!1,Z()}),i.jsx(gs,{value:{id:j,flyout:O,triggerElRef:g,flyoutElRef:y,handleClose:Z,handleOpen:re,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:we,handleClick:K,handleContentMouseDown:Y,handleContentMouseUp:ie,triggerType:t,trapFocusMode:l,contentGap:f,contentClassName:_,contentAttributes:v},children:r})},ps=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[r,s]=c.useState(t||!1),l=()=>{s(!1),n&&n()},a=()=>{s(!0),o&&o()};return i.jsx(No,k(h({},e),{defaultActive:void 0,active:r,onClose:l,onOpen:a}))},xs=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:r,flyout:s,handleFocus:l,handleBlur:a,handleMouseEnter:d,handleMouseLeave:f,handleClick:_,handleOpen:v,trapFocusMode:m}=Gt();ot({[`${ao},${co}`]:()=>{s.status==="idle"&&v()}},[v,s.status],{ref:o});let b={onBlur:a,ref:o};return r==="click"&&(b.onClick=_),r==="hover"&&(b.onMouseEnter=d,b.onMouseLeave=f),(r==="hover"||r==="focus")&&(b.onFocus=l,b["aria-describedby"]=n),(r==="click"||r==="focus"||m==="action-menu")&&(m==="dialog"?b["aria-haspopup"]="dialog":m==="selection-menu"?(b["aria-haspopup"]="listbox",b["aria-autocomplete"]="list"):b["aria-haspopup"]="menu",b["aria-expanded"]=s.status!=="idle",b["aria-controls"]=s.status!=="idle"?n:void 0),i.jsx(i.Fragment,{children:t(b)})},$o=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),$n=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),ys=()=>{const{mode:e}=c.useContext($n);return e},Eo=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext($o),{mode:o,setMode:r,invertMode:s}=c.useContext($n);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:r,invertColorMode:s}),[e,o,r,s,t,n])},ws={root:"_root_r30zs_1"},ct=e=>{const{name:t,defaultName:n,colorMode:o,children:r,className:s}=e,[l,a]=c.useState(!1),[d,f]=c.useState(n),_=ys(),v=Eo(),m=!v.theme,b=t||d||v.theme,p=m?_:v.colorMode,w=o==="inverted"?p==="light"?"dark":"light":o||p,g=M(ws.root,s),y=j=>{f(j)};return ae(()=>{a(!0)},[]),ae(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",b),j||document.documentElement.setAttribute("data-rs-color-mode",w),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[b,w,m]),i.jsx($o.Provider,{value:{theme:b,colorMode:w,setTheme:y},children:i.jsx("div",{className:g,"data-rs-theme":m?void 0:b,"data-rs-color-mode":m||!o&&!l?void 0:w,children:r})})},js=e=>{const{defaultMode:t,children:n}=e,[o,r]=c.useState(t||"light"),s=c.useCallback(a=>{Lr(),document.documentElement.setAttribute("data-rs-color-mode",a),r(a)},[]);ae(()=>{$t(()=>{Vr()})},[o]),ae(()=>{const a=document.documentElement.getAttribute("data-rs-color-mode");a&&s(a)},[]);const l=c.useMemo(()=>({mode:o,setMode:s,invertMode:()=>{s(o==="light"?"dark":"light")}}),[o,s]);return i.jsx($n.Provider,{value:l,children:n})},zo=c.createContext({}),Cs=()=>c.useContext(zo),Xt=e=>{const{children:t,targetRef:n}=e,o=Cs(),r=n||o.scopeRef;return _e.createPortal(i.jsx(ct,{children:t}),(r==null?void 0:r.current)||document.body)};function ks(e){const{children:t}=e,n=c.useRef(null);return i.jsx(zo.Provider,{value:{scopeRef:n},children:t(n)})}Xt.Scope=ks;const zt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},Ns=e=>{const{children:t,className:n,attributes:o}=e,{flyout:r,id:s,flyoutElRef:l,triggerElRef:a,handleTransitionEnd:d,triggerType:f,handleMouseEnter:_,handleMouseLeave:v,handleContentMouseDown:m,handleContentMouseUp:b,contentGap:p,contentClassName:x,contentAttributes:w,trapFocusMode:g}=Gt(),{styles:y,status:j,position:$}=r,[z,E]=c.useState(!1);if(ae(()=>{E(!0)},[]),j==="idle"||!z)return null;const P=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),I=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":g==="dialog"?O="dialog":g==="selection-menu"?O="listbox":g==="action-menu"&&(O="menu");const S=i.jsx("div",{className:P,style:k(h({},y),{"--rs-flyout-gap":p}),ref:l,onTransitionEnd:d,onMouseEnter:f==="hover"?_:void 0,onMouseLeave:f==="hover"?v:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:b,onTouchEnd:b,children:i.jsx("div",k(h({role:O},o),{id:s,"aria-modal":f==="click",style:w==null?void 0:w.style,className:I,children:t}))}),A=Cn(a.current);return i.jsx(Xt,{targetRef:A===document.body?void 0:{current:A},children:S})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(No,h({},e)):i.jsx(ps,h({},e))};Xe.Trigger=xs,Xe.Content=Ns;const En={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},$s={root:"_root_e7w6q_1"},zn=e=>{if(!e)return null;const t=ee("--rs-p",e);return{classNames:$s.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:o,onClose:r,active:s,defaultActive:l,children:a,width:d,contentGap:f,variant:_="elevated",triggerType:v="click",position:m="bottom",disableHideAnimation:b,instanceRef:p}=e,x=(j=e.padding)!=null?j:_==="headless"?0:4,w=e.trapFocusMode||(v==="hover"?"content-menu":void 0),g=zn(x),y=M(En.content,!!d&&En["content--has-width"],_&&En[`content--variant-${_}`],g==null?void 0:g.classNames);return i.jsx(Xe,{id:t,instanceRef:p,position:m,forcePosition:n,onOpen:o,onClose:r,trapFocusMode:w,triggerType:v,active:s,defaultActive:l,width:d,disableHideAnimation:b,contentGap:f,contentClassName:y,contentAttributes:{style:h({},g==null?void 0:g.variables)},children:a})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_177la_1",icon:"_icon_177la_17",content:"_content_177la_22","--rounded-corners":"_--rounded-corners_177la_27","--size-small":"_--size-small_177la_1","--size-medium":"_--size-medium_177la_1","--size-large":"_--size-large_177la_1","--color-neutral":"_--color-neutral_177la_66","--selected":"_--selected_177la_70","--color-critical":"_--color-critical_177la_76","--color-primary":"_--color-primary_177la_86","--disabled":"_--disabled_177la_107",aligner:"_aligner_177la_115","--rounded-corners-true--m":"_--rounded-corners-true--m_177la_1","--rounded-corners-false--m":"_--rounded-corners-false--m_177la_1","--size-small--m":"_--size-small--m_177la_1","--size-medium--m":"_--size-medium--m_177la_1","--size-large--m":"_--size-large--m_177la_1","--rounded-corners-true--l":"_--rounded-corners-true--l_177la_1","--rounded-corners-false--l":"_--rounded-corners-false--l_177la_1","--size-small--l":"_--size-small--l_177la_1","--size-medium--l":"_--size-medium--l_177la_1","--size-large--l":"_--size-large--l_177la_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_177la_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_177la_1","--size-small--xl":"_--size-small--xl_177la_1","--size-medium--xl":"_--size-medium--xl_177la_1","--size-large--xl":"_--size-large--xl_177la_1"},Es=e=>{const{children:t,className:n,attributes:o}=e,r=M(Be.aligner,n);return i.jsx("div",k(h({},o),{className:r,children:t}))},zs=(e,t)=>{const{icon:n,startSlot:o,endSlot:r,children:s,color:l="primary",selected:a,disabled:d,onClick:f,href:_,size:v="medium",roundedCorners:m,className:b,attributes:p}=e,x=M(Be.root,b,W(Be,"--size",v),W(Be,"--rounded-corners",m),l&&Be[`--color-${l}`],a&&Be["--selected"],d&&Be["--disabled"]),w=Le(v,y=>y==="large"?3:2),g=Le(v,y=>y==="large"?5:4);return i.jsx(Ve,{disabled:d,className:x,attributes:p,onClick:f,href:_,ref:t,children:i.jsxs(U,{direction:"row",gap:w,align:"center",children:[n&&i.jsx(de,{svg:n,className:Be.icon,size:g}),!n&&o,s&&i.jsx(U.Item,{grow:!0,className:Be.content,children:s}),r]})})},Tn=c.forwardRef(zs);Tn.Aligner=Es;const Jt=()=>i.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:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Qt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},In=c.createContext(null),ye=e=>{const l=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:r="action-menu"}=l,s=Fe(l,["children","position","triggerType","trapFocusMode"]);return i.jsx(dt,k(h({},s),{position:n,padding:0,trapFocusMode:r,triggerType:o,children:t}))},Ts=e=>{const{children:t,attributes:n,className:o}=e,r=c.useContext(In),[s]=Ge(),{ref:l}=ot({[s?uo:_o]:()=>{var d;(d=r==null?void 0:r.current)==null||d.close()},[Yr]:()=>{const d=Dt();d==null||d.click()}},[r==null?void 0:r.current]),a=M(Qt.menu,o);return i.jsx(dt.Content,{className:a,attributes:k(h({},n),{ref:l}),children:t})},Is=e=>{const{children:t}=e;return i.jsx("div",{className:Qt.section,role:"group",children:t})},To=e=>{const{onClick:t}=e,{handleClose:n}=Gt(),o=r=>{n&&n({closeParents:!0}),t&&t(r)};return i.jsx(Tn,k(h({},e),{roundedCorners:!0,className:Qt.item,attributes:h({role:"menuitem"},e.attributes),onClick:o}))},Ms=e=>{const{children:t}=e,n=c.useRef();return i.jsx(In.Provider,{value:n,children:i.jsx(ye,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Ss=e=>{const a=e,{children:t,attributes:n}=a,o=Fe(a,["children","attributes"]),r=c.useContext(In),[s]=Ge(),{ref:l}=ot({[s?_o:uo]:()=>{var d;(d=r==null?void 0:r.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(To,k(h({},o),{attributes:k(h({},n),{ref:l}),endSlot:i.jsx(de,{autoWidth:!0,svg:Jt,className:Qt.arrow}),children:t}))},Ps=e=>{const{children:t}=e;return i.jsx(ye.Trigger,{children:n=>i.jsx(Ss,{attributes:n,children:t})})};ye.Trigger=dt.Trigger,ye.Content=Ts,ye.Section=Is,ye.Item=To,ye.SubMenu=Ms,ye.SubTrigger=Ps;const Io=c.createContext({}),Mo=e=>{const w=e,{children:t,onChange:n,onItemSelect:o,name:r}=w,s=Fe(w,["children","onChange","onItemSelect","name"]),[l,a]=c.useState(!1),[d,f]=c.useState(!1),_=!!c.Children.toArray(t).filter(Boolean).length,v=()=>a(!0),m=()=>a(!1),b=g=>{n==null||n(g),f(!1),v()},p=g=>{n==null||n({value:g.value,name:r}),o==null||o({value:g.value}),f(!0)},x=g=>{var y;requestAnimationFrame(()=>{d&&(a(!1),f(!1))}),(y=s.onFocus)==null||y.call(s,g)};return i.jsx(Io.Provider,{value:{onItemClick:p},children:i.jsxs(ye,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!d&&_&&l,onClose:m,onOpen:v,disableHideAnimation:!0,children:[i.jsx(ye.Trigger,{children:j=>{var $=j,{ref:g}=$,y=Fe($,["ref"]);return i.jsx(lo,k(h({},s),{name:r,onChange:b,attributes:k(h({},s.attributes),{ref:g}),inputAttributes:k(h({},y),{onFocus:z=>{var E;(E=y.onFocus)==null||E.call(y),x(z)},role:"combobox"})}))}}),i.jsx(ye.Content,{children:t})]})})},As=e=>{const l=e,{value:t,onClick:n}=l,o=Fe(l,["value","onClick"]),{onItemClick:r}=c.useContext(Io),s=a=>{n==null||n(a),r({value:t})};return i.jsx(ye.Item,k(h({},o),{attributes:k(h({},o.attributes),{role:"option"}),onClick:s}))};Mo.Item=As;const Zt={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"},Fs=e=>{const{color:t="neutral",variant:n,src:o,size:r=12,squared:s,initials:l,icon:a,alt:d,className:f,attributes:_}=e,v=s?Le(r,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=Ct(r),b=M(Zt.root,f,m==null?void 0:m.classNames,t&&Zt[`--color-${t}`],n&&Zt[`--variant-${n}`]),p=()=>o?i.jsx("img",{role:l?void 0:"presentation",src:o,alt:d,className:Zt.img}):a?i.jsx(de,{svg:a,size:Le(r,x=>Math.ceil(x*.4))}):l;return i.jsx(U,{borderRadius:v,attributes:k(h({},_),{style:h({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:b,children:p()})},So=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Te={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"},Ls=e=>{const{children:t,position:n="top-end",overlap:o,className:r,attributes:s}=e,l=M(Te.container,r,o&&Te["--container-overlap"],n&&Te[`--container-position-${n}`]);return i.jsx("div",k(h({},s),{className:l,children:t}))},Po=e=>{const{children:t,color:n,rounded:o,size:r="medium",icon:s,endIcon:l,variant:a,hidden:d,href:f,onClick:_,onDismiss:v,dismissAriaLabel:m,className:b,attributes:p}=e,x=!!(_||f),w=r==="large"?4:3.5,g=M(Te.root,b,o&&Te["--rounded"],d&&Te["--hidden"],r&&Te[`--size-${r}`],n&&Te[`--color-${n}`],a&&Te[`--variant-${a}`],x&&Te["--actionable"]);return i.jsxs(Ve,{onClick:_,href:f,className:g,attributes:p,children:[s&&i.jsx(de,{svg:s,autoWidth:!0,size:w}),t&&i.jsx(te,{variant:r==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),l&&i.jsx(de,{svg:l,autoWidth:!0,size:w}),v&&i.jsx(Ve,{onClick:v,className:Te.dismiss,as:"span",attributes:{"aria-label":m},children:i.jsx(de,{svg:So,size:w})})]})};Po.Container=Ls;const en={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"},Ao=e=>{const{size:t="small",color:n="primary",className:o,attributes:r}=e,s=r==null?void 0:r["aria-label"],l=M(en.root,o,W(en,"--size",t),n&&en[`--color-${n}`]);return i.jsx("span",k(h({},r),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:en.inner})}))},ce={root:"_root_7vlg5_1",loader:"_loader_7vlg5_33",icon:"_icon_7vlg5_41","--icon-position-end":"_--icon-position-end_7vlg5_45",text:"_text_7vlg5_56","--loading":"_--loading_7vlg5_62","--elevated":"_--elevated_7vlg5_79","--icon-only":"_--icon-only_7vlg5_83","--rounded":"_--rounded_7vlg5_89","--size-small":"_--size-small_7vlg5_1","--size-medium":"_--size-medium_7vlg5_1","--size-large":"_--size-large_7vlg5_1","--size-xlarge":"_--size-xlarge_7vlg5_1","--full-width":"_--full-width_7vlg5_135","--variant-solid":"_--variant-solid_7vlg5_149","--color-black":"_--color-black_7vlg5_149","--color-white":"_--color-white_7vlg5_150","--variant-faded":"_--variant-faded_7vlg5_151","--color-neutral":"_--color-neutral_7vlg5_151","--color-primary":"_--color-primary_7vlg5_152","--color-critical":"_--color-critical_7vlg5_153","--color-positive":"_--color-positive_7vlg5_154","--color-inherit":"_--color-inherit_7vlg5_155","--variant-outline":"_--variant-outline_7vlg5_156","--variant-ghost":"_--variant-ghost_7vlg5_157","--highlighted":"_--highlighted_7vlg5_176","--disabled":"_--disabled_7vlg5_531",group:"_group_7vlg5_563",aligner:"_aligner_7vlg5_624","--aligner-position-all":"_--aligner-position-all_7vlg5_628","--aligner-position-start":"_--aligner-position-start_7vlg5_636","--aligner-position-end":"_--aligner-position-end_7vlg5_644","--aligner-position-top":"_--aligner-position-top_7vlg5_652","--aligner-position-bottom":"_--aligner-position-bottom_7vlg5_660","--size-small--m":"_--size-small--m_7vlg5_1","--size-medium--m":"_--size-medium--m_7vlg5_1","--size-large--m":"_--size-large--m_7vlg5_1","--size-xlarge--m":"_--size-xlarge--m_7vlg5_1","--full-width-true--m":"_--full-width-true--m_7vlg5_1","--full-width-false--m":"_--full-width-false--m_7vlg5_1","--size-small--l":"_--size-small--l_7vlg5_1","--size-medium--l":"_--size-medium--l_7vlg5_1","--size-large--l":"_--size-large--l_7vlg5_1","--size-xlarge--l":"_--size-xlarge--l_7vlg5_1","--full-width-true--l":"_--full-width-true--l_7vlg5_1","--full-width-false--l":"_--full-width-false--l_7vlg5_1","--size-small--xl":"_--size-small--xl_7vlg5_1","--size-medium--xl":"_--size-medium--xl_7vlg5_1","--size-large--xl":"_--size-large--xl_7vlg5_1","--size-xlarge--xl":"_--size-xlarge--xl_7vlg5_1","--full-width-true--xl":"_--full-width-true--xl_7vlg5_1","--full-width-false--xl":"_--full-width-false--xl_7vlg5_1"},Vs=e=>{const{children:t,className:n,attributes:o}=e,r=M(ce.group,n);return i.jsx("div",k(h({},o),{className:r,role:"group",children:t}))},Os=e=>{const{children:t,position:n,className:o,attributes:r}=e,s=typeof n=="string"?[n]:n,l=s?s.map(d=>ce[`--aligner-position-${d}`]):[ce["--aligner-position-all"]],a=M(ce.aligner,o,...l);return i.jsx("div",k(h({},r),{className:a,children:t}))},Ds=(e,t)=>{const{variant:n="solid",color:o="neutral",elevated:r,highlighted:s,fullWidth:l,loading:a,disabled:d,type:f,href:_,size:v="medium",className:m,children:b,rounded:p,attributes:x,onClick:w,icon:g,endIcon:y}=e,j=(g||y)&&!b,$=M(ce.root,m,o&&ce[`--color-${o}`],n&&ce[`--variant-${n}`],W(ce,"--size",v),W(ce,"--full-width",l),r&&n!=="ghost"&&ce["--elevated"],p&&ce["--rounded"],d&&ce["--disabled"],a&&ce["--loading"],s&&ce["--highlighted"],j&&ce["--icon-only"]),z=E=>{if(!(E==="start"&&g||E==="end"&&y))return null;const S=M(ce.icon,E==="end"&&ce["--icon-position-end"]),A=Le(v,q=>q==="large"?5:q==="xlarge"?6:4);return i.jsx(de,{className:S,svg:E==="start"?g:y,size:A,autoWidth:!0})};return i.jsxs(Ve,{disabled:d||a,className:$,attributes:x,type:f,onClick:w,href:_,ref:t,children:[a&&i.jsx("div",{className:ce.loader,children:i.jsx(Ao,{size:"small",color:"inherit"})}),z("start"),b&&i.jsx("span",{className:ce.text,children:b}),z("end")]})},je=c.forwardRef(Ds);je.Group=Vs,je.Aligner=Os;const Tt={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"},qs=(e,t)=>{const{icon:n,disabled:o,href:r,color:s="primary",variant:l="underline",className:a,children:d,attributes:f,type:_,onClick:v}=e,m=M(Tt.root,a,o&&Tt["--disabled"],l&&Tt[`--variant-${l}`],s&&Tt[`--color-${s}`],n&&Tt["--with-icon"]);return i.jsxs(Ve,{href:r,disabled:o,className:m,attributes:f,type:_,onClick:v,ref:t,children:[n&&i.jsx(de,{svg:n}),d]})},Fo=c.forwardRef(qs),Bs=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.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"}),i.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"}),i.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"})]}),Ws=e=>{const{children:t,onClick:n,href:o,icon:r,disabled:s}=e;return!o&&!n&&!s?i.jsx(te,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Fo,{onClick:n,href:o,icon:r,disabled:s,variant:"plain",color:"inherit",children:t})},Lo=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:r,ariaLabel:s,className:l,attributes:a}=e,d=r&&r>=2?r:null,[f,_]=c.useState(!1),v=M(l),m=c.Children.count(t);let b=0;const p=()=>{_(!0)};return i.jsx("nav",k(h({},a),{"aria-label":s||(a==null?void 0:a["aria-label"]),className:v,children:i.jsx(U,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,w)=>{if(!x)return null;const g=m-(d||0),y=b===0,j=b>g,$=!d||y||j||f,z=b===g;b+=1;let E=null;return $?E=x:z&&(E=i.jsx(je.Aligner,{children:i.jsx(je,{variant:"ghost",size:"small",icon:Bs,onClick:p})})),E===null?null:i.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[w>0&&($||z)&&i.jsx(te,{color:"neutral-faded",children:n||i.jsx(de,{svg:Jt,size:3})}),i.jsx(te,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:E})]},w)})})}))};Lo.Item=Ws;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Hs=(e,t)=>{const{padding:n=4}=e,{selected:o,elevated:r,bleed:s,height:l,onClick:a,href:d,children:f,className:_,attributes:v,as:m="div"}=e,b=!!d||!!a,p=un("medium"),x=to(s),w=zn(n),g=Ct(l),y=M(ut.root,p==null?void 0:p.classNames,x==null?void 0:x.classNames,w==null?void 0:w.classNames,g==null?void 0:g.classNames,b&&ut["--actionable"],r&&ut["--elevated"],o&&ut["--selected"],_),j=h(h(h(h({},v==null?void 0:v.style),x==null?void 0:x.variables),w==null?void 0:w.variables),g==null?void 0:g.variables);return b?i.jsx(Ve,{className:y,attributes:k(h({},v),{style:j}),href:d,as:m,onClick:a,ref:t,children:i.jsx("span",{className:ut.content,children:f})}):i.jsx(m,k(h({},v),{onClick:a,href:d,ref:t,className:y,style:j,children:i.jsx("span",{className:ut.content,children:f})}))},Rs=c.forwardRef(Hs),Vo=()=>i.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:i.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});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"},Oo=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:r,isRTL:s,mounted:l}=e,[a,d]=c.useState(!1),[f,_]=c.useState(!1),v=t===_t.forward,m=t===(s?_t.back:_t.forward),b=M(We.control,m?We["--control-next"]:We["--control-prev"],a&&We["--control-visible"],f&&We["--control-rendered"]);return ae(()=>{const p=n.current;if(!p||!l)return;let x;const w=Math.abs(o),g=w<=0,y=w+p.clientWidth>=p.scrollWidth-1;return(v?y:g)?(d(!1),x=setTimeout(()=>_(!1),1500)):(_(!0),d(!0)),()=>{x&&clearTimeout(x)}},[o,n.current,l]),i.jsx("div",{className:b,"aria-hidden":"true",children:i.jsx(je,{onClick:r,icon:m?Jt:Vo,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!a}})})},Us=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:r,navigationDisplay:s,instanceRef:l,className:a,attributes:d}=e,[f,_]=c.useState(!1),[v,m]=c.useState(0),[b]=Ge(),p=c.useRef(null),x={};typeof r=="object"&&Object.entries(r).forEach(([P,I])=>{x[P]=typeof I=="number"&&I>0});const w=M(We.root,a,...W(We,"--bleed",typeof r=="number"?!0:x)),g=pr(P=>{const I=P.target;m(I.scrollLeft)},16),y=()=>{const I=getComputedStyle(p.current).gap.split(" ")[0];return Number(I.replace("px",""))},j=()=>{const P=p.current;P.scrollBy({left:P.clientWidth+y(),top:0,behavior:"smooth"})},$=()=>{const P=p.current;P.scrollBy({left:-P.clientWidth-y(),top:0,behavior:"smooth"})},z=b?j:$,E=b?$:j;return c.useImperativeHandle(l,()=>({navigateBack:z,navigateForward:E})),ae(()=>{_(!0)},[]),i.jsxs("section",k(h({},d),{className:w,style:h(h({},ee("--rs-carousel-items",o)),ee("--rs-carousel-bleed",r)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Oo,{isRTL:b,type:_t.back,scrollElRef:p,scrollPosition:v,onClick:z,mounted:f}),i.jsx(Oo,{isRTL:b,type:_t.forward,scrollElRef:p,scrollPosition:v,onClick:E,mounted:f})]}),i.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:p,onScroll:g},children:c.Children.map(t,P=>i.jsx(U.Item,{className:We.item,as:"li",children:P}))})]}))},Ks={root:"_root_1feer_1"},Mn=e=>{const{name:t,value:n,type:o,onChange:r,onFocus:s,onBlur:l,checked:a,defaultChecked:d,disabled:f,className:_,attributes:v}=e,m=M(Ks.root,_);return i.jsx("input",k(h({},v),{className:m,type:o,name:t,value:n,checked:a,defaultChecked:d,disabled:f,onChange:r,onFocus:s||(v==null?void 0:v.onFocus),onBlur:l||(v==null?void 0:v.onBlur)}))},Do=c.createContext(null),Ys=()=>c.useContext(Do),qo=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:l}=e,a=d=>{const{event:f,value:_,checked:v}=d;if(!_)return;let m=[...r];v?m.push(_):m=m.filter(b=>b!==_),t&&t({name:n,value:m,event:f})};return i.jsx(Do.Provider,{value:{onChange:a,disabled:o,value:r,name:n,hasError:l},children:s})},Gs=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||[]),s=l=>{l.value&&(r(l.value),n&&n(l))};return i.jsx(qo,k(h({},e),{value:o,defaultValue:void 0,onChange:s}))},Xs=e=>{const{value:t}=e;return t!==void 0?i.jsx(qo,h({},e)):i.jsx(Gs,h({},e))},Js=()=>i.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:i.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"},Qs=e=>{var $;const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,indeterminate:l,className:a,attributes:d,inputAttributes:f}=e,_=Ys(),v=Ye(),m=(v==null?void 0:v.hasError)||e.hasError||(_==null?void 0:_.hasError),b=(v==null?void 0:v.disabled)||e.disabled||(_==null?void 0:_.disabled),p=_?($=_.value)==null?void 0:$.includes(n):e.checked,x=_?void 0:e.defaultChecked,w=_?_.name:e.name,g=c.useRef(null),y=M(Je.root,a,m&&Je["--error"],b&&Je["--disabled"]),j=z=>{if(!w)return;const{checked:E}=z.target,P={name:w,value:n,checked:E,event:z};o&&o(P),_!=null&&_.onChange&&_.onChange(P)};return ae(()=>{g.current.indeterminate=l||!1},[l,p]),i.jsxs("label",k(h({},d),{className:y,children:[i.jsxs("span",{className:Je.field,children:[i.jsx(Mn,{className:Je.input,type:"checkbox",checked:p,defaultChecked:x,name:w,disabled:b,value:n,onChange:j,onFocus:r,onBlur:s,attributes:k(h({},f),{ref:g})}),i.jsx("div",{className:Je.decorator,children:i.jsx(de,{svg:Js,className:Je.icon})})]}),t&&i.jsx("span",{className:Je.text,children:t})]}))},Zs={root:"_root_1c40o_1"},ei=e=>{const{children:t,padding:n=4,width:o,className:r,attributes:s}=e,l=M(Zs.root,r);return i.jsx(U,{attributes:s,className:l,paddingInline:n,width:o,maxWidth:"100%",children:t})},It={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"},ti=e=>{const{children:t,align:n,onClose:o,hideCloseButton:r,variant:s,closeAriaLabel:l,className:a,attributes:d}=e,f=M(It.root,a,s&&It[`--variant-${s}`],n&&It[`--align-${n}`],r&&It["--hide-close"]),_=s==="media"?"div":je.Aligner;return i.jsxs("div",k(h({},d),{className:f,children:[t,!r&&i.jsx(_,{className:It.close,children:i.jsx(je,k(h({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?l:void 0},icon:So}))})]}))},ni={root:"_root_r7flr_1"},oi=e=>{const{children:t}=e;return i.jsx("div",{className:ni.root,children:t})},Bo={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},ri=e=>{const{children:t,active:n,className:o,attributes:r}=e,s=M(Bo.root,n&&Bo["--active"],o);return i.jsx(te,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:r,children:t})},tn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},si=e=>{const{src:t,alt:n,width:o,height:r,onLoad:s,onError:l,fallback:a,displayMode:d="cover",borderRadius:f,className:_,attributes:v,imageAttributes:m}=e,[b,p]=c.useState("loading"),x=un(f),w=_n(o),g=Ct(r),y=M(tn.root,x==null?void 0:x.classNames,w==null?void 0:w.classNames,g==null?void 0:g.classNames,d&&tn[`--display-mode-${d}`],_),j=M(tn.image,y),$=M(tn.fallback,y),z=h(h({},w==null?void 0:w.variables),g==null?void 0:g.variables),E=I=>{p("success"),s==null||s(I)},P=I=>{p("error"),l==null||l(I)};return c.useEffect(()=>{p("loading")},[t]),(b==="error"||!t)&&a?typeof a=="string"?i.jsx("img",k(h({},v),{src:a,alt:n,role:n?void 0:"presentation",className:$,style:z})):i.jsx("div",k(h({},v),{className:$,style:z,children:a})):i.jsx("img",k(h(h({},v),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:E,onError:P,className:j,style:z}))},Sn=e=>{const[t,n]=c.useState(e||!1),o=c.useCallback(()=>{n(!0)},[]),r=c.useCallback(()=>{n(!1)},[]),s=c.useCallback(()=>{n(l=>!l)},[]);return{active:t,activate:o,deactivate:r,toggle:s}},ii=(()=>{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}})(),Wo=()=>{const[e,t]=c.useState(!1),n=c.useRef(),o=c.useRef(!1),r=c.useCallback(()=>{const{body:l}=document,a=l.getBoundingClientRect();if(o.current=a.left+a.right<window.innerWidth,n.current=l.style.overflow,l.style.overflow="hidden",o.current){const d=ii();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),s=c.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:r,unlockScroll:s}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Ho=e=>{const{active:t,children:n,transparent:o,onClose:r,className:s,attributes:l}=e,[a,d]=c.useState(!1),f=c.useRef(null),_=c.useRef(!1),v=c.useRef(null),{lockScroll:m,unlockScroll:b}=Wo(),{active:p,activate:x,deactivate:w}=Sn(t||!1),{active:g,activate:y,deactivate:j}=Sn(t||!1),$=ho(t,f),z=M(mt.root,g&&mt["--visible"],o&&mt["--transparent"],s),E=V=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(V)},P=()=>{f.current&&(v.current=Wt(f.current))},I=()=>{v.current&&(v.current(),v.current=null)},O=c.useCallback(()=>{!g||!$()||r&&r()},[g,$]),S=V=>{_.current=!E(V.target)},A=V=>{const L=!E(V.target);_.current&&L&&!o&&O()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||g||(o||b(),w())};return ot({Escape:O},[O]),c.useEffect(()=>{t&&!p&&x(),!t&&p&&j()},[t,x,j,p]),c.useEffect(()=>{p&&(o||m(),$t(()=>y()))},[p,y,m,o]),c.useEffect(()=>{if(p)return P(),()=>I()},[p]),c.useEffect(()=>()=>{o||b()},[b,o]),ae(()=>{d(!0)},[]),!p||!a?null:i.jsx(Xt,{children:i.jsx(Xt.Scope,{children:V=>i.jsx("div",k(h({},l),{ref:V,role:"button",tabIndex:-1,className:z,onMouseDown:S,onMouseUp:A,onTransitionEnd:q,children:i.jsx("div",{className:mt.wrapper,children:i.jsx("div",{className:mt.inner,children:i.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:g}):n})})})}))})})},Pn={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"},Ro=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Uo=()=>c.useContext(Ro),li=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=Uo();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(te,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},ai=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=Uo();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(te,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},An=e=>{const{children:t,onClose:n,active:o,size:r,padding:s=4,position:l="center",transparentOverlay:a,className:d,attributes:f}=e,_=$e(),[v,m]=c.useState(!1),[b,p]=c.useState(!1),x=zn(s),w=c.useMemo(()=>({titleMounted:v,setTitleMounted:m,subtitleMounted:b,setSubtitleMounted:p,id:_}),[_,b,v]);return i.jsx(Ho,{onClose:n,active:o,transparent:a,children:({active:g})=>{const y=M(Pn.root,d,x==null?void 0:x.classNames,g&&Pn["--active"],W(Pn,"--position",l));return i.jsx(Ro.Provider,{value:w,children:i.jsx("div",k(h({},f),{style:h(h({},x==null?void 0:x.variables),ee("--rs-modal-size",r)),"aria-labelledby":v?`${_}-title`:void 0,"aria-describedby":b?`${_}-subtitle`:void 0,className:y,"aria-modal":"true",role:"dialog",children:t}))})}})};An.Title=li,An.Subtitle=ai;const Mt={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"},ci=e=>{const{value:t=0,min:n=0,max:o=100,color:r="primary",size:s="medium",duration:l,className:a,attributes:d}=e,f=M(Mt.root,a,r&&Mt[`--color-${r}`],s&&Mt[`--size-${s}`],!!l&&Mt["--duration"]),_=o-n,v=t-n,p=`${Math.max(n,Math.min(o,v))/_*100-100}%`;return i.jsx("div",k(h({role:"progressbar"},d),{className:f,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Mt.value,style:{"--rs-progress-value":p,"--rs-progress-duration":l?`${l}ms`:void 0}})}))},Ko=c.createContext(null),di=()=>c.useContext(Ko),Yo=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:l}=e,a=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return i.jsx(Ko.Provider,{value:{onChange:a,disabled:o,value:r,name:n,hasError:l},children:s})},ui=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||null),s=l=>{l.value&&(r(l.value),n&&n(l))};return i.jsx(Yo,k(h({},e),{value:o,defaultValue:void 0,onChange:s}))},_i=e=>{const{value:t}=e;return t!==void 0?i.jsx(Yo,h({},e)):i.jsx(ui,h({},e))},rt={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"},mi=e=>{const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,className:l,attributes:a,inputAttributes:d}=e,f=Ye(),_=di(),v=(f==null?void 0:f.hasError)||e.hasError||(_==null?void 0:_.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(_==null?void 0:_.disabled),b=_?_.value===n:e.checked,p=_?void 0:e.defaultChecked,x=_?_.name:e.name,w=M(rt.root,l,v&&rt["--error"],m&&rt["--disabled"]),g=y=>{if(!x)return;const{checked:j}=y.target,$={name:x,value:n,checked:j,event:y};o&&o($),_!=null&&_.onChange&&_.onChange($)};return i.jsxs("label",k(h({},a),{className:w,children:[i.jsxs("span",{className:rt.field,children:[i.jsx(Mn,{className:rt.input,type:"radio",checked:b,defaultChecked:p,name:x,disabled:m,value:n,onChange:g,onFocus:r,onBlur:s,attributes:d}),i.jsx("div",{className:rt.decorator})]}),t&&i.jsx("span",{className:rt.text,children:t})]}))},Go={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Xo={queues:St.reduce((e,t)=>h({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},nn=c.createContext(Xo),fi=()=>{const{add:e,hide:t}=c.useContext(nn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},De={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"},vi=e=>{const{size:t="small",text:n,children:o,color:r="inverted",icon:s,title:l,actionsSlot:a,startSlot:d,collapsed:f,attributes:_}=e;let v=r==="inverted"||r==="neutral"?"elevation-overlay":r;r==="neutral"&&(v=f?"neutral":"elevation-overlay");const m=r==="neutral"?"neutral-faded":"transparent",b=t==="small"?"span":"div",p=t==="large";let x=[];a&&(x=Array.isArray(a)?a:[a]);const w=(l||n)&&i.jsxs(i.Fragment,{children:[l&&i.jsxs(te,{variant:"body-3",weight:"bold",as:b,children:[l," "]}),i.jsx(te,{variant:"body-3",as:b,children:n})]}),g=i.jsxs(U,{backgroundColor:v,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:De.toast,attributes:_,children:[s&&i.jsx(de,{size:5,svg:s,className:De.icon}),d&&!s&&i.jsx(U.Item,{children:d}),i.jsx(U.Item,{grow:!0,children:i.jsxs(U,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[i.jsx(U.Item,{grow:!0,children:w&&o||t!=="small"?i.jsxs(U,{gap:.5,children:[w,o&&i.jsx(U,{gap:3,children:o})]}):w||o}),x.length&&i.jsx(U,{direction:"row",align:"center",gap:2,children:x.map((y,j)=>{const $=t==="large"?j===0:j===x.length-1,E={variant:$?"solid":"ghost",size:"small",color:$?r==="neutral"||r==="inverted"?"neutral":"white":"inherit",elevated:r!=="neutral"};return y.type===je?c.createElement(je,k(h(h({},E),y.props),{key:j})):y})})]})})]});return r==="inverted"?i.jsx(ct,{colorMode:"inverted",children:g}):g},bi=e=>{const{toastProps:t,id:n,status:o,inspected:r,index:s}=e,{timeout:l="short"}=t,{show:a,hide:d,remove:f}=c.useContext(nn),[_,v]=c.useState(),m=c.useRef(),b=c.useRef(!1),p=c.useRef(null),x=c.useRef(null),w=o==="entered",g=M(De.container,w&&De["container--visible"],s===0&&De[`container--index-${s}`],!r&&(s===1||s===2)&&De[`container--index-${s}`],!r&&s>=3&&De["container--index-overflow"]),y=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{y();const z=typeof l=="string"?Go[l]:l;l!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:Go.short))},[d,n,l,y]),$=z=>{z.propertyName==="height"&&(w||f(n))};return c.useEffect(()=>{w&&(r?y():j())},[r,j,y,w]),c.useEffect(()=>{x.current&&v(x.current.clientHeight),a(n),j()},[a,n,j]),c.useEffect(()=>{x.current&&(w?p.current=Wt(x.current,{includeTrigger:!0,mode:"content-menu"}):p.current&&mo()&&(p.current(),p.current=null))},[w]),c.useEffect(()=>{if(!w||s>0)return;const z=()=>{b.current=!0,$t(()=>{b.current=!1}),x.current&&v(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[w,s]),i.jsx("li",{className:g,style:{height:o==="entered"?`calc(${_}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:b.current?"0s":void 0},onTransitionEnd:$,onFocus:y,onBlur:j,children:i.jsx("span",{className:De.wrapper,children:i.jsx(vi,k(h({},t),{collapsed:s>0&&!r,attributes:{ref:x}}))})})},hi=e=>{const{position:t}=e,{queues:n,options:o}=c.useContext(nn),[r,s]=c.useState(!1),l=c.useRef(!1),a=c.useRef(null),d=n[t],{width:f,expanded:_}=(o==null?void 0:o[t])||{},v=M(De.region,De[`region--position-${t}`]),m=d.filter(y=>y.status==="entered").length;let b=0;const p=()=>{l.current=!0},x=y=>{let j=y.target,$=!1;for(;j&&j!==a.current&&!$;)$=j.matches(fo),j=j.parentElement;$||s(z=>!z),l.current=!1},w=()=>{l.current||s(!0)},g=()=>{l.current||s(!1)};return c.useEffect(()=>{d.length===0&&s(!1)},[d.length]),d.length?i.jsx("ul",{role:"region","aria-live":"polite",className:v,ref:a,onTouchStart:p,onClick:x,onMouseEnter:w,onMouseLeave:g,style:{width:f},children:d.map((y,j)=>{const $=m-j+b-1;return y.status!=="entered"&&(b+=1),i.jsx(bi,k(h({},y),{index:$,inspected:r||!!_}),y.id)})}):null};let gi=0;const pi=()=>`__rs-toast-${gi++}`,xi=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:r="bottom-end"}=o,s=Fe(o,["position"]);return k(h({},e),{[r]:[...e[r],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:l}=t.payload;return n=h({},e),St.forEach(f=>{n[f]=n[f].map(_=>_.status!=="entering"?_:_.id===l?k(h({},_),{status:"entered"}):_)}),n;case"hide":const{id:a}=t.payload;return n=h({},e),St.forEach(f=>{n[f]=n[f].map(_=>_.id===a?k(h({},_),{status:"exiting"}):_)}),n;case"remove":const{id:d}=t.payload;return n=h({},e),St.forEach(f=>{n[f]=n[f].filter(_=>_.id!==d)}),n}},yi=e=>{const{children:t,options:n}=e,[o,r]=c.useReducer(xi,Xo.queues),s=c.useCallback(_=>{const v=pi();return console.log("add"),r({type:"add",payload:{toastProps:_,id:v}}),v},[]),l=c.useCallback(_=>{r({type:"show",payload:{id:_}})},[]),a=c.useCallback(_=>{console.log("hide"),r({type:"hide",payload:{id:_}})},[]),d=c.useCallback(_=>{r({type:"remove",payload:{id:_}})},[]),f=c.useMemo(()=>({queues:o,add:s,show:l,hide:a,remove:d,inspecting:!1,options:n}),[o,l,a,s,d,n]);return i.jsxs(nn.Provider,{value:f,children:[t,St.map(_=>i.jsx(hi,{position:_},_))]})},wi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(gn,"true")},t=()=>{document.documentElement.removeAttribute(gn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Qa="",ji={root:"_root_18j53_1"},Ci=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:r}=e,s=ds(n);return wi(),i.jsx(jn.Provider,{value:{rtl:s,defaultViewport:o},children:i.jsx(as,{children:i.jsx(yi,{options:r,children:t})})})},ki=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:r}=e,s=M(ji.root,r);return i.jsx(js,{defaultMode:o,children:i.jsx(ct,{name:t,defaultName:n,className:s,children:i.jsx(Ci,k(h({},e),{children:e.children}))})})},Pt={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"},Ni=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:r,className:s,scrimClassName:l}=e,a=M(Pt.root,!!n&&Pt["--with-background"],o&&Pt[`--position-${o}`],s),d=M(Pt.scrim,l);return i.jsxs("div",k(h({},r),{className:a,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:Pt.content,children:t})})]}))},$i=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ie={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},Ei=e=>{var q,V;const{onChange:t,onClick:n,onFocus:o,onBlur:r,name:s,value:l,defaultValue:a,placeholder:d,options:f,children:_,icon:v,startSlot:m,size:b="medium",variant:p="outline",className:x,attributes:w}=e,[g,y]=c.useState(l===void 0?!a:!l),j=Ye(),$=$e(e.id),z=((q=j==null?void 0:j.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,E=(j==null?void 0:j.disabled)||e.disabled,P=(j==null?void 0:j.hasError)||e.hasError,I=h(h({},e.inputAttributes),j==null?void 0:j.attributes),O=M(Ie.root,x,b&&W(Ie,"--size",b),P&&Ie["--status-error"],E&&Ie["--disabled"],g&&f&&Ie["--placeholder"],p&&Ie[`--variant-${p}`]),S=L=>{const Q=L.target.value;l===void 0&&y(!Q),t&&t({name:s,value:Q,event:L})};c.useEffect(()=>{l!==void 0&&y(!l)},[l]);const A=(m||v)&&i.jsx("div",{className:Ie.slot,children:v?i.jsx(de,{size:Le(b,L=>L==="large"?5:L==="xlarge"?6:4),svg:v,className:Ie.icon}):m});return i.jsxs("div",k(h({},w),{className:O,children:[f?i.jsxs(i.Fragment,{children:[A,i.jsxs("select",k(h({},I),{className:Ie.input,disabled:E,name:s,value:l,defaultValue:a,onChange:S,onFocus:o||(I==null?void 0:I.onFocus),onBlur:r||(I==null?void 0:I.onBlur),id:z,children:[d&&i.jsx("option",{value:"",children:d}),f.map(L=>i.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(Ve,{className:Ie.input,disabled:E,onClick:n,attributes:k(h({},I),{onFocus:o||(I==null?void 0:I.onFocus),onBlur:r||(I==null?void 0:I.onBlur)}),children:[A,_||(d?i.jsx(te,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:l,name:s})]}),i.jsx("div",{className:Ie.arrow,children:i.jsx(de,{svg:$i,color:E?"disabled":"neutral-faded",size:Le(b,L=>L==="large"||L==="xlarge"?5:4)})})]}))},zi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Ti=e=>{const{borderRadius:t="small",width:n,height:o,className:r,attributes:s}=e,l=M(zi.root,r);return i.jsx(U,{backgroundColor:"disabled",width:n,height:o,borderRadius:t,className:l,attributes:s})},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"},Ii=(e,t)=>{const{name:n,value:o,disabled:r,active:s,position:l,max:a,min:d,onChange:f,onDragStart:_,renderValue:v}=e,m=c.useId(),b=M(Qe.thumb,s&&Qe["thumb--active"]),p=v?v({value:o}):o,x=w=>{f(+w.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:Qe.input,type:"range",name:n,value:o,onChange:x,disabled:r,max:a,min:d,"aria-labelledby":m}),i.jsx("div",{ref:t,className:b,onMouseDown:_,onTouchStart:_,style:{insetInlineStart:`${l}%`},id:m,"aria-hidden":"true",children:i.jsx(ct,{className:Qe.tooltip,colorMode:"inverted",children:i.jsx(te,{variant:"caption-1",weight:"medium",children:p})})})]})},Jo=c.forwardRef(Ii),Qo=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Fn=(e,t)=>Math.round(e/t)*t,Ln=e=>{var Ce;const{name:t,range:n,max:o,min:r,step:s=1,onChange:l,onChangeCommit:a,renderValue:d,className:f,attributes:_}=e,v=n&&e.minValue!==void 0?Fn(e.minValue,s):void 0,m=Fn(n?e.maxValue:e.value,s),b=c.useRef(null),p=c.useRef(null),x=c.useRef(null),[w,g]=c.useState(null),[y]=Ge(),j=Ye(),$=$e(),z=((Ce=j==null?void 0:j.attributes)==null?void 0:Ce.id)||$,E=`${z}-min`,P=`${z}-max`,I=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,I&&Qe["--disabled"],f),S=c.useCallback(se=>{if(!b.current)return;const H=b.current.clientWidth;let Y=(se-b.current.getBoundingClientRect().left)/H;y&&(Y=1-Y);let ie=(o-r)*Y+r;return ie=Math.max(r,Math.min(o,ie)),Fn(ie,s)},[o,r,y,s]),A=se=>(se-r)/(o-r)*100,q=c.useCallback((se,H)=>{if(!n)return;const K=H!=null&&H.commit?a:l;K==null||K({minValue:se,maxValue:m,name:t})},[m,t,n]),V=c.useCallback((se,H)=>{if(n){const Y=H!=null&&H.commit?a:l;Y==null||Y({minValue:v,maxValue:se,name:t});return}const K=H!=null&&H.commit?a:l;K==null||K({value:se,name:t})},[v,t,n]),L=({nativeEvent:se})=>{if(I)return;let H,K;const Y=Qo(se),ie=S(Y);[{ref:p,id:E},{ref:x,id:P}].forEach(G=>{if(!G.ref.current)return;const pe=G.ref.current,be=Math.abs(pe.getBoundingClientRect().left-Y);(H===void 0||be<=H)&&(H=be,K=G.id)}),!(!K||ie===void 0)&&(K===E&&q(ie),K===P&&V(ie),g(K))},Q=()=>{I||g(E)},fe=()=>{I||g(P)},ve=c.useCallback(()=>{w===E&&v!==void 0&&q(v,{commit:!0}),w===P&&V(m,{commit:!0}),g(null)},[v,m,q,V,w,E,P]),re=c.useCallback(se=>{if(!w)return;const H=Qo(se),K=S(H);if(K===void 0)return;let Y=w;w===E&&K>m&&(Y=P),w===P&&v&&K<v&&(Y=E),Y===E&&q(K),Y===P&&V(K),w!==Y&&g(Y)},[w,v,m,S,V,q,P,E]);c.useEffect(()=>(window.addEventListener("mouseup",ve),window.addEventListener("touchend",ve),window.addEventListener("mousemove",re),window.addEventListener("touchmove",re),()=>{window.removeEventListener("mouseup",ve),window.removeEventListener("touchend",ve),window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re)}),[ve,re]);const Z=v&&A(v),He=A(m);return i.jsxs("div",k(h({},_),{className:O,onMouseDown:L,onTouchStart:L,children:[i.jsx("div",{className:Qe.bar,ref:b,children:i.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Z||0}%`,width:`${He-(Z||0)}%`}})}),v!==void 0&&Z!==void 0&&i.jsx(Jo,{id:E,active:E===w,name:t,disabled:I,onChange:q,value:v,onDragStart:Q,position:Z,max:o,min:r,ref:p,renderValue:d}),i.jsx(Jo,{id:P,active:P===w,name:t,disabled:I,onChange:V,value:m,onDragStart:fe,position:He,max:o,min:r,ref:x,renderValue:d})]}))},Mi=e=>{const{min:t,max:n,onChange:o,range:r}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(r?n:t),[a,d]=c.useState(s),[f,_]=c.useState(l),v=b=>{r||(_(b.value),o==null||o(b))},m=b=>{r&&(d(b.minValue),_(b.maxValue),o==null||o(b))};return r?i.jsx(Ln,k(h({},e),{min:t,max:n,minValue:a,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):i.jsx(Ln,k(h({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:v}))},Si=e=>{const r=e,{min:t=0,max:n=100}=r,o=Fe(r,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(Ln,k(h({},o),{min:t,max:n})):i.jsx(Mi,k(h({},o),{min:t,max:n}))},ft={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"},Pi=e=>{var y;const{children:t,name:n,checked:o,size:r,reversed:s,defaultChecked:l,onChange:a,onFocus:d,onBlur:f,className:_,attributes:v}=e,m=M(ft.root,r&&ft[`root--size-${r}`],s&&ft["root--reversed"],_),b=Ye(),p=$e((b==null?void 0:b.attributes.id)||e.id||((y=e.inputAttributes)==null?void 0:y.id)),x=h(h({},e.inputAttributes),b==null?void 0:b.attributes),w=(b==null?void 0:b.disabled)||e.disabled,g=j=>{a&&a({name:n,event:j,checked:j.target.checked})};return i.jsxs("label",k(h({},v),{className:m,children:[i.jsx("input",k(h({type:"checkbox"},x),{className:ft.input,name:n,checked:o,defaultChecked:l,disabled:w,onChange:g,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:p})),i.jsx("span",{className:ft.area,"aria-hidden":"true",children:i.jsx("span",{className:ft.thumb})}),t&&i.jsx(te,{variant:"body-3",weight:"medium",children:t})]}))},Ai={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"},Fi=e=>{if(!e)return null;const t=ee("--rs-min-w",e);return{classNames:W(Ai,o=>typeof o=="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"},Zo=e=>{const{minWidth:t,rowSpan:n,colSpan:o,align:r,tagName:s,padding:l,paddingInline:a,paddingBlock:d,children:f,attributes:_}=e,v=e.width==="auto"?"0px":e.width,m=_n(v),b=Fi(t||v),p=M(Ze.cell,m==null?void 0:m.classNames,b==null?void 0:b.classNames,r&&Ze[`cell--align-${r}`]),x=h(h(h(h({},m==null?void 0:m.variables),b==null?void 0:b.variables),ee("--rs-table-p-vertical",d!=null?d:l)),ee("--rs-table-p-horizontal",a!=null?a:l));return i.jsx(s,k(h({},_),{className:p,rowSpan:n,colSpan:o,style:x,children:f}))},Li=e=>i.jsx(Zo,k(h({},e),{tagName:"td"})),Vi=e=>i.jsx(Zo,k(h({},e),{tagName:"th"})),Oi=e=>{const{highlighted:t,children:n,attributes:o}=e,r=M(Ze.row,t&&Ze["--row-highlighted"]);return i.jsx("tr",k(h({},o),{className:r,children:n}))},Vn=e=>i.jsx("tbody",{children:e.children}),er=e=>i.jsx("thead",{children:e.children}),vt=e=>{const{children:t,border:n,columnBorder:o,className:r,attributes:s}=e,l=M(Ze.root,r,n&&Ze["--border-outer"],o&&Ze["--border-column"]),[a]=c.Children.toArray(t);return i.jsx("div",k(h({},s),{className:l,children:i.jsx("table",{className:Ze.table,children:c.isValidElement(a)&&(a.type===Vn||a.type===er)?t:i.jsx(Vn,{children:t})})}))};vt.Cell=Li,vt.Heading=Vi,vt.Row=Oi,vt.Body=Vn,vt.Head=er;const tr=c.createContext({}),Di=tr.Provider,On=e=>{const o=c.useContext(tr),{id:t}=o,n=Fe(o,["id"]);return k(h({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},nr=e=>{const{children:t,value:n,onChange:o,onSilentChange:r,itemWidth:s,variant:l,name:a,direction:d="row",size:f="medium"}=e,_=$e(),v=c.useRef(null),m=c.useRef(v.current),b=c.useRef(null),[p,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),w=g=>{g!==void 0&&r&&r({value:g,name:a})};return i.jsx(Di,{value:{value:n,name:a,size:f,direction:d,itemWidth:s,variant:l,onChange:o,id:_,setDefaultValue:w,elActiveRef:v,elPrevActiveRef:m,elScrollableRef:b,selection:p,setSelection:x},children:t})},qi=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t),s=({value:a})=>{r(a),n&&n({value:a})},l=({value:a})=>{r(a)};return i.jsx(nr,k(h({},e),{onChange:s,onSilentChange:l,value:o,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"},Bi=(e,t)=>{const{value:n,children:o,icon:r,href:s,attributes:l}=e,{onChange:a,panelId:d,name:f,size:_,value:v,selection:m,elActiveRef:b,elPrevActiveRef:p,elScrollableRef:x}=On(n),w=c.useRef(null),g=v===n,y=g&&m.status==="idle",j=M(ne.item,y&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:g?0:-1,"aria-selected":g},E=c.useCallback(()=>{if(!("current"in w))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");p.current=b.current,b.current=w.current},[b,p]),P=()=>{var L,Q,fe;if(s&&!a)return;const I=x.current,O=(L=w.current)==null?void 0:L.parentElement,S=(Q=b.current)==null?void 0:Q.parentElement;if(E(),a&&a({value:n,name:f}),!I||!O||!S||I.scrollWidth===I.clientWidth)return;const A=O.offsetLeft<S.offsetLeft,q=(O.offsetLeft-I.scrollLeft)/I.clientWidth;(A?q<.3:q>.5)&&((fe=w.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{g&&E()},[g,E]),i.jsx("div",k(h({},l),{className:j,ref:w,role:"presentation",children:i.jsxs(Ve,{ref:t,href:s,insetFocus:!0,onClick:f?void 0:P,className:ne.button,as:f?"label":void 0,attributes:k(h({},!$&&z),{"aria-controls":d}),children:[f&&i.jsx(Mn,{type:"radio",name:f,value:n,checked:y,onChange:P,className:ne.radio}),i.jsxs("span",{className:ne.buttonContent,children:[r&&i.jsx(de,{svg:r,className:ne.icon,size:4}),o&&i.jsx(te,{variant:_==="large"?"body-2":"body-3",children:o})]})]})}))},or=c.forwardRef(Bi),rr=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:rr(e.parentElement,t),Wi=e=>{const{children:t,className:n,attributes:o}=e,{value:r,setDefaultValue:s,itemWidth:l,variant:a,name:d,direction:f,size:_,selection:v,setSelection:m,elActiveRef:b,elPrevActiveRef:p,elScrollableRef:x}=On(),[w]=Ge(),[g,y]=c.useState(null),j=M(ne.root,_&&ne[`--size-${_}`],f&&ne[`--direction-${f}`],l&&ne[`--item-width-${l}`],a&&ne[`--variant-${a}`],g&&ne[`--cut-off-${g}`],n),$=M(ne.selector,v.status==="idle"&&ne["--selector-hidden"],v.status==="animated"&&ne["--selector-animated"]),z=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(w?-1:1),behavior:"smooth"})},E=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(w?1:-1),behavior:"smooth"})},P=()=>{m(S=>k(h({},S),{status:"idle"}))},I=c.useCallback(S=>{if(!x.current)return null;const A=rr(S,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:O}=ot({"ArrowLeft, ArrowUp":S=>{d||(S.preventDefault(),Qr(x.current))},"ArrowRight, ArrowDown":S=>{d||(S.preventDefault(),Jr(x.current))},Home:S=>{d||(S.preventDefault(),Zr(x.current))},End:S=>{d||(S.preventDefault(),es(x.current))}});return ae(()=>{if(r)return;const S=c.Children.toArray(t)[0];!S||S.type!==or||s(S.props.value)},[r]),ae(()=>{if(!p.current||p.current===b.current)return;const S=I(p.current);S&&m(k(h({},S),{status:"prepared"}))},[r,I]),ae(()=>{if(v.status!=="prepared"||!b.current)return;const S=I(b.current);S&&m(k(h({},S),{status:"animated"}))},[v]),ae(()=>{const S=x.current;if(!S||f==="column")return;const A=()=>{S.clientWidth<S.scrollWidth||y(null);const L=S.scrollLeft*(w?-1:1),Q=L>1,fe=L+S.clientWidth<S.scrollWidth-1;if(fe&&Q)return y("both");if(Q)return y("start");if(fe)return y("end")},q=xr(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),S.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),S.removeEventListener("scroll",q)}},[w]),i.jsxs("div",k(h({},o),{className:j,children:[i.jsx("div",{className:ne.inner,ref:x,children:i.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(S,A)=>S?i.jsx("div",{className:ne.listItem,children:S},S.props.value||S.key||A):null),i.jsx("div",{onTransitionEnd:P,className:$,style:{"--rs-tab-selection-x":v.left,"--rs-tab-selection-y":v.top,"--rs-tab-selection-scale-x":v.scaleX,"--rs-tab-selection-scale-y":v.scaleY}})]})}),(g==="start"||g==="both")&&i.jsx("span",{className:ne.prev,children:i.jsx(je,{onClick:E,size:"small",icon:Vo,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(g==="end"||g==="both")&&i.jsx("span",{className:ne.next,children:i.jsx(je,{onClick:z,size:"small",icon:Jt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Hi=e=>{const{value:t,children:n}=e,{value:o,panelId:r,buttonId:s}=On(t),l=t===o,a=M(ne.panel,!l&&ne["--panel-hidden"]);return i.jsx("div",{className:a,tabIndex:0,role:"tabpanel",id:r,"aria-labelledby":s,children:l&&n})},on=e=>{const{value:t}=e;return t!==void 0?i.jsx(nr,h({},e)):i.jsx(qi,h({},e))};on.Item=or,on.List=Wi,on.Panel=Hi;const bt={root:"_root_16y23_1",input:"_input_16y23_5","--size-medium":"_--size-medium_16y23_1","--size-large":"_--size-large_16y23_1","--size-xlarge":"_--size-xlarge_16y23_1","--variant-faded":"_--variant-faded_16y23_69","--variant-headless":"_--variant-headless_16y23_80","--status-error":"_--status-error_16y23_87","--size-medium--m":"_--size-medium--m_16y23_1","--size-large--m":"_--size-large--m_16y23_1","--size-xlarge--m":"_--size-xlarge--m_16y23_1","--size-medium--l":"_--size-medium--l_16y23_1","--size-large--l":"_--size-large--l_16y23_1","--size-xlarge--l":"_--size-xlarge--l_16y23_1","--size-medium--xl":"_--size-medium--xl_16y23_1","--size-large--xl":"_--size-large--xl_16y23_1","--size-xlarge--xl":"_--size-xlarge--xl_16y23_1"},Ri=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:l,placeholder:a,size:d="medium",variant:f="outline",className:_,attributes:v}=e,m=Ye(),b=$e(e.id),p=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||b,x=(m==null?void 0:m.disabled)||e.disabled,w=(m==null?void 0:m.hasError)||e.hasError,g=h(h({},e.inputAttributes),m==null?void 0:m.attributes),y=M(bt.root,d&&W(bt,"--size",d),w&&bt["--status-error"],x&&bt["--disabled"],f&&bt[`--variant-${f}`],_),j=E=>{t&&t({name:r,value:E.target.value,event:E})};return i.jsx("div",k(h({},v),{className:y,children:i.jsx("textarea",k(h({},g),{className:bt.input,rows:3,disabled:x,name:r,placeholder:a,value:s,defaultValue:l,onChange:j,onFocus:n||(g==null?void 0:g.onFocus),onBlur:o||(g==null?void 0:g.onBlur),id:p}))}))},Dn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},qn=e=>{const{children:t,markerSlot:n,className:o,attributes:r}=e,s=n!==null,l=M(Dn.item,!s&&Dn["item--full-width"],o);return i.jsxs(U,{as:"li",direction:"row",align:"stretch",gap:3,attributes:r,className:l,children:[s&&i.jsx("span",{className:Dn.marker,children:n}),i.jsx(U.Item,{grow:!0,children:t})]})},sr=e=>{const{children:t,className:n,attributes:o}=e,r=M(n);return i.jsx("ul",k(h({},o),{className:r,children:c.Children.map(t,(s,l)=>(s==null?void 0:s.type)===qn?s:i.jsx(qn,{children:s},l))}))};sr.Item=qn;const Ui={root:"_root_9090g_1"},Ki=e=>{const{id:t,text:n,children:o,onOpen:r,onClose:s,position:l="bottom",active:a}=e;return i.jsxs(Xe,{id:t,active:a,position:l,onOpen:r,onClose:s,triggerType:"hover",children:[i.jsx(Xe.Trigger,{children:o}),i.jsx(Xe.Content,{children:i.jsx(ct,{colorMode:"inverted",children:i.jsx(te,{variant:"caption-1",className:Ui.root,children:n})})})]})},ht={m:660,l:900,xl:1280},ir={s:`(max-width: ${ht.m-1}px)`,m:`(min-width: ${ht.m}px) and (max-width: ${ht.l-1}px)`,l:`(min-width: ${ht.l}px) and (max-width: ${ht.xl-1}px)`,xl:`(min-width: ${ht.xl}px)`},Yi=e=>{const{defaultViewport:t}=c.useContext(jn),[n,o]=c.useState(t);return ae(()=>{const s=Object.keys(ir).map(l=>{const a=window.matchMedia(ir[l]);return{mq:a,handler:()=>a.matches&&o(l)}});return s.forEach(({handler:l,mq:a})=>{l(),a.addEventListener("change",l)}),()=>{s.forEach(({handler:l,mq:a})=>{a.removeEventListener("change",l)})}},[]),n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},Gi=e=>{const{w:t="auto",h:n=50,children:o}=e;return i.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:o})};N.Accordion=vn,N.ActionBar=qr,N.Actionable=Ve,N.Alert=Wr,N.Autocomplete=Mo,N.Avatar=Fs,N.Badge=Po,N.Breadcrumbs=Lo,N.Button=je,N.Card=Rs,N.Carousel=Us,N.Checkbox=Qs,N.CheckboxGroup=Xs,N.Container=ei,N.Dismissible=ti,N.Divider=Qn,N.DropdownMenu=ye,N.FormControl=Vt,N.Hidden=dn,N.HiddenVisually=oi,N.Hotkey=ri,N.Icon=de,N.Image=si,N.Link=Fo,N.Loader=Ao,N.MenuItem=Tn,N.Modal=An,N.Overlay=Ho,N.Placeholder=Gi,N.Popover=dt,N.Progress=ci,N.Radio=mi,N.RadioGroup=_i,N.Reshaped=ki,N.Scrim=Ni,N.Select=Ei,N.Skeleton=Ti,N.Slider=Si,N.Switch=Pi,N.Table=vt,N.Tabs=on,N.Text=te,N.TextArea=Ri,N.TextField=lo,N.Theme=ct,N.Timeline=sr,N.Tooltip=Ki,N.View=U,N.classNames=M,N.responsiveClassNames=W,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=ot,N.useIsomorphicLayoutEffect=ae,N.useRTL=Ge,N.useResponsiveClientValue=Yi,N.useScrollLock=Wo,N.useTheme=Eo,N.useToast=fi,N.useToggle=Sn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
27
|
+
Check the top-level render call using <`+T+">.")}return C}}function co(u,C){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var T=ra(C);if(lo[T])return;lo[T]=!0;var F="";u&&u._owner&&u._owner!==Hn.current&&(F=" It was passed a child from "+V(u._owner.type)+"."),pt(u),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,F),pt(null)}}function uo(u,C){{if(typeof u!="object")return;if(Ft(u))for(var T=0;T<u.length;T++){var F=u[T];Un(F)&&co(F,C)}else if(Un(u))u._store&&(u._store.validated=!0);else if(u){var R=y(u);if(typeof R=="function"&&R!==u.entries)for(var J=R.call(u),B;!(B=J.next()).done;)Un(B.value)&&co(B.value,C)}}}function oa(u){{var C=u.type;if(C==null||typeof C=="string")return;var T;if(typeof C=="function")T=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===d||C.$$typeof===v))T=C.propTypes;else return;if(T){var F=V(C);on(T,u.props,"prop",F,u)}else if(C.PropTypes!==void 0&&!Rn){Rn=!0;var R=V(C);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sa(u){{for(var C=Object.keys(u.props),T=0;T<C.length;T++){var F=C[T];if(F!=="children"&&F!=="key"){pt(u),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),pt(null);break}}u.ref!==null&&(pt(u),w("Invalid attribute `ref` supplied to `React.Fragment`."),pt(null))}}function _o(u,C,T,F,R,J){{var B=S(u);if(!B){var D="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(D+=" 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=na(R);be?D+=be:D+=ao();var re;u===null?re="null":Ft(u)?re="array":u!==void 0&&u.$$typeof===t?(re="<"+(V(u.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):re=typeof u,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,D)}var ae=ta(u,C,T,R,J);if(ae==null)return ae;if(B){var Ne=C.children;if(Ne!==void 0)if(F)if(Ft(Ne)){for(var xt=0;xt<Ne.length;xt++)uo(Ne[xt],u);Object.freeze&&Object.freeze(Ne)}else w("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 uo(Ne,u)}return u===r?sa(ae):oa(ae),ae}}function ia(u,C,T){return _o(u,C,T,!0)}function aa(u,C,T){return _o(u,C,T,!1)}var la=aa,ca=ia;yt.Fragment=r,yt.jsx=la,yt.jsxs=ca}()),yt}process.env.NODE_ENV==="production"?xe.exports=go():xe.exports=bo();var i=xe.exports;const Gn=(e,t=20)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}};function po(e,t){const n=Gn(e,t);return r=>("persist"in r&&r.persist(),n(r))}const xo=(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},""),Xn=(e,t,n)=>{const{base:r,excludeValueFromClassName:o}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&r||o?s:t===!0&&!r?`${s}-true`:t===!1&&!r?`${s}-false`:t!==void 0?`${s}-${t}`:null},W=(e,t,n,r)=>{if(typeof n!="object"){const o=Xn(t,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return o?[e[o]]:[]}return Object.keys(n).reduce((o,s)=>{const a=s==="s",l=Xn(t,n[s],{base:a,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=a?"":`--${s}`;return[...o,e[`${l}${d}`]]},[])},ee=(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:k(g({},n),{[`${e}-${r}`]:o})},{}),wo=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>wo(e)?Object.keys(e).reduce((r,o)=>{const s=e[o];return s==null?r:k(g({},r),{[o]:t(s,o)})},{}):t(e,"s"),$e=e=>{const t=c.useId();return e||t},ln=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),Jn=e=>{const{children:t,onToggle:n,active:r,iconPosition:o,iconSize:s,className:a,attributes:l}=e,d=M(a),f=$e(),_=c.useMemo(()=>({triggerId:`${f}-trigger`,contentId:`${f}-content`,active:r,onToggle:n,iconPosition:o,iconSize:s}),[r]);return i.jsx("div",k(g({},l),{className:d,children:i.jsx(ln.Provider,{value:_,children:t})}))},yo=e=>{const l=e,{defaultActive:t,onToggle:n}=l,r=Fe(l,["defaultActive","onToggle"]),[o,s]=c.useState(t||!1),a=d=>{s(d),n==null||n(d)};return i.jsx(Jn,k(g({},r),{onToggle:a,active:o}))},jt={root:"_root_1e7nv_1","--disabled":"_--disabled_1e7nv_28","--full-width":"_--full-width_1e7nv_37","--inset":"_--inset_1e7nv_45","--radius-inherit":"_--radius-inherit_1e7nv_49"},jo=(e,t)=>{const{children:n,href:r,onClick:o,type:s,disabled:a,insetFocus:l,borderRadius:d,as:f,fullWidth:_,className:v,attributes:m}=e,h=M(jt.root,v,a&&jt["--disabled"],d&&jt[`--radius-${d}`],l&&jt["--inset"],_&&jt["--full-width"]),p=g({},m),x=c.useRef(!1),y=o||(m==null?void 0:m.onClick),b=(m==null?void 0:m.onFocus)||(m==null?void 0:m.onBlur),w=!!(r||m!=null&&m.href),j=!!(y||b||s);let $;if(w)p.href=a?void 0:r||(m==null?void 0:m.href),$="a";else if(j&&(!f||f==="button"))$="button",p.type=s||(m==null?void 0:m.type)||"button",p.disabled=a||(m==null?void 0:m.disabled);else if(j){const O=!(f==="label")||y||b;$=f||"span",p.role=O?"button":void 0,p.tabIndex=O?0:void 0}else $=f||"span";const z=I=>{var O;a||x.current||(o==null||o(I),(O=m==null?void 0:m.onClick)==null||O.call(m,I))},E=I=>{if(p.role==="button"||w)return;const S=I.key===" ",A=I.key==="Enter";!S&&!A||(I.preventDefault(),z(I),x.current=!0)},P=()=>{x.current=!1};return i.jsx($,k(g({ref:t},p),{className:h,onClick:z,onKeyDown:E,onKeyUp:P,children:n}))},Ve=c.forwardRef(jo),cn={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"},Qn=e=>{const{vertical:t,blank:n,className:r,attributes:o}=e,s=M(cn.root,r,n&&cn["--blank"],...W(cn,"--vertical",t));let a;return(typeof t=="boolean"||t===void 0)&&(a=t?"vertical":"horizontal"),i.jsx("div",k(g({},o),{role:"separator","aria-orientation":a,className:s}))},Lt={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"},dn=e=>{const{as:t="div",children:n,visibility:r,hide:o,displayStyle:s}=e,a=M(Lt.root,...W(Lt,"--hidden",o),r&&Lt["--visibility"],s&&Lt[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(a)}):i.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"},Zn={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"},un=e=>e?{classNames:[Zn.root,...W(Zn,"--radius",e)]}:null,er={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"},tr=e=>{if(e===void 0)return null;const t=[er.root,...W(er,"--bleed",Le(e,r=>typeof r=="number"&&r>0))],n=ee("--rs-bleed",e);return{classNames:t,variables:n}},Co={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"},_n=e=>{if(!e)return null;const t=ee("--rs-w",e);return{classNames:W(Co,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ko={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=ee("--rs-h",e);return{classNames:W(ko,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},No={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"},$o=e=>{if(!e)return null;const t=ee("--rs-max-w",e);return{classNames:W(No,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},Eo={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"},zo=e=>{if(!e)return null;const t=ee("--rs-max-h",e);return{classNames:W(Eo,r=>typeof r=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},To={"--position-relative":"_--position-relative_eidrq_1","--position-absolute":"_--position-absolute_eidrq_1","--position-fixed":"_--position-fixed_eidrq_1","--position-sticky":"_--position-sticky_eidrq_1","--position-relative--m":"_--position-relative--m_eidrq_1","--position-absolute--m":"_--position-absolute--m_eidrq_1","--position-fixed--m":"_--position-fixed--m_eidrq_1","--position-sticky--m":"_--position-sticky--m_eidrq_1","--position-relative--l":"_--position-relative--l_eidrq_1","--position-absolute--l":"_--position-absolute--l_eidrq_1","--position-fixed--l":"_--position-fixed--l_eidrq_1","--position-sticky--l":"_--position-sticky--l_eidrq_1","--position-relative--xl":"_--position-relative--xl_eidrq_1","--position-absolute--xl":"_--position-absolute--xl_eidrq_1","--position-fixed--xl":"_--position-fixed--xl_eidrq_1","--position-sticky--xl":"_--position-sticky--xl_eidrq_1"},Io=e=>e?{classNames:W(To,"--position",e)}:null,Mo={"--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=ee(r,e);return{classNames:W(Mo,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:o}},So={root:"_root_i342i_1"},Po=e=>{if(!e)return null;const t=ee("--rs-ratio",e);return{classNames:So.root,variables:t}},nr=e=>{const{columns:t,grow:n,gapBefore:r,as:o="div",order:s,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"],...W(K,"item--grow",n),...W(K,"item--columns",t)),_=g(g({},ee("--rs-view-item-order",s)),ee("--rs-view-item-gap-before",r));return i.jsx(o,k(g({},d),{style:g(g({},d==null?void 0:d.style),_),className:f,children:a}))},U=e=>{const{align:t,justify:n,wrap:r,gap:o,height:s,width:a,aspectRatio:l,maxHeight:d,maxWidth:f,padding:_,paddingInline:v,paddingBlock:m,paddingBottom:h,paddingEnd:p,paddingStart:x,paddingTop:y,bleed:b,animated:w,backgroundColor:j,borderColor:$,borderRadius:z,shadow:E,textAlign:P,overflow:I,position:O="relative",inset:S,insetTop:A,insetBottom:q,insetStart:V,insetEnd:L,zIndex:Q,grow:fe,as:ve="div",children:oe,divided:Z,className:He,attributes:Ce}=e,se=!!t||!!n||!!o||!!e.direction,H=e.direction||(se?"column":void 0),Y=un(z),G=tr(b),ie=_n(a),ye=Ct(s),X=$o(f),pe=zo(d),he=Io(O),Me=kt(S),Re=kt(A,"top"),et=kt(q,"bottom"),tt=kt(V,"start"),Se=kt(L,"end"),Pe=Po(l);let At=0,st;const bt=({className:ge,key:ue})=>{const qe=M(K.divider,ge);let me=!1;return typeof H=="string"&&H.startsWith("row")?me=!0:H&&(me=Object.keys(H).reduce((Ue,ke)=>{const Ae=H[ke];return Ae?k(g({},Ue),{[ke]:Ae.startsWith("row")}):Ue},{})),i.jsx("div",{className:qe,children:i.jsx(Qn,{vertical:me,blank:!0})},`${ue}-divider`)},on=({className:ge,child:ue,index:qe})=>{var Ae,sn;const me=ue.type===nr,it=ue.key||qe,Ue=!!qe&&Z&&bt({className:ge,key:it});let ke;return me?ke=c.cloneElement(ue,{className:M(ge,ue.props.className)}):ge||!c.isValidElement(ue)?ke=i.jsx("div",{className:ge,children:ue},it):ke=ue,me&&((Ae=ue.props)!=null&&Ae.grow)&&(st=ue.props.grow),me&&((sn=ue.props)==null?void 0:sn.gap)==="auto"&&(st=!0),[Ue,ke]},Bn=c.Children.map(oe,(ge,ue)=>{if(!ge)return null;const qe=At;if(At+=1,ge.type===dn&&typeof ge.props.children!="function"){const me=ge.props,{children:it}=me,Ue=Fe(me,["children"]),ke=ge.key||ue;return c.createElement(dn,k(g({},Ue),{key:ke}),Ae=>on({className:Ae,child:it,index:qe}))}return on({child:ge,index:qe})}),Ft=M(K.root,He,Y==null?void 0:Y.classNames,he==null?void 0:he.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,P&&K[`--align-text-${P}`],j&&K[`--bg-${j}`],$&&K[`--bd-${$}`],$&&K["--bd"],E&&K[`--shadow-${E}`],I&&K[`--overflow-${I}`],w&&K["--animated"],Z&&K["--divided"],(_!==void 0||v!==void 0||m!==void 0)&&K["--padding"],h!==void 0&&K["--padding-bottom"],p!==void 0&&K["--padding-end"],x!==void 0&&K["--padding-start"],y!==void 0&&K["--padding-top"],(se||st)&&K["--flex"],...W(K,"--direction",H),...W(K,"--align",t),...W(K,"--justify",n),...W(K,"--nowrap",st||r===!1),...W(K,"--wrap",r),...W(K,"item--grow",fe)),Wn=g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g(g({},Ce==null?void 0:Ce.style),ee("--rs-view-gap",o)),ee("--rs-view-p-vertical",m||_)),ee("--rs-view-p-horizontal",v||_)),ee("--rs-view-p-bottom",h)),ee("--rs-view-p-top",y)),ee("--rs-view-p-start",x)),ee("--rs-view-p-end",p)),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),Q?{"--rs-view-z":Q}:{});return i.jsx(ve,k(g({},Ce),{className:Ft,style:Wn,children:Bn}))};U.Item=nr;const mn={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"},de=e=>{const{svg:t,className:n,color:r,size:o="1em",autoWidth:s,attributes:a}=e,l=Ct(o),d=M(mn.root,n,l==null?void 0:l.classNames,r&&mn[`--color-${r}`],s&&mn["--auto"]),f=typeof t=="object"?t:i.jsx(t,{}),_=g(g({},a==null?void 0:a.style),l==null?void 0:l.variables);return i.jsx("span",k(g({},a),{"aria-hidden":"true",className:d,style:_,children:c.cloneElement(f,{focusable:!1})}))},Ao=()=>i.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:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),Nt={content:"_content_fcvpf_1","content--animated":"_content--animated_fcvpf_6",icon:"_icon_fcvpf_13","icon--active":"_icon--active_fcvpf_17"},Fo=e=>{const{children:t}=e,{active:n,onToggle:r,triggerId:o,contentId:s,iconPosition:a="end",iconSize:l}=c.useContext(ln),d=M(Nt.icon,n&&Nt["icon--active"]),f=()=>{r==null||r(!n)},_={"aria-expanded":n,"aria-controls":s,id:o};return typeof t=="function"?i.jsx(i.Fragment,{children:t(k(g({},_),{onClick:f}),{active:n})}):i.jsx(Ve,{onClick:f,fullWidth:!0,attributes:_,children:i.jsxs(U,{gap:2,direction:a==="start"?"row-reverse":"row",align:"center",children:[i.jsx(U.Item,{grow:!0,children:t}),i.jsx(de,{size:l||4,svg:Ao,className:d})]})})},$t=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},fn="data-rs-no-transition",Lo=()=>{document.documentElement.setAttribute(fn,"true")},Vo=()=>{document.documentElement.removeAttribute(fn)},Oo=()=>!document.documentElement.hasAttribute(fn),Do=e=>{const{children:t}=e,{active:n,triggerId:r,contentId:o}=c.useContext(ln),s=c.useRef(null),a=c.useRef(!1),[l,d]=c.useState(n?"auto":null),f=M(Nt.content,a.current&&l!=="auto"&&Nt["content--animated"],n&&Nt["content--active"]),_=v=>{v.propertyName==="height"&&d(n?"auto":null)};return c.useEffect(()=>{$t(()=>{a.current=!0})},[]),c.useEffect(()=>{const v=s.current;if(!v||!a.current)return;let m=0;n&&(v.style.height="auto",m=v.clientHeight,v.style.height="0"),n||(v.style.height=`${v.clientHeight}px`),d(m)},[n]),i.jsx("div",{className:f,ref:s,style:l!==null?{height:l}:void 0,onTransitionEnd:_,"aria-labelledby":r,id:o,role:"region",hidden:!n&&l===null,children:t})},vn=e=>{const{active:t}=e;return t!==void 0?i.jsx(Jn,g({},e)):i.jsx(yo,g({},e))};vn.Trigger=Fo,vn.Content=Do;const hn={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},qo=e=>{const{position:t="bottom",padding:n,paddingBlock:r=3,paddingInline:o=4,children:s,elevated:a,className:l,attributes:d}=e,f=M(hn.root,a&&hn["--elevated"],t&&hn[`--position-${t}`],l);return i.jsx(U,{className:f,attributes:d,paddingBlock:n||r,paddingInline:n||o,children:s})},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"},Bo={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},te=e=>{const{variant:t,color:n,weight:r,align:o,decoration:s,maxLines:a,children:l,className:d,attributes:f}=e,_=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),v=e.as||_&&Bo[_]||"div",m=M(nt.root,n&&nt[`--color-${n}`],...W(nt,"--variant",t),...W(nt,"--align",o),r&&nt[`--weight-${r}`],s&&nt[`--decoration-${s}`],a!==void 0&&nt["--clamp"],d),h=k(g({},f==null?void 0:f.style),{"--rs-text-lines":a});return i.jsx(v,k(g({},f),{className:m,style:h,children:l}))},Wo=e=>{const{title:t,children:n,icon:r,actionsSlot:o,color:s="neutral",inline:a,bleed:l,className:d,attributes:f}=e,_=s==="neutral",v=()=>a?i.jsxs(i.Fragment,{children:[t&&i.jsx(te,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(te,{variant:"body-3",as:"span",children:n})]}):i.jsxs(U,{gap:1,children:[t&&i.jsx(te,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(te,{variant:"body-3",children:n})]}),m=h=>o?i.jsxs(U,{gap:2,direction:a?"row":"column",children:[a?i.jsx(U.Item,{grow:!0,children:h}):h,o&&i.jsx(te,{variant:"body-3",weight:"medium",children:i.jsx(U,{direction:"row",gap:3,children:o})})]}):h;return i.jsx(U,{direction:"row",gap:3,padding:4,bleed:l,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:k(g({},f),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx(de,{svg:r,size:5,color:_?"primary":s}),i.jsx(U.Item,{grow:!0,children:m(v())})]}):m(v())})},rr=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ho=rr.Provider,Et=()=>c.useContext(rr),Ye=()=>{const{attributes:e,required:t,hasError:n,disabled:r}=Et();return{attributes:e,required:t,hasError:n,disabled:r}},or={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},gn=(e,t)=>`${e}-${t||"caption"}`,Vt=e=>{const{children:t,id:n,required:r,hasError:o,group:s,disabled:a,size:l}=e,d=$e(n),f=s?"fieldset":"div",[_,v]=c.useState(!1),[m,h]=c.useState(!1),p=[_&&gn(d),m&&gn(d,"error")].filter(Boolean).join(" "),x={id:d,"aria-describedby":p},y=()=>{h(!0)},b=()=>{v(!0)};return i.jsx(f,{children:i.jsx(Ho,{value:{required:r,hasError:o,errorRef:y,helperRef:b,attributes:x,group:s,disabled:a,size:l},children:t})})},Ro=e=>{const{children:t}=e,{attributes:n,required:r,group:o,disabled:s,size:a}=Et(),l=`${n.id}-label`,d=o?{as:"legend",attributes:{id:l}}:{as:"label",attributes:{id:l,htmlFor:n.id}};return i.jsxs(te,k(g({},d),{variant:a==="large"?"body-2":"body-3",weight:"medium",className:or.label,color:s?"disabled":void 0,children:[t,r&&i.jsx(te,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},sr=e=>{const{children:t,variant:n,disabled:r}=e,{attributes:o,size:s,helperRef:a,errorRef:l}=Et(),d=gn(o.id,n),f=n==="error"?"critical":"neutral-faded",_=n==="error"?l:a;return i.jsx(te,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!n?"disabled":f,attributes:{id:d,role:f?"alert":void 0,ref:_},className:or.caption,children:t})},Uo=e=>{const{children:t}=e,{disabled:n}=Et();return i.jsx(sr,{disabled:n,children:t})},Ko=e=>{const{children:t}=e,{hasError:n}=Et();return n?i.jsx(sr,{variant:"error",children:t}):null};Vt.Label=Ro,Vt.Helper=Uo,Vt.Error=Ko;const Ee={root:"_root_v29im_1",input:"_input_v29im_16",slot:"_slot_v29im_37",icon:"_icon_v29im_38",affix:"_affix_v29im_39",attachment:"_attachment_v29im_55","attachment--position-start":"_attachment--position-start_v29im_60","attachment--position-end":"_attachment--position-end_v29im_73","--disabled":"_--disabled_v29im_86","--size-medium":"_--size-medium_v29im_1","--size-large":"_--size-large_v29im_1","--size-xlarge":"_--size-xlarge_v29im_1","--variant-faded":"_--variant-faded_v29im_150","--variant-headless":"_--variant-headless_v29im_159","--status-error":"_--status-error_v29im_164","--size-medium--m":"_--size-medium--m_v29im_1","--size-large--m":"_--size-large--m_v29im_1","--size-xlarge--m":"_--size-xlarge--m_v29im_1","--size-medium--l":"_--size-medium--l_v29im_1","--size-large--l":"_--size-large--l_v29im_1","--size-xlarge--l":"_--size-xlarge--l_v29im_1","--size-medium--xl":"_--size-medium--xl_v29im_1","--size-large--xl":"_--size-large--xl_v29im_1","--size-xlarge--xl":"_--size-xlarge--xl_v29im_1"},ir=e=>{const{slot:t,icon:n,size:r,affix:o,position:s}=e;if(!n&&!t&&!o)return null;const a=M(Ee.attachment,Ee[`attachment--position-${s}`]),l=[t&&i.jsx("div",{className:Ee.slot,children:t},"slot"),n&&i.jsx("div",{className:Ee.icon,children:i.jsx(de,{size:Le(r,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),o&&i.jsx("div",{className:Ee.affix,children:o},"affix")].filter(Boolean);return i.jsx("span",{className:a,children:s==="end"?l.reverse():l})},ar=e=>{var S;const{onChange:t,onFocus:n,onBlur:r,name:o,value:s,defaultValue:a,placeholder:l,icon:d,endIcon:f,startSlot:_,endSlot:v,prefix:m,suffix:h,size:p="medium",variant:x="outline",className:y,attributes:b}=e,w=Ye(),j=$e(e.id),$=(w==null?void 0:w.attributes.id)||((S=e.inputAttributes)==null?void 0:S.id)||j,z=(w==null?void 0:w.disabled)||e.disabled,E=(w==null?void 0:w.hasError)||e.hasError,P=g(g({},e.inputAttributes),w==null?void 0:w.attributes),I=M(Ee.root,y,p&&W(Ee,"--size",p),E&&Ee["--status-error"],z&&Ee["--disabled"],x&&Ee[`--variant-${x}`]),O=A=>{t&&t({name:o,value:A.target.value,event:A})};return i.jsxs("div",k(g({},b),{className:I,children:[i.jsx(ir,{position:"start",icon:d,slot:_,size:p,affix:m}),i.jsx("input",k(g({},P),{className:Ee.input,disabled:z,name:o,placeholder:l,value:s,defaultValue:a,onChange:O,onFocus:n||(P==null?void 0:P.onFocus),onBlur:r||(P==null?void 0:P.onBlur),id:$})),i.jsx(ir,{position:"end",icon:f,slot:v,size:p,affix:h})]}))},Yo="Enter",Go="Tab",lr="ArrowUp",cr="ArrowDown",dr="ArrowRight",ur="ArrowLeft",bn="data-rs-keyboard",Ot="data-rs-focus";class Xo{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),s=n.nextId,a=s&&this.get(s);o&&(o.nextId=(d=n.nextId)!=null?d:null),a&&(a.previousId=(f=n.previousId)!=null?f:null),s||(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 _r=()=>document.documentElement.hasAttribute(bn),mr='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Dt=()=>document.querySelector(`[${Ot}]`)||document.activeElement,pn=(e,t)=>{const r=Array.from(e.querySelectorAll(mr)).filter(o=>!o.hasAttribute("disabled")&&o.clientHeight>0);return t&&r.length&&r.unshift(t),r},fr=e=>{const{root:t,extraElement:n,target:r,mode:o}=e,s=pn(t,n),a=s.length-1,l=Dt(),d=s.indexOf(l),f={next:d+1,prev:d-1,first:0,last:a};let _=f[r];const v=_>a||_<0;return v&&(o==="action-menu"?_=r==="prev"?f.first:f.last:_=r==="prev"?f.last:f.first),{overflow:v,el:s[_]}},qt=(e,t)=>{var n;(n=document.querySelector(`[${Ot}]`))==null||n.removeAttribute(Ot),t==="selection-menu"?e.setAttribute(Ot,"true"):e.focus()},Bt=(e,t)=>{const n=fr({root:e,target:t});qt(n.el)},Jo=e=>Bt(e,"next"),Qo=e=>Bt(e,"prev"),Zo=e=>Bt(e,"first"),es=e=>Bt(e,"last"),ts=(()=>{let e=[];const t=r=>{let o=r.parentNode&&r.parentNode.firstChild;for(;o;){const s=o!==r,a=o.nodeType===1&&!o.hasAttribute("aria-hidden");s&&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}}})(),Wt=(()=>{let e=null,t=null;const n=new Xo;return(r,o={})=>{const{mode:s="dialog",onNavigateOutside:a,includeTrigger:l}=o,d=Dt(),f=s==="dialog",_=s==="content-menu",v=s==="selection-menu",m=f||_,h=s==="action-menu"||v,p=pn(r,l?d:void 0);let x;const y=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const $=pn(r,l?d:void 0);$.length&&qt($[0],s)}),b=($={})=>{const{withoutFocusReturn:z}=$;n.removePreviousTill(x,P=>document.body.contains(P.data.trigger)),y.disconnect(),d&&d.focus({preventScroll:z||!_r()}),e&&(e(),t&&t.release(),e=null,t=null);const E=n.tailId&&n.get(n.tailId);E&&Wt(E.data.root,E.data.options)},w=$=>{const z=$.key,E=z===Go,P=E&&!$.shiftKey,I=E&&$.shiftKey,O=h&&z===lr,S=h&&z===cr,A=I&&m||O,q=P&&m||S,V=Dt()===d,L=fr({root:r,target:A?"prev":"next",extraElement:l?d:void 0,mode:s});if(E&&h||_&&E&&L.overflow){I&&!V&&$.preventDefault(),b(),a==null||a();return}!A&&!q||($.preventDefault(),L.el&&qt(L.el,s))};if(e&&e(),f&&(t=ts(r)),y.observe(r,{childList:!0,subtree:!0}),!p.length)return null;document.addEventListener("keydown",w),e=()=>document.removeEventListener("keydown",w);const j=n.tailId&&n.get(n.tailId);return(!j||r!==j.data.root)&&(x=n.add({root:r,trigger:d,options:o}),qt(p[0],s)),b}})(),ns=100,rs=150;let at={},Oe=null;const vr=e=>{at[e]&&(e===Oe&&(Oe=at[e].parentId),delete at[e],Oe===null&&(at={}))},os=(e,t,n)=>{var s;const r=Oe?at[Oe]:void 0;!((n==null?void 0:n.current)&&r&&((s=r.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&Oe&&vr(Oe),at[e]={parentId:Oe,triggerRef:n,contentRef:t},Oe=e},hr=(e=!1,t,n)=>{const r=$e(),o=c.useCallback(()=>Oe===r,[r]);return c.useEffect(()=>{e?os(r,t,n):vr(r)},[e,r,t,n]),o},le=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,lt="+",ze={},xn=[],gr=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),wn=e=>gr(e).split(lt).sort().join(lt),br=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ss=e=>{const t=[],n=e.join(lt),o=wn(n).split(lt),s=(a,l)=>{l.forEach((d,f)=>{const _=a?`${a}+${d}`:d;t.push(_),s(_,l.slice(f+1))})};return s("",o),t},is=(e,t)=>{const n=Object.keys(e);n.length&&ss(n).forEach(r=>{t(r)})},yn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(r=>{const o=e[n];o&&t(wn(r),o)})})};class as{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{yn(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=>{yn(t,(n,r)=>{var o,s;r&&((o=this.hotkeyMap[n])==null||o.data.forEach(a=>{a.callback===r&&this.hotkeyMap[n].data.delete(a)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{is(t,r=>{const o=this.hotkeyMap[r];!o||o.used||o!=null&&o.data.size&&o.data.forEach(s=>{var a;(a=s.ref)!=null&&a.current&&!(n.target===s.ref.current||s.ref.current.contains(n.target))||(s.callback(t[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=t=>{const n=wn(t.key);yn(this.hotkeyMap,(r,o)=>{r.split(lt).includes(n)&&(o.used=!1)})}}}const Ht=new as,pr=c.createContext({}),ls=e=>{const{children:t}=e,[n,r]=c.useState(0),[o,s]=c.useState(0),a=c.useCallback(m=>{if(m.repeat||o===0)return;const h=br(m);h&&(ze[h]=m,(h==="meta"||h==="control")&&(ze.mod=m),r(Object.keys(ze).length),h==="meta"&&xn.push(...Object.keys(ze)),ze.Meta&&xn.push(h))},[o]),l=c.useCallback(m=>{if(o===0)return;const h=br(m);h&&(delete ze[h],(h==="meta"||h==="control")&&delete ze.mod,h==="meta"&&xn.forEach(p=>{delete ze[p]}),r(Object.keys(ze).length))},[o]),d=m=>!gr(m).split(lt).some(p=>!ze[p]),f=c.useCallback((m,h)=>(s(p=>p+1),Ht.bindHotkeys(m,h),()=>{s(p=>p-1),Ht.unbindHotkeys(m)}),[]),_=c.useCallback(m=>{m.key&&(a(m),Ht.handleKeyDown(ze,m))},[a]),v=c.useCallback(m=>{m.key&&(l(m),Ht.handleKeyUp(m))},[l]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",v),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",v)}),[_,v]),i.jsx(pr.Provider,{value:{addHotkeys:f,isPressed:d},children:t})},cs=()=>c.useContext(pr),rt=(e,t=[],n)=>{const{addHotkeys:r,isPressed:o}=cs(),s=c.useRef(null),a=(n==null?void 0:n.ref)||s;return c.useEffect(()=>{const l=r(e,a);return()=>l==null?void 0:l()},[r,Object.keys(e).join(","),...t]),{ref:a,checkHotkeyState:o}},jn=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ds=e=>{const t=c.useState(e||!1),[n,r]=t;return le(()=>{const o=new MutationObserver(s=>{s.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]),le(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},Ge=()=>c.useContext(jn).rtl,Cn=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:Cn(e.parentElement)},xr=16,Rt=["top-start","top","top-end"],Ut=["bottom-start","bottom","bottom-end"],Kt=["start","start-bottom","start-top"],Yt=["end","end-bottom","end-top"],us={top:[...Rt,...Ut,...Yt,...Kt],bottom:[...Ut,...Rt,...Yt,...Kt],start:[...Kt,...Yt,...Rt,...Ut],end:[...Yt,...Kt,...Rt,...Ut]},_s=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,wr=(e,t)=>Math.floor(e/2-t/2),ms=e=>{const n=["top","bottom","start","end"].find(r=>e.startsWith(r))||"bottom";return us[n]},kn=e=>{const t=document.documentElement,n=t.scrollLeft,r=n+t.clientWidth,o=t.scrollTop,s=o+t.clientHeight;return e.left>=n&&e.left+e.width<=r&&e.top>=o&&e.top+e.height<=s},yr=(e,t,n,r)=>{const{position:o,rtl:s,width:a}=r;let l=0,d=0,f=o;switch(s&&(f=_s(f)),(a==="full"||a==="trigger")&&(f=f.includes("top")?"top":"bottom"),f){case"bottom":case"top":l=wr(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=wr(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 _=Math.ceil(t.width);const v=Math.ceil(t.height);return a==="full"?(l=xr,_=window.innerWidth-xr*2):a==="trigger"&&(_=e.width),{styles:{left:l,top:d,width:_,height:v},position:f}},jr={left:0,top:0,width:"auto",height:"auto",position:"absolute",zIndex:"var(--rs-z-index-flyout)"},Nn={left:0,top:0,position:"fixed",opacity:0,animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},fs=(e,t,n)=>{const{position:r,forcePosition:o,width:s}=n,a=t.cloneNode(!0),l=e.getBoundingClientRect();a.style="",Object.keys(Nn).forEach(h=>{const p=Nn[h];a.style[h]=p.toString()}),s&&(s==="trigger"?a.style.width=`${l.width}px`:s!=="full"&&(a.style.width=s)),document.body.appendChild(a);const d=a.getBoundingClientRect(),f=Cn(e),_=f.getBoundingClientRect(),v={top:_.top+document.documentElement.scrollTop-f.scrollTop,left:_.left+document.documentElement.scrollLeft-f.scrollLeft};let m=yr(l,d,v,n);if(!kn(m.styles)&&!o){const h=ms(r),p=h.filter(y=>y==="top"||y==="bottom"),x=(y,b={})=>{const{fullWidth:w}=b;y.some(j=>{const $=k(g({},n),{width:w?"full":n.width,position:j}),z=yr(l,d,v,$);return kn(z.styles)?(m=z,!0):!1})};x(h),kn(m.styles)||x(p,{fullWidth:!0})}return a.parentNode.removeChild(a),m},vs=(e,t)=>{switch(t.type){case"render":return k(g({},e),{status:"rendered",styles:{pointerEvents:"none"}});case"position":return k(g({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:g(g({},jr),t.payload.styles)});case"show":return k(g({},e),{status:"visible"});case"hide":return k(g({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return k(g({},e),{status:"idle",styles:Nn});default:throw new Error("Invalid reducer type")}},hs=(e,t,n)=>{const{position:r="bottom",forcePosition:o,width:s}=n,[a]=Ge(),[l,d]=c.useReducer(vs,{position:r,styles:jr,status:"idle"}),f=c.useCallback(()=>{d({type:"render"})},[]),_=c.useCallback(()=>{d({type:"show"})},[]),v=c.useCallback(()=>{d({type:"hide"})},[]),m=c.useCallback(()=>{d({type:"remove"})},[]),h=c.useCallback(()=>{if(!e.current||!t.current)return;const p=fs(e.current,t.current,{width:s,position:r,forcePosition:o,rtl:a});d({type:"position",payload:p})},[e,t,r,a,o,s]);return c.useEffect(()=>{l.status==="rendered"&&h(),l.status==="positioned"&&$t(()=>_())},[l.status,h,_]),c.useMemo(()=>({position:l.position,styles:l.styles,status:l.status,updatePosition:h,render:f,hide:v,remove:m}),[f,h,v,m,l.position,l.styles,l.status])},gs=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=r=>{let o=!1;e.forEach(s=>{(!s.current||s.current===r.target||s.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])},Cr=c.createContext({}),Gt=()=>c.useContext(Cr),bs=Cr.Provider,kr=e=>{const{triggerType:t="click",onOpen:n,onClose:r,children:o,forcePosition:s,trapFocusMode:a,width:l,disableHideAnimation:d,contentGap:f,contentClassName:_,contentAttributes:v,position:m,active:h,id:p,instanceRef:x}=e,[y]=Ge(),b=c.useRef(null),w=c.useRef(null),j=$e(p),$=c.useRef(),z=c.useRef(null),E=c.useRef(!1),P=c.useRef(!1),I=c.useRef(!0),O=hs(b,w,{width:l,position:m,defaultActive:h,forcePosition:s}),S=Gt(),{status:A,updatePosition:q,render:V,hide:L,remove:Q}=O,fe=hr(t!=="hover"&&A!=="idle",w,b),ve=c.useCallback(()=>{$.current&&clearTimeout($.current)},[$]),oe=c.useCallback(()=>{!E.current&&A==="idle"&&(n==null||n())},[A]),Z=c.useCallback(X=>{var Me;!(t==="click"&&!fe())&&A!=="idle"&&(r==null||r(),X!=null&&X.closeParents&&((Me=S==null?void 0:S.handleClose)==null||Me.call(S)))},[A,fe,t]),He=c.useCallback(X=>{var he;(he=w.current)!=null&&he.contains(X.relatedTarget)||t==="hover"&&a==="content-menu"||P.current||Z()},[Z,t,a]),Ce=c.useCallback(()=>{oe()},[oe]),se=c.useCallback(()=>{ve(),$.current=setTimeout(oe,ns)},[ve,$,oe]),H=c.useCallback(()=>{ve(),$.current=setTimeout(()=>Z(),rs)},[ve,$,Z]),Y=c.useCallback(()=>{A==="idle"?oe():Z()},[A,oe,Z]),G=()=>P.current=!0,ie=()=>P.current=!1;le(()=>{if(h){V();return}Oo()&&!d?L():Q()},[h,V,L,d]);const ye=c.useCallback(X=>{w.current!==X.currentTarget||X.propertyName!=="transform"||A==="hidden"&&Q()},[Q,A]);return le(()=>{A!=="visible"||!w.current||(z.current=Wt(w.current,{mode:a,includeTrigger:t==="hover"&&a==="content-menu",onNavigateOutside:()=>{z.current=null,Z()}}))},[A,t,Z,a]),c.useEffect(()=>{!d&&A!=="hidden"||d&&A!=="idle"||z.current&&(t==="hover"&&(E.current=!0,setTimeout(()=>{E.current=!1},100)),z.current({withoutFocusReturn:!I.current}),z.current=null,I.current=!0)},[A,t,d]),c.useEffect(()=>()=>{z.current&&z.current(),z.current=null},[]),c.useEffect(()=>{const X=Gn(q,10);return window.addEventListener("resize",X),()=>window.removeEventListener("resize",X)},[q]),c.useEffect(()=>{q()},[y,q]),c.useImperativeHandle(x,()=>({open:oe,close:Z}),[oe,Z]),rt({Escape:()=>Z()},[Z]),gs([w,b],()=>{I.current=!1,Z()}),i.jsx(bs,{value:{id:j,flyout:O,triggerElRef:b,flyoutElRef:w,handleClose:Z,handleOpen:oe,handleFocus:Ce,handleBlur:He,handleMouseEnter:se,handleMouseLeave:H,handleTransitionEnd:ye,handleClick:Y,handleContentMouseDown:G,handleContentMouseUp:ie,triggerType:t,trapFocusMode:a,contentGap:f,contentClassName:_,contentAttributes:v},children:o})},ps=e=>{const{defaultActive:t,onClose:n,onOpen:r}=e,[o,s]=c.useState(t||!1),a=()=>{s(!1),n&&n()},l=()=>{s(!0),r&&r()};return i.jsx(kr,k(g({},e),{defaultActive:void 0,active:o,onClose:a,onOpen:l}))},xs=e=>{const{children:t}=e,{id:n,triggerElRef:r,triggerType:o,flyout:s,handleFocus:a,handleBlur:l,handleMouseEnter:d,handleMouseLeave:f,handleClick:_,handleOpen:v,trapFocusMode:m}=Gt();rt({[`${lr},${cr}`]:()=>{s.status==="idle"&&v()}},[v,s.status],{ref:r});let h={onBlur:l,ref:r};return o==="click"&&(h.onClick=_),o==="hover"&&(h.onMouseEnter=d,h.onMouseLeave=f),(o==="hover"||o==="focus")&&(h.onFocus=a,h["aria-describedby"]=n),(o==="click"||o==="focus"||m==="action-menu")&&(m==="dialog"?h["aria-haspopup"]="dialog":m==="selection-menu"?(h["aria-haspopup"]="listbox",h["aria-autocomplete"]="list"):h["aria-haspopup"]="menu",h["aria-expanded"]=s.status!=="idle",h["aria-controls"]=s.status!=="idle"?n:void 0),i.jsx(i.Fragment,{children:t(h)})},Nr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),$n=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),ws=()=>{const{mode:e}=c.useContext($n);return e},$r=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(Nr),{mode:r,setMode:o,invertMode:s}=c.useContext($n);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||r,setColorMode:o,invertColorMode:s}),[e,r,o,s,t,n])},ys={root:"_root_r30zs_1"},ct=e=>{const{name:t,defaultName:n,colorMode:r,children:o,className:s}=e,[a,l]=c.useState(!1),[d,f]=c.useState(n),_=ws(),v=$r(),m=!v.theme,h=t||d||v.theme,p=m?_:v.colorMode,y=r==="inverted"?p==="light"?"dark":"light":r||p,b=M(ys.root,s),w=j=>{f(j)};return le(()=>{l(!0)},[]),le(()=>{if(!document||!m)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",h),j||document.documentElement.setAttribute("data-rs-color-mode",y),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[h,y,m]),i.jsx(Nr.Provider,{value:{theme:h,colorMode:y,setTheme:w},children:i.jsx("div",{className:b,"data-rs-theme":m?void 0:h,"data-rs-color-mode":m||!r&&!a?void 0:y,children:o})})},js=e=>{const{defaultMode:t,children:n}=e,[r,o]=c.useState(t||"light"),s=c.useCallback(l=>{Lo(),document.documentElement.setAttribute("data-rs-color-mode",l),o(l)},[]);le(()=>{$t(()=>{Vo()})},[r]),le(()=>{const l=document.documentElement.getAttribute("data-rs-color-mode");l&&s(l)},[]);const a=c.useMemo(()=>({mode:r,setMode:s,invertMode:()=>{s(r==="light"?"dark":"light")}}),[r,s]);return i.jsx($n.Provider,{value:a,children:n})},Er=c.createContext({}),Cs=()=>c.useContext(Er),Xt=e=>{const{children:t,targetRef:n}=e,r=Cs(),o=n||r.scopeRef;return _e.createPortal(i.jsx(ct,{children:t}),(o==null?void 0:o.current)||document.body)};function ks(e){const{children:t}=e,n=c.useRef(null);return i.jsx(Er.Provider,{value:{scopeRef:n},children:t(n)})}Xt.Scope=ks;const zt={content:"_content_u88xy_1",inner:"_inner_u88xy_5","--position-top":"_--position-top_u88xy_9","--position-top-end":"_--position-top-end_u88xy_10","--position-top-start":"_--position-top-start_u88xy_11","--position-bottom":"_--position-bottom_u88xy_15","--position-bottom-end":"_--position-bottom-end_u88xy_16","--position-bottom-start":"_--position-bottom-start_u88xy_17","--position-start":"_--position-start_u88xy_21","--position-start-top":"_--position-start-top_u88xy_22","--position-start-bottom":"_--position-start-bottom_u88xy_23","--position-end":"_--position-end_u88xy_27","--position-end-top":"_--position-end-top_u88xy_28","--position-end-bottom":"_--position-end-bottom_u88xy_29","--visible":"_--visible_u88xy_57","--animated":"_--animated_u88xy_62"},Ns=e=>{const{children:t,className:n,attributes:r}=e,{flyout:o,id:s,flyoutElRef:a,triggerElRef:l,handleTransitionEnd:d,triggerType:f,handleMouseEnter:_,handleMouseLeave:v,handleContentMouseDown:m,handleContentMouseUp:h,contentGap:p,contentClassName:x,contentAttributes:y,trapFocusMode:b}=Gt(),{styles:w,status:j,position:$}=o,[z,E]=c.useState(!1);if(le(()=>{E(!0)},[]),j==="idle"||!z)return null;const P=M(zt.content,j==="visible"&&zt["--visible"],["visible","hidden"].includes(j)&&zt["--animated"],$&&zt[`--position-${$}`]),I=M(zt.inner,n,x);let O;f==="hover"?O="tooltip":b==="dialog"?O="dialog":b==="selection-menu"?O="listbox":b==="action-menu"&&(O="menu");const S=i.jsx("div",{className:P,style:k(g({},w),{"--rs-flyout-gap":p}),ref:a,onTransitionEnd:d,onMouseEnter:f==="hover"?_:void 0,onMouseLeave:f==="hover"?v:void 0,onMouseDown:m,onTouchStart:m,onMouseUp:h,onTouchEnd:h,children:i.jsx("div",k(g({role:O},r),{id:s,"aria-modal":f==="click",style:y==null?void 0:y.style,className:I,children:t}))}),A=Cn(l.current);return i.jsx(Xt,{targetRef:A===document.body?void 0:{current:A},children:S})},Xe=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(kr,g({},e)):i.jsx(ps,g({},e))};Xe.Trigger=xs,Xe.Content=Ns;const En={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},$s={root:"_root_e7w6q_1"},zn=e=>{if(!e)return null;const t=ee("--rs-p",e);return{classNames:$s.root,variables:t}},dt=e=>{var j;const{id:t,forcePosition:n,onOpen:r,onClose:o,active:s,defaultActive:a,children:l,width:d,contentGap:f,variant:_="elevated",triggerType:v="click",position:m="bottom",disableHideAnimation:h,instanceRef:p}=e,x=(j=e.padding)!=null?j:_==="headless"?0:4,y=e.trapFocusMode||(v==="hover"?"content-menu":void 0),b=zn(x),w=M(En.content,!!d&&En["content--has-width"],_&&En[`content--variant-${_}`],b==null?void 0:b.classNames);return i.jsx(Xe,{id:t,instanceRef:p,position:m,forcePosition:n,onOpen:r,onClose:o,trapFocusMode:y,triggerType:v,active:s,defaultActive:a,width:d,disableHideAnimation:h,contentGap:f,contentClassName:w,contentAttributes:{style:g({},b==null?void 0:b.variables)},children:l})};dt.Trigger=Xe.Trigger,dt.Content=Xe.Content;const Be={root:"_root_177la_1",icon:"_icon_177la_17",content:"_content_177la_22","--rounded-corners":"_--rounded-corners_177la_27","--size-small":"_--size-small_177la_1","--size-medium":"_--size-medium_177la_1","--size-large":"_--size-large_177la_1","--color-neutral":"_--color-neutral_177la_66","--selected":"_--selected_177la_70","--color-critical":"_--color-critical_177la_76","--color-primary":"_--color-primary_177la_86","--disabled":"_--disabled_177la_107",aligner:"_aligner_177la_115","--rounded-corners-true--m":"_--rounded-corners-true--m_177la_1","--rounded-corners-false--m":"_--rounded-corners-false--m_177la_1","--size-small--m":"_--size-small--m_177la_1","--size-medium--m":"_--size-medium--m_177la_1","--size-large--m":"_--size-large--m_177la_1","--rounded-corners-true--l":"_--rounded-corners-true--l_177la_1","--rounded-corners-false--l":"_--rounded-corners-false--l_177la_1","--size-small--l":"_--size-small--l_177la_1","--size-medium--l":"_--size-medium--l_177la_1","--size-large--l":"_--size-large--l_177la_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_177la_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_177la_1","--size-small--xl":"_--size-small--xl_177la_1","--size-medium--xl":"_--size-medium--xl_177la_1","--size-large--xl":"_--size-large--xl_177la_1"},Es=e=>{const{children:t,className:n,attributes:r}=e,o=M(Be.aligner,n);return i.jsx("div",k(g({},r),{className:o,children:t}))},zs=(e,t)=>{const{icon:n,startSlot:r,endSlot:o,children:s,color:a="primary",selected:l,disabled:d,onClick:f,href:_,size:v="medium",roundedCorners:m,className:h,attributes:p}=e,x=M(Be.root,h,W(Be,"--size",v),W(Be,"--rounded-corners",m),a&&Be[`--color-${a}`],l&&Be["--selected"],d&&Be["--disabled"]),y=Le(v,w=>w==="large"?3:2),b=Le(v,w=>w==="large"?5:4);return i.jsx(Ve,{disabled:d,className:x,attributes:p,onClick:f,href:_,ref:t,children:i.jsxs(U,{direction:"row",gap:y,align:"center",children:[n&&i.jsx(de,{svg:n,className:Be.icon,size:b}),!n&&r,s&&i.jsx(U.Item,{grow:!0,className:Be.content,children:s}),o]})})},Tn=c.forwardRef(zs);Tn.Aligner=Es;const Jt=()=>i.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:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Qt={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},In=c.createContext(null),we=e=>{const a=e,{children:t,position:n="bottom-start",triggerType:r="click",trapFocusMode:o="action-menu"}=a,s=Fe(a,["children","position","triggerType","trapFocusMode"]);return i.jsx(dt,k(g({},s),{position:n,padding:0,trapFocusMode:o,triggerType:r,children:t}))},Ts=e=>{const{children:t,attributes:n,className:r}=e,o=c.useContext(In),[s]=Ge(),{ref:a}=rt({[s?dr:ur]:()=>{var d;(d=o==null?void 0:o.current)==null||d.close()},[Yo]:()=>{const d=Dt();d==null||d.click()}},[o==null?void 0:o.current]),l=M(Qt.menu,r);return i.jsx(dt.Content,{className:l,attributes:k(g({},n),{ref:a}),children:t})},Is=e=>{const{children:t}=e;return i.jsx("div",{className:Qt.section,role:"group",children:t})},zr=e=>{const{onClick:t}=e,{handleClose:n}=Gt(),r=o=>{n&&n({closeParents:!0}),t&&t(o)};return i.jsx(Tn,k(g({},e),{roundedCorners:!0,className:Qt.item,attributes:g({role:"menuitem"},e.attributes),onClick:r}))},Ms=e=>{const{children:t}=e,n=c.useRef();return i.jsx(In.Provider,{value:n,children:i.jsx(we,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Ss=e=>{const l=e,{children:t,attributes:n}=l,r=Fe(l,["children","attributes"]),o=c.useContext(In),[s]=Ge(),{ref:a}=rt({[s?ur:dr]:()=>{var d;(d=o==null?void 0:o.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(zr,k(g({},r),{attributes:k(g({},n),{ref:a}),endSlot:i.jsx(de,{autoWidth:!0,svg:Jt,className:Qt.arrow}),children:t}))},Ps=e=>{const{children:t}=e;return i.jsx(we.Trigger,{children:n=>i.jsx(Ss,{attributes:n,children:t})})};we.Trigger=dt.Trigger,we.Content=Ts,we.Section=Is,we.Item=zr,we.SubMenu=Ms,we.SubTrigger=Ps;const Tr=c.createContext({}),Ir=e=>{const y=e,{children:t,onChange:n,onItemSelect:r,name:o}=y,s=Fe(y,["children","onChange","onItemSelect","name"]),[a,l]=c.useState(!1),[d,f]=c.useState(!1),_=!!c.Children.toArray(t).filter(Boolean).length,v=()=>l(!0),m=()=>l(!1),h=b=>{n==null||n(b),f(!1),v()},p=b=>{n==null||n({value:b.value,name:o}),r==null||r({value:b.value}),f(!0)},x=b=>{var w;requestAnimationFrame(()=>{d&&(l(!1),f(!1))}),(w=s.onFocus)==null||w.call(s,b)};return i.jsx(Tr.Provider,{value:{onItemClick:p},children:i.jsxs(we,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!d&&_&&a,onClose:m,onOpen:v,disableHideAnimation:!0,children:[i.jsx(we.Trigger,{children:j=>{var $=j,{ref:b}=$,w=Fe($,["ref"]);return i.jsx(ar,k(g({},s),{name:o,onChange:h,attributes:k(g({},s.attributes),{ref:b}),inputAttributes:k(g({},w),{onFocus:z=>{var E;(E=w.onFocus)==null||E.call(w),x(z)},role:"combobox"})}))}}),i.jsx(we.Content,{children:t})]})})},As=e=>{const a=e,{value:t,onClick:n}=a,r=Fe(a,["value","onClick"]),{onItemClick:o}=c.useContext(Tr),s=l=>{n==null||n(l),o({value:t})};return i.jsx(we.Item,k(g({},r),{attributes:k(g({},r.attributes),{role:"option"}),onClick:s}))};Ir.Item=As;const Zt={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"},Fs=e=>{const{color:t="neutral",variant:n,src:r,size:o=12,squared:s,initials:a,icon:l,alt:d,className:f,attributes:_}=e,v=s?Le(o,x=>x>=24?"large":x>=12?"medium":"small"):"circular",m=Ct(o),h=M(Zt.root,f,m==null?void 0:m.classNames,t&&Zt[`--color-${t}`],n&&Zt[`--variant-${n}`]),p=()=>r?i.jsx("img",{role:a?void 0:"presentation",src:r,alt:d,className:Zt.img}):l?i.jsx(de,{svg:l,size:Le(o,x=>Math.ceil(x*.4))}):a;return i.jsx(U,{borderRadius:v,attributes:k(g({},_),{style:g({},m==null?void 0:m.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:h,children:p()})},Mr=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Te={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"},Ls=e=>{const{children:t,position:n="top-end",overlap:r,className:o,attributes:s}=e,a=M(Te.container,o,r&&Te["--container-overlap"],n&&Te[`--container-position-${n}`]);return i.jsx("div",k(g({},s),{className:a,children:t}))},Sr=e=>{const{children:t,color:n,rounded:r,size:o="medium",icon:s,endIcon:a,variant:l,hidden:d,href:f,onClick:_,onDismiss:v,dismissAriaLabel:m,className:h,attributes:p}=e,x=!!(_||f),y=o==="large"?4:3.5,b=M(Te.root,h,r&&Te["--rounded"],d&&Te["--hidden"],o&&Te[`--size-${o}`],n&&Te[`--color-${n}`],l&&Te[`--variant-${l}`],x&&Te["--actionable"]);return i.jsxs(Ve,{onClick:_,href:f,className:b,attributes:p,children:[s&&i.jsx(de,{svg:s,autoWidth:!0,size:y}),t&&i.jsx(te,{variant:o==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),a&&i.jsx(de,{svg:a,autoWidth:!0,size:y}),v&&i.jsx(Ve,{onClick:v,className:Te.dismiss,as:"span",attributes:{"aria-label":m},children:i.jsx(de,{svg:Mr,size:y})})]})};Sr.Container=Ls;const en={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"},Pr=e=>{const{size:t="small",color:n="primary",className:r,attributes:o}=e,s=o==null?void 0:o["aria-label"],a=M(en.root,r,W(en,"--size",t),n&&en[`--color-${n}`]);return i.jsx("span",k(g({},o),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:a,children:i.jsx("span",{className:en.inner})}))},ce={root:"_root_nv3u4_1",loader:"_loader_nv3u4_33",icon:"_icon_nv3u4_41","--icon-position-end":"_--icon-position-end_nv3u4_45",text:"_text_nv3u4_56","--loading":"_--loading_nv3u4_62","--elevated":"_--elevated_nv3u4_79","--icon-only":"_--icon-only_nv3u4_83","--rounded":"_--rounded_nv3u4_89","--size-small":"_--size-small_nv3u4_1","--size-medium":"_--size-medium_nv3u4_1","--size-large":"_--size-large_nv3u4_1","--size-xlarge":"_--size-xlarge_nv3u4_1","--full-width":"_--full-width_nv3u4_135","--variant-solid":"_--variant-solid_nv3u4_149","--color-black":"_--color-black_nv3u4_149","--color-white":"_--color-white_nv3u4_150","--variant-faded":"_--variant-faded_nv3u4_151","--color-neutral":"_--color-neutral_nv3u4_151","--color-primary":"_--color-primary_nv3u4_152","--color-critical":"_--color-critical_nv3u4_153","--color-positive":"_--color-positive_nv3u4_154","--color-inherit":"_--color-inherit_nv3u4_155","--variant-outline":"_--variant-outline_nv3u4_156","--variant-ghost":"_--variant-ghost_nv3u4_157","--highlighted":"_--highlighted_nv3u4_176","--disabled":"_--disabled_nv3u4_531",group:"_group_nv3u4_563",aligner:"_aligner_nv3u4_624","--aligner-position-all":"_--aligner-position-all_nv3u4_628","--aligner-position-start":"_--aligner-position-start_nv3u4_636","--aligner-position-end":"_--aligner-position-end_nv3u4_644","--aligner-position-top":"_--aligner-position-top_nv3u4_652","--aligner-position-bottom":"_--aligner-position-bottom_nv3u4_656","--size-small--m":"_--size-small--m_nv3u4_1","--size-medium--m":"_--size-medium--m_nv3u4_1","--size-large--m":"_--size-large--m_nv3u4_1","--size-xlarge--m":"_--size-xlarge--m_nv3u4_1","--full-width-true--m":"_--full-width-true--m_nv3u4_1","--full-width-false--m":"_--full-width-false--m_nv3u4_1","--size-small--l":"_--size-small--l_nv3u4_1","--size-medium--l":"_--size-medium--l_nv3u4_1","--size-large--l":"_--size-large--l_nv3u4_1","--size-xlarge--l":"_--size-xlarge--l_nv3u4_1","--full-width-true--l":"_--full-width-true--l_nv3u4_1","--full-width-false--l":"_--full-width-false--l_nv3u4_1","--size-small--xl":"_--size-small--xl_nv3u4_1","--size-medium--xl":"_--size-medium--xl_nv3u4_1","--size-large--xl":"_--size-large--xl_nv3u4_1","--size-xlarge--xl":"_--size-xlarge--xl_nv3u4_1","--full-width-true--xl":"_--full-width-true--xl_nv3u4_1","--full-width-false--xl":"_--full-width-false--xl_nv3u4_1"},Vs=e=>{const{children:t,className:n,attributes:r}=e,o=M(ce.group,n);return i.jsx("div",k(g({},r),{className:o,role:"group",children:t}))},Os=e=>{const{children:t,position:n,className:r,attributes:o}=e,s=typeof n=="string"?[n]:n,a=s?s.map(d=>ce[`--aligner-position-${d}`]):[ce["--aligner-position-all"]],l=M(ce.aligner,r,...a);return i.jsx("div",k(g({},o),{className:l,children:t}))},Ds=(e,t)=>{const{variant:n="solid",color:r="neutral",elevated:o,highlighted:s,fullWidth:a,loading:l,disabled:d,type:f,href:_,size:v="medium",className:m,children:h,rounded:p,attributes:x,onClick:y,icon:b,endIcon:w}=e,j=(b||w)&&!h,$=M(ce.root,m,r&&ce[`--color-${r}`],n&&ce[`--variant-${n}`],W(ce,"--size",v),W(ce,"--full-width",a),o&&n!=="ghost"&&ce["--elevated"],p&&ce["--rounded"],d&&ce["--disabled"],l&&ce["--loading"],s&&ce["--highlighted"],j&&ce["--icon-only"]),z=E=>{if(!(E==="start"&&b||E==="end"&&w))return null;const S=M(ce.icon,E==="end"&&ce["--icon-position-end"]),A=Le(v,q=>q==="large"?5:q==="xlarge"?6:4);return i.jsx(de,{className:S,svg:E==="start"?b:w,size:A,autoWidth:!0})};return i.jsxs(Ve,{disabled:d||l,className:$,attributes:x,type:f,onClick:y,href:_,ref:t,children:[l&&i.jsx("div",{className:ce.loader,children:i.jsx(Pr,{size:"small",color:"inherit"})}),z("start"),h&&i.jsx("span",{className:ce.text,children:h}),z("end")]})},je=c.forwardRef(Ds);je.Group=Vs,je.Aligner=Os;const Tt={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"},qs=(e,t)=>{const{icon:n,disabled:r,href:o,color:s="primary",variant:a="underline",className:l,children:d,attributes:f,type:_,onClick:v}=e,m=M(Tt.root,l,r&&Tt["--disabled"],a&&Tt[`--variant-${a}`],s&&Tt[`--color-${s}`],n&&Tt["--with-icon"]);return i.jsxs(Ve,{href:o,disabled:r,className:m,attributes:f,type:_,onClick:v,ref:t,children:[n&&i.jsx(de,{svg:n}),d]})},Ar=c.forwardRef(qs),Bs=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.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"}),i.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"}),i.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"})]}),Ws=e=>{const{children:t,onClick:n,href:r,icon:o,disabled:s}=e;return!r&&!n&&!s?i.jsx(te,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Ar,{onClick:n,href:r,icon:o,disabled:s,variant:"plain",color:"inherit",children:t})},Fr=e=>{const{children:t,separator:n,color:r,defaultVisibleItems:o,ariaLabel:s,className:a,attributes:l}=e,d=o&&o>=2?o:null,[f,_]=c.useState(!1),v=M(a),m=c.Children.count(t);let h=0;const p=()=>{_(!0)};return i.jsx("nav",k(g({},l),{"aria-label":s||(l==null?void 0:l["aria-label"]),className:v,children:i.jsx(U,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,y)=>{if(!x)return null;const b=m-(d||0),w=h===0,j=h>b,$=!d||w||j||f,z=h===b;h+=1;let E=null;return $?E=x:z&&(E=i.jsx(je.Aligner,{children:i.jsx(je,{variant:"ghost",size:"small",icon:Bs,onClick:p})})),E===null?null:i.jsxs(U,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&($||z)&&i.jsx(te,{color:"neutral-faded",children:n||i.jsx(de,{svg:Jt,size:3})}),i.jsx(te,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:E})]},y)})})}))};Fr.Item=Ws;const ut={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},Hs=(e,t)=>{const{padding:n=4}=e,{selected:r,elevated:o,bleed:s,height:a,onClick:l,href:d,children:f,className:_,attributes:v,as:m="div"}=e,h=!!d||!!l,p=un("medium"),x=tr(s),y=zn(n),b=Ct(a),w=M(ut.root,p==null?void 0:p.classNames,x==null?void 0:x.classNames,y==null?void 0:y.classNames,b==null?void 0:b.classNames,h&&ut["--actionable"],o&&ut["--elevated"],r&&ut["--selected"],_),j=g(g(g(g({},v==null?void 0:v.style),x==null?void 0:x.variables),y==null?void 0:y.variables),b==null?void 0:b.variables);return h?i.jsx(Ve,{className:w,attributes:k(g({},v),{style:j}),href:d,as:m,onClick:l,ref:t,children:i.jsx("span",{className:ut.content,children:f})}):i.jsx(m,k(g({},v),{onClick:l,href:d,ref:t,className:w,style:j,children:i.jsx("span",{className:ut.content,children:f})}))},Rs=c.forwardRef(Hs),Lr=()=>i.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:i.jsx("polyline",{points:"15 18 9 12 15 6"})});var _t=(e=>(e.back="back",e.forward="forward",e))(_t||{});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"},Vr=e=>{const{type:t,scrollElRef:n,scrollPosition:r,onClick:o,isRTL:s,mounted:a}=e,[l,d]=c.useState(!1),[f,_]=c.useState(!1),v=t===_t.forward,m=t===(s?_t.back:_t.forward),h=M(We.control,m?We["--control-next"]:We["--control-prev"],l&&We["--control-visible"],f&&We["--control-rendered"]);return le(()=>{const p=n.current;if(!p||!a)return;let x;const y=Math.abs(r),b=y<=0,w=y+p.clientWidth>=p.scrollWidth-1;return(v?w:b)?(d(!1),x=setTimeout(()=>_(!1),1500)):(_(!0),d(!0)),()=>{x&&clearTimeout(x)}},[r,n.current,a]),i.jsx("div",{className:h,"aria-hidden":"true",children:i.jsx(je,{onClick:o,icon:m?Jt:Lr,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!l}})})},Us=e=>{const{children:t,gap:n=3,visibleItems:r,bleed:o,navigationDisplay:s,instanceRef:a,className:l,attributes:d}=e,[f,_]=c.useState(!1),[v,m]=c.useState(0),[h]=Ge(),p=c.useRef(null),x={};typeof o=="object"&&Object.entries(o).forEach(([P,I])=>{x[P]=typeof I=="number"&&I>0});const y=M(We.root,l,...W(We,"--bleed",typeof o=="number"?!0:x)),b=po(P=>{const I=P.target;m(I.scrollLeft)},16),w=()=>{const I=getComputedStyle(p.current).gap.split(" ")[0];return Number(I.replace("px",""))},j=()=>{const P=p.current;P.scrollBy({left:P.clientWidth+w(),top:0,behavior:"smooth"})},$=()=>{const P=p.current;P.scrollBy({left:-P.clientWidth-w(),top:0,behavior:"smooth"})},z=h?j:$,E=h?$:j;return c.useImperativeHandle(a,()=>({navigateBack:z,navigateForward:E})),le(()=>{_(!0)},[]),i.jsxs("section",k(g({},d),{className:y,style:g(g({},ee("--rs-carousel-items",r)),ee("--rs-carousel-bleed",o)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Vr,{isRTL:h,type:_t.back,scrollElRef:p,scrollPosition:v,onClick:z,mounted:f}),i.jsx(Vr,{isRTL:h,type:_t.forward,scrollElRef:p,scrollPosition:v,onClick:E,mounted:f})]}),i.jsx(U,{as:"ul",direction:"row",wrap:!1,gap:n,className:We.scroll,attributes:{ref:p,onScroll:b},children:c.Children.map(t,P=>i.jsx(U.Item,{className:We.item,as:"li",children:P}))})]}))},Ks={root:"_root_1feer_1"},Mn=e=>{const{name:t,value:n,type:r,onChange:o,onFocus:s,onBlur:a,checked:l,defaultChecked:d,disabled:f,className:_,attributes:v}=e,m=M(Ks.root,_);return i.jsx("input",k(g({},v),{className:m,type:r,name:t,value:n,checked:l,defaultChecked:d,disabled:f,onChange:o,onFocus:s||(v==null?void 0:v.onFocus),onBlur:a||(v==null?void 0:v.onBlur)}))},Or=c.createContext(null),Ys=()=>c.useContext(Or),Dr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:s,hasError:a}=e,l=d=>{const{event:f,value:_,checked:v}=d;if(!_)return;let m=[...o];v?m.push(_):m=m.filter(h=>h!==_),t&&t({name:n,value:m,event:f})};return i.jsx(Or.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:s})},Gs=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||[]),s=a=>{a.value&&(o(a.value),n&&n(a))};return i.jsx(Dr,k(g({},e),{value:r,defaultValue:void 0,onChange:s}))},Xs=e=>{const{value:t}=e;return t!==void 0?i.jsx(Dr,g({},e)):i.jsx(Gs,g({},e))},Js=()=>i.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:i.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"},Qs=e=>{var $;const{children:t,value:n,onChange:r,onFocus:o,onBlur:s,indeterminate:a,className:l,attributes:d,inputAttributes:f}=e,_=Ys(),v=Ye(),m=(v==null?void 0:v.hasError)||e.hasError||(_==null?void 0:_.hasError),h=(v==null?void 0:v.disabled)||e.disabled||(_==null?void 0:_.disabled),p=_?($=_.value)==null?void 0:$.includes(n):e.checked,x=_?void 0:e.defaultChecked,y=_?_.name:e.name,b=c.useRef(null),w=M(Je.root,l,m&&Je["--error"],h&&Je["--disabled"]),j=z=>{if(!y)return;const{checked:E}=z.target,P={name:y,value:n,checked:E,event:z};r&&r(P),_!=null&&_.onChange&&_.onChange(P)};return le(()=>{b.current.indeterminate=a||!1},[a,p]),i.jsxs("label",k(g({},d),{className:w,children:[i.jsxs("span",{className:Je.field,children:[i.jsx(Mn,{className:Je.input,type:"checkbox",checked:p,defaultChecked:x,name:y,disabled:h,value:n,onChange:j,onFocus:o,onBlur:s,attributes:k(g({},f),{ref:b})}),i.jsx("div",{className:Je.decorator,children:i.jsx(de,{svg:Js,className:Je.icon})})]}),t&&i.jsx("span",{className:Je.text,children:t})]}))},Zs={root:"_root_1c40o_1"},ei=e=>{const{children:t,padding:n=4,width:r,className:o,attributes:s}=e,a=M(Zs.root,o);return i.jsx(U,{attributes:s,className:a,paddingInline:n,width:r,maxWidth:"100%",children:t})},It={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"},ti=e=>{const{children:t,align:n,onClose:r,hideCloseButton:o,variant:s,closeAriaLabel:a,className:l,attributes:d}=e,f=M(It.root,l,s&&It[`--variant-${s}`],n&&It[`--align-${n}`],o&&It["--hide-close"]),_=s==="media"?"div":je.Aligner;return i.jsxs("div",k(g({},d),{className:f,children:[t,!o&&i.jsx(_,{className:It.close,children:i.jsx(je,k(g({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:r,attributes:{"aria-label":r?a:void 0},icon:Mr}))})]}))},ni={root:"_root_r7flr_1"},ri=e=>{const{children:t}=e;return i.jsx("div",{className:ni.root,children:t})},qr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},oi=e=>{const{children:t,active:n,className:r,attributes:o}=e,s=M(qr.root,n&&qr["--active"],r);return i.jsx(te,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:o,children:t})},tn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},si=e=>{const{src:t,alt:n,width:r,height:o,onLoad:s,onError:a,fallback:l,displayMode:d="cover",borderRadius:f,className:_,attributes:v,imageAttributes:m}=e,[h,p]=c.useState("loading"),x=un(f),y=_n(r),b=Ct(o),w=M(tn.root,x==null?void 0:x.classNames,y==null?void 0:y.classNames,b==null?void 0:b.classNames,d&&tn[`--display-mode-${d}`],_),j=M(tn.image,w),$=M(tn.fallback,w),z=g(g({},y==null?void 0:y.variables),b==null?void 0:b.variables),E=I=>{p("success"),s==null||s(I)},P=I=>{p("error"),a==null||a(I)};return c.useEffect(()=>{p("loading")},[t]),(h==="error"||!t)&&l?typeof l=="string"?i.jsx("img",k(g({},v),{src:l,alt:n,role:n?void 0:"presentation",className:$,style:z})):i.jsx("div",k(g({},v),{className:$,style:z,children:l})):i.jsx("img",k(g(g({},v),m),{src:t,alt:n,role:n?void 0:"presentation",onLoad:E,onError:P,className:j,style:z}))},Sn=e=>{const[t,n]=c.useState(e||!1),r=c.useCallback(()=>{n(!0)},[]),o=c.useCallback(()=>{n(!1)},[]),s=c.useCallback(()=>{n(a=>!a)},[]);return{active:t,activate:r,deactivate:o,toggle:s}},ii=(()=>{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}})(),Br=()=>{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=ii();document.body.style.paddingRight=`${d}px`}t(!0)},[t,r,n]),s=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:s}},mt={root:"_root_twcer_1",wrapper:"_wrapper_twcer_20",inner:"_inner_twcer_26",content:"_content_twcer_32","--visible":"_--visible_twcer_40","--transparent":"_--transparent_twcer_44"},Wr=e=>{const{active:t,children:n,transparent:r,onClose:o,className:s,attributes:a}=e,[l,d]=c.useState(!1),f=c.useRef(null),_=c.useRef(!1),v=c.useRef(null),{lockScroll:m,unlockScroll:h}=Br(),{active:p,activate:x,deactivate:y}=Sn(t||!1),{active:b,activate:w,deactivate:j}=Sn(t||!1),$=hr(t,f),z=M(mt.root,b&&mt["--visible"],r&&mt["--transparent"],s),E=V=>{if(!f.current)return;const L=f.current.firstChild;if(L)return L.contains(V)},P=()=>{f.current&&(v.current=Wt(f.current))},I=()=>{v.current&&(v.current(),v.current=null)},O=c.useCallback(()=>{!b||!$()||o&&o()},[b,$]),S=V=>{_.current=!E(V.target)},A=V=>{const L=!E(V.target);_.current&&L&&!r&&O()},q=V=>{V.propertyName!=="opacity"||V.target!==V.currentTarget||b||(r||h(),y())};return rt({Escape:O},[O]),c.useEffect(()=>{t&&!p&&x(),!t&&p&&j()},[t,x,j,p]),c.useEffect(()=>{p&&(r||m(),$t(()=>w()))},[p,w,m,r]),c.useEffect(()=>{if(p)return P(),()=>I()},[p]),c.useEffect(()=>()=>{r||h()},[h,r]),le(()=>{d(!0)},[]),!p||!l?null:i.jsx(Xt,{children:i.jsx(Xt.Scope,{children:V=>i.jsx("div",k(g({},a),{ref:V,role:"button",tabIndex:-1,className:z,onMouseDown:S,onMouseUp:A,onTransitionEnd:q,children:i.jsx("div",{className:mt.wrapper,children:i.jsx("div",{className:mt.inner,children:i.jsx("div",{className:mt.content,ref:f,children:typeof n=="function"?n({active:b}):n})})})}))})})},Pn={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"},Hr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Rr=()=>c.useContext(Hr),ai=e=>{const{children:t}=e,{id:n,setTitleMounted:r}=Rr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(te,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},li=e=>{const{children:t}=e,{id:n,setSubtitleMounted:r}=Rr();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(te,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},An=e=>{const{children:t,onClose:n,active:r,size:o,padding:s=4,position:a="center",transparentOverlay:l,className:d,attributes:f}=e,_=$e(),[v,m]=c.useState(!1),[h,p]=c.useState(!1),x=zn(s),y=c.useMemo(()=>({titleMounted:v,setTitleMounted:m,subtitleMounted:h,setSubtitleMounted:p,id:_}),[_,h,v]);return i.jsx(Wr,{onClose:n,active:r,transparent:l,children:({active:b})=>{const w=M(Pn.root,d,x==null?void 0:x.classNames,b&&Pn["--active"],W(Pn,"--position",a));return i.jsx(Hr.Provider,{value:y,children:i.jsx("div",k(g({},f),{style:g(g({},x==null?void 0:x.variables),ee("--rs-modal-size",o)),"aria-labelledby":v?`${_}-title`:void 0,"aria-describedby":h?`${_}-subtitle`:void 0,className:w,"aria-modal":"true",role:"dialog",children:t}))})}})};An.Title=ai,An.Subtitle=li;const Mt={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"},ci=e=>{const{value:t=0,min:n=0,max:r=100,color:o="primary",size:s="medium",duration:a,className:l,attributes:d}=e,f=M(Mt.root,l,o&&Mt[`--color-${o}`],s&&Mt[`--size-${s}`],!!a&&Mt["--duration"]),_=r-n,v=t-n,p=`${Math.max(n,Math.min(r,v))/_*100-100}%`;return i.jsx("div",k(g({role:"progressbar"},d),{className:f,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Mt.value,style:{"--rs-progress-value":p,"--rs-progress-duration":a?`${a}ms`:void 0}})}))},Ur=c.createContext(null),di=()=>c.useContext(Ur),Kr=e=>{const{onChange:t,name:n,disabled:r,value:o,children:s,hasError:a}=e,l=({event:d,value:f})=>{f&&t&&t({name:n,value:f,event:d})};return i.jsx(Ur.Provider,{value:{onChange:l,disabled:r,value:o,name:n,hasError:a},children:s})},ui=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t||null),s=a=>{a.value&&(o(a.value),n&&n(a))};return i.jsx(Kr,k(g({},e),{value:r,defaultValue:void 0,onChange:s}))},_i=e=>{const{value:t}=e;return t!==void 0?i.jsx(Kr,g({},e)):i.jsx(ui,g({},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"},mi=e=>{const{children:t,value:n,onChange:r,onFocus:o,onBlur:s,className:a,attributes:l,inputAttributes:d}=e,f=Ye(),_=di(),v=(f==null?void 0:f.hasError)||e.hasError||(_==null?void 0:_.hasError),m=(f==null?void 0:f.disabled)||e.disabled||(_==null?void 0:_.disabled),h=_?_.value===n:e.checked,p=_?void 0:e.defaultChecked,x=_?_.name:e.name,y=M(ot.root,a,v&&ot["--error"],m&&ot["--disabled"]),b=w=>{if(!x)return;const{checked:j}=w.target,$={name:x,value:n,checked:j,event:w};r&&r($),_!=null&&_.onChange&&_.onChange($)};return i.jsxs("label",k(g({},l),{className:y,children:[i.jsxs("span",{className:ot.field,children:[i.jsx(Mn,{className:ot.input,type:"radio",checked:h,defaultChecked:p,name:x,disabled:m,value:n,onChange:b,onFocus:o,onBlur:s,attributes:d}),i.jsx("div",{className:ot.decorator})]}),t&&i.jsx("span",{className:ot.text,children:t})]}))},Yr={short:4e3,long:8e3},St=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Gr={queues:St.reduce((e,t)=>g({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},nn=c.createContext(Gr),fi=()=>{const{add:e,hide:t}=c.useContext(nn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},De={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"},vi=e=>{const{size:t="small",text:n,children:r,color:o="inverted",icon:s,title:a,actionsSlot:l,startSlot:d,collapsed:f,attributes:_}=e;let v=o==="inverted"||o==="neutral"?"elevation-overlay":o;o==="neutral"&&(v=f?"neutral":"elevation-overlay");const m=o==="neutral"?"neutral-faded":"transparent",h=t==="small"?"span":"div",p=t==="large";let x=[];l&&(x=Array.isArray(l)?l:[l]);const y=(a||n)&&i.jsxs(i.Fragment,{children:[a&&i.jsxs(te,{variant:"body-3",weight:"bold",as:h,children:[a," "]}),i.jsx(te,{variant:"body-3",as:h,children:n})]}),b=i.jsxs(U,{backgroundColor:v,borderColor:m,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:p?"start":"center",className:De.toast,attributes:_,children:[s&&i.jsx(de,{size:5,svg:s,className:De.icon}),d&&!s&&i.jsx(U.Item,{children:d}),i.jsx(U.Item,{grow:!0,children:i.jsxs(U,{direction:p?"column":"row",align:p?"start":"center",gap:3,children:[i.jsx(U.Item,{grow:!0,children:y&&r||t!=="small"?i.jsxs(U,{gap:.5,children:[y,r&&i.jsx(U,{gap:3,children:r})]}):y||r}),x.length&&i.jsx(U,{direction:"row",align:"center",gap:2,children:x.map((w,j)=>{const $=t==="large"?j===0:j===x.length-1,E={variant:$?"solid":"ghost",size:"small",color:$?o==="neutral"||o==="inverted"?"neutral":"white":"inherit",elevated:o!=="neutral"};return w.type===je?c.createElement(je,k(g(g({},E),w.props),{key:j})):w})})]})})]});return o==="inverted"?i.jsx(ct,{colorMode:"inverted",children:b}):b},hi=e=>{const{toastProps:t,id:n,status:r,inspected:o,index:s}=e,{timeout:a="short"}=t,{show:l,hide:d,remove:f}=c.useContext(nn),[_,v]=c.useState(),m=c.useRef(),h=c.useRef(!1),p=c.useRef(null),x=c.useRef(null),y=r==="entered",b=M(De.container,y&&De["container--visible"],s===0&&De[`container--index-${s}`],!o&&(s===1||s===2)&&De[`container--index-${s}`],!o&&s>=3&&De["container--index-overflow"]),w=c.useCallback(()=>{m.current&&clearTimeout(m.current)},[]),j=c.useCallback(()=>{w();const z=typeof a=="string"?Yr[a]:a;a!==0&&(m.current=setTimeout(()=>{d(n)},z!=null?z:Yr.short))},[d,n,a,w]),$=z=>{z.propertyName==="height"&&(y||f(n))};return c.useEffect(()=>{y&&(o?w():j())},[o,j,w,y]),c.useEffect(()=>{x.current&&v(x.current.clientHeight),l(n),j()},[l,n,j]),c.useEffect(()=>{x.current&&(y?p.current=Wt(x.current,{includeTrigger:!0,mode:"content-menu"}):p.current&&_r()&&(p.current(),p.current=null))},[y]),c.useEffect(()=>{if(!y||s>0)return;const z=()=>{h.current=!0,$t(()=>{h.current=!1}),x.current&&v(x.current.clientHeight)};return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[y,s]),i.jsx("li",{className:b,style:{height:r==="entered"?`calc(${_}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:h.current?"0s":void 0},onTransitionEnd:$,onFocus:w,onBlur:j,children:i.jsx("span",{className:De.wrapper,children:i.jsx(vi,k(g({},t),{collapsed:s>0&&!o,attributes:{ref:x}}))})})},gi=e=>{const{position:t}=e,{queues:n,options:r}=c.useContext(nn),[o,s]=c.useState(!1),a=c.useRef(!1),l=c.useRef(null),d=n[t],{width:f,expanded:_}=(r==null?void 0:r[t])||{},v=M(De.region,De[`region--position-${t}`]),m=d.filter(w=>w.status==="entered").length;let h=0;const p=()=>{a.current=!0},x=w=>{let j=w.target,$=!1;for(;j&&j!==l.current&&!$;)$=j.matches(mr),j=j.parentElement;$||s(z=>!z),a.current=!1},y=()=>{a.current||s(!0)},b=()=>{a.current||s(!1)};return c.useEffect(()=>{d.length===0&&s(!1)},[d.length]),d.length?i.jsx("ul",{role:"region","aria-live":"polite",className:v,ref:l,onTouchStart:p,onClick:x,onMouseEnter:y,onMouseLeave:b,style:{width:f},children:d.map((w,j)=>{const $=m-j+h-1;return w.status!=="entered"&&(h+=1),i.jsx(hi,k(g({},w),{index:$,inspected:o||!!_}),w.id)})}):null};let bi=0;const pi=()=>`__rs-toast-${bi++}`,xi=(e,t)=>{let n;switch(t.type){case"add":const r=t.payload.toastProps||{},{position:o="bottom-end"}=r,s=Fe(r,["position"]);return k(g({},e),{[o]:[...e[o],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:a}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(_=>_.status!=="entering"?_:_.id===a?k(g({},_),{status:"entered"}):_)}),n;case"hide":const{id:l}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].map(_=>_.id===l?k(g({},_),{status:"exiting"}):_)}),n;case"remove":const{id:d}=t.payload;return n=g({},e),St.forEach(f=>{n[f]=n[f].filter(_=>_.id!==d)}),n}},wi=e=>{const{children:t,options:n}=e,[r,o]=c.useReducer(xi,Gr.queues),s=c.useCallback(_=>{const v=pi();return console.log("add"),o({type:"add",payload:{toastProps:_,id:v}}),v},[]),a=c.useCallback(_=>{o({type:"show",payload:{id:_}})},[]),l=c.useCallback(_=>{console.log("hide"),o({type:"hide",payload:{id:_}})},[]),d=c.useCallback(_=>{o({type:"remove",payload:{id:_}})},[]),f=c.useMemo(()=>({queues:r,add:s,show:a,hide:l,remove:d,inspecting:!1,options:n}),[r,a,l,s,d,n]);return i.jsxs(nn.Provider,{value:f,children:[t,St.map(_=>i.jsx(gi,{position:_},_))]})},yi=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(bn,"true")},t=()=>{document.documentElement.removeAttribute(bn)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},Ql="",ji={root:"_root_18j53_1"},Ci=e=>{const{children:t,defaultRTL:n,defaultViewport:r="s",toastOptions:o}=e,s=ds(n);return yi(),i.jsx(jn.Provider,{value:{rtl:s,defaultViewport:r},children:i.jsx(ls,{children:i.jsx(wi,{options:o,children:t})})})},ki=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:r,className:o}=e,s=M(ji.root,o);return i.jsx(js,{defaultMode:r,children:i.jsx(ct,{name:t,defaultName:n,className:s,children:i.jsx(Ci,k(g({},e),{children:e.children}))})})},Pt={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"},Ni=e=>{const{children:t,backgroundSlot:n,position:r="cover",attributes:o,className:s,scrimClassName:a}=e,l=M(Pt.root,!!n&&Pt["--with-background"],r&&Pt[`--position-${r}`],s),d=M(Pt.scrim,a);return i.jsxs("div",k(g({},o),{className:l,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:Pt.content,children:t})})]}))},$i=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ie={root:"_root_t5eyu_1",input:"_input_t5eyu_18",slot:"_slot_t5eyu_48",icon:"_icon_t5eyu_56",arrow:"_arrow_t5eyu_68","--size-medium":"_--size-medium_t5eyu_1","--size-large":"_--size-large_t5eyu_1","--size-xlarge":"_--size-xlarge_t5eyu_1","--variant-faded":"_--variant-faded_t5eyu_123","--variant-headless":"_--variant-headless_t5eyu_132","--status-error":"_--status-error_t5eyu_137","--placeholder":"_--placeholder_t5eyu_152","--disabled":"_--disabled_t5eyu_156","--size-medium--m":"_--size-medium--m_t5eyu_1","--size-large--m":"_--size-large--m_t5eyu_1","--size-xlarge--m":"_--size-xlarge--m_t5eyu_1","--size-medium--l":"_--size-medium--l_t5eyu_1","--size-large--l":"_--size-large--l_t5eyu_1","--size-xlarge--l":"_--size-xlarge--l_t5eyu_1","--size-medium--xl":"_--size-medium--xl_t5eyu_1","--size-large--xl":"_--size-large--xl_t5eyu_1","--size-xlarge--xl":"_--size-xlarge--xl_t5eyu_1"},Ei=e=>{var q,V;const{onChange:t,onClick:n,onFocus:r,onBlur:o,name:s,value:a,defaultValue:l,placeholder:d,options:f,children:_,icon:v,startSlot:m,size:h="medium",variant:p="outline",className:x,attributes:y}=e,[b,w]=c.useState(a===void 0?!l:!a),j=Ye(),$=$e(e.id),z=((q=j==null?void 0:j.attributes)==null?void 0:q.id)||((V=e.inputAttributes)==null?void 0:V.id)||$,E=(j==null?void 0:j.disabled)||e.disabled,P=(j==null?void 0:j.hasError)||e.hasError,I=g(g({},e.inputAttributes),j==null?void 0:j.attributes),O=M(Ie.root,x,h&&W(Ie,"--size",h),P&&Ie["--status-error"],E&&Ie["--disabled"],b&&f&&Ie["--placeholder"],p&&Ie[`--variant-${p}`]),S=L=>{const Q=L.target.value;a===void 0&&w(!Q),t&&t({name:s,value:Q,event:L})};c.useEffect(()=>{a!==void 0&&w(!a)},[a]);const A=(m||v)&&i.jsx("div",{className:Ie.slot,children:v?i.jsx(de,{size:Le(h,L=>L==="large"?5:L==="xlarge"?6:4),svg:v,className:Ie.icon}):m});return i.jsxs("div",k(g({},y),{className:O,children:[f?i.jsxs(i.Fragment,{children:[A,i.jsxs("select",k(g({},I),{className:Ie.input,disabled:E,name:s,value:a,defaultValue:l,onChange:S,onFocus:r||(I==null?void 0:I.onFocus),onBlur:o||(I==null?void 0:I.onBlur),id:z,children:[d&&i.jsx("option",{value:"",children:d}),f.map(L=>i.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(Ve,{className:Ie.input,disabled:E,onClick:n,attributes:k(g({},I),{onFocus:r||(I==null?void 0:I.onFocus),onBlur:o||(I==null?void 0:I.onBlur)}),children:[A,_||(d?i.jsx(te,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:a,name:s})]}),i.jsx("div",{className:Ie.arrow,children:i.jsx(de,{svg:$i,color:E?"disabled":"neutral-faded",size:Le(h,L=>L==="large"||L==="xlarge"?5:4)})})]}))},zi={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Ti=e=>{const{borderRadius:t="small",width:n,height:r,className:o,attributes:s}=e,a=M(zi.root,o);return i.jsx(U,{backgroundColor:"disabled",width:n,height:r,borderRadius:t,className:a,attributes:s})},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"},Ii=(e,t)=>{const{name:n,value:r,disabled:o,active:s,position:a,max:l,min:d,onChange:f,onDragStart:_,renderValue:v}=e,m=c.useId(),h=M(Qe.thumb,s&&Qe["thumb--active"]),p=v?v({value:r}):r,x=y=>{f(+y.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:Qe.input,type:"range",name:n,value:r,onChange:x,disabled:o,max:l,min:d,"aria-labelledby":m}),i.jsx("div",{ref:t,className:h,onMouseDown:_,onTouchStart:_,style:{insetInlineStart:`${a}%`},id:m,"aria-hidden":"true",children:i.jsx(ct,{className:Qe.tooltip,colorMode:"inverted",children:i.jsx(te,{variant:"caption-1",weight:"medium",children:p})})})]})},Xr=c.forwardRef(Ii),Jr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,Fn=(e,t)=>Math.round(e/t)*t,Ln=e=>{var Ce;const{name:t,range:n,max:r,min:o,step:s=1,onChange:a,onChangeCommit:l,renderValue:d,className:f,attributes:_}=e,v=n&&e.minValue!==void 0?Fn(e.minValue,s):void 0,m=Fn(n?e.maxValue:e.value,s),h=c.useRef(null),p=c.useRef(null),x=c.useRef(null),[y,b]=c.useState(null),[w]=Ge(),j=Ye(),$=$e(),z=((Ce=j==null?void 0:j.attributes)==null?void 0:Ce.id)||$,E=`${z}-min`,P=`${z}-max`,I=(j==null?void 0:j.disabled)||e.disabled,O=M(Qe.root,I&&Qe["--disabled"],f),S=c.useCallback(se=>{if(!h.current)return;const H=h.current.clientWidth;let G=(se-h.current.getBoundingClientRect().left)/H;w&&(G=1-G);let ie=(r-o)*G+o;return ie=Math.max(o,Math.min(r,ie)),Fn(ie,s)},[r,o,w,s]),A=se=>(se-o)/(r-o)*100,q=c.useCallback((se,H)=>{if(!n)return;const Y=H!=null&&H.commit?l:a;Y==null||Y({minValue:se,maxValue:m,name:t})},[m,t,n]),V=c.useCallback((se,H)=>{if(n){const G=H!=null&&H.commit?l:a;G==null||G({minValue:v,maxValue:se,name:t});return}const Y=H!=null&&H.commit?l:a;Y==null||Y({value:se,name:t})},[v,t,n]),L=({nativeEvent:se})=>{if(I)return;let H,Y;const G=Jr(se),ie=S(G);[{ref:p,id:E},{ref:x,id:P}].forEach(X=>{if(!X.ref.current)return;const pe=X.ref.current,he=Math.abs(pe.getBoundingClientRect().left-G);(H===void 0||he<=H)&&(H=he,Y=X.id)}),!(!Y||ie===void 0)&&(Y===E&&q(ie),Y===P&&V(ie),b(Y))},Q=()=>{I||b(E)},fe=()=>{I||b(P)},ve=c.useCallback(()=>{y===E&&v!==void 0&&q(v,{commit:!0}),y===P&&V(m,{commit:!0}),b(null)},[v,m,q,V,y,E,P]),oe=c.useCallback(se=>{if(!y)return;const H=Jr(se),Y=S(H);if(Y===void 0)return;let G=y;y===E&&Y>m&&(G=P),y===P&&v&&Y<v&&(G=E),G===E&&q(Y),G===P&&V(Y),y!==G&&b(G)},[y,v,m,S,V,q,P,E]);c.useEffect(()=>(window.addEventListener("mouseup",ve),window.addEventListener("touchend",ve),window.addEventListener("mousemove",oe),window.addEventListener("touchmove",oe),()=>{window.removeEventListener("mouseup",ve),window.removeEventListener("touchend",ve),window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe)}),[ve,oe]);const Z=v&&A(v),He=A(m);return i.jsxs("div",k(g({},_),{className:O,onMouseDown:L,onTouchStart:L,children:[i.jsx("div",{className:Qe.bar,ref:h,children:i.jsx("div",{className:Qe.selection,style:{insetInlineStart:`${Z||0}%`,width:`${He-(Z||0)}%`}})}),v!==void 0&&Z!==void 0&&i.jsx(Xr,{id:E,active:E===y,name:t,disabled:I,onChange:q,value:v,onDragStart:Q,position:Z,max:r,min:o,ref:p,renderValue:d}),i.jsx(Xr,{id:P,active:P===y,name:t,disabled:I,onChange:V,value:m,onDragStart:fe,position:He,max:r,min:o,ref:x,renderValue:d})]}))},Mi=e=>{const{min:t,max:n,onChange:r,range:o}=e,s="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(s),[f,_]=c.useState(a),v=h=>{o||(_(h.value),r==null||r(h))},m=h=>{o&&(d(h.minValue),_(h.maxValue),r==null||r(h))};return o?i.jsx(Ln,k(g({},e),{min:t,max:n,minValue:l,maxValue:f,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:m})):i.jsx(Ln,k(g({},e),{min:t,max:n,value:f,defaultValue:void 0,onChange:v}))},Si=e=>{const o=e,{min:t=0,max:n=100}=o,r=Fe(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?i.jsx(Ln,k(g({},r),{min:t,max:n})):i.jsx(Mi,k(g({},r),{min:t,max:n}))},ft={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"},Pi=e=>{var w;const{children:t,name:n,checked:r,size:o,reversed:s,defaultChecked:a,onChange:l,onFocus:d,onBlur:f,className:_,attributes:v}=e,m=M(ft.root,o&&ft[`root--size-${o}`],s&&ft["root--reversed"],_),h=Ye(),p=$e((h==null?void 0:h.attributes.id)||e.id||((w=e.inputAttributes)==null?void 0:w.id)),x=g(g({},e.inputAttributes),h==null?void 0:h.attributes),y=(h==null?void 0:h.disabled)||e.disabled,b=j=>{l&&l({name:n,event:j,checked:j.target.checked})};return i.jsxs("label",k(g({},v),{className:m,children:[i.jsx("input",k(g({type:"checkbox"},x),{className:ft.input,name:n,checked:r,defaultChecked:a,disabled:y,onChange:b,onFocus:d||(x==null?void 0:x.onFocus),onBlur:f||(x==null?void 0:x.onBlur),id:p})),i.jsx("span",{className:ft.area,"aria-hidden":"true",children:i.jsx("span",{className:ft.thumb})}),t&&i.jsx(te,{variant:"body-3",weight:"medium",children:t})]}))},Ai={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"},Fi=e=>{if(!e)return null;const t=ee("--rs-min-w",e);return{classNames:W(Ai,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"},Qr=e=>{const{minWidth:t,rowSpan:n,colSpan:r,align:o,tagName:s,padding:a,paddingInline:l,paddingBlock:d,children:f,attributes:_}=e,v=e.width==="auto"?"0px":e.width,m=_n(v),h=Fi(t||v),p=M(Ze.cell,m==null?void 0:m.classNames,h==null?void 0:h.classNames,o&&Ze[`cell--align-${o}`]),x=g(g(g(g({},m==null?void 0:m.variables),h==null?void 0:h.variables),ee("--rs-table-p-vertical",d!=null?d:a)),ee("--rs-table-p-horizontal",l!=null?l:a));return i.jsx(s,k(g({},_),{className:p,rowSpan:n,colSpan:r,style:x,children:f}))},Li=e=>i.jsx(Qr,k(g({},e),{tagName:"td"})),Vi=e=>i.jsx(Qr,k(g({},e),{tagName:"th"})),Oi=e=>{const{highlighted:t,children:n,attributes:r}=e,o=M(Ze.row,t&&Ze["--row-highlighted"]);return i.jsx("tr",k(g({},r),{className:o,children:n}))},Vn=e=>i.jsx("tbody",{children:e.children}),Zr=e=>i.jsx("thead",{children:e.children}),vt=e=>{const{children:t,border:n,columnBorder:r,className:o,attributes:s}=e,a=M(Ze.root,o,n&&Ze["--border-outer"],r&&Ze["--border-column"]),[l]=c.Children.toArray(t);return i.jsx("div",k(g({},s),{className:a,children:i.jsx("table",{className:Ze.table,children:c.isValidElement(l)&&(l.type===Vn||l.type===Zr)?t:i.jsx(Vn,{children:t})})}))};vt.Cell=Li,vt.Heading=Vi,vt.Row=Oi,vt.Body=Vn,vt.Head=Zr;const eo=c.createContext({}),Di=eo.Provider,On=e=>{const r=c.useContext(eo),{id:t}=r,n=Fe(r,["id"]);return k(g({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},to=e=>{const{children:t,value:n,onChange:r,onSilentChange:o,itemWidth:s,variant:a,name:l,direction:d="row",size:f="medium"}=e,_=$e(),v=c.useRef(null),m=c.useRef(v.current),h=c.useRef(null),[p,x]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),y=b=>{b!==void 0&&o&&o({value:b,name:l})};return i.jsx(Di,{value:{value:n,name:l,size:f,direction:d,itemWidth:s,variant:a,onChange:r,id:_,setDefaultValue:y,elActiveRef:v,elPrevActiveRef:m,elScrollableRef:h,selection:p,setSelection:x},children:t})},qi=e=>{const{defaultValue:t,onChange:n}=e,[r,o]=c.useState(t),s=({value:l})=>{o(l),n&&n({value:l})},a=({value:l})=>{o(l)};return i.jsx(to,k(g({},e),{onChange:s,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"},Bi=(e,t)=>{const{value:n,children:r,icon:o,href:s,attributes:a}=e,{onChange:l,panelId:d,name:f,size:_,value:v,selection:m,elActiveRef:h,elPrevActiveRef:p,elScrollableRef:x}=On(n),y=c.useRef(null),b=v===n,w=b&&m.status==="idle",j=M(ne.item,w&&ne["--item-active"]),$=!!f,z={role:"tab",tabIndex:b?0:-1,"aria-selected":b},E=c.useCallback(()=>{if(!("current"in y))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");p.current=h.current,h.current=y.current},[h,p]),P=()=>{var L,Q,fe;if(s&&!l)return;const I=x.current,O=(L=y.current)==null?void 0:L.parentElement,S=(Q=h.current)==null?void 0:Q.parentElement;if(E(),l&&l({value:n,name:f}),!I||!O||!S||I.scrollWidth===I.clientWidth)return;const A=O.offsetLeft<S.offsetLeft,q=(O.offsetLeft-I.scrollLeft)/I.clientWidth;(A?q<.3:q>.5)&&((fe=y.current)==null||fe.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{b&&E()},[b,E]),i.jsx("div",k(g({},a),{className:j,ref:y,role:"presentation",children:i.jsxs(Ve,{ref:t,href:s,insetFocus:!0,onClick:f?void 0:P,className:ne.button,as:f?"label":void 0,attributes:k(g({},!$&&z),{"aria-controls":d}),children:[f&&i.jsx(Mn,{type:"radio",name:f,value:n,checked:w,onChange:P,className:ne.radio}),i.jsxs("span",{className:ne.buttonContent,children:[o&&i.jsx(de,{svg:o,className:ne.icon,size:4}),r&&i.jsx(te,{variant:_==="large"?"body-2":"body-3",children:r})]})]})}))},no=c.forwardRef(Bi),ro=(e,t)=>e===t||!e?null:e.classList.contains(ne.listItem)?e:ro(e.parentElement,t),Wi=e=>{const{children:t,className:n,attributes:r}=e,{value:o,setDefaultValue:s,itemWidth:a,variant:l,name:d,direction:f,size:_,selection:v,setSelection:m,elActiveRef:h,elPrevActiveRef:p,elScrollableRef:x}=On(),[y]=Ge(),[b,w]=c.useState(null),j=M(ne.root,_&&ne[`--size-${_}`],f&&ne[`--direction-${f}`],a&&ne[`--item-width-${a}`],l&&ne[`--variant-${l}`],b&&ne[`--cut-off-${b}`],n),$=M(ne.selector,v.status==="idle"&&ne["--selector-hidden"],v.status==="animated"&&ne["--selector-animated"]),z=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?-1:1),behavior:"smooth"})},E=()=>{x.current.scrollBy({left:Math.ceil(x.current.clientWidth/2)*(y?1:-1),behavior:"smooth"})},P=()=>{m(S=>k(g({},S),{status:"idle"}))},I=c.useCallback(S=>{if(!x.current)return null;const A=ro(S,x.current);return A?{scaleX:A.clientWidth,scaleY:A.clientHeight,top:A.offsetTop,left:A.offsetLeft}:null},[x]),{ref:O}=rt({"ArrowLeft, ArrowUp":S=>{d||(S.preventDefault(),Qo(x.current))},"ArrowRight, ArrowDown":S=>{d||(S.preventDefault(),Jo(x.current))},Home:S=>{d||(S.preventDefault(),Zo(x.current))},End:S=>{d||(S.preventDefault(),es(x.current))}});return le(()=>{if(o)return;const S=c.Children.toArray(t)[0];!S||S.type!==no||s(S.props.value)},[o]),le(()=>{if(!p.current||p.current===h.current)return;const S=I(p.current);S&&m(k(g({},S),{status:"prepared"}))},[o,I]),le(()=>{if(v.status!=="prepared"||!h.current)return;const S=I(h.current);S&&m(k(g({},S),{status:"animated"}))},[v]),le(()=>{const S=x.current;if(!S||f==="column")return;const A=()=>{S.clientWidth<S.scrollWidth||w(null);const L=S.scrollLeft*(y?-1:1),Q=L>1,fe=L+S.clientWidth<S.scrollWidth-1;if(fe&&Q)return w("both");if(Q)return w("start");if(fe)return w("end")},q=xo(A,100);return requestAnimationFrame(()=>{A()}),window.addEventListener("resize",q),S.addEventListener("scroll",q),()=>{window.removeEventListener("resize",q),S.removeEventListener("scroll",q)}},[y]),i.jsxs("div",k(g({},r),{className:j,children:[i.jsx("div",{className:ne.inner,ref:x,children:i.jsxs("div",{className:ne.list,role:"tablist",ref:O,children:[c.Children.map(t,(S,A)=>S?i.jsx("div",{className:ne.listItem,children:S},S.props.value||S.key||A):null),i.jsx("div",{onTransitionEnd:P,className:$,style:{"--rs-tab-selection-x":v.left,"--rs-tab-selection-y":v.top,"--rs-tab-selection-scale-x":v.scaleX,"--rs-tab-selection-scale-y":v.scaleY}})]})}),(b==="start"||b==="both")&&i.jsx("span",{className:ne.prev,children:i.jsx(je,{onClick:E,size:"small",icon:Lr,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(b==="end"||b==="both")&&i.jsx("span",{className:ne.next,children:i.jsx(je,{onClick:z,size:"small",icon:Jt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},Hi=e=>{const{value:t,children:n}=e,{value:r,panelId:o,buttonId:s}=On(t),a=t===r,l=M(ne.panel,!a&&ne["--panel-hidden"]);return i.jsx("div",{className:l,tabIndex:0,role:"tabpanel",id:o,"aria-labelledby":s,children:a&&n})},rn=e=>{const{value:t}=e;return t!==void 0?i.jsx(to,g({},e)):i.jsx(qi,g({},e))};rn.Item=no,rn.List=Wi,rn.Panel=Hi;const ht={root:"_root_16y23_1",input:"_input_16y23_5","--size-medium":"_--size-medium_16y23_1","--size-large":"_--size-large_16y23_1","--size-xlarge":"_--size-xlarge_16y23_1","--variant-faded":"_--variant-faded_16y23_69","--variant-headless":"_--variant-headless_16y23_80","--status-error":"_--status-error_16y23_87","--size-medium--m":"_--size-medium--m_16y23_1","--size-large--m":"_--size-large--m_16y23_1","--size-xlarge--m":"_--size-xlarge--m_16y23_1","--size-medium--l":"_--size-medium--l_16y23_1","--size-large--l":"_--size-large--l_16y23_1","--size-xlarge--l":"_--size-xlarge--l_16y23_1","--size-medium--xl":"_--size-medium--xl_16y23_1","--size-large--xl":"_--size-large--xl_16y23_1","--size-xlarge--xl":"_--size-xlarge--xl_16y23_1"},Ri=e=>{var $,z;const{onChange:t,onFocus:n,onBlur:r,name:o,value:s,defaultValue:a,placeholder:l,size:d="medium",variant:f="outline",className:_,attributes:v}=e,m=Ye(),h=$e(e.id),p=(($=m==null?void 0:m.attributes)==null?void 0:$.id)||((z=e.inputAttributes)==null?void 0:z.id)||h,x=(m==null?void 0:m.disabled)||e.disabled,y=(m==null?void 0:m.hasError)||e.hasError,b=g(g({},e.inputAttributes),m==null?void 0:m.attributes),w=M(ht.root,d&&W(ht,"--size",d),y&&ht["--status-error"],x&&ht["--disabled"],f&&ht[`--variant-${f}`],_),j=E=>{t&&t({name:o,value:E.target.value,event:E})};return i.jsx("div",k(g({},v),{className:w,children:i.jsx("textarea",k(g({},b),{className:ht.input,rows:3,disabled:x,name:o,placeholder:l,value:s,defaultValue:a,onChange:j,onFocus:n||(b==null?void 0:b.onFocus),onBlur:r||(b==null?void 0:b.onBlur),id:p}))}))},Dn={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},qn=e=>{const{children:t,markerSlot:n,className:r,attributes:o}=e,s=n!==null,a=M(Dn.item,!s&&Dn["item--full-width"],r);return i.jsxs(U,{as:"li",direction:"row",align:"stretch",gap:3,attributes:o,className:a,children:[s&&i.jsx("span",{className:Dn.marker,children:n}),i.jsx(U.Item,{grow:!0,children:t})]})},oo=e=>{const{children:t,className:n,attributes:r}=e,o=M(n);return i.jsx("ul",k(g({},r),{className:o,children:c.Children.map(t,(s,a)=>(s==null?void 0:s.type)===qn?s:i.jsx(qn,{children:s},a))}))};oo.Item=qn;const Ui={root:"_root_9090g_1"},Ki=e=>{const{id:t,text:n,children:r,onOpen:o,onClose:s,position:a="bottom",active:l}=e;return i.jsxs(Xe,{id:t,active:l,position:a,onOpen:o,onClose:s,triggerType:"hover",children:[i.jsx(Xe.Trigger,{children:r}),i.jsx(Xe.Content,{children:i.jsx(ct,{colorMode:"inverted",children:i.jsx(te,{variant:"caption-1",className:Ui.root,children:n})})})]})},gt={m:660,l:900,xl:1280},so={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)`},Yi=e=>{const{defaultViewport:t}=c.useContext(jn),[n,r]=c.useState(t);return le(()=>{const s=Object.keys(so).map(a=>{const l=window.matchMedia(so[a]);return{mq:l,handler:()=>l.matches&&r(a)}});return s.forEach(({handler:a,mq:l})=>{a(),l.addEventListener("change",a)}),()=>{s.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},Gi=e=>{const{w:t="auto",h:n=50,children:r}=e;return i.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=vn,N.ActionBar=qo,N.Actionable=Ve,N.Alert=Wo,N.Autocomplete=Ir,N.Avatar=Fs,N.Badge=Sr,N.Breadcrumbs=Fr,N.Button=je,N.Card=Rs,N.Carousel=Us,N.Checkbox=Qs,N.CheckboxGroup=Xs,N.Container=ei,N.Dismissible=ti,N.Divider=Qn,N.DropdownMenu=we,N.FormControl=Vt,N.Hidden=dn,N.HiddenVisually=ri,N.Hotkey=oi,N.Icon=de,N.Image=si,N.Link=Ar,N.Loader=Pr,N.MenuItem=Tn,N.Modal=An,N.Overlay=Wr,N.Placeholder=Gi,N.Popover=dt,N.Progress=ci,N.Radio=mi,N.RadioGroup=_i,N.Reshaped=ki,N.Scrim=Ni,N.Select=Ei,N.Skeleton=Ti,N.Slider=Si,N.Switch=Pi,N.Table=vt,N.Tabs=rn,N.Text=te,N.TextArea=Ri,N.TextField=ar,N.Theme=ct,N.Timeline=oo,N.Tooltip=Ki,N.View=U,N.classNames=M,N.responsiveClassNames=W,N.responsivePropDependency=Le,N.useFormControl=Ye,N.useHotkeys=rt,N.useIsomorphicLayoutEffect=le,N.useRTL=Ge,N.useResponsiveClientValue=Yi,N.useScrollLock=Br,N.useTheme=$r,N.useToast=fi,N.useToggle=Sn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|