@segmentify/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +2 -0
- package/dist/components/atoms/accordion.d.ts +7 -0
- package/dist/components/atoms/aspect-ratio.d.ts +3 -0
- package/dist/components/atoms/avatar.d.ts +6 -0
- package/dist/components/atoms/badge.d.ts +7 -0
- package/dist/components/atoms/breadcrumb.d.ts +11 -0
- package/dist/components/atoms/button.d.ts +7 -0
- package/dist/components/atoms/calendar.d.ts +8 -0
- package/dist/components/atoms/card.d.ts +9 -0
- package/dist/components/atoms/carousel.d.ts +19 -0
- package/dist/components/atoms/chart.d.ts +40 -0
- package/dist/components/atoms/checkbox.d.ts +4 -0
- package/dist/components/atoms/collapsible.d.ts +5 -0
- package/dist/components/atoms/command.d.ts +18 -0
- package/dist/components/atoms/component-switch.d.ts +19 -0
- package/dist/components/atoms/content-wrapper.d.ts +11 -0
- package/dist/components/atoms/date.d.ts +4 -0
- package/dist/components/atoms/dialog.d.ts +15 -0
- package/dist/components/atoms/drawer.d.ts +13 -0
- package/dist/components/atoms/dropdown-menu.d.ts +25 -0
- package/dist/components/atoms/empty.d.ts +11 -0
- package/dist/components/atoms/error-message.d.ts +6 -0
- package/dist/components/atoms/field-description.d.ts +6 -0
- package/dist/components/atoms/form.d.ts +12 -0
- package/dist/components/atoms/hover-card.d.ts +6 -0
- package/dist/components/atoms/icon.d.ts +6 -0
- package/dist/components/atoms/input-otp.d.ts +20 -0
- package/dist/components/atoms/input.d.ts +3 -0
- package/dist/components/atoms/kbd.d.ts +3 -0
- package/dist/components/atoms/label.d.ts +9 -0
- package/dist/components/atoms/load-more.d.ts +6 -0
- package/dist/components/atoms/native-select.d.ts +7 -0
- package/dist/components/atoms/pagination.d.ts +13 -0
- package/dist/components/atoms/popover.d.ts +7 -0
- package/dist/components/atoms/radio-group.d.ts +5 -0
- package/dist/components/atoms/scroll-area.d.ts +5 -0
- package/dist/components/atoms/select-multi.d.ts +28 -0
- package/dist/components/atoms/select.d.ts +15 -0
- package/dist/components/atoms/separator.d.ts +4 -0
- package/dist/components/atoms/sheet.d.ts +13 -0
- package/dist/components/atoms/sidebar.d.ts +59 -0
- package/dist/components/atoms/skeleton.d.ts +2 -0
- package/dist/components/atoms/slider.d.ts +4 -0
- package/dist/components/atoms/spinner.d.ts +7 -0
- package/dist/components/atoms/switch.d.ts +4 -0
- package/dist/components/atoms/table-whatsapp.d.ts +35 -0
- package/dist/components/atoms/table.d.ts +17 -0
- package/dist/components/atoms/tabs.d.ts +7 -0
- package/dist/components/atoms/textarea.d.ts +3 -0
- package/dist/components/atoms/tooltip.d.ts +7 -0
- package/dist/hooks/use-form-field.d.ts +23 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-sidebar.d.ts +12 -0
- package/dist/index.d.ts +50 -0
- package/dist/lib/design-variants.d.ts +10 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/segmentify-ui.cjs +86 -0
- package/dist/segmentify-ui.js +26999 -0
- package/dist/vite.svg +1 -0
- package/package.json +129 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),E=require("react"),Gd=require("react-dom");function kv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const p=kv(E),ei=kv(Gd);function t1(e,t){const n=p.createContext(t),r=a=>{const{children:i,...s}=a,c=p.useMemo(()=>s,Object.values(s));return y.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ze(e,t=[]){let n=[];function r(a,i){const s=p.createContext(i),c=n.length;n=[...n,i];const l=d=>{const{scope:f,children:g,...b}=d,m=f?.[e]?.[c]||s,h=p.useMemo(()=>b,Object.values(b));return y.jsx(m.Provider,{value:h,children:g})};l.displayName=a+"Provider";function u(d,f){const g=f?.[e]?.[c]||s,b=p.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=n.map(i=>p.createContext(i));return function(s){const c=s?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,n1(o,...t)]}function n1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Cp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cp(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cp(e[o],null)}}}}function pe(...e){return p.useCallback(Yt(...e),e)}function Dn(e){const t=r1(e),n=p.forwardRef((r,o)=>{const{children:a,...i}=r,s=p.Children.toArray(a),c=s.find(a1);if(c){const l=c.props.children,u=s.map(d=>d===c?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return y.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,u):null})}return y.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function r1(e){const t=p.forwardRef((n,r)=>{const{children:o,...a}=n;if(p.isValidElement(o)){const i=s1(o),s=i1(a,o.props);return o.type!==p.Fragment&&(s.ref=r?Yt(r,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fv=Symbol("radix.slottable");function o1(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fv,t}function a1(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fv}function i1(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function s1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wo(e){const t=e+"CollectionProvider",[n,r]=ze(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:h,children:v}=m,x=E.useRef(null),w=E.useRef(new Map).current;return y.jsx(o,{scope:h,itemMap:w,collectionRef:x,children:v})};i.displayName=t;const s=e+"CollectionSlot",c=Dn(s),l=E.forwardRef((m,h)=>{const{scope:v,children:x}=m,w=a(s,v),C=pe(h,w.collectionRef);return y.jsx(c,{ref:C,children:x})});l.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Dn(u),g=E.forwardRef((m,h)=>{const{scope:v,children:x,...w}=m,C=E.useRef(null),S=pe(h,C),A=a(u,v);return E.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>{A.itemMap.delete(C)})),y.jsx(f,{[d]:"",ref:S,children:x})});g.displayName=u;function b(m){const h=a(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((A,I)=>w.indexOf(A.ref.current)-w.indexOf(I.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},b,r]}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ke=globalThis?.document?p.useLayoutEffect:()=>{},c1=p[" useInsertionEffect ".trim().toString()]||ke;function et({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=l1({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const l=p.useCallback(u=>{if(s){const d=u1(u)?u(e):u;d!==e&&i.current?.(d)}else a(u)},[s,e,a,i]);return[c,l]}function l1({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),o=p.useRef(n),a=p.useRef(t);return c1(()=>{a.current=t},[t]),p.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function u1(e){return typeof e=="function"}var d1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=d1.reduce((e,t)=>{const n=Dn(`Primitive.${t}`),r=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bv(e,t){e&&ei.flushSync(()=>e.dispatchEvent(t))}function f1(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Xe=e=>{const{present:t,children:n}=e,r=p1(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),a=pe(r.ref,m1(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:a}):null};Xe.displayName="Presence";function p1(e){const[t,n]=p.useState(),r=p.useRef(null),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[s,c]=f1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const l=Xo(r.current);a.current=s==="mounted"?l:"none"},[s]),ke(()=>{const l=r.current,u=o.current;if(u!==e){const f=a.current,g=Xo(l);e?c("MOUNT"):g==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ke(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const m=Xo(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},f=g=>{g.target===t&&(a.current=Xo(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Xo(e){return e?.animationName||"none"}function m1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h1=p[" useId ".trim().toString()]||(()=>{}),g1=0;function Le(e){const[t,n]=p.useState(h1());return ke(()=>{n(r=>r??String(g1++))},[e]),t?`radix-${t}`:""}var ti="Collapsible",[b1,jv]=ze(ti),[v1,Ld]=b1(ti),Gv=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c,l]=et({prop:r,defaultProp:o??!1,onChange:i,caller:ti});return y.jsx(v1,{scope:n,disabled:a,contentId:Le(),open:c,onOpenToggle:p.useCallback(()=>l(u=>!u),[l]),children:y.jsx(oe.div,{"data-state":$d(c),"data-disabled":a?"":void 0,...s,ref:t})})});Gv.displayName=ti;var Lv="CollapsibleTrigger",Wd=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ld(Lv,n);return y.jsx(oe.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":$d(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:X(e.onClick,o.onOpenToggle)})});Wd.displayName=Lv;var Vd="CollapsibleContent",Hd=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ld(Vd,e.__scopeCollapsible);return y.jsx(Xe,{present:n||o.open,children:({present:a})=>y.jsx(y1,{...r,ref:t,present:a})})});Hd.displayName=Vd;var y1=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Ld(Vd,n),[s,c]=p.useState(r),l=p.useRef(null),u=pe(t,l),d=p.useRef(0),f=d.current,g=p.useRef(0),b=g.current,m=i.open||s,h=p.useRef(m),v=p.useRef(void 0);return p.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),ke(()=>{const x=l.current;if(x){v.current=v.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,g.current=w.width,h.current||(x.style.transitionDuration=v.current.transitionDuration,x.style.animationName=v.current.animationName),c(r)}},[i.open,r]),y.jsx(oe.div,{"data-state":$d(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:m&&o})});function $d(e){return e?"open":"closed"}var Wv=Gv,x1=Wd,w1=Hd,C1=p.createContext(void 0);function wn(e){const t=p.useContext(C1);return e||t||"ltr"}var Dt="Accordion",S1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[zd,I1,E1]=wo(Dt),[ni]=ze(Dt,[E1,jv]),Xd=jv(),Vv=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return y.jsx(zd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?y.jsx(O1,{...a,ref:t}):y.jsx(P1,{...o,ref:t})})});Vv.displayName=Dt;var[Hv,A1]=ni(Dt),[$v,R1]=ni(Dt,{collapsible:!1}),P1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=et({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return y.jsx(Hv,{scope:e.__scopeAccordion,value:E.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:E.useCallback(()=>a&&c(""),[a,c]),children:y.jsx($v,{scope:e.__scopeAccordion,collapsible:a,children:y.jsx(zv,{...i,ref:t})})})}),O1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=et({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),c=E.useCallback(u=>s((d=[])=>[...d,u]),[s]),l=E.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return y.jsx(Hv,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:l,children:y.jsx($v,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(zv,{...a,ref:t})})})}),[T1,ri]=ni(Dt),zv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=E.useRef(null),c=pe(s,t),l=I1(n),d=wn(o)==="ltr",f=X(e.onKeyDown,g=>{if(!S1.includes(g.key))return;const b=g.target,m=l().filter(R=>!R.ref.current?.disabled),h=m.findIndex(R=>R.ref.current===b),v=m.length;if(h===-1)return;g.preventDefault();let x=h;const w=0,C=v-1,S=()=>{x=h+1,x>C&&(x=w)},A=()=>{x=h-1,x<w&&(x=C)};switch(g.key){case"Home":x=w;break;case"End":x=C;break;case"ArrowRight":a==="horizontal"&&(d?S():A());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(d?A():S());break;case"ArrowUp":a==="vertical"&&A();break}const I=x%v;m[I].ref.current?.focus()});return y.jsx(T1,{scope:n,disabled:r,direction:o,orientation:a,children:y.jsx(zd.Slot,{scope:n,children:y.jsx(oe.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:f})})})}),Sa="AccordionItem",[_1,Yd]=ni(Sa),Xv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=ri(Sa,n),i=A1(Sa,n),s=Xd(n),c=Le(),l=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return y.jsx(_1,{scope:n,open:l,disabled:u,triggerId:c,children:y.jsx(Wv,{"data-orientation":a.orientation,"data-state":Kv(l),...s,...o,ref:t,disabled:u,open:l,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})})});Xv.displayName=Sa;var Yv="AccordionHeader",Zv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(Dt,n),a=Yd(Yv,n);return y.jsx(oe.h3,{"data-orientation":o.orientation,"data-state":Kv(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Zv.displayName=Yv;var Hu="AccordionTrigger",qv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(Dt,n),a=Yd(Hu,n),i=R1(Hu,n),s=Xd(n);return y.jsx(zd.ItemSlot,{scope:n,children:y.jsx(x1,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});qv.displayName=Hu;var Uv="AccordionContent",Jv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(Dt,n),a=Yd(Uv,n),i=Xd(n);return y.jsx(w1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Jv.displayName=Uv;function Kv(e){return e?"open":"closed"}var M1=Vv,D1=Xv,N1=Zv,k1=qv,F1=Jv;const B1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Sp=e=>{const t=j1(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),G1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var L1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const W1=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>E.createElement("svg",{ref:c,...L1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Qv("lucide",o),...!a&&!G1(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,u])=>E.createElement(l,u)),...Array.isArray(a)?a:[a]]));const qt=(e,t)=>{const n=E.forwardRef(({className:r,...o},a)=>E.createElement(W1,{ref:a,iconNode:t,className:Qv(`lucide-${B1(Sp(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Sp(e),n};const V1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],H1=qt("arrow-left",V1);const $1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],z1=qt("arrow-right",$1);const X1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Y1=qt("check",X1);const Z1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zd=qt("chevron-down",Z1);const q1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],U1=qt("chevron-left",q1);const J1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],K1=qt("chevron-right",J1);const Q1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ey=qt("loader-circle",Q1);const eE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],tE=qt("panel-left",eE);const nE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rE=qt("search",nE);const oE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ty=qt("x",oE);function ny(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ny(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ny(e))&&(r&&(r+=" "),r+=t);return r}const aE=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},iE=(e,t)=>({classGroupId:e,validator:t}),ry=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ia="-",Ip=[],sE="arbitrary..",cE=e=>{const t=uE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return lE(i);const s=i.split(Ia),c=s[0]===""&&s.length>1?1:0;return oy(s,c,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const c=r[i],l=n[i];return c?l?aE(l,c):c:l||Ip}return n[i]||Ip}}},oy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const l=oy(e,t+1,a);if(l)return l}const i=n.validators;if(i===null)return;const s=t===0?e.join(Ia):e.slice(t).join(Ia),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(s))return u.classGroupId}},lE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?sE+r:void 0})(),uE=e=>{const{theme:t,classGroups:n}=e;return dE(n,t)},dE=(e,t)=>{const n=ry();for(const r in e){const o=e[r];qd(o,n,r,t)}return n},qd=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];fE(i,t,n,r)}},fE=(e,t,n,r)=>{if(typeof e=="string"){pE(e,t,n);return}if(typeof e=="function"){mE(e,t,n,r);return}hE(e,t,n,r)},pE=(e,t,n)=>{const r=e===""?t:ay(t,e);r.classGroupId=n},mE=(e,t,n,r)=>{if(gE(e)){qd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(iE(n,e))},hE=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[s,c]=o[i];qd(c,ay(t,s),n,r)}},ay=(e,t)=>{let n=e;const r=t.split(Ia),o=r.length;for(let a=0;a<o;a++){const i=r[a];let s=n.nextPart.get(i);s||(s=ry(),n.nextPart.set(i,s)),n=s}return n},gE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return o(a,i),i},set(a,i){a in n?n[a]=i:o(a,i)}}},$u="!",Ep=":",vE=[],Ap=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),yE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,c=0,l;const u=o.length;for(let m=0;m<u;m++){const h=o[m];if(i===0&&s===0){if(h===Ep){a.push(o.slice(c,m)),c=m+1;continue}if(h==="/"){l=m;continue}}h==="["?i++:h==="]"?i--:h==="("?s++:h===")"&&s--}const d=a.length===0?o:o.slice(c);let f=d,g=!1;d.endsWith($u)?(f=d.slice(0,-1),g=!0):d.startsWith($u)&&(f=d.slice(1),g=!0);const b=l&&l>c?l-c:void 0;return Ap(a,g,f,b)};if(t){const o=t+Ep,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):Ap(vE,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},xE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const i=n[a],s=i[0]==="[",c=t.has(i);s||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},wE=e=>({cache:bE(e.cacheSize),parseClassName:yE(e),sortModifiers:xE(e),...cE(e)}),CE=/\s+/,SE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(CE);let c="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{isExternal:d,modifiers:f,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!m,v=r(h?b.substring(0,m):b);if(!v){if(!h){c=u+(c.length>0?" "+c:c);continue}if(v=r(b),!v){c=u+(c.length>0?" "+c:c);continue}h=!1}const x=f.length===0?"":f.length===1?f[0]:a(f).join(":"),w=g?x+$u:x,C=w+v;if(i.indexOf(C)>-1)continue;i.push(C);const S=o(v,h);for(let A=0;A<S.length;++A){const I=S[A];i.push(w+I)}c=u+(c.length>0?" "+c:c)}return c},IE=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=iy(n))&&(o&&(o+=" "),o+=r);return o},iy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=iy(e[r]))&&(n&&(n+=" "),n+=t);return n},EE=(e,...t)=>{let n,r,o,a;const i=c=>{const l=t.reduce((u,d)=>d(u),e());return n=wE(l),r=n.cache.get,o=n.cache.set,a=s,s(c)},s=c=>{const l=r(c);if(l)return l;const u=SE(c,n);return o(c,u),u};return a=i,(...c)=>a(IE(...c))},AE=[],He=e=>{const t=n=>n[e]||AE;return t.isThemeGetter=!0,t},sy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RE=/^\d+\/\d+$/,PE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ME=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>RE.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),mn=e=>!!e&&Number.isInteger(Number(e)),ns=e=>e.endsWith("%")&&be(e.slice(0,-1)),an=e=>PE.test(e),DE=()=>!0,NE=e=>OE.test(e)&&!TE.test(e),ly=()=>!1,kE=e=>_E.test(e),FE=e=>ME.test(e),BE=e=>!ie(e)&&!se(e),jE=e=>wr(e,fy,ly),ie=e=>sy.test(e),Rn=e=>wr(e,py,NE),rs=e=>wr(e,HE,be),Rp=e=>wr(e,uy,ly),GE=e=>wr(e,dy,FE),Yo=e=>wr(e,my,kE),se=e=>cy.test(e),Nr=e=>Cr(e,py),LE=e=>Cr(e,$E),Pp=e=>Cr(e,uy),WE=e=>Cr(e,fy),VE=e=>Cr(e,dy),Zo=e=>Cr(e,my,!0),wr=(e,t,n)=>{const r=sy.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Cr=(e,t,n=!1)=>{const r=cy.exec(e);return r?r[1]?t(r[1]):n:!1},uy=e=>e==="position"||e==="percentage",dy=e=>e==="image"||e==="url",fy=e=>e==="length"||e==="size"||e==="bg-size",py=e=>e==="length",HE=e=>e==="number",$E=e=>e==="family-name",my=e=>e==="shadow",zE=()=>{const e=He("color"),t=He("font"),n=He("text"),r=He("font-weight"),o=He("tracking"),a=He("leading"),i=He("breakpoint"),s=He("container"),c=He("spacing"),l=He("radius"),u=He("shadow"),d=He("inset-shadow"),f=He("text-shadow"),g=He("drop-shadow"),b=He("blur"),m=He("perspective"),h=He("aspect"),v=He("ease"),x=He("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),se,ie],A=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],R=()=>[se,ie,c],P=()=>[Un,"full","auto",...R()],M=()=>[mn,"none","subgrid",se,ie],T=()=>["auto",{span:["full",mn,se,ie]},mn,se,ie],B=()=>[mn,"auto",se,ie],O=()=>["auto","min","max","fr",se,ie],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...R()],$=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,se,ie],V=()=>[...C(),Pp,Rp,{position:[se,ie]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",WE,jE,{size:[se,ie]}],k=()=>[ns,Nr,Rn],H=()=>["","none","full",l,se,ie],Y=()=>["",be,Nr,Rn],z=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[be,ns,Pp,Rp],q=()=>["","none",b,se,ie],ae=()=>["none",be,se,ie],re=()=>["none",be,se,ie],te=()=>[be,se,ie],F=()=>[Un,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[an],breakpoint:[an],color:[DE],container:[an],"drop-shadow":[an],ease:["in","out","in-out"],font:[BE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[an],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[an],shadow:[an],spacing:["px",be],text:[an],"text-shadow":[an],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,ie,se,h]}],container:["container"],columns:[{columns:[be,ie,se,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[mn,"auto",se,ie]}],basis:[{basis:[Un,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Un,"auto","initial","none",ie]}],grow:[{grow:["",be,se,ie]}],shrink:[{shrink:["",be,se,ie]}],order:[{order:[mn,"first","last","none",se,ie]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,Nr,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,se,rs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ns,ie]}],"font-family":[{font:[LE,ie,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,se,ie]}],"line-clamp":[{"line-clamp":[be,"none",se,rs]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",se,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",se,Rn]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[be,"auto",se,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mn,se,ie],radial:["",se,ie],conic:[mn,se,ie]},VE,GE]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,se,ie]}],"outline-w":[{outline:["",be,Nr,Rn]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,Zo,Yo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Zo,Yo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[be,Rn]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,Zo,Yo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[be,se,ie]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[se,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ie]}],filter:[{filter:["","none",se,ie]}],blur:[{blur:q()}],brightness:[{brightness:[be,se,ie]}],contrast:[{contrast:[be,se,ie]}],"drop-shadow":[{"drop-shadow":["","none",g,Zo,Yo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",be,se,ie]}],"hue-rotate":[{"hue-rotate":[be,se,ie]}],invert:[{invert:["",be,se,ie]}],saturate:[{saturate:[be,se,ie]}],sepia:[{sepia:["",be,se,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ie]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[be,se,ie]}],"backdrop-contrast":[{"backdrop-contrast":[be,se,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,se,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,se,ie]}],"backdrop-invert":[{"backdrop-invert":["",be,se,ie]}],"backdrop-opacity":[{"backdrop-opacity":[be,se,ie]}],"backdrop-saturate":[{"backdrop-saturate":[be,se,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",be,se,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",se,ie]}],ease:[{ease:["linear","initial",v,se,ie]}],delay:[{delay:[be,se,ie]}],animate:[{animate:["none",x,se,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,se,ie]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[se,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,ie]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[be,Nr,Rn,rs]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},XE=EE(zE),hy=6048e5,YE=864e5,Op=Symbol.for("constructDateFrom");function We(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Op in e?e[Op](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return We(t||e,e)}function gy(e,t,n){const r=Oe(e,n?.in);return isNaN(t)?We(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function by(e,t,n){const r=Oe(e,n?.in);if(isNaN(t))return We(e,NaN);if(!t)return r;const o=r.getDate(),a=We(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let ZE={};function Co(){return ZE}function dr(e,t){const n=Co(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Oe(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function to(e,t){return dr(e,{...t,weekStartsOn:1})}function vy(e,t){const n=Oe(e,t?.in),r=n.getFullYear(),o=We(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=to(o),i=We(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=to(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Tp(e){const t=Oe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sr(e,...t){const n=We.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function no(e,t){const n=Oe(e,t?.in);return n.setHours(0,0,0,0),n}function Ud(e,t,n){const[r,o]=Sr(n?.in,e,t),a=no(r),i=no(o),s=+a-Tp(a),c=+i-Tp(i);return Math.round((s-c)/YE)}function qE(e,t){const n=vy(e,t),r=We(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),to(r)}function UE(e,t,n){return gy(e,t*7,n)}function JE(e,t,n){return by(e,t*12,n)}function KE(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=We.bind(null,o));const a=Oe(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),We(r,n||NaN)}function QE(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=We.bind(null,o));const a=Oe(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),We(r,n||NaN)}function eA(e,t,n){const[r,o]=Sr(n?.in,e,t);return+no(r)==+no(o)}function yy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xy(e){return!(!yy(e)&&typeof e!="number"||isNaN(+Oe(e)))}function wy(e,t,n){const[r,o]=Sr(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function tA(e,t){const n=Oe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Cy(e,t){const[n,r]=Sr(e,t.start,t.end);return{start:n,end:r}}function nA(e,t){const{start:n,end:r}=Cy(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=1;const c=[];for(;+i<=a;)c.push(We(n,i)),i.setMonth(i.getMonth()+s);return o?c.reverse():c}function rA(e,t){const n=Oe(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function oA(e,t){const n=Oe(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Sy(e,t){const n=Oe(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function aA(e,t){const{start:n,end:r}=Cy(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setMonth(0,1);let s=1;const c=[];for(;+i<=a;)c.push(We(n,i)),i.setFullYear(i.getFullYear()+s);return o?c.reverse():c}function Iy(e,t){const n=Co(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Oe(e,t?.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function iA(e,t){return Iy(e,{...t,weekStartsOn:1})}const sA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cA=(e,t,n)=>{let r;const o=sA[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function os(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const lA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fA={date:os({formats:lA,defaultWidth:"full"}),time:os({formats:uA,defaultWidth:"full"}),dateTime:os({formats:dA,defaultWidth:"full"})},pA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mA=(e,t,n,r)=>pA[e];function kr(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const hA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wA=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},CA={ordinalNumber:wA,era:kr({values:hA,defaultWidth:"wide"}),quarter:kr({values:gA,defaultWidth:"wide",argumentCallback:e=>e-1}),month:kr({values:bA,defaultWidth:"wide"}),day:kr({values:vA,defaultWidth:"wide"}),dayPeriod:kr({values:yA,defaultWidth:"wide",formattingValues:xA,defaultFormattingWidth:"wide"})};function Fr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?IA(s,d=>d.test(i)):SA(s,d=>d.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}function SA(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function IA(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function EA(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const AA=/^(\d+)(th|st|nd|rd)?/i,RA=/\d+/i,PA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OA={any:[/^b/i,/^(a|c)/i]},TA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_A={any:[/1/i,/2/i,/3/i,/4/i]},MA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},DA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},FA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},BA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},jA={ordinalNumber:EA({matchPattern:AA,parsePattern:RA,valueCallback:e=>parseInt(e,10)}),era:Fr({matchPatterns:PA,defaultMatchWidth:"wide",parsePatterns:OA,defaultParseWidth:"any"}),quarter:Fr({matchPatterns:TA,defaultMatchWidth:"wide",parsePatterns:_A,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fr({matchPatterns:MA,defaultMatchWidth:"wide",parsePatterns:DA,defaultParseWidth:"any"}),day:Fr({matchPatterns:NA,defaultMatchWidth:"wide",parsePatterns:kA,defaultParseWidth:"any"}),dayPeriod:Fr({matchPatterns:FA,defaultMatchWidth:"any",parsePatterns:BA,defaultParseWidth:"any"})},rr={code:"en-US",formatDistance:cA,formatLong:fA,formatRelative:mA,localize:CA,match:jA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GA(e,t){const n=Oe(e,t?.in);return Ud(n,Sy(n))+1}function Jd(e,t){const n=Oe(e,t?.in),r=+to(n)-+qE(n);return Math.round(r/hy)+1}function Ey(e,t){const n=Oe(e,t?.in),r=n.getFullYear(),o=Co(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=We(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=dr(i,t),c=We(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=dr(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function LA(e,t){const n=Co(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Ey(e,t),a=We(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),dr(a,t)}function Kd(e,t){const n=Oe(e,t?.in),r=+dr(n,t)-+LA(n,t);return Math.round(r/hy)+1}function Pe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const hn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pe(n+1,2)},d(e,t){return Pe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Pe(e.getHours()%12||12,t.length)},H(e,t){return Pe(e.getHours(),t.length)},m(e,t){return Pe(e.getMinutes(),t.length)},s(e,t){return Pe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Pe(o,t.length)}},Jn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_p={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return hn.y(e,t)},Y:function(e,t,n,r){const o=Ey(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return Pe(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Pe(a,t.length)},R:function(e,t){const n=vy(e);return Pe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return hn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Pe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Kd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Pe(o,t.length)},I:function(e,t,n){const r=Jd(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):hn.d(e,t)},D:function(e,t,n){const r=GA(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Pe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Pe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Pe(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Jn.noon:r===0?o=Jn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Jn.evening:r>=12?o=Jn.afternoon:r>=4?o=Jn.morning:o=Jn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return hn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):hn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):hn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):hn.s(e,t)},S:function(e,t){return hn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Dp(r);case"XXXX":case"XX":return On(r);default:return On(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Dp(r);case"xxxx":case"xx":return On(r);default:return On(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mp(r,":");default:return"GMT"+On(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mp(r,":");default:return"GMT"+On(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Pe(r,t.length)},T:function(e,t,n){return Pe(+e,t.length)}};function Mp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Pe(a,2)}function Dp(e,t){return e%60===0?(e>0?"-":"+")+Pe(Math.abs(e)/60,2):On(e,t)}function On(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Pe(Math.trunc(r/60),2),a=Pe(r%60,2);return n+o+t+a}const Np=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ay=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},WA=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Np(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Np(r,t)).replace("{{time}}",Ay(o,t))},VA={p:Ay,P:WA},HA=/^D+$/,$A=/^Y+$/,zA=["D","DD","YY","YYYY"];function XA(e){return HA.test(e)}function YA(e){return $A.test(e)}function ZA(e,t,n){const r=qA(e,t,n);if(console.warn(r),zA.includes(e))throw new RangeError(r)}function qA(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const UA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JA=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KA=/^'([^]*?)'?$/,QA=/''/g,eR=/[a-zA-Z]/;function _n(e,t,n){const r=Co(),o=n?.locale??r.locale??rr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Oe(e,n?.in);if(!xy(s))throw new RangeError("Invalid time value");let c=t.match(JA).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=VA[d];return f(u,o.formatLong)}return u}).join("").match(UA).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:tR(u)};if(_p[d])return{isToken:!0,value:u};if(d.match(eR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&YA(d)||!n?.useAdditionalDayOfYearTokens&&XA(d))&&ZA(d,t,String(e));const f=_p[d[0]];return f(s,d,o.localize,l)}).join("")}function tR(e){const t=e.match(KA);return t?t[1].replace(QA,"'"):e}function nR(e,t){const n=Oe(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=We(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function rR(e,t){return Oe(e,t?.in).getMonth()}function oR(e,t){return Oe(e,t?.in).getFullYear()}function aR(e,t){return+Oe(e)>+Oe(t)}function iR(e,t){return+Oe(e)<+Oe(t)}function sR(e,t,n){const[r,o]=Sr(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function cR(e,t,n){const[r,o]=Sr(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function lR(e,t,n){const r=Oe(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=We(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=nR(i);return r.setMonth(t,Math.min(a,s)),r}function uR(e,t,n){const r=Oe(e,n?.in);return isNaN(+r)?We(e,NaN):(r.setFullYear(t),r)}function D(...e){return XE(dn(e))}const dR=(e,t="yyyy-MM-dd")=>xy(e)?_n(e,t):_n(new Date,t);function fR({...e}){return y.jsx(M1,{"data-slot":"accordion",...e})}function pR({className:e,...t}){return y.jsx(D1,{"data-slot":"accordion-item",className:D("border-b last:border-b-0",e),...t})}function mR({className:e,children:t,...n}){return y.jsx(N1,{className:"flex",children:y.jsxs(k1,{"data-slot":"accordion-trigger",className:D("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,y.jsx(Zd,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function hR({className:e,children:t,...n}){return y.jsx(F1,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:y.jsx("div",{className:D("pt-0 pb-4",e),children:t})})}var gR=Symbol.for("react.lazy"),Ea=p[" use ".trim().toString()];function bR(e){return typeof e=="object"&&e!==null&&"then"in e}function Ry(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===gR&&"_payload"in e&&bR(e._payload)}function Py(e){const t=vR(e),n=p.forwardRef((r,o)=>{let{children:a,...i}=r;Ry(a)&&typeof Ea=="function"&&(a=Ea(a._payload));const s=p.Children.toArray(a),c=s.find(xR);if(c){const l=c.props.children,u=s.map(d=>d===c?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return y.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,u):null})}return y.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Cn=Py("Slot");function vR(e){const t=p.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ry(o)&&typeof Ea=="function"&&(o=Ea(o._payload)),p.isValidElement(o)){const i=CR(o),s=wR(a,o.props);return o.type!==p.Fragment&&(s.ref=r?Yt(r,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yR=Symbol("radix.slottable");function xR(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yR}function wR(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function CR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var SR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=SR.reduce((e,t)=>{const n=Py(`Primitive.${t}`),r=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),IR="AspectRatio",Oy=p.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return y.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:y.jsx(st.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});Oy.displayName=IR;var ER=Oy;function AR({...e}){return y.jsx(ER,{"data-slot":"aspect-ratio",...e})}function RR(e,t=[]){let n=[];function r(a,i){const s=p.createContext(i);s.displayName=a+"Context";const c=n.length;n=[...n,i];const l=d=>{const{scope:f,children:g,...b}=d,m=f?.[e]?.[c]||s,h=p.useMemo(()=>b,Object.values(b));return y.jsx(m.Provider,{value:h,children:g})};l.displayName=a+"Provider";function u(d,f){const g=f?.[e]?.[c]||s,b=p.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=n.map(i=>p.createContext(i));return function(s){const c=s?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,PR(o,...t)]}function PR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function qe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}var qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo={exports:{}},as={};var kp;function OR(){if(kp)return as;kp=1;var e=E;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(d,f){var g=f(),b=r({inst:{value:g,getSnapshot:f}}),m=b[0].inst,h=b[1];return a(function(){m.value=g,m.getSnapshot=f,c(m)&&h({inst:m})},[d,g,f]),o(function(){return c(m)&&h({inst:m}),d(function(){c(m)&&h({inst:m})})},[d]),i(g),g}function c(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!n(d,g)}catch{return!0}}function l(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return as.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,as}var is={};var Fp;function TR(){return Fp||(Fp=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=b();if(!d){var h=b();a(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=i({inst:{value:m,getSnapshot:b}});var v=h[0].inst,x=h[1];return c(function(){v.value=m,v.getSnapshot=b,n(v)&&x({inst:v})},[g,m,b]),s(function(){return n(v)&&x({inst:v}),g(function(){n(v)&&x({inst:v})})},[g]),l(m),m}function n(g){var b=g.getSnapshot;g=g.value;try{var m=b();return!a(g,m)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=E,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,c=o.useLayoutEffect,l=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;is.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),is}var Bp;function _R(){return Bp||(Bp=1,process.env.NODE_ENV==="production"?Uo.exports=OR():Uo.exports=TR()),Uo.exports}var MR=_R();function DR(){return MR.useSyncExternalStore(NR,()=>!0,()=>!1)}function NR(){return()=>{}}var Qd="Avatar",[kR]=RR(Qd),[FR,Ty]=kR(Qd),_y=p.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=p.useState("idle");return y.jsx(FR,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:y.jsx(st.span,{...r,ref:t})})});_y.displayName=Qd;var My="AvatarImage",BR=p.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Ty(My,n),s=GR(r,a),c=qe(l=>{o(l),i.onImageLoadingStatusChange(l)});return ke(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?y.jsx(st.img,{...a,ref:t,src:r}):null});BR.displayName=My;var Dy="AvatarFallback",jR=p.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ty(Dy,n),[i,s]=p.useState(r===void 0);return p.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&a.imageLoadingStatus!=="loaded"?y.jsx(st.span,{...o,ref:t}):null});jR.displayName=Dy;function jp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function GR(e,{referrerPolicy:t,crossOrigin:n}){const r=DR(),o=p.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[i,s]=p.useState(()=>jp(a,e));return ke(()=>{s(jp(a,e))},[a,e]),ke(()=>{const c=d=>()=>{s(d)};if(!a)return;const l=c("loaded"),u=c("error");return a.addEventListener("load",l),a.addEventListener("error",u),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",l),a.removeEventListener("error",u)}},[a,n,t]),i}var LR=_y;function WR({className:e,...t}){return y.jsx(LR,{"data-slot":"avatar",className:D("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}const Gp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lp=dn,So=(e,t)=>n=>{var r;if(t?.variants==null)return Lp(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const u=n?.[l],d=a?.[l];if(u===null)return null;const f=Gp(u)||Gp(d);return o[l][f]}),s=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...g}=u;return Object.entries(g).every(b=>{let[m,h]=b;return Array.isArray(h)?h.includes({...a,...s}[m]):{...a,...s}[m]===h})?[...l,d,f]:l},[]);return Lp(e,i,c,n?.class,n?.className)},zu=So("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-primary text-white hover:bg-primary/80 hover:text-white disabled:opacity-70 disabled:bg-gray-400 disabled:text-white",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200 focus-visible:ring-gray-300",tertiary:"bg-kashmir-blue-500 text-white hover:bg-kashmir-blue-600 hover:text-white focus-visible:ring-kashmir-blue-200",success:"bg-green-400 text-white focus-visible:ring-green-200 hover:bg-green-400/80 hover:text-white disabled:opacity-70 disabled:bg-gray-400 disabled:text-white",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input border-solid bg-background hover:bg-accent hover:text-accent-foreground focus-visible:ring-gray-600 focus-visible:border-gray-200",ghost:"bg-transparent text-segmentify-600 hover:bg-segmentify-200 hover:text-primary",link:"text-segmentify-600 underline-offset-4 hover:underline",action:"bg-neutral-700 disabled:bg-neutral-700 disabled:opacity-50 rounded-md text-white hover:bg-neutral-800 focus-visible:ring-neutral-500",paginationActive:"bg-transparent text-black-250",paginationInactive:"bg-segmentify-300 text-segmentify-600 hover:text-segmentify-700 pointer-events-none"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"primary",size:"default"}}),VR=So("text-primary text-base font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{default:"text-black-950 text-sm"}},defaultVariants:{variant:"default"}}),HR=So("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border border-solid border-primary bg-segmentify-200 text-primary",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"border-transparent bg-green-400 text-white hover:bg-green-400/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",subtle:"border-0 bg-segmentify-100 text-primary"}},defaultVariants:{variant:"default"}});function $R({className:e,variant:t,asChild:n=!1,...r}){const o=n?Cn:"span";return y.jsx(o,{"data-slot":"badge",className:D(HR({variant:t}),e),...r})}function zR({...e}){return y.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Io({className:e,variant:t="primary",size:n="default",asChild:r=!1,...o}){const a=r?Cn:"button";return y.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:D(zu({variant:t,size:n,className:e})),...o})}function XR(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const YR={},$r={};function Mn(e,t){try{const r=(YR[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in $r?$r[r]:Wp(r,r.split(":"))}catch{if(e in $r)return $r[e];const n=e?.match(ZR);return n?Wp(e,n.slice(1)):NaN}}const ZR=/([+-]\d\d):?(\d\d)?/;function Wp(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return $r[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Ht extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Mn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ny(this),Xu(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ht(...n,t):new Ht(Date.now(),t)}withTimeZone(t){return new Ht(+this,t)}getTimezoneOffset(){const t=-Mn(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Xu(this),+this}[Symbol.for("constructDateFrom")](t){return new Ht(+new Date(t),this.timeZone)}}const Vp=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Vp.test(e))return;const t=e.replace(Vp,"$1UTC");Ht.prototype[t]&&(e.startsWith("get")?Ht.prototype[e]=function(){return this.internal[t]()}:(Ht.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),qR(this),+this},Ht.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Xu(this),+this}))});function Xu(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Mn(e.timeZone,e)*60))}function qR(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ny(e)}function Ny(e){const t=Mn(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),i=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const l=new Date(+e);l.setUTCSeconds(0);const u=o>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-(Mn(e.timeZone,e)*60))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));const f=Mn(e.timeZone,e),g=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset()-g,h=g!==n,v=m-c;if(h&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const x=Mn(e.timeZone,e),w=x>0?Math.floor(x):Math.ceil(x),C=g-w;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class Qe extends Ht{static tz(t,...n){return n.length?new Qe(...n,t):new Qe(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${XR(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Qe(+this,t)}[Symbol.for("constructDateFrom")](t){return new Qe(+new Date(t),this.timeZone)}}const Hp=5,UR=4;function JR(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Hp*7-1);return t.getMonth(e)===t.getMonth(a)?Hp:UR}function ky(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function KR(e,t){const n=ky(e,t),r=JR(e,t);return t.addDays(n,r*7-1)}const Fy={...rr,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(i,s)=>_n(i,s,{locale:rr,...n});let a=o(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,a)=>_n(o,a,{locale:rr,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(i,s)=>_n(i,s,{locale:rr,...n});let a=o(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,a)=>_n(o,a,{locale:rr,...t}),r(e,"cccc")}}};class gt{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Qe.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,a)=>this.overrides?.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new Qe(r,o,a,this.options.timeZone):new Date(r,o,a),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):gy(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):by(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):UE(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):JE(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Ud(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):wy(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):nA(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):aA(r),a=new Set(o.map(s=>this.getYear(s)));if(a.size===o.length)return o;const i=[];return a.forEach(s=>{i.push(new Date(s,0,1))}),i},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):KR(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):iA(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):tA(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Iy(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):oA(r),this.format=(r,o,a)=>{const i=this.overrides?.format?this.overrides.format(r,o,this.options):_n(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(i):i},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Jd(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):rR(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):oR(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Kd(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):aR(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):iR(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):yy(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):eA(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):sR(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):cR(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):KE(r),this.min=r=>this.overrides?.min?this.overrides.min(r):QE(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):lR(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):uR(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):ky(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):no(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):to(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):rA(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):dr(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Sy(r),this.options={locale:Fy,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&>.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n?.code;if(a&>.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const i=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,i)}}gt.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Jt=new gt;class By{constructor(t,n,r=Jt){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class QR{constructor(t,n){this.date=t,this.weeks=n}}class eP{constructor(t,n){this.days=n,this.weekNumber=t}}function tP(e){return E.createElement("button",{...e})}function nP(e){return E.createElement("span",{...e})}function rP(e){const{size:t=24,orientation:n="left",className:r}=e;return E.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&E.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&E.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&E.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&E.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function oP(e){const{day:t,modifiers:n,...r}=e;return E.createElement("td",{...r})}function aP(e){const{day:t,modifiers:n,...r}=e,o=E.useRef(null);return E.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),E.createElement("button",{ref:o,...r})}var le;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(le||(le={}));var Me;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Me||(Me={}));var Ot;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ot||(Ot={}));var ft;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ft||(ft={}));function iP(e){const{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[le.Dropdown],n].join(" "),s=t?.find(({value:c})=>c===a.value);return E.createElement("span",{"data-disabled":a.disabled,className:o[le.DropdownRoot]},E.createElement(r.Select,{className:i,...a},t?.map(({value:c,label:l,disabled:u})=>E.createElement(r.Option,{key:c,value:c,disabled:u},l))),E.createElement("span",{className:o[le.CaptionLabel],"aria-hidden":!0},s?.label,E.createElement(r.Chevron,{orientation:"down",size:18,className:o[le.Chevron]})))}function sP(e){return E.createElement("div",{...e})}function cP(e){return E.createElement("div",{...e})}function lP(e){const{calendarMonth:t,displayIndex:n,...r}=e;return E.createElement("div",{...r},e.children)}function uP(e){const{calendarMonth:t,displayIndex:n,...r}=e;return E.createElement("div",{...r})}function dP(e){return E.createElement("table",{...e})}function fP(e){return E.createElement("div",{...e})}const jy=E.createContext(void 0);function Eo(){const e=E.useContext(jy);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function pP(e){const{components:t}=Eo();return E.createElement(t.Dropdown,{...e})}function mP(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Eo(),u=E.useCallback(f=>{o&&n?.(f)},[o,n]),d=E.useCallback(f=>{r&&t?.(f)},[r,t]);return E.createElement("nav",{...a},E.createElement(i.PreviousMonthButton,{type:"button",className:s[le.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:d},E.createElement(i.Chevron,{disabled:r?void 0:!0,className:s[le.Chevron],orientation:"left"})),E.createElement(i.NextMonthButton,{type:"button",className:s[le.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":l(o),onClick:u},E.createElement(i.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[le.Chevron]})))}function hP(e){const{components:t}=Eo();return E.createElement(t.Button,{...e})}function gP(e){return E.createElement("option",{...e})}function bP(e){const{components:t}=Eo();return E.createElement(t.Button,{...e})}function vP(e){const{rootRef:t,...n}=e;return E.createElement("div",{...n,ref:t})}function yP(e){return E.createElement("select",{...e})}function xP(e){const{week:t,...n}=e;return E.createElement("tr",{...n})}function wP(e){return E.createElement("th",{...e})}function CP(e){return E.createElement("thead",{"aria-hidden":!0},E.createElement("tr",{...e}))}function SP(e){const{week:t,...n}=e;return E.createElement("th",{...n})}function IP(e){return E.createElement("th",{...e})}function EP(e){return E.createElement("tbody",{...e})}function AP(e){const{components:t}=Eo();return E.createElement(t.Dropdown,{...e})}const RP=Object.freeze(Object.defineProperty({__proto__:null,Button:tP,CaptionLabel:nP,Chevron:rP,Day:oP,DayButton:aP,Dropdown:iP,DropdownNav:sP,Footer:cP,Month:lP,MonthCaption:uP,MonthGrid:dP,Months:fP,MonthsDropdown:pP,Nav:mP,NextMonthButton:hP,Option:gP,PreviousMonthButton:bP,Root:vP,Select:yP,Week:xP,WeekNumber:SP,WeekNumberHeader:IP,Weekday:wP,Weekdays:CP,Weeks:EP,YearsDropdown:AP},Symbol.toStringTag,{value:"Module"}));function cn(e,t,n=!1,r=Jt){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!n&&o?s(o,t):!1}function ef(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function oi(e){return!!(e&&typeof e=="object"&&"from"in e)}function tf(e){return!!(e&&typeof e=="object"&&"after"in e)}function nf(e){return!!(e&&typeof e=="object"&&"before"in e)}function Gy(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Ly(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ln(e,t,n=Jt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(Ly(s,n))return s.some(c=>o(e,c));if(oi(s))return cn(s,e,!1,n);if(Gy(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(ef(s)){const c=a(s.before,e),l=a(s.after,e),u=c>0,d=l<0;return i(s.before,s.after)?d&&u:u||d}return tf(s)?a(e,s.after)>0:nf(s)?a(s.before,e)>0:typeof s=="function"?s(e):!1})}function PP(e,t,n,r,o){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=o.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:g,isBefore:b,endOfMonth:m,isAfter:h}=o,v=n&&g(n),x=r&&m(r),w={[Me.focused]:[],[Me.outside]:[],[Me.disabled]:[],[Me.hidden]:[],[Me.today]:[]},C={};for(const S of e){const{date:A,displayMonth:I}=S,R=!!(I&&!f(A,I)),P=!!(v&&b(A,v)),M=!!(x&&h(A,x)),T=!!(a&&ln(A,a,o)),B=!!(i&&ln(A,i,o))||P||M||!l&&!c&&R||l&&c===!1&&R,O=d(A,u);R&&w.outside.push(S),T&&w.disabled.push(S),B&&w.hidden.push(S),O&&w.today.push(S),s&&Object.keys(s).forEach(L=>{const W=s?.[L];W&&ln(A,W,o)&&(C[L]?C[L].push(S):C[L]=[S])})}return S=>{const A={[Me.focused]:!1,[Me.disabled]:!1,[Me.hidden]:!1,[Me.outside]:!1,[Me.today]:!1},I={};for(const R in w){const P=w[R];A[R]=P.some(M=>M===S)}for(const R in C)I[R]=C[R].some(P=>P===S);return{...A,...I}}}function OP(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[Me[a]]?o.push(t[Me[a]]):t[Ot[a]]&&o.push(t[Ot[a]]),o),[t[le.Day]])}function TP(e){return{...RP,...e}}function _P(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function rf(){const e={};for(const t in le)e[le[t]]=`rdp-${le[t]}`;for(const t in Me)e[Me[t]]=`rdp-${Me[t]}`;for(const t in Ot)e[Ot[t]]=`rdp-${Ot[t]}`;for(const t in ft)e[ft[t]]=`rdp-${ft[t]}`;return e}function Wy(e,t,n){return(n??new gt(t)).formatMonthYear(e)}const MP=Wy;function DP(e,t,n){return(n??new gt(t)).format(e,"d")}function NP(e,t=Jt){return t.format(e,"LLLL")}function kP(e,t,n){return(n??new gt(t)).format(e,"cccccc")}function FP(e,t=Jt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function BP(){return""}function Vy(e,t=Jt){return t.format(e,"yyyy")}const jP=Vy,GP=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Wy,formatDay:DP,formatMonthCaption:MP,formatMonthDropdown:NP,formatWeekNumber:FP,formatWeekNumberHeader:BP,formatWeekdayName:kP,formatYearCaption:jP,formatYearDropdown:Vy},Symbol.toStringTag,{value:"Module"}));function LP(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...GP,...e}}function of(e,t,n,r){let o=(r??new gt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const WP=of;function af(e,t,n){return(n??new gt(t)).formatMonthYear(e)}const VP=af;function Hy(e,t,n,r){let o=(r??new gt(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function $y(e){return"Choose the Month"}function zy(){return""}const HP="Go to the Next Month";function Xy(e,t){return HP}function Yy(e){return"Go to the Previous Month"}function Zy(e,t,n){return(n??new gt(t)).format(e,"cccc")}function qy(e,t){return`Week ${e}`}function Uy(e){return"Week Number"}function Jy(e){return"Choose the Year"}const $P=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:VP,labelDay:WP,labelDayButton:of,labelGrid:af,labelGridcell:Hy,labelMonthDropdown:$y,labelNav:zy,labelNext:Xy,labelPrevious:Yy,labelWeekNumber:qy,labelWeekNumberHeader:Uy,labelWeekday:Zy,labelYearDropdown:Jy},Symbol.toStringTag,{value:"Module"})),At=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function zP(e,t){const n=t.locale?.labels??{};return{...$P,...e??{},labelDayButton:At(of,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:At($y,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:At(Xy,e?.labelNext,n.labelNext),labelPrevious:At(Yy,e?.labelPrevious,n.labelPrevious),labelWeekNumber:At(qy,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:At(Jy,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:At(af,e?.labelGrid,n.labelGrid),labelGridcell:At(Hy,e?.labelGridcell,n.labelGridcell),labelNav:At(zy,e?.labelNav,n.labelNav),labelWeekNumberHeader:At(Uy,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:At(Zy,e?.labelWeekday,n.labelWeekday)}}function XP(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=o;return c({start:i(e),end:s(e)}).map(f=>{const g=r.formatMonthDropdown(f,o),b=l(f),m=t&&f<a(t)||n&&f>a(n)||!1;return{value:b,label:g,disabled:m}})}function YP(e,t={},n={}){let r={...t?.[le.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function ZP(e,t,n,r){const o=r??e.today(),a=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),i=[];for(let s=0;s<7;s++){const c=e.addDays(a,s);i.push(c)}return i}function qP(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:i,eachYearOfInterval:s,getYear:c}=r,l=a(e),u=i(t),d=s({start:l,end:u});return o&&d.reverse(),d.map(f=>{const g=n.formatYearDropdown(f,r);return{value:c(f),label:g,disabled:!1}})}function UP(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,a=s=>{const c=typeof s=="number"||typeof s=="string"?new Date(s):s;return new Qe(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},i=s=>{const c=a(s);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>a(Qe.tz(e)),newDate:(s,c,l)=>new Qe(s,c,l,12,0,0,e),startOfDay:s=>a(s),startOfWeek:(s,c)=>{const l=a(s),u=c?.weekStartsOn??o,d=(l.getDay()-u+7)%7;return l.setDate(l.getDate()-d),l},startOfISOWeek:s=>{const c=a(s),l=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-l),c},startOfMonth:s=>{const c=a(s);return c.setDate(1),c},startOfYear:s=>{const c=a(s);return c.setMonth(0,1),c},endOfWeek:(s,c)=>{const l=a(s),f=(((c?.weekStartsOn??o)+6)%7-l.getDay()+7)%7;return l.setDate(l.getDate()+f),l},endOfISOWeek:s=>{const c=a(s),l=(7-c.getDay())%7;return c.setDate(c.getDate()+l),c},endOfMonth:s=>{const c=a(s);return c.setMonth(c.getMonth()+1,0),c},endOfYear:s=>{const c=a(s);return c.setMonth(11,31),c},eachMonthOfInterval:s=>{const c=a(s.start),l=a(s.end),u=[],d=new Qe(c.getFullYear(),c.getMonth(),1,12,0,0,e),f=l.getFullYear()*12+l.getMonth();for(;d.getFullYear()*12+d.getMonth()<=f;)u.push(new Qe(d,e)),d.setMonth(d.getMonth()+1,1);return u},addDays:(s,c)=>{const l=a(s);return l.setDate(l.getDate()+c),l},addWeeks:(s,c)=>{const l=a(s);return l.setDate(l.getDate()+c*7),l},addMonths:(s,c)=>{const l=a(s);return l.setMonth(l.getMonth()+c),l},addYears:(s,c)=>{const l=a(s);return l.setFullYear(l.getFullYear()+c),l},eachYearOfInterval:s=>{const c=a(s.start),l=a(s.end),u=[],d=new Qe(c.getFullYear(),0,1,12,0,0,e);for(;d.getFullYear()<=l.getFullYear();)u.push(new Qe(d,e)),d.setFullYear(d.getFullYear()+1,0,1);return u},getWeek:(s,c)=>{const l=i(s);return Kd(l,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const c=i(s);return Jd(c)},differenceInCalendarDays:(s,c)=>{const l=i(s),u=i(c);return Ud(l,u)},differenceInCalendarMonths:(s,c)=>{const l=i(s),u=i(c);return wy(l,u)}}}const Ao=e=>e instanceof HTMLElement?e:null,ss=e=>[...e.querySelectorAll("[data-animated-month]")??[]],JP=e=>Ao(e.querySelector("[data-animated-month]")),cs=e=>Ao(e.querySelector("[data-animated-caption]")),ls=e=>Ao(e.querySelector("[data-animated-weeks]")),KP=e=>Ao(e.querySelector("[data-animated-nav]")),QP=e=>Ao(e.querySelector("[data-animated-weekdays]"));function eO(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const i=E.useRef(null),s=E.useRef(r),c=E.useRef(!1);E.useLayoutEffect(()=>{const l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;const u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[ft.caption_after_enter]:n[ft.caption_before_enter],g=d?n[ft.weeks_after_enter]:n[ft.weeks_before_enter],b=i.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(ss(m).forEach(w=>{if(!(w instanceof HTMLElement))return;const C=JP(w);C&&w.contains(C)&&w.removeChild(C);const S=cs(w);S&&S.classList.remove(f);const A=ls(w);A&&A.classList.remove(g)}),i.current=m):i.current=null,c.current||u||o)return;const h=b instanceof HTMLElement?ss(b):[],v=ss(e.current);if(v?.every(x=>x instanceof HTMLElement)&&h&&h.every(x=>x instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const x=KP(e.current);x&&(x.style.zIndex="1"),v.forEach((w,C)=>{const S=h[C];if(!S)return;w.style.position="relative",w.style.overflow="hidden";const A=cs(w);A&&A.classList.add(f);const I=ls(w);I&&I.classList.add(g);const R=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),A&&A.classList.remove(f),I&&I.classList.remove(g),w.style.position="",w.style.overflow="",w.contains(S)&&w.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const P=QP(S);P&&(P.style.opacity="0");const M=cs(S);M&&(M.classList.add(d?n[ft.caption_before_exit]:n[ft.caption_after_exit]),M.addEventListener("animationend",R));const T=ls(S);T&&T.classList.add(d?n[ft.weeks_before_exit]:n[ft.weeks_after_exit]),w.insertBefore(S,w.firstChild)})}})}function tO(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:g,endOfMonth:b,endOfWeek:m,isAfter:h,startOfBroadcastWeek:v,startOfISOWeek:x,startOfWeek:w}=r,C=c?v(o,r):i?x(o):w(o),S=c?f(a):i?g(b(a)):m(b(a)),A=t&&(c?f(t):i?g(t):m(t)),I=A&&h(S,A)?A:S,R=u(I,C),P=d(a,o)+1,M=[];for(let O=0;O<=R;O++){const L=l(C,O);M.push(L)}const B=(c?35:42)*P;if(s&&M.length<B){const O=B-M.length;for(let L=0;L<O;L++){const W=l(M[M.length-1],1);M.push(W)}}return M}function nO(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,i)=>a.concat(i.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function rO(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let i=0;i<o;i++){const s=r.addMonths(e,i);if(t&&s>t)break;a.push(s)}return a}function $p(e,t,n,r){const{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:s=1}=e;let c=o||a||i;const{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;if(n&&l(n,c)<s-1){const f=-1*(s-1);c=u(n,f)}return t&&l(c,t)<0&&(c=t),d(c)}function oO(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:g}=r,b=e.reduce((m,h)=>{const v=n.broadcastCalendar?d(h,r):n.ISOWeek?f(h):g(h),x=n.broadcastCalendar?a(h):n.ISOWeek?i(s(h)):c(s(h)),w=t.filter(I=>I>=v&&I<=x),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&w.length<C){const I=t.filter(R=>{const P=C-w.length;return R>x&&R<=o(x,P)});w.push(...I)}const S=w.reduce((I,R)=>{const P=n.ISOWeek?l(R):u(R),M=I.find(B=>B.weekNumber===P),T=new By(R,h,r);return M?M.days.push(T):I.push(new eP(P,[T])),I},[]),A=new QR(h,S);return m.push(A),m},[]);return n.reverseMonths?b.reverse():b}function aO(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:g,fromMonth:b,toMonth:m}=e;!n&&b&&(n=b),!n&&f&&(n=t.newDate(f,0,1)),!r&&m&&(r=m),!r&&g&&(r=u(g,11,31));const h=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=i(n):f?n=u(f,0,1):!n&&h&&(n=o(c(e.today??d(),-100))),r?r=s(r):g?r=u(g,11,31):!r&&h&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function iO(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,l=o?a:1,u=i(e);if(!t)return s(u,l);if(!(c(t,e)<a))return s(u,l)}function sO(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,l=o?a??1:1,u=i(e);if(!t)return s(u,-l);if(!(c(u,t)<=0))return s(u,-l)}function cO(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function ai(e,t){const[n,r]=E.useState(e);return[t===void 0?n:t,r]}function lO(e,t){const[n,r]=aO(e,t),{startOfMonth:o,endOfMonth:a}=t,i=$p(e,n,r,t),[s,c]=ai(i,e.month?i:void 0);E.useEffect(()=>{const C=$p(e,n,r,t);c(C)},[e.timeZone]);const{months:l,weeks:u,days:d,previousMonth:f,nextMonth:g}=E.useMemo(()=>{const C=rO(s,r,{numberOfMonths:e.numberOfMonths},t),S=tO(C,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),A=oO(C,S,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),I=cO(A),R=nO(A),P=sO(s,n,e,t),M=iO(s,r,e,t);return{months:A,weeks:I,days:R,previousMonth:P,nextMonth:M}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:b,onMonthChange:m}=e,h=C=>u.some(S=>S.days.some(A=>A.isEqualTo(C))),v=C=>{if(b)return;let S=o(C);n&&S<o(n)&&(S=o(n)),r&&S>o(r)&&(S=o(r)),c(S),m?.(S)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:g,goToMonth:v,goToDay:C=>{h(C)||v(C.date)}}}var Gt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Gt||(Gt={}));function zp(e){return!e[Me.disabled]&&!e[Me.hidden]&&!e[Me.outside]}function uO(e,t,n,r){let o,a=-1;for(const i of e){const s=t(i);zp(s)&&(s[Me.focused]&&a<Gt.FocusedModifier?(o=i,a=Gt.FocusedModifier):r?.isEqualTo(i)&&a<Gt.LastFocused?(o=i,a=Gt.LastFocused):n(i.date)&&a<Gt.Selected?(o=i,a=Gt.Selected):s[Me.today]&&a<Gt.Today&&(o=i,a=Gt.Today))}return o||(o=e.find(i=>zp(t(i)))),o}function dO(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:g,endOfISOWeek:b,endOfWeek:m,max:h,min:v,startOfBroadcastWeek:x,startOfISOWeek:w,startOfWeek:C}=i;let A={day:l,week:d,month:u,year:f,startOfWeek:I=>c?x(I,i):s?w(I):C(I),endOfWeek:I=>c?g(I):s?b(I):m(I)}[e](n,t==="after"?1:-1);return t==="before"&&r?A=h([r,A]):t==="after"&&o&&(A=v([o,A])),A}function Ky(e,t,n,r,o,a,i,s=0){if(s>365)return;const c=dO(e,t,n.date,r,o,a,i),l=!!(a.disabled&&ln(c,a.disabled,i)),u=!!(a.hidden&&ln(c,a.hidden,i)),d=c,f=new By(c,d,i);return!l&&!u?f:Ky(e,t,f,r,o,a,i,s+1)}function fO(e,t,n,r,o){const{autoFocus:a}=e,[i,s]=E.useState(),c=uO(t.days,n,r||(()=>!1),i),[l,u]=E.useState(a?c:void 0);return{isFocusTarget:m=>!!c?.isEqualTo(m),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(m,h)=>{if(!l)return;const v=Ky(m,h,l,t.navStart,t.navEnd,e,o);v&&(e.disableNavigation&&!t.days.some(w=>w.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function pO(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=ai(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t,l=g=>s?.some(b=>c(b,g))??!1,{min:u,max:d}=e;return{selected:s,select:(g,b,m)=>{let h=[...s??[]];if(l(g)){if(s?.length===u||r&&s?.length===1)return;h=s?.filter(v=>!c(v,g))}else s?.length===d?h=[g]:h=[...h,g];return o||i(h),o?.(h,g,b,m),h},isSelected:l}}function mO(e,t,n=0,r=0,o=!1,a=Jt){const{from:i,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a;let d;if(!i&&!s)d={from:e,to:n>0?void 0:e};else if(i&&!s)c(i,e)?n===0?d={from:i,to:e}:o?d={from:i,to:void 0}:d=void 0:u(e,i)?d={from:e,to:i}:d={from:i,to:e};else if(i&&s)if(c(i,e)&&c(s,e))o?d={from:i,to:s}:d=void 0;else if(c(i,e))d={from:i,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,i))d={from:e,to:s};else if(l(e,i))d={from:i,to:e};else if(l(e,s))d={from:i,to:e};else throw new Error("Invalid range");if(d?.from&&d?.to){const f=a.differenceInCalendarDays(d.to,d.from);r>0&&f>r?d={from:e,to:void 0}:n>1&&f<n&&(d={from:e,to:void 0})}return d}function hO(e,t,n=Jt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let s=0;s<=i;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Xp(e,t,n=Jt){return cn(e,t.from,!1,n)||cn(e,t.to,!1,n)||cn(t,e.from,!1,n)||cn(t,e.to,!1,n)}function gO(e,t,n=Jt){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?cn(e,s,!1,n):Ly(s,n)?s.some(c=>cn(e,c,!1,n)):oi(s)?s.from&&s.to?Xp(e,{from:s.from,to:s.to},n):!1:Gy(s)?hO(e,s.dayOfWeek,n):ef(s)?n.isAfter(s.before,s.after)?Xp(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):ln(e.from,s,n)||ln(e.to,s,n):tf(s)||nf(s)?ln(e.from,s,n)||ln(e.to,s,n):!1))return!0;const i=r.filter(s=>typeof s=="function");if(i.length){let s=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let l=0;l<=c;l++){if(i.some(u=>u(s)))return!0;s=n.addDays(s,1)}}return!1}function bO(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,c]=ai(o,i?o:void 0),l=i?o:s;return{selected:l,select:(f,g,b)=>{const{min:m,max:h}=e,v=f?mO(f,l,m,h,a,t):void 0;return r&&n&&v?.from&&v.to&&gO({from:v.from,to:v.to},n,t)&&(v.from=f,v.to=void 0),i||c(v),i?.(v,f,g,b),v},isSelected:f=>l&&cn(l,f,!1,t)}}function vO(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=ai(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t;return{selected:s,select:(d,f,g)=>{let b=d;return!r&&s&&s&&c(d,s)&&(b=void 0),o||i(b),o?.(b,d,f,g),b},isSelected:d=>s?c(s,d):!1}}function yO(e,t){const n=vO(e,t),r=pO(e,t),o=bO(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function wt(e,t){return e instanceof Qe&&e.timeZone===t?e:new Qe(e,t)}function Kn(e,t,n){return wt(e,t)}function Yp(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Kn(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Kn(r,t):r):oi(e)?{...e,from:e.from?wt(e.from,t):e.from,to:e.to?wt(e.to,t):e.to}:ef(e)?{before:Kn(e.before,t),after:Kn(e.after,t)}:tf(e)?{after:Kn(e.after,t)}:nf(e)?{before:Kn(e.before,t)}:e}function us(e,t,n){return e&&(Array.isArray(e)?e.map(r=>Yp(r,t)):Yp(e,t))}function xO(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=wt(t.today,n)),t.month&&(t.month=wt(t.month,n)),t.defaultMonth&&(t.defaultMonth=wt(t.defaultMonth,n)),t.startMonth&&(t.startMonth=wt(t.startMonth,n)),t.endMonth&&(t.endMonth=wt(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=wt(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Z=>wt(Z,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?wt(t.selected.from,n):t.selected.from,to:t.selected.to?wt(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=us(t.disabled,n)),t.hidden!==void 0&&(t.hidden=us(t.hidden,n)),t.modifiers)){const Z={};Object.keys(t.modifiers).forEach(ce=>{Z[ce]=us(t.modifiers?.[ce],n)}),t.modifiers=Z}const{components:r,formatters:o,labels:a,dateLib:i,locale:s,classNames:c}=E.useMemo(()=>{const Z={...Fy,...t.locale},ce=t.broadcastCalendar?1:t.weekStartsOn,K=t.noonSafe&&t.timeZone?UP(t.timeZone,{weekStartsOn:ce,locale:Z}):void 0,ne=t.dateLib&&K?{...K,...t.dateLib}:t.dateLib??K,ve=new gt({locale:Z,weekStartsOn:ce,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ne);return{dateLib:ve,components:TP(t.components),formatters:LP(t.formatters),labels:zP(t.labels,ve.options),locale:Z,classNames:{...rf(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:i.today()});const{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:g,onDayClick:b,onDayFocus:m,onDayKeyDown:h,onDayMouseEnter:v,onDayMouseLeave:x,onNextClick:w,onPrevClick:C,showWeekNumber:S,styles:A}=t,{formatCaption:I,formatDay:R,formatMonthDropdown:P,formatWeekNumber:M,formatWeekNumberHeader:T,formatWeekdayName:B,formatYearDropdown:O}=o,L=lO(t,i),{days:W,months:j,navStart:$,navEnd:N,previousMonth:V,nextMonth:U,goToMonth:ee}=L,k=PP(W,t,$,N,i),{isSelected:H,select:Y,selected:z}=yO(t,i)??{},{blur:J,focused:G,isFocusTarget:q,moveFocus:ae,setFocused:re}=fO(t,L,k,H??(()=>!1),i),{labelDayButton:te,labelGridcell:F,labelGrid:de,labelMonthDropdown:_,labelNav:Q,labelPrevious:ge,labelNext:xe,labelWeekday:Te,labelWeekNumber:ye,labelWeekNumberHeader:Se,labelYearDropdown:tt}=a,Ve=E.useMemo(()=>ZP(i,t.ISOWeek,t.broadcastCalendar,t.today),[i,t.ISOWeek,t.broadcastCalendar,t.today]),Fe=u!==void 0||b!==void 0,Ye=E.useCallback(()=>{V&&(ee(V),C?.(V))},[V,ee,C]),Ze=E.useCallback(()=>{U&&(ee(U),w?.(U))},[ee,U,w]),rt=E.useCallback((Z,ce)=>K=>{K.preventDefault(),K.stopPropagation(),re(Z),!ce.disabled&&(Y?.(Z.date,ce,K),b?.(Z.date,ce,K))},[Y,b,re]),ot=E.useCallback((Z,ce)=>K=>{re(Z),m?.(Z.date,ce,K)},[m,re]),It=E.useCallback((Z,ce)=>K=>{J(),g?.(Z.date,ce,K)},[J,g]),Bt=E.useCallback((Z,ce)=>K=>{const ne={ArrowLeft:[K.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[K.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[K.shiftKey?"year":"week","after"],ArrowUp:[K.shiftKey?"year":"week","before"],PageUp:[K.shiftKey?"year":"month","before"],PageDown:[K.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ne[K.key]){K.preventDefault(),K.stopPropagation();const[ve,me]=ne[K.key];ae(ve,me)}h?.(Z.date,ce,K)},[ae,h,t.dir]),lt=E.useCallback((Z,ce)=>K=>{v?.(Z.date,ce,K)},[v]),rn=E.useCallback((Z,ce)=>K=>{x?.(Z.date,ce,K)},[x]),ut=E.useCallback(Z=>ce=>{const K=Number(ce.target.value),ne=i.setMonth(i.startOfMonth(Z),K);ee(ne)},[i,ee]),Ue=E.useCallback(Z=>ce=>{const K=Number(ce.target.value),ne=i.setYear(i.startOfMonth(Z),K);ee(ne)},[i,ee]),{className:on,style:An}=E.useMemo(()=>({className:[c[le.Root],t.className].filter(Boolean).join(" "),style:{...A?.[le.Root],...t.style}}),[c,t.className,t.style,A]),Mr=_P(t),qn=E.useRef(null);eO(qn,!!t.animate,{classNames:c,months:j,focused:G,dateLib:i});const Dr={dayPickerProps:t,selected:z,select:Y,isSelected:H,months:j,nextMonth:U,previousMonth:V,goToMonth:ee,getModifiers:k,components:r,classNames:c,styles:A,labels:a,formatters:o};return E.createElement(jy.Provider,{value:Dr},E.createElement(r.Root,{rootRef:t.animate?qn:void 0,className:on,style:An,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Mr},E.createElement(r.Months,{className:c[le.Months],style:A?.[le.Months]},!t.hideNavigation&&!d&&E.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[le.Nav],style:A?.[le.Nav],"aria-label":Q(),onPreviousClick:Ye,onNextClick:Ze,previousMonth:V,nextMonth:U}),j.map((Z,ce)=>E.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[le.Month],style:A?.[le.Month],key:ce,displayIndex:ce,calendarMonth:Z},d==="around"&&!t.hideNavigation&&ce===0&&E.createElement(r.PreviousMonthButton,{type:"button",className:c[le.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":ge(V),onClick:Ye,"data-animated-button":t.animate?"true":void 0},E.createElement(r.Chevron,{disabled:V?void 0:!0,className:c[le.Chevron],orientation:t.dir==="rtl"?"right":"left"})),E.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[le.MonthCaption],style:A?.[le.MonthCaption],calendarMonth:Z,displayIndex:ce},l?.startsWith("dropdown")?E.createElement(r.DropdownNav,{className:c[le.Dropdowns],style:A?.[le.Dropdowns]},(()=>{const K=l==="dropdown"||l==="dropdown-months"?E.createElement(r.MonthsDropdown,{key:"month",className:c[le.MonthsDropdown],"aria-label":_(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:ut(Z.date),options:XP(Z.date,$,N,o,i),style:A?.[le.Dropdown],value:i.getMonth(Z.date)}):E.createElement("span",{key:"month"},P(Z.date,i)),ne=l==="dropdown"||l==="dropdown-years"?E.createElement(r.YearsDropdown,{key:"year",className:c[le.YearsDropdown],"aria-label":tt(i.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ue(Z.date),options:qP($,N,o,i,!!t.reverseYears),style:A?.[le.Dropdown],value:i.getYear(Z.date)}):E.createElement("span",{key:"year"},O(Z.date,i));return i.getMonthYearOrder()==="year-first"?[ne,K]:[K,ne]})(),E.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},I(Z.date,i.options,i))):E.createElement(r.CaptionLabel,{className:c[le.CaptionLabel],role:"status","aria-live":"polite"},I(Z.date,i.options,i))),d==="around"&&!t.hideNavigation&&ce===f-1&&E.createElement(r.NextMonthButton,{type:"button",className:c[le.NextMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":xe(U),onClick:Ze,"data-animated-button":t.animate?"true":void 0},E.createElement(r.Chevron,{disabled:U?void 0:!0,className:c[le.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ce===f-1&&d==="after"&&!t.hideNavigation&&E.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[le.Nav],style:A?.[le.Nav],"aria-label":Q(),onPreviousClick:Ye,onNextClick:Ze,previousMonth:V,nextMonth:U}),E.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":de(Z.date,i.options,i)||void 0,className:c[le.MonthGrid],style:A?.[le.MonthGrid]},!t.hideWeekdays&&E.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[le.Weekdays],style:A?.[le.Weekdays]},S&&E.createElement(r.WeekNumberHeader,{"aria-label":Se(i.options),className:c[le.WeekNumberHeader],style:A?.[le.WeekNumberHeader],scope:"col"},T()),Ve.map(K=>E.createElement(r.Weekday,{"aria-label":Te(K,i.options,i),className:c[le.Weekday],key:String(K),style:A?.[le.Weekday],scope:"col"},B(K,i.options,i)))),E.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[le.Weeks],style:A?.[le.Weeks]},Z.weeks.map(K=>E.createElement(r.Week,{className:c[le.Week],key:K.weekNumber,style:A?.[le.Week],week:K},S&&E.createElement(r.WeekNumber,{week:K,style:A?.[le.WeekNumber],"aria-label":ye(K.weekNumber,{locale:s}),className:c[le.WeekNumber],scope:"row",role:"rowheader"},M(K.weekNumber,i)),K.days.map(ne=>{const{date:ve}=ne,me=k(ne);if(me[Me.focused]=!me.hidden&&!!G?.isEqualTo(ne),me[Ot.selected]=H?.(ve)||me.selected,oi(z)){const{from:Et,to:bt}=z;me[Ot.range_start]=!!(Et&&bt&&i.isSameDay(ve,Et)),me[Ot.range_end]=!!(Et&&bt&&i.isSameDay(ve,bt)),me[Ot.range_middle]=cn(z,ve,!0,i)}const Be=YP(me,A,t.modifiersStyles),dt=OP(me,c,t.modifiersClassNames),nt=!Fe&&!me.hidden?F(ve,me,i.options,i):void 0;return E.createElement(r.Day,{key:`${ne.isoDate}_${ne.displayMonthId}`,day:ne,modifiers:me,className:dt.join(" "),style:Be,role:"gridcell","aria-selected":me.selected||void 0,"aria-label":nt,"data-day":ne.isoDate,"data-month":ne.outside?ne.dateMonthId:void 0,"data-selected":me.selected||void 0,"data-disabled":me.disabled||void 0,"data-hidden":me.hidden||void 0,"data-outside":ne.outside||void 0,"data-focused":me.focused||void 0,"data-today":me.today||void 0},!me.hidden&&Fe?E.createElement(r.DayButton,{className:c[le.DayButton],style:A?.[le.DayButton],type:"button",day:ne,modifiers:me,disabled:!me.focused&&me.disabled||void 0,"aria-disabled":me.focused&&me.disabled||void 0,tabIndex:q(ne)?0:-1,"aria-label":te(ve,me,i.options,i),onClick:rt(ne,me),onBlur:It(ne,me),onFocus:ot(ne,me),onKeyDown:Bt(ne,me),onMouseEnter:lt(ne,me),onMouseLeave:rn(ne,me)},R(ve,i.options,i)):!me.hidden&&R(ne.date,i.options,i))})))))))),t.footer&&E.createElement(r.Footer,{className:c[le.Footer],style:A?.[le.Footer],role:"status","aria-live":"polite"},t.footer)))}function wO({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:a,components:i,...s}){const c=rf();return y.jsx(xO,{showOutsideDays:n,className:D("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:l=>l.toLocaleString("default",{month:"short"}),...a},classNames:{root:D("w-fit",c.root),months:D("flex gap-4 flex-col md:flex-row relative",c.months),month:D("flex flex-col w-full gap-4",c.month),nav:D("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",c.nav),button_previous:D(zu({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",c.button_previous),button_next:D(zu({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",c.button_next),month_caption:D("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",c.month_caption),dropdowns:D("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",c.dropdowns),dropdown_root:D("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",c.dropdown_root),dropdown:D("absolute bg-popover inset-0 opacity-0",c.dropdown),caption_label:D("select-none font-medium",r==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",c.caption_label),table:"w-full border-collapse",weekdays:D("flex",c.weekdays),weekday:D("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",c.weekday),week:D("flex w-full mt-2",c.week),week_number_header:D("select-none w-(--cell-size)",c.week_number_header),week_number:D("text-[0.8rem] select-none text-muted-foreground",c.week_number),day:D("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",s.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",c.day),range_start:D("rounded-l-md bg-accent",c.range_start),range_middle:D("rounded-none",c.range_middle),range_end:D("rounded-r-md bg-accent",c.range_end),today:D("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",c.today),outside:D("text-muted-foreground aria-selected:text-muted-foreground",c.outside),disabled:D("text-muted-foreground opacity-50",c.disabled),hidden:D("invisible",c.hidden),...t},components:{Root:({className:l,rootRef:u,...d})=>y.jsx("div",{"data-slot":"calendar",ref:u,className:D(l),...d}),Chevron:({className:l,orientation:u,...d})=>u==="left"?y.jsx(U1,{className:D("size-4",l),...d}):u==="right"?y.jsx(K1,{className:D("size-4",l),...d}):y.jsx(Zd,{className:D("size-4",l),...d}),DayButton:CO,WeekNumber:({children:l,...u})=>y.jsx("td",{...u,children:y.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:l})}),...i},...s})}function CO({className:e,day:t,modifiers:n,...r}){const o=rf(),a=p.useRef(null);return p.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),y.jsx(Io,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:D("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}function SO({className:e,...t}){return y.jsx("div",{"data-slot":"card",className:D("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function IO({className:e,...t}){return y.jsx("div",{"data-slot":"card-header",className:D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function EO({className:e,...t}){return y.jsx("div",{"data-slot":"card-title",className:D("leading-none font-semibold",e),...t})}function AO({className:e,...t}){return y.jsx("div",{"data-slot":"card-description",className:D("text-muted-foreground text-sm",e),...t})}function RO({className:e,...t}){return y.jsx("div",{"data-slot":"card-action",className:D("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function PO({className:e,...t}){return y.jsx("div",{"data-slot":"card-content",className:D("px-6",e),...t})}function OO({className:e,...t}){return y.jsx("div",{"data-slot":"card-footer",className:D("flex items-center px-6 [.border-t]:pt-6",e),...t})}function TO(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zp(e){return TO(e)||Array.isArray(e)}function _O(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function sf(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],c=t[i];return typeof s=="function"?`${s}`==`${c}`:!Zp(s)||!Zp(c)?s===c:sf(s,c)})}function qp(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function MO(e,t){if(e.length!==t.length)return!1;const n=qp(e),r=qp(t);return n.every((o,a)=>{const i=r[a];return sf(o,i)})}function cf(e){return typeof e=="number"}function Yu(e){return typeof e=="string"}function ii(e){return typeof e=="boolean"}function Up(e){return Object.prototype.toString.call(e)==="[object Object]"}function De(e){return Math.abs(e)}function lf(e){return Math.sign(e)}function eo(e,t){return De(e-t)}function DO(e,t){if(e===0||t===0||De(e)<=De(t))return 0;const n=eo(De(e),De(t));return De(n/e)}function NO(e){return Math.round(e*100)/100}function ro(e){return oo(e).map(Number)}function Tt(e){return e[Ro(e)]}function Ro(e){return Math.max(0,e.length-1)}function uf(e,t){return t===Ro(e)}function Jp(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function oo(e){return Object.keys(e)}function Qy(e,t){return[e,t].reduce((n,r)=>(oo(r).forEach(o=>{const a=n[o],i=r[o],s=Up(a)&&Up(i);n[o]=s?Qy(a,i):i}),n),{})}function Zu(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function kO(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(c){return a(c)/2}function a(c){return t-c}function i(c,l){return Yu(e)?n[e](c):e(t,c,l)}return{measure:i}}function ao(){let e=[];function t(o,a,i,s={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(a,i,s),c=()=>o.removeEventListener(a,i,s);else{const l=o;l.addListener(i),c=()=>l.removeListener(i)}return e.push(c),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function FO(e,t,n,r){const o=ao(),a=1e3/60;let i=null,s=0,c=0;function l(){o.add(e,"visibilitychange",()=>{e.hidden&&b()})}function u(){g(),o.clear()}function d(h){if(!c)return;i||(i=h,n(),n());const v=h-i;for(i=h,s+=v;s>=a;)n(),s-=a;const x=s/a;r(x),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function g(){t.cancelAnimationFrame(c),i=null,s=0,c=0}function b(){i=null,s=0}return{init:l,destroy:u,start:f,stop:g,update:n,render:r}}function BO(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",i=!r&&n?-1:1,s=u(),c=d();function l(b){const{height:m,width:h}=b;return r?m:h}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(b){return b*i}return{scroll:o,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function Nn(e=0,t=0){const n=De(e-t);function r(l){return l<e}function o(l){return l>t}function a(l){return r(l)||o(l)}function i(l){return a(l)?r(l)?e:t:l}function s(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function e0(e,t,n){const{constrain:r}=Nn(0,e),o=e+1;let a=i(t);function i(f){return n?De((o+f)%o):r(f)}function s(){return a}function c(f){return a=i(f),d}function l(f){return u().set(s()+f)}function u(){return e0(e,s(),n)}const d={get:s,set:c,add:l,clone:u};return d}function jO(e,t,n,r,o,a,i,s,c,l,u,d,f,g,b,m,h,v,x){const{cross:w,direction:C}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},I=ao(),R=ao(),P=Nn(50,225).constrain(g.measure(20)),M={mouse:300,touch:400},T={mouse:500,touch:600},B=b?43:25;let O=!1,L=0,W=0,j=!1,$=!1,N=!1,V=!1;function U(F){if(!x)return;function de(Q){(ii(x)||x(F,Q))&&J(Q)}const _=t;I.add(_,"dragstart",Q=>Q.preventDefault(),A).add(_,"touchmove",()=>{},A).add(_,"touchend",()=>{}).add(_,"touchstart",de).add(_,"mousedown",de).add(_,"touchcancel",q).add(_,"contextmenu",q).add(_,"click",ae,!0)}function ee(){I.clear(),R.clear()}function k(){const F=V?n:t;R.add(F,"touchmove",G,A).add(F,"touchend",q).add(F,"mousemove",G,A).add(F,"mouseup",q)}function H(F){const de=F.nodeName||"";return S.includes(de)}function Y(){return(b?T:M)[V?"mouse":"touch"]}function z(F,de){const _=d.add(lf(F)*-1),Q=u.byDistance(F,!b).distance;return b||De(F)<P?Q:h&&de?Q*.5:u.byIndex(_.get(),0).distance}function J(F){const de=Zu(F,r);V=de,N=b&&de&&!F.buttons&&O,O=eo(o.get(),i.get())>=2,!(de&&F.button!==0)&&(H(F.target)||(j=!0,a.pointerDown(F),l.useFriction(0).useDuration(0),o.set(i),k(),L=a.readPoint(F),W=a.readPoint(F,w),f.emit("pointerDown")))}function G(F){if(!Zu(F,r)&&F.touches.length>=2)return q(F);const _=a.readPoint(F),Q=a.readPoint(F,w),ge=eo(_,L),xe=eo(Q,W);if(!$&&!V&&(!F.cancelable||($=ge>xe,!$)))return q(F);const Te=a.pointerMove(F);ge>m&&(N=!0),l.useFriction(.3).useDuration(.75),s.start(),o.add(C(Te)),F.preventDefault()}function q(F){const _=u.byDistance(0,!1).index!==d.get(),Q=a.pointerUp(F)*Y(),ge=z(C(Q),_),xe=DO(Q,ge),Te=B-10*xe,ye=v+xe/50;$=!1,j=!1,R.clear(),l.useDuration(Te).useFriction(ye),c.distance(ge,!b),V=!1,f.emit("pointerUp")}function ae(F){N&&(F.stopPropagation(),F.preventDefault(),N=!1)}function re(){return j}return{init:U,destroy:ee,pointerDown:re}}function GO(e,t){let r,o;function a(d){return d.timeStamp}function i(d,f){const b=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Zu(d,t)?d:d.touches[0])[b]}function s(d){return r=d,o=d,i(d)}function c(d){const f=i(d)-i(o),g=a(d)-a(r)>170;return o=d,g&&(r=d),f}function l(d){if(!r||!o)return 0;const f=i(o)-i(r),g=a(d)-a(r),b=a(d)-a(o)>170,m=f/g;return g&&!b&&De(m)>.1?m:0}return{pointerDown:s,pointerMove:c,pointerUp:l,readPoint:i}}function LO(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function WO(e){function t(r){return e*(r/100)}return{measure:t}}function VO(e,t,n,r,o,a,i){const s=[e].concat(r);let c,l,u=[],d=!1;function f(h){return o.measureSize(i.measure(h))}function g(h){if(!a)return;l=f(e),u=r.map(f);function v(x){for(const w of x){if(d)return;const C=w.target===e,S=r.indexOf(w.target),A=C?l:u[S],I=f(C?e:r[S]);if(De(I-A)>=.5){h.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(ii(a)||a(h,x))&&v(x)}),n.requestAnimationFrame(()=>{s.forEach(x=>c.observe(x))})}function b(){d=!0,c&&c.disconnect()}return{init:g,destroy:b}}function HO(e,t,n,r,o,a){let i=0,s=0,c=o,l=a,u=e.get(),d=0;function f(){const A=r.get()-e.get(),I=!c;let R=0;return I?(i=0,n.set(r),e.set(r),R=A):(n.set(e),i+=A/c,i*=l,u+=i,e.add(i),R=u-d),s=lf(R),d=u,S}function g(){const A=r.get()-t.get();return De(A)<.001}function b(){return c}function m(){return s}function h(){return i}function v(){return w(o)}function x(){return C(a)}function w(A){return c=A,S}function C(A){return l=A,S}const S={direction:m,duration:b,velocity:h,seek:f,settled:g,useBaseFriction:x,useBaseDuration:v,useFriction:C,useDuration:w};return S}function $O(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=Nn(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(g){if(!l())return;const b=e.reachedMin(t.get())?"min":"max",m=De(e[b]-t.get()),h=n.get()-t.get(),v=s.constrain(m/i);n.subtract(h*v),!g&&De(h)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(g){c=!g}return{shouldConstrain:l,constrain:u,toggleActive:d}}function zO(e,t,n,r,o){const a=Nn(-t+e,0),i=d(),s=u(),c=f();function l(b,m){return eo(b,m)<=1}function u(){const b=i[0],m=Tt(i),h=i.lastIndexOf(b),v=i.indexOf(m)+1;return Nn(h,v)}function d(){return n.map((b,m)=>{const{min:h,max:v}=a,x=a.constrain(b),w=!m,C=uf(n,m);return w?v:C||l(h,x)?h:l(v,x)?v:x}).map(b=>parseFloat(b.toFixed(3)))}function f(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return i;const{min:b,max:m}=s;return i.slice(b,m)}return{snapsContained:c,scrollContainLimit:s}}function XO(e,t,n){const r=t[0],o=n?r-e:Tt(t);return{limit:Nn(o,r)}}function YO(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=Nn(a,i);function l(f){return f===1?c(n.get()):f===-1?s(n.get()):!1}function u(f){if(!l(f))return;const g=e*(f*-1);r.forEach(b=>b.add(g))}return{loop:u}}function ZO(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function qO(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,c=d().map(t.measure),l=f(),u=g();function d(){return s(r).map(m=>Tt(m)[i]-m[0][a]).map(De)}function f(){return r.map(m=>n[a]-m[a]).map(m=>-De(m))}function g(){return s(l).map(m=>m[0]).map((m,h)=>m+c[h])}return{snaps:l,snapsAligned:u}}function UO(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:c}=r,l=u();function u(){const f=i(a),g=!e||t==="keepSnaps";return n.length===1?[a]:g?f:f.slice(s,c).map((b,m,h)=>{const v=!m,x=uf(h,m);if(v){const w=Tt(h[0])+1;return Jp(w)}if(x){const w=Ro(a)-Tt(h)[0]+1;return Jp(w,Tt(h)[0])}return b})}return{slideRegistry:l}}function JO(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function c(b){return b.concat().sort((m,h)=>De(m)-De(h))[0]}function l(b){const m=e?i(b):s(b),h=t.map((x,w)=>({diff:u(x-m,0),index:w})).sort((x,w)=>De(x.diff)-De(w.diff)),{index:v}=h[0];return{index:v,distance:m}}function u(b,m){const h=[b,b+n,b-n];if(!e)return b;if(!m)return c(h);const v=h.filter(x=>lf(x)===m);return v.length?c(v):Tt(h)-n}function d(b,m){const h=t[b]-o.get(),v=u(h,m);return{index:b,distance:v}}function f(b,m){const h=o.get()+b,{index:v,distance:x}=l(h),w=!e&&a(h);if(!m||w)return{index:v,distance:b};const C=t[v]-x,S=b+u(C,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function KO(e,t,n,r,o,a,i){function s(d){const f=d.distance,g=d.index!==t.get();a.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(d.index),i.emit("select"))}function c(d,f){const g=o.byDistance(d,f);s(g)}function l(d,f){const g=t.clone().set(d),b=o.byIndex(g.get(),f);s(b)}return{distance:c,index:l}}function QO(e,t,n,r,o,a,i,s){const c={passive:!0,capture:!0};let l=0;function u(g){if(!s)return;function b(m){if(new Date().getTime()-l>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(w=>w.includes(m));cf(x)&&(o.useDuration(0),r.index(x,0),i.emit("slideFocus"))}a.add(document,"keydown",d,!1),t.forEach((m,h)=>{a.add(m,"focus",v=>{(ii(s)||s(g,v))&&b(h)},c)})}function d(g){g.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function zr(e){let t=e;function n(){return t}function r(c){t=i(c)}function o(c){t+=i(c)}function a(c){t-=i(c)}function i(c){return cf(c)?c:c.get()}return{get:n,set:r,add:o,subtract:a}}function t0(e,t){const n=e.scroll==="x"?i:s,r=t.style;let o=null,a=!1;function i(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(a)return;const g=NO(e.direction(f));g!==o&&(r.transform=n(g),o=g)}function l(f){a=!f}function u(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function eT(e,t,n,r,o,a,i,s,c){const u=ro(o),d=ro(o).reverse(),f=v().concat(x());function g(I,R){return I.reduce((P,M)=>P-o[M],R)}function b(I,R){return I.reduce((P,M)=>g(P,R)>0?P.concat([M]):P,[])}function m(I){return a.map((R,P)=>({start:R-r[P]+.5+I,end:R+t-.5+I}))}function h(I,R,P){const M=m(R);return I.map(T=>{const B=P?0:-n,O=P?n:0,L=P?"end":"start",W=M[T][L];return{index:T,loopPoint:W,slideLocation:zr(-1),translate:t0(e,c[T]),target:()=>s.get()>W?B:O}})}function v(){const I=i[0],R=b(d,I);return h(R,n,!1)}function x(){const I=t-i[0]-1,R=b(u,I);return h(R,-n,!0)}function w(){return f.every(({index:I})=>{const R=u.filter(P=>P!==I);return g(R,t)<=.1})}function C(){f.forEach(I=>{const{target:R,translate:P,slideLocation:M}=I,T=R();T!==M.get()&&(P.to(T),M.set(T))})}function S(){f.forEach(I=>I.translate.clear())}return{canLoop:w,clear:S,loop:C,loopPoints:f}}function tT(e,t,n){let r,o=!1;function a(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{o||(ii(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function nT(e,t,n,r){const o={};let a=null,i=null,s,c=!1;function l(){s=new IntersectionObserver(b=>{c||(b.forEach(m=>{const h=t.indexOf(m.target);o[h]=m}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(b=>s.observe(b))}function u(){s&&s.disconnect(),c=!0}function d(b){return oo(o).reduce((m,h)=>{const v=parseInt(h),{isIntersecting:x}=o[v];return(b&&x||!b&&!x)&&m.push(v),m},[])}function f(b=!0){if(b&&a)return a;if(!b&&i)return i;const m=d(b);return b&&(a=m),b||(i=m),m}return{init:l,destroy:u,get:f}}function rT(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:c}=e,l=n[0]&&o,u=b(),d=m(),f=n.map(i),g=h();function b(){if(!l)return 0;const x=n[0];return De(t[s]-x[s])}function m(){if(!l)return 0;const x=a.getComputedStyle(Tt(r));return parseFloat(x.getPropertyValue(`margin-${c}`))}function h(){return n.map((x,w,C)=>{const S=!w,A=uf(C,w);return S?f[w]+u:A?f[w]+d:C[w+1][s]-x[s]}).map(De)}return{slideSizes:f,slideSizesWithGaps:g,startGap:u,endGap:d}}function oT(e,t,n,r,o,a,i,s,c){const{startEdge:l,endEdge:u,direction:d}=e,f=cf(n);function g(v,x){return ro(v).filter(w=>w%x===0).map(w=>v.slice(w,w+x))}function b(v){return v.length?ro(v).reduce((x,w,C)=>{const S=Tt(x)||0,A=S===0,I=w===Ro(v),R=o[l]-a[S][l],P=o[l]-a[w][u],M=!r&&A?d(i):0,T=!r&&I?d(s):0,B=De(P-T-(R+M));return C&&B>t+c&&x.push(w),I&&x.push(v.length),x},[]).map((x,w,C)=>{const S=Math.max(C[w-1]||0);return v.slice(S,x)}):[]}function m(v){return f?g(v,n):b(v)}return{groupSlides:m}}function aT(e,t,n,r,o,a,i){const{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:g,dragThreshold:b,inViewThreshold:m,slidesToScroll:h,skipSnaps:v,containScroll:x,watchResize:w,watchSlides:C,watchDrag:S,watchFocus:A}=a,I=2,R=LO(),P=R.measure(t),M=n.map(R.measure),T=BO(c,l),B=T.measureSize(P),O=WO(B),L=kO(s,B),W=!d&&!!x,j=d||!!x,{slideSizes:$,slideSizesWithGaps:N,startGap:V,endGap:U}=rT(T,P,M,n,j,o),ee=oT(T,B,h,d,P,M,V,U,I),{snaps:k,snapsAligned:H}=qO(T,L,P,M,ee),Y=-Tt(k)+Tt(N),{snapsContained:z,scrollContainLimit:J}=zO(B,Y,H,x,I),G=W?z:H,{limit:q}=XO(Y,G,d),ae=e0(Ro(G),u,d),re=ae.clone(),te=ro(n),F=({dragHandler:lt,scrollBody:rn,scrollBounds:ut,options:{loop:Ue}})=>{Ue||ut.constrain(lt.pointerDown()),rn.seek()},de=({scrollBody:lt,translate:rn,location:ut,offsetLocation:Ue,previousLocation:on,scrollLooper:An,slideLooper:Mr,dragHandler:qn,animation:Dr,eventHandler:Z,scrollBounds:ce,options:{loop:K}},ne)=>{const ve=lt.settled(),me=!ce.shouldConstrain(),Be=K?ve:ve&&me,dt=Be&&!qn.pointerDown();dt&&Dr.stop();const nt=ut.get()*ne+on.get()*(1-ne);Ue.set(nt),K&&(An.loop(lt.direction()),Mr.loop()),rn.to(Ue.get()),dt&&Z.emit("settle"),Be||Z.emit("scroll")},_=FO(r,o,()=>F(Bt),lt=>de(Bt,lt)),Q=.68,ge=G[ae.get()],xe=zr(ge),Te=zr(ge),ye=zr(ge),Se=zr(ge),tt=HO(xe,ye,Te,Se,f,Q),Ve=JO(d,G,Y,q,Se),Fe=KO(_,ae,re,tt,Ve,Se,i),Ye=ZO(q),Ze=ao(),rt=nT(t,n,i,m),{slideRegistry:ot}=UO(W,x,G,J,ee,te),It=QO(e,n,ot,Fe,tt,Ze,i,A),Bt={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:P,slideRects:M,animation:_,axis:T,dragHandler:jO(T,e,r,o,Se,GO(T,o),xe,_,Fe,tt,Ve,ae,i,O,g,b,v,Q,S),eventStore:Ze,percentOfView:O,index:ae,indexPrevious:re,limit:q,location:xe,offsetLocation:ye,previousLocation:Te,options:a,resizeHandler:VO(t,i,o,n,T,w,R),scrollBody:tt,scrollBounds:$O(q,ye,Se,tt,O),scrollLooper:YO(Y,q,ye,[xe,ye,Te,Se]),scrollProgress:Ye,scrollSnapList:G.map(Ye.get),scrollSnaps:G,scrollTarget:Ve,scrollTo:Fe,slideLooper:eT(T,B,Y,$,N,k,G,ye,n),slideFocus:It,slidesHandler:tT(t,i,C),slidesInView:rt,slideIndexes:te,slideRegistry:ot,slidesToScroll:ee,target:Se,translate:t0(T,t)};return Bt}function iT(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function o(l){return r(l).forEach(u=>u(t,l)),c}function a(l,u){return e[l]=r(l).concat([u]),c}function i(l,u){return e[l]=r(l).filter(d=>d!==u),c}function s(){e={}}const c={init:n,emit:o,off:i,on:a,clear:s};return c}const sT={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function cT(e){function t(a,i){return Qy(a,i||{})}function n(a){const i=a.breakpoints||{},s=oo(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,l)=>t(c,l),{});return t(a,s)}function r(a){return a.map(i=>oo(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function lT(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,c)=>Object.assign(s,{[c.name]:c}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Aa(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=cT(o),i=lT(a),s=ao(),c=iT(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:g,emit:b}=c,m=T;let h=!1,v,x=l(sT,Aa.globalOptions),w=l(x),C=[],S,A,I;function R(){const{container:te,slides:F}=w;A=(Yu(te)?e.querySelector(te):te)||e.children[0];const _=Yu(F)?A.querySelectorAll(F):F;I=[].slice.call(_||A.children)}function P(te){const F=aT(e,A,I,r,o,te,c);if(te.loop&&!F.slideLooper.canLoop()){const de=Object.assign({},te,{loop:!1});return P(de)}return F}function M(te,F){h||(x=l(x,te),w=u(x),C=F||C,R(),v=P(w),d([x,...C.map(({options:de})=>de)]).forEach(de=>s.add(de,"change",T)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(re),v.eventHandler.init(re),v.resizeHandler.init(re),v.slidesHandler.init(re),v.options.loop&&v.slideLooper.loop(),A.offsetParent&&I.length&&v.dragHandler.init(re),S=i.init(re,C)))}function T(te,F){const de=ee();B(),M(l({startIndex:de},te),F),c.emit("reInit")}function B(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),s.clear()}function O(){h||(h=!0,s.clear(),B(),c.emit("destroy"),c.clear())}function L(te,F,de){!w.active||h||(v.scrollBody.useBaseFriction().useDuration(F===!0?0:w.duration),v.scrollTo.index(te,de||0))}function W(te){const F=v.index.add(1).get();L(F,te,-1)}function j(te){const F=v.index.add(-1).get();L(F,te,1)}function $(){return v.index.add(1).get()!==ee()}function N(){return v.index.add(-1).get()!==ee()}function V(){return v.scrollSnapList}function U(){return v.scrollProgress.get(v.offsetLocation.get())}function ee(){return v.index.get()}function k(){return v.indexPrevious.get()}function H(){return v.slidesInView.get()}function Y(){return v.slidesInView.get(!1)}function z(){return S}function J(){return v}function G(){return e}function q(){return A}function ae(){return I}const re={canScrollNext:$,canScrollPrev:N,containerNode:q,internalEngine:J,destroy:O,off:g,on:f,emit:b,plugins:z,previousScrollSnap:k,reInit:m,rootNode:G,scrollNext:W,scrollPrev:j,scrollProgress:U,scrollSnapList:V,scrollTo:L,selectedScrollSnap:ee,slideNodes:ae,slidesInView:H,slidesNotInView:Y};return M(t,n),setTimeout(()=>c.emit("init"),0),re}Aa.globalOptions=void 0;function df(e={},t=[]){const n=E.useRef(e),r=E.useRef(t),[o,a]=E.useState(),[i,s]=E.useState(),c=E.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return E.useEffect(()=>{sf(n.current,e)||(n.current=e,c())},[e,c]),E.useEffect(()=>{MO(r.current,t)||(r.current=t,c())},[t,c]),E.useEffect(()=>{if(_O()&&i){Aa.globalOptions=df.globalOptions;const l=Aa(i,n.current,r.current);return a(l),()=>l.destroy()}else a(void 0)},[i,a]),[s,o]}df.globalOptions=void 0;const n0=p.createContext(null);function si(){const e=p.useContext(n0);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function uT({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i}){const[s,c]=df({...t,axis:e==="horizontal"?"x":"y"},r),[l,u]=p.useState(!1),[d,f]=p.useState(!1),g=p.useCallback(v=>{v&&(u(v.canScrollPrev()),f(v.canScrollNext()))},[]),b=p.useCallback(()=>{c?.scrollPrev()},[c]),m=p.useCallback(()=>{c?.scrollNext()},[c]),h=p.useCallback(v=>{v.key==="ArrowLeft"?(v.preventDefault(),b()):v.key==="ArrowRight"&&(v.preventDefault(),m())},[b,m]);return p.useEffect(()=>{!c||!n||n(c)},[c,n]),p.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c?.off("select",g)}},[c,g]),y.jsx(n0.Provider,{value:{carouselRef:s,api:c,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:b,scrollNext:m,canScrollPrev:l,canScrollNext:d},children:y.jsx("div",{onKeyDownCapture:h,className:D("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:a})})}function dT({className:e,...t}){const{carouselRef:n,orientation:r}=si();return y.jsx("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:y.jsx("div",{className:D("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})}function fT({className:e,...t}){const{orientation:n}=si();return y.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:D("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})}function pT({className:e,variant:t="outline",size:n="icon",...r}){const{orientation:o,scrollPrev:a,canScrollPrev:i}=si();return y.jsxs(Io,{"data-slot":"carousel-previous",variant:t,size:n,className:D("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:a,...r,children:[y.jsx(H1,{}),y.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function mT({className:e,variant:t="outline",size:n="icon",...r}){const{orientation:o,scrollNext:a,canScrollNext:i}=si();return y.jsxs(Io,{"data-slot":"carousel-next",variant:t,size:n,className:D("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:a,...r,children:[y.jsx(z1,{}),y.jsx("span",{className:"sr-only",children:"Next slide"})]})}function ir({children:e}){return e}ir.displayName="Case";function ff({children:e}){return e}ff.displayName="Default";function hT(e){return p.isValidElement(e)}function Xr({children:e}){let t=null,n=null;return p.Children.forEach(e,r=>{if(!hT(r))return;const o=r.type.displayName;if(!t&&o==="Case"){const{condition:a}=r.props;a&&(t=r)}else!n&&o==="Default"&&(n=r)}),t??n??null}var ds,Kp;function Nt(){if(Kp)return ds;Kp=1;var e=Array.isArray;return ds=e,ds}var fs,Qp;function r0(){if(Qp)return fs;Qp=1;var e=typeof qo=="object"&&qo&&qo.Object===Object&&qo;return fs=e,fs}var ps,em;function Kt(){if(em)return ps;em=1;var e=r0(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ps=n,ps}var ms,tm;function Po(){if(tm)return ms;tm=1;var e=Kt(),t=e.Symbol;return ms=t,ms}var hs,nm;function gT(){if(nm)return hs;nm=1;var e=Po(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=n.call(i,o),c=i[o];try{i[o]=void 0;var l=!0}catch{}var u=r.call(i);return l&&(s?i[o]=c:delete i[o]),u}return hs=a,hs}var gs,rm;function bT(){if(rm)return gs;rm=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return gs=n,gs}var bs,om;function Vn(){if(om)return bs;om=1;var e=Po(),t=gT(),n=bT(),r="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:r:a&&a in Object(s)?t(s):n(s)}return bs=i,bs}var vs,am;function Hn(){if(am)return vs;am=1;function e(t){return t!=null&&typeof t=="object"}return vs=e,vs}var ys,im;function Oo(){if(im)return ys;im=1;var e=Vn(),t=Hn(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return ys=r,ys}var xs,sm;function pf(){if(sm)return xs;sm=1;var e=Nt(),t=Oo(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||i!=null&&a in Object(i)}return xs=o,xs}var ws,cm;function Sn(){if(cm)return ws;cm=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ws=e,ws}var Cs,lm;function mf(){if(lm)return Cs;lm=1;var e=Vn(),t=Sn(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var c=e(s);return c==r||c==o||c==n||c==a}return Cs=i,Cs}var Ss,um;function vT(){if(um)return Ss;um=1;var e=Kt(),t=e["__core-js_shared__"];return Ss=t,Ss}var Is,dm;function yT(){if(dm)return Is;dm=1;var e=vT(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Is=n,Is}var Es,fm;function o0(){if(fm)return Es;fm=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Es=n,Es}var As,pm;function xT(){if(pm)return As;pm=1;var e=mf(),t=yT(),n=Sn(),r=o0(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,c=i.toString,l=s.hasOwnProperty,u=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!n(f)||t(f))return!1;var g=e(f)?u:a;return g.test(r(f))}return As=d,As}var Rs,mm;function wT(){if(mm)return Rs;mm=1;function e(t,n){return t?.[n]}return Rs=e,Rs}var Ps,hm;function $n(){if(hm)return Ps;hm=1;var e=xT(),t=wT();function n(r,o){var a=t(r,o);return e(a)?a:void 0}return Ps=n,Ps}var Os,gm;function ci(){if(gm)return Os;gm=1;var e=$n(),t=e(Object,"create");return Os=t,Os}var Ts,bm;function CT(){if(bm)return Ts;bm=1;var e=ci();function t(){this.__data__=e?e(null):{},this.size=0}return Ts=t,Ts}var _s,vm;function ST(){if(vm)return _s;vm=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return _s=e,_s}var Ms,ym;function IT(){if(ym)return Ms;ym=1;var e=ci(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return r.call(i,a)?i[a]:void 0}return Ms=o,Ms}var Ds,xm;function ET(){if(xm)return Ds;xm=1;var e=ci(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var a=this.__data__;return e?a[o]!==void 0:n.call(a,o)}return Ds=r,Ds}var Ns,wm;function AT(){if(wm)return Ns;wm=1;var e=ci(),t="__lodash_hash_undefined__";function n(r,o){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&o===void 0?t:o,this}return Ns=n,Ns}var ks,Cm;function RT(){if(Cm)return ks;Cm=1;var e=CT(),t=ST(),n=IT(),r=ET(),o=AT();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,ks=a,ks}var Fs,Sm;function PT(){if(Sm)return Fs;Sm=1;function e(){this.__data__=[],this.size=0}return Fs=e,Fs}var Bs,Im;function hf(){if(Im)return Bs;Im=1;function e(t,n){return t===n||t!==t&&n!==n}return Bs=e,Bs}var js,Em;function li(){if(Em)return js;Em=1;var e=hf();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return js=t,js}var Gs,Am;function OT(){if(Am)return Gs;Am=1;var e=li(),t=Array.prototype,n=t.splice;function r(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():n.call(a,i,1),--this.size,!0}return Gs=r,Gs}var Ls,Rm;function TT(){if(Rm)return Ls;Rm=1;var e=li();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return Ls=t,Ls}var Ws,Pm;function _T(){if(Pm)return Ws;Pm=1;var e=li();function t(n){return e(this.__data__,n)>-1}return Ws=t,Ws}var Vs,Om;function MT(){if(Om)return Vs;Om=1;var e=li();function t(n,r){var o=this.__data__,a=e(o,n);return a<0?(++this.size,o.push([n,r])):o[a][1]=r,this}return Vs=t,Vs}var Hs,Tm;function ui(){if(Tm)return Hs;Tm=1;var e=PT(),t=OT(),n=TT(),r=_T(),o=MT();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Hs=a,Hs}var $s,_m;function gf(){if(_m)return $s;_m=1;var e=$n(),t=Kt(),n=e(t,"Map");return $s=n,$s}var zs,Mm;function DT(){if(Mm)return zs;Mm=1;var e=RT(),t=ui(),n=gf();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return zs=r,zs}var Xs,Dm;function NT(){if(Dm)return Xs;Dm=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Xs=e,Xs}var Ys,Nm;function di(){if(Nm)return Ys;Nm=1;var e=NT();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Ys=t,Ys}var Zs,km;function kT(){if(km)return Zs;km=1;var e=di();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Zs=t,Zs}var qs,Fm;function FT(){if(Fm)return qs;Fm=1;var e=di();function t(n){return e(this,n).get(n)}return qs=t,qs}var Us,Bm;function BT(){if(Bm)return Us;Bm=1;var e=di();function t(n){return e(this,n).has(n)}return Us=t,Us}var Js,jm;function jT(){if(jm)return Js;jm=1;var e=di();function t(n,r){var o=e(this,n),a=o.size;return o.set(n,r),this.size+=o.size==a?0:1,this}return Js=t,Js}var Ks,Gm;function bf(){if(Gm)return Ks;Gm=1;var e=DT(),t=kT(),n=FT(),r=BT(),o=jT();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Ks=a,Ks}var Qs,Lm;function GT(){if(Lm)return Qs;Lm=1;var e=bf(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],c=a.cache;if(c.has(s))return c.get(s);var l=r.apply(this,i);return a.cache=c.set(s,l)||c,l};return a.cache=new(n.Cache||e),a}return n.Cache=e,Qs=n,Qs}var ec,Wm;function LT(){if(Wm)return ec;Wm=1;var e=GT(),t=500;function n(r){var o=e(r,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return ec=n,ec}var tc,Vm;function WT(){if(Vm)return tc;Vm=1;var e=LT(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,c,l){a.push(c?l.replace(n,"$1"):s||i)}),a});return tc=r,tc}var nc,Hm;function a0(){if(Hm)return nc;Hm=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return nc=e,nc}var rc,$m;function VT(){if($m)return rc;$m=1;var e=Po(),t=a0(),n=Nt(),r=Oo(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(n(s))return t(s,i)+"";if(r(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return rc=i,rc}var oc,zm;function i0(){if(zm)return oc;zm=1;var e=VT();function t(n){return n==null?"":e(n)}return oc=t,oc}var ac,Xm;function s0(){if(Xm)return ac;Xm=1;var e=Nt(),t=pf(),n=WT(),r=i0();function o(a,i){return e(a)?a:t(a,i)?[a]:n(r(a))}return ac=o,ac}var ic,Ym;function fi(){if(Ym)return ic;Ym=1;var e=Oo();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ic=t,ic}var sc,Zm;function vf(){if(Zm)return sc;Zm=1;var e=s0(),t=fi();function n(r,o){o=e(o,r);for(var a=0,i=o.length;r!=null&&a<i;)r=r[t(o[a++])];return a&&a==i?r:void 0}return sc=n,sc}var cc,qm;function c0(){if(qm)return cc;qm=1;var e=vf();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return cc=t,cc}c0();var lc,Um;function HT(){if(Um)return lc;Um=1;function e(t){return t==null}return lc=e,lc}var $T=HT();const zT=Ut($T);var uc,Jm;function XT(){if(Jm)return uc;Jm=1;var e=Vn(),t=Nt(),n=Hn(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return uc=o,uc}var YT=XT();const l0=Ut(YT);var ZT=mf();const Ra=Ut(ZT);var qT=Sn();const u0=Ut(qT);var Jo={exports:{}},Ie={};var Km;function UT(){if(Km)return Ie;Km=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function m(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case e:switch(h=h.type,h){case n:case o:case r:case l:case u:return h;default:switch(h=h&&h.$$typeof,h){case s:case i:case c:case f:case d:case a:return h;default:return v}}case t:return v}}}return Ie.ContextConsumer=i,Ie.ContextProvider=a,Ie.Element=e,Ie.ForwardRef=c,Ie.Fragment=n,Ie.Lazy=f,Ie.Memo=d,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=r,Ie.Suspense=l,Ie.SuspenseList=u,Ie.isAsyncMode=function(){return!1},Ie.isConcurrentMode=function(){return!1},Ie.isContextConsumer=function(h){return m(h)===i},Ie.isContextProvider=function(h){return m(h)===a},Ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Ie.isForwardRef=function(h){return m(h)===c},Ie.isFragment=function(h){return m(h)===n},Ie.isLazy=function(h){return m(h)===f},Ie.isMemo=function(h){return m(h)===d},Ie.isPortal=function(h){return m(h)===t},Ie.isProfiler=function(h){return m(h)===o},Ie.isStrictMode=function(h){return m(h)===r},Ie.isSuspense=function(h){return m(h)===l},Ie.isSuspenseList=function(h){return m(h)===u},Ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===l||h===u||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===a||h.$$typeof===i||h.$$typeof===c||h.$$typeof===b||h.getModuleId!==void 0)},Ie.typeOf=m,Ie}var Ee={};var Qm;function JT(){return Qm||(Qm=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=!1,m=!1,h=!1,v=!1,x=!1,w;w=Symbol.for("react.module.reference");function C(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||x||_===r||_===l||_===u||v||_===g||b||m||h||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===i||_.$$typeof===c||_.$$typeof===w||_.getModuleId!==void 0))}function S(_){if(typeof _=="object"&&_!==null){var Q=_.$$typeof;switch(Q){case e:var ge=_.type;switch(ge){case n:case o:case r:case l:case u:return ge;default:var xe=ge&&ge.$$typeof;switch(xe){case s:case i:case c:case f:case d:case a:return xe;default:return Q}}case t:return Q}}}var A=i,I=a,R=e,P=c,M=n,T=f,B=d,O=t,L=o,W=r,j=l,$=u,N=!1,V=!1;function U(_){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(_){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(_){return S(_)===i}function H(_){return S(_)===a}function Y(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function z(_){return S(_)===c}function J(_){return S(_)===n}function G(_){return S(_)===f}function q(_){return S(_)===d}function ae(_){return S(_)===t}function re(_){return S(_)===o}function te(_){return S(_)===r}function F(_){return S(_)===l}function de(_){return S(_)===u}Ee.ContextConsumer=A,Ee.ContextProvider=I,Ee.Element=R,Ee.ForwardRef=P,Ee.Fragment=M,Ee.Lazy=T,Ee.Memo=B,Ee.Portal=O,Ee.Profiler=L,Ee.StrictMode=W,Ee.Suspense=j,Ee.SuspenseList=$,Ee.isAsyncMode=U,Ee.isConcurrentMode=ee,Ee.isContextConsumer=k,Ee.isContextProvider=H,Ee.isElement=Y,Ee.isForwardRef=z,Ee.isFragment=J,Ee.isLazy=G,Ee.isMemo=q,Ee.isPortal=ae,Ee.isProfiler=re,Ee.isStrictMode=te,Ee.isSuspense=F,Ee.isSuspenseList=de,Ee.isValidElementType=C,Ee.typeOf=S})()),Ee}var eh;function KT(){return eh||(eh=1,process.env.NODE_ENV==="production"?Jo.exports=UT():Jo.exports=JT()),Jo.exports}KT();var dc,th;function d0(){if(th)return dc;th=1;var e=Vn(),t=Hn(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return dc=r,dc}var fc,nh;function QT(){if(nh)return fc;nh=1;var e=d0();function t(n){return e(n)&&n!=+n}return fc=t,fc}var e_=QT();const t_=Ut(e_);var n_=d0();const r_=Ut(n_);var Ko=function(t){return l0(t)&&t.indexOf("%")===t.length-1},Pt=function(t){return r_(t)&&!t_(t)},Pa=function(t){return Pt(t)||l0(t)};function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}var o_=["viewBox","children"],a_=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rh=["points","pathLength"],pc={svg:o_,polygon:rh,polyline:rh},f0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],i_=function(t,n,r){return function(o){return t(n,r,o),null}},s_=function(t,n,r){if(!u0(t)||qu(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];f0.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=i_(i,n,r))}),o},c_=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},l_=function(t,n,r,o){var a,i=(a=pc?.[o])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!Ra(t)&&(o&&i.includes(n)||a_.includes(n))||f0.includes(n)},p0=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(E.isValidElement(t)&&(o=t.props),!u0(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;l_((s=o)===null||s===void 0?void 0:s[i],i,n,r)&&(a[i]=o[i])}),a},u_=["children","width","height","viewBox","className","style","title","desc"];function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}function d_(e,t){if(e==null)return{};var n=f_(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f_(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function p_(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,c=e.desc,l=d_(e,u_),u=o||{width:n,height:r,x:0,y:0},d=dn("recharts-surface",a);return E.createElement("svg",Uu({},p0(l,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),E.createElement("title",null,s),E.createElement("desc",null,c),t)}var m_=process.env.NODE_ENV!=="production",ma=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(m_&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(n.replace(/%s/g,function(){return o[i++]}))}},mc,oh;function h_(){if(oh)return mc;oh=1;function e(t,n,r){var o=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+n];return i}return mc=e,mc}var hc,ah;function g_(){if(ah)return hc;ah=1;var e=h_();function t(n,r,o){var a=n.length;return o=o===void 0?a:o,!r&&o>=a?n:e(n,r,o)}return hc=t,hc}var gc,ih;function m0(){if(ih)return gc;ih=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function c(l){return s.test(l)}return gc=c,gc}var bc,sh;function b_(){if(sh)return bc;sh=1;function e(t){return t.split("")}return bc=e,bc}var vc,ch;function v_(){if(ch)return vc;ch=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=l+"?",m="["+a+"]?",h="(?:"+g+"(?:"+[u,d,f].join("|")+")"+m+b+")*",v=m+b+h,x="(?:"+[u+s+"?",s,d,f,i].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+v,"g");function C(S){return S.match(w)||[]}return vc=C,vc}var yc,lh;function y_(){if(lh)return yc;lh=1;var e=b_(),t=m0(),n=v_();function r(o){return t(o)?n(o):e(o)}return yc=r,yc}var xc,uh;function x_(){if(uh)return xc;uh=1;var e=g_(),t=m0(),n=y_(),r=i0();function o(a){return function(i){i=r(i);var s=t(i)?n(i):void 0,c=s?s[0]:i.charAt(0),l=s?e(s,1).join(""):i.slice(1);return c[a]()+l}}return xc=o,xc}var wc,dh;function w_(){if(dh)return wc;dh=1;var e=x_(),t=e("toUpperCase");return wc=t,wc}var C_=w_();const h0=Ut(C_);function Qo(e){return function(){return e}}const g0=Math.cos,Oa=Math.sin,kt=Math.sqrt,Ta=Math.PI,pi=2*Ta,Ju=Math.PI,Ku=2*Ju,Tn=1e-6,S_=Ku-Tn;function b0(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function I_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return b0;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class E_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?b0:I_(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,c=r-t,l=o-n,u=i-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Tn)if(!(Math.abs(d*c-l*u)>Tn)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-i,b=o-s,m=c*c+l*l,h=g*g+b*b,v=Math.sqrt(m),x=Math.sqrt(f),w=a*Math.tan((Ju-Math.acos((m+f-h)/(2*v*x)))/2),C=w/x,S=w/v;Math.abs(C-1)>Tn&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*g>u*b)},${this._x1=t+S*c},${this._y1=n+S*l}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),c=r*Math.sin(o),l=t+s,u=n+c,d=1^i,f=i?o-a:a-o;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Tn||Math.abs(this._y1-u)>Tn)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%Ku+Ku),f>S_?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>Tn&&this._append`A${r},${r},0,${+(f>=Ju)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function A_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new E_(t)}const yf={draw(e,t){const n=kt(t/Ta);e.moveTo(n,0),e.arc(0,0,n,0,pi)}},R_={draw(e,t){const n=kt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},v0=kt(1/3),P_=v0*2,O_={draw(e,t){const n=kt(t/P_),r=n*v0;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},T_={draw(e,t){const n=kt(t),r=-n/2;e.rect(r,r,n,n)}},__=.8908130915292852,y0=Oa(Ta/10)/Oa(7*Ta/10),M_=Oa(pi/10)*y0,D_=-g0(pi/10)*y0,N_={draw(e,t){const n=kt(t*__),r=M_*n,o=D_*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const i=pi*a/5,s=g0(i),c=Oa(i);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*o,c*r+s*o)}e.closePath()}},Cc=kt(3),k_={draw(e,t){const n=-kt(t/(Cc*3));e.moveTo(0,n*2),e.lineTo(-Cc*n,-n),e.lineTo(Cc*n,-n),e.closePath()}},vt=-.5,yt=kt(3)/2,Qu=1/kt(12),F_=(Qu/2+1)*3,B_={draw(e,t){const n=kt(t/F_),r=n/2,o=n*Qu,a=r,i=n*Qu+n,s=-a,c=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,c),e.lineTo(vt*r-yt*o,yt*r+vt*o),e.lineTo(vt*a-yt*i,yt*a+vt*i),e.lineTo(vt*s-yt*c,yt*s+vt*c),e.lineTo(vt*r+yt*o,vt*o-yt*r),e.lineTo(vt*a+yt*i,vt*i-yt*a),e.lineTo(vt*s+yt*c,vt*c-yt*s),e.closePath()}};function j_(e,t){let n=null,r=A_(o);e=typeof e=="function"?e:Qo(e||yf),t=typeof t=="function"?t:Qo(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Qo(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Qo(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}var G_=["type","size","sizeType"];function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ed.apply(this,arguments)}function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fh(Object(n),!0).forEach(function(r){L_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L_(e,t,n){return t=W_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W_(e){var t=V_(e,"string");return io(t)=="symbol"?t:t+""}function V_(e,t){if(io(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(io(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H_(e,t){if(e==null)return{};var n=$_(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $_(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var x0={symbolCircle:yf,symbolCross:R_,symbolDiamond:O_,symbolSquare:T_,symbolStar:N_,symbolTriangle:k_,symbolWye:B_},z_=Math.PI/180,X_=function(t){var n="symbol".concat(h0(t));return x0[n]||yf},Y_=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*z_;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Z_=function(t,n){x0["symbol".concat(h0(t))]=n},w0=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,c=H_(t,G_),l=ph(ph({},c),{},{type:r,size:a,sizeType:s}),u=function(){var h=X_(r),v=j_().type(h).size(Y_(a,s,r));return v()},d=l.className,f=l.cx,g=l.cy,b=p0(l,!0);return f===+f&&g===+g&&a===+a?E.createElement("path",ed({},b,{className:dn("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(g,")"),d:u()})):null};w0.registerSymbol=Z_;function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},td.apply(this,arguments)}function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(n),!0).forEach(function(r){so(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S0(r.key),r)}}function K_(e,t,n){return t&&J_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t,n){return t=_a(t),eM(e,C0()?Reflect.construct(t,n||[],_a(e).constructor):t.apply(e,n))}function eM(e,t){if(t&&(fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tM(e)}function tM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C0=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_a(e)}function nM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nd(e,t)}function so(e,t,n){return t=S0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S0(e){var t=rM(e,"string");return fr(t)=="symbol"?t:t+""}function rM(e,t){if(fr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xt=32,xf=(function(e){function t(){return U_(this,t),Q_(this,t,arguments)}return nM(t,e),K_(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=xt/2,i=xt/6,s=xt/3,c=r.inactive?o:r.color;if(r.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:xt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
2
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
|
|
3
|
+
H`).concat(xt,"M").concat(2*s,",").concat(a,`
|
|
4
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return E.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(xt/8,"h").concat(xt,"v").concat(xt*3/4,"h").concat(-xt,"z"),className:"recharts-legend-icon"});if(E.isValidElement(r.legendIcon)){var l=q_({},r);return delete l.legendIcon,E.cloneElement(r.legendIcon,l)}return E.createElement(w0,{fill:c,cx:a,cy:a,size:xt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,c=o.formatter,l=o.inactiveColor,u={x:0,y:0,width:xt,height:xt},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(g,b){var m=g.formatter||c,h=dn(so(so({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",g.inactive));if(g.type==="none")return null;var v=Ra(g.value)?null:g.value;ma(!Ra(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=g.inactive?l:g.color;return E.createElement("li",td({className:h,style:d,key:"legend-item-".concat(b)},s_(r.props,g,b)),E.createElement(p_,{width:i,height:i,viewBox:u,style:f},r.renderIcon(g)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},m?m(v,g,b):v))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(E.PureComponent);so(xf,"displayName","Legend");so(xf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Sc,hh;function oM(){if(hh)return Sc;hh=1;var e=ui();function t(){this.__data__=new e,this.size=0}return Sc=t,Sc}var Ic,gh;function aM(){if(gh)return Ic;gh=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Ic=e,Ic}var Ec,bh;function iM(){if(bh)return Ec;bh=1;function e(t){return this.__data__.get(t)}return Ec=e,Ec}var Ac,vh;function sM(){if(vh)return Ac;vh=1;function e(t){return this.__data__.has(t)}return Ac=e,Ac}var Rc,yh;function cM(){if(yh)return Rc;yh=1;var e=ui(),t=gf(),n=bf(),r=200;function o(a,i){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([a,i]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(a,i),this.size=s.size,this}return Rc=o,Rc}var Pc,xh;function I0(){if(xh)return Pc;xh=1;var e=ui(),t=oM(),n=aM(),r=iM(),o=sM(),a=cM();function i(s){var c=this.__data__=new e(s);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=o,i.prototype.set=a,Pc=i,Pc}var Oc,wh;function lM(){if(wh)return Oc;wh=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Oc=t,Oc}var Tc,Ch;function uM(){if(Ch)return Tc;Ch=1;function e(t){return this.__data__.has(t)}return Tc=e,Tc}var _c,Sh;function E0(){if(Sh)return _c;Sh=1;var e=bf(),t=lM(),n=uM();function r(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,_c=r,_c}var Mc,Ih;function dM(){if(Ih)return Mc;Ih=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Mc=e,Mc}var Dc,Eh;function A0(){if(Eh)return Dc;Eh=1;function e(t,n){return t.has(n)}return Dc=e,Dc}var Nc,Ah;function R0(){if(Ah)return Nc;Ah=1;var e=E0(),t=dM(),n=A0(),r=1,o=2;function a(i,s,c,l,u,d){var f=c&r,g=i.length,b=s.length;if(g!=b&&!(f&&b>g))return!1;var m=d.get(i),h=d.get(s);if(m&&h)return m==s&&h==i;var v=-1,x=!0,w=c&o?new e:void 0;for(d.set(i,s),d.set(s,i);++v<g;){var C=i[v],S=s[v];if(l)var A=f?l(S,C,v,s,i,d):l(C,S,v,i,s,d);if(A!==void 0){if(A)continue;x=!1;break}if(w){if(!t(s,function(I,R){if(!n(w,R)&&(C===I||u(C,I,c,l,d)))return w.push(R)})){x=!1;break}}else if(!(C===S||u(C,S,c,l,d))){x=!1;break}}return d.delete(i),d.delete(s),x}return Nc=a,Nc}var kc,Rh;function fM(){if(Rh)return kc;Rh=1;var e=Kt(),t=e.Uint8Array;return kc=t,kc}var Fc,Ph;function pM(){if(Ph)return Fc;Ph=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Fc=e,Fc}var Bc,Oh;function wf(){if(Oh)return Bc;Oh=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Bc=e,Bc}var jc,Th;function mM(){if(Th)return jc;Th=1;var e=Po(),t=fM(),n=hf(),r=R0(),o=pM(),a=wf(),i=1,s=2,c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Map]",f="[object Number]",g="[object RegExp]",b="[object Set]",m="[object String]",h="[object Symbol]",v="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,C=w?w.valueOf:void 0;function S(A,I,R,P,M,T,B){switch(R){case x:if(A.byteLength!=I.byteLength||A.byteOffset!=I.byteOffset)return!1;A=A.buffer,I=I.buffer;case v:return!(A.byteLength!=I.byteLength||!T(new t(A),new t(I)));case c:case l:case f:return n(+A,+I);case u:return A.name==I.name&&A.message==I.message;case g:case m:return A==I+"";case d:var O=o;case b:var L=P&i;if(O||(O=a),A.size!=I.size&&!L)return!1;var W=B.get(A);if(W)return W==I;P|=s,B.set(A,I);var j=r(O(A),O(I),P,M,T,B);return B.delete(A),j;case h:if(C)return C.call(A)==C.call(I)}return!1}return jc=S,jc}var Gc,_h;function P0(){if(_h)return Gc;_h=1;function e(t,n){for(var r=-1,o=n.length,a=t.length;++r<o;)t[a+r]=n[r];return t}return Gc=e,Gc}var Lc,Mh;function hM(){if(Mh)return Lc;Mh=1;var e=P0(),t=Nt();function n(r,o,a){var i=o(r);return t(r)?i:e(i,a(r))}return Lc=n,Lc}var Wc,Dh;function gM(){if(Dh)return Wc;Dh=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=0,i=[];++r<o;){var s=t[r];n(s,r,t)&&(i[a++]=s)}return i}return Wc=e,Wc}var Vc,Nh;function bM(){if(Nh)return Vc;Nh=1;function e(){return[]}return Vc=e,Vc}var Hc,kh;function vM(){if(kh)return Hc;kh=1;var e=gM(),t=bM(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return r.call(i,s)}))}:t;return Hc=a,Hc}var $c,Fh;function yM(){if(Fh)return $c;Fh=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return $c=e,$c}var zc,Bh;function xM(){if(Bh)return zc;Bh=1;var e=Vn(),t=Hn(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return zc=r,zc}var Xc,jh;function Cf(){if(jh)return Xc;jh=1;var e=xM(),t=Hn(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(i){return t(i)&&r.call(i,"callee")&&!o.call(i,"callee")};return Xc=a,Xc}var Yr={exports:{}},Yc,Gh;function wM(){if(Gh)return Yc;Gh=1;function e(){return!1}return Yc=e,Yc}Yr.exports;var Lh;function O0(){return Lh||(Lh=1,(function(e,t){var n=Kt(),r=wM(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Yr,Yr.exports)),Yr.exports}var Zc,Wh;function Sf(){if(Wh)return Zc;Wh=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var a=typeof r;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return Zc=n,Zc}var qc,Vh;function If(){if(Vh)return qc;Vh=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return qc=t,qc}var Uc,Hh;function CM(){if(Hh)return Uc;Hh=1;var e=Vn(),t=If(),n=Hn(),r="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",u="[object Number]",d="[object Object]",f="[object RegExp]",g="[object Set]",b="[object String]",m="[object WeakMap]",h="[object ArrayBuffer]",v="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",T={};T[x]=T[w]=T[C]=T[S]=T[A]=T[I]=T[R]=T[P]=T[M]=!0,T[r]=T[o]=T[h]=T[a]=T[v]=T[i]=T[s]=T[c]=T[l]=T[u]=T[d]=T[f]=T[g]=T[b]=T[m]=!1;function B(O){return n(O)&&t(O.length)&&!!T[e(O)]}return Uc=B,Uc}var Jc,$h;function T0(){if($h)return Jc;$h=1;function e(t){return function(n){return t(n)}}return Jc=e,Jc}var Zr={exports:{}};Zr.exports;var zh;function SM(){return zh||(zh=1,(function(e,t){var n=r0(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=(function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=s})(Zr,Zr.exports)),Zr.exports}var Kc,Xh;function _0(){if(Xh)return Kc;Xh=1;var e=CM(),t=T0(),n=SM(),r=n&&n.isTypedArray,o=r?t(r):e;return Kc=o,Kc}var Qc,Yh;function IM(){if(Yh)return Qc;Yh=1;var e=yM(),t=Cf(),n=Nt(),r=O0(),o=Sf(),a=_0(),i=Object.prototype,s=i.hasOwnProperty;function c(l,u){var d=n(l),f=!d&&t(l),g=!d&&!f&&r(l),b=!d&&!f&&!g&&a(l),m=d||f||g||b,h=m?e(l.length,String):[],v=h.length;for(var x in l)(u||s.call(l,x))&&!(m&&(x=="length"||g&&(x=="offset"||x=="parent")||b&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,v)))&&h.push(x);return h}return Qc=c,Qc}var el,Zh;function EM(){if(Zh)return el;Zh=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return el=t,el}var tl,qh;function AM(){if(qh)return tl;qh=1;function e(t,n){return function(r){return t(n(r))}}return tl=e,tl}var nl,Uh;function RM(){if(Uh)return nl;Uh=1;var e=AM(),t=e(Object.keys,Object);return nl=t,nl}var rl,Jh;function PM(){if(Jh)return rl;Jh=1;var e=EM(),t=RM(),n=Object.prototype,r=n.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&i.push(s);return i}return rl=o,rl}var ol,Kh;function mi(){if(Kh)return ol;Kh=1;var e=mf(),t=If();function n(r){return r!=null&&t(r.length)&&!e(r)}return ol=n,ol}var al,Qh;function Ef(){if(Qh)return al;Qh=1;var e=IM(),t=PM(),n=mi();function r(o){return n(o)?e(o):t(o)}return al=r,al}var il,eg;function OM(){if(eg)return il;eg=1;var e=hM(),t=vM(),n=Ef();function r(o){return e(o,n,t)}return il=r,il}var sl,tg;function TM(){if(tg)return sl;tg=1;var e=OM(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,i,s,c,l,u){var d=s&t,f=e(a),g=f.length,b=e(i),m=b.length;if(g!=m&&!d)return!1;for(var h=g;h--;){var v=f[h];if(!(d?v in i:r.call(i,v)))return!1}var x=u.get(a),w=u.get(i);if(x&&w)return x==i&&w==a;var C=!0;u.set(a,i),u.set(i,a);for(var S=d;++h<g;){v=f[h];var A=a[v],I=i[v];if(c)var R=d?c(I,A,v,i,a,u):c(A,I,v,a,i,u);if(!(R===void 0?A===I||l(A,I,s,c,u):R)){C=!1;break}S||(S=v=="constructor")}if(C&&!S){var P=a.constructor,M=i.constructor;P!=M&&"constructor"in a&&"constructor"in i&&!(typeof P=="function"&&P instanceof P&&typeof M=="function"&&M instanceof M)&&(C=!1)}return u.delete(a),u.delete(i),C}return sl=o,sl}var cl,ng;function _M(){if(ng)return cl;ng=1;var e=$n(),t=Kt(),n=e(t,"DataView");return cl=n,cl}var ll,rg;function MM(){if(rg)return ll;rg=1;var e=$n(),t=Kt(),n=e(t,"Promise");return ll=n,ll}var ul,og;function M0(){if(og)return ul;og=1;var e=$n(),t=Kt(),n=e(t,"Set");return ul=n,ul}var dl,ag;function DM(){if(ag)return dl;ag=1;var e=$n(),t=Kt(),n=e(t,"WeakMap");return dl=n,dl}var fl,ig;function NM(){if(ig)return fl;ig=1;var e=_M(),t=gf(),n=MM(),r=M0(),o=DM(),a=Vn(),i=o0(),s="[object Map]",c="[object Object]",l="[object Promise]",u="[object Set]",d="[object WeakMap]",f="[object DataView]",g=i(e),b=i(t),m=i(n),h=i(r),v=i(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=f||t&&x(new t)!=s||n&&x(n.resolve())!=l||r&&x(new r)!=u||o&&x(new o)!=d)&&(x=function(w){var C=a(w),S=C==c?w.constructor:void 0,A=S?i(S):"";if(A)switch(A){case g:return f;case b:return s;case m:return l;case h:return u;case v:return d}return C}),fl=x,fl}var pl,sg;function kM(){if(sg)return pl;sg=1;var e=I0(),t=R0(),n=mM(),r=TM(),o=NM(),a=Nt(),i=O0(),s=_0(),c=1,l="[object Arguments]",u="[object Array]",d="[object Object]",f=Object.prototype,g=f.hasOwnProperty;function b(m,h,v,x,w,C){var S=a(m),A=a(h),I=S?u:o(m),R=A?u:o(h);I=I==l?d:I,R=R==l?d:R;var P=I==d,M=R==d,T=I==R;if(T&&i(m)){if(!i(h))return!1;S=!0,P=!1}if(T&&!P)return C||(C=new e),S||s(m)?t(m,h,v,x,w,C):n(m,h,I,v,x,w,C);if(!(v&c)){var B=P&&g.call(m,"__wrapped__"),O=M&&g.call(h,"__wrapped__");if(B||O){var L=B?m.value():m,W=O?h.value():h;return C||(C=new e),w(L,W,v,x,C)}}return T?(C||(C=new e),r(m,h,v,x,w,C)):!1}return pl=b,pl}var ml,cg;function D0(){if(cg)return ml;cg=1;var e=kM(),t=Hn();function n(r,o,a,i,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,i,n,s)}return ml=n,ml}var hl,lg;function FM(){if(lg)return hl;lg=1;var e=I0(),t=D0(),n=1,r=2;function o(a,i,s,c){var l=s.length,u=l,d=!c;if(a==null)return!u;for(a=Object(a);l--;){var f=s[l];if(d&&f[2]?f[1]!==a[f[0]]:!(f[0]in a))return!1}for(;++l<u;){f=s[l];var g=f[0],b=a[g],m=f[1];if(d&&f[2]){if(b===void 0&&!(g in a))return!1}else{var h=new e;if(c)var v=c(b,m,g,a,i,h);if(!(v===void 0?t(m,b,n|r,c,h):v))return!1}}return!0}return hl=o,hl}var gl,ug;function N0(){if(ug)return gl;ug=1;var e=Sn();function t(n){return n===n&&!e(n)}return gl=t,gl}var bl,dg;function BM(){if(dg)return bl;dg=1;var e=N0(),t=Ef();function n(r){for(var o=t(r),a=o.length;a--;){var i=o[a],s=r[i];o[a]=[i,s,e(s)]}return o}return bl=n,bl}var vl,fg;function k0(){if(fg)return vl;fg=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vl=e,vl}var yl,pg;function jM(){if(pg)return yl;pg=1;var e=FM(),t=BM(),n=k0();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return yl=r,yl}var xl,mg;function GM(){if(mg)return xl;mg=1;function e(t,n){return t!=null&&n in Object(t)}return xl=e,xl}var wl,hg;function LM(){if(hg)return wl;hg=1;var e=s0(),t=Cf(),n=Nt(),r=Sf(),o=If(),a=fi();function i(s,c,l){c=e(c,s);for(var u=-1,d=c.length,f=!1;++u<d;){var g=a(c[u]);if(!(f=s!=null&&l(s,g)))break;s=s[g]}return f||++u!=d?f:(d=s==null?0:s.length,!!d&&o(d)&&r(g,d)&&(n(s)||t(s)))}return wl=i,wl}var Cl,gg;function WM(){if(gg)return Cl;gg=1;var e=GM(),t=LM();function n(r,o){return r!=null&&t(r,o,e)}return Cl=n,Cl}var Sl,bg;function VM(){if(bg)return Sl;bg=1;var e=D0(),t=c0(),n=WM(),r=pf(),o=N0(),a=k0(),i=fi(),s=1,c=2;function l(u,d){return r(u)&&o(d)?a(i(u),d):function(f){var g=t(f,u);return g===void 0&&g===d?n(f,u):e(d,g,s|c)}}return Sl=l,Sl}var Il,vg;function hi(){if(vg)return Il;vg=1;function e(t){return t}return Il=e,Il}var El,yg;function HM(){if(yg)return El;yg=1;function e(t){return function(n){return n?.[t]}}return El=e,El}var Al,xg;function $M(){if(xg)return Al;xg=1;var e=vf();function t(n){return function(r){return e(r,n)}}return Al=t,Al}var Rl,wg;function zM(){if(wg)return Rl;wg=1;var e=HM(),t=$M(),n=pf(),r=fi();function o(a){return n(a)?e(r(a)):t(a)}return Rl=o,Rl}var Pl,Cg;function F0(){if(Cg)return Pl;Cg=1;var e=jM(),t=VM(),n=hi(),r=Nt(),o=zM();function a(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):o(i)}return Pl=a,Pl}var Ol,Sg;function XM(){if(Sg)return Ol;Sg=1;function e(t,n,r,o){for(var a=t.length,i=r+(o?1:-1);o?i--:++i<a;)if(n(t[i],i,t))return i;return-1}return Ol=e,Ol}var Tl,Ig;function YM(){if(Ig)return Tl;Ig=1;function e(t){return t!==t}return Tl=e,Tl}var _l,Eg;function ZM(){if(Eg)return _l;Eg=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return _l=e,_l}var Ml,Ag;function qM(){if(Ag)return Ml;Ag=1;var e=XM(),t=YM(),n=ZM();function r(o,a,i){return a===a?n(o,a,i):e(o,t,i)}return Ml=r,Ml}var Dl,Rg;function UM(){if(Rg)return Dl;Rg=1;var e=qM();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Dl=t,Dl}var Nl,Pg;function JM(){if(Pg)return Nl;Pg=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return Nl=e,Nl}var kl,Og;function KM(){if(Og)return kl;Og=1;function e(){}return kl=e,kl}var Fl,Tg;function QM(){if(Tg)return Fl;Tg=1;var e=M0(),t=KM(),n=wf(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return Fl=o,Fl}var Bl,_g;function eD(){if(_g)return Bl;_g=1;var e=E0(),t=UM(),n=JM(),r=A0(),o=QM(),a=wf(),i=200;function s(c,l,u){var d=-1,f=t,g=c.length,b=!0,m=[],h=m;if(u)b=!1,f=n;else if(g>=i){var v=l?null:o(c);if(v)return a(v);b=!1,f=r,h=new e}else h=l?[]:m;e:for(;++d<g;){var x=c[d],w=l?l(x):x;if(x=u||x!==0?x:0,b&&w===w){for(var C=h.length;C--;)if(h[C]===w)continue e;l&&h.push(w),m.push(x)}else f(h,w,u)||(h!==m&&h.push(w),m.push(x))}return m}return Bl=s,Bl}var jl,Mg;function tD(){if(Mg)return jl;Mg=1;var e=F0(),t=eD();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return jl=n,jl}var nD=tD();const Dg=Ut(nD);function B0(e,t,n){return t===!0?Dg(e,n):Ra(t)?Dg(e,t):e}function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}var rD=["ref"];function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(n),!0).forEach(function(r){gi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G0(r.key),r)}}function aD(e,t,n){return t&&kg(e.prototype,t),n&&kg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iD(e,t,n){return t=Ma(t),sD(e,j0()?Reflect.construct(t,n||[],Ma(e).constructor):t.apply(e,n))}function sD(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cD(e)}function cD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j0=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ma(e)}function lD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rd(e,t)}function rd(e,t){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},rd(e,t)}function gi(e,t,n){return t=G0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G0(e){var t=uD(e,"string");return pr(t)=="symbol"?t:t+""}function uD(e,t){if(pr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dD(e,t){if(e==null)return{};var n=fD(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pD(e){return e.value}function mD(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var n=dD(t,rD);return E.createElement(xf,n)}var Fg=1,Af=(function(e){function t(){var n;oD(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=iD(this,t,[].concat(o)),gi(n,"lastBoundingBox",{width:-1,height:-1}),n}return lD(t,e),aD(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>Fg||Math.abs(o.height-this.lastBoundingBox.height)>Fg)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?sn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,c=o.margin,l=o.chartWidth,u=o.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(i==="center"&&a==="vertical"){var g=this.getBBoxSnapshot();d={left:((l||0)-g.width)/2}}else d=i==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var b=this.getBBoxSnapshot();f={top:((u||0)-b.height)/2}}else f=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return sn(sn({},d),f)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,i=o.width,s=o.height,c=o.wrapperStyle,l=o.payloadUniqBy,u=o.payload,d=sn(sn({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return E.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){r.wrapperNode=g}},mD(a,sn(sn({},this.props),{},{payload:B0(u,l,pD)})))}}],[{key:"getWithHeight",value:function(r,o){var a=sn(sn({},this.defaultProps),r.props),i=a.layout;return i==="vertical"&&Pt(r.props.height)?{height:r.props.height}:i==="horizontal"?{width:r.props.width||o}:null}}])})(E.PureComponent);gi(Af,"displayName","Legend");gi(Af,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Gl,Bg;function hD(){if(Bg)return Gl;Bg=1;var e=Po(),t=Cf(),n=Nt(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Gl=o,Gl}var Ll,jg;function gD(){if(jg)return Ll;jg=1;var e=P0(),t=hD();function n(r,o,a,i,s){var c=-1,l=r.length;for(a||(a=t),s||(s=[]);++c<l;){var u=r[c];o>0&&a(u)?o>1?n(u,o-1,a,i,s):e(s,u):i||(s[s.length]=u)}return s}return Ll=n,Ll}var Wl,Gg;function bD(){if(Gg)return Wl;Gg=1;function e(t){return function(n,r,o){for(var a=-1,i=Object(n),s=o(n),c=s.length;c--;){var l=s[t?c:++a];if(r(i[l],l,i)===!1)break}return n}}return Wl=e,Wl}var Vl,Lg;function vD(){if(Lg)return Vl;Lg=1;var e=bD(),t=e();return Vl=t,Vl}var Hl,Wg;function yD(){if(Wg)return Hl;Wg=1;var e=vD(),t=Ef();function n(r,o){return r&&e(r,o,t)}return Hl=n,Hl}var $l,Vg;function xD(){if(Vg)return $l;Vg=1;var e=mi();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var i=o.length,s=r?i:-1,c=Object(o);(r?s--:++s<i)&&a(c[s],s,c)!==!1;);return o}}return $l=t,$l}var zl,Hg;function wD(){if(Hg)return zl;Hg=1;var e=yD(),t=xD(),n=t(e);return zl=n,zl}var Xl,$g;function CD(){if($g)return Xl;$g=1;var e=wD(),t=mi();function n(r,o){var a=-1,i=t(r)?Array(r.length):[];return e(r,function(s,c,l){i[++a]=o(s,c,l)}),i}return Xl=n,Xl}var Yl,zg;function SD(){if(zg)return Yl;zg=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Yl=e,Yl}var Zl,Xg;function ID(){if(Xg)return Zl;Xg=1;var e=Oo();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,i=n===n,s=e(n),c=r!==void 0,l=r===null,u=r===r,d=e(r);if(!l&&!d&&!s&&n>r||s&&c&&u&&!l&&!d||a&&c&&u||!o&&u||!i)return 1;if(!a&&!s&&!d&&n<r||d&&o&&i&&!a&&!s||l&&o&&i||!c&&i||!u)return-1}return 0}return Zl=t,Zl}var ql,Yg;function ED(){if(Yg)return ql;Yg=1;var e=ID();function t(n,r,o){for(var a=-1,i=n.criteria,s=r.criteria,c=i.length,l=o.length;++a<c;){var u=e(i[a],s[a]);if(u){if(a>=l)return u;var d=o[a];return u*(d=="desc"?-1:1)}}return n.index-r.index}return ql=t,ql}var Ul,Zg;function AD(){if(Zg)return Ul;Zg=1;var e=a0(),t=vf(),n=F0(),r=CD(),o=SD(),a=T0(),i=ED(),s=hi(),c=Nt();function l(u,d,f){d.length?d=e(d,function(m){return c(m)?function(h){return t(h,m.length===1?m[0]:m)}:m}):d=[s];var g=-1;d=e(d,a(n));var b=r(u,function(m,h,v){var x=e(d,function(w){return w(m)});return{criteria:x,index:++g,value:m}});return o(b,function(m,h){return i(m,h,f)})}return Ul=l,Ul}var Jl,qg;function RD(){if(qg)return Jl;qg=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Jl=e,Jl}var Kl,Ug;function PD(){if(Ug)return Kl;Ug=1;var e=RD(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var i=arguments,s=-1,c=t(i.length-o,0),l=Array(c);++s<c;)l[s]=i[o+s];s=-1;for(var u=Array(o+1);++s<o;)u[s]=i[s];return u[o]=a(l),e(r,this,u)}}return Kl=n,Kl}var Ql,Jg;function OD(){if(Jg)return Ql;Jg=1;function e(t){return function(){return t}}return Ql=e,Ql}var eu,Kg;function TD(){if(Kg)return eu;Kg=1;var e=$n(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return eu=t,eu}var tu,Qg;function _D(){if(Qg)return tu;Qg=1;var e=OD(),t=TD(),n=hi(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return tu=r,tu}var nu,eb;function MD(){if(eb)return nu;eb=1;var e=800,t=16,n=Date.now;function r(o){var a=0,i=0;return function(){var s=n(),c=t-(s-i);if(i=s,c>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return nu=r,nu}var ru,tb;function DD(){if(tb)return ru;tb=1;var e=_D(),t=MD(),n=t(e);return ru=n,ru}var ou,nb;function ND(){if(nb)return ou;nb=1;var e=hi(),t=PD(),n=DD();function r(o,a){return n(t(o,a,e),o+"")}return ou=r,ou}var au,rb;function kD(){if(rb)return au;rb=1;var e=hf(),t=mi(),n=Sf(),r=Sn();function o(a,i,s){if(!r(s))return!1;var c=typeof i;return(c=="number"?t(s)&&n(i,s.length):c=="string"&&i in s)?e(s[i],a):!1}return au=o,au}var iu,ob;function FD(){if(ob)return iu;ob=1;var e=gD(),t=AD(),n=ND(),r=kD(),o=n(function(a,i){if(a==null)return[];var s=i.length;return s>1&&r(a,i[0],i[1])?i=[]:s>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return iu=o,iu}var BD=FD();const jD=Ut(BD);function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},od.apply(this,arguments)}function GD(e,t){return HD(e)||VD(e,t)||WD(e,t)||LD()}function LD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WD(e,t){if(e){if(typeof e=="string")return ab(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ab(e,t)}}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function HD(e){if(Array.isArray(e))return e}function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(n),!0).forEach(function(r){$D(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $D(e,t,n){return t=zD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=XD(e,"string");return co(t)=="symbol"?t:t+""}function XD(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YD(e){return Array.isArray(e)&&Pa(e[0])&&Pa(e[1])?e.join(" ~ "):e}var ZD=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,c=t.labelStyle,l=c===void 0?{}:c,u=t.payload,d=t.formatter,f=t.itemSorter,g=t.wrapperClassName,b=t.labelClassName,m=t.label,h=t.labelFormatter,v=t.accessibilityLayer,x=v===void 0?!1:v,w=function(){if(u&&u.length){var B={padding:0,margin:0},O=(f?jD(u,f):u).map(function(L,W){if(L.type==="none")return null;var j=su({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},s),$=L.formatter||d||YD,N=L.value,V=L.name,U=N,ee=V;if($&&U!=null&&ee!=null){var k=$(N,V,L,W,u);if(Array.isArray(k)){var H=GD(k,2);U=H[0],ee=H[1]}else U=k}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:j},Pa(ee)?E.createElement("span",{className:"recharts-tooltip-item-name"},ee):null,Pa(ee)?E.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,E.createElement("span",{className:"recharts-tooltip-item-value"},U),E.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:B},O)}return null},C=su({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),S=su({margin:0},l),A=!zT(m),I=A?m:"",R=dn("recharts-default-tooltip",g),P=dn("recharts-tooltip-label",b);A&&h&&u!==void 0&&u!==null&&(I=h(m,u));var M=x?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",od({className:R,style:C},M),E.createElement("p",{className:P,style:S},E.isValidElement(I)?I:"".concat(I)),w())};function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function ea(e,t,n){return t=qD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qD(e){var t=UD(e,"string");return lo(t)=="symbol"?t:t+""}function UD(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Br="recharts-tooltip-wrapper",JD={visibility:"hidden"};function KD(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return dn(Br,ea(ea(ea(ea({},"".concat(Br,"-right"),Pt(n)&&t&&Pt(t.x)&&n>=t.x),"".concat(Br,"-left"),Pt(n)&&t&&Pt(t.x)&&n<t.x),"".concat(Br,"-bottom"),Pt(r)&&t&&Pt(t.y)&&r>=t.y),"".concat(Br,"-top"),Pt(r)&&t&&Pt(t.y)&&r<t.y))}function sb(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Pt(a[r]))return a[r];var u=n[r]-s-o,d=n[r]+o;if(t[r])return i[r]?u:d;if(i[r]){var f=u,g=c[r];return f<g?Math.max(d,c[r]):Math.max(u,c[r])}var b=d+s,m=c[r]+l;return b>m?Math.max(u,c[r]):Math.max(d,c[r])}function QD(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function eN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,u,d;return i.height>0&&i.width>0&&n?(u=sb({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:c,viewBoxDimension:c.width}),d=sb({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:c,viewBoxDimension:c.height}),l=QD({translateX:u,translateY:d,useTranslate3d:s})):l=JD,{cssProperties:l,cssClasses:KD({translateX:u,translateY:d,coordinate:n})}}function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(n),!0).forEach(function(r){id(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W0(r.key),r)}}function rN(e,t,n){return t&&nN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oN(e,t,n){return t=Da(t),aN(e,L0()?Reflect.construct(t,n||[],Da(e).constructor):t.apply(e,n))}function aN(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iN(e)}function iN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L0=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Da(e)}function sN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ad(e,t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ad(e,t)}function id(e,t,n){return t=W0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W0(e){var t=cN(e,"string");return mr(t)=="symbol"?t:t+""}function cN(e,t){if(mr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ub=1,lN=(function(e){function t(){var n;tN(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=oN(this,t,[].concat(o)),id(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),id(n,"handleKeyDown",function(i){if(i.key==="Escape"){var s,c,l,u;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(u=n.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&l!==void 0?l:0}})}}),n}return sN(t,e),rN(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ub||Math.abs(r.height-this.state.lastBoundingBox.height)>ub)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.children,u=o.coordinate,d=o.hasPayload,f=o.isAnimationActive,g=o.offset,b=o.position,m=o.reverseDirection,h=o.useTranslate3d,v=o.viewBox,x=o.wrapperStyle,w=eN({allowEscapeViewBox:i,coordinate:u,offsetTopLeft:g,position:b,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:v}),C=w.cssClasses,S=w.cssProperties,A=lb(lb({transition:f&&a?"transform ".concat(s,"ms ").concat(c):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return E.createElement("div",{tabIndex:-1,className:C,style:A,ref:function(R){r.wrapperNode=R}},l)}}])})(E.PureComponent),uN=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},dN={isSsr:uN()};function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?db(Object(n),!0).forEach(function(r){Rf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H0(r.key),r)}}function mN(e,t,n){return t&&pN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hN(e,t,n){return t=Na(t),gN(e,V0()?Reflect.construct(t,n||[],Na(e).constructor):t.apply(e,n))}function gN(e,t){if(t&&(hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bN(e)}function bN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V0=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Na(e)}function vN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sd(e,t)}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},sd(e,t)}function Rf(e,t,n){return t=H0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(e){var t=yN(e,"string");return hr(t)=="symbol"?t:t+""}function yN(e,t){if(hr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xN(e){return e.dataKey}function wN(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(ZD,t)}var Pf=(function(e){function t(){return fN(this,t),hN(this,t,arguments)}return vN(t,e),mN(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.content,u=o.coordinate,d=o.filterNull,f=o.isAnimationActive,g=o.offset,b=o.payload,m=o.payloadUniqBy,h=o.position,v=o.reverseDirection,x=o.useTranslate3d,w=o.viewBox,C=o.wrapperStyle,S=b??[];d&&S.length&&(S=B0(b.filter(function(I){return I.value!=null&&(I.hide!==!0||r.props.includeHidden)}),m,xN));var A=S.length>0;return E.createElement(lN,{allowEscapeViewBox:i,animationDuration:s,animationEasing:c,isAnimationActive:f,active:a,coordinate:u,hasPayload:A,offset:g,position:h,reverseDirection:v,useTranslate3d:x,viewBox:w,wrapperStyle:C},wN(l,fb(fb({},this.props),{},{payload:S})))}}])})(E.PureComponent);Rf(Pf,"displayName","Tooltip");Rf(Pf,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!dN.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var cu,pb;function CN(){if(pb)return cu;pb=1;var e=Kt(),t=function(){return e.Date.now()};return cu=t,cu}var lu,mb;function SN(){if(mb)return lu;mb=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return lu=t,lu}var uu,hb;function IN(){if(hb)return uu;hb=1;var e=SN(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return uu=n,uu}var du,gb;function EN(){if(gb)return du;gb=1;var e=IN(),t=Sn(),n=Oo(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=t(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=a.test(l);return d||i.test(l)?s(l.slice(2),d?2:8):o.test(l)?r:+l}return du=c,du}var fu,bb;function AN(){if(bb)return fu;bb=1;var e=Sn(),t=CN(),n=EN(),r="Expected a function",o=Math.max,a=Math.min;function i(s,c,l){var u,d,f,g,b,m,h=0,v=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(r);c=n(c)||0,e(l)&&(v=!!l.leading,x="maxWait"in l,f=x?o(n(l.maxWait)||0,c):f,w="trailing"in l?!!l.trailing:w);function C(O){var L=u,W=d;return u=d=void 0,h=O,g=s.apply(W,L),g}function S(O){return h=O,b=setTimeout(R,c),v?C(O):g}function A(O){var L=O-m,W=O-h,j=c-L;return x?a(j,f-W):j}function I(O){var L=O-m,W=O-h;return m===void 0||L>=c||L<0||x&&W>=f}function R(){var O=t();if(I(O))return P(O);b=setTimeout(R,A(O))}function P(O){return b=void 0,w&&u?C(O):(u=d=void 0,g)}function M(){b!==void 0&&clearTimeout(b),h=0,u=m=d=b=void 0}function T(){return b===void 0?g:P(t())}function B(){var O=t(),L=I(O);if(u=arguments,d=this,m=O,L){if(b===void 0)return S(m);if(x)return clearTimeout(b),b=setTimeout(R,c),C(m)}return b===void 0&&(b=setTimeout(R,c)),g}return B.cancel=M,B.flush=T,B}return fu=i,fu}var pu,vb;function RN(){if(vb)return pu;vb=1;var e=AN(),t=Sn(),n="Expected a function";function r(o,a,i){var s=!0,c=!0;if(typeof o!="function")throw new TypeError(n);return t(i)&&(s="leading"in i?!!i.leading:s,c="trailing"in i?!!i.trailing:c),e(o,a,{leading:s,maxWait:a,trailing:c})}return pu=r,pu}var PN=RN();const ON=Ut(PN);function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(n),!0).forEach(function(r){TN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TN(e,t,n){return t=_N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _N(e){var t=MN(e,"string");return uo(t)=="symbol"?t:t+""}function MN(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DN(e,t){return BN(e)||FN(e,t)||kN(e,t)||NN()}function NN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kN(e,t){if(e){if(typeof e=="string")return xb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xb(e,t)}}function xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FN(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function BN(e){if(Array.isArray(e))return e}var jN=E.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,i=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,l=e.minWidth,u=l===void 0?0:l,d=e.minHeight,f=e.maxHeight,g=e.children,b=e.debounce,m=b===void 0?0:b,h=e.id,v=e.className,x=e.onResize,w=e.style,C=w===void 0?{}:w,S=E.useRef(null),A=E.useRef();A.current=x,E.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var I=E.useState({containerWidth:o.width,containerHeight:o.height}),R=DN(I,2),P=R[0],M=R[1],T=E.useCallback(function(O,L){M(function(W){var j=Math.round(O),$=Math.round(L);return W.containerWidth===j&&W.containerHeight===$?W:{containerWidth:j,containerHeight:$}})},[]);E.useEffect(function(){var O=function(V){var U,ee=V[0].contentRect,k=ee.width,H=ee.height;T(k,H),(U=A.current)===null||U===void 0||U.call(A,k,H)};m>0&&(O=ON(O,m,{trailing:!0,leading:!1}));var L=new ResizeObserver(O),W=S.current.getBoundingClientRect(),j=W.width,$=W.height;return T(j,$),L.observe(S.current),function(){L.disconnect()}},[T,m]);var B=E.useMemo(function(){var O=P.containerWidth,L=P.containerHeight;if(O<0||L<0)return null;ma(Ko(i)||Ko(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,i,c),ma(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=Ko(i)?O:i,j=Ko(c)?L:c;n&&n>0&&(W?j=W/n:j&&(W=j*n),f&&j>f&&(j=f)),ma(W>0||j>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
9
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
+
height and width.`,W,j,i,c,u,d,n);var $=!Array.isArray(g)&&c_(g.type).endsWith("Chart");return E.Children.map(g,function(N){return E.isValidElement(N)?E.cloneElement(N,ta({width:W,height:j},$?{style:ta({height:"100%",width:"100%",maxHeight:j,maxWidth:W},N.props.style)}:{})):N})},[n,g,c,f,d,u,P,i]);return E.createElement("div",{id:h?"".concat(h):void 0,className:dn("recharts-responsive-container",v),style:ta(ta({},C),{},{width:i,height:c,minWidth:u,minHeight:d,maxHeight:f}),ref:S},B)}),na={exports:{}},Ae={};var wb;function GN(){if(wb)return Ae;wb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var A=S.$$typeof;switch(A){case t:switch(S=S.type,S){case c:case l:case r:case a:case o:case d:return S;default:switch(S=S&&S.$$typeof,S){case s:case u:case b:case g:case i:return S;default:return A}}case n:return A}}}function C(S){return w(S)===l}return Ae.AsyncMode=c,Ae.ConcurrentMode=l,Ae.ContextConsumer=s,Ae.ContextProvider=i,Ae.Element=t,Ae.ForwardRef=u,Ae.Fragment=r,Ae.Lazy=b,Ae.Memo=g,Ae.Portal=n,Ae.Profiler=a,Ae.StrictMode=o,Ae.Suspense=d,Ae.isAsyncMode=function(S){return C(S)||w(S)===c},Ae.isConcurrentMode=C,Ae.isContextConsumer=function(S){return w(S)===s},Ae.isContextProvider=function(S){return w(S)===i},Ae.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ae.isForwardRef=function(S){return w(S)===u},Ae.isFragment=function(S){return w(S)===r},Ae.isLazy=function(S){return w(S)===b},Ae.isMemo=function(S){return w(S)===g},Ae.isPortal=function(S){return w(S)===n},Ae.isProfiler=function(S){return w(S)===a},Ae.isStrictMode=function(S){return w(S)===o},Ae.isSuspense=function(S){return w(S)===d},Ae.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===l||S===a||S===o||S===d||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===g||S.$$typeof===i||S.$$typeof===s||S.$$typeof===u||S.$$typeof===h||S.$$typeof===v||S.$$typeof===x||S.$$typeof===m)},Ae.typeOf=w,Ae}var Re={};var Cb;function LN(){return Cb||(Cb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(F){return typeof F=="string"||typeof F=="function"||F===r||F===l||F===a||F===o||F===d||F===f||typeof F=="object"&&F!==null&&(F.$$typeof===b||F.$$typeof===g||F.$$typeof===i||F.$$typeof===s||F.$$typeof===u||F.$$typeof===h||F.$$typeof===v||F.$$typeof===x||F.$$typeof===m)}function C(F){if(typeof F=="object"&&F!==null){var de=F.$$typeof;switch(de){case t:var _=F.type;switch(_){case c:case l:case r:case a:case o:case d:return _;default:var Q=_&&_.$$typeof;switch(Q){case s:case u:case b:case g:case i:return Q;default:return de}}case n:return de}}}var S=c,A=l,I=s,R=i,P=t,M=u,T=r,B=b,O=g,L=n,W=a,j=o,$=d,N=!1;function V(F){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(F)||C(F)===c}function U(F){return C(F)===l}function ee(F){return C(F)===s}function k(F){return C(F)===i}function H(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function Y(F){return C(F)===u}function z(F){return C(F)===r}function J(F){return C(F)===b}function G(F){return C(F)===g}function q(F){return C(F)===n}function ae(F){return C(F)===a}function re(F){return C(F)===o}function te(F){return C(F)===d}Re.AsyncMode=S,Re.ConcurrentMode=A,Re.ContextConsumer=I,Re.ContextProvider=R,Re.Element=P,Re.ForwardRef=M,Re.Fragment=T,Re.Lazy=B,Re.Memo=O,Re.Portal=L,Re.Profiler=W,Re.StrictMode=j,Re.Suspense=$,Re.isAsyncMode=V,Re.isConcurrentMode=U,Re.isContextConsumer=ee,Re.isContextProvider=k,Re.isElement=H,Re.isForwardRef=Y,Re.isFragment=z,Re.isLazy=J,Re.isMemo=G,Re.isPortal=q,Re.isProfiler=ae,Re.isStrictMode=re,Re.isSuspense=te,Re.isValidElementType=w,Re.typeOf=C})()),Re}var Sb;function WN(){return Sb||(Sb=1,process.env.NODE_ENV==="production"?na.exports=GN():na.exports=LN()),na.exports}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}function VN(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cd(e,t)}function HN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const $N={light:"",dark:".dark"},$0=p.createContext(null);function z0(){const e=p.useContext($0);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function zN({id:e,className:t,children:n,config:r,...o}){const a=p.useId(),i=`chart-${e||a.replace(/:/g,"")}`;return y.jsx($0.Provider,{value:{config:r},children:y.jsxs("div",{"data-slot":"chart","data-chart":i,className:D("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...o,children:[y.jsx(X0,{id:i,config:r}),y.jsx(jN,{children:n})]})})}const X0=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?y.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries($N).map(([r,o])=>`
|
|
11
|
+
${o} [data-chart=${e}] {
|
|
12
|
+
${n.map(([a,i])=>{const s=i.theme?.[r]||i.color;return s?` --color-${a}: ${s};`:null}).join(`
|
|
13
|
+
`)}
|
|
14
|
+
}
|
|
15
|
+
`).join(`
|
|
16
|
+
`)}}):null},XN=Pf;function YN({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){const{config:g}=z0(),b=p.useMemo(()=>{if(o||!t?.length)return null;const[h]=t,v=`${f||h?.dataKey||h?.name||"value"}`,x=ld(g,h,v),w=!f&&typeof i=="string"?g[i]?.label||i:x?.label;return s?y.jsx("div",{className:D("font-medium",c),children:s(w,t)}):w?y.jsx("div",{className:D("font-medium",c),children:w}):null},[i,s,t,o,c,g,f]);if(!e||!t?.length)return null;const m=t.length===1&&r!=="dot";return y.jsxs("div",{className:D("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",n),children:[m?null:b,y.jsx("div",{className:"grid gap-1.5",children:t.filter(h=>h.type!=="none").map((h,v)=>{const x=`${d||h.name||h.dataKey||"value"}`,w=ld(g,h,x),C=u||h.payload.fill||h.color;return y.jsx("div",{className:D("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",r==="dot"&&"items-center"),children:l&&h?.value!==void 0&&h.name?l(h.value,h.name,h,v,h.payload):y.jsxs(y.Fragment,{children:[w?.icon?y.jsx(w.icon,{}):!a&&y.jsx("div",{className:D("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":m&&r==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),y.jsxs("div",{className:D("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[y.jsxs("div",{className:"grid gap-1.5",children:[m?b:null,y.jsx("span",{className:"text-muted-foreground",children:w?.label||h.name})]}),h.value&&y.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:h.value.toLocaleString()})]})]})},h.dataKey)})})]})}const ZN=Af;function qN({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o}){const{config:a}=z0();return n?.length?y.jsx("div",{className:D("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.filter(i=>i.type!=="none").map(i=>{const s=`${o||i.dataKey||"value"}`,c=ld(a,i,s);return y.jsxs("div",{className:D("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[c?.icon&&!t?y.jsx(c.icon,{}):y.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:i.color}}),c?.label]},i.value)})}):null}function ld(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function To(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function _o(e){const[t,n]=p.useState(void 0);return ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bi="Checkbox",[UN]=ze(bi),[JN,Of]=UN(bi);function KN(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:c,required:l,value:u="on",internal_do_not_use_render:d}=e,[f,g]=et({prop:n,defaultProp:o??!1,onChange:c,caller:bi}),[b,m]=p.useState(null),[h,v]=p.useState(null),x=p.useRef(!1),w=b?!!i||!!b.closest("form"):!0,C={checked:f,disabled:a,setChecked:g,control:b,setControl:m,name:s,form:i,value:u,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:bn(o)?!1:o,isFormControl:w,bubbleInput:h,setBubbleInput:v};return y.jsx(JN,{scope:t,...C,children:QN(d)?d(C):r})}var Y0="CheckboxTrigger",Z0=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:g,bubbleInput:b}=Of(Y0,e),m=pe(o,u),h=p.useRef(c);return p.useEffect(()=>{const v=a?.form;if(v){const x=()=>d(h.current);return v.addEventListener("reset",x),()=>v.removeEventListener("reset",x)}},[a,d]),y.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":bn(c)?"mixed":c,"aria-required":l,"data-state":ex(c),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:m,onKeyDown:X(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:X(n,v=>{d(x=>bn(x)?!0:!x),b&&g&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});Z0.displayName=Y0;var q0=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return y.jsx(KN,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:f})=>y.jsxs(y.Fragment,{children:[y.jsx(Z0,{...d,ref:t,__scopeCheckbox:n}),f&&y.jsx(Q0,{__scopeCheckbox:n})]})})});q0.displayName=bi;var U0="CheckboxIndicator",J0=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Of(U0,n);return y.jsx(Xe,{present:r||bn(a.checked)||a.checked===!0,children:y.jsx(oe.span,{"data-state":ex(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});J0.displayName=U0;var K0="CheckboxBubbleInput",Q0=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:g}=Of(K0,e),b=pe(n,g),m=To(a),h=_o(r);p.useEffect(()=>{const x=f;if(!x)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,A=!o.current;if(m!==a&&S){const I=new Event("click",{bubbles:A});x.indeterminate=bn(a),S.call(x,bn(a)?!1:a),x.dispatchEvent(I)}},[f,m,a,o]);const v=p.useRef(bn(a)?!1:a);return y.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:b,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Q0.displayName=K0;function QN(e){return typeof e=="function"}function bn(e){return e==="indeterminate"}function ex(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}function ek({className:e,...t}){return y.jsx(q0,{"data-slot":"checkbox",className:D("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:y.jsx(J0,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Y1,{className:"size-3.5"})})})}function tk({...e}){return y.jsx(Wv,{"data-slot":"collapsible",...e})}function nk({...e}){return y.jsx(Wd,{"data-slot":"collapsible-trigger",...e})}function rk({...e}){return y.jsx(Hd,{"data-slot":"collapsible-content",...e})}var Ib=1,ok=.9,ak=.8,ik=.17,mu=.1,hu=.999,sk=.9999,ck=.99,lk=/[\\\/_+.#"@\[\(\{&]/,uk=/[\\\/_+.#"@\[\(\{&]/g,dk=/[\s-]/,tx=/[\s-]/g;function ud(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?Ib:ck;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var c=r.charAt(a),l=n.indexOf(c,o),u=0,d,f,g,b;l>=0;)d=ud(e,t,n,r,l+1,a+1,i),d>u&&(l===o?d*=Ib:lk.test(e.charAt(l-1))?(d*=ak,g=e.slice(o,l-1).match(uk),g&&o>0&&(d*=Math.pow(hu,g.length))):dk.test(e.charAt(l-1))?(d*=ok,b=e.slice(o,l-1).match(tx),b&&o>0&&(d*=Math.pow(hu,b.length))):(d*=ik,o>0&&(d*=Math.pow(hu,l-o))),e.charAt(l)!==t.charAt(a)&&(d*=sk)),(d<mu&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=ud(e,t,n,r,l+1,a+2,i),f*mu>d&&(d=f*mu)),d>u&&(u=d),l=n.indexOf(c,l+1);return i[s]=u,u}function Eb(e){return e.toLowerCase().replace(tx," ")}function fk(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ud(e,t,Eb(e),Eb(t),0,0,{})}function pk(e,t=globalThis?.document){const n=qe(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mk="DismissableLayer",dd="dismissableLayer.update",hk="dismissableLayer.pointerDownOutside",gk="dismissableLayer.focusOutside",Ab,nx=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zn=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=p.useContext(nx),[u,d]=p.useState(null),f=u?.ownerDocument??globalThis?.document,[,g]=p.useState({}),b=pe(t,I=>d(I)),m=Array.from(l.layers),[h]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(h),x=u?m.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,S=yk(I=>{const R=I.target,P=[...l.branches].some(M=>M.contains(R));!C||P||(o?.(I),i?.(I),I.defaultPrevented||s?.())},f),A=xk(I=>{const R=I.target;[...l.branches].some(M=>M.contains(R))||(a?.(I),i?.(I),I.defaultPrevented||s?.())},f);return pk(I=>{x===l.layers.size-1&&(r?.(I),!I.defaultPrevented&&s&&(I.preventDefault(),s()))},f),p.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ab=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Rb(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ab)}},[u,f,n,l]),p.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Rb())},[u,l]),p.useEffect(()=>{const I=()=>g({});return document.addEventListener(dd,I),()=>document.removeEventListener(dd,I)},[]),y.jsx(oe.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,A.onFocusCapture),onBlurCapture:X(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,S.onPointerDownCapture)})});zn.displayName=mk;var bk="DismissableLayerBranch",vk=p.forwardRef((e,t)=>{const n=p.useContext(nx),r=p.useRef(null),o=pe(t,r);return p.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),y.jsx(oe.div,{...e,ref:o})});vk.displayName=bk;function yk(e,t=globalThis?.document){const n=qe(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){rx(hk,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xk(e,t=globalThis?.document){const n=qe(e),r=p.useRef(!1);return p.useEffect(()=>{const o=a=>{a.target&&!r.current&&rx(gk,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Rb(){const e=new CustomEvent(dd);document.dispatchEvent(e)}function rx(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bv(o,a):o.dispatchEvent(a)}var gu="focusScope.autoFocusOnMount",bu="focusScope.autoFocusOnUnmount",Pb={bubbles:!1,cancelable:!0},wk="FocusScope",Mo=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=p.useState(null),l=qe(o),u=qe(a),d=p.useRef(null),f=pe(t,m=>c(m)),g=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let m=function(w){if(g.paused||!s)return;const C=w.target;s.contains(C)?d.current=C:gn(d.current,{select:!0})},h=function(w){if(g.paused||!s)return;const C=w.relatedTarget;C!==null&&(s.contains(C)||gn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&gn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const x=new MutationObserver(v);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),x.disconnect()}}},[r,s,g.paused]),p.useEffect(()=>{if(s){Tb.add(g);const m=document.activeElement;if(!s.contains(m)){const v=new CustomEvent(gu,Pb);s.addEventListener(gu,l),s.dispatchEvent(v),v.defaultPrevented||(Ck(Rk(ox(s)),{select:!0}),document.activeElement===m&&gn(s))}return()=>{s.removeEventListener(gu,l),setTimeout(()=>{const v=new CustomEvent(bu,Pb);s.addEventListener(bu,u),s.dispatchEvent(v),v.defaultPrevented||gn(m??document.body,{select:!0}),s.removeEventListener(bu,u),Tb.remove(g)},0)}}},[s,l,u,g]);const b=p.useCallback(m=>{if(!n&&!r||g.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(h&&v){const x=m.currentTarget,[w,C]=Sk(x);w&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&gn(w,{select:!0})):m.shiftKey&&v===w&&(m.preventDefault(),n&&gn(C,{select:!0})):v===x&&m.preventDefault()}},[n,r,g.paused]);return y.jsx(oe.div,{tabIndex:-1,...i,ref:f,onKeyDown:b})});Mo.displayName=wk;function Ck(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function Sk(e){const t=ox(e),n=Ob(t,e),r=Ob(t.reverse(),e);return[n,r]}function ox(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ob(e,t){for(const n of e)if(!Ik(n,{upTo:t}))return n}function Ik(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ek(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ek(e)&&t&&e.select()}}var Tb=Ak();function Ak(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=_b(e,t),e.unshift(t)},remove(t){e=_b(e,t),e[0]?.resume()}}}function _b(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Rk(e){return e.filter(t=>t.tagName!=="A")}var Pk="Portal",Tf=p.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=p.useState(!1);ke(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Gd.createPortal(y.jsx(oe.div,{...r,ref:t}),i):null});Tf.displayName=Pk;var vu=0;function vi(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mb()),document.body.insertAdjacentElement("beforeend",e[1]??Mb()),vu++,()=>{vu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vu--}},[])}function Mb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Vt.apply(this,arguments)};function ax(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ok(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ha="right-scroll-bar-position",ga="width-before-scroll-bar",Tk="with-scroll-bars-hidden",_k="--removed-body-scroll-bar-size";function yu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mk(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Dk=typeof window<"u"?p.useLayoutEffect:p.useEffect,Db=new WeakMap;function Nk(e,t){var n=Mk(null,function(r){return e.forEach(function(o){return yu(o,r)})});return Dk(function(){var r=Db.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||yu(s,null)}),a.forEach(function(s){o.has(s)||yu(s,i)})}Db.set(n,e)},[e]),n}function kk(e){return e}function Fk(e,t){t===void 0&&(t=kk);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var u=i;i=[],u.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){i.push(u),l()},filter:function(u){return i=i.filter(u),n}}}};return o}function Bk(e){e===void 0&&(e={});var t=Fk(null);return t.options=Vt({async:!0,ssr:!1},e),t}var ix=function(e){var t=e.sideCar,n=ax(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Vt({},n))};ix.isSideCarExport=!0;function jk(e,t){return e.useMedium(t),ix}var sx=Bk(),xu=function(){},yi=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:xu,onWheelCapture:xu,onTouchMoveCapture:xu}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,g=e.noRelative,b=e.noIsolation,m=e.inert,h=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,C=ax(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=Nk([n,t]),I=Vt(Vt({},C),o);return p.createElement(p.Fragment,null,u&&p.createElement(S,{sideCar:sx,removeScrollBar:l,shards:d,noRelative:g,noIsolation:b,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?p.cloneElement(p.Children.only(s),Vt(Vt({},I),{ref:A})):p.createElement(x,Vt({},I,{className:c,ref:A}),s))});yi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yi.classNames={fullWidth:ga,zeroRight:ha};var Gk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Lk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gk();return t&&e.setAttribute("nonce",t),e}function Wk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Lk())&&(Wk(t,n),Vk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$k=function(){var e=Hk();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cx=function(){var e=$k(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},zk={left:0,top:0,right:0,gap:0},wu=function(e){return parseInt(e||"",10)||0},Xk=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wu(n),wu(r),wu(o)]},Yk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zk;var t=Xk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Zk=cx(),sr="data-scroll-locked",qk=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
17
|
+
.`.concat(Tk,` {
|
|
18
|
+
overflow: hidden `).concat(r,`;
|
|
19
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
20
|
+
}
|
|
21
|
+
body[`).concat(sr,`] {
|
|
22
|
+
overflow: hidden `).concat(r,`;
|
|
23
|
+
overscroll-behavior: contain;
|
|
24
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
25
|
+
padding-left: `.concat(o,`px;
|
|
26
|
+
padding-top: `).concat(a,`px;
|
|
27
|
+
padding-right: `).concat(i,`px;
|
|
28
|
+
margin-left:0;
|
|
29
|
+
margin-top:0;
|
|
30
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
31
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.`).concat(ha,` {
|
|
35
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.`).concat(ga,` {
|
|
39
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.`).concat(ha," .").concat(ha,` {
|
|
43
|
+
right: 0 `).concat(r,`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.`).concat(ga," .").concat(ga,` {
|
|
47
|
+
margin-right: 0 `).concat(r,`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
body[`).concat(sr,`] {
|
|
51
|
+
`).concat(_k,": ").concat(s,`px;
|
|
52
|
+
}
|
|
53
|
+
`)},Nb=function(){var e=parseInt(document.body.getAttribute(sr)||"0",10);return isFinite(e)?e:0},Uk=function(){p.useEffect(function(){return document.body.setAttribute(sr,(Nb()+1).toString()),function(){var e=Nb()-1;e<=0?document.body.removeAttribute(sr):document.body.setAttribute(sr,e.toString())}},[])},Jk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Uk();var a=p.useMemo(function(){return Yk(o)},[o]);return p.createElement(Zk,{styles:qk(a,!t,o,n?"":"!important")})},fd=!1;if(typeof window<"u")try{var ra=Object.defineProperty({},"passive",{get:function(){return fd=!0,!0}});window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{fd=!1}var Qn=fd?{passive:!1}:!1,Kk=function(e){return e.tagName==="TEXTAREA"},lx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Kk(e)&&n[t]==="visible")},Qk=function(e){return lx(e,"overflowY")},e2=function(e){return lx(e,"overflowX")},kb=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ux(e,r);if(o){var a=dx(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},n2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ux=function(e,t){return e==="v"?Qk(t):e2(t)},dx=function(e,t){return e==="v"?t2(t):n2(t)},r2=function(e,t){return e==="h"&&t==="rtl"?-1:1},o2=function(e,t,n,r,o){var a=r2(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,u=i>0,d=0,f=0;do{if(!s)break;var g=dx(e,s),b=g[0],m=g[1],h=g[2],v=m-h-a*b;(b||v)&&ux(e,s)&&(d+=v,f+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fb=function(e){return[e.deltaX,e.deltaY]},Bb=function(e){return e&&"current"in e?e.current:e},a2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},i2=function(e){return`
|
|
54
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
55
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
56
|
+
`)},s2=0,er=[];function c2(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(s2++)[0],a=p.useState(cx)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Ok([e.lockRef.current],(e.shards||[]).map(Bb),!0).filter(Boolean);return m.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(m,h){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var v=oa(m),x=n.current,w="deltaX"in m?m.deltaX:x[0]-v[0],C="deltaY"in m?m.deltaY:x[1]-v[1],S,A=m.target,I=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&I==="h"&&A.type==="range")return!1;var R=window.getSelection(),P=R&&R.anchorNode,M=P?P===A||P.contains(A):!1;if(M)return!1;var T=kb(I,A);if(!T)return!0;if(T?S=I:(S=I==="v"?"h":"v",T=kb(I,A)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||C)&&(r.current=S),!S)return!0;var B=r.current||S;return o2(B,h,m,B==="h"?w:C)},[]),c=p.useCallback(function(m){var h=m;if(!(!er.length||er[er.length-1]!==a)){var v="deltaY"in h?Fb(h):oa(h),x=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&a2(S.delta,v)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(Bb).filter(Boolean).filter(function(S){return S.contains(h.target)}),C=w.length>0?s(h,w[0]):!i.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),l=p.useCallback(function(m,h,v,x){var w={name:m,delta:h,target:v,should:x,shadowParent:l2(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=p.useCallback(function(m){n.current=oa(m),r.current=void 0},[]),d=p.useCallback(function(m){l(m.type,Fb(m),m.target,s(m,e.lockRef.current))},[]),f=p.useCallback(function(m){l(m.type,oa(m),m.target,s(m,e.lockRef.current))},[]);p.useEffect(function(){return er.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Qn),document.addEventListener("touchmove",c,Qn),document.addEventListener("touchstart",u,Qn),function(){er=er.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Qn),document.removeEventListener("touchmove",c,Qn),document.removeEventListener("touchstart",u,Qn)}},[]);var g=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(a,{styles:i2(o)}):null,g?p.createElement(Jk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function l2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const u2=jk(sx,c2);var Do=p.forwardRef(function(e,t){return p.createElement(yi,Vt({},e,{ref:t,sideCar:u2}))});Do.classNames=yi.classNames;var d2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tr=new WeakMap,aa=new WeakMap,ia={},Cu=0,fx=function(e){return e&&(e.host||fx(e.parentNode))},f2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fx(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},p2=function(e,t,n,r){var o=f2(t,Array.isArray(e)?e:[e]);ia[n]||(ia[n]=new WeakMap);var a=ia[n],i=[],s=new Set,c=new Set(o),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else try{var g=f.getAttribute(r),b=g!==null&&g!=="false",m=(tr.get(f)||0)+1,h=(a.get(f)||0)+1;tr.set(f,m),a.set(f,h),i.push(f),m===1&&b&&aa.set(f,!0),h===1&&f.setAttribute(n,"true"),b||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),s.clear(),Cu++,function(){i.forEach(function(d){var f=tr.get(d)-1,g=a.get(d)-1;tr.set(d,f),a.set(d,g),f||(aa.has(d)||d.removeAttribute(r),aa.delete(d)),g||d.removeAttribute(n)}),Cu--,Cu||(tr=new WeakMap,tr=new WeakMap,aa=new WeakMap,ia={})}},xi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=d2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),p2(r,o,n,"aria-hidden")):function(){return null}},wi="Dialog",[px]=ze(wi),[m2,Ft]=px(wi),mx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=p.useRef(null),c=p.useRef(null),[l,u]=et({prop:r,defaultProp:o??!1,onChange:a,caller:wi});return y.jsx(m2,{scope:t,triggerRef:s,contentRef:c,contentId:Le(),titleId:Le(),descriptionId:Le(),open:l,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),modal:i,children:n})};mx.displayName=wi;var hx="DialogTrigger",gx=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ft(hx,n),a=pe(t,o.triggerRef);return y.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Df(o.open),...r,ref:a,onClick:X(e.onClick,o.onOpenToggle)})});gx.displayName=hx;var _f="DialogPortal",[h2,bx]=px(_f,{forceMount:void 0}),vx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ft(_f,t);return y.jsx(h2,{scope:t,forceMount:n,children:p.Children.map(r,i=>y.jsx(Xe,{present:n||a.open,children:y.jsx(Tf,{asChild:!0,container:o,children:i})}))})};vx.displayName=_f;var ka="DialogOverlay",yx=p.forwardRef((e,t)=>{const n=bx(ka,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ft(ka,e.__scopeDialog);return a.modal?y.jsx(Xe,{present:r||a.open,children:y.jsx(b2,{...o,ref:t})}):null});yx.displayName=ka;var g2=Dn("DialogOverlay.RemoveScroll"),b2=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ft(ka,n);return y.jsx(Do,{as:g2,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(oe.div,{"data-state":Df(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kn="DialogContent",xx=p.forwardRef((e,t)=>{const n=bx(kn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ft(kn,e.__scopeDialog);return y.jsx(Xe,{present:r||a.open,children:a.modal?y.jsx(v2,{...o,ref:t}):y.jsx(y2,{...o,ref:t})})});xx.displayName=kn;var v2=p.forwardRef((e,t)=>{const n=Ft(kn,e.__scopeDialog),r=p.useRef(null),o=pe(t,n.contentRef,r);return p.useEffect(()=>{const a=r.current;if(a)return xi(a)},[]),y.jsx(wx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault())})}),y2=p.forwardRef((e,t)=>{const n=Ft(kn,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return y.jsx(wx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),wx=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ft(kn,n),c=p.useRef(null),l=pe(t,c);return vi(),y.jsxs(y.Fragment,{children:[y.jsx(Mo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:y.jsx(zn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Df(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(x2,{titleId:s.titleId}),y.jsx(C2,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Mf="DialogTitle",Cx=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ft(Mf,n);return y.jsx(oe.h2,{id:o.titleId,...r,ref:t})});Cx.displayName=Mf;var Sx="DialogDescription",Ix=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ft(Sx,n);return y.jsx(oe.p,{id:o.descriptionId,...r,ref:t})});Ix.displayName=Sx;var Ex="DialogClose",Ax=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ft(Ex,n);return y.jsx(oe.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});Ax.displayName=Ex;function Df(e){return e?"open":"closed"}var Rx="DialogTitleWarning",[M9,Px]=t1(Rx,{contentName:kn,titleName:Mf,docsSlug:"dialog"}),x2=({titleId:e})=>{const t=Px(Rx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
57
|
+
|
|
58
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
59
|
+
|
|
60
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},w2="DialogDescriptionWarning",C2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Px(w2).contentName}}.`;return p.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ci=mx,Ox=gx,Nf=vx,Si=yx,Ii=xx,Tx=Cx,_x=Ix,Ei=Ax,jr='[cmdk-group=""]',Su='[cmdk-group-items=""]',S2='[cmdk-group-heading=""]',Mx='[cmdk-item=""]',jb=`${Mx}:not([aria-disabled="true"])`,pd="cmdk-item-select",or="data-value",I2=(e,t,n)=>fk(e,t,n),Dx=p.createContext(void 0),No=()=>p.useContext(Dx),Nx=p.createContext(void 0),kf=()=>p.useContext(Nx),kx=p.createContext(void 0),Fx=p.forwardRef((e,t)=>{let n=ar(()=>{var k,H;return{search:"",value:(H=(k=e.value)!=null?k:e.defaultValue)!=null?H:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ar(()=>new Set),o=ar(()=>new Map),a=ar(()=>new Map),i=ar(()=>new Set),s=Bx(e),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:g,loop:b,disablePointerSelection:m=!1,vimBindings:h=!0,...v}=e,x=Le(),w=Le(),C=Le(),S=p.useRef(null),A=k2();Fn(()=>{if(u!==void 0){let k=u.trim();n.current.value=k,I.emit()}},[u]),Fn(()=>{A(6,O)},[]);let I=p.useMemo(()=>({subscribe:k=>(i.current.add(k),()=>i.current.delete(k)),snapshot:()=>n.current,setState:(k,H,Y)=>{var z,J,G,q;if(!Object.is(n.current[k],H)){if(n.current[k]=H,k==="search")B(),M(),A(1,T);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ae=document.getElementById(C);ae?ae.focus():(z=document.getElementById(x))==null||z.focus()}if(A(7,()=>{var ae;n.current.selectedItemId=(ae=L())==null?void 0:ae.id,I.emit()}),Y||A(5,O),((J=s.current)==null?void 0:J.value)!==void 0){let ae=H??"";(q=(G=s.current).onValueChange)==null||q.call(G,ae);return}}I.emit()}},emit:()=>{i.current.forEach(k=>k())}}),[]),R=p.useMemo(()=>({value:(k,H,Y)=>{var z;H!==((z=a.current.get(k))==null?void 0:z.value)&&(a.current.set(k,{value:H,keywords:Y}),n.current.filtered.items.set(k,P(H,Y)),A(2,()=>{M(),I.emit()}))},item:(k,H)=>(r.current.add(k),H&&(o.current.has(H)?o.current.get(H).add(k):o.current.set(H,new Set([k]))),A(3,()=>{B(),M(),n.current.value||T(),I.emit()}),()=>{a.current.delete(k),r.current.delete(k),n.current.filtered.items.delete(k);let Y=L();A(4,()=>{B(),Y?.getAttribute("id")===k&&T(),I.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{a.current.delete(k),o.current.delete(k)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:C,labelId:w,listInnerRef:S}),[]);function P(k,H){var Y,z;let J=(z=(Y=s.current)==null?void 0:Y.filter)!=null?z:I2;return k?J(k,n.current.search,H):0}function M(){if(!n.current.search||s.current.shouldFilter===!1)return;let k=n.current.filtered.items,H=[];n.current.filtered.groups.forEach(z=>{let J=o.current.get(z),G=0;J.forEach(q=>{let ae=k.get(q);G=Math.max(ae,G)}),H.push([z,G])});let Y=S.current;W().sort((z,J)=>{var G,q;let ae=z.getAttribute("id"),re=J.getAttribute("id");return((G=k.get(re))!=null?G:0)-((q=k.get(ae))!=null?q:0)}).forEach(z=>{let J=z.closest(Su);J?J.appendChild(z.parentElement===J?z:z.closest(`${Su} > *`)):Y.appendChild(z.parentElement===Y?z:z.closest(`${Su} > *`))}),H.sort((z,J)=>J[1]-z[1]).forEach(z=>{var J;let G=(J=S.current)==null?void 0:J.querySelector(`${jr}[${or}="${encodeURIComponent(z[0])}"]`);G?.parentElement.appendChild(G)})}function T(){let k=W().find(Y=>Y.getAttribute("aria-disabled")!=="true"),H=k?.getAttribute(or);I.setState("value",H||void 0)}function B(){var k,H,Y,z;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let J=0;for(let G of r.current){let q=(H=(k=a.current.get(G))==null?void 0:k.value)!=null?H:"",ae=(z=(Y=a.current.get(G))==null?void 0:Y.keywords)!=null?z:[],re=P(q,ae);n.current.filtered.items.set(G,re),re>0&&J++}for(let[G,q]of o.current)for(let ae of q)if(n.current.filtered.items.get(ae)>0){n.current.filtered.groups.add(G);break}n.current.filtered.count=J}function O(){var k,H,Y;let z=L();z&&(((k=z.parentElement)==null?void 0:k.firstChild)===z&&((Y=(H=z.closest(jr))==null?void 0:H.querySelector(S2))==null||Y.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function L(){var k;return(k=S.current)==null?void 0:k.querySelector(`${Mx}[aria-selected="true"]`)}function W(){var k;return Array.from(((k=S.current)==null?void 0:k.querySelectorAll(jb))||[])}function j(k){let H=W()[k];H&&I.setState("value",H.getAttribute(or))}function $(k){var H;let Y=L(),z=W(),J=z.findIndex(q=>q===Y),G=z[J+k];(H=s.current)!=null&&H.loop&&(G=J+k<0?z[z.length-1]:J+k===z.length?z[0]:z[J+k]),G&&I.setState("value",G.getAttribute(or))}function N(k){let H=L(),Y=H?.closest(jr),z;for(;Y&&!z;)Y=k>0?D2(Y,jr):N2(Y,jr),z=Y?.querySelector(jb);z?I.setState("value",z.getAttribute(or)):$(k)}let V=()=>j(W().length-1),U=k=>{k.preventDefault(),k.metaKey?V():k.altKey?N(1):$(1)},ee=k=>{k.preventDefault(),k.metaKey?j(0):k.altKey?N(-1):$(-1)};return p.createElement(st.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:k=>{var H;(H=v.onKeyDown)==null||H.call(v,k);let Y=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||Y))switch(k.key){case"n":case"j":{h&&k.ctrlKey&&U(k);break}case"ArrowDown":{U(k);break}case"p":case"k":{h&&k.ctrlKey&&ee(k);break}case"ArrowUp":{ee(k);break}case"Home":{k.preventDefault(),j(0);break}case"End":{k.preventDefault(),V();break}case"Enter":{k.preventDefault();let z=L();if(z){let J=new Event(pd);z.dispatchEvent(J)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:B2},c),Ai(e,k=>p.createElement(Nx.Provider,{value:I},p.createElement(Dx.Provider,{value:R},k))))}),E2=p.forwardRef((e,t)=>{var n,r;let o=Le(),a=p.useRef(null),i=p.useContext(kx),s=No(),c=Bx(e),l=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:i?.forceMount;Fn(()=>{if(!l)return s.item(o,i?.id)},[l]);let u=jx(o,a,[e.value,e.children,a],e.keywords),d=kf(),f=vn(A=>A.value&&A.value===u.current),g=vn(A=>l||s.filter()===!1?!0:A.search?A.filtered.items.get(o)>0:!0);p.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(pd,b),()=>A.removeEventListener(pd,b)},[g,e.onSelect,e.disabled]);function b(){var A,I;m(),(I=(A=c.current).onSelect)==null||I.call(A,u.current)}function m(){d.setState("value",u.current,!0)}if(!g)return null;let{disabled:h,value:v,onSelect:x,forceMount:w,keywords:C,...S}=e;return p.createElement(st.div,{ref:Yt(a,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!f,"data-disabled":!!h,"data-selected":!!f,onPointerMove:h||s.getDisablePointerSelection()?void 0:m,onClick:h?void 0:b},e.children)}),A2=p.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Le(),s=p.useRef(null),c=p.useRef(null),l=Le(),u=No(),d=vn(g=>o||u.filter()===!1?!0:g.search?g.filtered.groups.has(i):!0);Fn(()=>u.group(i),[]),jx(i,s,[e.value,e.heading,c]);let f=p.useMemo(()=>({id:i,forceMount:o}),[o]);return p.createElement(st.div,{ref:Yt(s,t),...a,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&p.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Ai(e,g=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},p.createElement(kx.Provider,{value:f},g))))}),R2=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=p.useRef(null),a=vn(i=>!i.search);return!n&&!a?null:p.createElement(st.div,{ref:Yt(o,t),...r,"cmdk-separator":"",role:"separator"})}),P2=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=kf(),i=vn(l=>l.search),s=vn(l=>l.selectedItemId),c=No();return p.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),p.createElement(st.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:i,onChange:l=>{o||a.setState("search",l.target.value),n?.(l.target.value)}})}),O2=p.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=p.useRef(null),i=p.useRef(null),s=vn(l=>l.selectedItemId),c=No();return p.useEffect(()=>{if(i.current&&a.current){let l=i.current,u=a.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let g=l.offsetHeight;u.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return f.observe(l),()=>{cancelAnimationFrame(d),f.unobserve(l)}}},[]),p.createElement(st.div,{ref:Yt(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},Ai(e,l=>p.createElement("div",{ref:Yt(i,c.listInnerRef),"cmdk-list-sizer":""},l)))}),T2=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return p.createElement(Ci,{open:n,onOpenChange:r},p.createElement(Nf,{container:i},p.createElement(Si,{"cmdk-overlay":"",className:o}),p.createElement(Ii,{"aria-label":e.label,"cmdk-dialog":"",className:a},p.createElement(Fx,{ref:t,...s}))))}),_2=p.forwardRef((e,t)=>vn(n=>n.filtered.count===0)?p.createElement(st.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),M2=p.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return p.createElement(st.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ai(e,i=>p.createElement("div",{"aria-hidden":!0},i)))}),Xn=Object.assign(Fx,{List:O2,Item:E2,Input:P2,Group:A2,Separator:R2,Dialog:T2,Empty:_2,Loading:M2});function D2(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function N2(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Bx(e){let t=p.useRef(e);return Fn(()=>{t.current=e}),t}var Fn=typeof window>"u"?p.useEffect:p.useLayoutEffect;function ar(e){let t=p.useRef();return t.current===void 0&&(t.current=e()),t}function vn(e){let t=kf(),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function jx(e,t,n,r=[]){let o=p.useRef(),a=No();return Fn(()=>{var i;let s=(()=>{var l;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(l=u.current.textContent)==null?void 0:l.trim():o.current}})(),c=r.map(l=>l.trim());a.value(e,s,c),(i=t.current)==null||i.setAttribute(or,s),o.current=s}),o}var k2=()=>{let[e,t]=p.useState(),n=ar(()=>new Map);return Fn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function F2(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ai({asChild:e,children:t},n){return e&&p.isValidElement(t)?p.cloneElement(F2(t),{ref:t.ref},n(t.props.children)):n(t)}var B2={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Gx({...e}){return y.jsx(Ci,{"data-slot":"dialog",...e})}function j2({...e}){return y.jsx(Ox,{"data-slot":"dialog-trigger",...e})}function Lx({...e}){return y.jsx(Nf,{"data-slot":"dialog-portal",...e})}function G2({...e}){return y.jsx(Ei,{"data-slot":"dialog-close",...e})}function Wx({className:e,...t}){return y.jsx(Si,{"data-slot":"dialog-overlay",className:D("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Vx({className:e,children:t,showCloseButton:n=!0,...r}){return y.jsxs(Lx,{"data-slot":"dialog-portal",children:[y.jsx(Wx,{}),y.jsxs(Ii,{"data-slot":"dialog-content",className:D("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...r,children:[t,n&&y.jsxs(Ei,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[y.jsx(ty,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Hx({className:e,...t}){return y.jsx("div",{"data-slot":"dialog-header",className:D("flex flex-col gap-2 text-center sm:text-left",e),...t})}function L2({className:e,...t}){return y.jsx("div",{"data-slot":"dialog-footer",className:D("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function $x({className:e,...t}){return y.jsx(Tx,{"data-slot":"dialog-title",className:D("text-lg leading-none font-semibold",e),...t})}function zx({className:e,...t}){return y.jsx(_x,{"data-slot":"dialog-description",className:D("text-muted-foreground text-sm",e),...t})}function Xx({className:e,...t}){return y.jsx(Xn,{"data-slot":"command",className:D("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function W2({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...a}){return y.jsxs(Gx,{...a,children:[y.jsxs(Hx,{className:"sr-only",children:[y.jsx($x,{children:e}),y.jsx(zx,{children:t})]}),y.jsx(Vx,{className:D("overflow-hidden p-0",r),showCloseButton:o,children:y.jsx(Xx,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function V2({className:e,...t}){return y.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[y.jsx(rE,{className:"size-4 shrink-0 opacity-50"}),y.jsx(Xn.Input,{"data-slot":"command-input",className:D("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function H2({className:e,...t}){return y.jsx(Xn.List,{"data-slot":"command-list",className:D("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function $2({...e}){return y.jsx(Xn.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function z2({className:e,...t}){return y.jsx(Xn.Group,{"data-slot":"command-group",className:D("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function X2({className:e,...t}){return y.jsx(Xn.Separator,{"data-slot":"command-separator",className:D("bg-border -mx-1 h-px",e),...t})}function Y2({className:e,...t}){return y.jsx(Xn.Item,{"data-slot":"command-item",className:D("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Z2({className:e,...t}){return y.jsx("span",{"data-slot":"command-shortcut",className:D("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}const q2=({title:e,className:t,titleClassName:n,header:r="",children:o})=>y.jsxs("div",{className:D("bg-white border border-gray-200 rounded-lg shadow",e?"p-4 mt-4":"p-2 items-center",t),children:[r,!r&&e&&y.jsx("h3",{className:D("text-xl text-black-900 font-semibold",n),children:e}),o]}),U2="dd/MM/yyyy",J2=({date:e,format:t=U2})=>e?y.jsx(y.Fragment,{children:dR(e,t)}):null;function K2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Yx=E.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Ri=()=>{const e=E.useContext(Yx);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};K2(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
61
|
+
[data-state=closed]
|
|
62
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Q2(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function eF(){return Ff(/^Mac/)}function tF(){return Ff(/^iPhone/)}function Gb(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function nF(){return Ff(/^iPad/)||eF()&&navigator.maxTouchPoints>1}function Zx(){return tF()||nF()}function Ff(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const rF=24,oF=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Lb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Iu=typeof document<"u"&&window.visualViewport;function Wb(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function qx(e){for(Wb(e)&&(e=e.parentElement);e&&!Wb(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const aF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let sa=0,Eu;function iF(e={}){let{isDisabled:t}=e;oF(()=>{if(!t)return sa++,sa===1&&Zx()&&(Eu=sF()),()=>{sa--,sa===0&&Eu?.()}},[t])}function sF(){let e,t=0,n=d=>{e=qx(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let f=d.changedTouches[0].pageY,g=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((g<=0&&f>t||g>=b&&f<t)&&d.preventDefault(),t=f)},o=d=>{let f=d.target;md(f)&&f!==document.activeElement&&(d.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},a=d=>{let f=d.target;md(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Iu&&(Iu.height<window.innerHeight?requestAnimationFrame(()=>{Vb(f)}):Iu.addEventListener("resize",()=>Vb(f),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Lb(cF(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Lb(Gr(document,"touchstart",n,{passive:!1,capture:!0}),Gr(document,"touchmove",r,{passive:!1,capture:!0}),Gr(document,"touchend",o,{passive:!1,capture:!0}),Gr(document,"focus",a,!0),Gr(window,"scroll",i));return()=>{l(),u(),window.scrollTo(s,c)}}function cF(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Gr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Vb(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=qx(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+rF;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function md(e){return e instanceof HTMLInputElement&&!aF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function lF(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function uF(...e){return t=>e.forEach(n=>lF(n,t))}function Ux(...e){return p.useCallback(uF(...e),e)}const Jx=new WeakMap;function $e(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&Jx.set(e,r)}function dF(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Jx.get(e);n&&(e.style[t]=n[t])}const je=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function ca(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[je(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[je(t)?5:4]):null)}function fF(e){return 8*(Math.log(e+1)-2)}function Au(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function pF(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const _e={DURATION:.5,EASE:[.32,.72,0,1]},Kx=.4,mF=.25,hF=100,Qx=8,Pn=16,hd=26,Ru="vaul-dragging";function ew(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function gF({defaultProp:e,onChange:t}){const n=E.useState(e),[r]=n,o=E.useRef(r),a=ew(t);return E.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function tw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gF({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=ew(n),c=E.useCallback(l=>{if(a){const d=typeof l=="function"?l(e):l;d!==e&&s(d)}else o(l)},[a,e,o,s]);return[i,c]}function bF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[u,d]=tw({prop:e,defaultProp:n?.[0],onChange:t}),[f,g]=E.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);E.useEffect(()=>{function I(){g({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]);const b=E.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),m=E.useMemo(()=>{var I;return(I=n?.findIndex(R=>R===u))!=null?I:null},[n,u]),h=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=E.useMemo(()=>{const I=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var R;return(R=n?.map(P=>{const M=typeof P=="string";let T=0;if(M&&(T=parseInt(P,10)),je(s)){const O=M?T:f?P*I.height:0;return f?s==="bottom"?I.height-O:-I.height+O:O}const B=M?T:f?P*I.width:0;return f?s==="right"?I.width-B:-I.width+B:B}))!=null?R:[]},[n,f,c]),x=E.useMemo(()=>m!==null?v?.[m]:null,[v,m]),w=E.useCallback(I=>{var R;const P=(R=v?.findIndex(M=>M===I))!=null?R:null;i(P),$e(r.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:je(s)?`translate3d(0, ${I}px, 0)`:`translate3d(${I}px, 0, 0)`}),v&&P!==v.length-1&&a!==void 0&&P!==a&&P<a?$e(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"0"}):$e(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),d(n?.[Math.max(P,0)])},[r.current,n,v,a,o,d]);E.useEffect(()=>{if(u||e){var I;const R=(I=n?.findIndex(P=>P===e||P===u))!=null?I:-1;v&&R!==-1&&typeof v[R]=="number"&&w(v[R])}},[u,e,n,v,w]);function C({draggedDistance:I,closeDrawer:R,velocity:P,dismissible:M}){if(a===void 0)return;const T=s==="bottom"||s==="right"?(x??0)-I:(x??0)+I,B=m===a-1,O=m===0,L=I>0;if(B&&$e(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),!l&&P>2&&!L){M?R():w(v[0]);return}if(!l&&P>2&&L&&v&&n){w(v[n.length-1]);return}const W=v?.reduce(($,N)=>typeof $!="number"||typeof N!="number"?$:Math.abs(N-T)<Math.abs($-T)?N:$),j=je(s)?window.innerHeight:window.innerWidth;if(P>Kx&&Math.abs(I)<j*.4){const $=L?1:-1;if($>0&&b&&n){w(v[n.length-1]);return}if(O&&$<0&&M&&R(),m===null)return;w(v[m+$]);return}w(W)}function S({draggedDistance:I}){if(x===null)return;const R=s==="bottom"||s==="right"?x-I:x+I;(s==="bottom"||s==="right")&&R<v[v.length-1]||(s==="top"||s==="left")&&R>v[v.length-1]||$e(r.current,{transform:je(s)?`translate3d(0, ${R}px, 0)`:`translate3d(${R}px, 0, 0)`})}function A(I,R){if(!n||typeof m!="number"||!v||a===void 0)return null;const P=m===a-1;if(m>=a&&R)return 0;if(P&&!R)return 1;if(!h&&!P)return null;const T=P?m+1:m-1,B=P?v[T]-v[T-1]:v[T+1]-v[T],O=I/Math.abs(B);return P?1-O:O}return{isLastSnapPoint:b,activeSnapPoint:u,shouldFade:h,getPercentageDragged:A,setActiveSnapPoint:d,activeSnapPointIndex:m,onRelease:C,onDrag:S,snapPointsOffset:v}}const vF=()=>()=>{};function yF(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Ri(),a=E.useRef(null),i=E.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-hd)/window.innerWidth}E.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;pF(r&&!o?Au(document.body,{background:"black"}):vF,Au(c,{transformOrigin:je(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`}));const l=Au(c,{borderRadius:`${Qx}px`,overflow:"hidden",...je(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{l(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},_e.DURATION*1e3)}}},[t,n,i])}let Lr=null;function xF({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=E.useState(()=>typeof window<"u"?window.location.href:""),c=E.useRef(0),l=E.useCallback(()=>{if(Gb()&&Lr===null&&e&&!a){Lr={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const g=f-window.innerHeight;g&&c.current>=f&&(document.body.style.top=`${-(c.current+g)}px`)}),300)}},[e]),u=E.useCallback(()=>{if(Gb()&&Lr!==null&&!a){const d=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Lr),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(f,d)}),Lr=null}},[i]);return E.useEffect(()=>{function d(){c.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),E.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||u()}},[t,u]),E.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,i,t,n,l,u]),{restorePositionSetting:u}}function wF({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=mF,scrollLockTimeout:l=hF,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:g,setActiveSnapPoint:b,fixed:m,modal:h=!0,onClose:v,nested:x,noBodyStyles:w=!1,direction:C="bottom",defaultOpen:S=!1,disablePreventScroll:A=!0,snapToSequentialPoint:I=!1,preventScrollRestoration:R=!1,repositionInputs:P=!0,onAnimationEnd:M,container:T,autoFocus:B=!1}){var O,L;const[W=!1,j]=tw({defaultProp:S,prop:e,onChange:Z=>{t?.(Z),!Z&&!x&&ot(),setTimeout(()=>{M?.(Z)},_e.DURATION*1e3),Z&&!h&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),Z||(document.body.style.pointerEvents="auto")}}),[$,N]=E.useState(!1),[V,U]=E.useState(!1),[ee,k]=E.useState(!1),H=E.useRef(null),Y=E.useRef(null),z=E.useRef(null),J=E.useRef(null),G=E.useRef(null),q=E.useRef(!1),ae=E.useRef(null),re=E.useRef(0),te=E.useRef(!1),F=E.useRef(!S),de=E.useRef(0),_=E.useRef(null),Q=E.useRef(((O=_.current)==null?void 0:O.getBoundingClientRect().height)||0),ge=E.useRef(((L=_.current)==null?void 0:L.getBoundingClientRect().width)||0),xe=E.useRef(0),Te=E.useCallback(Z=>{a&&Z===Fe.length-1&&(Y.current=new Date)},[]),{activeSnapPoint:ye,activeSnapPointIndex:Se,setActiveSnapPoint:tt,onRelease:Ve,snapPointsOffset:Fe,onDrag:Ye,shouldFade:Ze,getPercentageDragged:rt}=bF({snapPoints:a,activeSnapPointProp:g,setActiveSnapPointProp:b,drawerRef:_,fadeFromIndex:f,overlayRef:H,onSnapPointChange:Te,direction:C,container:T,snapToSequentialPoint:I});iF({isDisabled:!W||V||!h||ee||!$||!P||!A});const{restorePositionSetting:ot}=xF({isOpen:W,modal:h,nested:x??!1,hasBeenOpened:$,preventScrollRestoration:R,noBodyStyles:w});function It(){return(window.innerWidth-hd)/window.innerWidth}function Bt(Z){var ce,K;!u&&!a||_.current&&!_.current.contains(Z.target)||(Q.current=((ce=_.current)==null?void 0:ce.getBoundingClientRect().height)||0,ge.current=((K=_.current)==null?void 0:K.getBoundingClientRect().width)||0,U(!0),z.current=new Date,Zx()&&window.addEventListener("touchend",()=>q.current=!1,{once:!0}),Z.target.setPointerCapture(Z.pointerId),re.current=je(C)?Z.pageY:Z.pageX)}function lt(Z,ce){var K;let ne=Z;const ve=(K=window.getSelection())==null?void 0:K.toString(),me=_.current?ca(_.current,C):null,Be=new Date;if(ne.tagName==="SELECT"||ne.hasAttribute("data-vaul-no-drag")||ne.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;if(Y.current&&Be.getTime()-Y.current.getTime()<500)return!1;if(me!==null&&(C==="bottom"?me>0:me<0))return!0;if(ve&&ve.length>0)return!1;if(G.current&&Be.getTime()-G.current.getTime()<l&&me===0||ce)return G.current=Be,!1;for(;ne;){if(ne.scrollHeight>ne.clientHeight){if(ne.scrollTop!==0)return G.current=new Date,!1;if(ne.getAttribute("role")==="dialog")return!0}ne=ne.parentNode}return!0}function rn(Z){if(_.current&&V){const ce=C==="bottom"||C==="right"?1:-1,K=(re.current-(je(C)?Z.pageY:Z.pageX))*ce,ne=K>0,ve=a&&!u&&!ne;if(ve&&Se===0)return;const me=Math.abs(K),Be=document.querySelector("[data-vaul-drawer-wrapper]"),dt=C==="bottom"||C==="top"?Q.current:ge.current;let nt=me/dt;const Et=rt(me,ne);if(Et!==null&&(nt=Et),ve&&nt>=1||!q.current&&!lt(Z.target,ne))return;if(_.current.classList.add(Ru),q.current=!0,$e(_.current,{transition:"none"}),$e(H.current,{transition:"none"}),a&&Ye({draggedDistance:K}),ne&&!a){const jt=fF(K),zo=Math.min(jt*-1,0)*ce;$e(_.current,{transform:je(C)?`translate3d(0, ${zo}px, 0)`:`translate3d(${zo}px, 0, 0)`});return}const bt=1-nt;if((Ze||f&&Se===f-1)&&(r?.(Z,nt),$e(H.current,{opacity:`${bt}`,transition:"none"},!0)),Be&&H.current&&i){const jt=Math.min(It()+nt*(1-It()),1),zo=8-nt*8,wp=Math.max(0,14-nt*14);$e(Be,{borderRadius:`${zo}px`,transform:je(C)?`scale(${jt}) translate3d(0, ${wp}px, 0)`:`scale(${jt}) translate3d(${wp}px, 0, 0)`,transition:"none"},!0)}if(!a){const jt=me*ce;$e(_.current,{transform:je(C)?`translate3d(0, ${jt}px, 0)`:`translate3d(${jt}px, 0, 0)`})}}}E.useEffect(()=>{window.requestAnimationFrame(()=>{F.current=!0})},[]),E.useEffect(()=>{var Z;function ce(){if(!_.current||!P)return;const K=document.activeElement;if(md(K)||te.current){var ne;const ve=((ne=window.visualViewport)==null?void 0:ne.height)||0,me=window.innerHeight;let Be=me-ve;const dt=_.current.getBoundingClientRect().height||0,nt=dt>me*.8;xe.current||(xe.current=dt);const Et=_.current.getBoundingClientRect().top;if(Math.abs(de.current-Be)>60&&(te.current=!te.current),a&&a.length>0&&Fe&&Se){const bt=Fe[Se]||0;Be+=bt}if(de.current=Be,dt>ve||te.current){const bt=_.current.getBoundingClientRect().height;let jt=bt;bt>ve&&(jt=ve-(nt?Et:hd)),m?_.current.style.height=`${bt-Math.max(Be,0)}px`:_.current.style.height=`${Math.max(jt,ve-Et)}px`}else Q2()||(_.current.style.height=`${xe.current}px`);a&&a.length>0&&!te.current?_.current.style.bottom="0px":_.current.style.bottom=`${Math.max(Be,0)}px`}}return(Z=window.visualViewport)==null||Z.addEventListener("resize",ce),()=>{var K;return(K=window.visualViewport)==null?void 0:K.removeEventListener("resize",ce)}},[Se,a,Fe]);function ut(Z){on(),v?.(),Z||j(!1),setTimeout(()=>{a&&tt(a[0])},_e.DURATION*1e3)}function Ue(){if(!_.current)return;const Z=document.querySelector("[data-vaul-drawer-wrapper]"),ce=ca(_.current,C);$e(_.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),$e(H.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),i&&ce&&ce>0&&W&&$e(Z,{borderRadius:`${Qx}px`,overflow:"hidden",...je(C)?{transform:`scale(${It()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${It()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`},!0)}function on(){!V||!_.current||(_.current.classList.remove(Ru),q.current=!1,U(!1),J.current=new Date)}function An(Z){if(!V||!_.current)return;_.current.classList.remove(Ru),q.current=!1,U(!1),J.current=new Date;const ce=ca(_.current,C);if(!Z||!lt(Z.target,!1)||!ce||Number.isNaN(ce)||z.current===null)return;const K=J.current.getTime()-z.current.getTime(),ne=re.current-(je(C)?Z.pageY:Z.pageX),ve=Math.abs(ne)/K;if(ve>.05&&(k(!0),setTimeout(()=>{k(!1)},200)),a){Ve({draggedDistance:ne*(C==="bottom"||C==="right"?1:-1),closeDrawer:ut,velocity:ve,dismissible:u}),o?.(Z,!0);return}if(C==="bottom"||C==="right"?ne>0:ne<0){Ue(),o?.(Z,!0);return}if(ve>Kx){ut(),o?.(Z,!1);return}var me;const Be=Math.min((me=_.current.getBoundingClientRect().height)!=null?me:0,window.innerHeight);var dt;const nt=Math.min((dt=_.current.getBoundingClientRect().width)!=null?dt:0,window.innerWidth),Et=C==="left"||C==="right";if(Math.abs(ce)>=(Et?nt:Be)*c){ut(),o?.(Z,!1);return}o?.(Z,!0),Ue()}E.useEffect(()=>(W&&($e(document.documentElement,{scrollBehavior:"auto"}),Y.current=new Date),()=>{dF(document.documentElement,"scrollBehavior")}),[W]);function Mr(Z){const ce=Z?(window.innerWidth-Pn)/window.innerWidth:1,K=Z?-Pn:0;ae.current&&window.clearTimeout(ae.current),$e(_.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:je(C)?`scale(${ce}) translate3d(0, ${K}px, 0)`:`scale(${ce}) translate3d(${K}px, 0, 0)`}),!Z&&_.current&&(ae.current=setTimeout(()=>{const ne=ca(_.current,C);$e(_.current,{transition:"none",transform:je(C)?`translate3d(0, ${ne}px, 0)`:`translate3d(${ne}px, 0, 0)`})},500))}function qn(Z,ce){if(ce<0)return;const K=(window.innerWidth-Pn)/window.innerWidth,ne=K+ce*(1-K),ve=-Pn+ce*Pn;$e(_.current,{transform:je(C)?`scale(${ne}) translate3d(0, ${ve}px, 0)`:`scale(${ne}) translate3d(${ve}px, 0, 0)`,transition:"none"})}function Dr(Z,ce){const K=je(C)?window.innerHeight:window.innerWidth,ne=ce?(K-Pn)/K:1,ve=ce?-Pn:0;ce&&$e(_.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:je(C)?`scale(${ne}) translate3d(0, ${ve}px, 0)`:`scale(${ne}) translate3d(${ve}px, 0, 0)`})}return E.useEffect(()=>{h||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[h]),E.createElement(Ci,{defaultOpen:S,onOpenChange:Z=>{!u&&!Z||(Z?N(!0):ut(!0),j(Z))},open:W},E.createElement(Yx.Provider,{value:{activeSnapPoint:ye,snapPoints:a,setActiveSnapPoint:tt,drawerRef:_,overlayRef:H,onOpenChange:t,onPress:Bt,onRelease:An,onDrag:rn,dismissible:u,shouldAnimate:F,handleOnly:d,isOpen:W,isDragging:V,shouldFade:Ze,closeDrawer:ut,onNestedDrag:qn,onNestedOpenChange:Mr,onNestedRelease:Dr,keyboardIsOpen:te,modal:h,snapPointsOffset:Fe,activeSnapPointIndex:Se,direction:C,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:w,container:T,autoFocus:B}},n))}const CF=E.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:c}=Ri(),l=Ux(t,n),u=r&&r.length>0;if(!s)return null;const d=E.useCallback(f=>o(f),[o]);return E.createElement(Si,{onMouseUp:d,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":i&&u?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":c?.current?"true":"false",...e})});CF.displayName="Drawer.Overlay";const SF=E.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:g,direction:b,snapPoints:m,container:h,handleOnly:v,shouldAnimate:x,autoFocus:w}=Ri(),[C,S]=E.useState(!1),A=Ux(o,a),I=E.useRef(null),R=E.useRef(null),P=E.useRef(!1),M=m&&m.length>0;yF();const T=(O,L,W=0)=>{if(P.current)return!0;const j=Math.abs(O.y),$=Math.abs(O.x),N=$>j,V=["bottom","right"].includes(L)?1:-1;if(L==="left"||L==="right"){if(!(O.x*V<0)&&$>=0&&$<=W)return N}else if(!(O.y*V<0)&&j>=0&&j<=W)return!N;return P.current=!0,!0};E.useEffect(()=>{M&&window.requestAnimationFrame(()=>{S(!0)})},[]);function B(O){I.current=null,P.current=!1,s(O)}return E.createElement(Ii,{"data-vaul-drawer-direction":b,"data-vaul-drawer":"","data-vaul-delayed-snap-points":C?"true":"false","data-vaul-snap-points":g&&M?"true":"false","data-vaul-custom-container":h?"true":"false","data-vaul-animate":x?.current?"true":"false",...r,ref:A,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:O=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,O),I.current={x:O.pageX,y:O.pageY},i(O))},onOpenAutoFocus:O=>{n?.(O),w||O.preventDefault()},onPointerDownOutside:O=>{if(e?.(O),!f||O.defaultPrevented){O.preventDefault();return}l.current&&(l.current=!1)},onFocusOutside:O=>{if(!f){O.preventDefault();return}},onPointerMove:O=>{if(R.current=O,v||(r.onPointerMove==null||r.onPointerMove.call(r,O),!I.current))return;const L=O.pageY-I.current.y,W=O.pageX-I.current.x,j=O.pointerType==="touch"?10:2;T({x:W,y:L},b,j)?c(O):(Math.abs(W)>j||Math.abs(L)>j)&&(I.current=null)},onPointerUp:O=>{r.onPointerUp==null||r.onPointerUp.call(r,O),I.current=null,P.current=!1,s(O)},onPointerOut:O=>{r.onPointerOut==null||r.onPointerOut.call(r,O),B(R.current)},onContextMenu:O=>{r.onContextMenu==null||r.onContextMenu.call(r,O),R.current&&B(R.current)}})});SF.displayName="Drawer.Content";const IF=250,EF=120,AF=E.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:g}=Ri(),b=E.useRef(null),m=E.useRef(!1);function h(){if(m.current){w();return}window.setTimeout(()=>{v()},EF)}function v(){if(a||e||m.current){w();return}if(w(),!i||i.length===0){l||o();return}if(s===i[i.length-1]&&l){o();return}const S=i.findIndex(I=>I===s);if(S===-1)return;const A=i[S+1];c(A)}function x(){b.current=window.setTimeout(()=>{m.current=!0},IF)}function w(){b.current&&window.clearTimeout(b.current),m.current=!1}return E.createElement("div",{onClick:h,onPointerCancel:w,onPointerDown:C=>{u&&f(C),x()},onPointerMove:C=>{u&&g(C)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},E.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});AF.displayName="Drawer.Handle";const RF={Root:wF};function PF({...e}){return y.jsx(RF.Root,{"data-slot":"drawer",...e})}const OF=["top","right","bottom","left"],yn=Math.min,pt=Math.max,Fa=Math.round,la=Math.floor,zt=e=>({x:e,y:e}),TF={left:"right",right:"left",bottom:"top",top:"bottom"},_F={start:"end",end:"start"};function gd(e,t,n){return pt(e,yn(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function Ir(e){return e.split("-")[1]}function Bf(e){return e==="x"?"y":"x"}function jf(e){return e==="y"?"height":"width"}const MF=new Set(["top","bottom"]);function $t(e){return MF.has(pn(e))?"y":"x"}function Gf(e){return Bf($t(e))}function DF(e,t,n){n===void 0&&(n=!1);const r=Ir(e),o=Gf(e),a=jf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ba(i)),[i,Ba(i)]}function NF(e){const t=Ba(e);return[bd(e),t,bd(t)]}function bd(e){return e.replace(/start|end/g,t=>_F[t])}const Hb=["left","right"],$b=["right","left"],kF=["top","bottom"],FF=["bottom","top"];function BF(e,t,n){switch(e){case"top":case"bottom":return n?t?$b:Hb:t?Hb:$b;case"left":case"right":return t?kF:FF;default:return[]}}function jF(e,t,n,r){const o=Ir(e);let a=BF(pn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(bd)))),a}function Ba(e){return e.replace(/left|right|bottom|top/g,t=>TF[t])}function GF(e){return{top:0,right:0,bottom:0,left:0,...e}}function nw(e){return typeof e!="number"?GF(e):{top:e,right:e,bottom:e,left:e}}function ja(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function zb(e,t,n){let{reference:r,floating:o}=e;const a=$t(t),i=Gf(t),s=jf(i),c=pn(t),l=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Ir(t)){case"start":g[i]-=f*(n&&l?-1:1);break;case"end":g[i]+=f*(n&&l?-1:1);break}return g}const LF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zb(l,r,c),f=r,g={},b=0;for(let m=0;m<s.length;m++){const{name:h,fn:v}=s[m],{x,y:w,data:C,reset:S}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});u=x??u,d=w??d,g={...g,[h]:{...g[h],...C}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(l=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=zb(l,f,c)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}};async function fo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=fn(t,e),b=nw(g),h=s[f?d==="floating"?"reference":"floating":d],v=ja(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),x=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ja(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(v.top-S.top+b.top)/C.y,bottom:(S.bottom-v.bottom+b.bottom)/C.y,left:(v.left-S.left+b.left)/C.x,right:(S.right-v.right+b.right)/C.x}}const WF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=fn(e,t)||{};if(l==null)return{};const d=nw(u),f={x:n,y:r},g=Gf(o),b=jf(g),m=await i.getDimensions(l),h=g==="y",v=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[g]-f[g]-a.floating[b],S=f[g]-a.reference[g],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let I=A?A[w]:0;(!I||!await(i.isElement==null?void 0:i.isElement(A)))&&(I=s.floating[w]||a.floating[b]);const R=C/2-S/2,P=I/2-m[b]/2-1,M=yn(d[v],P),T=yn(d[x],P),B=M,O=I-m[b]-T,L=I/2-m[b]/2+R,W=gd(B,L,O),j=!c.arrow&&Ir(o)!=null&&L!==W&&a.reference[b]/2-(L<B?M:T)-m[b]/2<0,$=j?L<B?L-B:L-O:0;return{[g]:f[g]+$,data:{[g]:W,centerOffset:L-W-$,...j&&{alignmentOffset:$}},reset:j}}}),VF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...h}=fn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=pn(o),x=$t(s),w=pn(s)===s,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=f||(w||!m?[Ba(s)]:NF(s)),A=b!=="none";!f&&A&&S.push(...jF(s,m,b,C));const I=[s,...S],R=await fo(t,h),P=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&P.push(R[v]),d){const L=DF(o,i,C);P.push(R[L[0]],R[L[1]])}if(M=[...M,{placement:o,overflows:P}],!P.every(L=>L<=0)){var T,B;const L=(((T=a.flip)==null?void 0:T.index)||0)+1,W=I[L];if(W&&(!(d==="alignment"?x!==$t(W):!1)||M.every(N=>$t(N.placement)===x?N.overflows[0]>0:!0)))return{data:{index:L,overflows:M},reset:{placement:W}};let j=(B=M.filter($=>$.overflows[0]<=0).sort(($,N)=>$.overflows[1]-N.overflows[1])[0])==null?void 0:B.placement;if(!j)switch(g){case"bestFit":{var O;const $=(O=M.filter(N=>{if(A){const V=$t(N.placement);return V===x||V==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(V=>V>0).reduce((V,U)=>V+U,0)]).sort((N,V)=>N[1]-V[1])[0])==null?void 0:O[0];$&&(j=$);break}case"initialPlacement":j=s;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function Xb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yb(e){return OF.some(t=>e[t]>=0)}const HF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const a=await fo(t,{...o,elementContext:"reference"}),i=Xb(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Yb(i)}}}case"escaped":{const a=await fo(t,{...o,altBoundary:!0}),i=Xb(a,n.floating);return{data:{escapedOffsets:i,escaped:Yb(i)}}}default:return{}}}}},rw=new Set(["left","top"]);async function $F(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=pn(n),s=Ir(n),c=$t(n)==="y",l=rw.has(i)?-1:1,u=a&&c?-1:1,d=fn(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*u,y:f*l}:{x:f*l,y:g*u}}const zF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await $F(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},XF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:h=>{let{x:v,y:x}=h;return{x:v,y:x}}},...c}=fn(e,t),l={x:n,y:r},u=await fo(t,c),d=$t(pn(o)),f=Bf(d);let g=l[f],b=l[d];if(a){const h=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=g+u[h],w=g-u[v];g=gd(x,g,w)}if(i){const h=d==="y"?"top":"left",v=d==="y"?"bottom":"right",x=b+u[h],w=b-u[v];b=gd(x,b,w)}const m=s.fn({...t,[f]:g,[d]:b});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},YF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=fn(e,t),u={x:n,y:r},d=$t(o),f=Bf(d);let g=u[f],b=u[d];const m=fn(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=f==="y"?"height":"width",C=a.reference[f]-a.floating[w]+h.mainAxis,S=a.reference[f]+a.reference[w]-h.mainAxis;g<C?g=C:g>S&&(g=S)}if(l){var v,x;const w=f==="y"?"width":"height",C=rw.has(pn(o)),S=a.reference[d]-a.floating[w]+(C&&((v=i.offset)==null?void 0:v[d])||0)+(C?0:h.crossAxis),A=a.reference[d]+a.reference[w]+(C?0:((x=i.offset)==null?void 0:x[d])||0)-(C?h.crossAxis:0);b<S?b=S:b>A&&(b=A)}return{[f]:g,[d]:b}}}},ZF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=fn(e,t),u=await fo(t,l),d=pn(o),f=Ir(o),g=$t(o)==="y",{width:b,height:m}=a.floating;let h,v;d==="top"||d==="bottom"?(h=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,h=f==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=b-u.left-u.right,C=yn(m-u[h],x),S=yn(b-u[v],w),A=!t.middlewareData.shift;let I=C,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),A&&!f){const M=pt(u.left,0),T=pt(u.right,0),B=pt(u.top,0),O=pt(u.bottom,0);g?R=b-2*(M!==0||T!==0?M+T:pt(u.left,u.right)):I=m-2*(B!==0||O!==0?B+O:pt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:I});const P=await i.getDimensions(s.floating);return b!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function Pi(){return typeof window<"u"}function Er(e){return ow(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(ow(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ow(e){return Pi()?e instanceof Node||e instanceof mt(e).Node:!1}function _t(e){return Pi()?e instanceof Element||e instanceof mt(e).Element:!1}function Zt(e){return Pi()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function Zb(e){return!Pi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}const qF=new Set(["inline","contents"]);function ko(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!qF.has(o)}const UF=new Set(["table","td","th"]);function JF(e){return UF.has(Er(e))}const KF=[":popover-open",":modal"];function Oi(e){return KF.some(t=>{try{return e.matches(t)}catch{return!1}})}const QF=["transform","translate","scale","rotate","perspective"],eB=["transform","translate","scale","rotate","perspective","filter"],tB=["paint","layout","strict","content"];function Lf(e){const t=Wf(),n=_t(e)?Mt(e):e;return QF.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||eB.some(r=>(n.willChange||"").includes(r))||tB.some(r=>(n.contain||"").includes(r))}function nB(e){let t=xn(e);for(;Zt(t)&&!gr(t);){if(Lf(t))return t;if(Oi(t))return null;t=xn(t)}return null}function Wf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rB=new Set(["html","body","#document"]);function gr(e){return rB.has(Er(e))}function Mt(e){return mt(e).getComputedStyle(e)}function Ti(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xn(e){if(Er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zb(e)&&e.host||Qt(e);return Zb(t)?t.host:t}function aw(e){const t=xn(e);return gr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&ko(t)?t:aw(t)}function po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=aw(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=mt(o);if(a){const s=vd(i);return t.concat(i,i.visualViewport||[],ko(o)?o:[],s&&n?po(s):[])}return t.concat(o,po(o,[],n))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iw(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Zt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Fa(n)!==a||Fa(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Vf(e){return _t(e)?e:e.contextElement}function cr(e){const t=Vf(e);if(!Zt(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=iw(t);let i=(a?Fa(n.width):n.width)/r,s=(a?Fa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const oB=zt(0);function sw(e){const t=mt(e);return!Wf()||!t.visualViewport?oB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aB(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mt(e)?!1:t}function Bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Vf(e);let i=zt(1);t&&(r?_t(r)&&(i=cr(r)):i=cr(e));const s=aB(a,n,r)?sw(a):zt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=mt(a),g=r&&_t(r)?mt(r):r;let b=f,m=vd(b);for(;m&&r&&g!==b;){const h=cr(m),v=m.getBoundingClientRect(),x=Mt(m),w=v.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,C=v.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,l*=h.y,u*=h.x,d*=h.y,c+=w,l+=C,b=mt(m),m=vd(b)}}return ja({width:u,height:d,x:c,y:l})}function _i(e,t){const n=Ti(e).scrollLeft;return t?t.left+n:Bn(Qt(e)).left+n}function cw(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_i(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function iB(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Qt(r),s=t?Oi(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=zt(1);const u=zt(0),d=Zt(r);if((d||!d&&!a)&&((Er(r)!=="body"||ko(i))&&(c=Ti(r)),Zt(r))){const g=Bn(r);l=cr(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const f=i&&!d&&!a?cw(i,c):zt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function sB(e){return Array.from(e.getClientRects())}function cB(e){const t=Qt(e),n=Ti(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_i(e);const s=-n.scrollTop;return Mt(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const qb=25;function lB(e,t){const n=mt(e),r=Qt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const u=Wf();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=_i(r);if(l<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),g=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(r.clientWidth-d.clientWidth-g);b<=qb&&(a-=b)}else l<=qb&&(a+=l);return{width:a,height:i,x:s,y:c}}const uB=new Set(["absolute","fixed"]);function dB(e,t){const n=Bn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Zt(e)?cr(e):zt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function Ub(e,t,n){let r;if(t==="viewport")r=lB(e,n);else if(t==="document")r=cB(Qt(e));else if(_t(t))r=dB(t,n);else{const o=sw(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ja(r)}function lw(e,t){const n=xn(e);return n===t||!_t(n)||gr(n)?!1:Mt(n).position==="fixed"||lw(n,t)}function fB(e,t){const n=t.get(e);if(n)return n;let r=po(e,[],!1).filter(s=>_t(s)&&Er(s)!=="body"),o=null;const a=Mt(e).position==="fixed";let i=a?xn(e):e;for(;_t(i)&&!gr(i);){const s=Mt(i),c=Lf(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&uB.has(o.position)||ko(i)&&!c&&lw(e,i))?r=r.filter(u=>u!==i):o=s,i=xn(i)}return t.set(e,r),r}function pB(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Oi(t)?[]:fB(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,u)=>{const d=Ub(t,u,o);return l.top=pt(d.top,l.top),l.right=yn(d.right,l.right),l.bottom=yn(d.bottom,l.bottom),l.left=pt(d.left,l.left),l},Ub(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mB(e){const{width:t,height:n}=iw(e);return{width:t,height:n}}function hB(e,t,n){const r=Zt(t),o=Qt(t),a=n==="fixed",i=Bn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=zt(0);function l(){c.x=_i(o)}if(r||!r&&!a)if((Er(t)!=="body"||ko(o))&&(s=Ti(t)),r){const g=Bn(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();a&&!r&&o&&l();const u=o&&!r&&!a?cw(o,s):zt(0),d=i.left+s.scrollLeft-c.x-u.x,f=i.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Pu(e){return Mt(e).position==="static"}function Jb(e,t){if(!Zt(e)||Mt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function uw(e,t){const n=mt(e);if(Oi(e))return n;if(!Zt(e)){let o=xn(e);for(;o&&!gr(o);){if(_t(o)&&!Pu(o))return o;o=xn(o)}return n}let r=Jb(e,t);for(;r&&JF(r)&&Pu(r);)r=Jb(r,t);return r&&gr(r)&&Pu(r)&&!Lf(r)?n:r||nB(e)||n}const gB=async function(e){const t=this.getOffsetParent||uw,n=this.getDimensions,r=await n(e.floating);return{reference:hB(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bB(e){return Mt(e).direction==="rtl"}const vB={convertOffsetParentRelativeRectToViewportRelativeRect:iB,getDocumentElement:Qt,getClippingRect:pB,getOffsetParent:uw,getElementRects:gB,getClientRects:sB,getDimensions:mB,getScale:cr,isElement:_t,isRTL:bB};function dw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yB(e,t){let n=null,r;const o=Qt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=l;if(s||t(),!f||!g)return;const b=la(d),m=la(o.clientWidth-(u+f)),h=la(o.clientHeight-(d+g)),v=la(u),w={rootMargin:-b+"px "+-m+"px "+-h+"px "+-v+"px",threshold:pt(0,yn(1,c))||1};let C=!0;function S(A){const I=A[0].intersectionRatio;if(I!==c){if(!C)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!dw(l,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return i(!0),a}function fw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Vf(e),u=o||a?[...l?po(l):[],...po(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?yB(l,n):null;let f=-1,g=null;i&&(g=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let b,m=c?Bn(e):null;c&&h();function h(){const v=Bn(e);m&&!dw(m,v)&&n(),m=v,b=requestAnimationFrame(h)}return n(),()=>{var v;u.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),d?.(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const xB=zF,wB=XF,CB=VF,SB=ZF,IB=HF,Kb=WF,EB=YF,AB=(e,t,n)=>{const r=new Map,o={platform:vB,...n},a={...o.platform,_c:r};return LF(e,t,{...o,platform:a})};var RB=typeof document<"u",PB=function(){},ba=RB?E.useLayoutEffect:PB;function Ga(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ga(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ga(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function pw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qb(e,t){const n=pw(e);return Math.round(t*n)/n}function Ou(e){const t=p.useRef(e);return ba(()=>{t.current=e}),t}function OB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=p.useState(r);Ga(f,r)||g(r);const[b,m]=p.useState(null),[h,v]=p.useState(null),x=p.useCallback(N=>{N!==A.current&&(A.current=N,m(N))},[]),w=p.useCallback(N=>{N!==I.current&&(I.current=N,v(N))},[]),C=a||b,S=i||h,A=p.useRef(null),I=p.useRef(null),R=p.useRef(u),P=c!=null,M=Ou(c),T=Ou(o),B=Ou(l),O=p.useCallback(()=>{if(!A.current||!I.current)return;const N={placement:t,strategy:n,middleware:f};T.current&&(N.platform=T.current),AB(A.current,I.current,N).then(V=>{const U={...V,isPositioned:B.current!==!1};L.current&&!Ga(R.current,U)&&(R.current=U,ei.flushSync(()=>{d(U)}))})},[f,t,n,T,B]);ba(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[l]);const L=p.useRef(!1);ba(()=>(L.current=!0,()=>{L.current=!1}),[]),ba(()=>{if(C&&(A.current=C),S&&(I.current=S),C&&S){if(M.current)return M.current(C,S,O);O()}},[C,S,O,M,P]);const W=p.useMemo(()=>({reference:A,floating:I,setReference:x,setFloating:w}),[x,w]),j=p.useMemo(()=>({reference:C,floating:S}),[C,S]),$=p.useMemo(()=>{const N={position:n,left:0,top:0};if(!j.floating)return N;const V=Qb(j.floating,u.x),U=Qb(j.floating,u.y);return s?{...N,transform:"translate("+V+"px, "+U+"px)",...pw(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:U}},[n,s,j.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:O,refs:W,elements:j,floatingStyles:$}),[u,O,W,j,$])}const TB=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kb({element:r.current,padding:o}).fn(n):{}:r?Kb({element:r,padding:o}).fn(n):{}}}},_B=(e,t)=>({...xB(e),options:[e,t]}),MB=(e,t)=>({...wB(e),options:[e,t]}),DB=(e,t)=>({...EB(e),options:[e,t]}),NB=(e,t)=>({...CB(e),options:[e,t]}),kB=(e,t)=>({...SB(e),options:[e,t]}),FB=(e,t)=>({...IB(e),options:[e,t]}),BB=(e,t)=>({...TB(e),options:[e,t]});var jB="Arrow",mw=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return y.jsx(oe.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});mw.displayName=jB;var GB=mw,Hf="Popper",[hw,en]=ze(Hf),[LB,gw]=hw(Hf),bw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return y.jsx(LB,{scope:t,anchor:r,onAnchorChange:o,children:n})};bw.displayName=Hf;var vw="PopperAnchor",yw=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=gw(vw,n),i=p.useRef(null),s=pe(t,i),c=p.useRef(null);return p.useEffect(()=>{const l=c.current;c.current=r?.current||i.current,l!==c.current&&a.onAnchorChange(c.current)}),r?null:y.jsx(oe.div,{...o,ref:s})});yw.displayName=vw;var $f="PopperContent",[WB,VB]=hw($f),xw=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:b,...m}=e,h=gw($f,n),[v,x]=p.useState(null),w=pe(t,G=>x(G)),[C,S]=p.useState(null),A=_o(C),I=A?.width??0,R=A?.height??0,P=r+(a!=="center"?"-"+a:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(l)?l:[l],B=T.length>0,O={padding:M,boundary:T.filter($B),altBoundary:B},{refs:L,floatingStyles:W,placement:j,isPositioned:$,middlewareData:N}=OB({strategy:"fixed",placement:P,whileElementsMounted:(...G)=>fw(...G,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[_B({mainAxis:o+R,alignmentAxis:i}),c&&MB({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?DB():void 0,...O}),c&&NB({...O}),kB({...O,apply:({elements:G,rects:q,availableWidth:ae,availableHeight:re})=>{const{width:te,height:F}=q.reference,de=G.floating.style;de.setProperty("--radix-popper-available-width",`${ae}px`),de.setProperty("--radix-popper-available-height",`${re}px`),de.setProperty("--radix-popper-anchor-width",`${te}px`),de.setProperty("--radix-popper-anchor-height",`${F}px`)}}),C&&BB({element:C,padding:s}),zB({arrowWidth:I,arrowHeight:R}),f&&FB({strategy:"referenceHidden",...O})]}),[V,U]=Sw(j),ee=qe(b);ke(()=>{$&&ee?.()},[$,ee]);const k=N.arrow?.x,H=N.arrow?.y,Y=N.arrow?.centerOffset!==0,[z,J]=p.useState();return ke(()=>{v&&J(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(WB,{scope:n,placedSide:V,onArrowChange:S,arrowX:k,arrowY:H,shouldHideArrow:Y,children:y.jsx(oe.div,{"data-side":V,"data-align":U,...m,ref:w,style:{...m.style,animation:$?void 0:"none"}})})})});xw.displayName=$f;var ww="PopperArrow",HB={top:"bottom",right:"left",bottom:"top",left:"right"},Cw=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=VB(ww,r),i=HB[a.placedSide];return y.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:y.jsx(GB,{...o,ref:n,style:{...o.style,display:"block"}})})});Cw.displayName=ww;function $B(e){return e!==null}var zB=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,u]=Sw(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+s/2,g=(o.arrow?.y??0)+c/2;let b="",m="";return l==="bottom"?(b=i?d:`${f}px`,m=`${-c}px`):l==="top"?(b=i?d:`${f}px`,m=`${r.floating.height+c}px`):l==="right"?(b=`${-c}px`,m=i?d:`${g}px`):l==="left"&&(b=`${r.floating.width+c}px`,m=i?d:`${g}px`),{data:{x:b,y:m}}}});function Sw(e){const[t,n="center"]=e.split("-");return[t,n]}var Fo=bw,Ar=yw,Bo=xw,jo=Cw,Tu="rovingFocusGroup.onEntryFocus",XB={bubbles:!1,cancelable:!0},Go="RovingFocusGroup",[yd,Iw,YB]=wo(Go),[ZB,Rr]=ze(Go,[YB]),[qB,UB]=ZB(Go),Ew=p.forwardRef((e,t)=>y.jsx(yd.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(yd.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(JB,{...e,ref:t})})}));Ew.displayName=Go;var JB=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=p.useRef(null),g=pe(t,f),b=wn(a),[m,h]=et({prop:i,defaultProp:s??null,onChange:c,caller:Go}),[v,x]=p.useState(!1),w=qe(l),C=Iw(n),S=p.useRef(!1),[A,I]=p.useState(0);return p.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(Tu,w),()=>R.removeEventListener(Tu,w)},[w]),y.jsx(qB,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:m,onItemFocus:p.useCallback(R=>h(R),[h]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>I(R=>R+1),[]),onFocusableItemRemove:p.useCallback(()=>I(R=>R-1),[]),children:y.jsx(oe.div,{tabIndex:v||A===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{S.current=!0}),onFocus:X(e.onFocus,R=>{const P=!S.current;if(R.target===R.currentTarget&&P&&!v){const M=new CustomEvent(Tu,XB);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){const T=C().filter(j=>j.focusable),B=T.find(j=>j.active),O=T.find(j=>j.id===m),W=[B,O,...T].filter(Boolean).map(j=>j.ref.current);Pw(W,u)}}S.current=!1}),onBlur:X(e.onBlur,()=>x(!1))})})}),Aw="RovingFocusGroupItem",Rw=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,c=Le(),l=a||c,u=UB(Aw,n),d=u.currentTabStopId===l,f=Iw(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:m}=u;return p.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),y.jsx(yd.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:y.jsx(oe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:X(e.onMouseDown,h=>{r?u.onItemFocus(l):h.preventDefault()}),onFocus:X(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:X(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const v=ej(h,u.orientation,u.dir);if(v!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=f().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const C=w.indexOf(h.currentTarget);w=u.loop?tj(w,C+1):w.slice(C+1)}setTimeout(()=>Pw(w))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:m!=null}):i})})});Rw.displayName=Aw;var KB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function QB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ej(e,t,n){const r=QB(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return KB[r]}function Pw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function tj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var zf=Ew,Xf=Rw,xd=["Enter"," "],nj=["ArrowDown","PageUp","Home"],Ow=["ArrowUp","PageDown","End"],rj=[...nj,...Ow],oj={ltr:[...xd,"ArrowRight"],rtl:[...xd,"ArrowLeft"]},aj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Lo="Menu",[mo,ij,sj]=wo(Lo),[Yn,Tw]=ze(Lo,[sj,en,Rr]),Mi=en(),_w=Rr(),[cj,Pr]=Yn(Lo),[lj,Wo]=Yn(Lo),Mw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Mi(t),[c,l]=p.useState(null),u=p.useRef(!1),d=qe(a),f=wn(o);return p.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),y.jsx(Fo,{...s,children:y.jsx(cj,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:y.jsx(lj,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:r})})})};Mw.displayName=Lo;var uj="MenuAnchor",Yf=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mi(n);return y.jsx(Ar,{...o,...r,ref:t})});Yf.displayName=uj;var dj="MenuPortal",[D9,Dw]=Yn(dj,{forceMount:void 0}),Ct="MenuContent",[fj,Zf]=Yn(Ct),Nw=p.forwardRef((e,t)=>{const n=Dw(Ct,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Pr(Ct,e.__scopeMenu),i=Wo(Ct,e.__scopeMenu);return y.jsx(mo.Provider,{scope:e.__scopeMenu,children:y.jsx(Xe,{present:r||a.open,children:y.jsx(mo.Slot,{scope:e.__scopeMenu,children:i.modal?y.jsx(pj,{...o,ref:t}):y.jsx(mj,{...o,ref:t})})})})}),pj=p.forwardRef((e,t)=>{const n=Pr(Ct,e.__scopeMenu),r=p.useRef(null),o=pe(t,r);return p.useEffect(()=>{const a=r.current;if(a)return xi(a)},[]),y.jsx(qf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),mj=p.forwardRef((e,t)=>{const n=Pr(Ct,e.__scopeMenu);return y.jsx(qf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),hj=Dn("MenuContent.ScrollLock"),qf=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:g,disableOutsideScroll:b,...m}=e,h=Pr(Ct,n),v=Wo(Ct,n),x=Mi(n),w=_w(n),C=ij(n),[S,A]=p.useState(null),I=p.useRef(null),R=pe(t,I,h.onContentChange),P=p.useRef(0),M=p.useRef(""),T=p.useRef(0),B=p.useRef(null),O=p.useRef("right"),L=p.useRef(0),W=b?Do:p.Fragment,j=b?{as:hj,allowPinchZoom:!0}:void 0,$=V=>{const U=M.current+V,ee=C().filter(G=>!G.disabled),k=document.activeElement,H=ee.find(G=>G.ref.current===k)?.textValue,Y=ee.map(G=>G.textValue),z=Rj(Y,U,H),J=ee.find(G=>G.textValue===z)?.ref.current;(function G(q){M.current=q,window.clearTimeout(P.current),q!==""&&(P.current=window.setTimeout(()=>G(""),1e3))})(U),J&&setTimeout(()=>J.focus())};p.useEffect(()=>()=>window.clearTimeout(P.current),[]),vi();const N=p.useCallback(V=>O.current===B.current?.side&&Oj(V,B.current?.area),[]);return y.jsx(fj,{scope:n,searchRef:M,onItemEnter:p.useCallback(V=>{N(V)&&V.preventDefault()},[N]),onItemLeave:p.useCallback(V=>{N(V)||(I.current?.focus(),A(null))},[N]),onTriggerLeave:p.useCallback(V=>{N(V)&&V.preventDefault()},[N]),pointerGraceTimerRef:T,onPointerGraceIntentChange:p.useCallback(V=>{B.current=V},[]),children:y.jsx(W,{...j,children:y.jsx(Mo,{asChild:!0,trapped:o,onMountAutoFocus:X(a,V=>{V.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:g,children:y.jsx(zf,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:A,onEntryFocus:X(c,V=>{v.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(Bo,{role:"menu","aria-orientation":"vertical","data-state":Uw(h.open),"data-radix-menu-content":"",dir:v.dir,...x,...m,ref:R,style:{outline:"none",...m.style},onKeyDown:X(m.onKeyDown,V=>{const ee=V.target.closest("[data-radix-menu-content]")===V.currentTarget,k=V.ctrlKey||V.altKey||V.metaKey,H=V.key.length===1;ee&&(V.key==="Tab"&&V.preventDefault(),!k&&H&&$(V.key));const Y=I.current;if(V.target!==Y||!rj.includes(V.key))return;V.preventDefault();const J=C().filter(G=>!G.disabled).map(G=>G.ref.current);Ow.includes(V.key)&&J.reverse(),Ej(J)}),onBlur:X(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(P.current),M.current="")}),onPointerMove:X(e.onPointerMove,ho(V=>{const U=V.target,ee=L.current!==V.clientX;if(V.currentTarget.contains(U)&&ee){const k=V.clientX>L.current?"right":"left";O.current=k,L.current=V.clientX}}))})})})})})})});Nw.displayName=Ct;var gj="MenuGroup",Uf=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(oe.div,{role:"group",...r,ref:t})});Uf.displayName=gj;var bj="MenuLabel",kw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(oe.div,{...r,ref:t})});kw.displayName=bj;var La="MenuItem",ev="menu.itemSelect",Di=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=p.useRef(null),i=Wo(La,e.__scopeMenu),s=Zf(La,e.__scopeMenu),c=pe(t,a),l=p.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(ev,{bubbles:!0,cancelable:!0});d.addEventListener(ev,g=>r?.(g),{once:!0}),Bv(d,f),f.defaultPrevented?l.current=!1:i.onClose()}};return y.jsx(Fw,{...o,ref:c,disabled:n,onClick:X(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),l.current=!0},onPointerUp:X(e.onPointerUp,d=>{l.current||d.currentTarget?.click()}),onKeyDown:X(e.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||xd.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Di.displayName=La;var Fw=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Zf(La,n),s=_w(n),c=p.useRef(null),l=pe(t,c),[u,d]=p.useState(!1),[f,g]=p.useState("");return p.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[a.children]),y.jsx(mo.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:y.jsx(Xf,{asChild:!0,...s,focusable:!r,children:y.jsx(oe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:X(e.onPointerMove,ho(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:X(e.onPointerLeave,ho(b=>i.onItemLeave(b))),onFocus:X(e.onFocus,()=>d(!0)),onBlur:X(e.onBlur,()=>d(!1))})})})}),vj="MenuCheckboxItem",Bw=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return y.jsx(Vw,{scope:e.__scopeMenu,checked:n,children:y.jsx(Di,{role:"menuitemcheckbox","aria-checked":Wa(n)?"mixed":n,...o,ref:t,"data-state":Kf(n),onSelect:X(o.onSelect,()=>r?.(Wa(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Bw.displayName=vj;var jw="MenuRadioGroup",[yj,xj]=Yn(jw,{value:void 0,onValueChange:()=>{}}),Gw=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=qe(r);return y.jsx(yj,{scope:e.__scopeMenu,value:n,onValueChange:a,children:y.jsx(Uf,{...o,ref:t})})});Gw.displayName=jw;var Lw="MenuRadioItem",Ww=p.forwardRef((e,t)=>{const{value:n,...r}=e,o=xj(Lw,e.__scopeMenu),a=n===o.value;return y.jsx(Vw,{scope:e.__scopeMenu,checked:a,children:y.jsx(Di,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Kf(a),onSelect:X(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ww.displayName=Lw;var Jf="MenuItemIndicator",[Vw,wj]=Yn(Jf,{checked:!1}),Hw=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=wj(Jf,n);return y.jsx(Xe,{present:r||Wa(a.checked)||a.checked===!0,children:y.jsx(oe.span,{...o,ref:t,"data-state":Kf(a.checked)})})});Hw.displayName=Jf;var Cj="MenuSeparator",$w=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$w.displayName=Cj;var Sj="MenuArrow",zw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mi(n);return y.jsx(jo,{...o,...r,ref:t})});zw.displayName=Sj;var Ij="MenuSub",[N9,Xw]=Yn(Ij),qr="MenuSubTrigger",Yw=p.forwardRef((e,t)=>{const n=Pr(qr,e.__scopeMenu),r=Wo(qr,e.__scopeMenu),o=Xw(qr,e.__scopeMenu),a=Zf(qr,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>u,[u]),p.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),c(null)}},[s,c]),y.jsx(Yf,{asChild:!0,...l,children:y.jsx(Fw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Uw(n.open),...e,ref:Yt(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:X(e.onPointerMove,ho(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:X(e.onPointerLeave,ho(d=>{u();const f=n.content?.getBoundingClientRect();if(f){const g=n.content?.dataset.side,b=g==="right",m=b?-5:5,h=f[b?"left":"right"],v=f[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:h,y:f.top},{x:v,y:f.top},{x:v,y:f.bottom},{x:h,y:f.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:X(e.onKeyDown,d=>{const f=a.searchRef.current!=="";e.disabled||f&&d.key===" "||oj[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Yw.displayName=qr;var Zw="MenuSubContent",qw=p.forwardRef((e,t)=>{const n=Dw(Ct,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Pr(Ct,e.__scopeMenu),i=Wo(Ct,e.__scopeMenu),s=Xw(Zw,e.__scopeMenu),c=p.useRef(null),l=pe(t,c);return y.jsx(mo.Provider,{scope:e.__scopeMenu,children:y.jsx(Xe,{present:r||a.open,children:y.jsx(mo.Slot,{scope:e.__scopeMenu,children:y.jsx(qf,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{i.isUsingKeyboardRef.current&&c.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:X(e.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:X(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:X(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),f=aj[i.dir].includes(u.key);d&&f&&(a.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});qw.displayName=Zw;function Uw(e){return e?"open":"closed"}function Wa(e){return e==="indeterminate"}function Kf(e){return Wa(e)?"indeterminate":e?"checked":"unchecked"}function Ej(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Aj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Rj(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Aj(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Pj(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],l=s.x,u=s.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function Oj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Pj(n,t)}function ho(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Tj=Mw,_j=Yf,Mj=Nw,Dj=Uf,Nj=kw,kj=Di,Fj=Bw,Bj=Gw,jj=Ww,Gj=Hw,Lj=$w,Wj=zw,Vj=Yw,Hj=qw,Ni="DropdownMenu",[$j]=ze(Ni,[Tw]),ct=Tw(),[zj,Jw]=$j(Ni),Kw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=ct(t),l=p.useRef(null),[u,d]=et({prop:o,defaultProp:a??!1,onChange:i,caller:Ni});return y.jsx(zj,{scope:t,triggerId:Le(),triggerRef:l,contentId:Le(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:s,children:y.jsx(Tj,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Kw.displayName=Ni;var Qw="DropdownMenuTrigger",Xj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Jw(Qw,n),i=ct(n);return y.jsx(_j,{asChild:!0,...i,children:y.jsx(oe.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Yt(t,a.triggerRef),onPointerDown:X(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:X(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Xj.displayName=Qw;var eC="DropdownMenuContent",Yj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Jw(eC,n),a=ct(n),i=p.useRef(!1);return y.jsx(Mj,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:X(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:X(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Yj.displayName=eC;var Zj="DropdownMenuGroup",qj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Dj,{...o,...r,ref:t})});qj.displayName=Zj;var Uj="DropdownMenuLabel",Jj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Nj,{...o,...r,ref:t})});Jj.displayName=Uj;var Kj="DropdownMenuItem",Qj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(kj,{...o,...r,ref:t})});Qj.displayName=Kj;var eG="DropdownMenuCheckboxItem",tG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Fj,{...o,...r,ref:t})});tG.displayName=eG;var nG="DropdownMenuRadioGroup",rG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Bj,{...o,...r,ref:t})});rG.displayName=nG;var oG="DropdownMenuRadioItem",aG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(jj,{...o,...r,ref:t})});aG.displayName=oG;var iG="DropdownMenuItemIndicator",sG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Gj,{...o,...r,ref:t})});sG.displayName=iG;var cG="DropdownMenuSeparator",lG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Lj,{...o,...r,ref:t})});lG.displayName=cG;var uG="DropdownMenuArrow",dG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Wj,{...o,...r,ref:t})});dG.displayName=uG;var fG="DropdownMenuSubTrigger",pG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Vj,{...o,...r,ref:t})});pG.displayName=fG;var mG="DropdownMenuSubContent",hG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Hj,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hG.displayName=mG;var gG=Kw;function bG({...e}){return y.jsx(gG,{"data-slot":"dropdown-menu",...e})}function vG({className:e,...t}){return y.jsx("div",{"data-slot":"empty",className:D("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...t})}function yG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-header",className:D("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const xG=So("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function wG({className:e,variant:t="default",...n}){return y.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:D(xG({variant:t,className:e})),...n})}function CG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-title",className:D("text-lg font-medium tracking-tight",e),...t})}function SG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-description",className:D("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function IG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-content",className:D("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...t})}function tC({message:e,className:t}){return y.jsx("p",{className:D("text-red-500 text-xs mt-2 has-error",t),children:e})}function nC({description:e,className:t}){return y.jsx("p",{className:D("text-gray-500 text-xs mt-1",t),children:e})}var EG=e=>e.type==="checkbox",Ur=e=>e instanceof Date,Qf=e=>e==null;const rC=e=>typeof e=="object";var jn=e=>!Qf(e)&&!Array.isArray(e)&&rC(e)&&!Ur(e),AG=e=>jn(e)&&e.target?EG(e.target)?e.target.checked:e.target.value:e,RG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,PG=(e,t)=>e.has(RG(t)),OG=e=>{const t=e.constructor&&e.constructor.prototype;return jn(t)&&t.hasOwnProperty("isPrototypeOf")},TG=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function oC(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(TG&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(jn(e)&&OG(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=oC(e[o]));return r}var aC=e=>/^\w*$/.test(e),wd=e=>e===void 0,_G=e=>Array.isArray(e)?e.filter(Boolean):[],iC=e=>_G(e.replace(/["|']|\]/g,"").split(/\.|\[/)),at=(e,t,n)=>{if(!t||!jn(e))return n;const r=(aC(t)?[t]:iC(t)).reduce((o,a)=>Qf(o)?o:o[a],e);return wd(r)||r===e?wd(e[t])?n:e[t]:r},_u=e=>typeof e=="boolean",ua=e=>typeof e=="function",tv=(e,t,n)=>{let r=-1;const o=aC(t)?[t]:iC(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let c=n;if(r!==i){const l=e[s];c=jn(l)||Array.isArray(l)?l:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const nv={BLUR:"blur",CHANGE:"change"},rv={all:"all"},ep=E.createContext(null);ep.displayName="HookFormContext";const ki=()=>E.useContext(ep),MG=e=>{const{children:t,...n}=e;return E.createElement(ep.Provider,{value:n},t)};var DG=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==rv.all&&(t._proxyFormState[i]=!r||rv.all),n&&(n[i]=!0),e[i]}});return o};const sC=typeof window<"u"?E.useLayoutEffect:E.useEffect;function cC(e){const t=ki(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=E.useState(n._formState),c=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return sC(()=>n._subscribe({name:o,formState:c.current,exact:a,callback:l=>{!r&&s({...n._formState,...l})}}),[o,r,a]),E.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>DG(i,n,c.current,!1),[i,n])}var NG=e=>typeof e=="string",ov=(e,t,n,r,o)=>NG(e)?at(n,e,o):Array.isArray(e)?e.map(a=>at(n,a)):n,av=e=>Qf(e)||!rC(e);function va(e,t,n=new WeakSet){if(av(e)||av(t))return Object.is(e,t);if(Ur(e)&&Ur(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(Ur(i)&&Ur(s)||jn(i)&&jn(s)||Array.isArray(i)&&Array.isArray(s)?!va(i,s,n):!Object.is(i,s))return!1}}return!0}function kG(e){const t=ki(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},c=E.useRef(o),l=E.useRef(s),u=E.useRef(void 0),d=E.useRef(n),f=E.useRef(r);l.current=s;const[g,b]=E.useState(()=>{const C=n._getWatch(r,c.current);return l.current?l.current(C):C}),m=E.useCallback(C=>{const S=ov(r,n._names,C||n._formValues,!1,c.current);return l.current?l.current(S):S},[n._formValues,n._names,r]),h=E.useCallback(C=>{if(!a){const S=ov(r,n._names,C||n._formValues,!1,c.current);if(l.current){const A=l.current(S);va(A,u.current)||(b(A),u.current=A)}else b(S)}},[n._formValues,n._names,a,r]);sC(()=>((d.current!==n||!va(f.current,r))&&(d.current=n,f.current=r,h()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:C=>{h(C.values)}})),[n,i,r,h]),E.useEffect(()=>n._removeUnmounted());const v=d.current!==n,x=f.current,w=E.useMemo(()=>{if(a)return null;const C=!v&&!va(x,r);return v||C?m():null},[a,v,r,x,m]);return w!==null?w:g}function FG(e){const t=ki(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,c=PG(o._names.array,n),l=E.useMemo(()=>at(o._formValues,n,at(o._defaultValues,n,i)),[o,n,i]),u=kG({control:o,name:n,defaultValue:l,exact:s}),d=cC({control:o,name:n,exact:s}),f=E.useRef(e),g=E.useRef(void 0),b=E.useRef(o.register(n,{...e.rules,value:u,..._u(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!at(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!at(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!at(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!at(d.validatingFields,n)},error:{enumerable:!0,get:()=>at(d.errors,n)}}),[d,n]),h=E.useCallback(C=>b.current.onChange({target:{value:AG(C),name:n},type:nv.CHANGE}),[n]),v=E.useCallback(()=>b.current.onBlur({target:{value:at(o._formValues,n),name:n},type:nv.BLUR}),[n,o._formValues]),x=E.useCallback(C=>{const S=at(o._fields,n);S&&S._f&&C&&(S._f.ref={focus:()=>ua(C.focus)&&C.focus(),select:()=>ua(C.select)&&C.select(),setCustomValidity:A=>ua(C.setCustomValidity)&&C.setCustomValidity(A),reportValidity:()=>ua(C.reportValidity)&&C.reportValidity()})},[o._fields,n]),w=E.useMemo(()=>({name:n,value:u,..._u(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:h,onBlur:v,ref:x}),[n,r,d.disabled,h,v,x,u]);return E.useEffect(()=>{const C=o._options.shouldUnregister||a,S=g.current;S&&S!==n&&!c&&o.unregister(S),o.register(n,{...f.current.rules,..._u(f.current.disabled)?{disabled:f.current.disabled}:{}});const A=(I,R)=>{const P=at(o._fields,I);P&&P._f&&(P._f.mount=R)};if(A(n,!0),C){const I=oC(at(o._options.defaultValues,n,f.current.defaultValue));tv(o._defaultValues,n,I),wd(at(o._formValues,n))&&tv(o._formValues,n,I)}return!c&&o.register(n),g.current=n,()=>{(c?C&&!o._state.action:C)?o.unregister(n):A(n,!1)}},[n,o,c,a]),E.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),E.useMemo(()=>({field:w,formState:d,fieldState:m}),[w,d,m])}const BG=e=>e.render(FG(e));var jG="Label",lC=p.forwardRef((e,t)=>y.jsx(st.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));lC.displayName=jG;var GG=lC;function tp({className:e,variant:t="default",...n}){return y.jsx(GG,{"data-slot":"label",className:D(VR({variant:t}),e),...n})}const uC=p.createContext({}),dC=p.createContext({}),Fi=()=>{const e=p.useContext(uC),t=p.useContext(dC),{getFieldState:n}=ki(),r=cC({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},LG=MG,WG=({...e})=>y.jsx(uC.Provider,{value:{name:e.name},children:y.jsx(BG,{...e})});function VG({className:e,...t}){const n=p.useId();return y.jsx(dC.Provider,{value:{id:n},children:y.jsx("div",{"data-slot":"form-item",className:D("grid gap-2",e),...t})})}function HG({className:e,...t}){const{error:n,formItemId:r}=Fi();return y.jsx(tp,{"data-slot":"form-label","data-error":!!n,className:D("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function $G({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=Fi();return y.jsx(Cn,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function zG({className:e,...t}){const{formDescriptionId:n}=Fi();return y.jsx("p",{"data-slot":"form-description",id:n,className:D("text-muted-foreground text-sm",e),...t})}function XG({className:e,...t}){const{error:n,formMessageId:r}=Fi(),o=n?String(n?.message??""):t.children;return o?y.jsx("p",{"data-slot":"form-message",id:r,className:D("text-destructive text-sm",e),...t,children:o}):null}var Mu,Bi="HoverCard",[fC]=ze(Bi,[en]),ji=en(),[YG,np]=fC(Bi),pC=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,c=ji(t),l=p.useRef(0),u=p.useRef(0),d=p.useRef(!1),f=p.useRef(!1),[g,b]=et({prop:r,defaultProp:o??!1,onChange:a,caller:Bi}),m=p.useCallback(()=>{clearTimeout(u.current),l.current=window.setTimeout(()=>b(!0),i)},[i,b]),h=p.useCallback(()=>{clearTimeout(l.current),!d.current&&!f.current&&(u.current=window.setTimeout(()=>b(!1),s))},[s,b]),v=p.useCallback(()=>b(!1),[b]);return p.useEffect(()=>()=>{clearTimeout(l.current),clearTimeout(u.current)},[]),y.jsx(YG,{scope:t,open:g,onOpenChange:b,onOpen:m,onClose:h,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:y.jsx(Fo,{...c,children:n})})};pC.displayName=Bi;var mC="HoverCardTrigger",ZG=p.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=np(mC,n),a=ji(n);return y.jsx(Ar,{asChild:!0,...a,children:y.jsx(oe.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:X(e.onPointerEnter,Ha(o.onOpen)),onPointerLeave:X(e.onPointerLeave,Ha(o.onClose)),onFocus:X(e.onFocus,o.onOpen),onBlur:X(e.onBlur,o.onClose),onTouchStart:X(e.onTouchStart,i=>i.preventDefault())})})});ZG.displayName=mC;var qG="HoverCardPortal",[k9,UG]=fC(qG,{forceMount:void 0}),Va="HoverCardContent",JG=p.forwardRef((e,t)=>{const n=UG(Va,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=np(Va,e.__scopeHoverCard);return y.jsx(Xe,{present:r||a.open,children:y.jsx(KG,{"data-state":a.open?"open":"closed",...o,onPointerEnter:X(e.onPointerEnter,Ha(a.onOpen)),onPointerLeave:X(e.onPointerLeave,Ha(a.onClose)),ref:t})})});JG.displayName=Va;var KG=p.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,c=np(Va,n),l=ji(n),u=p.useRef(null),d=pe(t,u),[f,g]=p.useState(!1);return p.useEffect(()=>{if(f){const b=document.body;return Mu=b.style.userSelect||b.style.webkitUserSelect,b.style.userSelect="none",b.style.webkitUserSelect="none",()=>{b.style.userSelect=Mu,b.style.webkitUserSelect=Mu}}},[f]),p.useEffect(()=>{if(u.current){const b=()=>{g(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",b),()=>{document.removeEventListener("pointerup",b),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),p.useEffect(()=>{u.current&&tL(u.current).forEach(m=>m.setAttribute("tabindex","-1"))}),y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:X(a,b=>{b.preventDefault()}),onDismiss:c.onDismiss,children:y.jsx(Bo,{...l,...s,onPointerDown:X(s.onPointerDown,b=>{b.currentTarget.contains(b.target)&&g(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),QG="HoverCardArrow",eL=p.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ji(n);return y.jsx(jo,{...o,...r,ref:t})});eL.displayName=QG;function Ha(e){return t=>t.pointerType==="touch"?void 0:e()}function tL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var nL=pC;function rL({...e}){return y.jsx(nL,{"data-slot":"hover-card",...e})}function oL({name:e,className:t,...n}){return y.jsx("i",{className:D(`icon-${e}`,t),...n,children:y.jsxs("span",{className:"for-screenreader-only",children:[e," icon"]})})}function hC({className:e,type:t,...n}){return y.jsx("input",{type:t,"data-slot":"input",className:D("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}var aL=Object.defineProperty,iL=Object.defineProperties,sL=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,iv=(e,t,n)=>t in e?aL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cL=(e,t)=>{for(var n in t||(t={}))gC.call(t,n)&&iv(e,n,t[n]);if($a)for(var n of $a(t))bC.call(t,n)&&iv(e,n,t[n]);return e},lL=(e,t)=>iL(e,sL(t)),uL=(e,t)=>{var n={};for(var r in e)gC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$a)for(var r of $a(e))t.indexOf(r)<0&&bC.call(e,r)&&(n[r]=e[r]);return n};function dL(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function fL(e){let t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var pL=18,vC=40,mL=`${vC}px`,hL=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function gL({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=p.useState(!1),[i,s]=p.useState(!1),[c,l]=p.useState(!1),u=p.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&i,[o,i,n]),d=p.useCallback(()=>{let f=e.current,g=t.current;if(!f||!g||c||n==="none")return;let b=f,m=b.getBoundingClientRect().left+b.offsetWidth,h=b.getBoundingClientRect().top+b.offsetHeight/2,v=m-pL,x=h;document.querySelectorAll(hL).length===0&&document.elementFromPoint(v,x)===f||(a(!0),l(!0))},[e,t,c,n]);return p.useEffect(()=>{let f=e.current;if(!f||n==="none")return;function g(){let m=window.innerWidth-f.getBoundingClientRect().right;s(m>=vC)}g();let b=setInterval(g,1e3);return()=>{clearInterval(b)}},[e,n]),p.useEffect(()=>{let f=r||document.activeElement===t.current;if(n==="none"||!f)return;let g=setTimeout(d,0),b=setTimeout(d,2e3),m=setTimeout(d,5e3),h=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(g),clearTimeout(b),clearTimeout(m),clearTimeout(h)}},[t,r,n,d]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:mL}}var bL=p.createContext({}),yC=p.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:c,inputMode:l="numeric",onComplete:u,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:f,containerClassName:g,noScriptCSSFallback:b=vL,render:m,children:h}=n,v=uL(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),x,w,C,S,A;let[I,R]=p.useState(typeof v.defaultValue=="string"?v.defaultValue:""),P=r??I,M=fL(P),T=p.useCallback(_=>{o?.(_),R(_)},[o]),B=p.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),O=p.useRef(null),L=p.useRef(null),W=p.useRef({value:P,onChange:T,isIOS:typeof window<"u"&&((w=(x=window?.CSS)==null?void 0:x.supports)==null?void 0:w.call(x,"-webkit-touch-callout","none"))}),j=p.useRef({prev:[(C=O.current)==null?void 0:C.selectionStart,(S=O.current)==null?void 0:S.selectionEnd,(A=O.current)==null?void 0:A.selectionDirection]});p.useImperativeHandle(t,()=>O.current,[]),p.useEffect(()=>{let _=O.current,Q=L.current;if(!_||!Q)return;W.current.value!==_.value&&W.current.onChange(_.value),j.current.prev=[_.selectionStart,_.selectionEnd,_.selectionDirection];function ge(){if(document.activeElement!==_){k(null),Y(null);return}let ye=_.selectionStart,Se=_.selectionEnd,tt=_.selectionDirection,Ve=_.maxLength,Fe=_.value,Ye=j.current.prev,Ze=-1,rt=-1,ot;if(Fe.length!==0&&ye!==null&&Se!==null){let rn=ye===Se,ut=ye===Fe.length&&Fe.length<Ve;if(rn&&!ut){let Ue=ye;if(Ue===0)Ze=0,rt=1,ot="forward";else if(Ue===Ve)Ze=Ue-1,rt=Ue,ot="backward";else if(Ve>1&&Fe.length>1){let on=0;if(Ye[0]!==null&&Ye[1]!==null){ot=Ue<Ye[1]?"backward":"forward";let An=Ye[0]===Ye[1]&&Ye[0]<Ve;ot==="backward"&&!An&&(on=-1)}Ze=on+Ue,rt=on+Ue+1}}Ze!==-1&&rt!==-1&&Ze!==rt&&O.current.setSelectionRange(Ze,rt,ot)}let It=Ze!==-1?Ze:ye,Bt=rt!==-1?rt:Se,lt=ot??tt;k(It),Y(Bt),j.current.prev=[It,Bt,lt]}if(document.addEventListener("selectionchange",ge,{capture:!0}),ge(),document.activeElement===_&&U(!0),!document.getElementById("input-otp-style")){let ye=document.createElement("style");if(ye.id="input-otp-style",document.head.appendChild(ye),ye.sheet){let Se="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Wr(ye.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Wr(ye.sheet,`[data-input-otp]:autofill { ${Se} }`),Wr(ye.sheet,`[data-input-otp]:-webkit-autofill { ${Se} }`),Wr(ye.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Wr(ye.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let xe=()=>{Q&&Q.style.setProperty("--root-height",`${_.clientHeight}px`)};xe();let Te=new ResizeObserver(xe);return Te.observe(_),()=>{document.removeEventListener("selectionchange",ge,{capture:!0}),Te.disconnect()}},[]);let[$,N]=p.useState(!1),[V,U]=p.useState(!1),[ee,k]=p.useState(null),[H,Y]=p.useState(null);p.useEffect(()=>{dL(()=>{var _,Q,ge,xe;(_=O.current)==null||_.dispatchEvent(new Event("input"));let Te=(Q=O.current)==null?void 0:Q.selectionStart,ye=(ge=O.current)==null?void 0:ge.selectionEnd,Se=(xe=O.current)==null?void 0:xe.selectionDirection;Te!==null&&ye!==null&&(k(Te),Y(ye),j.current.prev=[Te,ye,Se])})},[P,V]),p.useEffect(()=>{M!==void 0&&P!==M&&M.length<a&&P.length===a&&u?.(P)},[a,u,M,P]);let z=gL({containerRef:L,inputRef:O,pushPasswordManagerStrategy:d,isFocused:V}),J=p.useCallback(_=>{let Q=_.currentTarget.value.slice(0,a);if(Q.length>0&&B&&!B.test(Q)){_.preventDefault();return}typeof M=="string"&&Q.length<M.length&&document.dispatchEvent(new Event("selectionchange")),T(Q)},[a,T,M,B]),G=p.useCallback(()=>{var _;if(O.current){let Q=Math.min(O.current.value.length,a-1),ge=O.current.value.length;(_=O.current)==null||_.setSelectionRange(Q,ge),k(Q),Y(ge)}U(!0)},[a]),q=p.useCallback(_=>{var Q,ge;let xe=O.current;if(!f&&(!W.current.isIOS||!_.clipboardData||!xe))return;let Te=_.clipboardData.getData("text/plain"),ye=f?f(Te):Te;_.preventDefault();let Se=(Q=O.current)==null?void 0:Q.selectionStart,tt=(ge=O.current)==null?void 0:ge.selectionEnd,Ve=(Se!==tt?P.slice(0,Se)+ye+P.slice(tt):P.slice(0,Se)+ye+P.slice(Se)).slice(0,a);if(Ve.length>0&&B&&!B.test(Ve))return;xe.value=Ve,T(Ve);let Fe=Math.min(Ve.length,a-1),Ye=Ve.length;xe.setSelectionRange(Fe,Ye),k(Fe),Y(Ye)},[a,T,B,P]),ae=p.useMemo(()=>({position:"relative",cursor:v.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[v.disabled]),re=p.useMemo(()=>({position:"absolute",inset:0,width:z.willPushPWMBadge?`calc(100% + ${z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:z.willPushPWMBadge?`inset(0 ${z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[z.PWM_BADGE_SPACE_WIDTH,z.willPushPWMBadge,i]),te=p.useMemo(()=>p.createElement("input",lL(cL({autoComplete:v.autoComplete||"one-time-code"},v),{"data-input-otp":!0,"data-input-otp-placeholder-shown":P.length===0||void 0,"data-input-otp-mss":ee,"data-input-otp-mse":H,inputMode:l,pattern:B?.source,"aria-placeholder":c,style:re,maxLength:a,value:P,ref:O,onPaste:_=>{var Q;q(_),(Q=v.onPaste)==null||Q.call(v,_)},onChange:J,onMouseOver:_=>{var Q;N(!0),(Q=v.onMouseOver)==null||Q.call(v,_)},onMouseLeave:_=>{var Q;N(!1),(Q=v.onMouseLeave)==null||Q.call(v,_)},onFocus:_=>{var Q;G(),(Q=v.onFocus)==null||Q.call(v,_)},onBlur:_=>{var Q;U(!1),(Q=v.onBlur)==null||Q.call(v,_)}})),[J,G,q,l,re,a,H,ee,v,B?.source,P]),F=p.useMemo(()=>({slots:Array.from({length:a}).map((_,Q)=>{var ge;let xe=V&&ee!==null&&H!==null&&(ee===H&&Q===ee||Q>=ee&&Q<H),Te=P[Q]!==void 0?P[Q]:null,ye=P[0]!==void 0?null:(ge=c?.[Q])!=null?ge:null;return{char:Te,placeholderChar:ye,isActive:xe,hasFakeCaret:xe&&Te===null}}),isFocused:V,isHovering:!v.disabled&&$}),[V,$,a,H,ee,v.disabled,P]),de=p.useMemo(()=>m?m(F):p.createElement(bL.Provider,{value:F},h),[h,F,m]);return p.createElement(p.Fragment,null,b!==null&&p.createElement("noscript",null,p.createElement("style",null,b)),p.createElement("div",{ref:L,"data-input-otp-container":!0,style:ae,className:g},de,p.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},te)))});yC.displayName="Input";function Wr(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var vL=`
|
|
63
|
+
[data-input-otp] {
|
|
64
|
+
--nojs-bg: white !important;
|
|
65
|
+
--nojs-fg: black !important;
|
|
66
|
+
|
|
67
|
+
background-color: var(--nojs-bg) !important;
|
|
68
|
+
color: var(--nojs-fg) !important;
|
|
69
|
+
caret-color: var(--nojs-fg) !important;
|
|
70
|
+
letter-spacing: .25em !important;
|
|
71
|
+
text-align: center !important;
|
|
72
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
73
|
+
border-radius: 4px !important;
|
|
74
|
+
width: 100% !important;
|
|
75
|
+
}
|
|
76
|
+
@media (prefers-color-scheme: dark) {
|
|
77
|
+
[data-input-otp] {
|
|
78
|
+
--nojs-bg: black !important;
|
|
79
|
+
--nojs-fg: white !important;
|
|
80
|
+
}
|
|
81
|
+
}`;function yL({ref:e,className:t,containerClassName:n,...r}){return y.jsx(yC,{ref:e,"data-slot":"input-otp",containerClassName:D("flex items-center gap-2 has-disabled:opacity-50",n),className:D("disabled:cursor-not-allowed",t),...r})}function xL({className:e,...t}){return y.jsx("kbd",{"data-slot":"kbd",className:D("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}function wL({className:e,...t}){return y.jsx("kbd",{"data-slot":"kbd-group",className:D("inline-flex items-center gap-1",e),...t})}function CL({title:e="Load more",className:t}){return y.jsx("section",{className:t,children:y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(ey,{className:"size-8 animate-spin text-primary"}),e]})})}function SL({className:e,size:t="default",...n}){return y.jsxs("div",{className:"group/native-select relative w-fit has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[y.jsx("select",{"data-slot":"native-select","data-size":t,className:D("border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n}),y.jsx(Zd,{className:"text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function IL({...e}){return y.jsx("option",{"data-slot":"native-select-option",...e})}function EL({className:e,...t}){return y.jsx("optgroup",{"data-slot":"native-select-optgroup",className:D(e),...t})}function AL({className:e,...t}){return y.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:D("mx-auto flex w-full justify-center",e),...t})}var Gi="Popover",[xC]=ze(Gi,[en]),Vo=en(),[RL,Zn]=xC(Gi),wC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Vo(t),c=p.useRef(null),[l,u]=p.useState(!1),[d,f]=et({prop:r,defaultProp:o??!1,onChange:a,caller:Gi});return y.jsx(Fo,{...s,children:y.jsx(RL,{scope:t,contentId:Le(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(g=>!g),[f]),hasCustomAnchor:l,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:i,children:n})})};wC.displayName=Gi;var CC="PopoverAnchor",PL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zn(CC,n),a=Vo(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return p.useEffect(()=>(i(),()=>s()),[i,s]),y.jsx(Ar,{...a,...r,ref:t})});PL.displayName=CC;var SC="PopoverTrigger",OL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zn(SC,n),a=Vo(n),i=pe(t,o.triggerRef),s=y.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":AC(o.open),...r,ref:i,onClick:X(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Ar,{asChild:!0,...a,children:s})});OL.displayName=SC;var TL="PopoverPortal",[F9,_L]=xC(TL,{forceMount:void 0}),br="PopoverContent",ML=p.forwardRef((e,t)=>{const n=_L(br,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Zn(br,e.__scopePopover);return y.jsx(Xe,{present:r||a.open,children:a.modal?y.jsx(NL,{...o,ref:t}):y.jsx(kL,{...o,ref:t})})});ML.displayName=br;var DL=Dn("PopoverContent.RemoveScroll"),NL=p.forwardRef((e,t)=>{const n=Zn(br,e.__scopePopover),r=p.useRef(null),o=pe(t,r),a=p.useRef(!1);return p.useEffect(()=>{const i=r.current;if(i)return xi(i)},[]),y.jsx(Do,{as:DL,allowPinchZoom:!0,children:y.jsx(IC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:X(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),kL=p.forwardRef((e,t)=>{const n=Zn(br,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return y.jsx(IC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),IC=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Zn(br,n),g=Vo(n);return vi(),y.jsx(Mo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(Bo,{"data-state":AC(f.open),role:"dialog",id:f.contentId,...g,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),EC="PopoverClose",FL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zn(EC,n);return y.jsx(oe.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});FL.displayName=EC;var BL="PopoverArrow",jL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Vo(n);return y.jsx(jo,{...o,...r,ref:t})});jL.displayName=BL;function AC(e){return e?"open":"closed"}var GL=wC;function LL({...e}){return y.jsx(GL,{"data-slot":"popover",...e})}var rp="Radio",[WL,RC]=ze(rp),[VL,HL]=WL(rp),PC=p.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:c,form:l,...u}=e,[d,f]=p.useState(null),g=pe(t,h=>f(h)),b=p.useRef(!1),m=d?l||!!d.closest("form"):!0;return y.jsxs(VL,{scope:n,checked:o,disabled:i,children:[y.jsx(oe.button,{type:"button",role:"radio","aria-checked":o,"data-state":MC(o),"data-disabled":i?"":void 0,disabled:i,value:s,...u,ref:g,onClick:X(e.onClick,h=>{o||c?.(),m&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),m&&y.jsx(_C,{control:d,bubbles:!b.current,name:r,value:s,checked:o,required:a,disabled:i,form:l,style:{transform:"translateX(-100%)"}})]})});PC.displayName=rp;var OC="RadioIndicator",TC=p.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=HL(OC,n);return y.jsx(Xe,{present:r||a.checked,children:y.jsx(oe.span,{"data-state":MC(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});TC.displayName=OC;var $L="RadioBubbleInput",_C=p.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=p.useRef(null),s=pe(i,a),c=To(n),l=_o(t);return p.useEffect(()=>{const u=i.current;if(!u)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&g){const b=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(b)}},[c,n,r]),y.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_C.displayName=$L;function MC(e){return e?"checked":"unchecked"}var zL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Li="RadioGroup",[XL]=ze(Li,[Rr,RC]),DC=Rr(),NC=RC(),[YL,ZL]=XL(Li),kC=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:d,...f}=e,g=DC(n),b=wn(l),[m,h]=et({prop:a,defaultProp:o??null,onChange:d,caller:Li});return y.jsx(YL,{scope:n,name:r,required:i,disabled:s,value:m,onValueChange:h,children:y.jsx(zf,{asChild:!0,...g,orientation:c,dir:b,loop:u,children:y.jsx(oe.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:b,...f,ref:t})})})});kC.displayName=Li;var FC="RadioGroupItem",qL=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=ZL(FC,n),i=a.disabled||r,s=DC(n),c=NC(n),l=p.useRef(null),u=pe(t,l),d=a.value===o.value,f=p.useRef(!1);return p.useEffect(()=>{const g=m=>{zL.includes(m.key)&&(f.current=!0)},b=()=>f.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),y.jsx(Xf,{asChild:!0,...s,focusable:!i,active:d,children:y.jsx(PC,{disabled:i,required:a.required,checked:d,...c,...o,name:a.name,ref:u,onCheck:()=>a.onValueChange(o.value),onKeyDown:X(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:X(o.onFocus,()=>{f.current&&l.current?.click()})})})});qL.displayName=FC;var UL="RadioGroupIndicator",JL=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=NC(n);return y.jsx(TC,{...o,...r,ref:t})});JL.displayName=UL;var KL=kC;function QL({className:e,...t}){return y.jsx(KL,{"data-slot":"radio-group",className:D("grid gap-3",e),...t})}function go(e,[t,n]){return Math.min(n,Math.max(t,e))}function eW(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var op="ScrollArea",[BC]=ze(op),[tW,St]=BC(op),jC=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,c]=p.useState(null),[l,u]=p.useState(null),[d,f]=p.useState(null),[g,b]=p.useState(null),[m,h]=p.useState(null),[v,x]=p.useState(0),[w,C]=p.useState(0),[S,A]=p.useState(!1),[I,R]=p.useState(!1),P=pe(t,T=>c(T)),M=wn(o);return y.jsx(tW,{scope:n,type:r,dir:M,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:S,onScrollbarXEnabledChange:A,scrollbarY:m,onScrollbarYChange:h,scrollbarYEnabled:I,onScrollbarYEnabledChange:R,onCornerWidthChange:x,onCornerHeightChange:C,children:y.jsx(oe.div,{dir:M,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});jC.displayName=op;var GC="ScrollAreaViewport",LC=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=St(GC,n),s=p.useRef(null),c=pe(t,s,i.onViewportChange);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),y.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:y.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});LC.displayName=GC;var tn="ScrollAreaScrollbar",WC=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(tn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return p.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?y.jsx(nW,{...r,ref:t,forceMount:n}):o.type==="scroll"?y.jsx(rW,{...r,ref:t,forceMount:n}):o.type==="auto"?y.jsx(VC,{...r,ref:t,forceMount:n}):o.type==="always"?y.jsx(ap,{...r,ref:t}):null});WC.displayName=tn;var nW=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(tn,e.__scopeScrollArea),[a,i]=p.useState(!1);return p.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const l=()=>{window.clearTimeout(c),i(!0)},u=()=>{c=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),y.jsx(Xe,{present:n||a,children:y.jsx(VC,{"data-state":a?"visible":"hidden",...r,ref:t})})}),rW=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(tn,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Vi(()=>c("SCROLL_END"),100),[s,c]=eW("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,c]),p.useEffect(()=>{const l=o.viewport,u=a?"scrollLeft":"scrollTop";if(l){let d=l[u];const f=()=>{const g=l[u];d!==g&&(c("SCROLL"),i()),d=g};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,c,i]),y.jsx(Xe,{present:n||s!=="hidden",children:y.jsx(ap,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:X(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:X(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),VC=p.forwardRef((e,t)=>{const n=St(tn,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=p.useState(!1),s=e.orientation==="horizontal",c=Vi(()=>{if(n.viewport){const l=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?l:u)}},10);return vr(n.viewport,c),vr(n.content,c),y.jsx(Xe,{present:r||a,children:y.jsx(ap,{"data-state":a?"visible":"hidden",...o,ref:t})})}),ap=p.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=St(tn,e.__scopeScrollArea),a=p.useRef(null),i=p.useRef(0),[s,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=YC(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,g){return lW(f,i.current,s,g)}return n==="horizontal"?y.jsx(oW,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,g=sv(f,s,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):n==="vertical"?y.jsx(aW,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,g=sv(f,s);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),oW=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=St(tn,e.__scopeScrollArea),[i,s]=p.useState(),c=p.useRef(null),l=pe(t,c,a.onScrollbarXChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),y.jsx($C,{"data-orientation":"horizontal",...o,ref:l,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Wi(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),qC(f,d)&&u.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Xa(i.paddingLeft),paddingEnd:Xa(i.paddingRight)}})}})}),aW=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=St(tn,e.__scopeScrollArea),[i,s]=p.useState(),c=p.useRef(null),l=pe(t,c,a.onScrollbarYChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),y.jsx($C,{"data-orientation":"vertical",...o,ref:l,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Wi(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),qC(f,d)&&u.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Xa(i.paddingTop),paddingEnd:Xa(i.paddingBottom)}})}})}),[iW,HC]=BC(tn),$C=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,g=St(tn,n),[b,m]=p.useState(null),h=pe(t,P=>m(P)),v=p.useRef(null),x=p.useRef(""),w=g.viewport,C=r.content-r.viewport,S=qe(u),A=qe(c),I=Vi(d,10);function R(P){if(v.current){const M=P.clientX-v.current.left,T=P.clientY-v.current.top;l({x:M,y:T})}}return p.useEffect(()=>{const P=M=>{const T=M.target;b?.contains(T)&&S(M,C)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[w,b,C,S]),p.useEffect(A,[r,A]),vr(b,I),vr(g.content,I),y.jsx(iW,{scope:n,scrollbar:b,hasThumb:o,onThumbChange:qe(a),onThumbPointerUp:qe(i),onThumbPositionChange:A,onThumbPointerDown:qe(s),children:y.jsx(oe.div,{...f,ref:h,style:{position:"absolute",...f.style},onPointerDown:X(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),v.current=b.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),R(P))}),onPointerMove:X(e.onPointerMove,R),onPointerUp:X(e.onPointerUp,P=>{const M=P.target;M.hasPointerCapture(P.pointerId)&&M.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=x.current,g.viewport&&(g.viewport.style.scrollBehavior=""),v.current=null})})})}),za="ScrollAreaThumb",zC=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=HC(za,e.__scopeScrollArea);return y.jsx(Xe,{present:n||o.hasThumb,children:y.jsx(sW,{ref:t,...r})})}),sW=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=St(za,n),i=HC(za,n),{onThumbPositionChange:s}=i,c=pe(t,d=>i.onThumbChange(d)),l=p.useRef(void 0),u=Vi(()=>{l.current&&(l.current(),l.current=void 0)},100);return p.useEffect(()=>{const d=a.viewport;if(d){const f=()=>{if(u(),!l.current){const g=uW(d,s);l.current=g,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,u,s]),y.jsx(oe.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:X(e.onPointerDownCapture,d=>{const g=d.target.getBoundingClientRect(),b=d.clientX-g.left,m=d.clientY-g.top;i.onThumbPointerDown({x:b,y:m})}),onPointerUp:X(e.onPointerUp,i.onThumbPointerUp)})});zC.displayName=za;var ip="ScrollAreaCorner",XC=p.forwardRef((e,t)=>{const n=St(ip,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?y.jsx(cW,{...e,ref:t}):null});XC.displayName=ip;var cW=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=St(ip,n),[a,i]=p.useState(0),[s,c]=p.useState(0),l=!!(a&&s);return vr(o.scrollbarX,()=>{const u=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(u),c(u)}),vr(o.scrollbarY,()=>{const u=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(u),i(u)}),l?y.jsx(oe.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Xa(e){return e?parseInt(e,10):0}function YC(e,t){const n=e/t;return isNaN(n)?0:n}function Wi(e){const t=YC(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function lW(e,t,n,r="ltr"){const o=Wi(n),a=o/2,i=t||a,s=o-i,c=n.scrollbar.paddingStart+i,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return ZC([c,l],d)(e)}function sv(e,t,n="ltr"){const r=Wi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,c=n==="ltr"?[0,i]:[i*-1,0],l=go(e,c);return ZC([0,i],[0,s])(l)}function ZC(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function qC(e,t){return e>0&&e<t}var uW=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Vi(e,t){const n=qe(e),r=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),p.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function vr(e,t){const n=qe(t);ke(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var dW=jC,fW=LC,pW=XC;function mW({className:e,children:t,...n}){return y.jsxs(dW,{"data-slot":"scroll-area",className:D("relative",e),...n,children:[y.jsx(fW,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),y.jsx(hW,{}),y.jsx(pW,{})]})}function hW({className:e,orientation:t="vertical",...n}){return y.jsx(WC,{"data-slot":"scroll-area-scrollbar",orientation:t,className:D("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:y.jsx(zC,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var UC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gW="VisuallyHidden",JC=p.forwardRef((e,t)=>y.jsx(oe.span,{...e,ref:t,style:{...UC,...e.style}}));JC.displayName=gW;var bW=JC,vW=[" ","Enter","ArrowUp","ArrowDown"],yW=[" ","Enter"],Gn="Select",[Hi,$i,xW]=wo(Gn),[Or]=ze(Gn,[xW,en]),zi=en(),[wW,In]=Or(Gn),[CW,SW]=Or(Gn),KC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:g,form:b}=e,m=zi(t),[h,v]=p.useState(null),[x,w]=p.useState(null),[C,S]=p.useState(!1),A=wn(l),[I,R]=et({prop:r,defaultProp:o??!1,onChange:a,caller:Gn}),[P,M]=et({prop:i,defaultProp:s,onChange:c,caller:Gn}),T=p.useRef(null),B=h?b||!!h.closest("form"):!0,[O,L]=p.useState(new Set),W=Array.from(O).map(j=>j.props.value).join(";");return y.jsx(Fo,{...m,children:y.jsxs(wW,{required:g,scope:t,trigger:h,onTriggerChange:v,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:Le(),value:P,onValueChange:M,open:I,onOpenChange:R,dir:A,triggerPointerDownPosRef:T,disabled:f,children:[y.jsx(Hi.Provider,{scope:t,children:y.jsx(CW,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(j=>{L($=>new Set($).add(j))},[]),onNativeOptionRemove:p.useCallback(j=>{L($=>{const N=new Set($);return N.delete(j),N})},[]),children:n})}),B?y.jsxs(lS,{"aria-hidden":!0,required:g,tabIndex:-1,name:u,autoComplete:d,value:P,onChange:j=>M(j.target.value),disabled:f,form:b,children:[P===void 0?y.jsx("option",{value:""}):null,Array.from(O)]},W):null]})})};KC.displayName=Gn;var QC="SelectTrigger",IW=p.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=zi(n),i=In(QC,n),s=i.disabled||r,c=pe(t,i.onTriggerChange),l=$i(n),u=p.useRef("touch"),[d,f,g]=dS(m=>{const h=l().filter(w=>!w.disabled),v=h.find(w=>w.value===i.value),x=fS(h,m,v);x!==void 0&&i.onValueChange(x.value)}),b=m=>{s||(i.onOpenChange(!0),g()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return y.jsx(Ar,{asChild:!0,...a,children:y.jsx(oe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":uS(i.value)?"":void 0,...o,ref:c,onClick:X(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&b(m)}),onPointerDown:X(o.onPointerDown,m=>{u.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(b(m),m.preventDefault())}),onKeyDown:X(o.onKeyDown,m=>{const h=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(h&&m.key===" ")&&vW.includes(m.key)&&(b(),m.preventDefault())})})})});IW.displayName=QC;var eS="SelectValue",EW=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=In(eS,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=pe(t,c.onValueNodeChange);return ke(()=>{l(u)},[l,u]),y.jsx(oe.span,{...s,ref:d,style:{pointerEvents:"none"},children:uS(c.value)?y.jsx(y.Fragment,{children:i}):a})});EW.displayName=eS;var AW="SelectIcon",RW=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return y.jsx(oe.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});RW.displayName=AW;var Ln="SelectContent",PW=p.forwardRef((e,t)=>{const n=In(Ln,e.__scopeSelect),[r,o]=p.useState();if(ke(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?ei.createPortal(y.jsx(tS,{scope:e.__scopeSelect,children:y.jsx(Hi.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),a):null}return y.jsx(nS,{...e,ref:t})});PW.displayName=Ln;var Rt=10,[tS,En]=Or(Ln),OW="SelectContentImpl",TW=Dn("SelectContent.RemoveScroll"),nS=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:g,sticky:b,hideWhenDetached:m,avoidCollisions:h,...v}=e,x=In(Ln,n),[w,C]=p.useState(null),[S,A]=p.useState(null),I=pe(t,G=>C(G)),[R,P]=p.useState(null),[M,T]=p.useState(null),B=$i(n),[O,L]=p.useState(!1),W=p.useRef(!1);p.useEffect(()=>{if(w)return xi(w)},[w]),vi();const j=p.useCallback(G=>{const[q,...ae]=B().map(F=>F.ref.current),[re]=ae.slice(-1),te=document.activeElement;for(const F of G)if(F===te||(F?.scrollIntoView({block:"nearest"}),F===q&&S&&(S.scrollTop=0),F===re&&S&&(S.scrollTop=S.scrollHeight),F?.focus(),document.activeElement!==te))return},[B,S]),$=p.useCallback(()=>j([R,w]),[j,R,w]);p.useEffect(()=>{O&&$()},[O,$]);const{onOpenChange:N,triggerPointerDownPosRef:V}=x;p.useEffect(()=>{if(w){let G={x:0,y:0};const q=re=>{G={x:Math.abs(Math.round(re.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(re.pageY)-(V.current?.y??0))}},ae=re=>{G.x<=10&&G.y<=10?re.preventDefault():w.contains(re.target)||N(!1),document.removeEventListener("pointermove",q),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",ae,{capture:!0})}}},[w,N,V]),p.useEffect(()=>{const G=()=>N(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[N]);const[U,ee]=dS(G=>{const q=B().filter(te=>!te.disabled),ae=q.find(te=>te.ref.current===document.activeElement),re=fS(q,G,ae);re&&setTimeout(()=>re.ref.current.focus())}),k=p.useCallback((G,q,ae)=>{const re=!W.current&&!ae;(x.value!==void 0&&x.value===q||re)&&(P(G),re&&(W.current=!0))},[x.value]),H=p.useCallback(()=>w?.focus(),[w]),Y=p.useCallback((G,q,ae)=>{const re=!W.current&&!ae;(x.value!==void 0&&x.value===q||re)&&T(G)},[x.value]),z=r==="popper"?Cd:rS,J=z===Cd?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:g,sticky:b,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(tS,{scope:n,content:w,viewport:S,onViewportChange:A,itemRefCallback:k,selectedItem:R,onItemLeave:H,itemTextRefCallback:Y,focusSelectedItem:$,selectedItemText:M,position:r,isPositioned:O,searchRef:U,children:y.jsx(Do,{as:TW,allowPinchZoom:!0,children:y.jsx(Mo,{asChild:!0,trapped:x.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:X(o,G=>{x.trigger?.focus({preventScroll:!0}),G.preventDefault()}),children:y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(z,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:G=>G.preventDefault(),...v,...J,onPlaced:()=>L(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:X(v.onKeyDown,G=>{const q=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!q&&G.key.length===1&&ee(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let re=B().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(G.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const te=G.target,F=re.indexOf(te);re=re.slice(F+1)}setTimeout(()=>j(re)),G.preventDefault()}})})})})})})});nS.displayName=OW;var _W="SelectItemAlignedPosition",rS=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=In(Ln,n),i=En(Ln,n),[s,c]=p.useState(null),[l,u]=p.useState(null),d=pe(t,I=>u(I)),f=$i(n),g=p.useRef(!1),b=p.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:v,focusSelectedItem:x}=i,w=p.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&m&&h&&v){const I=a.trigger.getBoundingClientRect(),R=l.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),M=v.getBoundingClientRect();if(a.dir!=="rtl"){const te=M.left-R.left,F=P.left-te,de=I.left-F,_=I.width+de,Q=Math.max(_,R.width),ge=window.innerWidth-Rt,xe=go(F,[Rt,Math.max(Rt,ge-Q)]);s.style.minWidth=_+"px",s.style.left=xe+"px"}else{const te=R.right-M.right,F=window.innerWidth-P.right-te,de=window.innerWidth-I.right-F,_=I.width+de,Q=Math.max(_,R.width),ge=window.innerWidth-Rt,xe=go(F,[Rt,Math.max(Rt,ge-Q)]);s.style.minWidth=_+"px",s.style.right=xe+"px"}const T=f(),B=window.innerHeight-Rt*2,O=m.scrollHeight,L=window.getComputedStyle(l),W=parseInt(L.borderTopWidth,10),j=parseInt(L.paddingTop,10),$=parseInt(L.borderBottomWidth,10),N=parseInt(L.paddingBottom,10),V=W+j+O+N+$,U=Math.min(h.offsetHeight*5,V),ee=window.getComputedStyle(m),k=parseInt(ee.paddingTop,10),H=parseInt(ee.paddingBottom,10),Y=I.top+I.height/2-Rt,z=B-Y,J=h.offsetHeight/2,G=h.offsetTop+J,q=W+j+G,ae=V-q;if(q<=Y){const te=T.length>0&&h===T[T.length-1].ref.current;s.style.bottom="0px";const F=l.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(z,J+(te?H:0)+F+$),_=q+de;s.style.height=_+"px"}else{const te=T.length>0&&h===T[0].ref.current;s.style.top="0px";const de=Math.max(Y,W+m.offsetTop+(te?k:0)+J)+ae;s.style.height=de+"px",m.scrollTop=q-Y+m.offsetTop}s.style.margin=`${Rt}px 0`,s.style.minHeight=U+"px",s.style.maxHeight=B+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[f,a.trigger,a.valueNode,s,l,m,h,v,a.dir,r]);ke(()=>w(),[w]);const[C,S]=p.useState();ke(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const A=p.useCallback(I=>{I&&b.current===!0&&(w(),x?.(),b.current=!1)},[w,x]);return y.jsx(DW,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:y.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:y.jsx(oe.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rS.displayName=_W;var MW="SelectPopperPosition",Cd=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rt,...a}=e,i=zi(n);return y.jsx(Bo,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cd.displayName=MW;var[DW,sp]=Or(Ln,{}),Sd="SelectViewport",NW=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=En(Sd,n),i=sp(Sd,n),s=pe(t,a.onViewportChange),c=p.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),y.jsx(Hi.Slot,{scope:n,children:y.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f?.current&&d){const g=Math.abs(c.current-u.scrollTop);if(g>0){const b=window.innerHeight-Rt*2,m=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),v=Math.max(m,h);if(v<b){const x=v+g,w=Math.min(b,x),C=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,d.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});NW.displayName=Sd;var oS="SelectGroup",[kW,FW]=Or(oS),BW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Le();return y.jsx(kW,{scope:n,id:o,children:y.jsx(oe.div,{role:"group","aria-labelledby":o,...r,ref:t})})});BW.displayName=oS;var aS="SelectLabel",jW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=FW(aS,n);return y.jsx(oe.div,{id:o.id,...r,ref:t})});jW.displayName=aS;var Ya="SelectItem",[GW,iS]=Or(Ya),LW=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=In(Ya,n),c=En(Ya,n),l=s.value===r,[u,d]=p.useState(a??""),[f,g]=p.useState(!1),b=pe(t,x=>c.itemRefCallback?.(x,r,o)),m=Le(),h=p.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(GW,{scope:n,value:r,disabled:o,textId:m,isSelected:l,onItemTextChange:p.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(Hi.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:y.jsx(oe.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:X(i.onFocus,()=>g(!0)),onBlur:X(i.onBlur,()=>g(!1)),onClick:X(i.onClick,()=>{h.current!=="mouse"&&v()}),onPointerUp:X(i.onPointerUp,()=>{h.current==="mouse"&&v()}),onPointerDown:X(i.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:X(i.onPointerMove,x=>{h.current=x.pointerType,o?c.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:X(i.onKeyDown,x=>{c.searchRef?.current!==""&&x.key===" "||(yW.includes(x.key)&&v(),x.key===" "&&x.preventDefault())})})})})});LW.displayName=Ya;var Jr="SelectItemText",WW=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=In(Jr,n),s=En(Jr,n),c=iS(Jr,n),l=SW(Jr,n),[u,d]=p.useState(null),f=pe(t,v=>d(v),c.onItemTextChange,v=>s.itemTextRefCallback?.(v,c.value,c.disabled)),g=u?.textContent,b=p.useMemo(()=>y.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=l;return ke(()=>(m(b),()=>h(b)),[m,h,b]),y.jsxs(y.Fragment,{children:[y.jsx(oe.span,{id:c.textId,...a,ref:f}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ei.createPortal(a.children,i.valueNode):null]})});WW.displayName=Jr;var sS="SelectItemIndicator",VW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return iS(sS,n).isSelected?y.jsx(oe.span,{"aria-hidden":!0,...r,ref:t}):null});VW.displayName=sS;var Id="SelectScrollUpButton",HW=p.forwardRef((e,t)=>{const n=En(Id,e.__scopeSelect),r=sp(Id,e.__scopeSelect),[o,a]=p.useState(!1),i=pe(t,r.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollTop>0;a(l)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?y.jsx(cS,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});HW.displayName=Id;var Ed="SelectScrollDownButton",$W=p.forwardRef((e,t)=>{const n=En(Ed,e.__scopeSelect),r=sp(Ed,e.__scopeSelect),[o,a]=p.useState(!1),i=pe(t,r.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<l;a(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?y.jsx(cS,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});$W.displayName=Ed;var cS=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=En("SelectScrollButton",n),i=p.useRef(null),s=$i(n),c=p.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),ke(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),y.jsx(oe.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{c()})})}),zW="SelectSeparator",XW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(oe.div,{"aria-hidden":!0,...r,ref:t})});XW.displayName=zW;var Ad="SelectArrow",YW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zi(n),a=In(Ad,n),i=En(Ad,n);return a.open&&i.position==="popper"?y.jsx(jo,{...o,...r,ref:t}):null});YW.displayName=Ad;var ZW="SelectBubbleInput",lS=p.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=p.useRef(null),a=pe(r,o),i=To(t);return p.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[i,t]),y.jsx(oe.select,{...n,style:{...UC,...n.style},ref:a,defaultValue:t})});lS.displayName=ZW;function uS(e){return e===""||e===void 0}function dS(e){const t=qe(e),n=p.useRef(""),r=p.useRef(0),o=p.useCallback(i=>{const s=n.current+i;t(s),(function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function fS(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=qW(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function qW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var UW=KC;function JW({...e}){return y.jsx(UW,{"data-slot":"select",...e})}function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function KW(e,t){if(Wn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pS(e){var t=KW(e,"string");return Wn(t)=="symbol"?t:t+""}function Kr(e,t,n){return(t=pS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(n),!0).forEach(function(r){Kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QW(e){if(Array.isArray(e))return e}function eV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function Rd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mS(e,t){if(e){if(typeof e=="string")return Rd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rd(e,t):void 0}}function tV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function un(e,t){return QW(e)||eV(e,t)||mS(e,t)||tV()}function nn(e,t){if(e==null)return{};var n,r,o=VN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nV=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function hS(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,a=e.defaultValue,i=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,g=e.value,b=nn(e,nV),m=E.useState(s!==void 0?s:n),h=un(m,2),v=h[0],x=h[1],w=E.useState(c!==void 0?c:o),C=un(w,2),S=C[0],A=C[1],I=E.useState(g!==void 0?g:i),R=un(I,2),P=R[0],M=R[1],T=E.useCallback(function(N,V){typeof l=="function"&&l(N,V),M(N)},[l]),B=E.useCallback(function(N,V){var U;typeof u=="function"&&(U=u(N,V)),x(U!==void 0?U:N)},[u]),O=E.useCallback(function(){typeof f=="function"&&f(),A(!0)},[f]),L=E.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),W=s!==void 0?s:v,j=c!==void 0?c:S,$=g!==void 0?g:P;return fe(fe({},b),{},{inputValue:W,menuIsOpen:j,onChange:T,onInputChange:B,onMenuClose:L,onMenuOpen:O,value:$})}function rV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pS(r.key),r)}}function oV(e,t,n){return t&&lv(e.prototype,t),n&&lv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cd(e,t)}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Za(e)}function gS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gS=function(){return!!e})()}function iV(e,t){if(t&&(Wn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HN(e)}function sV(e){var t=gS();return function(){var n,r=Za(e);if(t){var o=Za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iV(this,n)}}function cV(e){if(Array.isArray(e))return Rd(e)}function lV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lr(e){return cV(e)||lV(e)||mS(e)||uV()}function dV(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function fV(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var pV=(function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fV(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=dV(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ke="-ms-",qa="-moz-",we="-webkit-",bS="comm",cp="rule",lp="decl",mV="@import",vS="@keyframes",hV="@layer",gV=Math.abs,Xi=String.fromCharCode,bV=Object.assign;function vV(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function yS(e){return e.trim()}function yV(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,n){return e.replace(t,n)}function Pd(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function bo(e,t,n){return e.slice(t,n)}function Lt(e){return e.length}function up(e){return e.length}function da(e,t){return t.push(e),e}function xV(e,t){return e.map(t).join("")}var Yi=1,yr=1,xS=0,it=0,Ge=0,Tr="";function Zi(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Yi,column:yr,length:i,return:""}}function Vr(e,t){return bV(Zi("",null,null,"",null,null,0),e,{length:-e.length},t)}function wV(){return Ge}function CV(){return Ge=it>0?Je(Tr,--it):0,yr--,Ge===10&&(yr=1,Yi--),Ge}function ht(){return Ge=it<xS?Je(Tr,it++):0,yr++,Ge===10&&(yr=1,Yi++),Ge}function Xt(){return Je(Tr,it)}function ya(){return it}function Ho(e,t){return bo(Tr,e,t)}function vo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wS(e){return Yi=yr=1,xS=Lt(Tr=e),it=0,[]}function CS(e){return Tr="",e}function xa(e){return yS(Ho(it-1,Od(e===91?e+2:e===40?e+1:e)))}function SV(e){for(;(Ge=Xt())&&Ge<33;)ht();return vo(e)>2||vo(Ge)>3?"":" "}function IV(e,t){for(;--t&&ht()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return Ho(e,ya()+(t<6&&Xt()==32&&ht()==32))}function Od(e){for(;ht();)switch(Ge){case e:return it;case 34:case 39:e!==34&&e!==39&&Od(Ge);break;case 40:e===41&&Od(e);break;case 92:ht();break}return it}function EV(e,t){for(;ht()&&e+Ge!==57;)if(e+Ge===84&&Xt()===47)break;return"/*"+Ho(t,it-1)+"*"+Xi(e===47?e:ht())}function AV(e){for(;!vo(Xt());)ht();return Ho(e,it)}function RV(e){return CS(wa("",null,null,null,[""],e=wS(e),0,[0],e))}function wa(e,t,n,r,o,a,i,s,c){for(var l=0,u=0,d=i,f=0,g=0,b=0,m=1,h=1,v=1,x=0,w="",C=o,S=a,A=r,I=w;h;)switch(b=x,x=ht()){case 40:if(b!=108&&Je(I,d-1)==58){Pd(I+=Ce(xa(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:I+=xa(x);break;case 9:case 10:case 13:case 32:I+=SV(b);break;case 92:I+=IV(ya()-1,7);continue;case 47:switch(Xt()){case 42:case 47:da(PV(EV(ht(),ya()),t,n),c);break;default:I+="/"}break;case 123*m:s[l++]=Lt(I)*v;case 125*m:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+u:v==-1&&(I=Ce(I,/\f/g,"")),g>0&&Lt(I)-d&&da(g>32?dv(I+";",r,n,d-1):dv(Ce(I," ","")+";",r,n,d-2),c);break;case 59:I+=";";default:if(da(A=uv(I,t,n,l,u,o,s,w,C=[],S=[],d),a),x===123)if(u===0)wa(I,t,A,A,C,a,d,s,S);else switch(f===99&&Je(I,3)===110?100:f){case 100:case 108:case 109:case 115:wa(e,A,A,r&&da(uv(e,A,A,0,0,o,s,w,o,C=[],d),S),o,S,d,s,r?C:S);break;default:wa(I,A,A,A,[""],S,0,s,S)}}l=u=g=0,m=v=1,w=I="",d=i;break;case 58:d=1+Lt(I),g=b;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&CV()==125)continue}switch(I+=Xi(x),x*m){case 38:v=u>0?1:(I+="\f",-1);break;case 44:s[l++]=(Lt(I)-1)*v,v=1;break;case 64:Xt()===45&&(I+=xa(ht())),f=Xt(),u=d=Lt(w=I+=AV(ya())),x++;break;case 45:b===45&&Lt(I)==2&&(m=0)}}return a}function uv(e,t,n,r,o,a,i,s,c,l,u){for(var d=o-1,f=o===0?a:[""],g=up(f),b=0,m=0,h=0;b<r;++b)for(var v=0,x=bo(e,d+1,d=gV(m=i[b])),w=e;v<g;++v)(w=yS(m>0?f[v]+" "+x:Ce(x,/&\f/g,f[v])))&&(c[h++]=w);return Zi(e,t,n,o===0?cp:s,c,l,u)}function PV(e,t,n){return Zi(e,t,n,bS,Xi(wV()),bo(e,2,-2),0)}function dv(e,t,n,r){return Zi(e,t,n,lp,bo(e,0,r),bo(e,r+1,-1),r)}function ur(e,t){for(var n="",r=up(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function OV(e,t,n,r){switch(e.type){case hV:if(e.children.length)break;case mV:case lp:return e.return=e.return||e.value;case bS:return"";case vS:return e.return=e.value+"{"+ur(e.children,r)+"}";case cp:e.value=e.props.join(",")}return Lt(n=ur(e.children,r))?e.return=e.value+"{"+n+"}":""}function TV(e){var t=up(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function _V(e){return function(t){t.root||(t=t.return)&&e(t)}}function MV(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var DV=function(t,n,r){for(var o=0,a=0;o=a,a=Xt(),o===38&&a===12&&(n[r]=1),!vo(a);)ht();return Ho(t,it)},NV=function(t,n){var r=-1,o=44;do switch(vo(o)){case 0:o===38&&Xt()===12&&(n[r]=1),t[r]+=DV(it-1,n,r);break;case 2:t[r]+=xa(o);break;case 4:if(o===44){t[++r]=Xt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Xi(o)}while(o=ht());return t},kV=function(t,n){return CS(NV(wS(t),n))},fv=new WeakMap,FV=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!fv.get(r))&&!o){fv.set(t,!0);for(var a=[],i=kV(n,a),s=r.props,c=0,l=0;c<i.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=a[c]?i[c].replace(/&\f/g,s[u]):s[u]+" "+i[c]}}},BV=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function SS(e,t){switch(vV(e,t)){case 5103:return we+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+qa+e+Ke+e+e;case 6828:case 4268:return we+e+Ke+e+e;case 6165:return we+e+Ke+"flex-"+e+e;case 5187:return we+e+Ce(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return we+e+Ke+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return we+e+Ke+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+Ke+Ce(e,"shrink","negative")+e;case 5292:return we+e+Ke+Ce(e,"basis","preferred-size")+e;case 6060:return we+"box-"+Ce(e,"-grow","")+we+e+Ke+Ce(e,"grow","positive")+e;case 4554:return we+Ce(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,we+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+qa+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pd(e,"stretch")?SS(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Lt(e)-3-(~Pd(e,"!important")&&10))){case 107:return Ce(e,":",":"+we)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(Je(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return we+e+Ke+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+Ke+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+Ke+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+Ke+e+e}return e}var jV=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lp:t.return=SS(t.value,t.length);break;case vS:return ur([Vr(t,{value:Ce(t.value,"@","@"+we)})],o);case cp:if(t.length)return xV(t.props,function(a){switch(yV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ur([Vr(t,{props:[Ce(a,/:(read-\w+)/,":"+qa+"$1")]})],o);case"::placeholder":return ur([Vr(t,{props:[Ce(a,/:(plac\w+)/,":"+we+"input-$1")]}),Vr(t,{props:[Ce(a,/:(plac\w+)/,":"+qa+"$1")]}),Vr(t,{props:[Ce(a,/:(plac\w+)/,Ke+"input-$1")]})],o)}return""})}},GV=[jV],LV=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||GV,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),v=1;v<h.length;v++)a[h[v]]=!0;s.push(m)});var c,l=[FV,BV];{var u,d=[OV,_V(function(m){u.insert(m)})],f=TV(l.concat(o,d)),g=function(h){return ur(RV(h),f)};c=function(h,v,x,w){u=x,g(h?h+"{"+v.styles+"}":v.styles),w&&(b.inserted[v.name]=!0)}}var b={key:n,sheet:new pV({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return b.sheet.hydrate(s),b},Du,pv;function WV(){if(pv)return Du;pv=1;var e=WN(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function i(b){return e.isMemo(b)?o:a[b.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(b,m,h){if(typeof m!="string"){if(f){var v=d(m);v&&v!==f&&g(b,v,h)}var x=c(m);l&&(x=x.concat(l(m)));for(var w=i(b),C=i(m),S=0;S<x.length;++S){var A=x[S];if(!n[A]&&!(h&&h[A])&&!(C&&C[A])&&!(w&&w[A])){var I=u(m,A);try{s(b,A,I)}catch{}}}}return b}return Du=g,Du}WV();var VV=!0;function HV(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var IS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||VV===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},$V=function(t,n,r){IS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function zV(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XV={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},YV=/[A-Z]|^ms/g,ZV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ES=function(t){return t.charCodeAt(1)===45},mv=function(t){return t!=null&&typeof t!="boolean"},Nu=MV(function(e){return ES(e)?e:e.replace(YV,"-$&").toLowerCase()}),hv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZV,function(r,o,a){return Wt={name:o,styles:a,next:Wt},o})}return XV[t]!==1&&!ES(t)&&typeof n=="number"&&n!==0?n+"px":n};function yo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Wt={name:o.name,styles:o.styles,next:Wt},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Wt={name:i.name,styles:i.styles,next:Wt},i=i.next;var s=a.styles+";";return s}return qV(e,t,n)}case"function":{if(e!==void 0){var c=Wt,l=n(e);return Wt=c,yo(e,t,l)}break}}var u=n;return u}function qV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yo(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;mv(s)&&(r+=Nu(a)+":"+hv(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var c=0;c<i.length;c++)mv(i[c])&&(r+=Nu(a)+":"+hv(a,i[c])+";");else{var l=yo(e,t,i);switch(a){case"animation":case"animationName":{r+=Nu(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var gv=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function AS(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Wt=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=yo(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=yo(n,t,e[s]),r){var c=a;o+=c[s]}gv.lastIndex=0;for(var l="",u;(u=gv.exec(o))!==null;)l+="-"+u[1];var d=zV(o)+l;return{name:d,styles:o,next:Wt}}var UV=function(t){return t()},JV=p.useInsertionEffect?p.useInsertionEffect:!1,KV=JV||UV,RS=p.createContext(typeof HTMLElement<"u"?LV({key:"css"}):null);RS.Provider;var QV=function(t){return E.forwardRef(function(n,r){var o=E.useContext(RS);return t(n,o,r)})},eH=p.createContext({}),dp={}.hasOwnProperty,Td="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tH=function(t,n){var r={};for(var o in n)dp.call(n,o)&&(r[o]=n[o]);return r[Td]=t,r},nH=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return IS(n,r,o),KV(function(){return $V(n,r,o)}),null},rH=QV(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Td],a=[r],i="";typeof e.className=="string"?i=HV(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=AS(a,void 0,p.useContext(eH));i+=t.key+"-"+s.name;var c={};for(var l in e)dp.call(e,l)&&l!=="css"&&l!==Td&&(c[l]=e[l]);return c.className=i,n&&(c.ref=n),p.createElement(p.Fragment,null,p.createElement(nH,{cache:t,serialized:s,isStringTag:typeof o=="string"}),p.createElement(o,c))}),oH=rH,ue=function(t,n){var r=arguments;if(n==null||!dp.call(n,"css"))return p.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=oH,a[1]=tH(t,n);for(var i=2;i<o;i++)a[i]=r[i];return p.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ue||(ue={}));function fp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return AS(t)}function aH(){var e=fp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function iH(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _d=E.useLayoutEffect,sH=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ua=function(){};function cH(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function lH(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(cH(e,i)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Ja=function(t){return vH(t)?t.filter(Boolean):Wn(t)==="object"&&t!==null?[t]:[]},PS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=nn(t,sH);return fe({},n)},Ne=function(t,n,r){var o=t.cx,a=t.getStyles,i=t.getClassNames,s=t.className;return{css:a(n,t),className:o(r??{},i(n,t),s)}};function qi(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function uH(e){return qi(e)?window.innerHeight:e.clientHeight}function OS(e){return qi(e)?window.pageYOffset:e.scrollTop}function Ka(e,t){if(qi(e)){window.scrollTo(0,t);return}e.scrollTop=t}function dH(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function fH(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function fa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ua,o=OS(e),a=t-o,i=10,s=0;function c(){s+=i;var l=fH(s,o,a,n);Ka(e,l),s<n?window.requestAnimationFrame(c):r(e)}c()}function bv(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ka(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ka(e,Math.max(t.offsetTop-o,0))}function pH(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function vv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function mH(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var TS=!1,hH={get passive(){return TS=!0}},pa=typeof window<"u"?window:{};pa.addEventListener&&pa.removeEventListener&&(pa.addEventListener("p",Ua,hH),pa.removeEventListener("p",Ua,!1));var gH=TS;function bH(e){return e!=null}function vH(e){return Array.isArray(e)}function Qr(e,t,n){return e?t:n}var yH=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=Object.entries(t).filter(function(i){var s=un(i,1),c=s[0];return!r.includes(c)});return a.reduce(function(i,s){var c=un(s,2),l=c[0],u=c[1];return i[l]=u,i},{})},xH=["children","innerProps"],wH=["children","innerProps"];function CH(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,c=dH(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),g=f.bottom,b=f.height,m=f.top,h=n.offsetParent.getBoundingClientRect(),v=h.top,x=i?window.innerHeight:uH(c),w=OS(c),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),A=v-S,I=x-m,R=A+w,P=d-w-m,M=g-x+w+C,T=w+m-S,B=160;switch(o){case"auto":case"bottom":if(I>=b)return{placement:"bottom",maxHeight:t};if(P>=b&&!i)return a&&fa(c,M,B),{placement:"bottom",maxHeight:t};if(!i&&P>=r||i&&I>=r){a&&fa(c,M,B);var O=i?I-C:P-C;return{placement:"bottom",maxHeight:O}}if(o==="auto"||i){var L=t,W=i?A:R;return W>=r&&(L=Math.min(W-C-s,t)),{placement:"top",maxHeight:L}}if(o==="bottom")return a&&Ka(c,M),{placement:"bottom",maxHeight:t};break;case"top":if(A>=b)return{placement:"top",maxHeight:t};if(R>=b&&!i)return a&&fa(c,T,B),{placement:"top",maxHeight:t};if(!i&&R>=r||i&&A>=r){var j=t;return(!i&&R>=r||i&&A>=r)&&(j=i?A-S:R-S),a&&fa(c,T,B),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}function SH(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var _S=function(t){return t==="auto"?"bottom":t},IH=function(t,n){var r,o=t.placement,a=t.theme,i=a.borderRadius,s=a.spacing,c=a.colors;return fe((r={label:"menu"},Kr(r,SH(o),"100%"),Kr(r,"position","absolute"),Kr(r,"width","100%"),Kr(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},MS=E.createContext(null),EH=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,c=t.theme,l=E.useContext(MS)||{},u=l.setPortalPlacement,d=E.useRef(null),f=E.useState(o),g=un(f,2),b=g[0],m=g[1],h=E.useState(null),v=un(h,2),x=v[0],w=v[1],C=c.spacing.controlHeight;return _d(function(){var S=d.current;if(S){var A=i==="fixed",I=s&&!A,R=CH({maxHeight:o,menuEl:S,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:A,controlHeight:C});m(R.maxHeight),w(R.placement),u?.(R.placement)}},[o,a,i,s,r,u,C]),n({ref:d,placerProps:fe(fe({},t),{},{placement:x||_S(a),maxHeight:b})})},AH=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return ue("div",he({},Ne(t,"menu",{menu:!0}),{ref:r},o),n)},RH=AH,PH=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},OH=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,a=t.isMulti;return ue("div",he({},Ne(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},r),n)},DS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,a=r.colors;return fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},TH=DS,_H=DS,MH=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,a=nn(t,xH);return ue("div",he({},Ne(fe(fe({},a),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},DH=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,a=nn(t,wH);return ue("div",he({},Ne(fe(fe({},a),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},NH=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},kH=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,a=t.innerProps,i=t.menuPlacement,s=t.menuPosition,c=E.useRef(null),l=E.useRef(null),u=E.useState(_S(i)),d=un(u,2),f=d[0],g=d[1],b=E.useMemo(function(){return{setPortalPlacement:g}},[]),m=E.useState(null),h=un(m,2),v=h[0],x=h[1],w=E.useCallback(function(){if(o){var I=pH(o),R=s==="fixed"?0:window.pageYOffset,P=I[f]+R;(P!==v?.offset||I.left!==v?.rect.left||I.width!==v?.rect.width)&&x({offset:P,rect:I})}},[o,s,f,v?.offset,v?.rect.left,v?.rect.width]);_d(function(){w()},[w]);var C=E.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),o&&c.current&&(l.current=fw(o,c.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);_d(function(){C()},[C]);var S=E.useCallback(function(I){c.current=I,C()},[C]);if(!n&&s!=="fixed"||!v)return null;var A=ue("div",he({ref:S},Ne(fe(fe({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ue(MS.Provider,{value:b},n?Gd.createPortal(A,n):A)},FH=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},BH=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,a=t.isRtl;return ue("div",he({},Ne(t,"container",{"--is-disabled":o,"--is-rtl":a}),r),n)},jH=function(t,n){var r=t.theme.spacing,o=t.isMulti,a=t.hasValue,i=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:o&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},GH=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,a=t.hasValue;return ue("div",he({},Ne(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),r),n)},LH=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},WH=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"indicatorsContainer",{indicators:!0}),r),n)},yv,VH=["size"],HH=["innerProps","isRtl","size"];function $H(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var zH=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:$H},NS=function(t){var n=t.size,r=nn(t,VH);return ue("svg",he({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zH},r))},pp=function(t){return ue(NS,he({size:20},t),ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},kS=function(t){return ue(NS,he({size:20},t),ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},FS=function(t,n){var r=t.isFocused,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?i.neutral60:i.neutral20,padding:a*2,":hover":{color:r?i.neutral80:i.neutral40}})},XH=FS,YH=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(kS,null))},ZH=FS,qH=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(pp,null))},UH=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:a*2,marginTop:a*2})},JH=function(t){var n=t.innerProps;return ue("span",he({},n,Ne(t,"indicatorSeparator",{"indicator-separator":!0})))},KH=aH(yv||(yv=iH([`
|
|
84
|
+
0%, 80%, 100% { opacity: 0; }
|
|
85
|
+
40% { opacity: 1; }
|
|
86
|
+
`]))),QH=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,i=a.colors,s=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?i.neutral60:i.neutral20,padding:s*2})},ku=function(t){var n=t.delay,r=t.offset;return ue("span",{css:fp({animation:"".concat(KH," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},e4=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,i=nn(t,HH);return ue("div",he({},Ne(fe(fe({},i),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ue(ku,{delay:0,offset:r}),ue(ku,{delay:160,offset:!0}),ue(ku,{delay:320,offset:!r}))},t4=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,i=a.colors,s=a.borderRadius,c=a.spacing;return fe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:o?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},n4=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return ue("div",he({ref:a},Ne(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),i,{"aria-disabled":r||void 0}),n)},r4=n4,o4=["data"],a4=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},i4=function(t){var n=t.children,r=t.cx,o=t.getStyles,a=t.getClassNames,i=t.Heading,s=t.headingProps,c=t.innerProps,l=t.label,u=t.theme,d=t.selectProps;return ue("div",he({},Ne(t,"group",{group:!0}),c),ue(i,he({},s,{selectProps:d,theme:u,getStyles:o,getClassNames:a,cx:r}),l),ue("div",null,n))},s4=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return fe({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},c4=function(t){var n=PS(t);n.data;var r=nn(n,o4);return ue("div",he({},Ne(t,"groupHeading",{"group-heading":!0}),r))},l4=i4,u4=["innerRef","isDisabled","isHidden","inputClassName"],d4=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,i=a.spacing,s=a.colors;return fe(fe({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},f4),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},BS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},f4={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},BS)},p4=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},BS)},m4=function(t){var n=t.cx,r=t.value,o=PS(t),a=o.innerRef,i=o.isDisabled,s=o.isHidden,c=o.inputClassName,l=nn(o,u4);return ue("div",he({},Ne(t,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",he({className:n({input:!0},c),ref:a,style:p4(s),disabled:i},l)))},h4=m4,g4=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,i=r.colors;return fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},b4=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,i=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},v4=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,i=r.colors,s=t.isFocused;return fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},jS=function(t){var n=t.children,r=t.innerProps;return ue("div",r,n)},y4=jS,x4=jS;function w4(e){var t=e.children,n=e.innerProps;return ue("div",he({role:"button"},n),t||ue(pp,{size:14}))}var C4=function(t){var n=t.children,r=t.components,o=t.data,a=t.innerProps,i=t.isDisabled,s=t.removeProps,c=t.selectProps,l=r.Container,u=r.Label,d=r.Remove;return ue(l,{data:o,innerProps:fe(fe({},Ne(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:c},ue(u,{data:o,innerProps:fe({},Ne(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),ue(d,{data:o,innerProps:fe(fe({},Ne(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:c}))},S4=C4,I4=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.theme,s=i.spacing,c=i.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?c.primary:o?c.primary25:"transparent",color:r?c.neutral20:a?c.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?c.primary:c.primary50}})},E4=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.innerRef,s=t.innerProps;return ue("div",he({},Ne(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:i,"aria-disabled":r},s),n)},A4=E4,R4=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},P4=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"placeholder",{placeholder:!0}),r),n)},O4=P4,T4=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,i=o.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},_4=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return ue("div",he({},Ne(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},M4=_4,D4={ClearIndicator:qH,Control:r4,DropdownIndicator:YH,DownChevron:kS,CrossIcon:pp,Group:l4,GroupHeading:c4,IndicatorsContainer:WH,IndicatorSeparator:JH,Input:h4,LoadingIndicator:e4,Menu:RH,MenuList:OH,MenuPortal:kH,LoadingMessage:DH,NoOptionsMessage:MH,MultiValue:S4,MultiValueContainer:y4,MultiValueLabel:x4,MultiValueRemove:w4,Option:A4,Placeholder:O4,SelectContainer:BH,SingleValue:M4,ValueContainer:GH},N4=function(t){return fe(fe({},D4),t.components)},xv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function k4(e,t){return!!(e===t||xv(e)&&xv(t))}function F4(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!k4(e[n],t[n]))return!1;return!0}function B4(e,t){t===void 0&&(t=F4);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}function j4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var G4=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:j4},L4=function(t){return ue("span",he({css:G4},t))},wv=L4,W4={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,a=t.context,i=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,a=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,a=t.label,i=a===void 0?"":a,s=t.selectValue,c=t.isDisabled,l=t.isSelected,u=t.isAppleDevice,d=function(m,h){return m&&m.length?"".concat(m.indexOf(h)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(i," focused, ").concat(d(s,r),".");if(n==="menu"&&u){var f=c?" disabled":"",g="".concat(l?" selected":"").concat(f);return"".concat(i).concat(g,", ").concat(d(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},V4=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,i=t.isFocused,s=t.selectValue,c=t.selectProps,l=t.id,u=t.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,g=c.inputValue,b=c.isMulti,m=c.isOptionDisabled,h=c.isSearchable,v=c.menuIsOpen,x=c.options,w=c.screenReaderStatus,C=c.tabSelectsValue,S=c.isLoading,A=c["aria-label"],I=c["aria-live"],R=E.useMemo(function(){return fe(fe({},W4),d||{})},[d]),P=E.useMemo(function(){var W="";if(n&&R.onChange){var j=n.option,$=n.options,N=n.removedValue,V=n.removedValues,U=n.value,ee=function(q){return Array.isArray(q)?null:q},k=N||j||ee(U),H=k?f(k):"",Y=$||V||void 0,z=Y?Y.map(f):[],J=fe({isDisabled:k&&m(k,s),label:H,labels:z},n);W=R.onChange(J)}return W},[n,R,m,s,f]),M=E.useMemo(function(){var W="",j=r||o,$=!!(r&&s&&s.includes(r));if(j&&R.onFocus){var N={focused:j,label:f(j),isDisabled:m(j,s),isSelected:$,options:a,context:j===r?"menu":"value",selectValue:s,isAppleDevice:u};W=R.onFocus(N)}return W},[r,o,f,m,R,a,s,u]),T=E.useMemo(function(){var W="";if(v&&x.length&&!S&&R.onFilter){var j=w({count:a.length});W=R.onFilter({inputValue:g,resultsMessage:j})}return W},[a,g,v,R,x,w,S]),B=n?.action==="initial-input-focus",O=E.useMemo(function(){var W="";if(R.guidance){var j=o?"value":v?"menu":"input";W=R.guidance({"aria-label":A,context:j,isDisabled:r&&m(r,s),isMulti:b,isSearchable:h,tabSelectsValue:C,isInitialFocus:B})}return W},[A,r,o,b,m,h,v,R,s,C,B]),L=ue(E.Fragment,null,ue("span",{id:"aria-selection"},P),ue("span",{id:"aria-focused"},M),ue("span",{id:"aria-results"},T),ue("span",{id:"aria-guidance"},O));return ue(E.Fragment,null,ue(wv,{id:l},B&&L),ue(wv,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!B&&L))},H4=V4,Md=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],$4=new RegExp("["+Md.map(function(e){return e.letters}).join("")+"]","g"),GS={};for(var Fu=0;Fu<Md.length;Fu++)for(var Bu=Md[Fu],ju=0;ju<Bu.letters.length;ju++)GS[Bu.letters[ju]]=Bu.base;var LS=function(t){return t.replace($4,function(n){return GS[n]})},z4=B4(LS),Cv=function(t){return t.replace(/^\s+|\s+$/g,"")},X4=function(t){return"".concat(t.label," ").concat(t.value)},Y4=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=fe({ignoreCase:!0,ignoreAccents:!0,stringify:X4,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,i=o.ignoreAccents,s=o.stringify,c=o.trim,l=o.matchFrom,u=c?Cv(r):r,d=c?Cv(s(n)):s(n);return a&&(u=u.toLowerCase(),d=d.toLowerCase()),i&&(u=z4(u),d=LS(d)),l==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},Z4=["innerRef"];function q4(e){var t=e.innerRef,n=nn(e,Z4),r=yH(n,"onExited","in","enter","exit","appear");return ue("input",he({ref:t},r,{css:fp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var U4=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function J4(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=E.useRef(!1),s=E.useRef(!1),c=E.useRef(0),l=E.useRef(null),u=E.useCallback(function(h,v){if(l.current!==null){var x=l.current,w=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,A=l.current,I=v>0,R=C-S-w,P=!1;R>v&&i.current&&(r&&r(h),i.current=!1),I&&s.current&&(a&&a(h),s.current=!1),I&&v>R?(n&&!i.current&&n(h),A.scrollTop=C,P=!0,i.current=!0):!I&&-v>w&&(o&&!s.current&&o(h),A.scrollTop=0,P=!0,s.current=!0),P&&U4(h)}},[n,r,o,a]),d=E.useCallback(function(h){u(h,h.deltaY)},[u]),f=E.useCallback(function(h){c.current=h.changedTouches[0].clientY},[]),g=E.useCallback(function(h){var v=c.current-h.changedTouches[0].clientY;u(h,v)},[u]),b=E.useCallback(function(h){if(h){var v=gH?{passive:!1}:!1;h.addEventListener("wheel",d,v),h.addEventListener("touchstart",f,v),h.addEventListener("touchmove",g,v)}},[g,f,d]),m=E.useCallback(function(h){h&&(h.removeEventListener("wheel",d,!1),h.removeEventListener("touchstart",f,!1),h.removeEventListener("touchmove",g,!1))},[g,f,d]);return E.useEffect(function(){if(t){var h=l.current;return b(h),function(){m(h)}}},[t,b,m]),function(h){l.current=h}}var Sv=["boxSizing","height","overflow","paddingRight","position"],Iv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ev(e){e.cancelable&&e.preventDefault()}function Av(e){e.stopPropagation()}function Rv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ov=!!(typeof window<"u"&&window.document&&window.document.createElement),Hr=0,nr={capture:!1,passive:!1};function K4(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=E.useRef({}),a=E.useRef(null),i=E.useCallback(function(c){if(Ov){var l=document.body,u=l&&l.style;if(r&&Sv.forEach(function(b){var m=u&&u[b];o.current[b]=m}),r&&Hr<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(Iv).forEach(function(b){var m=Iv[b];u&&(u[b]=m)}),u&&(u.paddingRight="".concat(g,"px"))}l&&Pv()&&(l.addEventListener("touchmove",Ev,nr),c&&(c.addEventListener("touchstart",Rv,nr),c.addEventListener("touchmove",Av,nr))),Hr+=1}},[r]),s=E.useCallback(function(c){if(Ov){var l=document.body,u=l&&l.style;Hr=Math.max(Hr-1,0),r&&Hr<1&&Sv.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),l&&Pv()&&(l.removeEventListener("touchmove",Ev,nr),c&&(c.removeEventListener("touchstart",Rv,nr),c.removeEventListener("touchmove",Av,nr)))}},[r]);return E.useEffect(function(){if(t){var c=a.current;return i(c),function(){s(c)}}},[t,i,s]),function(c){a.current=c}}function Q4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var e3=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},t3=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Q4};function n3(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,l=J4({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:s,onTopLeave:c}),u=K4({isEnabled:n}),d=function(g){l(g),u(g)};return ue(E.Fragment,null,n&&ue("div",{onClick:e3,css:t3}),t(d))}function r3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var o3=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:r3},a3=function(t){var n=t.name,r=t.onFocus;return ue("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:o3,value:"",onChange:function(){}})},i3=a3;function mp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function s3(){return mp(/^iPhone/i)}function WS(){return mp(/^Mac/i)}function c3(){return mp(/^iPad/i)||WS()&&navigator.maxTouchPoints>1}function l3(){return s3()||c3()}function u3(){return WS()||l3()}var d3=function(t){return t.label},VS=function(t){return t.label},HS=function(t){return t.value},f3=function(t){return!!t.isDisabled},p3={clearIndicator:ZH,container:FH,control:t4,dropdownIndicator:XH,group:a4,groupHeading:s4,indicatorsContainer:LH,indicatorSeparator:UH,input:d4,loadingIndicator:QH,loadingMessage:_H,menu:IH,menuList:PH,menuPortal:NH,multiValue:g4,multiValueLabel:b4,multiValueRemove:v4,noOptionsMessage:TH,option:I4,placeholder:R4,singleValue:T4,valueContainer:jH},m3={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},h3=4,$S=4,g3=38,b3=$S*2,v3={baseUnit:$S,controlHeight:g3,menuGutter:b3},Gu={borderRadius:h3,colors:m3,spacing:v3},y3={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vv(),captureMenuScroll:!vv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Y4(),formatGroupLabel:d3,getOptionLabel:VS,getOptionValue:HS,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:f3,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!mH(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Tv(e,t,n,r){var o=YS(e,t,n),a=ZS(e,t,n),i=XS(e,t),s=Qa(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:i,value:s,index:r}}function Ca(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,s){return Tv(e,i,t,s)}).filter(function(i){return Mv(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Tv(e,n,t,r);return Mv(e,a)?a:void 0}).filter(bH)}function zS(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,lr(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function _v(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,lr(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function x3(e,t){return zS(Ca(e,t))}function Mv(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!US(e)||!a)&&qS(e,{label:i,value:s,data:o},r)}function w3(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function C3(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Lu=function(t,n){var r,o=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return o||null},XS=function(t,n){return t.getOptionLabel(n)},Qa=function(t,n){return t.getOptionValue(n)};function YS(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ZS(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Qa(e,t);return n.some(function(o){return Qa(e,o)===r})}function qS(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var US=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},S3=1,hp=(function(e){aV(n,e);var t=sV(n);function n(r){var o;if(rV(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(c){o.controlRef=c},o.focusedOptionRef=null,o.getFocusedOptionRef=function(c){o.focusedOptionRef=c},o.menuListRef=null,o.getMenuListRef=function(c){o.menuListRef=c},o.inputRef=null,o.getInputRef=function(c){o.inputRef=c},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(c,l){var u=o.props,d=u.onChange,f=u.name;l.name=f,o.ariaOnChange(c,l),d(c,l)},o.setValue=function(c,l,u){var d=o.props,f=d.closeMenuOnSelect,g=d.isMulti,b=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(c,{action:l,option:u})},o.selectOption=function(c){var l=o.props,u=l.blurInputOnSelect,d=l.isMulti,f=l.name,g=o.state.selectValue,b=d&&o.isOptionSelected(c,g),m=o.isOptionDisabled(c,g);if(b){var h=o.getOptionValue(c);o.setValue(g.filter(function(v){return o.getOptionValue(v)!==h}),"deselect-option",c)}else if(!m)d?o.setValue([].concat(lr(g),[c]),"select-option",c):o.setValue(c,"select-option");else{o.ariaOnChange(c,{action:"select-option",option:c,name:f});return}u&&o.blurInput()},o.removeValue=function(c){var l=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(c),f=u.filter(function(b){return o.getOptionValue(b)!==d}),g=Qr(l,f,f[0]||null);o.onChange(g,{action:"remove-value",removedValue:c}),o.focusInput()},o.clearValue=function(){var c=o.state.selectValue;o.onChange(Qr(o.props.isMulti,[],null),{action:"clear",removedValues:c})},o.popValue=function(){var c=o.props.isMulti,l=o.state.selectValue,u=l[l.length-1],d=l.slice(0,l.length-1),f=Qr(c,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(c){return Lu(o.state.focusableOptionsWithIds,c)},o.getFocusableOptionsWithIds=function(){return _v(Ca(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return lH.apply(void 0,[o.props.classNamePrefix].concat(l))},o.getOptionLabel=function(c){return XS(o.props,c)},o.getOptionValue=function(c){return Qa(o.props,c)},o.getStyles=function(c,l){var u=o.props.unstyled,d=p3[c](l,u);d.boxSizing="border-box";var f=o.props.styles[c];return f?f(d,l):d},o.getClassNames=function(c,l){var u,d;return(u=(d=o.props.classNames)[c])===null||u===void 0?void 0:u.call(d,l)},o.getElementId=function(c){return"".concat(o.state.instancePrefix,"-").concat(c)},o.getComponents=function(){return N4(o.props)},o.buildCategorizedOptions=function(){return Ca(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return zS(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(c,l){o.setState({ariaSelection:fe({value:c},l)})},o.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(c){o.blockOptionHover=!1},o.onControlMouseDown=function(c){if(!c.defaultPrevented){var l=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&o.onMenuClose():l&&o.openMenu("first"):(l&&(o.openAfterFocus=!0),o.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},o.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!o.props.isDisabled){var l=o.props,u=l.isMulti,d=l.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),c.preventDefault()}},o.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(o.clearValue(),c.preventDefault(),o.openAfterFocus=!1,c.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(c){typeof o.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&qi(c.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(c)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(c){var l=c.touches,u=l&&l.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(c){var l=c.touches,u=l&&l.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),g=5;o.userIsDragging=d>g||f>g}},o.onTouchEnd=function(c){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(c.target)&&o.menuListRef&&!o.menuListRef.contains(c.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(c){o.userIsDragging||o.onControlMouseDown(c)},o.onClearIndicatorTouchEnd=function(c){o.userIsDragging||o.onClearIndicatorMouseDown(c)},o.onDropdownIndicatorTouchEnd=function(c){o.userIsDragging||o.onDropdownIndicatorMouseDown(c)},o.handleInputChange=function(c){var l=o.props.inputValue,u=c.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:l}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(c){o.props.onFocus&&o.props.onFocus(c),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(c){var l=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(c),o.onInputChange("",{action:"input-blur",prevInputValue:l}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(c){if(!(o.blockOptionHover||o.state.focusedOption===c)){var l=o.getFocusableOptions(),u=l.indexOf(c);o.setState({focusedOption:c,focusedOptionId:u>-1?o.getFocusedOptionId(c):null})}},o.shouldHideSelectedOptions=function(){return US(o.props)},o.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),o.focus()},o.onKeyDown=function(c){var l=o.props,u=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,g=l.inputValue,b=l.isClearable,m=l.isDisabled,h=l.menuIsOpen,v=l.onKeyDown,x=l.tabSelectsValue,w=l.openMenuOnFocus,C=o.state,S=C.focusedOption,A=C.focusedValue,I=C.selectValue;if(!m&&!(typeof v=="function"&&(v(c),c.defaultPrevented))){switch(o.blockOptionHover=!0,c.key){case"ArrowLeft":if(!u||g)return;o.focusValue("previous");break;case"ArrowRight":if(!u||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(A)o.removeValue(A);else{if(!d)return;u?o.popValue():b&&o.clearValue()}break;case"Tab":if(o.isComposing||c.shiftKey||!h||!x||!S||w&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(c.keyCode===229)break;if(h){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":h?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):b&&f&&o.clearValue();break;case" ":if(g)return;if(!h){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":h?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":h?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!h)return;o.focusOption("pageup");break;case"PageDown":if(!h)return;o.focusOption("pagedown");break;case"Home":if(!h)return;o.focusOption("first");break;case"End":if(!h)return;o.focusOption("last");break;default:return}c.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++S3),o.state.selectValue=Ja(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),s=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=i[s],o.state.focusedOptionId=Lu(a,i[s])}return o}return oV(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bv(this.menuListRef,this.focusedOptionRef),u3()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isDisabled,s=a.menuIsOpen,c=this.state.isFocused;(c&&!i&&o.isDisabled||c&&s&&!o.menuIsOpen)&&this.focusInput(),c&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,i=this.state,s=i.selectValue,c=i.isFocused,l=this.buildFocusableOptions(),u=o==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[u],focusedOptionId:this.getFocusedOptionId(l[u])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,i=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=i.indexOf(s);s||(c=-1);var l=i.length-1,u=-1;if(i.length){switch(o){case"previous":c===0?u=0:c===-1?u=l:u=c-1;break;case"next":c>-1&&c<l&&(u=c+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,i=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var c=0,l=s.indexOf(i);i||(l=-1),o==="up"?c=l>0?l-1:s.length-1:o==="down"?c=(l+1)%s.length:o==="pageup"?(c=l-a,c<0&&(c=0)):o==="pagedown"?(c=l+a,c>s.length-1&&(c=s.length-1)):o==="last"&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Gu):fe(fe({},Gu),this.props.theme):Gu}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,i=this.getStyles,s=this.getClassNames,c=this.getValue,l=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,b=d.options,m=this.hasValue();return{clearValue:o,cx:a,getStyles:i,getClassNames:s,getValue:c,hasValue:m,isMulti:f,isRtl:g,options:b,selectOption:l,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,a=o.isClearable,i=o.isMulti;return a===void 0?i:a}},{key:"isOptionDisabled",value:function(o,a){return YS(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return ZS(this.props,o,a)}},{key:"filterOption",value:function(o,a){return qS(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:i,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,a=o.isDisabled,i=o.isSearchable,s=o.inputId,c=o.inputValue,l=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,g=this.getComponents(),b=g.Input,m=this.state,h=m.inputIsHidden,v=m.ariaSelection,x=this.commonProps,w=s||this.getElementId("input"),C=fe(fe(fe({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?v?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?p.createElement(b,he({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:a,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:u,type:"text",value:c},C)):p.createElement(q4,he({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ua,onFocus:this.onInputFocus,disabled:a,tabIndex:l,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),i=a.MultiValue,s=a.MultiValueContainer,c=a.MultiValueLabel,l=a.MultiValueRemove,u=a.SingleValue,d=a.Placeholder,f=this.commonProps,g=this.props,b=g.controlShouldRenderValue,m=g.isDisabled,h=g.isMulti,v=g.inputValue,x=g.placeholder,w=this.state,C=w.selectValue,S=w.focusedValue,A=w.isFocused;if(!this.hasValue()||!b)return v?null:p.createElement(d,he({},f,{key:"placeholder",isDisabled:m,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),x);if(h)return C.map(function(R,P){var M=R===S,T="".concat(o.getOptionLabel(R),"-").concat(o.getOptionValue(R));return p.createElement(i,he({},f,{components:{Container:s,Label:c,Remove:l},isFocused:M,isDisabled:m,key:T,index:P,removeProps:{onClick:function(){return o.removeValue(R)},onTouchEnd:function(){return o.removeValue(R)},onMouseDown:function(O){O.preventDefault()}},data:R}),o.formatOptionLabel(R,"value"))});if(v)return null;var I=C[0];return p.createElement(u,he({},f,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,i=this.commonProps,s=this.props,c=s.isDisabled,l=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!a||c||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,he({},i,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,i=this.commonProps,s=this.props,c=s.isDisabled,l=s.isLoading,u=this.state.isFocused;if(!a||!l)return null;var d={"aria-hidden":"true"};return p.createElement(a,he({},i,{innerProps:d,isDisabled:c,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,i=o.IndicatorSeparator;if(!a||!i)return null;var s=this.commonProps,c=this.props.isDisabled,l=this.state.isFocused;return p.createElement(i,he({},s,{isDisabled:c,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var i=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,he({},i,{innerProps:l,isDisabled:s,isFocused:c}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),i=a.Group,s=a.GroupHeading,c=a.Menu,l=a.MenuList,u=a.MenuPortal,d=a.LoadingMessage,f=a.NoOptionsMessage,g=a.Option,b=this.commonProps,m=this.state.focusedOption,h=this.props,v=h.captureMenuScroll,x=h.inputValue,w=h.isLoading,C=h.loadingMessage,S=h.minMenuHeight,A=h.maxMenuHeight,I=h.menuIsOpen,R=h.menuPlacement,P=h.menuPosition,M=h.menuPortalTarget,T=h.menuShouldBlockScroll,B=h.menuShouldScrollIntoView,O=h.noOptionsMessage,L=h.onMenuScrollToTop,W=h.onMenuScrollToBottom;if(!I)return null;var j=function(H,Y){var z=H.type,J=H.data,G=H.isDisabled,q=H.isSelected,ae=H.label,re=H.value,te=m===J,F=G?void 0:function(){return o.onOptionHover(J)},de=G?void 0:function(){return o.selectOption(J)},_="".concat(o.getElementId("option"),"-").concat(Y),Q={id:_,onClick:de,onMouseMove:F,onMouseOver:F,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:q};return p.createElement(g,he({},b,{innerProps:Q,data:J,isDisabled:G,isSelected:q,key:_,label:ae,type:z,value:re,isFocused:te,innerRef:te?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(H.data,"menu"))},$;if(this.hasOptions())$=this.getCategorizedOptions().map(function(k){if(k.type==="group"){var H=k.data,Y=k.options,z=k.index,J="".concat(o.getElementId("group"),"-").concat(z),G="".concat(J,"-heading");return p.createElement(i,he({},b,{key:J,data:H,options:Y,Heading:s,headingProps:{id:G,data:k.data},label:o.formatGroupLabel(k.data)}),k.options.map(function(q){return j(q,"".concat(z,"-").concat(q.index))}))}else if(k.type==="option")return j(k,"".concat(k.index))});else if(w){var N=C({inputValue:x});if(N===null)return null;$=p.createElement(d,b,N)}else{var V=O({inputValue:x});if(V===null)return null;$=p.createElement(f,b,V)}var U={minMenuHeight:S,maxMenuHeight:A,menuPlacement:R,menuPosition:P,menuShouldScrollIntoView:B},ee=p.createElement(EH,he({},b,U),function(k){var H=k.ref,Y=k.placerProps,z=Y.placement,J=Y.maxHeight;return p.createElement(c,he({},b,U,{innerRef:H,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:w,placement:z}),p.createElement(n3,{captureEnabled:v,onTopArrive:L,onBottomArrive:W,lockEnabled:T},function(G){return p.createElement(l,he({},b,{innerRef:function(ae){o.getMenuListRef(ae),G(ae)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:o.getElementId("listbox")},isLoading:w,maxHeight:J,focusedOption:m}),$)}))});return M||P==="fixed"?p.createElement(u,he({},b,{appendTo:M,controlElement:this.controlRef,menuPlacement:R,menuPosition:P}),ee):ee}},{key:"renderFormField",value:function(){var o=this,a=this.props,i=a.delimiter,s=a.isDisabled,c=a.isMulti,l=a.name,u=a.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return p.createElement(i3,{name:l,onFocus:this.onValueInputFocus});if(!(!l||s))if(c)if(i){var f=d.map(function(m){return o.getOptionValue(m)}).join(i);return p.createElement("input",{name:l,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(m,h){return p.createElement("input",{key:"i-".concat(h),name:l,type:"hidden",value:o.getOptionValue(m)})}):p.createElement("input",{name:l,type:"hidden",value:""});return p.createElement("div",null,g)}else{var b=d[0]?this.getOptionValue(d[0]):"";return p.createElement("input",{name:l,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,i=a.ariaSelection,s=a.focusedOption,c=a.focusedValue,l=a.isFocused,u=a.selectValue,d=this.getFocusableOptions();return p.createElement(H4,he({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:s,focusedValue:c,isFocused:l,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,i=o.IndicatorsContainer,s=o.SelectContainer,c=o.ValueContainer,l=this.props,u=l.className,d=l.id,f=l.isDisabled,g=l.menuIsOpen,b=this.state.isFocused,m=this.commonProps=this.getCommonProps();return p.createElement(s,he({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),p.createElement(a,he({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:g}),p.createElement(c,he({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(i,he({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s=a.clearFocusValueOnUpdate,c=a.inputIsHiddenAfterUpdate,l=a.ariaSelection,u=a.isFocused,d=a.prevWasFocused,f=a.instancePrefix,g=o.options,b=o.value,m=o.menuIsOpen,h=o.inputValue,v=o.isMulti,x=Ja(b),w={};if(i&&(b!==i.value||g!==i.options||m!==i.menuIsOpen||h!==i.inputValue)){var C=m?x3(o,x):[],S=m?_v(Ca(o,x),"".concat(f,"-option")):[],A=s?w3(a,x):null,I=C3(a,C),R=Lu(S,I);w={selectValue:x,focusedOption:I,focusedOptionId:R,focusableOptionsWithIds:S,focusedValue:A,clearFocusValueOnUpdate:!1}}var P=c!=null&&o!==i?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},M=l,T=u&&d;return u&&!T&&(M={value:Qr(v,x,x[0]||null),options:x,action:"initial-input-focus"},T=!d),l?.action==="initial-input-focus"&&(M=null),fe(fe(fe({},w),P),{},{prevProps:o,ariaSelection:M,prevWasFocused:T})}}]),n})(E.Component);hp.defaultProps=y3;var I3=E.forwardRef(function(e,t){var n=hS(e);return p.createElement(hp,he({ref:t},n))}),E3=I3,A3=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Dv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),a=String(r.getOptionValue(n)).toLowerCase(),i=String(r.getOptionLabel(n)).toLowerCase();return a===o||i===o},Wu={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,o){return!(!t||n.some(function(a){return Dv(t,a,o)})||r.some(function(a){return Dv(t,a,o)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function R3(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,o=r===void 0?"last":r,a=e.formatCreateLabel,i=a===void 0?Wu.formatCreateLabel:a,s=e.isValidNewOption,c=s===void 0?Wu.isValidNewOption:s,l=e.getNewOptionData,u=l===void 0?Wu.getNewOptionData:l,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,b=e.onChange,m=nn(e,A3),h=m.getOptionValue,v=h===void 0?HS:h,x=m.getOptionLabel,w=x===void 0?VS:x,C=m.inputValue,S=m.isLoading,A=m.isMulti,I=m.value,R=m.name,P=E.useMemo(function(){return c(C,Ja(I),g,{getOptionValue:v,getOptionLabel:w})?u(C,i(C)):void 0},[i,u,w,v,C,c,g,I]),M=E.useMemo(function(){return(n||!S)&&P?o==="first"?[P].concat(lr(g)):[].concat(lr(g),[P]):g},[n,o,S,P,g]),T=E.useCallback(function(B,O){if(O.action!=="select-option")return b(B,O);var L=Array.isArray(B)?B:[B];if(L[L.length-1]===P){if(d)d(C);else{var W=u(C,C),j={action:"create-option",name:R,option:W};b(Qr(A,[].concat(lr(Ja(I)),[W]),W),j)}return}b(B,O)},[u,C,A,R,P,d,b,I]);return fe(fe({},m),{},{options:M,onChange:T})}var P3=E.forwardRef(function(e,t){var n=hS(e),r=R3(n);return p.createElement(hp,he({ref:t},r))}),O3=P3;function T3({label:e="",options:t=[],name:n="",value:r,onChange:o,onInputChange:a,placeholder:i="",isClearable:s=!1,isSearchable:c=!1,isMulti:l=!1,isDisabled:u=!1,error:d="",onError:f,description:g="",className:b,selectClassName:m,labelVariant:h="default",...v}){return E.useEffect(()=>{f&&f(d)},[f,d]),y.jsx("label",{className:D("field-select new-design-field-select w-full",b),children:y.jsxs("div",{children:[y.jsx(Xr,{children:y.jsx(ir,{condition:!!e,children:y.jsx(tp,{className:"mb-2",variant:h,children:e})})}),y.jsxs("div",{children:[y.jsxs(Xr,{children:[y.jsx(ir,{condition:s,children:y.jsx("div",{className:D(m,"select-wrapper text-sm w-full border border-input rounded-md border-solid"),children:y.jsx(O3,{value:r,onChange:o,onInputChange:a,options:t,name:n,isClearable:s,isSearchable:c,isMulti:l,placeholder:i,isDisabled:u,...v})})}),y.jsx(ff,{children:y.jsx("div",{className:D("select-wrapper border border-input rounded-md new-design-select-wrapper text-sm",m),children:y.jsx(E3,{"data-test-id":n,isSearchable:c,isClearable:s,name:n,options:t,value:r,onChange:o,onInputChange:a,isMulti:l,isDisabled:u,placeholder:i,...v})})})]}),y.jsx(Xr,{children:y.jsx(ir,{condition:!!g,children:y.jsx(nC,{description:g})})}),y.jsx(Xr,{children:y.jsx(ir,{condition:!!d&&!f,children:y.jsx(tC,{message:d})})})]})]})})}var _3="Separator",Nv="horizontal",M3=["horizontal","vertical"],JS=p.forwardRef((e,t)=>{const{decorative:n,orientation:r=Nv,...o}=e,a=D3(r)?r:Nv,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return y.jsx(st.div,{"data-orientation":a,...s,...o,ref:t})});JS.displayName=_3;function D3(e){return M3.includes(e)}var N3=JS;function KS({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return y.jsx(N3,{"data-slot":"separator",decorative:n,orientation:t,className:D("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function QS({...e}){return y.jsx(Ci,{"data-slot":"sheet",...e})}function k3({...e}){return y.jsx(Ox,{"data-slot":"sheet-trigger",...e})}function F3({...e}){return y.jsx(Ei,{"data-slot":"sheet-close",...e})}function B3({...e}){return y.jsx(Nf,{"data-slot":"sheet-portal",...e})}function j3({className:e,...t}){return y.jsx(Si,{"data-slot":"sheet-overlay",className:D("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function eI({className:e,children:t,side:n="right",...r}){return y.jsxs(B3,{children:[y.jsx(j3,{}),y.jsxs(Ii,{"data-slot":"sheet-content",className:D("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,y.jsxs(Ei,{"data-testid":"sheet-close-icon",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[y.jsx(ty,{className:"size-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tI({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-header",className:D("flex flex-col gap-1.5 p-4",e),...t})}function G3({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-footer",className:D("mt-auto flex flex-col gap-2 p-4",e),...t})}function nI({className:e,...t}){return y.jsx(Tx,{"data-slot":"sheet-title",className:D("text-foreground font-semibold",e),...t})}function rI({className:e,...t}){return y.jsx(_x,{"data-slot":"sheet-description",className:D("text-muted-foreground text-sm",e),...t})}const Vu=768;function L3(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Vu-1}px)`),r=()=>{t(window.innerWidth<Vu)};return n.addEventListener("change",r),t(window.innerWidth<Vu),()=>n.removeEventListener("change",r)},[]),!!e}function Dd({className:e,...t}){return y.jsx("div",{"data-slot":"skeleton",className:D("bg-accent animate-pulse rounded-md shrink-0",e),...t})}var[Ui]=ze("Tooltip",[en]),Ji=en(),oI="TooltipProvider",W3=700,Nd="tooltip.open",[V3,gp]=Ui(oI),aI=e=>{const{__scopeTooltip:t,delayDuration:n=W3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=p.useRef(!0),s=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),y.jsx(V3,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};aI.displayName=oI;var xo="Tooltip",[H3,$o]=Ui(xo),iI=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=gp(xo,e.__scopeTooltip),l=Ji(t),[u,d]=p.useState(null),f=Le(),g=p.useRef(0),b=i??c.disableHoverableContent,m=s??c.delayDuration,h=p.useRef(!1),[v,x]=et({prop:r,defaultProp:o??!1,onChange:I=>{I?(c.onOpen(),document.dispatchEvent(new CustomEvent(Nd))):c.onClose(),a?.(I)},caller:xo}),w=p.useMemo(()=>v?h.current?"delayed-open":"instant-open":"closed",[v]),C=p.useCallback(()=>{window.clearTimeout(g.current),g.current=0,h.current=!1,x(!0)},[x]),S=p.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),A=p.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{h.current=!0,x(!0),g.current=0},m)},[m,x]);return p.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),y.jsx(Fo,{...l,children:y.jsx(H3,{scope:t,contentId:f,open:v,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:p.useCallback(()=>{b?S():(window.clearTimeout(g.current),g.current=0)},[S,b]),onOpen:C,onClose:S,disableHoverableContent:b,children:n})})};iI.displayName=xo;var kd="TooltipTrigger",sI=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=$o(kd,n),a=gp(kd,n),i=Ji(n),s=p.useRef(null),c=pe(t,s,o.onTriggerChange),l=p.useRef(!1),u=p.useRef(!1),d=p.useCallback(()=>l.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(Ar,{asChild:!0,...i,children:y.jsx(oe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:X(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});sI.displayName=kd;var bp="TooltipPortal",[$3,z3]=Ui(bp,{forceMount:void 0}),cI=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=$o(bp,t);return y.jsx($3,{scope:t,forceMount:n,children:y.jsx(Xe,{present:n||a.open,children:y.jsx(Tf,{asChild:!0,container:o,children:r})})})};cI.displayName=bp;var xr="TooltipContent",lI=p.forwardRef((e,t)=>{const n=z3(xr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=$o(xr,e.__scopeTooltip);return y.jsx(Xe,{present:r||i.open,children:i.disableHoverableContent?y.jsx(uI,{side:o,...a,ref:t}):y.jsx(X3,{side:o,...a,ref:t})})}),X3=p.forwardRef((e,t)=>{const n=$o(xr,e.__scopeTooltip),r=gp(xr,e.__scopeTooltip),o=p.useRef(null),a=pe(t,o),[i,s]=p.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,f=p.useCallback(()=>{s(null),d(!1)},[d]),g=p.useCallback((b,m)=>{const h=b.currentTarget,v={x:b.clientX,y:b.clientY},x=U3(v,h.getBoundingClientRect()),w=J3(v,x),C=K3(m.getBoundingClientRect()),S=e$([...w,...C]);s(S),d(!0)},[d]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(c&&u){const b=h=>g(h,u),m=h=>g(h,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",m)}}},[c,u,g,f]),p.useEffect(()=>{if(i){const b=m=>{const h=m.target,v={x:m.clientX,y:m.clientY},x=c?.contains(h)||u?.contains(h),w=!Q3(v,i);x?f():w&&(f(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,l,f]),y.jsx(uI,{...e,ref:a})}),[Y3,Z3]=Ui(xo,{isInside:!1}),q3=o1("TooltipContent"),uI=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=$o(xr,n),l=Ji(n),{onClose:u}=c;return p.useEffect(()=>(document.addEventListener(Nd,u),()=>document.removeEventListener(Nd,u)),[u]),p.useEffect(()=>{if(c.trigger){const d=f=>{f.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(Bo,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(q3,{children:r}),y.jsx(Y3,{scope:n,isInside:!0,children:y.jsx(bW,{id:c.contentId,role:"tooltip",children:o||r})})]})})});lI.displayName=xr;var dI="TooltipArrow",fI=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ji(n);return Z3(dI,n).isInside?null:y.jsx(jo,{...o,...r,ref:t})});fI.displayName=dI;function U3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function J3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function K3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Q3(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],l=s.x,u=s.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function e$(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),t$(t)}function t$(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var n$=aI,r$=iI,o$=sI,a$=cI,i$=lI,s$=fI;function vp({delayDuration:e=0,...t}){return y.jsx(n$,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pI({...e}){return y.jsx(vp,{children:y.jsx(r$,{"data-slot":"tooltip",...e})})}function mI({...e}){return y.jsx(o$,{"data-slot":"tooltip-trigger",...e})}function hI({className:e,sideOffset:t=0,children:n,...r}){return y.jsx(a$,{children:y.jsxs(i$,{"data-slot":"tooltip-content",sideOffset:t,className:D("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,y.jsx(s$,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const gI=p.createContext(null);function Ki(){const e=p.useContext(gI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const c$="sidebar_state",l$=3600*24*7,u$="16rem",d$="18rem",f$="3rem",p$="b";function m$({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i}){const s=L3(),[c,l]=p.useState(!1),[u,d]=p.useState(e),f=t??u,g=p.useCallback(v=>{const x=typeof v=="function"?v(f):v;n?n(x):d(x),document.cookie=`${c$}=${x}; path=/; max-age=${l$}`},[n,f]),b=p.useCallback(()=>s?l(v=>!v):g(v=>!v),[s,g,l]);p.useEffect(()=>{const v=x=>{x.key===p$&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const m=f?"expanded":"collapsed",h=p.useMemo(()=>({state:m,open:f,setOpen:g,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:b}),[m,f,g,s,c,l,b]);return y.jsx(gI.Provider,{value:h,children:y.jsx(vp,{delayDuration:0,children:y.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":u$,"--sidebar-width-icon":f$,...o},className:D("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...i,children:a})})})}function h$({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:i,state:s,openMobile:c,setOpenMobile:l}=Ki();return n==="none"?y.jsx("div",{"data-slot":"sidebar",className:D("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):i?y.jsx(QS,{open:c,onOpenChange:l,...a,children:y.jsxs(eI,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":d$},side:e,children:[y.jsxs(tI,{className:"sr-only",children:[y.jsx(nI,{children:"Sidebar"}),y.jsx(rI,{children:"Displays the mobile sidebar."})]}),y.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):y.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[y.jsx("div",{"data-slot":"sidebar-gap",className:D("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),y.jsx("div",{"data-slot":"sidebar-container",className:D("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:y.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function g$({className:e,onClick:t,...n}){const{toggleSidebar:r}=Ki();return y.jsxs(Io,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[y.jsx(tE,{}),y.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function b$({className:e,...t}){const{toggleSidebar:n}=Ki();return y.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function v$({className:e,...t}){return y.jsx("main",{"data-slot":"sidebar-inset",className:D("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function y$({className:e,...t}){return y.jsx(hC,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("bg-background h-8 w-full shadow-none",e),...t})}function x$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t})}function w$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t})}function C$({className:e,...t}){return y.jsx(KS,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("bg-sidebar-border mx-2 w-auto",e),...t})}function S$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function I$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col p-2",e),...t})}function E$({className:e,asChild:t=!1,...n}){const r=t?Cn:"div";return y.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function A$({className:e,asChild:t=!1,...n}){const r=t?Cn:"button";return y.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function R$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("w-full text-sm",e),...t})}function P$({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t})}function O$({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t})}const T$=So("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _$({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i}){const s=e?Cn:"button",{isMobile:c,state:l}=Ki(),u=y.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:D(T$({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),y.jsxs(pI,{children:[y.jsx(mI,{asChild:!0,children:u}),y.jsx(hI,{side:"right",align:"center",hidden:l!=="collapsed"||c,...o})]})):u}function M$({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Cn:"button";return y.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function D$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function N$({className:e,showIcon:t=!1,...n}){const[r,o]=p.useState("80%");return p.useEffect(()=>{o(`${Math.floor(Math.random()*40)+50}%`)},[]),y.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&y.jsx(Dd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),y.jsx(Dd,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function k$({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function F$({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("group/menu-sub-item relative",e),...t})}function B$({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Cn:"a";return y.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}var bI=["PageUp","PageDown"],vI=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],yI={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},_r="Slider",[Fd,j$,G$]=wo(_r),[xI]=ze(_r,[G$]),[L$,Qi]=xI(_r),wI=p.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:g=!1,form:b,...m}=e,h=p.useRef(new Set),v=p.useRef(0),w=i==="horizontal"?W$:V$,[C=[],S]=et({prop:u,defaultProp:l,onChange:T=>{[...h.current][v.current]?.focus(),d(T)}}),A=p.useRef(C);function I(T){const B=Y$(C,T);M(T,B)}function R(T){M(T,v.current)}function P(){const T=A.current[v.current];C[v.current]!==T&&f(C)}function M(T,B,{commit:O}={commit:!1}){const L=J$(a),W=K$(Math.round((T-r)/a)*a+r,L),j=go(W,[r,o]);S(($=[])=>{const N=z$($,j,B);if(U$(N,c*a)){v.current=N.indexOf(j);const V=String(N)!==String($);return V&&O&&f(N),V?N:$}else return $})}return y.jsx(L$,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:v,thumbs:h.current,values:C,orientation:i,form:b,children:y.jsx(Fd.Provider,{scope:e.__scopeSlider,children:y.jsx(Fd.Slot,{scope:e.__scopeSlider,children:y.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:X(m.onPointerDown,()=>{s||(A.current=C)}),min:r,max:o,inverted:g,onSlideStart:s?void 0:I,onSlideMove:s?void 0:R,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&M(r,0,{commit:!0}),onEndKeyDown:()=>!s&&M(o,C.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:B})=>{if(!s){const W=bI.includes(T.key)||T.shiftKey&&vI.includes(T.key)?10:1,j=v.current,$=C[j],N=a*W*B;M($+N,j,{commit:!0})}}})})})})});wI.displayName=_r;var[CI,SI]=xI(_r,{startEdge:"left",endEdge:"right",size:"width",direction:1}),W$=p.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=p.useState(null),g=pe(t,w=>f(w)),b=p.useRef(void 0),m=wn(o),h=m==="ltr",v=h&&!a||!h&&a;function x(w){const C=b.current||d.getBoundingClientRect(),S=[0,C.width],I=yp(S,v?[n,r]:[r,n]);return b.current=C,I(w-C.left)}return y.jsx(CI,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:y.jsx(II,{dir:m,"data-orientation":"horizontal",...u,ref:g,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const C=x(w.clientX);i?.(C)},onSlideMove:w=>{const C=x(w.clientX);s?.(C)},onSlideEnd:()=>{b.current=void 0,c?.()},onStepKeyDown:w=>{const S=yI[v?"from-left":"from-right"].includes(w.key);l?.({event:w,direction:S?-1:1})}})})}),V$=p.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=p.useRef(null),d=pe(t,u),f=p.useRef(void 0),g=!o;function b(m){const h=f.current||u.current.getBoundingClientRect(),v=[0,h.height],w=yp(v,g?[r,n]:[n,r]);return f.current=h,w(m-h.top)}return y.jsx(CI,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:y.jsx(II,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const h=b(m.clientY);a?.(h)},onSlideMove:m=>{const h=b(m.clientY);i?.(h)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:m=>{const v=yI[g?"from-bottom":"from-top"].includes(m.key);c?.({event:m,direction:v?-1:1})}})})}),II=p.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=Qi(_r,n);return y.jsx(oe.span,{...l,ref:t,onKeyDown:X(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):bI.concat(vI).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:X(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:X(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:X(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),a(d))})})}),EI="SliderTrack",AI=p.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Qi(EI,n);return y.jsx(oe.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});AI.displayName=EI;var Bd="SliderRange",RI=p.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Qi(Bd,n),a=SI(Bd,n),i=p.useRef(null),s=pe(t,i),c=o.values.length,l=o.values.map(f=>TI(f,o.min,o.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return y.jsx(oe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})});RI.displayName=Bd;var jd="SliderThumb",PI=p.forwardRef((e,t)=>{const n=j$(e.__scopeSlider),[r,o]=p.useState(null),a=pe(t,s=>o(s)),i=p.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return y.jsx(H$,{...e,ref:a,index:i})}),H$=p.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=Qi(jd,n),s=SI(jd,n),[c,l]=p.useState(null),u=pe(t,x=>l(x)),d=c?i.form||!!c.closest("form"):!0,f=_o(c),g=i.values[r],b=g===void 0?0:TI(g,i.min,i.max),m=X$(r,i.values.length),h=f?.[s.size],v=h?Z$(h,b,s.direction):0;return p.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${b}% + ${v}px)`},children:[y.jsx(Fd.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(oe.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":g,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:u,style:g===void 0?{display:"none"}:e.style,onFocus:X(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&y.jsx(OI,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:g},r)]})});PI.displayName=jd;var $$="RadioBubbleInput",OI=p.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=p.useRef(null),a=pe(o,r),i=To(t);return p.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[i,t]),y.jsx(oe.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});OI.displayName=$$;function z$(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function TI(e,t,n){const a=100/(n-t)*(e-t);return go(a,[0,100])}function X$(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Y$(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Z$(e,t,n){const r=e/2,a=yp([0,50],[0,r]);return(r-a(t)*n)*n}function q$(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function U$(e,t){if(t>0){const n=q$(e);return Math.min(...n)>=t}return!0}function yp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function J$(e){return(String(e).split(".")[1]||"").length}function K$(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Q$=wI,e9=AI,t9=RI,n9=PI;function r9({className:e,defaultValue:t,value:n,min:r=0,max:o=100,...a}){const i=p.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,o],[n,t,r,o]);return y.jsxs(Q$,{"data-slot":"slider",defaultValue:t,value:n,min:r,max:o,className:D("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...a,children:[y.jsx(e9,{"data-slot":"slider-track",className:D("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:y.jsx(t9,{"data-slot":"slider-range",className:D("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:i.length},(s,c)=>y.jsx(n9,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},c))]})}function o9({title:e,containerClassName:t,className:n,...r}){return y.jsx("section",{className:D(t),children:y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(ey,{role:"status","aria-label":"Loading",className:D("size-4 animate-spin",n),...r}),e&&y.jsx("span",{children:e})]})})}var es="Switch",[a9]=ze(es),[i9,s9]=a9(es),_I=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:l,form:u,...d}=e,[f,g]=p.useState(null),b=pe(t,w=>g(w)),m=p.useRef(!1),h=f?u||!!f.closest("form"):!0,[v,x]=et({prop:o,defaultProp:a??!1,onChange:l,caller:es});return y.jsxs(i9,{scope:n,checked:v,disabled:s,children:[y.jsx(oe.button,{type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":kI(v),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:b,onClick:X(e.onClick,w=>{x(C=>!C),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(NI,{control:f,bubbles:!m.current,name:r,value:c,checked:v,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});_I.displayName=es;var MI="SwitchThumb",DI=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=s9(MI,n);return y.jsx(oe.span,{"data-state":kI(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});DI.displayName=MI;var c9="SwitchBubbleInput",NI=p.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=p.useRef(null),s=pe(i,a),c=To(n),l=_o(t);return p.useEffect(()=>{const u=i.current;if(!u)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&g){const b=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(b)}},[c,n,r]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});NI.displayName=c9;function kI(e){return e?"checked":"unchecked"}var l9=_I,u9=DI;function d9({className:e,...t}){return y.jsx(l9,{"data-slot":"switch",className:D("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:y.jsx(u9,{"data-slot":"switch-thumb",className:D("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var ts="Tabs",[f9]=ze(ts,[Rr]),FI=Rr(),[p9,xp]=f9(ts),BI=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...l}=e,u=wn(s),[d,f]=et({prop:r,onChange:o,defaultProp:a??"",caller:ts});return y.jsx(p9,{scope:n,baseId:Le(),value:d,onValueChange:f,orientation:i,dir:u,activationMode:c,children:y.jsx(oe.div,{dir:u,"data-orientation":i,...l,ref:t})})});BI.displayName=ts;var jI="TabsList",GI=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=xp(jI,n),i=FI(n);return y.jsx(zf,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:y.jsx(oe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});GI.displayName=jI;var LI="TabsTrigger",WI=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=xp(LI,n),s=FI(n),c=$I(i.baseId,r),l=zI(i.baseId,r),u=r===i.value;return y.jsx(Xf,{asChild:!0,...s,focusable:!o,active:u,children:y.jsx(oe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:X(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:X(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:X(e.onFocus,()=>{const d=i.activationMode!=="manual";!u&&!o&&d&&i.onValueChange(r)})})})});WI.displayName=LI;var VI="TabsContent",HI=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=xp(VI,n),c=$I(s.baseId,r),l=zI(s.baseId,r),u=r===s.value,d=p.useRef(u);return p.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),y.jsx(Xe,{present:o||u,children:({present:f})=>y.jsx(oe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&a})})});HI.displayName=VI;function $I(e,t){return`${e}-trigger-${t}`}function zI(e,t){return`${e}-content-${t}`}var m9=BI,h9=GI,g9=WI,b9=HI;function v9({className:e,...t}){return y.jsx(m9,{"data-slot":"tabs",className:D("flex flex-col gap-2",e),...t})}function y9({className:e,...t}){return y.jsx(h9,{"data-slot":"tabs-list",className:D("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function x9({className:e,...t}){return y.jsx(g9,{"data-slot":"tabs-trigger",className:D("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function w9({className:e,...t}){return y.jsx(b9,{"data-slot":"tabs-content",className:D("flex-1 outline-none",e),...t})}function C9({className:e,...t}){return y.jsx("div",{"data-slot":"table-container",className:"overflow-x-auto",children:y.jsx("table",{"data-slot":"table",className:D("data-grid min-w-full text-left text-sm font-light text-surface dark:text-white",e),...t})})}function S9({className:e,disableHover:t=!1,...n}){return y.jsx("thead",{"data-slot":"table-header",className:D("border-b border-neutral-200 font-medium bg-zinc-700 text-white",!t&&"hover:bg-zinc-700 hover:text-white",e),...n})}function I9({className:e,...t}){return y.jsx("th",{"data-slot":"table-head",className:D("p-2 whitespace-nowrap",e),...t})}function E9({className:e,...t}){return y.jsx("tbody",{"data-slot":"table-body",className:D("border-b bg-white [&_tr:last-child]:border-0",e),...t})}function A9({className:e,...t}){return y.jsx("tr",{className:D("border-b border-neutral-200",e),...t})}function R9({className:e,disableHover:t=!1,...n}){return y.jsx("tr",{"data-slot":"table-row",className:D("border-b border-neutral-200",!t&&"hover:bg-neutral-300",e),...n})}function P9({className:e,...t}){return y.jsx("td",{"data-slot":"table-cell",className:D("whitespace-nowrap p-2",e),...t})}function O9({className:e,...t}){return y.jsx("caption",{"data-slot":"table-caption",className:D("mt-4 text-sm text-muted-foreground",e),...t})}function T9({className:e,...t}){return y.jsx("tfoot",{"data-slot":"table-footer",className:D("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})}const XI=p.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:"overflow-x-auto","data-slot":"table-container",children:y.jsx("table",{ref:n,"data-slot":"table",className:D("data-grid min-w-full text-left text-sm font-light text-surface dark:text-white border-collapse",e),...t})}));XI.displayName="TableWhatsApp";const YI=p.forwardRef(({className:e,disableHover:t=!1,...n},r)=>y.jsx("thead",{ref:r,"data-slot":"table-header",className:D("text-black-250",!t&&void 0,e),...n}));YI.displayName="TableHeaderWhatsApp";const ZI=p.forwardRef(({className:e,column:t,...n},r)=>y.jsx("th",{ref:r,"data-slot":"table-head",className:D("p-2 font-normal",t?.columnDef?.whiteSpace||"whitespace-nowrap",t?.columnDef?.sticky&&"sticky z-10 before:content-[''] before:absolute before:top-0 before:bottom-0 before:w-[1px] before:h-full before:bg-gray-250",t?.columnDef?.stickyLeft&&"left-0 before:right-0",t?.columnDef?.stickyRight&&"right-0 before:left-0",t?.columnDef?.textColor&&t?.columnDef?.textColor,e),...n,children:n.children}));ZI.displayName="TableHeadWhatsApp";const qI=p.forwardRef(({className:e,column:t,children:n,...r},o)=>y.jsx("td",{ref:o,"data-slot":"table-cell",className:D("whitespace-nowrap px-2 py-4 relative",t?.columnDef?.sticky&&"sticky z-10 before:content-[''] before:absolute before:top-0 before:bottom-0 before:w-[1px] before:h-full before:bg-gray-250",t?.columnDef?.stickyLeft&&"left-0 before:right-0",t?.columnDef?.stickyRight&&"right-0 before:left-0",t?.columnDef?.borderRight&&"border-0 border-r border-gray-250 border-solid",t?.columnDef?.cellBgColorClass?t?.columnDef?.cellBgColorClass:"bg-white",e),...r,children:n}));qI.displayName="TableCellWhatsApp";const UI=p.forwardRef(({className:e,...t},n)=>y.jsx("tbody",{ref:n,"data-slot":"table-body",className:D("border-b bg-white [&_tr:last-child]:border-0",e),...t}));UI.displayName="TableBodyWhatsApp";const JI=p.forwardRef(({className:e,...t},n)=>y.jsx("tr",{ref:n,"data-slot":"table-head-row",className:D("border-0 border-b border-solid border-gray-250",e),...t}));JI.displayName="TableHeadRowWhatsApp";const KI=p.forwardRef(({className:e,disableHover:t=!1,...n},r)=>y.jsx("tr",{ref:r,"data-slot":"table-row",className:D("border-0 border-b border-solid border-gray-250",!t&&void 0,e),...n}));KI.displayName="TableRowWhatsApp";const QI=p.forwardRef(({className:e,...t},n)=>y.jsx("caption",{ref:n,"data-slot":"table-caption",className:D("mt-4 text-sm text-muted-foreground",e),...t}));QI.displayName="TableCaptionWhatsApp";const e1=p.forwardRef(({className:e,...t},n)=>y.jsx("tfoot",{ref:n,"data-slot":"table-footer",className:D("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));e1.displayName="TableFooterWhatsApp";function _9({className:e,...t}){return y.jsx("textarea",{"data-slot":"textarea",className:D("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}exports.Accordion=fR;exports.AccordionContent=hR;exports.AccordionItem=pR;exports.AccordionTrigger=mR;exports.AspectRatio=AR;exports.Avatar=WR;exports.Badge=$R;exports.Breadcrumb=zR;exports.Button=Io;exports.Calendar=wO;exports.Card=SO;exports.CardAction=RO;exports.CardContent=PO;exports.CardDescription=AO;exports.CardFooter=OO;exports.CardHeader=IO;exports.CardTitle=EO;exports.Carousel=uT;exports.CarouselContent=dT;exports.CarouselItem=fT;exports.CarouselNext=mT;exports.CarouselPrevious=pT;exports.Case=ir;exports.ChartContainer=zN;exports.ChartLegend=ZN;exports.ChartLegendContent=qN;exports.ChartStyle=X0;exports.ChartTooltip=XN;exports.ChartTooltipContent=YN;exports.Checkbox=ek;exports.Collapsible=tk;exports.CollapsibleContent=rk;exports.CollapsibleTrigger=nk;exports.Command=Xx;exports.CommandDialog=W2;exports.CommandEmpty=$2;exports.CommandGroup=z2;exports.CommandInput=V2;exports.CommandItem=Y2;exports.CommandList=H2;exports.CommandSeparator=X2;exports.CommandShortcut=Z2;exports.ComponentSwitch=Xr;exports.ContentWrapper=q2;exports.Default=ff;exports.Dialog=Gx;exports.DialogClose=G2;exports.DialogContent=Vx;exports.DialogDescription=zx;exports.DialogFooter=L2;exports.DialogHeader=Hx;exports.DialogOverlay=Wx;exports.DialogPortal=Lx;exports.DialogTitle=$x;exports.DialogTrigger=j2;exports.Drawer=PF;exports.DropdownMenu=bG;exports.Empty=vG;exports.EmptyContent=IG;exports.EmptyDescription=SG;exports.EmptyHeader=yG;exports.EmptyMedia=wG;exports.EmptyTitle=CG;exports.ErrorMessage=tC;exports.FieldDescription=nC;exports.Form=LG;exports.FormControl=$G;exports.FormDescription=zG;exports.FormField=WG;exports.FormItem=VG;exports.FormLabel=HG;exports.FormMessage=XG;exports.FormattedDate=J2;exports.HoverCard=rL;exports.Icon=oL;exports.Input=hC;exports.InputOTP=yL;exports.Kbd=xL;exports.KbdGroup=wL;exports.Label=tp;exports.LoadMore=CL;exports.NativeSelect=SL;exports.NativeSelectOptGroup=EL;exports.NativeSelectOption=IL;exports.Pagination=AL;exports.Popover=LL;exports.RadioGroup=QL;exports.ScrollArea=mW;exports.Select=JW;exports.SelectMulti=T3;exports.Separator=KS;exports.Sheet=QS;exports.SheetClose=F3;exports.SheetContent=eI;exports.SheetDescription=rI;exports.SheetFooter=G3;exports.SheetHeader=tI;exports.SheetTitle=nI;exports.SheetTrigger=k3;exports.Sidebar=h$;exports.SidebarContent=S$;exports.SidebarFooter=w$;exports.SidebarGroup=I$;exports.SidebarGroupAction=A$;exports.SidebarGroupContent=R$;exports.SidebarGroupLabel=E$;exports.SidebarHeader=x$;exports.SidebarInput=y$;exports.SidebarInset=v$;exports.SidebarMenu=P$;exports.SidebarMenuAction=M$;exports.SidebarMenuBadge=D$;exports.SidebarMenuButton=_$;exports.SidebarMenuItem=O$;exports.SidebarMenuSkeleton=N$;exports.SidebarMenuSub=k$;exports.SidebarMenuSubButton=B$;exports.SidebarMenuSubItem=F$;exports.SidebarProvider=m$;exports.SidebarRail=b$;exports.SidebarSeparator=C$;exports.SidebarTrigger=g$;exports.Skeleton=Dd;exports.Slider=r9;exports.Spinner=o9;exports.Switch=d9;exports.Table=C9;exports.TableBody=E9;exports.TableCaption=O9;exports.TableCell=P9;exports.TableFooter=T9;exports.TableHead=I9;exports.TableHeadRow=A9;exports.TableHeader=S9;exports.TableRow=R9;exports.TableWhatsApp=XI;exports.TableWhatsAppBody=UI;exports.TableWhatsAppCaption=QI;exports.TableWhatsAppCell=qI;exports.TableWhatsAppFooter=e1;exports.TableWhatsAppHead=ZI;exports.TableWhatsAppHeadRow=JI;exports.TableWhatsAppHeader=YI;exports.TableWhatsAppRow=KI;exports.Tabs=v9;exports.TabsContent=w9;exports.TabsList=y9;exports.TabsTrigger=x9;exports.Textarea=_9;exports.Tooltip=pI;exports.TooltipContent=hI;exports.TooltipProvider=vp;exports.TooltipTrigger=mI;exports.cn=D;
|