@saleor/macaw-ui
Version:
Saleor's UI component library
25 lines (23 loc) • 470 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),Je=require("react-dom");function Ni(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const os=Ni(a),Ur=Ni(Je);function Yr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Vo={exports:{}},qe={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var T8;function Gr(){if(T8)return qe;T8=1;var s=a,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function f(l,r,p){var c,d={},h=null,_=null;p!==void 0&&(h=""+p),r.key!==void 0&&(h=""+r.key),r.ref!==void 0&&(_=r.ref);for(c in r)o.call(r,c)&&!n.hasOwnProperty(c)&&(d[c]=r[c]);if(l&&l.defaultProps)for(c in r=l.defaultProps,r)d[c]===void 0&&(d[c]=r[c]);return{$$typeof:e,type:l,key:h,ref:_,props:d,_owner:i.current}}return qe.Fragment=t,qe.jsx=f,qe.jsxs=f,qe}var Fe={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var M8;function Xr(){return M8||(M8=1,process.env.NODE_ENV!=="production"&&function(){var s=a,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),l=Symbol.for("react.context"),r=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),y=Symbol.iterator,C="@@iterator";function v(w){if(w===null||typeof w!="object")return null;var q=y&&w[y]||w[C];return typeof q=="function"?q:null}var k=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(w){{for(var q=arguments.length,ss=new Array(q>1?q-1:0),fs=1;fs<q;fs++)ss[fs-1]=arguments[fs];g("error",w,ss)}}function g(w,q,ss){{var fs=k.ReactDebugCurrentFrame,us=fs.getStackAddendum();us!==""&&(q+="%s",ss=ss.concat([us]));var gs=ss.map(function(ps){return String(ps)});gs.unshift("Warning: "+q),Function.prototype.apply.call(console[w],console,gs)}}var x=!1,m=!1,I=!1,P=!1,R=!1,E;E=Symbol.for("react.module.reference");function j(w){return!!(typeof w=="string"||typeof w=="function"||w===o||w===n||R||w===i||w===p||w===c||P||w===_||x||m||I||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===d||w.$$typeof===f||w.$$typeof===l||w.$$typeof===r||w.$$typeof===E||w.getModuleId!==void 0))}function M(w,q,ss){var fs=w.displayName;if(fs)return fs;var us=q.displayName||q.name||"";return us!==""?ss+"("+us+")":ss}function L(w){return w.displayName||"Context"}function X(w){if(w==null)return null;if(typeof w.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case o:return"Fragment";case t:return"Portal";case n:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case c:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case l:var q=w;return L(q)+".Consumer";case f:var ss=w;return L(ss._context)+".Provider";case r:return M(w,w.render,"ForwardRef");case d:var fs=w.displayName||null;return fs!==null?fs:X(w.type)||"Memo";case h:{var us=w,gs=us._payload,ps=us._init;try{return X(ps(gs))}catch{return null}}}return null}var A=Object.assign,B=0,K,ts,Z,T,$,D,V;function N(){}N.__reactDisabledLog=!0;function O(){{if(B===0){K=console.log,ts=console.info,Z=console.warn,T=console.error,$=console.group,D=console.groupCollapsed,V=console.groupEnd;var w={configurable:!0,enumerable:!0,value:N,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}B++}}function H(){{if(B--,B===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},w,{value:K}),info:A({},w,{value:ts}),warn:A({},w,{value:Z}),error:A({},w,{value:T}),group:A({},w,{value:$}),groupCollapsed:A({},w,{value:D}),groupEnd:A({},w,{value:V})})}B<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=k.ReactCurrentDispatcher,U;function G(w,q,ss){{if(U===void 0)try{throw Error()}catch(us){var fs=us.stack.trim().match(/\n( *(at )?)/);U=fs&&fs[1]||""}return`
`+U+w}}var Q=!1,es;{var ls=typeof WeakMap=="function"?WeakMap:Map;es=new ls}function W(w,q){if(!w||Q)return"";{var ss=es.get(w);if(ss!==void 0)return ss}var fs;Q=!0;var us=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gs;gs=z.current,z.current=null,O();try{if(q){var ps=function(){throw Error()};if(Object.defineProperty(ps.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ps,[])}catch(oe){fs=oe}Reflect.construct(w,[],ps)}else{try{ps.call()}catch(oe){fs=oe}w.call(ps.prototype)}}else{try{throw Error()}catch(oe){fs=oe}w()}}catch(oe){if(oe&&fs&&typeof oe.stack=="string"){for(var as=oe.stack.split(`
`),js=fs.stack.split(`
`),Is=as.length-1,Rs=js.length-1;Is>=1&&Rs>=0&&as[Is]!==js[Rs];)Rs--;for(;Is>=1&&Rs>=0;Is--,Rs--)if(as[Is]!==js[Rs]){if(Is!==1||Rs!==1)do if(Is--,Rs--,Rs<0||as[Is]!==js[Rs]){var Hs=`
`+as[Is].replace(" at new "," at ");return w.displayName&&Hs.includes("<anonymous>")&&(Hs=Hs.replace("<anonymous>",w.displayName)),typeof w=="function"&&es.set(w,Hs),Hs}while(Is>=1&&Rs>=0);break}}}finally{Q=!1,z.current=gs,H(),Error.prepareStackTrace=us}var Pe=w?w.displayName||w.name:"",O8=Pe?G(Pe):"";return typeof w=="function"&&es.set(w,O8),O8}function cs(w,q,ss){return W(w,!1)}function J(w){var q=w.prototype;return!!(q&&q.isReactComponent)}function xs(w,q,ss){if(w==null)return"";if(typeof w=="function")return W(w,J(w));if(typeof w=="string")return G(w);switch(w){case p:return G("Suspense");case c:return G("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case r:return cs(w.render);case d:return xs(w.type,q,ss);case h:{var fs=w,us=fs._payload,gs=fs._init;try{return xs(gs(us),q,ss)}catch{}}}return""}var vs=Object.prototype.hasOwnProperty,ws={},Ps=k.ReactDebugCurrentFrame;function Ss(w){if(w){var q=w._owner,ss=xs(w.type,w._source,q?q.type:null);Ps.setExtraStackFrame(ss)}else Ps.setExtraStackFrame(null)}function te(w,q,ss,fs,us){{var gs=Function.call.bind(vs);for(var ps in w)if(gs(w,ps)){var as=void 0;try{if(typeof w[ps]!="function"){var js=Error((fs||"React class")+": "+ss+" type `"+ps+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[ps]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw js.name="Invariant Violation",js}as=w[ps](q,ps,fs,ss,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Is){as=Is}as&&!(as instanceof Error)&&(Ss(us),b("%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).",fs||"React class",ss,ps,typeof as),Ss(null)),as instanceof Error&&!(as.message in ws)&&(ws[as.message]=!0,Ss(us),b("Failed %s type: %s",ss,as.message),Ss(null))}}}var $s=Array.isArray;function Ds(w){return $s(w)}function ve(w){{var q=typeof Symbol=="function"&&Symbol.toStringTag,ss=q&&w[Symbol.toStringTag]||w.constructor.name||"Object";return ss}}function Ee(w){try{return Fs(w),!1}catch{return!0}}function Fs(w){return""+w}function Gs(w){if(Ee(w))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ve(w)),Fs(w)}var Ks=k.ReactCurrentOwner,Vs={key:!0,ref:!0,__self:!0,__source:!0},ht,I8;function Or(w){if(vs.call(w,"ref")){var q=Object.getOwnPropertyDescriptor(w,"ref").get;if(q&&q.isReactWarning)return!1}return w.ref!==void 0}function Tr(w){if(vs.call(w,"key")){var q=Object.getOwnPropertyDescriptor(w,"key").get;if(q&&q.isReactWarning)return!1}return w.key!==void 0}function Mr(w,q){typeof w.ref=="string"&&Ks.current}function Vr(w,q){{var ss=function(){ht||(ht=!0,b("%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)",q))};ss.isReactWarning=!0,Object.defineProperty(w,"key",{get:ss,configurable:!0})}}function Ar(w,q){{var ss=function(){I8||(I8=!0,b("%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)",q))};ss.isReactWarning=!0,Object.defineProperty(w,"ref",{get:ss,configurable:!0})}}var Nr=function(w,q,ss,fs,us,gs,ps){var as={$$typeof:e,type:w,key:q,ref:ss,props:ps,_owner:gs};return as._store={},Object.defineProperty(as._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(as,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fs}),Object.defineProperty(as,"_source",{configurable:!1,enumerable:!1,writable:!1,value:us}),Object.freeze&&(Object.freeze(as.props),Object.freeze(as)),as};function Lr(w,q,ss,fs,us){{var gs,ps={},as=null,js=null;ss!==void 0&&(Gs(ss),as=""+ss),Tr(q)&&(Gs(q.key),as=""+q.key),Or(q)&&(js=q.ref,Mr(q,us));for(gs in q)vs.call(q,gs)&&!Vs.hasOwnProperty(gs)&&(ps[gs]=q[gs]);if(w&&w.defaultProps){var Is=w.defaultProps;for(gs in Is)ps[gs]===void 0&&(ps[gs]=Is[gs])}if(as||js){var Rs=typeof w=="function"?w.displayName||w.name||"Unknown":w;as&&Vr(ps,Rs),js&&Ar(ps,Rs)}return Nr(w,as,js,us,fs,Ks.current,ps)}}var ho=k.ReactCurrentOwner,E8=k.ReactDebugCurrentFrame;function Re(w){if(w){var q=w._owner,ss=xs(w.type,w._source,q?q.type:null);E8.setExtraStackFrame(ss)}else E8.setExtraStackFrame(null)}var bo;bo=!1;function mo(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function R8(){{if(ho.current){var w=X(ho.current.type);if(w)return`
Check the render method of \``+w+"`."}return""}}function Wr(w){return""}var P8={};function zr(w){{var q=R8();if(!q){var ss=typeof w=="string"?w:w.displayName||w.name;ss&&(q=`
Check the top-level render call using <`+ss+">.")}return q}}function S8(w,q){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var ss=zr(q);if(P8[ss])return;P8[ss]=!0;var fs="";w&&w._owner&&w._owner!==ho.current&&(fs=" It was passed a child from "+X(w._owner.type)+"."),Re(w),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ss,fs),Re(null)}}function D8(w,q){{if(typeof w!="object")return;if(Ds(w))for(var ss=0;ss<w.length;ss++){var fs=w[ss];mo(fs)&&S8(fs,q)}else if(mo(w))w._store&&(w._store.validated=!0);else if(w){var us=v(w);if(typeof us=="function"&&us!==w.entries)for(var gs=us.call(w),ps;!(ps=gs.next()).done;)mo(ps.value)&&S8(ps.value,q)}}}function Hr(w){{var q=w.type;if(q==null||typeof q=="string")return;var ss;if(typeof q=="function")ss=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===r||q.$$typeof===d))ss=q.propTypes;else return;if(ss){var fs=X(q);te(ss,w.props,"prop",fs,w)}else if(q.PropTypes!==void 0&&!bo){bo=!0;var us=X(q);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",us||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qr(w){{for(var q=Object.keys(w.props),ss=0;ss<q.length;ss++){var fs=q[ss];if(fs!=="children"&&fs!=="key"){Re(w),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fs),Re(null);break}}w.ref!==null&&(Re(w),b("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}function j8(w,q,ss,fs,us,gs){{var ps=j(w);if(!ps){var as="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(as+=" 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 js=Wr();js?as+=js:as+=R8();var Is;w===null?Is="null":Ds(w)?Is="array":w!==void 0&&w.$$typeof===e?(Is="<"+(X(w.type)||"Unknown")+" />",as=" Did you accidentally export a JSX literal instead of a component?"):Is=typeof w,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Is,as)}var Rs=Lr(w,q,ss,us,gs);if(Rs==null)return Rs;if(ps){var Hs=q.children;if(Hs!==void 0)if(fs)if(Ds(Hs)){for(var Pe=0;Pe<Hs.length;Pe++)D8(Hs[Pe],w);Object.freeze&&Object.freeze(Hs)}else b("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 D8(Hs,w)}return w===o?qr(Rs):Hr(Rs),Rs}}function Fr(w,q,ss){return j8(w,q,ss,!0)}function Kr(w,q,ss){return j8(w,q,ss,!1)}var Br=Kr,Zr=Fr;Fe.Fragment=o,Fe.jsx=Br,Fe.jsxs=Zr}()),Fe}process.env.NODE_ENV==="production"?Vo.exports=Gr():Vo.exports=Xr();var u=Vo.exports;function S(){return S=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)({}).hasOwnProperty.call(t,o)&&(s[o]=t[o])}return s},S.apply(null,arguments)}function Jr(s,e){const t=a.createContext(e);function o(n){const{children:f,...l}=n,r=a.useMemo(()=>l,Object.values(l));return a.createElement(t.Provider,{value:r},f)}function i(n){const f=a.useContext(t);if(f)return f;if(e!==void 0)return e;throw new Error(`\`${n}\` must be used within \`${s}\``)}return o.displayName=s+"Provider",[o,i]}function Ws(s,e=[]){let t=[];function o(n,f){const l=a.createContext(f),r=t.length;t=[...t,f];function p(d){const{scope:h,children:_,...y}=d,C=(h==null?void 0:h[s][r])||l,v=a.useMemo(()=>y,Object.values(y));return a.createElement(C.Provider,{value:v},_)}function c(d,h){const _=(h==null?void 0:h[s][r])||l,y=a.useContext(_);if(y)return y;if(f!==void 0)return f;throw new Error(`\`${d}\` must be used within \`${n}\``)}return p.displayName=n+"Provider",[p,c]}const i=()=>{const n=t.map(f=>a.createContext(f));return function(l){const r=(l==null?void 0:l[s])||n;return a.useMemo(()=>({[`__scope${s}`]:{...l,[s]:r}}),[l,r])}};return i.scopeName=s,[o,Qr(i,...e)]}function Qr(...s){const e=s[0];if(s.length===1)return e;const t=()=>{const o=s.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(n){const f=o.reduce((l,{useScope:r,scopeName:p})=>{const d=r(n)[`__scope${p}`];return{...l,...d}},{});return a.useMemo(()=>({[`__scope${e.scopeName}`]:f}),[f])}};return t.scopeName=e.scopeName,t}function s1(s,e){typeof s=="function"?s(e):s!=null&&(s.current=e)}function tn(...s){return e=>s.forEach(t=>s1(t,e))}function ys(...s){return a.useCallback(tn(...s),s)}const ke=a.forwardRef((s,e)=>{const{children:t,...o}=s,i=a.Children.toArray(t),n=i.find(e1);if(n){const f=n.props.children,l=i.map(r=>r===n?a.Children.count(f)>1?a.Children.only(null):a.isValidElement(f)?f.props.children:null:r);return a.createElement(Ao,S({},o,{ref:e}),a.isValidElement(f)?a.cloneElement(f,void 0,l):null)}return a.createElement(Ao,S({},o,{ref:e}),t)});ke.displayName="Slot";const Ao=a.forwardRef((s,e)=>{const{children:t,...o}=s;return a.isValidElement(t)?a.cloneElement(t,{...t1(o,t.props),ref:e?tn(e,t.ref):t.ref}):a.Children.count(t)>1?a.Children.only(null):null});Ao.displayName="SlotClone";const Li=({children:s})=>a.createElement(a.Fragment,null,s);function e1(s){return a.isValidElement(s)&&s.type===Li}function t1(s,e){const t={...e};for(const o in e){const i=s[o],n=e[o];/^on[A-Z]/.test(o)?i&&n?t[o]=(...l)=>{n(...l),i(...l)}:i&&(t[o]=i):o==="style"?t[o]={...i,...n}:o==="className"&&(t[o]=[i,n].filter(Boolean).join(" "))}return{...s,...t}}function on(s){const e=s+"CollectionProvider",[t,o]=Ws(e),[i,n]=t(e,{collectionRef:{current:null},itemMap:new Map}),f=_=>{const{scope:y,children:C}=_,v=a.useRef(null),k=a.useRef(new Map).current;return a.createElement(i,{scope:y,itemMap:k,collectionRef:v},C)},l=s+"CollectionSlot",r=a.forwardRef((_,y)=>{const{scope:C,children:v}=_,k=n(l,C),b=ys(y,k.collectionRef);return a.createElement(ke,{ref:b},v)}),p=s+"CollectionItemSlot",c="data-radix-collection-item",d=a.forwardRef((_,y)=>{const{scope:C,children:v,...k}=_,b=a.useRef(null),g=ys(y,b),x=n(p,C);return a.useEffect(()=>(x.itemMap.set(b,{ref:b,...k}),()=>void x.itemMap.delete(b))),a.createElement(ke,{[c]:"",ref:g},v)});function h(_){const y=n(s+"CollectionConsumer",_);return a.useCallback(()=>{const v=y.collectionRef.current;if(!v)return[];const k=Array.from(v.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((x,m)=>k.indexOf(x.ref.current)-k.indexOf(m.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:f,Slot:r,ItemSlot:d},h,o]}function is(s,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(s==null||s(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function se(s){const e=a.useRef(s);return a.useEffect(()=>{e.current=s}),a.useMemo(()=>(...t)=>{var o;return(o=e.current)===null||o===void 0?void 0:o.call(e,...t)},[])}function Us({prop:s,defaultProp:e,onChange:t=()=>{}}){const[o,i]=o1({defaultProp:e,onChange:t}),n=s!==void 0,f=n?s:o,l=se(t),r=a.useCallback(p=>{if(n){const d=typeof p=="function"?p(s):p;d!==s&&l(d)}else i(p)},[n,s,i,l]);return[f,r]}function o1({defaultProp:s,onChange:e}){const t=a.useState(s),[o]=t,i=a.useRef(o),n=se(e);return a.useEffect(()=>{i.current!==o&&(n(o),i.current=o)},[o,i,n]),t}const n1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Cs=n1.reduce((s,e)=>{const t=a.forwardRef((o,i)=>{const{asChild:n,...f}=o,l=n?ke:e;return a.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),a.createElement(l,S({},f,{ref:i}))});return t.displayName=`Primitive.${e}`,{...s,[e]:t}},{});function Wi(s,e){s&&Je.flushSync(()=>s.dispatchEvent(e))}const we=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function i1(s,e){return a.useReducer((t,o)=>{const i=e[t][o];return i??t},s)}const zs=s=>{const{present:e,children:t}=s,o=f1(e),i=typeof t=="function"?t({present:o.isPresent}):a.Children.only(t),n=ys(o.ref,i.ref);return typeof t=="function"||o.isPresent?a.cloneElement(i,{ref:n}):null};zs.displayName="Presence";function f1(s){const[e,t]=a.useState(),o=a.useRef({}),i=a.useRef(s),n=a.useRef("none"),f=s?"mounted":"unmounted",[l,r]=i1(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const p=bt(o.current);n.current=l==="mounted"?p:"none"},[l]),we(()=>{const p=o.current,c=i.current;if(c!==s){const h=n.current,_=bt(p);s?r("MOUNT"):_==="none"||(p==null?void 0:p.display)==="none"?r("UNMOUNT"):r(c&&h!==_?"ANIMATION_OUT":"UNMOUNT"),i.current=s}},[s,r]),we(()=>{if(e){const p=d=>{const _=bt(o.current).includes(d.animationName);d.target===e&&_&&Je.flushSync(()=>r("ANIMATION_END"))},c=d=>{d.target===e&&(n.current=bt(o.current))};return e.addEventListener("animationstart",c),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{e.removeEventListener("animationstart",c),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else r("ANIMATION_END")},[e,r]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(p=>{p&&(o.current=getComputedStyle(p)),t(p)},[])}}function bt(s){return(s==null?void 0:s.animationName)||"none"}const l1=os.useId||(()=>{});let a1=0;function Js(s){const[e,t]=os.useState(l1());return we(()=>{t(o=>o??String(a1++))},[s]),e?`radix-${e}`:""}const zi="Collapsible",[r1,Hi]=Ws(zi),[p1,nn]=r1(zi),d1=a.forwardRef((s,e)=>{const{__scopeCollapsible:t,open:o,defaultOpen:i,disabled:n,onOpenChange:f,...l}=s,[r=!1,p]=Us({prop:o,defaultProp:i,onChange:f});return a.createElement(p1,{scope:t,disabled:n,contentId:Js(),open:r,onOpenToggle:a.useCallback(()=>p(c=>!c),[p])},a.createElement(Cs.div,S({"data-state":fn(r),"data-disabled":n?"":void 0},l,{ref:e})))}),c1="CollapsibleTrigger",u1=a.forwardRef((s,e)=>{const{__scopeCollapsible:t,...o}=s,i=nn(c1,t);return a.createElement(Cs.button,S({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":fn(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},o,{ref:e,onClick:is(s.onClick,i.onOpenToggle)}))}),qi="CollapsibleContent",_1=a.forwardRef((s,e)=>{const{forceMount:t,...o}=s,i=nn(qi,s.__scopeCollapsible);return a.createElement(zs,{present:t||i.open},({present:n})=>a.createElement(h1,S({},o,{ref:e,present:n})))}),h1=a.forwardRef((s,e)=>{const{__scopeCollapsible:t,present:o,children:i,...n}=s,f=nn(qi,t),[l,r]=a.useState(o),p=a.useRef(null),c=ys(e,p),d=a.useRef(0),h=d.current,_=a.useRef(0),y=_.current,C=f.open||l,v=a.useRef(C),k=a.useRef();return a.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),we(()=>{const b=p.current;if(b){k.current=k.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const g=b.getBoundingClientRect();d.current=g.height,_.current=g.width,v.current||(b.style.transitionDuration=k.current.transitionDuration,b.style.animationName=k.current.animationName),r(o)}},[f.open,o]),a.createElement(Cs.div,S({"data-state":fn(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!C},n,{ref:c,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...s.style}}),C&&i)});function fn(s){return s?"open":"closed"}const b1=d1,m1=u1,v1=_1,C1=a.createContext(void 0);function Bt(s){const e=a.useContext(C1);return s||e||"ltr"}const he="Accordion",g1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ln,x1,y1]=on(he),[Zt]=Ws(he,[y1,Hi]),an=Hi(),Fi=a.forwardRef((s,e)=>{const{type:t,...o}=s,i=o,n=o;return a.createElement(ln.Provider,{scope:s.__scopeAccordion},t==="multiple"?a.createElement(I1,S({},n,{ref:e})):a.createElement($1,S({},i,{ref:e})))});Fi.propTypes={type(s){const e=s.value||s.defaultValue;return s.type&&!["single","multiple"].includes(s.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):s.type==="multiple"&&typeof e=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):s.type==="single"&&Array.isArray(e)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Ki,k1]=Zt(he),[Bi,w1]=Zt(he,{collapsible:!1}),$1=a.forwardRef((s,e)=>{const{value:t,defaultValue:o,onValueChange:i=()=>{},collapsible:n=!1,...f}=s,[l,r]=Us({prop:t,defaultProp:o,onChange:i});return a.createElement(Ki,{scope:s.__scopeAccordion,value:l?[l]:[],onItemOpen:r,onItemClose:a.useCallback(()=>n&&r(""),[n,r])},a.createElement(Bi,{scope:s.__scopeAccordion,collapsible:n},a.createElement(Zi,S({},f,{ref:e}))))}),I1=a.forwardRef((s,e)=>{const{value:t,defaultValue:o,onValueChange:i=()=>{},...n}=s,[f=[],l]=Us({prop:t,defaultProp:o,onChange:i}),r=a.useCallback(c=>l((d=[])=>[...d,c]),[l]),p=a.useCallback(c=>l((d=[])=>d.filter(h=>h!==c)),[l]);return a.createElement(Ki,{scope:s.__scopeAccordion,value:f,onItemOpen:r,onItemClose:p},a.createElement(Bi,{scope:s.__scopeAccordion,collapsible:!0},a.createElement(Zi,S({},n,{ref:e}))))}),[E1,Ut]=Zt(he),Zi=a.forwardRef((s,e)=>{const{__scopeAccordion:t,disabled:o,dir:i,orientation:n="vertical",...f}=s,l=a.useRef(null),r=ys(l,e),p=x1(t),d=Bt(i)==="ltr",h=is(s.onKeyDown,_=>{var y;if(!g1.includes(_.key))return;const C=_.target,v=p().filter(E=>{var j;return!((j=E.ref.current)!==null&&j!==void 0&&j.disabled)}),k=v.findIndex(E=>E.ref.current===C),b=v.length;if(k===-1)return;_.preventDefault();let g=k;const x=0,m=b-1,I=()=>{g=k+1,g>m&&(g=x)},P=()=>{g=k-1,g<x&&(g=m)};switch(_.key){case"Home":g=x;break;case"End":g=m;break;case"ArrowRight":n==="horizontal"&&(d?I():P());break;case"ArrowDown":n==="vertical"&&I();break;case"ArrowLeft":n==="horizontal"&&(d?P():I());break;case"ArrowUp":n==="vertical"&&P();break}const R=g%b;(y=v[R].ref.current)===null||y===void 0||y.focus()});return a.createElement(E1,{scope:t,disabled:o,direction:i,orientation:n},a.createElement(ln.Slot,{scope:t},a.createElement(Cs.div,S({},f,{"data-orientation":n,ref:r,onKeyDown:o?void 0:h}))))}),No="AccordionItem",[R1,rn]=Zt(No),P1=a.forwardRef((s,e)=>{const{__scopeAccordion:t,value:o,...i}=s,n=Ut(No,t),f=k1(No,t),l=an(t),r=Js(),p=o&&f.value.includes(o)||!1,c=n.disabled||s.disabled;return a.createElement(R1,{scope:t,open:p,disabled:c,triggerId:r},a.createElement(b1,S({"data-orientation":n.orientation,"data-state":Gi(p)},l,i,{ref:e,disabled:c,open:p,onOpenChange:d=>{d?f.onItemOpen(o):f.onItemClose(o)}})))}),S1="AccordionHeader",D1=a.forwardRef((s,e)=>{const{__scopeAccordion:t,...o}=s,i=Ut(he,t),n=rn(S1,t);return a.createElement(Cs.h3,S({"data-orientation":i.orientation,"data-state":Gi(n.open),"data-disabled":n.disabled?"":void 0},o,{ref:e}))}),V8="AccordionTrigger",Ui=a.forwardRef((s,e)=>{const{__scopeAccordion:t,...o}=s,i=Ut(he,t),n=rn(V8,t),f=w1(V8,t),l=an(t);return a.createElement(ln.ItemSlot,{scope:t},a.createElement(m1,S({"aria-disabled":n.open&&!f.collapsible||void 0,"data-orientation":i.orientation,id:n.triggerId},l,o,{ref:e})))}),j1="AccordionContent",Yi=a.forwardRef((s,e)=>{const{__scopeAccordion:t,...o}=s,i=Ut(he,t),n=rn(j1,t),f=an(t);return a.createElement(v1,S({role:"region","aria-labelledby":n.triggerId,"data-orientation":i.orientation},f,o,{ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...s.style}}))});function Gi(s){return s?"open":"closed"}const Lo=Fi,Xi=P1,O1=D1,T1=Ui,M1=Yi;function V1(...s){const e=s.filter(t=>!!t&&t!==" ").map(t=>t==null?void 0:t.toString().trim());return e.length===0?void 0:e.join(" ")}function A1(s,e){let t=!1,o={},i={},n={};for(const f in s)if(f[0]==="_"&&f[1]==="_"){const l=f.substring(2);n[l]=s[f]}else e.properties.has(f)?(t=!0,o[f]=s[f]):i[f]=s[f];return{hasAtomProps:t,atomProps:o,otherProps:i,customProps:n}}function N1({atoms:s,defaultClassName:e}){const t=a.forwardRef(({as:o="div",className:i,style:n,...f},l)=>{const{atomProps:r,customProps:p,otherProps:c}=A1(f,s);return a.createElement(o,{ref:l,style:{...n,...p},...c,className:V1(i,s(r),e)})});return t.displayName="DessertBox",t}var Be={spacing:{0:"var(--mu-spacing-0)",1:"var(--mu-spacing-1)",2:"var(--mu-spacing-2)",3:"var(--mu-spacing-3)",4:"var(--mu-spacing-4)",5:"var(--mu-spacing-5)",6:"var(--mu-spacing-6)",7:"var(--mu-spacing-7)",8:"var(--mu-spacing-8)",9:"var(--mu-spacing-9)",10:"var(--mu-spacing-10)",11:"var(--mu-spacing-11)",12:"var(--mu-spacing-12)",14:"var(--mu-spacing-14)",16:"var(--mu-spacing-16)",20:"var(--mu-spacing-20)",24:"var(--mu-spacing-24)",28:"var(--mu-spacing-28)",32:"var(--mu-spacing-32)",36:"var(--mu-spacing-36)",40:"var(--mu-spacing-40)",44:"var(--mu-spacing-44)",48:"var(--mu-spacing-48)",52:"var(--mu-spacing-52)",px:"var(--mu-spacing-px)","0.5":"var(--mu-spacing-0-5)","1.5":"var(--mu-spacing-1-5)","2.5":"var(--mu-spacing-2-5)","3.5":"var(--mu-spacing-3-5)"},colors:{background:{accent1:"var(--mu-colors-background-accent1)",accent1Hovered:"var(--mu-colors-background-accent1-hovered)",accent1Focused:"var(--mu-colors-background-accent1-focused)",accent1Pressed:"var(--mu-colors-background-accent1-pressed)",buttonCriticalDisabled:"var(--mu-colors-background-button-critical-disabled)",buttonCriticalPrimary:"var(--mu-colors-background-button-critical-primary)",buttonCriticalPrimaryFocused:"var(--mu-colors-background-button-critical-primary-focused)",buttonCriticalPrimaryHovered:"var(--mu-colors-background-button-critical-primary-hovered)",buttonCriticalPrimaryPressed:"var(--mu-colors-background-button-critical-primary-pressed)",buttonDefaultDisabled:"var(--mu-colors-background-button-default-disabled)",buttonDefaultPrimary:"var(--mu-colors-background-button-default-primary)",buttonDefaultPrimaryFocused:"var(--mu-colors-background-button-default-primary-focused)",buttonDefaultPrimaryHovered:"var(--mu-colors-background-button-default-primary-hovered)",buttonDefaultPrimaryPressed:"var(--mu-colors-background-button-default-primary-pressed)",buttonDefaultSecondary:"var(--mu-colors-background-button-default-secondary)",buttonDefaultSecondaryFocused:"var(--mu-colors-background-button-default-secondary-focused)",buttonDefaultSecondaryHovered:"var(--mu-colors-background-button-default-secondary-hovered)",buttonDefaultSecondaryPressed:"var(--mu-colors-background-button-default-secondary-pressed)",buttonDefaultTertiary:"var(--mu-colors-background-button-default-tertiary)",buttonDefaultTertiaryFocused:"var(--mu-colors-background-button-default-tertiary-focused)",buttonDefaultTertiaryHovered:"var(--mu-colors-background-button-default-tertiary-hovered)",buttonDefaultTertiaryPressed:"var(--mu-colors-background-button-default-tertiary-pressed)",critical1:"var(--mu-colors-background-critical1)",critical1Focused:"var(--mu-colors-background-critical1-focused)",critical1Hovered:"var(--mu-colors-background-critical1-hovered)",critical1Pressed:"var(--mu-colors-background-critical1-pressed)",critical2:"var(--mu-colors-background-critical2)",default1:"var(--mu-colors-background-default1)",default1Focused:"var(--mu-colors-background-default1-focused)",default1Hovered:"var(--mu-colors-background-default1-hovered)",default1Pressed:"var(--mu-colors-background-default1-pressed)",default2:"var(--mu-colors-background-default2)",default3:"var(--mu-colors-background-default3)",defaultDisabled:"var(--mu-colors-background-default-disabled)",info1:"var(--mu-colors-background-info1)",success1:"var(--mu-colors-background-success1)",warning1:"var(--mu-colors-background-warning1)"},text:{accent1:"var(--mu-colors-text-accent1)",buttonCriticalDisabled:"var(--mu-colors-text-button-critical-disabled)",buttonCriticalPrimary:"var(--mu-colors-text-button-critical-primary)",buttonDefaultPrimary:"var(--mu-colors-text-button-default-primary)",buttonDefaultSecondary:"var(--mu-colors-text-button-default-secondary)",buttonDefaultTertiary:"var(--mu-colors-text-button-default-tertiary)",critical1:"var(--mu-colors-text-critical1)",critical2:"var(--mu-colors-text-critical2)",default1:"var(--mu-colors-text-default1)",default2:"var(--mu-colors-text-default2)",defaultDisabled:"var(--mu-colors-text-default-disabled)",info1:"var(--mu-colors-text-info1)",success1:"var(--mu-colors-text-success1)",warning1:"var(--mu-colors-text-warning1)"},border:{accent1:"var(--mu-colors-border-accent1)",critical1:"var(--mu-colors-border-critical1)",default1:"var(--mu-colors-border-default1)",default1Focused:"var(--mu-colors-border-default1-focused)",default1Hovered:"var(--mu-colors-border-default1-hovered)",default2:"var(--mu-colors-border-default2)",defaultDisabled:"var(--mu-colors-border-default-disabled)",info1:"var(--mu-colors-border-info1)",success1:"var(--mu-colors-border-success1)",warning1:"var(--mu-colors-border-warning1)"}},fontSize:{1:"var(--mu-font-size-1)",2:"var(--mu-font-size-2)",3:"var(--mu-font-size-3)",4:"var(--mu-font-size-4)",5:"var(--mu-font-size-5)",6:"var(--mu-font-size-6)",7:"var(--mu-font-size-7)",8:"var(--mu-font-size-8)",9:"var(--mu-font-size-9)",10:"var(--mu-font-size-10)",11:"var(--mu-font-size-11)"},borderRadius:{1:"var(--mu-border-radius-1)",2:"var(--mu-border-radius-2)",3:"var(--mu-border-radius-3)",4:"var(--mu-border-radius-4)",5:"var(--mu-border-radius-5)",6:"var(--mu-border-radius-6)",7:"var(--mu-border-radius-7)",8:"var(--mu-border-radius-8)",9:"var(--mu-border-radius-9)"},lineHeight:{1:"var(--mu-line-height-1)",2:"var(--mu-line-height-2)",3:"var(--mu-line-height-3)",4:"var(--mu-line-height-4)",5:"var(--mu-line-height-5)",6:"var(--mu-line-height-6)",7:"var(--mu-line-height-7)",8:"var(--mu-line-height-8)",9:"var(--mu-line-height-9)",10:"var(--mu-line-height-10)",11:"var(--mu-line-height-11)"},fontWeight:{light:"var(--mu-font-weight-light)",regular:"var(--mu-font-weight-regular)",medium:"var(--mu-font-weight-medium)",bold:"var(--mu-font-weight-bold)"},letterSpacing:{1:"var(--mu-letter-spacing-1)",2:"var(--mu-letter-spacing-2)",3:"var(--mu-letter-spacing-3)",4:"var(--mu-letter-spacing-4)",5:"var(--mu-letter-spacing-5)",6:"var(--mu-letter-spacing-6)",7:"var(--mu-letter-spacing-7)",8:"var(--mu-letter-spacing-8)",9:"var(--mu-letter-spacing-9)",10:"var(--mu-letter-spacing-10)",11:"var(--mu-letter-spacing-11)"},boxShadow:{defaultFocused:"var(--mu-box-shadow-default-focused)",defaultHovered:"var(--mu-box-shadow-default-hovered)",defaultOverlay:"var(--mu-box-shadow-default-overlay)",defaultModal:"var(--mu-box-shadow-default-modal)"},borderWidth:{0:"var(--mu-border-width-0)",1:"var(--mu-border-width-1)"}};function Wo(s){var e=s.match(/^var\((.*)\)$/);return e?e[1]:s}function Ji(s,e){var t=s;for(var o of e){if(!(o in t))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));t=t[o]}return t}function pn(s,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o={};for(var i in s){var n=s[i],f=[...t,i];typeof n=="string"||typeof n=="number"||n==null?o[i]=e(n,f):typeof n=="object"&&!Array.isArray(n)?o[i]=pn(n,e,f):console.warn('Skipping invalid key "'.concat(f.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(n)?"Array":typeof n,'"'))}return o}function L1(s,e){var t={};if(typeof e=="object"){var o=s;pn(e,(l,r)=>{if(l!=null){var p=Ji(o,r);t[Wo(p)]=String(l)}})}else{var i=s;for(var n in i){var f=i[n];f!=null&&(t[Wo(n)]=f)}}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map(r=>"".concat(r,":").concat(this[r])).join(";")},writable:!1}),t}function A8(s,e,t){s.style.setProperty(Wo(e),t)}function W1(s,e,t){if(typeof t=="object"){var o=e;pn(t,(l,r)=>{l!=null&&A8(s,Ji(o,r),String(l))})}else{var i=e;for(var n in i){var f=i[n];f!=null&&A8(s,n,i[n])}}}const Qi={0:"0px",px:"1px",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px"},sf={1:"11px",2:"12px",3:"13px",4:"14px",5:"16px",6:"18px",7:"20px",8:"22px",9:"24px",10:"28px",11:"34px"},ef={1:"2px",2:"4px",3:"6px",4:"8px",5:"12px",6:"14px",7:"16px",8:"18px",9:"20px"},tf={1:"16px",2:"18px",3:"20px",4:"20px",5:"22px",6:"24px",7:"26px",8:"28px",9:"30px",10:"36px",11:"40px"},of={light:"300",regular:"400",medium:"500",bold:"600"},nf={1:"0.025em",2:"0.015em",3:"0.015em",4:"0.01em",5:"0em",6:"0em",7:"0em",8:"0em",9:"-0.01em",10:"-0.01em",11:"-0.01em"},ff={0:"0px",1:"1px"},z1={spacing:Qi,colors:{background:{accent1:"hsla(215, 100%, 62%, 1)",accent1Hovered:"hsla(215, 100%, 51%, 0.16)",accent1Pressed:"hsla(215, 100%, 51%, 0.32)",accent1Focused:"hsla(215, 100%, 51%, 0.32)",buttonCriticalDisabled:"hsla(204, 16%, 94%, 1)",buttonCriticalPrimary:"hsla(11, 100%, 56%, 1)",buttonCriticalPrimaryFocused:"hsla(11, 100%, 42%, 1)",buttonCriticalPrimaryHovered:"hsla(11, 100%, 42%, 1)",buttonCriticalPrimaryPressed:"hsla(11, 100%, 29%, 1)",buttonDefaultDisabled:"hsla(211, 32%, 21%, 1)",buttonDefaultPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultPrimaryFocused:"hsla(210, 24%, 86%, 1)",buttonDefaultPrimaryHovered:"hsla(211, 24%, 86%, 1)",buttonDefaultPrimaryPressed:"hsla(211, 16%, 68%, 1)",buttonDefaultSecondary:"hsla(232, 17%, 18%, 1)",buttonDefaultSecondaryFocused:"hsla(211, 32%, 19%, 1)",buttonDefaultSecondaryHovered:"hsla(211, 32%, 19%, 1)",buttonDefaultSecondaryPressed:"hsla(211, 24%, 26%, 1)",buttonDefaultTertiary:"hsla(180, 4%, 15%, 0)",buttonDefaultTertiaryFocused:"hsla(0, 0%, 100%, 0.06)",buttonDefaultTertiaryHovered:"hsla(0, 0%, 100%, 0.06)",buttonDefaultTertiaryPressed:"hsla(0, 0%, 100%, 0.12)",critical1:"hsla(11, 100%, 96%, 1)",critical1Focused:"hsla(11, 100%, 46%, 0.2)",critical1Hovered:"hsla(11, 100%, 46%, 0.2)",critical1Pressed:"hsla(11, 100%, 46%, 0.32)",critical2:"hsla(11, 100%, 56%, 1)",default1:"hsla(232, 17%, 18%, 1)",default1Focused:"hsla(0, 0%, 100%, 0.06)",default1Hovered:"hsla(0, 0%, 100%, 0.06)",default1Pressed:"hsla(0, 0%, 100%, 0.12)",default2:"hsla(231, 17%, 16%, 1)",default3:"hsla(211, 42%, 12%, 1)",defaultDisabled:"hsla(211, 32%, 21%, 1)",info1:"hsla(215, 100%, 62%, 1)",success1:"hsla(173, 100%, 32%, 1)",warning1:"hsla(42, 100%, 84%, 1)"},text:{accent1:"hsla(215, 100%, 83%, 1)",buttonCriticalDisabled:"hsla(212, 14%, 67%, 1)",buttonCriticalPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultPrimary:"hsla(212, 44%, 13%, 1)",buttonDefaultSecondary:"hsla(0, 0%, 100%, 1)",buttonDefaultTertiary:"hsla(0, 0%, 100%, 1)",critical1:"hsla(11, 100%, 82%, 1)",critical2:"hsla(11, 100%, 58%, 1)",default1:"hsla(0, 0%, 100%, 1)",default2:"hsla(230, 10%, 53%, 1)",defaultDisabled:"hsla(212, 19%, 39%, 1)",info1:"hsla(215, 100%, 83%, 1)",success1:"hsla(173, 79%, 62%, 1)",warning1:"hsla(36, 44%, 50%, 1)"},border:{accent1:"hsla(215, 100%, 39%, 1)",critical1:"hsla(11, 100%, 35%, 1)",default1:"hsla(210, 32%, 25%, 1)",default1Focused:"hsla(212, 24%, 32%, 1)",default1Hovered:"hsla(210, 32%, 25%, 1)",defaultDisabled:"hsla(231, 18%, 23%, 1)",default2:"hsla(211, 21%, 39%, 1)",info1:"hsla(210, 32%, 25%, 1)",success1:"hsl(173, 79%, 62%, 1)",warning1:"hsla(36, 44%, 50%, 1)"}},fontSize:sf,borderRadius:ef,lineHeight:tf,fontWeight:of,letterSpacing:nf,boxShadow:{defaultFocused:"0px 1px 1px 0px hsla(0, 0%, 0%, 0.32)",defaultHovered:"0px 2px 3px 0px hsla(0, 0%, 0%, 0.28)",defaultOverlay:"0px 3px 8px 0px hsla(0, 0%, 0%, 0.24)",defaultModal:"0px 8px 16px 0px hsla(0, 0%, 0%, 0.2)"},borderWidth:ff},H1={spacing:Qi,colors:{background:{accent1:"hsla(215, 100%, 51%, 1)",accent1Hovered:"hsla(215, 100%, 51%, 0.12)",accent1Focused:"hsla(215, 100%, 51%, 0.32)",accent1Pressed:"hsla(215, 100%, 51%, 0.24)",buttonCriticalDisabled:"hsla(204, 16%, 94%, 1)",buttonCriticalPrimary:"hsla(11, 100%, 46%, 1)",buttonCriticalPrimaryFocused:"hsla(11, 100%, 63%, 1)",buttonCriticalPrimaryHovered:"hsla(11, 100%, 63%, 1)",buttonCriticalPrimaryPressed:"hsla(11, 100%, 29%, 1)",buttonDefaultDisabled:"hsla(211, 16%, 94%, 1)",buttonDefaultPrimary:"hsla(211, 45%, 13%, 1)",buttonDefaultPrimaryFocused:"hsla(211, 22%, 26%, 1)",buttonDefaultPrimaryHovered:"hsla(211, 22%, 26%, 1)",buttonDefaultPrimaryPressed:"hsla(211, 45%, 3%, 1)",buttonDefaultSecondary:"hsla(0, 0%, 100%, 1)",buttonDefaultSecondaryFocused:"hsla(220, 18%, 97%, 1)",buttonDefaultSecondaryHovered:"hsla(220, 18%, 97%, 1)",buttonDefaultSecondaryPressed:"hsla(210, 15%, 87%, 1)",buttonDefaultTertiary:"hsla(180, 4%, 15%, 0)",buttonDefaultTertiaryFocused:"hsla(180, 4%, 15%, 0.08)",buttonDefaultTertiaryHovered:"hsla(180, 4%, 15%, 0.06)",buttonDefaultTertiaryPressed:"hsla(180, 4%, 15%, 0.12)",critical1:"hsla(11, 100%, 96%, 1)",critical1Focused:"hsla(11, 100%, 59%, 0.07)",critical1Hovered:"hsla(11, 100%, 45%, 0.16)",critical1Pressed:"hsla(11, 100%, 45%, 0.32)",critical2:"hsla(11, 100%, 46%, 1)",default1:"hsla(0, 0%, 100%, 1)",default1Focused:"hsla(180, 4%, 15%, 0.08)",default1Hovered:"hsla(180, 4%, 15%, 0.06)",default1Pressed:"hsla(180, 4%, 15%, 0.12)",default2:"hsla(120, 11%, 98%, 1)",default3:"hsla(180, 1%, 85%, 1)",defaultDisabled:"hsla(211, 16%, 94%, 1)",info1:"hsla(233, 100%, 91%, 1)",success1:"hsla(173, 43%, 80%, 1)",warning1:"hsla(42, 100%, 84%, 1)"},text:{accent1:"hsla(234, 96%, 56%, 1)",buttonCriticalDisabled:"hsla(212, 14%, 67%, 1)",buttonCriticalPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultSecondary:"hsla(180, 4%, 15%, 1)",buttonDefaultTertiary:"hsla(180, 4%, 15%, 1)",critical1:"hsla(11, 100%, 29%, 1)",critical2:"hsla(11, 100%, 45%, 1)",default1:"hsla(180, 4%, 15%, 1)",default2:"hsla(180, 1%, 49%, 1)",defaultDisabled:"hsla(212, 14%, 67%, 1)",info1:"hsla(234, 100%, 42%, 1)",success1:"hsla(169, 42%, 20%, 1)",warning1:"hsla(36, 44%, 50%, 1)"},border:{accent1:"hsla(215, 100%, 74%, 1)",critical1:"hsla(11, 100%, 29%, 1)",default1:"hsla(210, 15%, 87%, 1)",default1Focused:"hsla(212, 14%, 77%, 1)",default1Hovered:"hsla(210, 15%, 87%, 1)",default2:"hsla(211, 13%, 66%, 1)",defaultDisabled:"hsla(210, 15%, 87%, 1)",info1:"hsla(234, 100%, 42%, 1)",success1:"hsla(173, 97%, 15%, 1)",warning1:"hsla(36, 44%, 50%, 1)"}},fontSize:sf,borderRadius:ef,lineHeight:tf,fontWeight:of,letterSpacing:nf,boxShadow:{defaultFocused:"0px 1px 1px 0px hsla(212, 44%, 13%, 0.16)",defaultHovered:"0px 2px 3px 0px hsla(211, 42%, 16%, 0.1)",defaultOverlay:"0px 3px 8px 0px hsla(211, 42%, 16%, 0.08)",defaultModal:"0px 8px 16px 0px hsla(211, 42%, 16%, 0.08)"},borderWidth:ff},jt={defaultLight:H1,defaultDark:z1},lf=a.createContext(null),q1=({children:s,defaultTheme:e})=>{const[t,o]=a.useState(e);return a.useLayoutEffect(()=>{W1(document.documentElement,Be,jt[t])},[t]),u.jsx(lf.Provider,{value:{theme:t,setTheme:o,themeValues:jt[t]},children:s})},F1=()=>{const s=a.useContext(lf);if(s===null)throw new Error("useTheme must be used within a MacawUI ThemeContext");return s},K1=({children:s,defaultTheme:e="defaultLight"})=>u.jsx(q1,{defaultTheme:e,children:u.jsx("main",{id:"macaw-ui-root",children:s})});function B1(s,e){if(typeof s!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var o=t.call(s,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function Z1(s){var e=B1(s,"string");return typeof e=="symbol"?e:String(e)}function U1(s,e,t){return e=Z1(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function N8(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),t.push.apply(t,o)}return t}function vo(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?N8(Object(t),!0).forEach(function(o){U1(s,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):N8(Object(t)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(t,o))})}return s}var Y1=s=>function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=Object.assign({},...t.map(r=>r.styles)),n=Object.keys(i),f=n.filter(r=>"mappings"in i[r]),l=r=>{var p=[],c={},d=vo({},r),h=!1;for(var _ of f){var y=r[_];if(y!=null){var C=i[_];h=!0;for(var v of C.mappings)c[v]=y,d[v]==null&&delete d[v]}}var k=h?vo(vo({},c),d):r,b=function(){var m=k[g],I=i[g];try{if(I.mappings)return 1;if(typeof m=="string"||typeof m=="number"){if(process.env.NODE_ENV!=="production"&&!I.values[m].defaultClass)throw new Error;p.push(I.values[m].defaultClass)}else if(Array.isArray(m))for(var P=0;P<m.length;P++){var R=m[P];if(R!=null){var E=I.responsiveArray[P];if(process.env.NODE_ENV!=="production"&&!I.values[R].conditions[E])throw new Error;p.push(I.values[R].conditions[E])}}else for(var j in m){var M=m[j];if(M!=null){if(process.env.NODE_ENV!=="production"&&!I.values[M].conditions[j])throw new Error;p.push(I.values[M].conditions[j])}}}catch(Z){if(process.env.NODE_ENV!=="production"){class T extends Error{constructor(D){super(D),this.name="SprinklesError"}}var L=$=>typeof $=="string"?'"'.concat($,'"'):$,X=($,D,V)=>{throw new T('"'.concat($,'" has no value ').concat(L(D),". Possible values are ").concat(Object.keys(V).map(L).join(", ")))};if(!I)throw new T('"'.concat(g,'" is not a valid sprinkle'));if((typeof m=="string"||typeof m=="number")&&(m in I.values||X(g,m,I.values),!I.values[m].defaultClass))throw new T('"'.concat(g,'" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(I.values[m].conditions).map(L).join(", ")));if(typeof m=="object"){if(!("conditions"in I.values[Object.keys(I.values)[0]]))throw new T('"'.concat(g,'" is not a conditional property'));if(Array.isArray(m)){if(!("responsiveArray"in I))throw new T('"'.concat(g,'" does not support responsive arrays'));var A=I.responsiveArray.length;if(A<m.length)throw new T('"'.concat(g,'" only supports up to ').concat(A," breakpoints. You passed ").concat(m.length));for(var B of m)I.values[B]||X(g,B,I.values)}else for(var K in m){var ts=m[K];if(ts!=null&&(I.values[ts]||X(g,ts,I.values),!I.values[ts].conditions[K]))throw new T('"'.concat(g,'" has no condition named ').concat(L(K),". Possible values are ").concat(Object.keys(I.values[ts].conditions).map(L).join(", ")))}}}throw Z}};for(var g in k)b();return s(p.join(" "))};return Object.assign(l,{properties:new Set(n)})},G1=s=>s,X1=function(){return Y1(G1)(...arguments)},Ys=X1({conditions:{defaultCondition:"mobile",conditionNames:["mobile","tablet","desktop"],responsiveArray:void 0},styles:{padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},placeItems:{mappings:["alignItems","justifyContent"]},borderWidth:{mappings:["borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth"]},borderXWidth:{mappings:["borderLeftWidth","borderRightWidth"]},borderYWidth:{mappings:["borderTopWidth","borderBottomWidth"]},borderStyle:{mappings:["borderTopStyle","borderBottomStyle","borderLeftStyle","borderRightStyle"]},borderXStyle:{mappings:["borderLeftStyle","borderRightStyle"]},borderYStyle:{mappings:["borderTopStyle","borderBottomStyle"]},inset:{mappings:["top","bottom","left","right"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},overflow:{mappings:["overflowX","overflowY"]},flex:{mappings:["flexGrow","flexShrink","flexBasis"]},display:{values:{none:{conditions:{mobile:"_18fs8ps0",tablet:"_18fs8ps1",desktop:"_18fs8ps2"},defaultClass:"_18fs8ps0"},flex:{conditions:{mobile:"_18fs8ps3",tablet:"_18fs8ps4",desktop:"_18fs8ps5"},defaultClass:"_18fs8ps3"},"inline-flex":{conditions:{mobile:"_18fs8ps6",tablet:"_18fs8ps7",desktop:"_18fs8ps8"},defaultClass:"_18fs8ps6"},grid:{conditions:{mobile:"_18fs8ps9",tablet:"_18fs8psa",desktop:"_18fs8psb"},defaultClass:"_18fs8ps9"},"inline-grid":{conditions:{mobile:"_18fs8psc",tablet:"_18fs8psd",desktop:"_18fs8pse"},defaultClass:"_18fs8psc"},block:{conditions:{mobile:"_18fs8psf",tablet:"_18fs8psg",desktop:"_18fs8psh"},defaultClass:"_18fs8psf"},"inline-block":{conditions:{mobile:"_18fs8psi",tablet:"_18fs8psj",desktop:"_18fs8psk"},defaultClass:"_18fs8psi"},contents:{conditions:{mobile:"_18fs8psl",tablet:"_18fs8psm",desktop:"_18fs8psn"},defaultClass:"_18fs8psl"},inline:{conditions:{mobile:"_18fs8pso",tablet:"_18fs8psp",desktop:"_18fs8psq"},defaultClass:"_18fs8pso"}}},flexDirection:{values:{row:{conditions:{mobile:"_18fs8psr",tablet:"_18fs8pss",desktop:"_18fs8pst"},defaultClass:"_18fs8psr"},column:{conditions:{mobile:"_18fs8psu",tablet:"_18fs8psv",desktop:"_18fs8psw"},defaultClass:"_18fs8psu"}}},alignItems:{values:{stretch:{conditions:{mobile:"_18fs8psx",tablet:"_18fs8psy",desktop:"_18fs8psz"},defaultClass:"_18fs8psx"},"flex-start":{conditions:{mobile:"_18fs8ps10",tablet:"_18fs8ps11",desktop:"_18fs8ps12"},defaultClass:"_18fs8ps10"},center:{conditions:{mobile:"_18fs8ps13",tablet:"_18fs8ps14",desktop:"_18fs8ps15"},defaultClass:"_18fs8ps13"},"flex-end":{conditions:{mobile:"_18fs8ps16",tablet:"_18fs8ps17",desktop:"_18fs8ps18"},defaultClass:"_18fs8ps16"},start:{conditions:{mobile:"_18fs8ps19",tablet:"_18fs8ps1a",desktop:"_18fs8ps1b"},defaultClass:"_18fs8ps19"},end:{conditions:{mobile:"_18fs8ps1c",tablet:"_18fs8ps1d",desktop:"_18fs8ps1e"},defaultClass:"_18fs8ps1c"},baseline:{conditions:{mobile:"_18fs8ps1f",tablet:"_18fs8ps1g",desktop:"_18fs8ps1h"},defaultClass:"_18fs8ps1f"}}},justifyContent:{values:{stretch:{conditions:{mobile:"_18fs8ps1i",tablet:"_18fs8ps1j",desktop:"_18fs8ps1k"},defaultClass:"_18fs8ps1i"},"flex-start":{conditions:{mobile:"_18fs8ps1l",tablet:"_18fs8ps1m",desktop:"_18fs8ps1n"},defaultClass:"_18fs8ps1l"},center:{conditions:{mobile:"_18fs8ps1o",tablet:"_18fs8ps1p",desktop:"_18fs8ps1q"},defaultClass:"_18fs8ps1o"},"flex-end":{conditions:{mobile:"_18fs8ps1r",tablet:"_18fs8ps1s",desktop:"_18fs8ps1t"},defaultClass:"_18fs8ps1r"},end:{conditions:{mobile:"_18fs8ps1u",tablet:"_18fs8ps1v",desktop:"_18fs8ps1w"},defaultClass:"_18fs8ps1u"},start:{conditions:{mobile:"_18fs8ps1x",tablet:"_18fs8ps1y",desktop:"_18fs8ps1z"},defaultClass:"_18fs8ps1x"},"space-between":{conditions:{mobile:"_18fs8ps20",tablet:"_18fs8ps21",desktop:"_18fs8ps22"},defaultClass:"_18fs8ps20"},"space-around":{conditions:{mobile:"_18fs8ps23",tablet:"_18fs8ps24",desktop:"_18fs8ps25"},defaultClass:"_18fs8ps23"},"space-evenly":{conditions:{mobile:"_18fs8ps26",tablet:"_18fs8ps27",desktop:"_18fs8ps28"},defaultClass:"_18fs8ps26"}}},flexGrow:{values:{0:{conditions:{mobile:"_18fs8ps29",tablet:"_18fs8ps2a",desktop:"_18fs8ps2b"},defaultClass:"_18fs8ps29"},1:{conditions:{mobile:"_18fs8ps2c",tablet:"_18fs8ps2d",desktop:"_18f