@inkorange/space-ui 1.3.0 → 1.4.0

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/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  <!-- badges:start -->
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@inkorange/space-ui)](https://www.npmjs.com/package/@inkorange/space-ui)
6
- ![coverage](https://img.shields.io/badge/coverage-80%25-yellowgreen)
7
- ![minzip](https://img.shields.io/badge/minzip-25.4%20kB-blue)
6
+ ![coverage](https://img.shields.io/badge/coverage-82%25-green)
7
+ ![minzip](https://img.shields.io/badge/minzip-26.3%20kB-blue)
8
8
  ![dependencies](https://img.shields.io/badge/dependencies-0-blue)
9
9
  [![docs](https://img.shields.io/badge/docs-live%20gallery-0b7dd6)](https://space-components.vercel.app)
10
10
 
@@ -162,7 +162,7 @@ it exposes.
162
162
  | | |
163
163
  | --- | --- |
164
164
  | **Typography** | [Text](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Link](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Heading](https://space-components.vercel.app/?story=components--typography--headings) · [Badge](https://space-components.vercel.app/?story=components--typography--badges) · [Separator](https://space-components.vercel.app/?story=components--typography--separator) |
165
- | **Layout** | [Card](https://space-components.vercel.app/?story=components--layout--card) · [Flex](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Grid](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Box](https://space-components.vercel.app/?story=components--layout--flex-and-grid) |
165
+ | **Layout** | [Card](https://space-components.vercel.app/?story=components--layout--card) · [Flex](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Grid](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Box](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Pagination](https://space-components.vercel.app/?story=components--layout--pagination) |
166
166
  | **Forms** | [Autocomplete](https://space-components.vercel.app/?story=components--forms--autocomplete) · [TextField](https://space-components.vercel.app/?story=components--forms--text-field) · [TextArea](https://space-components.vercel.app/?story=components--forms--text-area) · [Select](https://space-components.vercel.app/?story=components--forms--select) · [Slider](https://space-components.vercel.app/?story=components--forms--slider) · [RadioGroup](https://space-components.vercel.app/?story=components--forms--radio-group) |
167
167
  | **Buttons** | [Button](https://space-components.vercel.app/?story=components--buttons--buttons) · [IconToggle](https://space-components.vercel.app/?story=components--buttons--icon-toggle) |
168
168
  | **Feedback** | [Loader](https://space-components.vercel.app/?story=components--feedback--loader) · [Progress](https://space-components.vercel.app/?story=components--feedback--progress) · [Message](https://space-components.vercel.app/?story=components--feedback--message) |
@@ -0,0 +1,64 @@
1
+ import type * as React from "react";
2
+ /**
3
+ * The data Pagination needs, in the shape most APIs return beside a page of
4
+ * results. Pass it as `pagination`. When `onPageClick` reports a page, hand
5
+ * back a copy with only `page` changed — the component works out everything
6
+ * else, including how many pages there are, from these three numbers. With
7
+ * `totalItems` at or below `pageSize` there is only one page, and the
8
+ * component renders nothing.
9
+ */
10
+ export interface PaginationState {
11
+ /** The page being shown, counting from 1. If your API counts from 0, add
12
+ * one before passing it in. A page past either end is clamped to the first
13
+ * or last rather than rejected. */
14
+ page: number;
15
+ /** How many items one page holds — the size you requested, not how many
16
+ * came back on the final page. Must be above zero. */
17
+ pageSize: number;
18
+ /** How many items exist across every page: the full result count, not the
19
+ * length of the page you are showing. Usually the `total` or `count` field
20
+ * of the response. */
21
+ totalItems: number;
22
+ }
23
+ /** How many pages a pagination object describes — never fewer than one. */
24
+ export declare function pageCount({ pageSize, totalItems }: PaginationState): number;
25
+ /**
26
+ * The page numbers to offer, with `null` marking a gap to draw as an ellipsis.
27
+ *
28
+ * Always the same length once there are enough pages to need gaps — first,
29
+ * last, `siblings` either side of the current page, and two slots that are
30
+ * either a gap or the single page a gap would have hidden. A window that grew
31
+ * and shrank as you paged would change the control's width under the cursor,
32
+ * so the next click would land on a different number than the last one did.
33
+ *
34
+ * Exported so a caller rendering its own markup can reuse the arithmetic.
35
+ */
36
+ export declare function pageWindow(page: number, total: number, siblings?: number): (number | null)[];
37
+ export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
38
+ /** Where the list stands: the current page, the page size, and the total
39
+ * item count. Pass the object your API returns; the page count is derived
40
+ * from it. With one page or fewer nothing renders. */
41
+ pagination: PaginationState;
42
+ /** Called with the page the reader chose — a number, Previous or Next.
43
+ * Not called for the page already showing. Fetch or slice, then hand back
44
+ * an updated `pagination`. */
45
+ onPageClick: (page: number) => void;
46
+ /** Page numbers shown either side of the current one. Default 1. */
47
+ siblings?: number;
48
+ /** Ambient motion: the lit arc orbiting the current page's rim. The glass
49
+ * skin is always applied — only its motion is optional. Default true. */
50
+ animated?: boolean;
51
+ }
52
+ /**
53
+ * Page-by-page navigation for a long list.
54
+ *
55
+ * Holds no state: give it the pagination object you already have and it
56
+ * reports which page was clicked.
57
+ *
58
+ * Every control is the same limb-lit glass as Select and Button, but only the
59
+ * current page's rim orbits. Nine arcs turning in one row would be noise; one
60
+ * turning is where you are. Previous and Next stay in place when they
61
+ * cannot be used, so the numbers never slide sideways on the first and last
62
+ * page.
63
+ */
64
+ export declare function Pagination({ pagination, onPageClick, siblings, animated, className, "aria-label": ariaLabel, ...rest }: PaginationProps): React.JSX.Element | null;
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),t=require("react/jsx-runtime"),K={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function Z({m:e,mt:n,mb:s,p:o,pb:r},c){const a={...e!==void 0&&{margin:K[e]},...n!==void 0&&{marginTop:K[n]},...s!==void 0&&{marginBottom:K[s]},...o!==void 0&&{padding:K[o]},...r!==void 0&&{paddingBottom:K[r]},...c};return Object.keys(a).length>0?a:void 0}function v(...e){return e.filter(Boolean).join(" ")}const Ae="_text_4vcq4_1",Be="_size1_4vcq4_5",Fe="_size2_4vcq4_11",We="_size3_4vcq4_16",Pe="_size4_4vcq4_21",Ge="_size5_4vcq4_27",Ue="_size6_4vcq4_33",Ke="_medium_4vcq4_39",Xe="_bold_4vcq4_43",Ye="_colorMuted_4vcq4_47",Qe="_colorDanger_4vcq4_51",Je="_colorSuccess_4vcq4_55",et="_colorWarning_4vcq4_59",se={text:Ae,size1:Be,size2:Fe,size3:We,size4:Pe,size5:Ge,size6:Ue,medium:Ke,bold:Xe,colorMuted:Ye,colorDanger:Qe,colorSuccess:Je,colorWarning:et},me=l.forwardRef(function({as:n="span",size:s,weight:o,color:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return l.createElement(n,{...x,ref:C,className:v(se.text,s&&se[`size${s}`],o&&se[o],r&&se[`color${r[0].toUpperCase()}${r.slice(1)}`],c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),tt="_heading_vs4zk_1",nt="_size4_vs4zk_7",st="_size5_vs4zk_13",ot="_size6_vs4zk_19",rt="_size7_vs4zk_25",lt="_size8_vs4zk_31",ct="_size9_vs4zk_37",at="_colorMuted_vs4zk_43",it="_colorDanger_vs4zk_47",ut="_alignCenter_vs4zk_51",X={heading:tt,size4:nt,size5:st,size6:ot,size7:rt,size8:lt,size9:ct,colorMuted:at,colorDanger:it,alignCenter:ut},he=l.forwardRef(function({as:n="h2",size:s,color:o,align:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return l.createElement(n,{...x,ref:C,className:v(X.heading,s&&X[`size${s}`],o==="muted"&&X.colorMuted,o==="danger"&&X.colorDanger,r==="center"&&X.alignCenter,c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),dt="_link_1qa7j_1",ft="_size1_1qa7j_10",_t="_size2_1qa7j_16",Ct="_size3_1qa7j_21",_e={link:dt,size1:ft,size2:_t,size3:Ct},pt=l.forwardRef(function({asChild:n,size:s,className:o,style:r,m:c,mt:a,mb:u,p:f,pb:m,children:i,...p},x){const C=v(_e.link,s&&_e[`size${s}`],o),g=Z({m:c,mt:a,mb:u,p:f,pb:m},r);if(n&&l.isValidElement(i)){const w=i;return l.cloneElement(w,{...p,className:v(C,w.props.className),style:{...g,...w.props.style}})}return t.jsx("a",{...p,ref:x,className:C,style:g,children:i})}),gt="_flex_v4ziu_1",mt="_gap1_v4ziu_5",ht="_gap2_v4ziu_9",vt="_gap3_v4ziu_13",xt="_gap4_v4ziu_17",wt="_gap5_v4ziu_21",bt="_gap6_v4ziu_25",jt="_directionRow_v4ziu_29",yt="_directionColumn_v4ziu_33",kt="_alignStart_v4ziu_37",Rt="_alignCenter_v4ziu_41",Lt="_alignEnd_v4ziu_45",$t="_alignBaseline_v4ziu_49",It="_alignStretch_v4ziu_53",qt="_justifyStart_v4ziu_57",Mt="_justifyCenter_v4ziu_61",zt="_justifyEnd_v4ziu_65",Nt="_justifyBetween_v4ziu_69",Dt="_wrapWrap_v4ziu_73",Et="_wrapNowrap_v4ziu_77",F={flex:gt,gap1:mt,gap2:ht,gap3:vt,gap4:xt,gap5:wt,gap6:bt,directionRow:jt,directionColumn:yt,alignStart:kt,alignCenter:Rt,alignEnd:Lt,alignBaseline:$t,alignStretch:It,justifyStart:qt,justifyCenter:Mt,justifyEnd:zt,justifyBetween:Nt,wrapWrap:Dt,wrapNowrap:Et},oe=e=>e[0].toUpperCase()+e.slice(1),Ht=l.forwardRef(function({asChild:n,gap:s,direction:o,align:r,justify:c,wrap:a,className:u,style:f,m,mt:i,mb:p,p:x,pb:C,children:g,...w},j){const b=v(F.flex,s&&F[`gap${s}`],o&&F[`direction${oe(o)}`],r&&F[`align${oe(r)}`],c&&F[`justify${oe(c)}`],a&&F[`wrap${oe(a)}`],u),R=Z({m,mt:i,mb:p,p:x,pb:C},f);if(n&&l.isValidElement(g)){const q=g;return l.cloneElement(q,{...w,className:v(b,q.props.className),style:{...R,...q.props.style}})}return t.jsx("div",{...w,ref:j,className:b,style:R,children:g})}),St=l.forwardRef(function({style:n,m:s,mt:o,mb:r,p:c,pb:a,...u},f){return t.jsx("div",{...u,ref:f,style:Z({m:s,mt:o,mb:r,p:c,pb:a},n)})}),Tt="_grid_erpqq_1",Zt="_cols1_erpqq_5",Vt="_cols2_erpqq_9",Ot="_cols3_erpqq_13",At="_smCols2_erpqq_18",Bt="_smCols3_erpqq_21",Ft="_mdCols2_erpqq_26",Wt="_mdCols3_erpqq_29",Pt="_gap1_erpqq_33",Gt="_gap2_erpqq_37",Ut="_gap3_erpqq_41",Kt="_gap4_erpqq_45",Xt="_gap5_erpqq_49",Yt="_gap6_erpqq_53",W={grid:Tt,cols1:Zt,cols2:Vt,cols3:Ot,smCols2:At,smCols3:Bt,mdCols2:Ft,mdCols3:Wt,gap1:Pt,gap2:Gt,gap3:Ut,gap4:Kt,gap5:Xt,gap6:Yt},Qt=l.forwardRef(function({columns:n,gap:s,className:o,style:r,m:c,mt:a,mb:u,p:f,pb:m,...i},p){const x=typeof n=="string"?[W[`cols${n}`]]:n?[n.initial&&W[`cols${n.initial}`],n.sm&&W[`smCols${n.sm}`],n.md&&W[`mdCols${n.md}`]]:[];return t.jsx("div",{...i,ref:p,className:v(W.grid,...x,s&&W[`gap${s}`],o),style:Z({m:c,mt:a,mb:u,p:f,pb:m},r)})}),Jt="_badge_1twqf_2",e1="_size1_1twqf_10",t1="_size2_1twqf_19",n1="_colorMuted_1twqf_28",s1="_colorPrimary_1twqf_33",o1="_colorSuccess_1twqf_38",r1="_colorDanger_1twqf_43",l1="_colorWarning_1twqf_48",c1="_colorCyan_1twqf_53",a1="_colorPurple_1twqf_58",i1="_colorOrange_1twqf_63",u1="_colorAccent_1twqf_68",d1="_colorYellow_1twqf_73",f1="_solid_1twqf_81",_1="_wrap_1twqf_89",Y={badge:Jt,size1:e1,size2:t1,colorMuted:n1,colorPrimary:s1,colorSuccess:o1,colorDanger:r1,colorWarning:l1,colorCyan:c1,colorPurple:a1,colorOrange:i1,colorAccent:u1,colorYellow:d1,solid:f1,wrap:_1},C1=e=>e[0].toUpperCase()+e.slice(1),p1=l.forwardRef(function({color:n="primary",variant:s="soft",size:o="1",wrap:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return t.jsx("span",{...x,ref:C,className:v(Y.badge,Y[`color${C1(n)}`],s==="solid"&&Y.solid,Y[`size${o}`],r&&Y.wrap,c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),g1="_separator_vao01_1",m1="_full_vao01_7",Ce={separator:g1,full:m1},h1=l.forwardRef(function({size:n="4",className:s,...o},r){return t.jsx("span",{...o,ref:r,role:"separator",className:v(Ce.separator,n==="4"&&Ce.full,s)})}),v1="_card_1ooot_2",x1="_image_1ooot_14",w1="_hasImage_1ooot_41",ae={card:v1,image:x1,hasImage:w1},b1=l.forwardRef(function({className:n,style:s,image:o,children:r,m:c,mt:a,mb:u,p:f,pb:m,...i},p){return t.jsxs("div",{...i,ref:p,className:v(ae.card,o!=null&&ae.hasImage,n),style:Z({m:c,mt:a,mb:u,p:f,pb:m},s),children:[o!=null&&t.jsx("div",{className:ae.image,children:o}),r]})}),j1="_spaceButton_kjhqx_14",y1="_rimRotate_kjhqx_1",k1="_glintSweep_kjhqx_1",R1="_iconOnly_kjhqx_97",L1="_lg_kjhqx_104",$1="_sm_kjhqx_110",I1="_micro_kjhqx_122",q1="_stars_kjhqx_136",M1="_fullWidth_kjhqx_141",z1="_ember_kjhqx_147",N1="_label_kjhqx_157",D1="_star_kjhqx_136",E1="_twinkle_kjhqx_1",S={spaceButton:j1,rimRotate:y1,glintSweep:k1,iconOnly:R1,lg:L1,sm:$1,micro:I1,stars:q1,fullWidth:M1,ember:z1,label:N1,star:D1,twinkle:E1};function H1(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function S1(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const ve=l.forwardRef(function({iconOnly:n,ember:s,size:o="md",fullWidth:r,animated:c=!0,className:a,children:u,...f},m){const i=l.useId(),p=l.useMemo(()=>{const C=H1(S1(i));return Array.from({length:3},()=>({top:`${12+C()*58}%`,left:`${8+C()*80}%`,animationDelay:`${(C()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+C()*1.8).toFixed(2)}s`}))},[i]),x=[S.spaceButton,n?S.iconOnly:"",s?S.ember:"",o!=="md"?S[o]:"",r?S.fullWidth:"",a??""].filter(Boolean).join(" ");return t.jsxs("button",{ref:m,className:x,"data-animated":c?void 0:"false",...f,children:[o!=="micro"&&t.jsx("span",{className:S.stars,"aria-hidden":!0,children:p.map((C,g)=>t.jsx("i",{className:S.star,style:C},g))}),t.jsx("span",{className:S.label,children:u})]})}),T1="_wrap_dwcut_5",Z1="_sm_dwcut_30",V1="_md_dwcut_36",O1="_lg_dwcut_42",A1="_orbit_dwcut_49",B1="_planet_dwcut_58",F1="_moon_dwcut_73",W1="_label_dwcut_92",P={wrap:T1,sm:Z1,md:V1,lg:O1,orbit:A1,planet:B1,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:F1,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:W1,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function P1({size:e="md",label:n,className:s}){return t.jsxs("div",{className:v(P.wrap,P[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[t.jsxs("span",{className:P.orbit,children:[t.jsx("span",{className:P.planet}),t.jsx("span",{className:P.moon})]}),n&&t.jsx("span",{className:P.label,children:n})]})}const G1="_content_1bxfq_6",U1={content:G1},K1=350,X1=80,re=8,Q=8;function Y1({triggerRef:e,tooltipId:n,show:s,hide:o,children:r}){const c=r.props;return l.cloneElement(r,{ref:e,"aria-describedby":n,onPointerEnter:a=>{var u;(u=c.onPointerEnter)==null||u.call(c,a),a.pointerType==="mouse"&&s()},onPointerLeave:a=>{var u;(u=c.onPointerLeave)==null||u.call(c,a),o()},onFocus:a=>{var u;(u=c.onFocus)==null||u.call(c,a),s(!0)},onBlur:a=>{var u;(u=c.onBlur)==null||u.call(c,a),o()},onClick:a=>{var u;(u=c.onClick)==null||u.call(c,a),o()}})}function xe({label:e,side:n="bottom",children:s}){const o=l.useId(),[r,c]=l.useState(!1),[a,u]=l.useState(null),f=l.useRef(null),m=l.useRef(null),i=l.useRef(null),p=l.useRef(null),x=()=>{i.current&&(clearTimeout(i.current),i.current=null),p.current&&(clearTimeout(p.current),p.current=null)},C=(w=!1)=>{if(x(),w){c(!0);return}i.current=setTimeout(()=>c(!0),K1)},g=()=>{x(),p.current=setTimeout(()=>c(!1),X1)};return l.useEffect(()=>x,[]),l.useLayoutEffect(()=>{const w=m.current;if(!w)return;if(!r){w.matches(":popover-open")&&w.hidePopover();return}w.matches(":popover-open")||w.showPopover();const j=f.current;if(!j)return;const b=j.getBoundingClientRect(),R=w.offsetWidth,q=w.offsetHeight,M=(_,y,I,H)=>Math.min(Math.max(_+y/2-I/2,Q),Math.max(H-I-Q,Q)),$=(_,y,I,H)=>{const A=y+I<=H-Q;return{fitsNear:_>=Q,fitsFar:A}};if(n==="left"||n==="right"){const _=b.right+re,y=b.left-R-re,{fitsNear:I,fitsFar:H}=$(y,_,R,window.innerWidth),A=n==="right"?H||!I?_:y:I||!H?y:_;u({top:M(b.top,b.height,q,window.innerHeight),left:A});return}const E=b.bottom+re,L=b.top-q-re,{fitsNear:z,fitsFar:V}=$(L,E,q,window.innerHeight);u({top:n==="bottom"?V||!z?E:L:z||!V?L:E,left:M(b.left,b.width,R,window.innerWidth)})},[r,n,e]),!e||!l.isValidElement(s)?t.jsx(t.Fragment,{children:s}):t.jsxs(t.Fragment,{children:[t.jsx(Y1,{triggerRef:f,tooltipId:o,show:C,hide:g,children:s}),t.jsx("div",{ref:m,id:o,popover:"auto",role:"tooltip",className:U1.content,style:a?{top:a.top,left:a.left}:void 0,onToggle:w=>{w.nativeEvent.newState==="closed"&&r&&c(!1)},children:e})]})}const Q1="_group_1tdav_4",J1="_segment_1tdav_15",en="_active_1tdav_35",tn="_vertical_1tdav_46",le={group:Q1,segment:J1,active:en,vertical:tn};function nn({options:e,value:n,onValueChange:s,orientation:o="horizontal",className:r=""}){const c=o==="vertical";return t.jsx("div",{className:`${le.group} ${c?le.vertical:""} ${r}`,role:"group",children:e.map(a=>t.jsx(xe,{label:a.label,side:c?"right":"bottom",children:t.jsx("button",{type:"button",className:`${le.segment} ${a.value===n?le.active:""}`,"aria-label":a.label,"aria-pressed":a.value===n,onClick:()=>{a.value!==n&&s(a.value)},children:a.icon})},a.value))})}const sn="_root_1bvtq_2",on="_trigger_1bvtq_7",rn="_labelWrap_1bvtq_30",ln="_sizer_1bvtq_8",cn="_triggerLabel_1bvtq_70",an="_chevron_1bvtq_77",un="_listbox_1bvtq_82",dn="_item_1bvtq_110",T={root:sn,trigger:on,labelWrap:rn,sizer:ln,triggerLabel:cn,chevron:an,listbox:un,item:dn},fn="_spaceControl_4ou97_17",_n="_spaceSlider_4ou97_74",Cn="_spacePanel_4ou97_111",pn="_spaceInput_4ou97_34",gn="_spaceTextArea_4ou97_226",mn={spaceControl:fn,spaceSlider:_n,spacePanel:Cn,spaceInput:pn,spaceTextArea:gn},O=mn,we=l.createContext(null),hn=()=>{const e=l.useContext(we);if(!e)throw new Error("Select.Item must be inside a Select");return e},be=(e,n)=>`${e}-${encodeURIComponent(n)}`;function vn(e){const n=[],s=o=>{l.Children.forEach(o,r=>{if(!l.isValidElement(r))return;const c=r.props;r.type===je&&typeof c.value=="string"?n.push({value:c.value,label:c.children,disabled:c.disabled}):c.children&&s(c.children)})};return s(e),n}function xn({value:e,onValueChange:n,disabled:s,placeholder:o,animated:r=!0,className:c,children:a,...u}){const[f,m]=l.useState(!1),[i,p]=l.useState(null),x=l.useId(),C=l.useRef(null),g=l.useRef(null),w=l.useRef(null),[j,b]=l.useState(null),[R,q]=l.useState(null),M=l.useMemo(()=>vn(a),[a]),$=l.useMemo(()=>M.filter(_=>!_.disabled).map(_=>_.value),[M]),E=l.useMemo(()=>M.map(_=>_.label),[M]),L=l.useCallback(_=>{var y;return((y=M.find(I=>I.value===_))==null?void 0:y.label)??null},[M]);l.useEffect(()=>{if(!f)return;const _=y=>{g.current&&!g.current.contains(y.target)&&m(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[f]),l.useLayoutEffect(()=>{if(!f)return;const _=C.current;if(!_)return;const y=_.getBoundingClientRect();b(_.offsetWidth);const I=window.innerHeight-y.bottom-16;q(Math.min(380,Math.max(120,I)))},[f]),l.useEffect(()=>{var _;f&&((_=w.current)==null||_.focus())},[f]);const z=_=>{p(_??$[0]??null),m(!0)},V=_=>{const y=i?$.indexOf(i):-1,I=Math.min(Math.max(y+_,0),$.length-1);p($[I]??null)},N=e?L(e):null;return t.jsx(we.Provider,{value:{value:e,onValueChange:n,disabled:s,open:f,setOpen:m,highlighted:i,setHighlighted:p,listboxId:x,values:$,labelFor:L,triggerRef:C},children:t.jsxs("div",{ref:g,className:T.root,children:[t.jsxs("button",{type:"button",...u,ref:C,disabled:s,className:v(T.trigger,O.spaceControl,"spSelectTrigger",c),"data-animated":r?void 0:"false","data-state":f?"open":"closed","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":x,onClick:()=>f?m(!1):z(e||null),onKeyDown:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.preventDefault(),z(e||null))},children:[t.jsxs("span",{className:T.labelWrap,children:[t.jsxs("span",{className:T.sizer,"data-sizer":"","aria-hidden":"true",children:[E.map((_,y)=>t.jsx("span",{children:_},y)),o&&t.jsx("span",{children:o})]}),t.jsx("span",{className:T.triggerLabel,children:N??o??""})]}),t.jsx("svg",{className:T.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:t.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),t.jsx("div",{ref:w,id:x,role:"listbox",tabIndex:-1,hidden:!f,"aria-activedescendant":i?be(x,i):void 0,className:v(T.listbox,O.spacePanel),"data-animated":r?void 0:"false",style:j!=null||R!=null?{...j!=null?{"--_select-trigger-width":`${j}px`}:{},...R!=null?{maxHeight:`${R}px`}:{}}:void 0,onKeyDown:_=>{var y,I;_.key==="Escape"?(_.stopPropagation(),m(!1),(y=C.current)==null||y.focus()):_.key==="ArrowDown"?(_.preventDefault(),V(1)):_.key==="ArrowUp"?(_.preventDefault(),V(-1)):_.key==="Home"?(_.preventDefault(),p($[0]??null)):_.key==="End"?(_.preventDefault(),p($[$.length-1]??null)):_.key==="Enter"||_.key===" "?(_.preventDefault(),i&&(n(i),m(!1),(I=C.current)==null||I.focus())):_.key==="Tab"&&m(!1)},children:a})]})})}function je({value:e,disabled:n,children:s}){const o=hn(),r=o.value===e,c=o.highlighted===e;return t.jsx("div",{id:be(o.listboxId,e),role:"option","aria-selected":r,"aria-disabled":n||void 0,"data-highlighted":c?"":void 0,className:v(T.item,"spSelectItem"),onMouseEnter:()=>!n&&o.setHighlighted(e),onClick:()=>{var a;n||(o.onValueChange(e),o.setOpen(!1),(a=o.triggerRef.current)==null||a.focus())},children:s})}const wn=Object.assign(xn,{Item:je}),bn="_root_1lx7y_1",jn="_input_1lx7y_7",yn="_slot_1lx7y_17",ie={root:bn,input:jn,slot:yn},kn=l.forwardRef(function({className:n,style:s,animated:o=!0,children:r,...c},a){return t.jsxs("div",{className:v(ie.root,O.spaceInput,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:[r,t.jsx("input",{...c,ref:a,className:v(ie.input,"spTextFieldInput")})]})});function Rn({children:e}){return t.jsx("span",{className:ie.slot,children:e})}const ue=Object.assign(kn,{Slot:Rn}),Ln="_root_1qu6w_1",$n="_textarea_1qu6w_6",pe={root:Ln,textarea:$n},In=l.forwardRef(function({className:n,style:s,animated:o=!0,...r},c){return t.jsx("div",{className:v(pe.root,O.spaceInput,O.spaceTextArea,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:t.jsx("textarea",{...r,ref:c,className:v(pe.textarea,"spTextAreaInput")})})}),qn="_wrap_1pkwo_12",Mn="_field_1pkwo_16",zn="_panel_1pkwo_22",Nn="_status_1pkwo_34",Dn="_list_1pkwo_44",En="_option_1pkwo_57",Hn="_active_1pkwo_69",Sn="_label_1pkwo_79",Tn="_meta_1pkwo_86",Zn="_footer_1pkwo_92",D={wrap:qn,field:Mn,panel:zn,status:Nn,list:Dn,option:En,active:Hn,label:Sn,meta:Tn,footer:Zn};function Vn({value:e,onValueChange:n,options:s,onSelect:o,icon:r,caseSensitive:c=!1,preFiltered:a=!1,loading:u=!1,loadingMessage:f="Loading…",emptyMessage:m,footer:i,animated:p=!0,className:x,style:C,...g}){const[w,j]=l.useState(!1),[b,R]=l.useState(0),q=l.useRef(null),M=l.useRef(null),$=l.useId(),E=d=>typeof d.label=="string"?d.label:d.search??d.value,L=l.useMemo(()=>{if(a)return s;const d=c?e:e.toLowerCase();return d===""?s:s.filter(h=>(c?E(h):E(h).toLowerCase()).includes(d))},[s,e,c,a]),z=l.useMemo(()=>L.filter(d=>!d.disabled),[L]),V=L.length>0||u||m!=null,N=w&&V;l.useEffect(()=>R(0),[L]),l.useEffect(()=>{var h;if(!N)return;const d=(h=M.current)==null?void 0:h.querySelector(`[data-index="${b}"]`);d==null||d.scrollIntoView({block:"nearest"})},[b,N]);const _=l.useCallback(()=>j(!1),[]);l.useEffect(()=>{if(!N)return;const d=h=>{const B=q.current;B&&h.target instanceof Node&&!B.contains(h.target)&&_()};return document.addEventListener("pointerdown",d),()=>document.removeEventListener("pointerdown",d)},[N,_]);const y=d=>{d.disabled||(o(d.value,d),j(!1))},I=d=>{if(z.length===0)return;const h=L[b],Oe=((h&&!h.disabled?z.indexOf(h):-1)+d+z.length)%z.length,fe=z[Oe];fe&&R(L.indexOf(fe))},H=d=>{if(d.key==="Escape"){N&&d.stopPropagation(),j(!1);return}if(d.key==="Tab"){j(!1);return}if(!N){d.key==="ArrowDown"&&j(!0);return}if(d.key==="ArrowDown")d.preventDefault(),I(1);else if(d.key==="ArrowUp")d.preventDefault(),I(-1);else if(d.key==="Home"){d.preventDefault();const h=z[0];h&&R(L.indexOf(h))}else if(d.key==="End"){d.preventDefault();const h=z[z.length-1];h&&R(L.indexOf(h))}else if(d.key==="Enter"){const h=L[b];h&&!h.disabled&&(d.preventDefault(),y(h))}},A=N?L[b]:void 0;return t.jsxs("div",{ref:q,className:v(D.wrap,x),style:C,children:[t.jsx(ue,{...g,type:g.type??"text",role:"combobox",animated:p,className:D.field,autoComplete:"off","aria-expanded":N,"aria-controls":$,"aria-autocomplete":"list","aria-activedescendant":A&&!A.disabled?`${$}-${b}`:void 0,value:e,onFocus:d=>{var h;(h=g.onFocus)==null||h.call(g,d),j(!0)},onClick:d=>{var h;(h=g.onClick)==null||h.call(g,d),j(!0)},onKeyDown:d=>{var h;(h=g.onKeyDown)==null||h.call(g,d),H(d)},onChange:d=>{n(d.target.value),j(!0)},children:r!=null&&t.jsx(ue.Slot,{children:r})}),t.jsxs("div",{className:v(D.panel,O.spacePanel),hidden:!N,"data-animated":p?void 0:"false",children:[u&&t.jsx("p",{className:D.status,children:f}),!u&&L.length===0&&m!=null&&t.jsx("p",{className:D.status,children:m}),t.jsx("ul",{ref:M,id:$,role:"listbox",className:D.list,hidden:u||L.length===0,children:L.map((d,h)=>t.jsxs("li",{id:`${$}-${h}`,"data-index":h,role:"option","aria-selected":h===b,"aria-disabled":d.disabled||void 0,className:v(D.option,h===b&&!d.disabled&&D.active,"spAutocompleteOption"),onMouseEnter:()=>!d.disabled&&R(h),onPointerDown:B=>{B.preventDefault(),y(d)},children:[t.jsx("span",{className:D.label,children:d.label}),d.meta!=null&&t.jsx("span",{className:D.meta,children:d.meta})]},d.value))}),i!=null&&t.jsx("div",{className:D.footer,children:i})]})]})}const On="_root_14a1b_1",An="_track_14a1b_12",Bn="_range_14a1b_22",Fn="_thumb_14a1b_28",Wn="_input_14a1b_38",J={root:On,track:An,range:Bn,thumb:Fn,input:Wn},Pn=l.forwardRef(function({value:n,onValueChange:s,min:o,max:r,step:c,disabled:a,className:u,"aria-label":f},m){const i=n[0]??o,p=r===o?0:(i-o)/(r-o)*100;return t.jsxs("span",{className:v(J.root,O.spaceSlider,u),"data-disabled":a||void 0,children:[t.jsx("span",{className:v(J.track,"spSliderTrack"),children:t.jsx("span",{className:v(J.range,"spSliderRange"),style:{width:`${p}%`}})}),t.jsx("span",{className:v(J.thumb,"spSliderThumb"),style:{left:`${p}%`}}),t.jsx("input",{ref:m,type:"range",className:v(J.input,"spSliderInput"),value:i,min:o,max:r,step:c,disabled:a,"aria-label":f,onChange:x=>s([Number(x.target.value)])})]})}),Gn="_root_1qhel_2",Un="_item_1qhel_8",Kn="_selfLabeled_1qhel_15",Xn="_input_1qhel_19",Yn="_orb_1qhel_35",U={root:Gn,item:Un,selfLabeled:Kn,input:Xn,orb:Yn},ye=l.createContext(null);function Qn({value:e,onValueChange:n,disabled:s,className:o,children:r}){const c=l.useId();return t.jsx(ye.Provider,{value:{value:e,onValueChange:n,disabled:s,name:c},children:t.jsx("div",{role:"radiogroup",className:v(U.root,o),children:r})})}function Jn({value:e,disabled:n,children:s}){const o=l.useContext(ye);if(!o)throw new Error("RadioGroup.Item must be inside a RadioGroup");const r=n||o.disabled,c=t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",className:U.input,name:o.name,value:e,checked:o.value===e,disabled:r,onChange:()=>o.onValueChange(e)}),t.jsx("span",{className:v(U.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?t.jsx("span",{className:U.item,children:c}):t.jsxs("label",{className:v(U.item,U.selfLabeled),children:[c,s]})}const es=Object.assign(Qn,{Item:Jn}),ts="_progress_1cre6_16",ns={progress:ts};function ss({value:e,max:n=100,className:s,style:o,...r}){const c=n>0?Math.min(Math.max(e/n*100,0),100):0;return t.jsx("div",{...r,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:v(ns.progress,s),style:o,children:t.jsx("div",{style:{width:`${c}%`,height:"100%"}})})}const k={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function os(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function rs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ls(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function cs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function as(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function is(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function us(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ds(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function fs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function _s(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Cs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ps(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function gs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ms(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function hs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function vs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function xs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ws(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function bs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ke(e){return t.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:t.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}function Re(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Le(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function $e(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const js="_message_1522x_14",ys="_info_1522x_44",ks="_warning_1522x_49",Rs="_alert_1522x_56",Ls="_icon_1522x_63",$s="_body_1522x_74",Is="_title_1522x_83",qs="_text_1522x_90",G={message:js,info:ys,warning:ks,alert:Rs,icon:Ls,body:$s,title:Is,text:qs},Ms={info:t.jsx(Re,{}),warning:t.jsx(Le,{}),alert:t.jsx($e,{})},zs={info:{role:"status",live:"polite"},warning:{role:"status",live:"polite"},alert:{role:"alert"}},Ns=l.forwardRef(function({variant:n="info",title:s,icon:o,className:r,children:c,...a},u){const f=o===void 0?Ms[n]:o,{role:m,live:i}=zs[n];return t.jsxs("div",{...a,ref:u,role:m,"aria-live":i,className:v(G.message,G[n],r),children:[f!=null&&t.jsx("span",{className:G.icon,"aria-hidden":"true",children:f}),t.jsxs("div",{className:G.body,children:[s!=null&&t.jsx("p",{className:G.title,children:s}),c!=null&&t.jsx("div",{className:G.text,children:c})]})]})}),Ds="_dialog_1qqku_2",Es="_inner_1qqku_34",Hs="_size4_1qqku_39",Ss="_title_1qqku_43",Ts="_closeX_1qqku_51",ee={dialog:Ds,inner:Es,size4:Hs,title:Ss,closeX:Ts};let ce=0;const Ie=l.createContext(null),ne=()=>{const e=l.useContext(Ie);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function qe(e){return function({open:s,onOpenChange:o,children:r}){const[c,a]=l.useState(!1),u=s!==void 0,f=u?s:c,m=g=>{u||a(g),o==null||o(g)},i=l.useId(),p=l.useId(),[x,C]=l.useState(!1);return t.jsx(Ie.Provider,{value:{open:f,setOpen:m,titleId:i,descId:p,alert:e,hasDesc:x,setHasDesc:C},children:r})}}const Zs=qe(!1),Me=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:o=>{var r,c;(c=(r=s.props).onClick)==null||c.call(r,o),n()}})};function ze({children:e}){const n=ne();return t.jsx(t.Fragment,{children:Me(e,()=>n.setOpen(!0))})}function de({children:e}){const n=ne();return t.jsx(t.Fragment,{children:Me(e,()=>n.setOpen(!1))})}function Ne({size:e="3",maxWidth:n,className:s,style:o,children:r,...c}){const a=ne(),u=l.useRef(null),f=l.useRef(!1),m=l.useRef(!1);return l.useEffect(()=>{const i=u.current;i&&(a.open&&!i.open?i.showModal():!a.open&&i.open&&i.close())},[a.open]),l.useEffect(()=>{if(a.open)return ce+=1,ce===1&&(document.body.style.overflow="hidden"),()=>{ce-=1,ce===0&&(document.body.style.overflow="")}},[a.open]),t.jsx("dialog",{...c,ref:u,role:a.alert?"alertdialog":void 0,"aria-labelledby":a.titleId,"aria-describedby":a.hasDesc?a.descId:void 0,className:v(ee.dialog,"spDialog",e==="4"&&ee.size4,s),style:{...n?{maxWidth:n}:null,...o},onKeyDownCapture:i=>{var p,x;i.key==="Escape"&&((p=u.current)!=null&&p.querySelector("dialog[open]")||(x=u.current)!=null&&x.querySelector('[role="listbox"]:not([hidden])')&&(f.current=!0))},onCancel:i=>{if(i.preventDefault(),f.current){f.current=!1;return}a.setOpen(!1)},onClose:()=>{a.open&&a.setOpen(!1)},onPointerDown:i=>{m.current=i.target===u.current},onClick:i=>{!a.alert&&i.target===u.current&&m.current&&a.setOpen(!1)},children:t.jsxs("div",{className:ee.inner,children:[!a.alert&&t.jsx("button",{type:"button",className:ee.closeX,"aria-label":"Close",onClick:()=>a.setOpen(!1),children:t.jsx(ke,{width:16,height:16})}),r]})})}function De({className:e,...n}){const s=ne();return t.jsx(he,{as:"h2",size:"5",...n,id:s.titleId,className:v(ee.title,e)})}function Ee(e){const n=ne(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),t.jsx(me,{as:"p",...e,id:n.descId})}const Vs=Object.assign(Zs,{Trigger:ze,Close:de,Content:Ne,Title:De,Description:Ee}),Os=de,As=de,Bs=Object.assign(qe(!0),{Trigger:ze,Content:Ne,Title:De,Description:Ee,Cancel:Os,Action:As}),Fs="_menu_1hwyv_1",Ws="_label_1hwyv_16",Ps="_item_1hwyv_26",Gs="_danger_1hwyv_45",Us="_separator_1hwyv_49",te={menu:Fs,label:Ws,item:Ps,danger:Gs,separator:Us},He=l.createContext(null),Ks=()=>{const e=l.useContext(He);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},Se=l.createContext(null),Xs=()=>{const e=l.useContext(Se);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function Ys(e){return e.current?(e.current=!1,!0):!1}function ge(e){e.current=!0}function Qs({label:e,align:n="start",children:s,...o}){const[r,c]=l.useState(!1),a=l.useId(),u=l.useRef(null),f=l.useRef(null),m=l.useRef(!1),i=l.useRef(!1),[p,x]=l.useState(null);return l.useLayoutEffect(()=>{var g;const C=f.current;if(C)if(r){const w=u.current;if(w){const j=w.getBoundingClientRect(),b=n==="end"?"auto":j.left,R=n==="end"?window.innerWidth-j.right:"auto";x({top:j.bottom+6,left:b,right:R})}C.showPopover(),(g=C.querySelector('[role="menuitem"]'))==null||g.focus()}else C.matches(":popover-open")&&C.hidePopover()},[r,n]),l.useEffect(()=>{if(!r)return;const C=()=>c(!1);return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[r]),t.jsx(He.Provider,{value:{open:r,setOpen:c,menuId:a},children:t.jsxs(Se.Provider,{value:i,children:[t.jsx(ve,{...o,ref:u,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":a,onClick:C=>{var g;(g=o.onClick)==null||g.call(o,C),!Ys(m)&&c(!r)},children:e}),t.jsx("div",{ref:f,id:a,role:"menu",popover:"auto",className:te.menu,style:p?{top:p.top,left:p.left==="auto"?"auto":p.left,right:p.right==="auto"?"auto":p.right}:void 0,onToggle:C=>{if(C.nativeEvent.newState==="closed"){const g=i.current;i.current=!1,g||(m.current=!0,setTimeout(()=>{m.current=!1},300)),r&&c(!1)}},onKeyDown:C=>{var j,b,R,q,M,$;const g=Array.from(((j=f.current)==null?void 0:j.querySelectorAll('[role="menuitem"]'))??[]),w=g.indexOf(document.activeElement);C.key==="ArrowDown"?(C.preventDefault(),(b=g[Math.min(w+1,g.length-1)])==null||b.focus()):C.key==="ArrowUp"?(C.preventDefault(),(R=g[Math.max(w-1,0)])==null||R.focus()):C.key==="Home"?(C.preventDefault(),(q=g[0])==null||q.focus()):C.key==="End"?(C.preventDefault(),(M=g[g.length-1])==null||M.focus()):C.key==="Escape"&&(c(!1),($=u.current)==null||$.focus())},children:s})]})})}function Js({children:e}){return t.jsx("div",{className:te.label,children:e})}function eo({asChild:e,color:n,onSelect:s,children:o}){const r=Ks(),c=Xs(),a=v(te.item,n==="danger"&&te.danger),u=()=>{ge(c),r.setOpen(!1),s==null||s()};if(e&&l.isValidElement(o)){const f=o,{className:m,onClick:i,children:p,role:x,tabIndex:C,...g}=f.props,w=f.ref;return l.createElement(f.type,{key:f.key,ref:w,role:"menuitem",tabIndex:-1,...g,className:v(a,m),onClick:j=>{i==null||i(j),ge(c),r.setOpen(!1)}},p)}return t.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:a,onClick:u,children:o})}function to(){return t.jsx("div",{role:"separator",className:te.separator})}const no=Object.assign(Qs,{Item:eo,Separator:to,Label:Js}),so="_list_1hc3r_19",oo="_trigger_1hc3r_28",Te={list:so,trigger:oo},Ze=l.createContext(null),Ve=()=>{const e=l.useContext(Ze);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function ro({value:e,onValueChange:n,className:s,children:o}){const r=l.useId();return t.jsx(Ze.Provider,{value:{value:e,onValueChange:n,id:r},children:t.jsx("div",{className:s,children:o})})}function lo({children:e}){return t.jsx("div",{role:"tablist",className:v(Te.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),o=s.indexOf(document.activeElement);if(o!==-1){if(n.key==="ArrowRight"){n.preventDefault();const r=s[(o+1)%s.length];r.focus(),r.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const r=s[(o-1+s.length)%s.length];r.focus(),r.click()}else if(n.key==="Home"){n.preventDefault();const r=s[0];r.focus(),r.click()}else if(n.key==="End"){n.preventDefault();const r=s[s.length-1];r.focus(),r.click()}}},children:e})}function co({value:e,className:n,children:s,...o}){const r=Ve(),c=r.value===e;return t.jsx("button",{...o,type:"button",role:"tab",id:`${r.id}-tab-${e}`,"aria-selected":c,"aria-controls":`${r.id}-panel-${e}`,tabIndex:c?0:-1,"data-state":c?"active":"inactive",className:v(Te.trigger,"spTabsTrigger",n),onClick:()=>r.onValueChange(e),children:s})}function ao({value:e,children:n}){const s=Ve();return s.value!==e?null:t.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const io=Object.assign(ro,{List:lo,Trigger:co,Content:ao});exports.AlertDialog=Bs;exports.Autocomplete=Vn;exports.Badge=p1;exports.BookmarkIcon=bs;exports.Box=St;exports.Button=ve;exports.Card=b1;exports.ChatBubbleIcon=rs;exports.CheckIcon=ds;exports.ChevronDownIcon=vs;exports.ChevronLeftIcon=ws;exports.ChevronRightIcon=xs;exports.ChevronUpIcon=hs;exports.CrossCircledIcon=$e;exports.Dialog=Vs;exports.DropdownMenu=no;exports.EnterFullScreenIcon=us;exports.ExclamationTriangleIcon=Le;exports.ExitFullScreenIcon=is;exports.Flex=Ht;exports.Grid=Qt;exports.Heading=he;exports.HeartFilledIcon=as;exports.HeartIcon=ms;exports.IconToggle=nn;exports.InfoCircledIcon=Re;exports.Link=pt;exports.Loader=P1;exports.MagnifyingGlassIcon=gs;exports.Message=Ns;exports.MinusIcon=ps;exports.Pencil1Icon=cs;exports.PersonIcon=Cs;exports.PlusIcon=ls;exports.Progress=ss;exports.QuestionMarkCircledIcon=_s;exports.RadioGroup=es;exports.Select=wn;exports.Separator=h1;exports.Share2Icon=os;exports.Slider=Pn;exports.Tabs=io;exports.Text=me;exports.TextArea=In;exports.TextField=ue;exports.Tooltip=xe;exports.TrashIcon=fs;exports.XIcon=ke;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),t=require("react/jsx-runtime"),X={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function O({m:e,mt:n,mb:s,p:o,pb:r},l){const a={...e!==void 0&&{margin:X[e]},...n!==void 0&&{marginTop:X[n]},...s!==void 0&&{marginBottom:X[s]},...o!==void 0&&{padding:X[o]},...r!==void 0&&{paddingBottom:X[r]},...l};return Object.keys(a).length>0?a:void 0}function h(...e){return e.filter(Boolean).join(" ")}const Ge="_text_4vcq4_1",Ue="_size1_4vcq4_5",Ke="_size2_4vcq4_11",Xe="_size3_4vcq4_16",Ye="_size4_4vcq4_21",Qe="_size5_4vcq4_27",Je="_size6_4vcq4_33",et="_medium_4vcq4_39",tt="_bold_4vcq4_43",nt="_colorMuted_4vcq4_47",st="_colorDanger_4vcq4_51",ot="_colorSuccess_4vcq4_55",rt="_colorWarning_4vcq4_59",oe={text:Ge,size1:Ue,size2:Ke,size3:Xe,size4:Ye,size5:Qe,size6:Je,medium:et,bold:tt,colorMuted:nt,colorDanger:st,colorSuccess:ot,colorWarning:rt},he=c.forwardRef(function({as:n="span",size:s,weight:o,color:r,className:l,style:a,m:u,mt:d,mb:g,p:i,pb:C,...x},_){return c.createElement(n,{...x,ref:_,className:h(oe.text,s&&oe[`size${s}`],o&&oe[o],r&&oe[`color${r[0].toUpperCase()}${r.slice(1)}`],l),style:O({m:u,mt:d,mb:g,p:i,pb:C},a)})}),lt="_heading_vs4zk_1",ct="_size4_vs4zk_7",at="_size5_vs4zk_13",it="_size6_vs4zk_19",ut="_size7_vs4zk_25",dt="_size8_vs4zk_31",ft="_size9_vs4zk_37",_t="_colorMuted_vs4zk_43",pt="_colorDanger_vs4zk_47",Ct="_alignCenter_vs4zk_51",Y={heading:lt,size4:ct,size5:at,size6:it,size7:ut,size8:dt,size9:ft,colorMuted:_t,colorDanger:pt,alignCenter:Ct},ve=c.forwardRef(function({as:n="h2",size:s,color:o,align:r,className:l,style:a,m:u,mt:d,mb:g,p:i,pb:C,...x},_){return c.createElement(n,{...x,ref:_,className:h(Y.heading,s&&Y[`size${s}`],o==="muted"&&Y.colorMuted,o==="danger"&&Y.colorDanger,r==="center"&&Y.alignCenter,l),style:O({m:u,mt:d,mb:g,p:i,pb:C},a)})}),gt="_link_1qa7j_1",mt="_size1_1qa7j_10",ht="_size2_1qa7j_16",vt="_size3_1qa7j_21",pe={link:gt,size1:mt,size2:ht,size3:vt},xt=c.forwardRef(function({asChild:n,size:s,className:o,style:r,m:l,mt:a,mb:u,p:d,pb:g,children:i,...C},x){const _=h(pe.link,s&&pe[`size${s}`],o),m=O({m:l,mt:a,mb:u,p:d,pb:g},r);if(n&&c.isValidElement(i)){const w=i;return c.cloneElement(w,{...C,className:h(_,w.props.className),style:{...m,...w.props.style}})}return t.jsx("a",{...C,ref:x,className:_,style:m,children:i})}),wt="_flex_v4ziu_1",bt="_gap1_v4ziu_5",jt="_gap2_v4ziu_9",yt="_gap3_v4ziu_13",kt="_gap4_v4ziu_17",Rt="_gap5_v4ziu_21",$t="_gap6_v4ziu_25",Lt="_directionRow_v4ziu_29",It="_directionColumn_v4ziu_33",Mt="_alignStart_v4ziu_37",qt="_alignCenter_v4ziu_41",Nt="_alignEnd_v4ziu_45",zt="_alignBaseline_v4ziu_49",Dt="_alignStretch_v4ziu_53",Et="_justifyStart_v4ziu_57",Ht="_justifyCenter_v4ziu_61",St="_justifyEnd_v4ziu_65",Tt="_justifyBetween_v4ziu_69",Zt="_wrapWrap_v4ziu_73",Vt="_wrapNowrap_v4ziu_77",P={flex:wt,gap1:bt,gap2:jt,gap3:yt,gap4:kt,gap5:Rt,gap6:$t,directionRow:Lt,directionColumn:It,alignStart:Mt,alignCenter:qt,alignEnd:Nt,alignBaseline:zt,alignStretch:Dt,justifyStart:Et,justifyCenter:Ht,justifyEnd:St,justifyBetween:Tt,wrapWrap:Zt,wrapNowrap:Vt},re=e=>e[0].toUpperCase()+e.slice(1),Ot=c.forwardRef(function({asChild:n,gap:s,direction:o,align:r,justify:l,wrap:a,className:u,style:d,m:g,mt:i,mb:C,p:x,pb:_,children:m,...w},j){const b=h(P.flex,s&&P[`gap${s}`],o&&P[`direction${re(o)}`],r&&P[`align${re(r)}`],l&&P[`justify${re(l)}`],a&&P[`wrap${re(a)}`],u),R=O({m:g,mt:i,mb:C,p:x,pb:_},d);if(n&&c.isValidElement(m)){const M=m;return c.cloneElement(M,{...w,className:h(b,M.props.className),style:{...R,...M.props.style}})}return t.jsx("div",{...w,ref:j,className:b,style:R,children:m})}),At=c.forwardRef(function({style:n,m:s,mt:o,mb:r,p:l,pb:a,...u},d){return t.jsx("div",{...u,ref:d,style:O({m:s,mt:o,mb:r,p:l,pb:a},n)})}),Bt="_grid_erpqq_1",Ft="_cols1_erpqq_5",Pt="_cols2_erpqq_9",Wt="_cols3_erpqq_13",Gt="_smCols2_erpqq_18",Ut="_smCols3_erpqq_21",Kt="_mdCols2_erpqq_26",Xt="_mdCols3_erpqq_29",Yt="_gap1_erpqq_33",Qt="_gap2_erpqq_37",Jt="_gap3_erpqq_41",en="_gap4_erpqq_45",tn="_gap5_erpqq_49",nn="_gap6_erpqq_53",W={grid:Bt,cols1:Ft,cols2:Pt,cols3:Wt,smCols2:Gt,smCols3:Ut,mdCols2:Kt,mdCols3:Xt,gap1:Yt,gap2:Qt,gap3:Jt,gap4:en,gap5:tn,gap6:nn},sn=c.forwardRef(function({columns:n,gap:s,className:o,style:r,m:l,mt:a,mb:u,p:d,pb:g,...i},C){const x=typeof n=="string"?[W[`cols${n}`]]:n?[n.initial&&W[`cols${n.initial}`],n.sm&&W[`smCols${n.sm}`],n.md&&W[`mdCols${n.md}`]]:[];return t.jsx("div",{...i,ref:C,className:h(W.grid,...x,s&&W[`gap${s}`],o),style:O({m:l,mt:a,mb:u,p:d,pb:g},r)})}),on="_badge_1twqf_2",rn="_size1_1twqf_10",ln="_size2_1twqf_19",cn="_colorMuted_1twqf_28",an="_colorPrimary_1twqf_33",un="_colorSuccess_1twqf_38",dn="_colorDanger_1twqf_43",fn="_colorWarning_1twqf_48",_n="_colorCyan_1twqf_53",pn="_colorPurple_1twqf_58",Cn="_colorOrange_1twqf_63",gn="_colorAccent_1twqf_68",mn="_colorYellow_1twqf_73",hn="_solid_1twqf_81",vn="_wrap_1twqf_89",Q={badge:on,size1:rn,size2:ln,colorMuted:cn,colorPrimary:an,colorSuccess:un,colorDanger:dn,colorWarning:fn,colorCyan:_n,colorPurple:pn,colorOrange:Cn,colorAccent:gn,colorYellow:mn,solid:hn,wrap:vn},xn=e=>e[0].toUpperCase()+e.slice(1),wn=c.forwardRef(function({color:n="primary",variant:s="soft",size:o="1",wrap:r,className:l,style:a,m:u,mt:d,mb:g,p:i,pb:C,...x},_){return t.jsx("span",{...x,ref:_,className:h(Q.badge,Q[`color${xn(n)}`],s==="solid"&&Q.solid,Q[`size${o}`],r&&Q.wrap,l),style:O({m:u,mt:d,mb:g,p:i,pb:C},a)})}),bn="_separator_vao01_1",jn="_full_vao01_7",Ce={separator:bn,full:jn},yn=c.forwardRef(function({size:n="4",className:s,...o},r){return t.jsx("span",{...o,ref:r,role:"separator",className:h(Ce.separator,n==="4"&&Ce.full,s)})}),kn="_card_1ooot_2",Rn="_image_1ooot_14",$n="_hasImage_1ooot_41",ie={card:kn,image:Rn,hasImage:$n},Ln=c.forwardRef(function({className:n,style:s,image:o,children:r,m:l,mt:a,mb:u,p:d,pb:g,...i},C){return t.jsxs("div",{...i,ref:C,className:h(ie.card,o!=null&&ie.hasImage,n),style:O({m:l,mt:a,mb:u,p:d,pb:g},s),children:[o!=null&&t.jsx("div",{className:ie.image,children:o}),r]})}),k={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function In(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Mn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function qn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Nn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function zn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Dn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function En(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Hn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Sn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Tn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Zn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Vn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function On(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function An(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function xe(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function we(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Pn(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function be(e){return t.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:t.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}function je(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ye(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ke(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Wn="_nav_f248a_6",Gn="_pages_f248a_21",Un="_item_f248a_30",Kn="_current_f248a_48",Xn="_page_f248a_21",Yn="_gap_f248a_82",Qn="_stepText_f248a_92",Jn="_step_f248a_92",D={nav:Wn,pages:Gn,item:Un,current:Kn,page:Xn,gap:Yn,stepText:Qn,step:Jn},e1="_spaceControl_4ou97_17",t1="_spaceSlider_4ou97_74",n1="_spacePanel_4ou97_111",s1="_spaceInput_4ou97_34",o1="_spaceTextArea_4ou97_226",r1={spaceControl:e1,spaceSlider:t1,spacePanel:n1,spaceInput:s1,spaceTextArea:o1},H=r1;function Re({pageSize:e,totalItems:n}){return e<=0?1:Math.max(1,Math.ceil(n/e))}function $e(e,n,s=1){const o=(C,x)=>Array.from({length:Math.max(0,x-C+1)},(_,m)=>C+m),r=s*2+5;if(n<=r)return o(1,n);const l=Math.min(Math.max(e,1),n),a=Math.max(l-s,1),u=Math.min(l+s,n),d=a>3,g=u<n-2,i=s*2+3;return d?g?[1,null,...o(a,u),null,n]:[1,null,...o(n-i+1,n)]:[...o(1,i),null,n]}function l1({pagination:e,onPageClick:n,siblings:s=1,animated:o=!0,className:r,"aria-label":l="Pagination",...a}){const u=Re(e);if(u<=1)return null;const d=Math.min(Math.max(e.page,1),u),g=i=>{i!==d&&i>=1&&i<=u&&n(i)};return t.jsxs("nav",{...a,"aria-label":l,className:h(D.nav,r),children:[t.jsxs("button",{type:"button",className:h(H.spaceControl,D.item,D.step),disabled:d<=1,"aria-label":"Previous page",onClick:()=>g(d-1),children:[t.jsx(we,{"aria-hidden":"true"}),t.jsx("span",{className:D.stepText,children:"Previous"})]}),t.jsx("ol",{className:D.pages,children:$e(d,u,s).map((i,C)=>i===null?t.jsx("li",{className:D.gap,"aria-hidden":"true",children:"…"},`gap-${C}`):t.jsx("li",{children:t.jsx("button",{type:"button",className:h(H.spaceControl,D.item,D.page,i===d&&D.current),"data-animated":i===d&&!o?"false":void 0,"aria-label":`Page ${i}`,"aria-current":i===d?"page":void 0,onClick:()=>g(i),children:i})},i))}),t.jsxs("button",{type:"button",className:h(H.spaceControl,D.item,D.step),disabled:d>=u,"aria-label":"Next page",onClick:()=>g(d+1),children:[t.jsx("span",{className:D.stepText,children:"Next"}),t.jsx(xe,{"aria-hidden":"true"})]})]})}const c1="_spaceButton_kjhqx_14",a1="_rimRotate_kjhqx_1",i1="_glintSweep_kjhqx_1",u1="_iconOnly_kjhqx_97",d1="_lg_kjhqx_104",f1="_sm_kjhqx_110",_1="_micro_kjhqx_122",p1="_stars_kjhqx_136",C1="_fullWidth_kjhqx_141",g1="_ember_kjhqx_147",m1="_label_kjhqx_157",h1="_star_kjhqx_136",v1="_twinkle_kjhqx_1",Z={spaceButton:c1,rimRotate:a1,glintSweep:i1,iconOnly:u1,lg:d1,sm:f1,micro:_1,stars:p1,fullWidth:C1,ember:g1,label:m1,star:h1,twinkle:v1};function x1(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function w1(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const Le=c.forwardRef(function({iconOnly:n,ember:s,size:o="md",fullWidth:r,animated:l=!0,className:a,children:u,...d},g){const i=c.useId(),C=c.useMemo(()=>{const _=x1(w1(i));return Array.from({length:3},()=>({top:`${12+_()*58}%`,left:`${8+_()*80}%`,animationDelay:`${(_()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+_()*1.8).toFixed(2)}s`}))},[i]),x=[Z.spaceButton,n?Z.iconOnly:"",s?Z.ember:"",o!=="md"?Z[o]:"",r?Z.fullWidth:"",a??""].filter(Boolean).join(" ");return t.jsxs("button",{ref:g,className:x,"data-animated":l?void 0:"false",...d,children:[o!=="micro"&&t.jsx("span",{className:Z.stars,"aria-hidden":!0,children:C.map((_,m)=>t.jsx("i",{className:Z.star,style:_},m))}),t.jsx("span",{className:Z.label,children:u})]})}),b1="_wrap_dwcut_5",j1="_sm_dwcut_30",y1="_md_dwcut_36",k1="_lg_dwcut_42",R1="_orbit_dwcut_49",$1="_planet_dwcut_58",L1="_moon_dwcut_73",I1="_label_dwcut_92",G={wrap:b1,sm:j1,md:y1,lg:k1,orbit:R1,planet:$1,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:L1,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:I1,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function M1({size:e="md",label:n,className:s}){return t.jsxs("div",{className:h(G.wrap,G[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[t.jsxs("span",{className:G.orbit,children:[t.jsx("span",{className:G.planet}),t.jsx("span",{className:G.moon})]}),n&&t.jsx("span",{className:G.label,children:n})]})}const q1="_content_1bxfq_6",N1={content:q1},z1=350,D1=80,le=8,J=8;function E1({triggerRef:e,tooltipId:n,show:s,hide:o,children:r}){const l=r.props;return c.cloneElement(r,{ref:e,"aria-describedby":n,onPointerEnter:a=>{var u;(u=l.onPointerEnter)==null||u.call(l,a),a.pointerType==="mouse"&&s()},onPointerLeave:a=>{var u;(u=l.onPointerLeave)==null||u.call(l,a),o()},onFocus:a=>{var u;(u=l.onFocus)==null||u.call(l,a),s(!0)},onBlur:a=>{var u;(u=l.onBlur)==null||u.call(l,a),o()},onClick:a=>{var u;(u=l.onClick)==null||u.call(l,a),o()}})}function Ie({label:e,side:n="bottom",children:s}){const o=c.useId(),[r,l]=c.useState(!1),[a,u]=c.useState(null),d=c.useRef(null),g=c.useRef(null),i=c.useRef(null),C=c.useRef(null),x=()=>{i.current&&(clearTimeout(i.current),i.current=null),C.current&&(clearTimeout(C.current),C.current=null)},_=(w=!1)=>{if(x(),w){l(!0);return}i.current=setTimeout(()=>l(!0),z1)},m=()=>{x(),C.current=setTimeout(()=>l(!1),D1)};return c.useEffect(()=>x,[]),c.useLayoutEffect(()=>{const w=g.current;if(!w)return;if(!r){w.matches(":popover-open")&&w.hidePopover();return}w.matches(":popover-open")||w.showPopover();const j=d.current;if(!j)return;const b=j.getBoundingClientRect(),R=w.offsetWidth,M=w.offsetHeight,q=(p,y,I,T)=>Math.min(Math.max(p+y/2-I/2,J),Math.max(T-I-J,J)),L=(p,y,I,T)=>{const B=y+I<=T-J;return{fitsNear:p>=J,fitsFar:B}};if(n==="left"||n==="right"){const p=b.right+le,y=b.left-R-le,{fitsNear:I,fitsFar:T}=L(y,p,R,window.innerWidth),B=n==="right"?T||!I?p:y:I||!T?y:p;u({top:q(b.top,b.height,M,window.innerHeight),left:B});return}const S=b.bottom+le,$=b.top-M-le,{fitsNear:N,fitsFar:A}=L($,S,M,window.innerHeight);u({top:n==="bottom"?A||!N?S:$:N||!A?$:S,left:q(b.left,b.width,R,window.innerWidth)})},[r,n,e]),!e||!c.isValidElement(s)?t.jsx(t.Fragment,{children:s}):t.jsxs(t.Fragment,{children:[t.jsx(E1,{triggerRef:d,tooltipId:o,show:_,hide:m,children:s}),t.jsx("div",{ref:g,id:o,popover:"auto",role:"tooltip",className:N1.content,style:a?{top:a.top,left:a.left}:void 0,onToggle:w=>{w.nativeEvent.newState==="closed"&&r&&l(!1)},children:e})]})}const H1="_group_1tdav_4",S1="_segment_1tdav_15",T1="_active_1tdav_35",Z1="_vertical_1tdav_46",ce={group:H1,segment:S1,active:T1,vertical:Z1};function V1({options:e,value:n,onValueChange:s,orientation:o="horizontal",className:r=""}){const l=o==="vertical";return t.jsx("div",{className:`${ce.group} ${l?ce.vertical:""} ${r}`,role:"group",children:e.map(a=>t.jsx(Ie,{label:a.label,side:l?"right":"bottom",children:t.jsx("button",{type:"button",className:`${ce.segment} ${a.value===n?ce.active:""}`,"aria-label":a.label,"aria-pressed":a.value===n,onClick:()=>{a.value!==n&&s(a.value)},children:a.icon})},a.value))})}const O1="_root_1bvtq_2",A1="_trigger_1bvtq_7",B1="_labelWrap_1bvtq_30",F1="_sizer_1bvtq_8",P1="_triggerLabel_1bvtq_70",W1="_chevron_1bvtq_77",G1="_listbox_1bvtq_82",U1="_item_1bvtq_110",V={root:O1,trigger:A1,labelWrap:B1,sizer:F1,triggerLabel:P1,chevron:W1,listbox:G1,item:U1},Me=c.createContext(null),K1=()=>{const e=c.useContext(Me);if(!e)throw new Error("Select.Item must be inside a Select");return e},qe=(e,n)=>`${e}-${encodeURIComponent(n)}`;function X1(e){const n=[],s=o=>{c.Children.forEach(o,r=>{if(!c.isValidElement(r))return;const l=r.props;r.type===Ne&&typeof l.value=="string"?n.push({value:l.value,label:l.children,disabled:l.disabled}):l.children&&s(l.children)})};return s(e),n}function Y1({value:e,onValueChange:n,disabled:s,placeholder:o,animated:r=!0,className:l,children:a,...u}){const[d,g]=c.useState(!1),[i,C]=c.useState(null),x=c.useId(),_=c.useRef(null),m=c.useRef(null),w=c.useRef(null),[j,b]=c.useState(null),[R,M]=c.useState(null),q=c.useMemo(()=>X1(a),[a]),L=c.useMemo(()=>q.filter(p=>!p.disabled).map(p=>p.value),[q]),S=c.useMemo(()=>q.map(p=>p.label),[q]),$=c.useCallback(p=>{var y;return((y=q.find(I=>I.value===p))==null?void 0:y.label)??null},[q]);c.useEffect(()=>{if(!d)return;const p=y=>{m.current&&!m.current.contains(y.target)&&g(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[d]),c.useLayoutEffect(()=>{if(!d)return;const p=_.current;if(!p)return;const y=p.getBoundingClientRect();b(p.offsetWidth);const I=window.innerHeight-y.bottom-16;M(Math.min(380,Math.max(120,I)))},[d]),c.useEffect(()=>{var p;d&&((p=w.current)==null||p.focus())},[d]);const N=p=>{C(p??L[0]??null),g(!0)},A=p=>{const y=i?L.indexOf(i):-1,I=Math.min(Math.max(y+p,0),L.length-1);C(L[I]??null)},z=e?$(e):null;return t.jsx(Me.Provider,{value:{value:e,onValueChange:n,disabled:s,open:d,setOpen:g,highlighted:i,setHighlighted:C,listboxId:x,values:L,labelFor:$,triggerRef:_},children:t.jsxs("div",{ref:m,className:V.root,children:[t.jsxs("button",{type:"button",...u,ref:_,disabled:s,className:h(V.trigger,H.spaceControl,"spSelectTrigger",l),"data-animated":r?void 0:"false","data-state":d?"open":"closed","aria-haspopup":"listbox","aria-expanded":d,"aria-controls":x,onClick:()=>d?g(!1):N(e||null),onKeyDown:p=>{(p.key==="ArrowDown"||p.key==="Enter"||p.key===" ")&&(p.preventDefault(),N(e||null))},children:[t.jsxs("span",{className:V.labelWrap,children:[t.jsxs("span",{className:V.sizer,"data-sizer":"","aria-hidden":"true",children:[S.map((p,y)=>t.jsx("span",{children:p},y)),o&&t.jsx("span",{children:o})]}),t.jsx("span",{className:V.triggerLabel,children:z??o??""})]}),t.jsx("svg",{className:V.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:t.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),t.jsx("div",{ref:w,id:x,role:"listbox",tabIndex:-1,hidden:!d,"aria-activedescendant":i?qe(x,i):void 0,className:h(V.listbox,H.spacePanel),"data-animated":r?void 0:"false",style:j!=null||R!=null?{...j!=null?{"--_select-trigger-width":`${j}px`}:{},...R!=null?{maxHeight:`${R}px`}:{}}:void 0,onKeyDown:p=>{var y,I;p.key==="Escape"?(p.stopPropagation(),g(!1),(y=_.current)==null||y.focus()):p.key==="ArrowDown"?(p.preventDefault(),A(1)):p.key==="ArrowUp"?(p.preventDefault(),A(-1)):p.key==="Home"?(p.preventDefault(),C(L[0]??null)):p.key==="End"?(p.preventDefault(),C(L[L.length-1]??null)):p.key==="Enter"||p.key===" "?(p.preventDefault(),i&&(n(i),g(!1),(I=_.current)==null||I.focus())):p.key==="Tab"&&g(!1)},children:a})]})})}function Ne({value:e,disabled:n,children:s}){const o=K1(),r=o.value===e,l=o.highlighted===e;return t.jsx("div",{id:qe(o.listboxId,e),role:"option","aria-selected":r,"aria-disabled":n||void 0,"data-highlighted":l?"":void 0,className:h(V.item,"spSelectItem"),onMouseEnter:()=>!n&&o.setHighlighted(e),onClick:()=>{var a;n||(o.onValueChange(e),o.setOpen(!1),(a=o.triggerRef.current)==null||a.focus())},children:s})}const Q1=Object.assign(Y1,{Item:Ne}),J1="_root_1lx7y_1",es="_input_1lx7y_7",ts="_slot_1lx7y_17",ue={root:J1,input:es,slot:ts},ns=c.forwardRef(function({className:n,style:s,animated:o=!0,children:r,...l},a){return t.jsxs("div",{className:h(ue.root,H.spaceInput,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:[r,t.jsx("input",{...l,ref:a,className:h(ue.input,"spTextFieldInput")})]})});function ss({children:e}){return t.jsx("span",{className:ue.slot,children:e})}const de=Object.assign(ns,{Slot:ss}),os="_root_1qu6w_1",rs="_textarea_1qu6w_6",ge={root:os,textarea:rs},ls=c.forwardRef(function({className:n,style:s,animated:o=!0,...r},l){return t.jsx("div",{className:h(ge.root,H.spaceInput,H.spaceTextArea,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:t.jsx("textarea",{...r,ref:l,className:h(ge.textarea,"spTextAreaInput")})})}),cs="_wrap_1pkwo_12",as="_field_1pkwo_16",is="_panel_1pkwo_22",us="_status_1pkwo_34",ds="_list_1pkwo_44",fs="_option_1pkwo_57",_s="_active_1pkwo_69",ps="_label_1pkwo_79",Cs="_meta_1pkwo_86",gs="_footer_1pkwo_92",E={wrap:cs,field:as,panel:is,status:us,list:ds,option:fs,active:_s,label:ps,meta:Cs,footer:gs};function ms({value:e,onValueChange:n,options:s,onSelect:o,icon:r,caseSensitive:l=!1,preFiltered:a=!1,loading:u=!1,loadingMessage:d="Loading…",emptyMessage:g,footer:i,animated:C=!0,className:x,style:_,...m}){const[w,j]=c.useState(!1),[b,R]=c.useState(0),M=c.useRef(null),q=c.useRef(null),L=c.useId(),S=f=>typeof f.label=="string"?f.label:f.search??f.value,$=c.useMemo(()=>{if(a)return s;const f=l?e:e.toLowerCase();return f===""?s:s.filter(v=>(l?S(v):S(v).toLowerCase()).includes(f))},[s,e,l,a]),N=c.useMemo(()=>$.filter(f=>!f.disabled),[$]),A=$.length>0||u||g!=null,z=w&&A;c.useEffect(()=>R(0),[$]),c.useEffect(()=>{var v;if(!z)return;const f=(v=q.current)==null?void 0:v.querySelector(`[data-index="${b}"]`);f==null||f.scrollIntoView({block:"nearest"})},[b,z]);const p=c.useCallback(()=>j(!1),[]);c.useEffect(()=>{if(!z)return;const f=v=>{const F=M.current;F&&v.target instanceof Node&&!F.contains(v.target)&&p()};return document.addEventListener("pointerdown",f),()=>document.removeEventListener("pointerdown",f)},[z,p]);const y=f=>{f.disabled||(o(f.value,f),j(!1))},I=f=>{if(N.length===0)return;const v=$[b],We=((v&&!v.disabled?N.indexOf(v):-1)+f+N.length)%N.length,_e=N[We];_e&&R($.indexOf(_e))},T=f=>{if(f.key==="Escape"){z&&f.stopPropagation(),j(!1);return}if(f.key==="Tab"){j(!1);return}if(!z){f.key==="ArrowDown"&&j(!0);return}if(f.key==="ArrowDown")f.preventDefault(),I(1);else if(f.key==="ArrowUp")f.preventDefault(),I(-1);else if(f.key==="Home"){f.preventDefault();const v=N[0];v&&R($.indexOf(v))}else if(f.key==="End"){f.preventDefault();const v=N[N.length-1];v&&R($.indexOf(v))}else if(f.key==="Enter"){const v=$[b];v&&!v.disabled&&(f.preventDefault(),y(v))}},B=z?$[b]:void 0;return t.jsxs("div",{ref:M,className:h(E.wrap,x),style:_,children:[t.jsx(de,{...m,type:m.type??"text",role:"combobox",animated:C,className:E.field,autoComplete:"off","aria-expanded":z,"aria-controls":L,"aria-autocomplete":"list","aria-activedescendant":B&&!B.disabled?`${L}-${b}`:void 0,value:e,onFocus:f=>{var v;(v=m.onFocus)==null||v.call(m,f),j(!0)},onClick:f=>{var v;(v=m.onClick)==null||v.call(m,f),j(!0)},onKeyDown:f=>{var v;(v=m.onKeyDown)==null||v.call(m,f),T(f)},onChange:f=>{n(f.target.value),j(!0)},children:r!=null&&t.jsx(de.Slot,{children:r})}),t.jsxs("div",{className:h(E.panel,H.spacePanel),hidden:!z,"data-animated":C?void 0:"false",children:[u&&t.jsx("p",{className:E.status,children:d}),!u&&$.length===0&&g!=null&&t.jsx("p",{className:E.status,children:g}),t.jsx("ul",{ref:q,id:L,role:"listbox",className:E.list,hidden:u||$.length===0,children:$.map((f,v)=>t.jsxs("li",{id:`${L}-${v}`,"data-index":v,role:"option","aria-selected":v===b,"aria-disabled":f.disabled||void 0,className:h(E.option,v===b&&!f.disabled&&E.active,"spAutocompleteOption"),onMouseEnter:()=>!f.disabled&&R(v),onPointerDown:F=>{F.preventDefault(),y(f)},children:[t.jsx("span",{className:E.label,children:f.label}),f.meta!=null&&t.jsx("span",{className:E.meta,children:f.meta})]},f.value))}),i!=null&&t.jsx("div",{className:E.footer,children:i})]})]})}const hs="_root_14a1b_1",vs="_track_14a1b_12",xs="_range_14a1b_22",ws="_thumb_14a1b_28",bs="_input_14a1b_38",ee={root:hs,track:vs,range:xs,thumb:ws,input:bs},js=c.forwardRef(function({value:n,onValueChange:s,min:o,max:r,step:l,disabled:a,className:u,"aria-label":d},g){const i=n[0]??o,C=r===o?0:(i-o)/(r-o)*100;return t.jsxs("span",{className:h(ee.root,H.spaceSlider,u),"data-disabled":a||void 0,children:[t.jsx("span",{className:h(ee.track,"spSliderTrack"),children:t.jsx("span",{className:h(ee.range,"spSliderRange"),style:{width:`${C}%`}})}),t.jsx("span",{className:h(ee.thumb,"spSliderThumb"),style:{left:`${C}%`}}),t.jsx("input",{ref:g,type:"range",className:h(ee.input,"spSliderInput"),value:i,min:o,max:r,step:l,disabled:a,"aria-label":d,onChange:x=>s([Number(x.target.value)])})]})}),ys="_root_1qhel_2",ks="_item_1qhel_8",Rs="_selfLabeled_1qhel_15",$s="_input_1qhel_19",Ls="_orb_1qhel_35",K={root:ys,item:ks,selfLabeled:Rs,input:$s,orb:Ls},ze=c.createContext(null);function Is({value:e,onValueChange:n,disabled:s,className:o,children:r}){const l=c.useId();return t.jsx(ze.Provider,{value:{value:e,onValueChange:n,disabled:s,name:l},children:t.jsx("div",{role:"radiogroup",className:h(K.root,o),children:r})})}function Ms({value:e,disabled:n,children:s}){const o=c.useContext(ze);if(!o)throw new Error("RadioGroup.Item must be inside a RadioGroup");const r=n||o.disabled,l=t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",className:K.input,name:o.name,value:e,checked:o.value===e,disabled:r,onChange:()=>o.onValueChange(e)}),t.jsx("span",{className:h(K.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?t.jsx("span",{className:K.item,children:l}):t.jsxs("label",{className:h(K.item,K.selfLabeled),children:[l,s]})}const qs=Object.assign(Is,{Item:Ms}),Ns="_progress_1cre6_16",zs={progress:Ns};function Ds({value:e,max:n=100,className:s,style:o,...r}){const l=n>0?Math.min(Math.max(e/n*100,0),100):0;return t.jsx("div",{...r,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:h(zs.progress,s),style:o,children:t.jsx("div",{style:{width:`${l}%`,height:"100%"}})})}const Es="_message_1522x_14",Hs="_info_1522x_44",Ss="_warning_1522x_49",Ts="_alert_1522x_56",Zs="_icon_1522x_63",Vs="_body_1522x_74",Os="_title_1522x_83",As="_text_1522x_90",U={message:Es,info:Hs,warning:Ss,alert:Ts,icon:Zs,body:Vs,title:Os,text:As},Bs={info:t.jsx(je,{}),warning:t.jsx(ye,{}),alert:t.jsx(ke,{})},Fs={info:{role:"status",live:"polite"},warning:{role:"status",live:"polite"},alert:{role:"alert"}},Ps=c.forwardRef(function({variant:n="info",title:s,icon:o,className:r,children:l,...a},u){const d=o===void 0?Bs[n]:o,{role:g,live:i}=Fs[n];return t.jsxs("div",{...a,ref:u,role:g,"aria-live":i,className:h(U.message,U[n],r),children:[d!=null&&t.jsx("span",{className:U.icon,"aria-hidden":"true",children:d}),t.jsxs("div",{className:U.body,children:[s!=null&&t.jsx("p",{className:U.title,children:s}),l!=null&&t.jsx("div",{className:U.text,children:l})]})]})}),Ws="_dialog_1qqku_2",Gs="_inner_1qqku_34",Us="_size4_1qqku_39",Ks="_title_1qqku_43",Xs="_closeX_1qqku_51",te={dialog:Ws,inner:Gs,size4:Us,title:Ks,closeX:Xs};let ae=0;const De=c.createContext(null),se=()=>{const e=c.useContext(De);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function Ee(e){return function({open:s,onOpenChange:o,children:r}){const[l,a]=c.useState(!1),u=s!==void 0,d=u?s:l,g=m=>{u||a(m),o==null||o(m)},i=c.useId(),C=c.useId(),[x,_]=c.useState(!1);return t.jsx(De.Provider,{value:{open:d,setOpen:g,titleId:i,descId:C,alert:e,hasDesc:x,setHasDesc:_},children:r})}}const Ys=Ee(!1),He=(e,n)=>{if(!c.isValidElement(e))return e;const s=e;return c.cloneElement(s,{onClick:o=>{var r,l;(l=(r=s.props).onClick)==null||l.call(r,o),n()}})};function Se({children:e}){const n=se();return t.jsx(t.Fragment,{children:He(e,()=>n.setOpen(!0))})}function fe({children:e}){const n=se();return t.jsx(t.Fragment,{children:He(e,()=>n.setOpen(!1))})}function Te({size:e="3",maxWidth:n,className:s,style:o,children:r,...l}){const a=se(),u=c.useRef(null),d=c.useRef(!1),g=c.useRef(!1);return c.useEffect(()=>{const i=u.current;i&&(a.open&&!i.open?i.showModal():!a.open&&i.open&&i.close())},[a.open]),c.useEffect(()=>{if(a.open)return ae+=1,ae===1&&(document.body.style.overflow="hidden"),()=>{ae-=1,ae===0&&(document.body.style.overflow="")}},[a.open]),t.jsx("dialog",{...l,ref:u,role:a.alert?"alertdialog":void 0,"aria-labelledby":a.titleId,"aria-describedby":a.hasDesc?a.descId:void 0,className:h(te.dialog,"spDialog",e==="4"&&te.size4,s),style:{...n?{maxWidth:n}:null,...o},onKeyDownCapture:i=>{var C,x;i.key==="Escape"&&((C=u.current)!=null&&C.querySelector("dialog[open]")||(x=u.current)!=null&&x.querySelector('[role="listbox"]:not([hidden])')&&(d.current=!0))},onCancel:i=>{if(i.preventDefault(),d.current){d.current=!1;return}a.setOpen(!1)},onClose:()=>{a.open&&a.setOpen(!1)},onPointerDown:i=>{g.current=i.target===u.current},onClick:i=>{!a.alert&&i.target===u.current&&g.current&&a.setOpen(!1)},children:t.jsxs("div",{className:te.inner,children:[!a.alert&&t.jsx("button",{type:"button",className:te.closeX,"aria-label":"Close",onClick:()=>a.setOpen(!1),children:t.jsx(be,{width:16,height:16})}),r]})})}function Ze({className:e,...n}){const s=se();return t.jsx(ve,{as:"h2",size:"5",...n,id:s.titleId,className:h(te.title,e)})}function Ve(e){const n=se(),{setHasDesc:s}=n;return c.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),t.jsx(he,{as:"p",...e,id:n.descId})}const Qs=Object.assign(Ys,{Trigger:Se,Close:fe,Content:Te,Title:Ze,Description:Ve}),Js=fe,eo=fe,to=Object.assign(Ee(!0),{Trigger:Se,Content:Te,Title:Ze,Description:Ve,Cancel:Js,Action:eo}),no="_menu_1hwyv_1",so="_label_1hwyv_16",oo="_item_1hwyv_26",ro="_danger_1hwyv_45",lo="_separator_1hwyv_49",ne={menu:no,label:so,item:oo,danger:ro,separator:lo},Oe=c.createContext(null),co=()=>{const e=c.useContext(Oe);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},Ae=c.createContext(null),ao=()=>{const e=c.useContext(Ae);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function io(e){return e.current?(e.current=!1,!0):!1}function me(e){e.current=!0}function uo({label:e,align:n="start",children:s,...o}){const[r,l]=c.useState(!1),a=c.useId(),u=c.useRef(null),d=c.useRef(null),g=c.useRef(!1),i=c.useRef(!1),[C,x]=c.useState(null);return c.useLayoutEffect(()=>{var m;const _=d.current;if(_)if(r){const w=u.current;if(w){const j=w.getBoundingClientRect(),b=n==="end"?"auto":j.left,R=n==="end"?window.innerWidth-j.right:"auto";x({top:j.bottom+6,left:b,right:R})}_.showPopover(),(m=_.querySelector('[role="menuitem"]'))==null||m.focus()}else _.matches(":popover-open")&&_.hidePopover()},[r,n]),c.useEffect(()=>{if(!r)return;const _=()=>l(!1);return window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[r]),t.jsx(Oe.Provider,{value:{open:r,setOpen:l,menuId:a},children:t.jsxs(Ae.Provider,{value:i,children:[t.jsx(Le,{...o,ref:u,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":a,onClick:_=>{var m;(m=o.onClick)==null||m.call(o,_),!io(g)&&l(!r)},children:e}),t.jsx("div",{ref:d,id:a,role:"menu",popover:"auto",className:ne.menu,style:C?{top:C.top,left:C.left==="auto"?"auto":C.left,right:C.right==="auto"?"auto":C.right}:void 0,onToggle:_=>{if(_.nativeEvent.newState==="closed"){const m=i.current;i.current=!1,m||(g.current=!0,setTimeout(()=>{g.current=!1},300)),r&&l(!1)}},onKeyDown:_=>{var j,b,R,M,q,L;const m=Array.from(((j=d.current)==null?void 0:j.querySelectorAll('[role="menuitem"]'))??[]),w=m.indexOf(document.activeElement);_.key==="ArrowDown"?(_.preventDefault(),(b=m[Math.min(w+1,m.length-1)])==null||b.focus()):_.key==="ArrowUp"?(_.preventDefault(),(R=m[Math.max(w-1,0)])==null||R.focus()):_.key==="Home"?(_.preventDefault(),(M=m[0])==null||M.focus()):_.key==="End"?(_.preventDefault(),(q=m[m.length-1])==null||q.focus()):_.key==="Escape"&&(l(!1),(L=u.current)==null||L.focus())},children:s})]})})}function fo({children:e}){return t.jsx("div",{className:ne.label,children:e})}function _o({asChild:e,color:n,onSelect:s,children:o}){const r=co(),l=ao(),a=h(ne.item,n==="danger"&&ne.danger),u=()=>{me(l),r.setOpen(!1),s==null||s()};if(e&&c.isValidElement(o)){const d=o,{className:g,onClick:i,children:C,role:x,tabIndex:_,...m}=d.props,w=d.ref;return c.createElement(d.type,{key:d.key,ref:w,role:"menuitem",tabIndex:-1,...m,className:h(a,g),onClick:j=>{i==null||i(j),me(l),r.setOpen(!1)}},C)}return t.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:a,onClick:u,children:o})}function po(){return t.jsx("div",{role:"separator",className:ne.separator})}const Co=Object.assign(uo,{Item:_o,Separator:po,Label:fo}),go="_list_1hc3r_19",mo="_trigger_1hc3r_28",Be={list:go,trigger:mo},Fe=c.createContext(null),Pe=()=>{const e=c.useContext(Fe);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function ho({value:e,onValueChange:n,className:s,children:o}){const r=c.useId();return t.jsx(Fe.Provider,{value:{value:e,onValueChange:n,id:r},children:t.jsx("div",{className:s,children:o})})}function vo({children:e}){return t.jsx("div",{role:"tablist",className:h(Be.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),o=s.indexOf(document.activeElement);if(o!==-1){if(n.key==="ArrowRight"){n.preventDefault();const r=s[(o+1)%s.length];r.focus(),r.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const r=s[(o-1+s.length)%s.length];r.focus(),r.click()}else if(n.key==="Home"){n.preventDefault();const r=s[0];r.focus(),r.click()}else if(n.key==="End"){n.preventDefault();const r=s[s.length-1];r.focus(),r.click()}}},children:e})}function xo({value:e,className:n,children:s,...o}){const r=Pe(),l=r.value===e;return t.jsx("button",{...o,type:"button",role:"tab",id:`${r.id}-tab-${e}`,"aria-selected":l,"aria-controls":`${r.id}-panel-${e}`,tabIndex:l?0:-1,"data-state":l?"active":"inactive",className:h(Be.trigger,"spTabsTrigger",n),onClick:()=>r.onValueChange(e),children:s})}function wo({value:e,children:n}){const s=Pe();return s.value!==e?null:t.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const bo=Object.assign(ho,{List:vo,Trigger:xo,Content:wo});exports.AlertDialog=to;exports.Autocomplete=ms;exports.Badge=wn;exports.BookmarkIcon=Pn;exports.Box=At;exports.Button=Le;exports.Card=Ln;exports.ChatBubbleIcon=Mn;exports.CheckIcon=Hn;exports.ChevronDownIcon=Fn;exports.ChevronLeftIcon=we;exports.ChevronRightIcon=xe;exports.ChevronUpIcon=Bn;exports.CrossCircledIcon=ke;exports.Dialog=Qs;exports.DropdownMenu=Co;exports.EnterFullScreenIcon=En;exports.ExclamationTriangleIcon=ye;exports.ExitFullScreenIcon=Dn;exports.Flex=Ot;exports.Grid=sn;exports.Heading=ve;exports.HeartFilledIcon=zn;exports.HeartIcon=An;exports.IconToggle=V1;exports.InfoCircledIcon=je;exports.Link=xt;exports.Loader=M1;exports.MagnifyingGlassIcon=On;exports.Message=Ps;exports.MinusIcon=Vn;exports.Pagination=l1;exports.Pencil1Icon=Nn;exports.PersonIcon=Zn;exports.PlusIcon=qn;exports.Progress=Ds;exports.QuestionMarkCircledIcon=Tn;exports.RadioGroup=qs;exports.Select=Q1;exports.Separator=yn;exports.Share2Icon=In;exports.Slider=js;exports.Tabs=bo;exports.Text=he;exports.TextArea=ls;exports.TextField=de;exports.Tooltip=Ie;exports.TrashIcon=Sn;exports.XIcon=be;exports.pageCount=Re;exports.pageWindow=$e;
2
2
  //# sourceMappingURL=index.cjs.map