commerce-toolkit 0.0.22 → 0.0.23
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/dist/components/reveal/index.d.ts +7 -0
- package/dist/components/reveal/index.d.ts.map +1 -0
- package/dist/components/reveal/primitives/reveal-controls.d.ts +4 -0
- package/dist/components/reveal/primitives/reveal-controls.d.ts.map +1 -0
- package/dist/components/reveal/primitives/reveal-provider.d.ts +23 -0
- package/dist/components/reveal/primitives/reveal-provider.d.ts.map +1 -0
- package/dist/components/reveal/primitives/reveal-root.d.ts +4 -0
- package/dist/components/reveal/primitives/reveal-root.d.ts.map +1 -0
- package/dist/components/reveal/primitives/reveal-trigger.d.ts +4 -0
- package/dist/components/reveal/primitives/reveal-trigger.d.ts.map +1 -0
- package/dist/components/reveal/primitives/reveal-viewport.d.ts +4 -0
- package/dist/components/reveal/primitives/reveal-viewport.d.ts.map +1 -0
- package/dist/components/reveal/reveal.d.ts +12 -0
- package/dist/components/reveal/reveal.d.ts.map +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +809 -679
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Reveal, type RevealProps } from '../../components/reveal/reveal';
|
|
2
|
+
export { RevealRoot as Root, type RevealRootProps as RootProps, } from '../../components/reveal/primitives/reveal-root';
|
|
3
|
+
export { RevealProvider as Provider, type RevealProviderProps as ProviderProps, useReveal, } from '../../components/reveal/primitives/reveal-provider';
|
|
4
|
+
export { RevealViewport as Viewport, type RevealViewportProps as ViewportProps, } from '../../components/reveal/primitives/reveal-viewport';
|
|
5
|
+
export { RevealControls as Controls, type RevealControlsProps as ControlsProps, } from '../../components/reveal/primitives/reveal-controls';
|
|
6
|
+
export { RevealTrigger as Trigger, type RevealTriggerProps as TriggerProps, } from '../../components/reveal/primitives/reveal-trigger';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/reveal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,UAAU,IAAI,IAAI,EAClB,KAAK,eAAe,IAAI,SAAS,GAClC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,KAAK,mBAAmB,IAAI,aAAa,EACzC,SAAS,GACV,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,KAAK,mBAAmB,IAAI,aAAa,GAC1C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,KAAK,mBAAmB,IAAI,aAAa,GAC1C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,aAAa,IAAI,OAAO,EACxB,KAAK,kBAAkB,IAAI,YAAY,GACxC,MAAM,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type RevealControlsProps = ComponentProps<'div'>;
|
|
3
|
+
export declare function RevealControls({ children, className, ...props }: RevealControlsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=reveal-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-controls.d.ts","sourceRoot":"","sources":["../../../../src/components/reveal/primitives/reveal-controls.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,kDAUpF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
export interface RevealContext {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
hasOverflow: boolean;
|
|
5
|
+
variant: 'underline' | 'button';
|
|
6
|
+
showLabel: string;
|
|
7
|
+
hideLabel: string;
|
|
8
|
+
maxHeight: string;
|
|
9
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
10
|
+
toggleOpen: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const RevealContext: import("react").Context<RevealContext | undefined>;
|
|
13
|
+
export interface RevealProviderProps {
|
|
14
|
+
variant?: 'underline' | 'button';
|
|
15
|
+
showLabel?: string;
|
|
16
|
+
hideLabel?: string;
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
maxHeight?: string;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function RevealProvider({ children, variant, showLabel, hideLabel, defaultOpen, maxHeight, }: RevealProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function useReveal(): RevealContext;
|
|
23
|
+
//# sourceMappingURL=reveal-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/reveal/primitives/reveal-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,WAAW,GAAG,QAAQ,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,oDAAsD,CAAC;AAEjF,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,OAAqB,EACrB,SAAuB,EACvB,SAAuB,EACvB,WAAmB,EACnB,SAAmB,GACpB,EAAE,mBAAmB,2CA0DrB;AAED,wBAAgB,SAAS,kBAQxB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type RevealRootProps = ComponentProps<'div'>;
|
|
3
|
+
export declare function RevealRoot({ children, className, ...props }: RevealRootProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=reveal-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-root.d.ts","sourceRoot":"","sources":["../../../../src/components/reveal/primitives/reveal-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAM5E"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type RevealTriggerProps = ComponentProps<'button'>;
|
|
3
|
+
export declare function RevealTrigger({ children, className, ...props }: RevealTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=reveal-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/reveal/primitives/reveal-trigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE1D,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CA6BlF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type RevealViewportProps = ComponentProps<'div'>;
|
|
3
|
+
export declare function RevealViewport({ children, className, ...props }: RevealViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=reveal-viewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal-viewport.d.ts","sourceRoot":"","sources":["../../../../src/components/reveal/primitives/reveal-viewport.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAKxD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAmBpF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface RevealProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
variant?: 'underline' | 'button';
|
|
5
|
+
showLabel?: string;
|
|
6
|
+
hideLabel?: string;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
maxHeight?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function Reveal({ className, variant, showLabel, hideLabel, defaultOpen, maxHeight, children, }: RevealProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=reveal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reveal.d.ts","sourceRoot":"","sources":["../../../src/components/reveal/reveal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAqB,EACrB,SAAuB,EACvB,SAAuB,EACvB,WAAmB,EACnB,SAAmB,EACnB,QAAQ,GACT,EAAE,WAAW,2CAiBb"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),g=require("react");require("react-dom");function Cr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const p=Cr(g);function jr({className:e,colorScheme:t="light",items:r,...o}){return a.jsx(Tt,{colorScheme:t,items:r,children:a.jsx(_t,{className:e,...o,children:r.map(n=>a.jsx(zt,{content:n.content,title:n.title,value:n.value,children:a.jsxs(It,{children:[a.jsx(Lt,{}),a.jsx(Mt,{})]})},n.value))})})}function Ne(e,t=[]){let r=[];function o(s,i){const l=p.createContext(i),c=r.length;r=[...r,i];const d=v=>{const{scope:N,children:C,...A}=v,w=N?.[e]?.[c]||l,j=p.useMemo(()=>A,Object.values(A));return a.jsx(w.Provider,{value:j,children:C})};d.displayName=s+"Provider";function m(v,N){const C=N?.[e]?.[c]||l,A=p.useContext(C);if(A)return A;if(i!==void 0)return i;throw new Error(`\`${v}\` must be used within \`${s}\``)}return[d,m]}const n=()=>{const s=r.map(i=>p.createContext(i));return function(l){const c=l?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,Ar(n,...t)]}function Ar(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:c,scopeName:d})=>{const v=c(s)[`__scope${d}`];return{...l,...v}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ze(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function et(...e){return t=>{let r=!1;const o=e.map(n=>{const s=Ze(n,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let n=0;n<o.length;n++){const s=o[n];typeof s=="function"?s():Ze(e[n],null)}}}}function Y(...e){return p.useCallback(et(...e),e)}function ke(e){const t=Nr(e),r=p.forwardRef((o,n)=>{const{children:s,...i}=o,l=p.Children.toArray(s),c=l.find(Rr);if(c){const d=c.props.children,m=l.map(v=>v===c?p.Children.count(d)>1?p.Children.only(null):p.isValidElement(d)?d.props.children:null:v);return a.jsx(t,{...i,ref:n,children:p.isValidElement(d)?p.cloneElement(d,void 0,m):null})}return a.jsx(t,{...i,ref:n,children:s})});return r.displayName=`${e}.Slot`,r}function Nr(e){const t=p.forwardRef((r,o)=>{const{children:n,...s}=r;if(p.isValidElement(n)){const i=Ir(n),l=Sr(s,n.props);return n.type!==p.Fragment&&(l.ref=o?et(o,i):i),p.cloneElement(n,l)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pr=Symbol("radix.slottable");function Rr(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pr}function Sr(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...l)=>{const c=s(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"&&(r[o]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function Ir(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function _r(e){const t=e+"CollectionProvider",[r,o]=Ne(t),[n,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:j,children:P}=w,k=g.useRef(null),R=g.useRef(new Map).current;return a.jsx(n,{scope:j,itemMap:R,collectionRef:k,children:P})};i.displayName=t;const l=e+"CollectionSlot",c=ke(l),d=g.forwardRef((w,j)=>{const{scope:P,children:k}=w,R=s(l,P),I=Y(j,R.collectionRef);return a.jsx(c,{ref:I,children:k})});d.displayName=l;const m=e+"CollectionItemSlot",v="data-radix-collection-item",N=ke(m),C=g.forwardRef((w,j)=>{const{scope:P,children:k,...R}=w,I=g.useRef(null),E=Y(j,I),M=s(m,P);return g.useEffect(()=>(M.itemMap.set(I,{ref:I,...R}),()=>void M.itemMap.delete(I))),a.jsx(N,{[v]:"",ref:E,children:k})});C.displayName=m;function A(w){const j=s(e+"CollectionConsumer",w);return g.useCallback(()=>{const k=j.collectionRef.current;if(!k)return[];const R=Array.from(k.querySelectorAll(`[${v}]`));return Array.from(j.itemMap.values()).sort((M,z)=>R.indexOf(M.ref.current)-R.indexOf(z.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:i,Slot:d,ItemSlot:C},A,o]}function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Q=globalThis?.document?p.useLayoutEffect:()=>{},Mr=p[" useInsertionEffect ".trim().toString()]||Q;function de({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,s,i]=Lr({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:n;{const m=p.useRef(e!==void 0);p.useEffect(()=>{const v=m.current;v!==l&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=l},[l,o])}const d=p.useCallback(m=>{if(l){const v=Er(m)?m(e):m;v!==e&&i.current?.(v)}else s(m)},[l,e,s,i]);return[c,d]}function Lr({defaultProp:e,onChange:t}){const[r,o]=p.useState(e),n=p.useRef(r),s=p.useRef(t);return Mr(()=>{s.current=t},[t]),p.useEffect(()=>{n.current!==r&&(s.current?.(r),n.current=r)},[r,n]),[r,o,s]}function Er(e){return typeof e=="function"}var Tr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=Tr.reduce((e,t)=>{const r=ke(`Primitive.${t}`),o=p.forwardRef((n,s)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Br(e,t){return p.useReducer((r,o)=>t[r][o]??r,e)}var tt=e=>{const{present:t,children:r}=e,o=zr(t),n=typeof r=="function"?r({present:o.isPresent}):p.Children.only(r),s=Y(o.ref,Or(n));return typeof r=="function"||o.isPresent?p.cloneElement(n,{ref:s}):null};tt.displayName="Presence";function zr(e){const[t,r]=p.useState(),o=p.useRef(null),n=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Br(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const d=se(o.current);s.current=l==="mounted"?d:"none"},[l]),Q(()=>{const d=o.current,m=n.current;if(m!==e){const N=s.current,C=se(d);e?c("MOUNT"):C==="none"||d?.display==="none"?c("UNMOUNT"):c(m&&N!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Q(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,v=C=>{const w=se(o.current).includes(CSS.escape(C.animationName));if(C.target===t&&w&&(c("ANIMATION_END"),!n.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},N=C=>{C.target===t&&(s.current=se(o.current))};return t.addEventListener("animationstart",N),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",N),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(d=>{o.current=d?getComputedStyle(d):null,r(d)},[])}}function se(e){return e?.animationName||"none"}function Or(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dr=p[" useId ".trim().toString()]||(()=>{}),$r=0;function rt(e){const[t,r]=p.useState(Dr());return Q(()=>{r(o=>o??String($r++))},[e]),t?`radix-${t}`:""}var ue="Collapsible",[Vr,ot]=Ne(ue),[Fr,Re]=Vr(ue),nt=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:n,disabled:s,onOpenChange:i,...l}=e,[c,d]=de({prop:o,defaultProp:n??!1,onChange:i,caller:ue});return a.jsx(Fr,{scope:r,disabled:s,contentId:rt(),open:c,onOpenToggle:p.useCallback(()=>d(m=>!m),[d]),children:a.jsx(q.div,{"data-state":Ie(c),"data-disabled":s?"":void 0,...l,ref:t})})});nt.displayName=ue;var at="CollapsibleTrigger",st=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,n=Re(at,r);return a.jsx(q.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Ie(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:Pe(e.onClick,n.onOpenToggle)})});st.displayName=at;var Se="CollapsibleContent",it=p.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Re(Se,e.__scopeCollapsible);return a.jsx(tt,{present:r||n.open,children:({present:s})=>a.jsx(Gr,{...o,ref:t,present:s})})});it.displayName=Se;var Gr=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:n,...s}=e,i=Re(Se,r),[l,c]=p.useState(o),d=p.useRef(null),m=Y(t,d),v=p.useRef(0),N=v.current,C=p.useRef(0),A=C.current,w=i.open||l,j=p.useRef(w),P=p.useRef(void 0);return p.useEffect(()=>{const k=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(k)},[]),Q(()=>{const k=d.current;if(k){P.current=P.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const R=k.getBoundingClientRect();v.current=R.height,C.current=R.width,j.current||(k.style.transitionDuration=P.current.transitionDuration,k.style.animationName=P.current.animationName),c(o)}},[i.open,o]),a.jsx(q.div,{"data-state":Ie(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!w,...s,ref:m,style:{"--radix-collapsible-content-height":N?`${N}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...e.style},children:w&&n})});function Ie(e){return e?"open":"closed"}var Ur=nt,Wr=st,Hr=it,qr=p.createContext(void 0);function Zr(e){const t=p.useContext(qr);return e||t||"ltr"}var B="Accordion",Kr=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_e,Xr,Jr]=_r(B),[fe]=Ne(B,[Jr,ot]),Me=ot(),lt=g.forwardRef((e,t)=>{const{type:r,...o}=e,n=o,s=o;return a.jsx(_e.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?a.jsx(to,{...s,ref:t}):a.jsx(eo,{...n,ref:t})})});lt.displayName=B;var[ct,Yr]=fe(B),[dt,Qr]=fe(B,{collapsible:!1}),eo=g.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},collapsible:s=!1,...i}=e,[l,c]=de({prop:r,defaultProp:o??"",onChange:n,caller:B});return a.jsx(ct,{scope:e.__scopeAccordion,value:g.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:g.useCallback(()=>s&&c(""),[s,c]),children:a.jsx(dt,{scope:e.__scopeAccordion,collapsible:s,children:a.jsx(ut,{...i,ref:t})})})}),to=g.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},...s}=e,[i,l]=de({prop:r,defaultProp:o??[],onChange:n,caller:B}),c=g.useCallback(m=>l((v=[])=>[...v,m]),[l]),d=g.useCallback(m=>l((v=[])=>v.filter(N=>N!==m)),[l]);return a.jsx(ct,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:a.jsx(dt,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(ut,{...s,ref:t})})})}),[ro,me]=fe(B),ut=g.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:n,orientation:s="vertical",...i}=e,l=g.useRef(null),c=Y(l,t),d=Xr(r),v=Zr(n)==="ltr",N=Pe(e.onKeyDown,C=>{if(!Kr.includes(C.key))return;const A=C.target,w=d().filter(x=>!x.ref.current?.disabled),j=w.findIndex(x=>x.ref.current===A),P=w.length;if(j===-1)return;C.preventDefault();let k=j;const R=0,I=P-1,E=()=>{k=j+1,k>I&&(k=R)},M=()=>{k=j-1,k<R&&(k=I)};switch(C.key){case"Home":k=R;break;case"End":k=I;break;case"ArrowRight":s==="horizontal"&&(v?E():M());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(v?M():E());break;case"ArrowUp":s==="vertical"&&M();break}const z=k%P;w[z].ref.current?.focus()});return a.jsx(ro,{scope:r,disabled:o,direction:n,orientation:s,children:a.jsx(_e.Slot,{scope:r,children:a.jsx(q.div,{...i,"data-orientation":s,ref:c,onKeyDown:o?void 0:N})})})}),ce="AccordionItem",[oo,Le]=fe(ce),ft=g.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...n}=e,s=me(ce,r),i=Yr(ce,r),l=Me(r),c=rt(),d=o&&i.value.includes(o)||!1,m=s.disabled||e.disabled;return a.jsx(oo,{scope:r,open:d,disabled:m,triggerId:c,children:a.jsx(Ur,{"data-orientation":s.orientation,"data-state":xt(d),...l,...n,ref:t,disabled:m,open:d,onOpenChange:v=>{v?i.onItemOpen(o):i.onItemClose(o)}})})});ft.displayName=ce;var mt="AccordionHeader",pt=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(B,r),s=Le(mt,r);return a.jsx(q.h3,{"data-orientation":n.orientation,"data-state":xt(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});pt.displayName=mt;var we="AccordionTrigger",gt=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(B,r),s=Le(we,r),i=Qr(we,r),l=Me(r);return a.jsx(_e.ItemSlot,{scope:r,children:a.jsx(Wr,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:s.triggerId,...l,...o,ref:t})})});gt.displayName=we;var bt="AccordionContent",ht=g.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(B,r),s=Le(bt,r),i=Me(r);return a.jsx(Hr,{role:"region","aria-labelledby":s.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ht.displayName=bt;function xt(e){return e?"open":"closed"}var no=lt,ao=ft,so=pt,io=gt,lo=ht;function vt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=vt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function co(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=vt(e))&&(o&&(o+=" "),o+=t);return o}const Ee="-",uo=e=>{const t=mo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Ee);return l[0]===""&&l.length!==1&&l.shift(),yt(l,t)||fo(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},yt=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?yt(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const s=e.join(Ee);return t.validators.find(({validator:i})=>i(s))?.classGroupId},Ke=/^\[(.+)\]$/,fo=e=>{if(Ke.test(e)){const t=Ke.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mo=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)Ce(r[n],o,n,t);return o},Ce=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const s=n===""?t:Xe(t,n);s.classGroupId=r;return}if(typeof n=="function"){if(po(n)){Ce(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,i])=>{Ce(i,Xe(t,s),r,o)})})},Xe=(e,t)=>{let r=e;return t.split(Ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},po=e=>e.isThemeGetter,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return n(s,i),i},set(s,i){r.has(s)?r.set(s,i):n(s,i)}}},je="!",Ae=":",bo=Ae.length,ho=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const s=[];let i=0,l=0,c=0,d;for(let A=0;A<n.length;A++){let w=n[A];if(i===0&&l===0){if(w===Ae){s.push(n.slice(c,A)),c=A+bo;continue}if(w==="/"){d=A;continue}}w==="["?i++:w==="]"?i--:w==="("?l++:w===")"&&l--}const m=s.length===0?n:n.substring(c),v=xo(m),N=v!==m,C=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:N,baseClassName:v,maybePostfixModifierPosition:C}};if(t){const n=t+Ae,s=o;o=i=>i.startsWith(n)?s(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=s=>r({className:s,parseClassName:n})}return o},xo=e=>e.endsWith(je)?e.substring(0,e.length-1):e.startsWith(je)?e.substring(1):e,vo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let s=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...s.sort(),i),s=[]):s.push(i)}),n.push(...s.sort()),n}},yo=e=>({cache:go(e.cacheSize),parseClassName:ho(e),sortModifiers:vo(e),...uo(e)}),ko=/\s+/,wo=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=t,i=[],l=e.trim().split(ko);let c="";for(let d=l.length-1;d>=0;d-=1){const m=l[d],{isExternal:v,modifiers:N,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:w}=r(m);if(v){c=m+(c.length>0?" "+c:c);continue}let j=!!w,P=o(j?A.substring(0,w):A);if(!P){if(!j){c=m+(c.length>0?" "+c:c);continue}if(P=o(A),!P){c=m+(c.length>0?" "+c:c);continue}j=!1}const k=s(N).join(":"),R=C?k+je:k,I=R+P;if(i.includes(I))continue;i.push(I);const E=n(P,j);for(let M=0;M<E.length;++M){const z=E[M];i.push(R+z)}c=m+(c.length>0?" "+c:c)}return c};function Co(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=kt(t))&&(o&&(o+=" "),o+=r);return o}const kt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=kt(e[o]))&&(r&&(r+=" "),r+=t);return r};function jo(e,...t){let r,o,n,s=i;function i(c){const d=t.reduce((m,v)=>v(m),e());return r=yo(d),o=r.cache.get,n=r.cache.set,s=l,l(c)}function l(c){const d=o(c);if(d)return d;const m=wo(c,r);return n(c,m),m}return function(){return s(Co.apply(null,arguments))}}const S=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ct=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ao=/^\d+\/\d+$/,No=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Po=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,So=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>Ao.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),V=e=>!!e&&Number.isInteger(Number(e)),ve=e=>e.endsWith("%")&&y(e.slice(0,-1)),$=e=>No.test(e),_o=()=>!0,Mo=e=>Po.test(e)&&!Ro.test(e),jt=()=>!1,Lo=e=>So.test(e),Eo=e=>Io.test(e),To=e=>!u(e)&&!f(e),Bo=e=>Z(e,Pt,jt),u=e=>wt.test(e),G=e=>Z(e,Rt,Mo),ye=e=>Z(e,Vo,y),Je=e=>Z(e,At,jt),zo=e=>Z(e,Nt,Eo),ie=e=>Z(e,St,Lo),f=e=>Ct.test(e),X=e=>K(e,Rt),Oo=e=>K(e,Fo),Ye=e=>K(e,At),Do=e=>K(e,Pt),$o=e=>K(e,Nt),le=e=>K(e,St,!0),Z=(e,t,r)=>{const o=wt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},K=(e,t,r=!1)=>{const o=Ct.exec(e);return o?o[1]?t(o[1]):r:!1},At=e=>e==="position"||e==="percentage",Nt=e=>e==="image"||e==="url",Pt=e=>e==="length"||e==="size"||e==="bg-size",Rt=e=>e==="length",Vo=e=>e==="number",Fo=e=>e==="family-name",St=e=>e==="shadow",Go=()=>{const e=S("color"),t=S("font"),r=S("text"),o=S("font-weight"),n=S("tracking"),s=S("leading"),i=S("breakpoint"),l=S("container"),c=S("spacing"),d=S("radius"),m=S("shadow"),v=S("inset-shadow"),N=S("text-shadow"),C=S("drop-shadow"),A=S("blur"),w=S("perspective"),j=S("aspect"),P=S("ease"),k=S("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...I(),f,u],M=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],x=()=>[f,u,c],O=()=>[H,"full","auto",...x()],$e=()=>[V,"none","subgrid",f,u],Ve=()=>["auto",{span:["full",V,f,u]},V,f,u],te=()=>[V,"auto",f,u],Fe=()=>["auto","min","max","fr",f,u],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...x()],F=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],h=()=>[e,f,u],Ge=()=>[...I(),Ye,Je,{position:[f,u]}],Ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],We=()=>["auto","cover","contain",Do,Bo,{size:[f,u]}],he=()=>[ve,X,G],L=()=>["","none","full",d,f,u],T=()=>["",y,X,G],re=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[y,ve,Ye,Je],qe=()=>["","none",A,f,u],oe=()=>["none",y,f,u],ne=()=>["none",y,f,u],xe=()=>[y,f,u],ae=()=>[H,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[_o],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[To],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",y],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,u,f,j]}],container:["container"],columns:[{columns:[y,u,f,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[V,"auto",f,u]}],basis:[{basis:[H,"full","auto",l,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,H,"auto","initial","none",u]}],grow:[{grow:["",y,f,u]}],shrink:[{shrink:["",y,f,u]}],order:[{order:[V,"first","last","none",f,u]}],"grid-cols":[{"grid-cols":$e()}],"col-start-end":[{col:Ve()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":$e()}],"row-start-end":[{row:Ve()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Fe()}],"auto-rows":[{"auto-rows":Fe()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,X,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,f,ye]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ve,u]}],"font-family":[{font:[Oo,u,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,f,u]}],"line-clamp":[{"line-clamp":[y,"none",f,ye]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",f,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",f,G]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[y,"auto",f,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ge()}],"bg-repeat":[{bg:Ue()}],"bg-size":[{bg:We()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},V,f,u],radial:["",f,u],conic:[V,f,u]},$o,zo]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,f,u]}],"outline-w":[{outline:["",y,X,G]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",m,le,ie]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",v,le,ie]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[y,G]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",N,le,ie]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[y,f,u]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[f,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ge()}],"mask-repeat":[{mask:Ue()}],"mask-size":[{mask:We()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,u]}],filter:[{filter:["","none",f,u]}],blur:[{blur:qe()}],brightness:[{brightness:[y,f,u]}],contrast:[{contrast:[y,f,u]}],"drop-shadow":[{"drop-shadow":["","none",C,le,ie]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",y,f,u]}],"hue-rotate":[{"hue-rotate":[y,f,u]}],invert:[{invert:["",y,f,u]}],saturate:[{saturate:[y,f,u]}],sepia:[{sepia:["",y,f,u]}],"backdrop-filter":[{"backdrop-filter":["","none",f,u]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[y,f,u]}],"backdrop-contrast":[{"backdrop-contrast":[y,f,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,f,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,f,u]}],"backdrop-invert":[{"backdrop-invert":["",y,f,u]}],"backdrop-opacity":[{"backdrop-opacity":[y,f,u]}],"backdrop-saturate":[{"backdrop-saturate":[y,f,u]}],"backdrop-sepia":[{"backdrop-sepia":["",y,f,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",f,u]}],ease:[{ease:["linear","initial",P,f,u]}],delay:[{delay:[y,f,u]}],animate:[{animate:["none",k,f,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,f,u]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[f,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,u]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[y,X,G,ye]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Uo=jo(Go);function b(...e){return Uo(co(e))}function It({children:e,className:t,...r}){const{colorScheme:o}=pe(),{value:n}=ge();return a.jsx(ao,{className:b("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",value:n,...r,children:e})}function _t({className:e,...t}){return a.jsx(no,{className:b(e),...t,"data-slot":"accordion-root"})}function Mt({className:e,...t}){const{colorScheme:r}=pe(),{content:o}=ge(),[n,s]=g.useState(!1);return g.useEffect(()=>{s(!0)},[]),a.jsx(lo,{className:b("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:a.jsx("div",{className:b("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-content",children:o})})}function Lt({className:e,...t}){const{colorScheme:r}=pe(),{title:o}=ge();return a.jsx(so,{children:a.jsxs(io,{className:b("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...t,children:[a.jsx("div",{className:b("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:o}),a.jsxs("svg",{className:b("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[a.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),a.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}const Et=g.createContext(void 0);function Tt({children:e,colorScheme:t="light",items:r}){const o=g.useMemo(()=>({colorScheme:t,items:r}),[t,r]);return a.jsx(Et.Provider,{value:o,children:e})}function pe(){const e=g.use(Et);if(e===void 0)throw new Error("useAccordion must be used within an AccordionProvider");return e}const Bt=g.createContext(void 0);function zt({children:e,title:t,content:r,value:o}){const n=g.useMemo(()=>({title:t,content:r,value:o}),[t,r,o]);return a.jsx(Bt.Provider,{value:n,children:e})}function ge(){const e=g.use(Bt);if(e===void 0)throw new Error("useAccordionItem must be used within an AccordionItemProvider");return e}function Wo({className:e,variant:t,message:r,description:o,action:n,dismiss:s}){return a.jsx(Ho,{action:n,description:o,dismiss:s,message:r,variant:t,children:a.jsxs(Ot,{className:e,children:[a.jsxs($t,{children:[a.jsx(Vt,{}),a.jsx(Ft,{})]}),a.jsxs(Gt,{children:[a.jsx(Wt,{}),a.jsx(Ht,{})]})]})})}function Ot({className:e,children:t,...r}){const{variant:o}=ee();return a.jsx("div",{className:b("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...r,children:t})}const Dt=g.createContext(void 0);function Ho({children:e,message:t,description:r,action:o,dismiss:n,variant:s}){const i=g.useMemo(()=>({message:t,description:r,action:o,dismiss:n,variant:s}),[t,r,o,n,s]);return a.jsx(Dt.Provider,{value:i,children:e})}function ee(){const e=g.use(Dt);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function $t({children:e,className:t,...r}){return a.jsx("div",{className:b("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function Vt({children:e,className:t,...r}){const{message:o}=ee();return a.jsx("h5",{className:b("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:o})}function Ft({className:e,...t}){const{description:r}=ee();return a.jsx("p",{className:b("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...t,children:r})}function Gt({children:e,className:t,...r}){return a.jsx("div",{className:b("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react");require("react-dom");function Ir(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=Ir(p);function Mr({className:e,colorScheme:t="light",items:r,...o}){return s.jsx(zt,{colorScheme:t,items:r,children:s.jsx(Mt,{className:e,...o,children:r.map(n=>s.jsx(Bt,{content:n.content,title:n.title,value:n.value,children:s.jsxs(It,{children:[s.jsx(Et,{}),s.jsx(Lt,{})]})},n.value))})})}function Ne(e,t=[]){let r=[];function o(a,i){const l=g.createContext(i),c=r.length;r=[...r,i];const d=h=>{const{scope:R,children:j,...w}=h,k=R?.[e]?.[c]||l,A=g.useMemo(()=>w,Object.values(w));return s.jsx(k.Provider,{value:A,children:j})};d.displayName=a+"Provider";function m(h,R){const j=R?.[e]?.[c]||l,w=g.useContext(j);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,m]}const n=()=>{const a=r.map(i=>g.createContext(i));return function(l){const c=l?.[e]||a;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,Lr(n,...t)]}function Lr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const i=o.reduce((l,{useScope:c,scopeName:d})=>{const h=c(a)[`__scope${d}`];return{...l,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ke(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tt(...e){return t=>{let r=!1;const o=e.map(n=>{const a=Ke(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():Ke(e[n],null)}}}}function Y(...e){return g.useCallback(tt(...e),e)}function we(e){const t=Er(e),r=g.forwardRef((o,n)=>{const{children:a,...i}=o,l=g.Children.toArray(a),c=l.find(zr);if(c){const d=c.props.children,m=l.map(h=>h===c?g.Children.count(d)>1?g.Children.only(null):g.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...i,ref:n,children:g.isValidElement(d)?g.cloneElement(d,void 0,m):null})}return s.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}function Er(e){const t=g.forwardRef((r,o)=>{const{children:n,...a}=r;if(g.isValidElement(n)){const i=Br(n),l=Or(a,n.props);return n.type!==g.Fragment&&(l.ref=o?tt(o,i):i),g.cloneElement(n,l)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tr=Symbol("radix.slottable");function zr(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tr}function Or(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function Br(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Dr(e){const t=e+"CollectionProvider",[r,o]=Ne(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=k=>{const{scope:A,children:N}=k,C=p.useRef(null),P=p.useRef(new Map).current;return s.jsx(n,{scope:A,itemMap:P,collectionRef:C,children:N})};i.displayName=t;const l=e+"CollectionSlot",c=we(l),d=p.forwardRef((k,A)=>{const{scope:N,children:C}=k,P=a(l,N),_=Y(A,P.collectionRef);return s.jsx(c,{ref:_,children:C})});d.displayName=l;const m=e+"CollectionItemSlot",h="data-radix-collection-item",R=we(m),j=p.forwardRef((k,A)=>{const{scope:N,children:C,...P}=k,_=p.useRef(null),E=Y(A,_),M=a(m,N);return p.useEffect(()=>(M.itemMap.set(_,{ref:_,...P}),()=>void M.itemMap.delete(_))),s.jsx(R,{[h]:"",ref:E,children:C})});j.displayName=m;function w(k){const A=a(e+"CollectionConsumer",k);return p.useCallback(()=>{const C=A.collectionRef.current;if(!C)return[];const P=Array.from(C.querySelectorAll(`[${h}]`));return Array.from(A.itemMap.values()).sort((M,O)=>P.indexOf(M.ref.current)-P.indexOf(O.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:i,Slot:d,ItemSlot:j},w,o]}function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Q=globalThis?.document?g.useLayoutEffect:()=>{},Vr=g[" useInsertionEffect ".trim().toString()]||Q;function de({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,a,i]=$r({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:n;{const m=g.useRef(e!==void 0);g.useEffect(()=>{const h=m.current;h!==l&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=l},[l,o])}const d=g.useCallback(m=>{if(l){const h=Fr(m)?m(e):m;h!==e&&i.current?.(h)}else a(m)},[l,e,a,i]);return[c,d]}function $r({defaultProp:e,onChange:t}){const[r,o]=g.useState(e),n=g.useRef(r),a=g.useRef(t);return Vr(()=>{a.current=t},[t]),g.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,o,a]}function Fr(e){return typeof e=="function"}var Gr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=Gr.reduce((e,t)=>{const r=we(`Primitive.${t}`),o=g.forwardRef((n,a)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Wr(e,t){return g.useReducer((r,o)=>t[r][o]??r,e)}var rt=e=>{const{present:t,children:r}=e,o=Ur(t),n=typeof r=="function"?r({present:o.isPresent}):g.Children.only(r),a=Y(o.ref,Hr(n));return typeof r=="function"||o.isPresent?g.cloneElement(n,{ref:a}):null};rt.displayName="Presence";function Ur(e){const[t,r]=g.useState(),o=g.useRef(null),n=g.useRef(e),a=g.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Wr(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const d=ae(o.current);a.current=l==="mounted"?d:"none"},[l]),Q(()=>{const d=o.current,m=n.current;if(m!==e){const R=a.current,j=ae(d);e?c("MOUNT"):j==="none"||d?.display==="none"?c("UNMOUNT"):c(m&&R!==j?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Q(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,h=j=>{const k=ae(o.current).includes(CSS.escape(j.animationName));if(j.target===t&&k&&(c("ANIMATION_END"),!n.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},R=j=>{j.target===t&&(a.current=ae(o.current))};return t.addEventListener("animationstart",R),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",R),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(d=>{o.current=d?getComputedStyle(d):null,r(d)},[])}}function ae(e){return e?.animationName||"none"}function Hr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qr=g[" useId ".trim().toString()]||(()=>{}),Zr=0;function ot(e){const[t,r]=g.useState(qr());return Q(()=>{r(o=>o??String(Zr++))},[e]),t?`radix-${t}`:""}var ue="Collapsible",[Kr,nt]=Ne(ue),[Xr,Se]=Kr(ue),st=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:n,disabled:a,onOpenChange:i,...l}=e,[c,d]=de({prop:o,defaultProp:n??!1,onChange:i,caller:ue});return s.jsx(Xr,{scope:r,disabled:a,contentId:ot(),open:c,onOpenToggle:g.useCallback(()=>d(m=>!m),[d]),children:s.jsx(q.div,{"data-state":Ie(c),"data-disabled":a?"":void 0,...l,ref:t})})});st.displayName=ue;var at="CollapsibleTrigger",it=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,n=Se(at,r);return s.jsx(q.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Ie(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:Pe(e.onClick,n.onOpenToggle)})});it.displayName=at;var _e="CollapsibleContent",lt=g.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Se(_e,e.__scopeCollapsible);return s.jsx(rt,{present:r||n.open,children:({present:a})=>s.jsx(Jr,{...o,ref:t,present:a})})});lt.displayName=_e;var Jr=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:n,...a}=e,i=Se(_e,r),[l,c]=g.useState(o),d=g.useRef(null),m=Y(t,d),h=g.useRef(0),R=h.current,j=g.useRef(0),w=j.current,k=i.open||l,A=g.useRef(k),N=g.useRef(void 0);return g.useEffect(()=>{const C=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(C)},[]),Q(()=>{const C=d.current;if(C){N.current=N.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const P=C.getBoundingClientRect();h.current=P.height,j.current=P.width,A.current||(C.style.transitionDuration=N.current.transitionDuration,C.style.animationName=N.current.animationName),c(o)}},[i.open,o]),s.jsx(q.div,{"data-state":Ie(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!k,...a,ref:m,style:{"--radix-collapsible-content-height":R?`${R}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:k&&n})});function Ie(e){return e?"open":"closed"}var Yr=st,Qr=it,eo=lt,to=g.createContext(void 0);function ro(e){const t=g.useContext(to);return e||t||"ltr"}var z="Accordion",oo=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Me,no,so]=Dr(z),[fe]=Ne(z,[so,nt]),Le=nt(),ct=p.forwardRef((e,t)=>{const{type:r,...o}=e,n=o,a=o;return s.jsx(Me.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(co,{...a,ref:t}):s.jsx(lo,{...n,ref:t})})});ct.displayName=z;var[dt,ao]=fe(z),[ut,io]=fe(z,{collapsible:!1}),lo=p.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},collapsible:a=!1,...i}=e,[l,c]=de({prop:r,defaultProp:o??"",onChange:n,caller:z});return s.jsx(dt,{scope:e.__scopeAccordion,value:p.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:p.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(ut,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(ft,{...i,ref:t})})})}),co=p.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},...a}=e,[i,l]=de({prop:r,defaultProp:o??[],onChange:n,caller:z}),c=p.useCallback(m=>l((h=[])=>[...h,m]),[l]),d=p.useCallback(m=>l((h=[])=>h.filter(R=>R!==m)),[l]);return s.jsx(dt,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(ut,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(ft,{...a,ref:t})})})}),[uo,me]=fe(z),ft=p.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:n,orientation:a="vertical",...i}=e,l=p.useRef(null),c=Y(l,t),d=no(r),h=ro(n)==="ltr",R=Pe(e.onKeyDown,j=>{if(!oo.includes(j.key))return;const w=j.target,k=d().filter(v=>!v.ref.current?.disabled),A=k.findIndex(v=>v.ref.current===w),N=k.length;if(A===-1)return;j.preventDefault();let C=A;const P=0,_=N-1,E=()=>{C=A+1,C>_&&(C=P)},M=()=>{C=A-1,C<P&&(C=_)};switch(j.key){case"Home":C=P;break;case"End":C=_;break;case"ArrowRight":a==="horizontal"&&(h?E():M());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(h?M():E());break;case"ArrowUp":a==="vertical"&&M();break}const O=C%N;k[O].ref.current?.focus()});return s.jsx(uo,{scope:r,disabled:o,direction:n,orientation:a,children:s.jsx(Me.Slot,{scope:r,children:s.jsx(q.div,{...i,"data-orientation":a,ref:c,onKeyDown:o?void 0:R})})})}),ce="AccordionItem",[fo,Ee]=fe(ce),mt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...n}=e,a=me(ce,r),i=ao(ce,r),l=Le(r),c=ot(),d=o&&i.value.includes(o)||!1,m=a.disabled||e.disabled;return s.jsx(fo,{scope:r,open:d,disabled:m,triggerId:c,children:s.jsx(Yr,{"data-orientation":a.orientation,"data-state":vt(d),...l,...n,ref:t,disabled:m,open:d,onOpenChange:h=>{h?i.onItemOpen(o):i.onItemClose(o)}})})});mt.displayName=ce;var pt="AccordionHeader",gt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(z,r),a=Ee(pt,r);return s.jsx(q.h3,{"data-orientation":n.orientation,"data-state":vt(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:t})});gt.displayName=pt;var Ce="AccordionTrigger",bt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(z,r),a=Ee(Ce,r),i=io(Ce,r),l=Le(r);return s.jsx(Me.ItemSlot,{scope:r,children:s.jsx(Qr,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...l,...o,ref:t})})});bt.displayName=Ce;var ht="AccordionContent",xt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(z,r),a=Ee(ht,r),i=Le(r);return s.jsx(eo,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});xt.displayName=ht;function vt(e){return e?"open":"closed"}var mo=ct,po=mt,go=gt,bo=bt,ho=xt;function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=yt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function xo(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=yt(e))&&(o&&(o+=" "),o+=t);return o}const Te="-",vo=e=>{const t=ko(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Te);return l[0]===""&&l.length!==1&&l.shift(),kt(l,t)||yo(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},kt=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?kt(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Te);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Xe=/^\[(.+)\]$/,yo=e=>{if(Xe.test(e)){const t=Xe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ko=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)je(r[n],o,n,t);return o},je=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Je(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(wo(n)){je(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{je(i,Je(t,a),r,o)})})},Je=(e,t)=>{let r=e;return t.split(Te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},wo=e=>e.isThemeGetter,Co=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ae="!",Re=":",jo=Re.length,Ao=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,l=0,c=0,d;for(let w=0;w<n.length;w++){let k=n[w];if(i===0&&l===0){if(k===Re){a.push(n.slice(c,w)),c=w+jo;continue}if(k==="/"){d=w;continue}}k==="["?i++:k==="]"?i--:k==="("?l++:k===")"&&l--}const m=a.length===0?n:n.substring(c),h=Ro(m),R=h!==m,j=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:R,baseClassName:h,maybePostfixModifierPosition:j}};if(t){const n=t+Re,a=o;o=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},Ro=e=>e.endsWith(Ae)?e.substring(0,e.length-1):e.startsWith(Ae)?e.substring(1):e,No=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},Po=e=>({cache:Co(e.cacheSize),parseClassName:Ao(e),sortModifiers:No(e),...vo(e)}),So=/\s+/,_o=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],l=e.trim().split(So);let c="";for(let d=l.length-1;d>=0;d-=1){const m=l[d],{isExternal:h,modifiers:R,hasImportantModifier:j,baseClassName:w,maybePostfixModifierPosition:k}=r(m);if(h){c=m+(c.length>0?" "+c:c);continue}let A=!!k,N=o(A?w.substring(0,k):w);if(!N){if(!A){c=m+(c.length>0?" "+c:c);continue}if(N=o(w),!N){c=m+(c.length>0?" "+c:c);continue}A=!1}const C=a(R).join(":"),P=j?C+Ae:C,_=P+N;if(i.includes(_))continue;i.push(_);const E=n(N,A);for(let M=0;M<E.length;++M){const O=E[M];i.push(P+O)}c=m+(c.length>0?" "+c:c)}return c};function Io(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=wt(t))&&(o&&(o+=" "),o+=r);return o}const wt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=wt(e[o]))&&(r&&(r+=" "),r+=t);return r};function Mo(e,...t){let r,o,n,a=i;function i(c){const d=t.reduce((m,h)=>h(m),e());return r=Po(d),o=r.cache.get,n=r.cache.set,a=l,l(c)}function l(c){const d=o(c);if(d)return d;const m=_o(c,r);return n(c,m),m}return function(){return a(Io.apply(null,arguments))}}const S=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lo=/^\d+\/\d+$/,Eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,To=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>Lo.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),ye=e=>e.endsWith("%")&&y(e.slice(0,-1)),V=e=>Eo.test(e),Do=()=>!0,Vo=e=>To.test(e)&&!zo.test(e),At=()=>!1,$o=e=>Oo.test(e),Fo=e=>Bo.test(e),Go=e=>!u(e)&&!f(e),Wo=e=>Z(e,Pt,At),u=e=>Ct.test(e),G=e=>Z(e,St,Vo),ke=e=>Z(e,Ko,y),Ye=e=>Z(e,Rt,At),Uo=e=>Z(e,Nt,Fo),ie=e=>Z(e,_t,$o),f=e=>jt.test(e),X=e=>K(e,St),Ho=e=>K(e,Xo),Qe=e=>K(e,Rt),qo=e=>K(e,Pt),Zo=e=>K(e,Nt),le=e=>K(e,_t,!0),Z=(e,t,r)=>{const o=Ct.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},K=(e,t,r=!1)=>{const o=jt.exec(e);return o?o[1]?t(o[1]):r:!1},Rt=e=>e==="position"||e==="percentage",Nt=e=>e==="image"||e==="url",Pt=e=>e==="length"||e==="size"||e==="bg-size",St=e=>e==="length",Ko=e=>e==="number",Xo=e=>e==="family-name",_t=e=>e==="shadow",Jo=()=>{const e=S("color"),t=S("font"),r=S("text"),o=S("font-weight"),n=S("tracking"),a=S("leading"),i=S("breakpoint"),l=S("container"),c=S("spacing"),d=S("radius"),m=S("shadow"),h=S("inset-shadow"),R=S("text-shadow"),j=S("drop-shadow"),w=S("blur"),k=S("perspective"),A=S("aspect"),N=S("ease"),C=S("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[..._(),f,u],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],v=()=>[f,u,c],B=()=>[H,"full","auto",...v()],$e=()=>[$,"none","subgrid",f,u],Fe=()=>["auto",{span:["full",$,f,u]},$,f,u],te=()=>[$,"auto",f,u],Ge=()=>["auto","min","max","fr",f,u],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...v()],F=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],x=()=>[e,f,u],We=()=>[..._(),Qe,Ye,{position:[f,u]}],Ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],He=()=>["auto","cover","contain",qo,Wo,{size:[f,u]}],xe=()=>[ye,X,G],L=()=>["","none","full",d,f,u],T=()=>["",y,X,G],re=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[y,ye,Qe,Ye],Ze=()=>["","none",w,f,u],oe=()=>["none",y,f,u],ne=()=>["none",y,f,u],ve=()=>[y,f,u],se=()=>[H,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[V],breakpoint:[V],color:[Do],container:[V],"drop-shadow":[V],ease:["in","out","in-out"],font:[Go],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[V],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[V],shadow:[V],spacing:["px",y],text:[V],"text-shadow":[V],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,u,f,A]}],container:["container"],columns:[{columns:[y,u,f,l]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",f,u]}],basis:[{basis:[H,"full","auto",l,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,H,"auto","initial","none",u]}],grow:[{grow:["",y,f,u]}],shrink:[{shrink:["",y,f,u]}],order:[{order:[$,"first","last","none",f,u]}],"grid-cols":[{"grid-cols":$e()}],"col-start-end":[{col:Fe()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":$e()}],"row-start-end":[{row:Fe()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,X,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,f,ke]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ye,u]}],"font-family":[{font:[Ho,u,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,f,u]}],"line-clamp":[{"line-clamp":[y,"none",f,ke]}],leading:[{leading:[a,...v()]}],"list-image":[{"list-image":["none",f,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",f,G]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[y,"auto",f,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:We()}],"bg-repeat":[{bg:Ue()}],"bg-size":[{bg:He()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,f,u],radial:["",f,u],conic:[$,f,u]},Zo,Uo]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,f,u]}],"outline-w":[{outline:["",y,X,G]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,le,ie]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",h,le,ie]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[y,G]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",R,le,ie]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[y,f,u]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[f,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:We()}],"mask-repeat":[{mask:Ue()}],"mask-size":[{mask:He()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,u]}],filter:[{filter:["","none",f,u]}],blur:[{blur:Ze()}],brightness:[{brightness:[y,f,u]}],contrast:[{contrast:[y,f,u]}],"drop-shadow":[{"drop-shadow":["","none",j,le,ie]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",y,f,u]}],"hue-rotate":[{"hue-rotate":[y,f,u]}],invert:[{invert:["",y,f,u]}],saturate:[{saturate:[y,f,u]}],sepia:[{sepia:["",y,f,u]}],"backdrop-filter":[{"backdrop-filter":["","none",f,u]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[y,f,u]}],"backdrop-contrast":[{"backdrop-contrast":[y,f,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,f,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,f,u]}],"backdrop-invert":[{"backdrop-invert":["",y,f,u]}],"backdrop-opacity":[{"backdrop-opacity":[y,f,u]}],"backdrop-saturate":[{"backdrop-saturate":[y,f,u]}],"backdrop-sepia":[{"backdrop-sepia":["",y,f,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",f,u]}],ease:[{ease:["linear","initial",N,f,u]}],delay:[{delay:[y,f,u]}],animate:[{animate:["none",C,f,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,f,u]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[f,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,u]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[y,X,G,ke]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Yo=Mo(Jo);function b(...e){return Yo(xo(e))}function It({children:e,className:t,...r}){const{colorScheme:o}=pe(),{value:n}=ge();return s.jsx(po,{className:b("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",value:n,...r,children:e})}function Mt({className:e,...t}){return s.jsx(mo,{className:b(e),...t,"data-slot":"accordion-root"})}function Lt({className:e,...t}){const{colorScheme:r}=pe(),{content:o}=ge(),[n,a]=p.useState(!1);return p.useEffect(()=>{a(!0)},[]),s.jsx(ho,{className:b("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:s.jsx("div",{className:b("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-content",children:o})})}function Et({className:e,...t}){const{colorScheme:r}=pe(),{title:o}=ge();return s.jsx(go,{children:s.jsxs(bo,{className:b("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...t,children:[s.jsx("div",{className:b("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:o}),s.jsxs("svg",{className:b("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}const Tt=p.createContext(void 0);function zt({children:e,colorScheme:t="light",items:r}){const o=p.useMemo(()=>({colorScheme:t,items:r}),[t,r]);return s.jsx(Tt.Provider,{value:o,children:e})}function pe(){const e=p.use(Tt);if(e===void 0)throw new Error("useAccordion must be used within an AccordionProvider");return e}const Ot=p.createContext(void 0);function Bt({children:e,title:t,content:r,value:o}){const n=p.useMemo(()=>({title:t,content:r,value:o}),[t,r,o]);return s.jsx(Ot.Provider,{value:n,children:e})}function ge(){const e=p.use(Ot);if(e===void 0)throw new Error("useAccordionItem must be used within an AccordionItemProvider");return e}function Qo({className:e,variant:t,message:r,description:o,action:n,dismiss:a}){return s.jsx(en,{action:n,description:o,dismiss:a,message:r,variant:t,children:s.jsxs(Dt,{className:e,children:[s.jsxs($t,{children:[s.jsx(Ft,{}),s.jsx(Gt,{})]}),s.jsxs(Wt,{children:[s.jsx(Ht,{}),s.jsx(qt,{})]})]})})}function Dt({className:e,children:t,...r}){const{variant:o}=ee();return s.jsx("div",{className:b("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...r,children:t})}const Vt=p.createContext(void 0);function en({children:e,message:t,description:r,action:o,dismiss:n,variant:a}){const i=p.useMemo(()=>({message:t,description:r,action:o,dismiss:n,variant:a}),[t,r,o,n,a]);return s.jsx(Vt.Provider,{value:i,children:e})}function ee(){const e=p.use(Vt);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function $t({children:e,className:t,...r}){return s.jsx("div",{className:b("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function Ft({children:e,className:t,...r}){const{message:o}=ee();return s.jsx("h5",{className:b("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:o})}function Gt({className:e,...t}){const{description:r}=ee();return s.jsx("p",{className:b("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...t,children:r})}function Wt({children:e,className:t,...r}){return s.jsx("div",{className:b("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
|
|
2
2
|
* @license lucide-react v0.545.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const tn=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rn=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),et=e=>{const t=rn(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ut=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),on=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
7
7
|
* @license lucide-react v0.545.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var nn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
12
|
* @license lucide-react v0.545.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const sn=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...l},c)=>p.createElement("svg",{ref:c,...nn,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Ut("lucide",n),...!a&&!on(l)&&{"aria-hidden":"true"},...l},[...i.map(([d,m])=>p.createElement(d,m)),...Array.isArray(a)?a:[a]]));/**
|
|
17
17
|
* @license lucide-react v0.545.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const ze=(e,t)=>{const r=p.forwardRef(({className:o,...n},a)=>p.createElement(sn,{ref:a,iconNode:t,className:Ut(`lucide-${tn(et(e))}`,`lucide-${e}`,o),...n}));return r.displayName=et(e),r};/**
|
|
22
22
|
* @license lucide-react v0.545.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const an=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ln=ze("circle-alert",an);/**
|
|
27
27
|
* @license lucide-react v0.545.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const cn=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],dn=ze("loader-circle",cn);/**
|
|
32
32
|
* @license lucide-react v0.545.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const rn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Be=Te("x",rn);function ze({variant:e="primary",size:t="large",shape:r="pill",loading:o=!1,type:n="button",disabled:s=!1,className:i,children:l,...c}){return a.jsxs("button",{"aria-busy":o,className:b("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!o&&!s&&"hover:after:translate-x-0",o&&"pointer-events-none",i),"data-slot":"button",disabled:s,type:n,...c,children:[a.jsx("span",{className:b("inline-flex items-center justify-center transition-all duration-300 ease-in-out",o?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),a.jsx("span",{className:b("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:a.jsx(tn,{className:b("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Wt({children:e,...t}){const{action:r}=ee();if(!r)return null;const{label:o,onClick:n}=r;return a.jsx(ze,{"data-slot":"alert-button",onClick:n,size:"x-small",variant:"ghost",...t,children:o})}function Ht({...e}){const{dismiss:t}=ee(),{label:r,onClick:o}=t;return a.jsx(ze,{"aria-label":r,"data-slot":"alert-close-button",onClick:o,shape:"circle",size:"x-small",variant:"ghost",...e,children:a.jsx(Be,{size:20,strokeWidth:1})})}function on({className:e,children:t,...r}){return a.jsx("span",{className:b("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function nn({children:e,shape:t="rounded",className:r,variant:o="primary",...n}){return a.jsx("span",{className:b("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[o],r),...n,children:e})}const an=({id:e,children:t,hideDismiss:r=!1,className:o,onDismiss:n})=>a.jsx(Zt,{hideDismiss:r,id:e,onDismiss:n,children:a.jsx(Kt,{className:o,children:a.jsxs(Xt,{children:[a.jsx(Jt,{children:t}),a.jsx(Yt,{})]})})}),qt=g.createContext(void 0);function Zt({id:e,hideDismiss:t,onDismiss:r,children:o}){const[n,s]=g.useState(!1),[i,l]=g.useState(!1);g.useEffect(()=>{const m=localStorage.getItem(`${e}-hidden-banner`)==="true";s(m),l(!0)},[e]);const c=g.useCallback(()=>{s(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),d=g.useMemo(()=>({id:e,isInitialized:i,isDismissed:n,hideDismiss:t,handleDismiss:c}),[e,i,n,t,c]);return a.jsx(qt.Provider,{value:d,children:i?o:null})}function Oe(){const e=g.use(qt);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function Kt({children:e,className:t,...r}){const{id:o,isDismissed:n}=Oe();return a.jsx("div",{className:b("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",n?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:o,...r,children:e})}function Xt({className:e,children:t}){return a.jsx("div",{className:b("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function Jt({children:e,className:t,...r}){return a.jsx("div",{className:b("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function Yt({className:e,...t}){const{hideDismiss:r,handleDismiss:o}=Oe();return r?null:a.jsx("button",{"aria-label":"Dismiss banner",className:b("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:n=>{n.preventDefault(),o()},...t,children:a.jsx(Be,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function sn({author:e,content:t,date:r,link:o,image:n,title:s,className:i}){return a.jsx(er,{author:e,content:t,date:r,image:n,link:o,title:s,children:a.jsxs(tr,{className:i,children:[a.jsx(rr,{}),a.jsx(nr,{}),a.jsx(ar,{}),a.jsxs(sr,{children:[a.jsx(ir,{}),a.jsx(lr,{})]}),a.jsx(or,{})]})})}const Qt=g.createContext(void 0);function er({children:e,title:t,author:r,content:o,date:n,image:s,link:i}){const l=g.useMemo(()=>({title:t,author:r,content:o,date:n,image:s,link:i}),[t,r,o,n,s,i]);return a.jsx(Qt.Provider,{value:l,children:e})}function U(){const e=g.use(Qt);if(e===void 0)throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");return e}function tr({as:e,className:t,children:r,...o}){const n=e??"article";return a.jsx(n,{className:b("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...o,children:r})}function ln({children:e,className:t,...r}){return a.jsx("div",{className:b("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}function rr({className:e,...t}){const{image:r,title:o}=U(),n="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",s=()=>{if(!r)return a.jsx("div",{className:b("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",e),...t,children:o});const{src:i,alt:l,render:c}=r;return c?c({src:i,alt:l,className:n}):a.jsx("img",{alt:l,className:n,src:i})};return a.jsx("div",{className:b("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",e),...t,children:s()})}function or({className:e,...t}){const{link:{href:r,ariaLabel:o,render:n}}=U(),s=b("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",e);return n?n({href:r,ariaLabel:o,className:s,...t}):a.jsx("a",{className:s,href:r,...t,children:a.jsx("span",{className:"sr-only",children:o})})}function nr({className:e,...t}){const{title:r}=U();return a.jsx("h5",{className:b("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...t,children:r})}function ar({className:e,...t}){const{content:r}=U();return a.jsx("p",{className:b("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...t,children:r})}function sr({children:e,className:t,...r}){return a.jsx("div",{className:b("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function ir({className:e,...t}){const{date:r}=U();return a.jsx("time",{dateTime:r,...t,"data-slot":"blog-post-card-date",children:new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function lr({className:e,...t}){const{author:r}=U();if(r!=null)return a.jsxs(a.Fragment,{children:[a.jsx("span",{className:b("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...t}),a.jsx("span",{children:r})]})}function cr({className:e,...t}){return a.jsx("div",{className:b("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function J({characterCount:e=10,className:t,...r}){return a.jsx("div",{className:b("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:a.jsx("div",{className:b("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function cn({className:e,aspectRatio:t="4:3",...r}){return a.jsxs("div",{className:b("w-full max-w-md @container",e),...r,children:[a.jsx(cr,{className:b("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),a.jsx(J,{characterCount:25,className:"mt-4 rounded text-lg"}),a.jsxs("div",{className:"mt-1.5",children:[a.jsx(J,{characterCount:"full",className:"rounded text-sm"}),a.jsx(J,{characterCount:"full",className:"rounded text-sm"}),a.jsx(J,{characterCount:15,className:"rounded text-sm"})]}),a.jsx(J,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function dn({variant:e="primary",size:t="large",shape:r="pill",className:o,children:n,render:s,...i}){const l=b("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],o),c=a.jsx("span",{className:b("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:n});function d(){return s?s({...i,className:l,children:c}):a.jsx("a",{...i,className:l,children:c})}return a.jsx(a.Fragment,{children:d()})}function un({as:e,className:t,children:r,link:o,...n}){return a.jsxs(ur,{as:e,className:t,...n,children:[r,a.jsx(dr,{link:o})]})}function dr({link:e}){if(!e)return null;const{href:t,ariaLabel:r,render:o}=e,n=b("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]");return o?o({href:t,ariaLabel:r,className:n}):a.jsx("a",{className:n,"data-slot":"card-link",href:t,children:a.jsx("span",{className:"sr-only",children:r})})}function ur({as:e,className:t,children:r}){const o=e??"div";return a.jsx(o,{className:b("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:r})}function fn({className:e,...t}){return a.jsx("div",{className:b("@container",e),...t,children:a.jsx(cr,{})})}function mn({className:e,children:t,removeLabel:r="Remove",...o}){return a.jsxs(fr,{className:e,children:[t,a.jsx(mr,{title:r,...o})]})}function fr({children:e,className:t,...r}){return a.jsx("span",{className:b("flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",t),...r,children:e})}function mr({className:e,...t}){return a.jsx("button",{className:b("flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",e),...t,children:a.jsx(Be,{size:12})})}function pn({checked:e=!1,setChecked:t}){return a.jsx(br,{onPressedChange:t,pressed:e,children:a.jsx(hr,{filled:e})})}var pr="Toggle",gr=p.forwardRef((e,t)=>{const{pressed:r,defaultPressed:o,onPressedChange:n,...s}=e,[i,l]=de({prop:r,onChange:n,defaultProp:o??!1,caller:pr});return a.jsx(q.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:Pe(e.onClick,()=>{e.disabled||l(!i)})})});gr.displayName=pr;var gn=gr;function br({children:e,className:t,...r}){return a.jsx(gn,{className:b("group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",t),...r,children:e})}function hr({filled:e=!1,className:t,...r}){return a.jsxs("svg",{className:b("transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",t),fill:"none",height:"21",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",...r,children:[a.jsx("path",{className:b({"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100":e}),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{className:b("origin-center transition-transform duration-300 ease-out",e?"scale-100 fill-current":"scale-0"),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"})]})}function bn({className:e,children:t,...r}){return a.jsxs("div",{className:b("flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",e),...r,children:[a.jsx(Qo,{size:20,strokeWidth:1.5}),t]})}function hn({showRating:e=!0,rating:t,className:r}){return a.jsx(vr,{rating:t,showRating:e,children:a.jsxs(yr,{className:r,children:[a.jsx(kr,{}),a.jsx(wr,{})]})})}const xr=g.createContext(void 0);function vr({children:e,rating:t,showRating:r=!0}){const o=g.useRef(0),n=g.useCallback(()=>{const l=o.current;return o.current+=1,l},[]),s=g.useCallback(()=>{o.current=0},[]),i=g.useMemo(()=>{const l=Math.min(t,5),c=Array.from({length:5},(d,m)=>m<Math.floor(l)?"full":m<Math.ceil(l)?"half":"empty");return{rating:t,adjustedRating:l,stars:c,showRating:r,getNextStarIndex:n,resetStarIndex:s}},[t,r]);return a.jsx(xr.Provider,{value:i,children:e})}function De(){const e=g.use(xr);if(e===void 0)throw new Error("useRating must be used within a RatingProvider");return e}function yr({children:e,className:t,...r}){return a.jsx("div",{className:b("flex items-center",t),...r,children:e})}function xn({className:e,...t}){const{stars:r,getNextStarIndex:o}=De(),n=o(),s=r[n]??"empty",i={empty:a.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:a.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return a.jsx("svg",{className:b("inline-block text-[var(--rating-icon,hsl(var(--foreground)))]",e),fill:"none",height:20,viewBox:"0 0 20 20",width:20,...t,children:i[s]})}function kr(){const{resetStarIndex:e}=De();return e(),a.jsx(a.Fragment,{children:[0,1,2,3,4].map(t=>a.jsx(xn,{},t))})}function wr({className:e,...t}){const{adjustedRating:r,showRating:o}=De();return o?a.jsx("span",{className:b("ml-1.5 flex h-6 min-w-6 shrink-0 items-center justify-center rounded-full border border-[var(--rating-border,hsl(var(--contrast-100)))] px-1 text-xs font-medium text-[var(--rating-text,hsl(var(--contrast-400)))]",e),...t,children:r%1!==0?r.toFixed(1):r}):null}exports.Accordion=jr;exports.AccordionContent=Mt;exports.AccordionItem=It;exports.AccordionItemProvider=zt;exports.AccordionProvider=Tt;exports.AccordionRoot=_t;exports.AccordionTrigger=Lt;exports.Alert=Wo;exports.AlertActions=Gt;exports.AlertButton=Wt;exports.AlertCloseButton=Ht;exports.AlertDescription=Ft;exports.AlertHeader=$t;exports.AlertRoot=Ot;exports.AlertTitle=Vt;exports.AnimatedUnderline=on;exports.Badge=nn;exports.Banner=an;exports.BannerContent=Xt;exports.BannerDismiss=Yt;exports.BannerProvider=Zt;exports.BannerRoot=Kt;exports.BannerText=Jt;exports.BlogPostCard=sn;exports.BlogPostCardAuthor=lr;exports.BlogPostCardContent=ar;exports.BlogPostCardDate=ir;exports.BlogPostCardDetails=sr;exports.BlogPostCardFallback=ln;exports.BlogPostCardImage=rr;exports.BlogPostCardLink=or;exports.BlogPostCardProvider=er;exports.BlogPostCardRoot=tr;exports.BlogPostCardSkeleton=cn;exports.BlogPostCardTitle=nr;exports.Button=ze;exports.ButtonLink=dn;exports.Card=un;exports.CardLink=dr;exports.CardRoot=ur;exports.CardSkeleton=fn;exports.Chip=mn;exports.ChipButton=mr;exports.ChipRoot=fr;exports.Favorite=pn;exports.FavoriteHeart=hr;exports.FavoriteRoot=br;exports.FieldError=bn;exports.Rating=hn;exports.RatingProvider=vr;exports.RatingRoot=yr;exports.RatingStars=kr;exports.RatingValue=wr;exports.useAccordion=pe;exports.useAccordionItem=ge;exports.useBanner=Oe;exports.useBlogPostCard=U;
|
|
36
|
+
*/const un=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oe=ze("x",un);function be({variant:e="primary",size:t="large",shape:r="pill",loading:o=!1,type:n="button",disabled:a=!1,className:i,children:l,...c}){return s.jsxs("button",{"aria-busy":o,className:b("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!o&&!a&&"hover:after:translate-x-0",o&&"pointer-events-none",i),"data-slot":"button",disabled:a,type:n,...c,children:[s.jsx("span",{className:b("inline-flex items-center justify-center transition-all duration-300 ease-in-out",o?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),s.jsx("span",{className:b("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:s.jsx(dn,{className:b("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Ht({children:e,...t}){const{action:r}=ee();if(!r)return null;const{label:o,onClick:n}=r;return s.jsx(be,{"data-slot":"alert-button",onClick:n,size:"x-small",variant:"ghost",...t,children:o})}function qt({...e}){const{dismiss:t}=ee(),{label:r,onClick:o}=t;return s.jsx(be,{"aria-label":r,"data-slot":"alert-close-button",onClick:o,shape:"circle",size:"x-small",variant:"ghost",...e,children:s.jsx(Oe,{size:20,strokeWidth:1})})}function Zt({className:e,children:t,...r}){return s.jsx("span",{className:b("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function fn({children:e,shape:t="rounded",className:r,variant:o="primary",...n}){return s.jsx("span",{className:b("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[o],r),...n,children:e})}const mn=({id:e,children:t,hideDismiss:r=!1,className:o,onDismiss:n})=>s.jsx(Xt,{hideDismiss:r,id:e,onDismiss:n,children:s.jsx(Jt,{className:o,children:s.jsxs(Yt,{children:[s.jsx(Qt,{children:t}),s.jsx(er,{})]})})}),Kt=p.createContext(void 0);function Xt({id:e,hideDismiss:t,onDismiss:r,children:o}){const[n,a]=p.useState(!1),[i,l]=p.useState(!1);p.useEffect(()=>{const m=localStorage.getItem(`${e}-hidden-banner`)==="true";a(m),l(!0)},[e]);const c=p.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),d=p.useMemo(()=>({id:e,isInitialized:i,isDismissed:n,hideDismiss:t,handleDismiss:c}),[e,i,n,t,c]);return s.jsx(Kt.Provider,{value:d,children:i?o:null})}function Be(){const e=p.use(Kt);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function Jt({children:e,className:t,...r}){const{id:o,isDismissed:n}=Be();return s.jsx("div",{className:b("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",n?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:o,...r,children:e})}function Yt({className:e,children:t}){return s.jsx("div",{className:b("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function Qt({children:e,className:t,...r}){return s.jsx("div",{className:b("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function er({className:e,...t}){const{hideDismiss:r,handleDismiss:o}=Be();return r?null:s.jsx("button",{"aria-label":"Dismiss banner",className:b("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:n=>{n.preventDefault(),o()},...t,children:s.jsx(Oe,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function pn({author:e,content:t,date:r,link:o,image:n,title:a,className:i}){return s.jsx(rr,{author:e,content:t,date:r,image:n,link:o,title:a,children:s.jsxs(or,{className:i,children:[s.jsx(nr,{}),s.jsx(ar,{}),s.jsx(ir,{}),s.jsxs(lr,{children:[s.jsx(cr,{}),s.jsx(dr,{})]}),s.jsx(sr,{})]})})}const tr=p.createContext(void 0);function rr({children:e,title:t,author:r,content:o,date:n,image:a,link:i}){const l=p.useMemo(()=>({title:t,author:r,content:o,date:n,image:a,link:i}),[t,r,o,n,a,i]);return s.jsx(tr.Provider,{value:l,children:e})}function W(){const e=p.use(tr);if(e===void 0)throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");return e}function or({as:e,className:t,children:r,...o}){const n=e??"article";return s.jsx(n,{className:b("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...o,children:r})}function gn({children:e,className:t,...r}){return s.jsx("div",{className:b("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}function nr({className:e,...t}){const{image:r,title:o}=W(),n="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>{if(!r)return s.jsx("div",{className:b("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",e),...t,children:o});const{src:i,alt:l,render:c}=r;return c?c({src:i,alt:l,className:n}):s.jsx("img",{alt:l,className:n,src:i})};return s.jsx("div",{className:b("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",e),...t,children:a()})}function sr({className:e,...t}){const{link:{href:r,ariaLabel:o,render:n}}=W(),a=b("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",e);return n?n({href:r,ariaLabel:o,className:a,...t}):s.jsx("a",{className:a,href:r,...t,children:s.jsx("span",{className:"sr-only",children:o})})}function ar({className:e,...t}){const{title:r}=W();return s.jsx("h5",{className:b("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...t,children:r})}function ir({className:e,...t}){const{content:r}=W();return s.jsx("p",{className:b("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...t,children:r})}function lr({children:e,className:t,...r}){return s.jsx("div",{className:b("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function cr({className:e,...t}){const{date:r}=W();return s.jsx("time",{dateTime:r,...t,"data-slot":"blog-post-card-date",children:new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function dr({className:e,...t}){const{author:r}=W();if(r!=null)return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:b("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...t}),s.jsx("span",{children:r})]})}function ur({className:e,...t}){return s.jsx("div",{className:b("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function J({characterCount:e=10,className:t,...r}){return s.jsx("div",{className:b("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:s.jsx("div",{className:b("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function bn({className:e,aspectRatio:t="4:3",...r}){return s.jsxs("div",{className:b("w-full max-w-md @container",e),...r,children:[s.jsx(ur,{className:b("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),s.jsx(J,{characterCount:25,className:"mt-4 rounded text-lg"}),s.jsxs("div",{className:"mt-1.5",children:[s.jsx(J,{characterCount:"full",className:"rounded text-sm"}),s.jsx(J,{characterCount:"full",className:"rounded text-sm"}),s.jsx(J,{characterCount:15,className:"rounded text-sm"})]}),s.jsx(J,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function hn({variant:e="primary",size:t="large",shape:r="pill",className:o,children:n,render:a,...i}){const l=b("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],o),c=s.jsx("span",{className:b("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:n});function d(){return a?a({...i,className:l,children:c}):s.jsx("a",{...i,className:l,children:c})}return s.jsx(s.Fragment,{children:d()})}function xn({as:e,className:t,children:r,link:o,...n}){return s.jsxs(mr,{as:e,className:t,...n,children:[r,s.jsx(fr,{link:o})]})}function fr({link:e}){if(!e)return null;const{href:t,ariaLabel:r,render:o}=e,n=b("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]");return o?o({href:t,ariaLabel:r,className:n}):s.jsx("a",{className:n,"data-slot":"card-link",href:t,children:s.jsx("span",{className:"sr-only",children:r})})}function mr({as:e,className:t,children:r}){const o=e??"div";return s.jsx(o,{className:b("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:r})}function vn({className:e,...t}){return s.jsx("div",{className:b("@container",e),...t,children:s.jsx(ur,{})})}function yn({className:e,children:t,removeLabel:r="Remove",...o}){return s.jsxs(pr,{className:e,children:[t,s.jsx(gr,{title:r,...o})]})}function pr({children:e,className:t,...r}){return s.jsx("span",{className:b("flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",t),...r,children:e})}function gr({className:e,...t}){return s.jsx("button",{className:b("flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",e),...t,children:s.jsx(Oe,{size:12})})}function kn({checked:e=!1,setChecked:t}){return s.jsx(xr,{onPressedChange:t,pressed:e,children:s.jsx(vr,{filled:e})})}var br="Toggle",hr=g.forwardRef((e,t)=>{const{pressed:r,defaultPressed:o,onPressedChange:n,...a}=e,[i,l]=de({prop:r,onChange:n,defaultProp:o??!1,caller:br});return s.jsx(q.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Pe(e.onClick,()=>{e.disabled||l(!i)})})});hr.displayName=br;var wn=hr;function xr({children:e,className:t,...r}){return s.jsx(wn,{className:b("group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",t),...r,children:e})}function vr({filled:e=!1,className:t,...r}){return s.jsxs("svg",{className:b("transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",t),fill:"none",height:"21",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",...r,children:[s.jsx("path",{className:b({"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100":e}),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{className:b("origin-center transition-transform duration-300 ease-out",e?"scale-100 fill-current":"scale-0"),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"})]})}function Cn({className:e,children:t,...r}){return s.jsxs("div",{className:b("flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",e),...r,children:[s.jsx(ln,{size:20,strokeWidth:1.5}),t]})}function jn({showRating:e=!0,rating:t,className:r}){return s.jsx(kr,{rating:t,showRating:e,children:s.jsxs(wr,{className:r,children:[s.jsx(Cr,{}),s.jsx(jr,{})]})})}const yr=p.createContext(void 0);function kr({children:e,rating:t,showRating:r=!0}){const o=p.useRef(0),n=p.useCallback(()=>{const l=o.current;return o.current+=1,l},[]),a=p.useCallback(()=>{o.current=0},[]),i=p.useMemo(()=>{const l=Math.min(t,5),c=Array.from({length:5},(d,m)=>m<Math.floor(l)?"full":m<Math.ceil(l)?"half":"empty");return{rating:t,adjustedRating:l,stars:c,showRating:r,getNextStarIndex:n,resetStarIndex:a}},[t,r]);return s.jsx(yr.Provider,{value:i,children:e})}function De(){const e=p.use(yr);if(e===void 0)throw new Error("useRating must be used within a RatingProvider");return e}function wr({children:e,className:t,...r}){return s.jsx("div",{className:b("flex items-center",t),...r,children:e})}function An({className:e,...t}){const{stars:r,getNextStarIndex:o}=De(),n=o(),a=r[n]??"empty",i={empty:s.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:s.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return s.jsx("svg",{className:b("inline-block text-[var(--rating-icon,hsl(var(--foreground)))]",e),fill:"none",height:20,viewBox:"0 0 20 20",width:20,...t,children:i[a]})}function Cr(){const{resetStarIndex:e}=De();return e(),s.jsx(s.Fragment,{children:[0,1,2,3,4].map(t=>s.jsx(An,{},t))})}function jr({className:e,...t}){const{adjustedRating:r,showRating:o}=De();return o?s.jsx("span",{className:b("ml-1.5 flex h-6 min-w-6 shrink-0 items-center justify-center rounded-full border border-[var(--rating-border,hsl(var(--contrast-100)))] px-1 text-xs font-medium text-[var(--rating-text,hsl(var(--contrast-400)))]",e),...t,children:r%1!==0?r.toFixed(1):r}):null}function Rn({className:e,variant:t="underline",showLabel:r="Show more",hideLabel:o="Show less",defaultOpen:n=!1,maxHeight:a="10rem",children:i}){return s.jsx(Nr,{variant:t,showLabel:r,hideLabel:o,defaultOpen:n,maxHeight:a,children:s.jsxs(Ar,{className:e,children:[s.jsx(Pr,{children:i}),s.jsx(Sr,{children:s.jsx(_r,{})})]})})}function Ar({children:e,className:t,...r}){return s.jsx("div",{className:b("relative",t),...r,children:e})}const Rr=p.createContext(void 0);function Nr({children:e,variant:t="underline",showLabel:r="Show more",hideLabel:o="Show less",defaultOpen:n=!1,maxHeight:a="10rem"}){const[i,l]=p.useState(n),[c,d]=p.useState(!0),m=p.useRef(null),h=p.useCallback(w=>{const k=parseFloat(w);return w.endsWith("rem")?k*16:(w.endsWith("px"),k)},[]);p.useEffect(()=>{function w(){if(m.current){const A=m.current.scrollHeight,N=h(a);d(A>N)}}w();const k=new ResizeObserver(w);return m.current&&k.observe(m.current),()=>{k.disconnect()}},[a,h]);const R=p.useCallback(()=>{l(w=>!w)},[]),j=p.useMemo(()=>({isOpen:i,hasOverflow:c,variant:t,showLabel:r,hideLabel:o,maxHeight:a,contentRef:m,toggleOpen:R}),[i,c,t,r,o,a,R]);return s.jsx(Rr.Provider,{value:j,children:e})}function Ve(){const e=p.use(Rr);if(e===void 0)throw new Error("useReveal must be used within a RevealProvider");return e}function Pr({children:e,className:t,...r}){const{hasOverflow:o,isOpen:n,maxHeight:a,contentRef:i}=Ve();return s.jsx("div",{className:b(o&&!n&&"[mask-image:linear-gradient(to_top,transparent,black_50px,black_calc(100%-50px))]","overflow-hidden",t),ref:i,style:{maxHeight:n?"none":a},...r,children:e})}function Sr({children:e,className:t,...r}){const{hasOverflow:o}=Ve();return o?s.jsx("div",{className:b("flex w-full items-end pt-4",t),...r,children:e}):null}function _r({children:e,className:t,...r}){const{variant:o,showLabel:n,hideLabel:a,isOpen:i,toggleOpen:l}=Ve();return s.jsxs(s.Fragment,{children:[o==="underline"&&s.jsx("button",{className:b("group/underline text-sm focus:outline-none",t),onClick:()=>l(),type:"button",...r,children:s.jsx(Zt,{children:i?a:n})}),o==="button"&&s.jsx(be,{className:t,onClick:()=>l(),size:"x-small",type:"button",variant:"tertiary",...r,children:i?a:n})]})}exports.Accordion=Mr;exports.AccordionContent=Lt;exports.AccordionItem=It;exports.AccordionItemProvider=Bt;exports.AccordionProvider=zt;exports.AccordionRoot=Mt;exports.AccordionTrigger=Et;exports.Alert=Qo;exports.AlertActions=Wt;exports.AlertButton=Ht;exports.AlertCloseButton=qt;exports.AlertDescription=Gt;exports.AlertHeader=$t;exports.AlertRoot=Dt;exports.AlertTitle=Ft;exports.AnimatedUnderline=Zt;exports.Badge=fn;exports.Banner=mn;exports.BannerContent=Yt;exports.BannerDismiss=er;exports.BannerProvider=Xt;exports.BannerRoot=Jt;exports.BannerText=Qt;exports.BlogPostCard=pn;exports.BlogPostCardAuthor=dr;exports.BlogPostCardContent=ir;exports.BlogPostCardDate=cr;exports.BlogPostCardDetails=lr;exports.BlogPostCardFallback=gn;exports.BlogPostCardImage=nr;exports.BlogPostCardLink=sr;exports.BlogPostCardProvider=rr;exports.BlogPostCardRoot=or;exports.BlogPostCardSkeleton=bn;exports.BlogPostCardTitle=ar;exports.Button=be;exports.ButtonLink=hn;exports.Card=xn;exports.CardLink=fr;exports.CardRoot=mr;exports.CardSkeleton=vn;exports.Chip=yn;exports.ChipButton=gr;exports.ChipRoot=pr;exports.Favorite=kn;exports.FavoriteHeart=vr;exports.FavoriteRoot=xr;exports.FieldError=Cn;exports.Rating=jn;exports.RatingProvider=kr;exports.RatingRoot=wr;exports.RatingStars=Cr;exports.RatingValue=jr;exports.Reveal=Rn;exports.RevealControls=Sr;exports.RevealProvider=Nr;exports.RevealRoot=Ar;exports.RevealTrigger=_r;exports.RevealViewport=Pr;exports.useAccordion=pe;exports.useAccordionItem=ge;exports.useBanner=Be;exports.useBlogPostCard=W;
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|