@conscia-labs/design-system 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- import{$ as Fe,$a as ht,A as Mo,Aa as gr,B as Oo,Ba as hr,C as Io,Ca as vr,D as F,Da as xr,E as Ae,Ea as br,F as Do,Fa as Pr,G as ko,Ga as Rr,H as Vo,Ha as Cr,Hb as Vr,I as nt,Ia as Lr,Ib as Ar,J as Ao,Ja as Tr,Jb as Fr,K as Fo,Ka as yr,L as Bo,La as wr,M as _o,Ma as it,N as Zo,Na as ct,Oa as lt,P as zo,Pa as Sr,Q as Ho,Qa as Er,R as jo,Ra as dt,Sa as Nr,T as st,Ta as Mr,U as Go,Ua as Or,V as Ne,Va as Be,W as je,Wa as ut,X as Uo,Xa as pt,Y as Te,Ya as mt,Z as Re,Za as ft,_ as he,_a as gt,a as W,aa as Ge,b as xo,ba as Wo,c as bo,ca as $o,d as et,da as Yo,e as tt,ea as at,eb as le,f as R,fa as Ko,fb as Ir,ga as Xo,ha as qo,hc as Br,i as ot,ia as Jo,ic as $t,j as Ve,ja as Qo,jc as _r,k as Po,ka as er,kc as Zr,l as X,la as tr,lc as zr,m as rt,ma as or,mc as Hr,n as Ro,na as rr,o as Co,oa as nr,p as Lo,pa as sr,q as To,qa as ar,r as Pe,ra as ir,rb as Dr,rc as jr,s as yo,sa as cr,t as wo,ta as lr,u as So,ua as dr,ub as vt,v as Le,va as ur,vb as kr,w as He,wa as pr,x as ge,xa as mr,y as Eo,ya as Wt,z as No,za as fr}from"./chunk-EYJVPAQG.js";import{a as m}from"./chunk-RFPKBIDP.js";import{a as Ut,b as ie}from"./chunk-OS3FCYZY.js";import*as $ from"react";import{cva as Ss}from"class-variance-authority";import{jsx as xt}from"react/jsx-runtime";var Yt=$.createContext(null),Es=Ss("relative grid w-full grid-cols-[auto_1fr] items-start gap-x-3 rounded-[var(--ds-radius-surface)] border px-4 py-3.5 text-sm [&>svg]:mt-0.5 [&>svg]:size-5",{variants:{variant:{default:"border-border-default bg-surface text-text-primary",information:"border-information-border bg-information-background text-information-foreground",success:"border-success-border bg-success-background text-success-foreground",warning:"border-warning-border bg-warning-background text-warning-foreground",danger:"border-danger-border bg-danger-background text-danger-foreground"}},defaultVariants:{variant:"default"}});function La({children:e,className:o,variant:t,role:r="group","aria-labelledby":n,"aria-describedby":l,...a}){let d=$.useId(),s=`${d}-title`,c=`${d}-description`,[i,u]=$.useState(),[p,h]=$.useState(),f=$.useCallback(I=>u(I),[]),b=$.useCallback(I=>h(I),[]);return xt(Yt.Provider,{value:{titleId:s,descriptionId:c,hasTitle:!!i,hasDescription:!!p,registerTitle:f,registerDescription:b},children:xt("div",{"data-slot":"alert",role:r,"aria-labelledby":n??i,"aria-describedby":l??p,className:m(Es({variant:t}),o),...a,children:e})})}function Ta({className:e,...o}){let t=$.useContext(Yt),r=o.id??t?.titleId;return $.useEffect(()=>{r&&t?.registerTitle(r)},[t,r]),xt("div",{"data-slot":"alert-title",id:r,className:m("font-medium leading-5",e),...o})}function ya({className:e,...o}){let t=$.useContext(Yt),r=o.id??t?.descriptionId;return $.useEffect(()=>{r&&t?.registerDescription(r)},[t,r]),xt("div",{"data-slot":"alert-description",id:r,className:m("col-start-2 mt-0.5 text-sm leading-5 opacity-80",e),...o})}import*as ve from"react";import{jsx as bt}from"react/jsx-runtime";var Ns=typeof window>"u"?ve.useEffect:ve.useLayoutEffect,Gr=ve.createContext(null);function Ur(){let e=ve.useContext(Gr);if(!e)throw new Error("AvatarImage and AvatarFallback must be used inside Avatar.");return e}function Na({children:e,className:o,...t}){let[r,n]=ve.useState("idle");return bt(Gr.Provider,{value:{status:r,setStatus:n},children:bt("div",{"data-slot":"avatar",className:m("relative flex size-8 shrink-0 overflow-hidden rounded-full",o),...t,children:e})})}function Ma({alt:e,className:o,onError:t,onLoad:r,src:n,...l}){let{status:a,setStatus:d}=Ur();return Ns(()=>{d(n?"loading":"error")},[n,d]),bt("img",{"data-slot":"avatar-image",className:m("aspect-square size-full",a==="loaded"?"":"hidden",o),alt:e,src:n,...l,onLoad:s=>{d("loaded"),r?.(s)},onError:s=>{d("error"),t?.(s)}})}function Oa({className:e,...o}){let{status:t}=Ur();return bt("div",{"data-slot":"avatar-fallback",className:m("flex size-full items-center justify-center rounded-full bg-surface-muted text-xs font-medium text-text-supporting",t==="loaded"?"hidden":"",e),...o})}import*as $r from"react";import{jsxs as Wr}from"react/jsx-runtime";function Va({children:e,className:o,max:t,size:r="default",total:n,"aria-label":l,"aria-labelledby":a,...d}){let s=$r.Children.toArray(e),c=t===void 0?s.length:Math.max(0,Math.floor(t)),i=s.slice(0,c),u=Math.max(s.length,n??s.length),p=Math.max(0,u-i.length);return Wr("div",{"data-slot":"avatar-group","data-size":r,className:m("flex items-center [&>[data-slot=avatar]]:relative [&>[data-slot=avatar]]:z-0 [&>[data-slot=avatar]]:shrink-0 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-canvas [&>[data-slot=avatar]]:transition-[margin,z-index] hover:[&>[data-slot=avatar]]:z-10 data-[size=default]:gap-0 data-[size=default]:[&>[data-slot=avatar]]:-ml-2 data-[size=default]:[&>[data-slot=avatar]]:size-8 data-[size=lg]:gap-0 data-[size=lg]:[&>[data-slot=avatar]]:-ml-2.5 data-[size=lg]:[&>[data-slot=avatar]]:size-10 data-[size=sm]:gap-0 data-[size=sm]:[&>[data-slot=avatar]]:-ml-1.5 data-[size=sm]:[&>[data-slot=avatar]]:size-6 [&>[data-slot=avatar]:first-child]:ml-0",o),role:"group","aria-label":a?void 0:l??"Avatar group","aria-labelledby":a,...d,children:[i,p>0?Wr("span",{"data-slot":"avatar-group-overflow",className:"relative z-0 inline-flex shrink-0 items-center justify-center rounded-full border-2 border-canvas bg-surface-muted font-medium text-text-supporting data-[size=default]:-ml-2 data-[size=default]:size-8 data-[size=default]:text-xs data-[size=lg]:-ml-2.5 data-[size=lg]:size-10 data-[size=lg]:text-sm data-[size=sm]:-ml-1.5 data-[size=sm]:size-6 data-[size=sm]:text-[0.625rem]","aria-label":`${p} more ${p===1?"avatar":"avatars"}`,title:`${p} more ${p===1?"avatar":"avatars"}`,children:["+",p]}):null]})}import{cva as Ms}from"class-variance-authority";import{jsx as Is}from"react/jsx-runtime";var Os=Ms("inline-flex items-center rounded-md border px-1.5 py-0.5 text-[var(--ds-metadata)] font-medium leading-4 transition-colors",{variants:{variant:{default:"border-action bg-action text-action-foreground",accent:"border-selection-border bg-selection-background text-selection-foreground",secondary:"border-neutral-border bg-neutral-background text-neutral-foreground",neutral:"border-neutral-border bg-neutral-background text-neutral-foreground",outline:"border-border-default text-text-primary",information:"border-information-border bg-information-background text-information-foreground",info:"border-information-border bg-information-background text-information-foreground",success:"border-success-border bg-success-background text-success-foreground",warning:"border-warning-border bg-warning-background text-warning-foreground",danger:"border-danger-border bg-danger-background text-danger-foreground",destructive:"border-danger-border bg-danger-background text-danger-foreground"}},defaultVariants:{variant:"neutral"}});function Za({className:e,variant:o,...t}){return Is("span",{"data-slot":"badge",className:m(Os({variant:o,className:e})),...t})}import{jsx as Yr}from"react/jsx-runtime";var Ds=["M171.225 63.8139L173.637 66.1116L203.794 34.4551L201.382 32.1575L171.225 63.8139Z","M184.012 78.9693L185.769 81.8487L223.091 59.076L221.334 56.1966L184.012 78.9693Z","M192.436 96.8858L193.417 100.222L235.362 87.8847L234.381 84.5488L192.436 96.8858Z","M195.949 116.334L196.037 119.987L239.746 118.926L239.657 115.273L195.949 116.334Z","M194.341 135.989L193.42 139.796L235.913 150.084L236.835 146.277L194.341 135.989Z","M187.759 154.526L185.708 158.285L224.091 179.221L226.142 175.461L187.759 154.526Z","M176.683 170.712L173.394 174.165L205.05 204.322L208.34 200.868L176.683 170.712Z","M161.899 183.49L157.288 186.304L180.06 223.626L184.672 220.812L161.899 183.49Z","M144.425 192.058L138.472 193.809L150.809 235.754L156.762 234.003L144.425 192.058Z","M125.438 195.913L118.244 196.088L119.305 239.796L126.499 239.622L125.438 195.913Z","M106.176 194.873L98.0421 192.903L87.754 235.397L95.8882 237.366L106.176 194.873Z","M87.8408 189.056L79.3505 184.425L58.4147 222.808L66.905 227.439L87.8408 189.056Z","M71.5444 178.838L63.5819 171.253L33.4252 202.91L41.3878 210.495L71.5444 178.838Z","M58.2896 164.821L51.9185 154.379L14.5961 177.152L20.9672 187.593L58.2896 164.821Z","M48.9443 147.836L45.1912 135.075L3.24659 147.412L6.99972 160.173L48.9443 147.836Z","M44.1724 128.938L43.8283 114.759L0.119827 115.82L0.463868 129.998L44.1724 128.938Z","M44.3613 109.352L47.8648 94.8809L5.37116 84.5928L1.86766 99.0635L44.3613 109.352Z","M49.563 90.3812L56.9571 76.825L18.5742 55.8893L11.18 69.4455L49.563 90.3812Z","M59.4839 73.314L70.4267 61.8269L38.7702 31.6703L27.8274 43.1574L59.4839 73.314Z","M73.4951 59.3251L87.307 50.8976L64.5343 13.5752L50.7224 22.0027L73.4951 59.3251Z","M90.6772 49.3891L106.414 44.7604L94.0775 2.81575L78.3402 7.44453L90.6772 49.3891Z","M109.88 44.2086L126.426 43.8071L125.366 0.098614L108.82 0.500089L109.88 44.2086Z","M129.802 44.1632L145.967 48.0768L156.255 5.58318L140.09 1.66954L129.802 44.1632Z","M149.087 49.2798L163.709 57.2553L184.645 18.8723L170.023 10.8969L149.087 49.2798Z","M152.448 160.384L141.06 167.332L154.089 188.685L165.477 181.736L152.448 160.384Z","M140.881 167.41L128.103 171.168L135.161 195.165L147.939 191.407L140.881 167.41Z","M127.834 171.202L114.653 171.522L115.26 196.528L128.441 196.209L127.834 171.202Z","M114.192 171.456L101.624 168.413L95.738 192.724L108.306 195.767L114.192 171.456Z","M100.907 168.109L89.889 162.1L77.9114 184.059L88.9296 190.069L100.907 168.109Z","M88.9224 161.353L80.2035 153.047L62.9505 171.158L71.6694 179.464L88.9224 161.353Z","M79.1143 151.631L73.1721 141.893L51.8195 154.921L57.7617 164.66L79.1143 151.631Z","M72.2163 139.615L69.2075 129.385L45.2105 136.444L48.2193 146.673L72.2163 139.615Z","M68.7593 126.163L68.5209 116.339L43.5147 116.946L43.7531 126.77L68.7593 126.163Z","M69.0161 112.256L71.1176 103.576L46.8064 97.6899L44.7049 106.37L69.0161 112.256Z","M72.979 98.9209L76.8146 91.8888L54.8552 79.9112L51.0196 86.9432L72.979 98.9209Z","M80.3506 87.1414L85.2494 81.999L67.1383 64.746L62.2395 69.8884L80.3506 87.1414Z","M90.5762 77.7753L95.9023 74.5255L82.8738 53.1729L77.5476 56.4227L90.5762 77.7753Z","M102.889 71.4875L108.114 69.9508L101.056 45.9537L95.831 47.4905L102.889 71.4875Z","M116.381 68.7043L121.119 68.5894L120.513 43.5832L115.775 43.6981L116.381 68.7043Z","M130.08 69.5886L134.092 70.56L139.978 46.2488L135.966 45.2775L130.08 69.5886Z","M143.01 74.0389L146.183 75.7697L158.161 53.8103L154.988 52.0795L143.01 74.0389Z","M154.273 81.705L156.588 83.9108L173.841 65.7997L171.526 63.5939L154.273 81.705Z","M163.102 92.0197L164.599 94.4735L185.952 81.445L184.455 78.9911L163.102 92.0197Z","M168.91 104.243L169.655 106.775L193.652 99.7164L192.907 97.1844L168.91 104.243Z","M171.325 117.515L171.386 120.001L196.392 119.394L196.331 116.909L171.325 117.515Z","M170.21 130.922L169.644 133.264L193.955 139.15L194.522 136.808L170.21 130.922Z","M165.673 143.549L164.523 145.658L186.482 157.636L187.633 155.527L165.673 143.549Z","M158.032 154.558L156.355 156.318L174.467 173.571L176.143 171.811L158.032 154.558Z"].join(" ");function Ga({"aria-label":e,className:o,...t}){return Yr("svg",{"data-slot":"brand-icon",xmlns:"http://www.w3.org/2000/svg",width:"240",height:"240",viewBox:"0 0 240 240",fill:"none",focusable:"false",role:e?"img":void 0,"aria-hidden":e?void 0:!0,"aria-label":e,className:m("size-6 shrink-0 text-text-primary dark:text-white",o),...t,children:Yr("path",{d:Ds,fill:"currentColor"})})}import{jsx as Kr}from"react/jsx-runtime";var ks=["M485.154 47.9722V40.929H495.867V90.529H485.154V83.3866C481.086 89.041 475.333 91.8186 467.794 91.8186C460.949 91.8186 455.195 89.3386 450.334 84.2794C445.474 79.2202 443.093 72.9706 443.093 65.729C443.093 58.3882 445.474 52.2378 450.334 47.1786C455.195 42.1194 460.949 39.6394 467.794 39.6394C475.333 39.6394 481.086 42.417 485.154 47.9722ZM458.27 77.137C461.246 80.113 465.016 81.601 469.48 81.601C473.944 81.601 477.714 80.113 480.69 77.137C483.666 74.0618 485.154 70.2922 485.154 65.729C485.154 61.1658 483.666 57.3962 480.69 54.4202C477.714 51.345 473.944 49.857 469.48 49.857C465.016 49.857 461.246 51.345 458.27 54.4202C455.294 57.3962 453.806 61.1658 453.806 65.729C453.806 70.2922 455.294 74.0618 458.27 77.137Z","M436.308 31.5049C433.63 34.1833 429.463 34.1833 426.686 31.5049C424.007 28.7273 424.007 24.5609 426.686 21.8825C429.364 19.1049 433.729 19.1049 436.407 21.8825C439.086 24.5609 439.086 28.7273 436.308 31.5049ZM436.903 90.5288H426.19V40.9289H436.903V90.5288Z","M399.598 91.8186C392.158 91.8186 385.909 89.3386 380.85 84.2794C375.89 79.2202 373.41 73.0698 373.41 65.729C373.41 58.289 375.89 52.1386 380.85 47.1786C385.909 42.1194 392.158 39.6394 399.598 39.6394C409.221 39.6394 417.752 44.5994 421.72 52.4362L412.494 57.793C410.213 53.0314 405.451 50.1546 399.499 50.1546C395.134 50.1546 391.464 51.6426 388.488 54.6186C385.611 57.5946 384.123 61.265 384.123 65.729C384.123 70.193 385.611 73.8634 388.488 76.8394C391.464 79.8154 395.134 81.3034 399.499 81.3034C405.352 81.3034 410.312 78.3274 412.693 73.665L421.918 78.9226C417.653 86.8586 409.221 91.8186 399.598 91.8186Z","M344.816 54.6186C344.816 57.8922 348.982 59.5786 354.141 61.0666C361.779 62.753 371.699 65.9274 371.501 76.5418C371.501 81.3034 369.616 85.073 365.945 87.7514C362.275 90.4298 357.712 91.8186 352.157 91.8186C342.336 91.8186 335.094 87.4538 331.92 80.2122L341.146 74.8554C342.832 79.617 346.502 81.9978 352.157 81.9978C357.811 81.9978 360.589 80.113 360.589 76.4426C360.589 73.2682 356.422 71.3834 351.165 70.0938C343.725 68.209 333.706 65.233 333.904 54.817C333.904 50.2538 335.59 46.5834 339.062 43.8058C342.534 41.0282 346.899 39.6394 352.058 39.6394C360.291 39.6394 366.937 43.5082 370.409 49.9562L361.382 55.0154C359.696 51.2458 356.522 49.361 352.058 49.361C347.99 49.361 344.816 51.1466 344.816 54.6186Z","M308.082 39.6394C319.49 39.6394 327.129 47.377 327.129 60.0746V90.529H316.415V61.1658C316.415 53.7258 312.149 49.6586 305.305 49.6586C297.765 49.6586 292.706 54.321 292.706 63.9434V90.529H281.993V40.929H292.706V47.2778C295.98 42.2186 301.039 39.6394 308.082 39.6394Z","M249.588 91.8186C242.347 91.8186 236.097 89.3386 231.038 84.2794C225.979 79.2202 223.399 73.0698 223.399 65.729C223.399 58.3882 225.979 52.2378 231.038 47.1786C236.097 42.1194 242.347 39.6394 249.588 39.6394C256.929 39.6394 263.079 42.1194 268.139 47.1786C273.198 52.2378 275.777 58.3882 275.777 65.729C275.777 73.0698 273.198 79.2202 268.139 84.2794C263.079 89.3386 256.929 91.8186 249.588 91.8186ZM238.577 76.9386C241.553 79.9146 245.223 81.4026 249.588 81.4026C253.953 81.4026 257.623 79.9146 260.599 76.9386C263.575 73.9626 265.063 70.193 265.063 65.729C265.063 61.265 263.575 57.4954 260.599 54.5194C257.623 51.5434 253.953 50.0554 249.588 50.0554C245.223 50.0554 241.553 51.5434 238.577 54.5194C235.601 57.4954 234.113 61.265 234.113 65.729C234.113 70.193 235.601 73.9626 238.577 76.9386Z","M191.106 91.8184C180.69 91.8184 171.96 88.3464 165.116 81.5017C158.271 74.5577 154.799 66.0265 154.799 55.8089C154.799 45.5913 158.271 37.0601 165.116 30.2153C171.96 23.2713 180.69 19.7993 191.106 19.7993C203.704 19.7993 215.013 26.1481 220.965 36.3657L211.045 42.1193C207.375 35.2745 199.836 30.9097 191.106 30.9097C183.666 30.9097 177.714 33.2905 173.052 37.9529C168.488 42.6153 166.207 48.5673 166.207 55.8089C166.207 63.0505 168.488 69.0025 173.052 73.6649C177.714 78.3273 183.666 80.7081 191.106 80.7081C199.836 80.7081 207.474 76.3433 211.045 69.4985L220.965 75.1529C218.088 80.2121 213.922 84.2793 208.565 87.3544C203.308 90.3304 197.455 91.8184 191.106 91.8184Z","M80.3374 30.1243L81.463 31.1965L95.536 16.4235L94.4105 15.3512L80.3374 30.1243Z","M86.3032 37.1965L87.1231 38.5402L104.54 27.913L103.72 26.5693L86.3032 37.1965Z","M90.2339 45.5579L90.6918 47.1146L110.266 41.3573L109.808 39.8006L90.2339 45.5579Z","M91.8765 54.6333L91.9179 56.3381L112.315 55.8431L112.274 54.1384L91.8765 54.6333Z","M91.1245 63.8054L90.6944 65.582L110.525 70.3832L110.955 68.6065L91.1245 63.8054Z","M88.0532 72.4561L87.0963 74.2104L105.008 83.9804L105.965 82.2261L88.0532 72.4561Z","M82.8853 80.0098L81.3501 81.6213L96.1232 95.6944L97.6583 94.0829L82.8853 80.0098Z","M75.9854 85.9727L73.8334 87.2857L84.4606 104.703L86.6126 103.39L75.9854 85.9727Z","M67.8301 89.9714L65.0521 90.7885L70.8094 110.363L73.5873 109.546L67.8301 89.9714Z","M58.9707 91.7705L55.6136 91.852L56.1085 112.249L59.4656 112.168L58.9707 91.7705Z","M49.9814 91.2849L46.1855 90.3659L41.3844 110.196L45.1803 111.115L49.9814 91.2849Z","M41.4253 88.5703L37.4631 86.4092L27.6931 104.321L31.6553 106.482L41.4253 88.5703Z","M33.8188 83.8022L30.103 80.2624L16.0299 95.0355L19.7458 98.5753L33.8188 83.8022Z","M27.6348 77.2605L24.6616 72.3878L7.24451 83.015L10.2177 87.8878L27.6348 77.2605Z","M23.271 69.334L21.5195 63.3792L1.94538 69.1364L3.69684 75.0912L23.271 69.334Z","M21.0474 60.5151L20.8868 53.8985L0.489511 54.3934L0.650063 61.0101L21.0474 60.5151Z","M21.1338 51.3752L22.7688 44.6222L2.93837 39.8211L1.30341 46.5741L21.1338 51.3752Z","M23.5605 42.522L27.0111 36.1957L9.09909 26.4258L5.6485 32.752L23.5605 42.522Z","M28.1909 34.5574L33.2976 29.1967L18.5246 15.1236L13.4179 20.4843L28.1909 34.5574Z","M34.7305 28.0295L41.176 24.0967L30.5488 6.67961L24.1032 10.6124L34.7305 28.0295Z","M42.749 23.3923L50.0931 21.2323L44.3358 1.65808L36.9918 3.81818L42.749 23.3923Z","M51.7109 20.9749L59.4323 20.7875L58.9373 0.390197L51.216 0.577552L51.7109 20.9749Z","M61.0078 20.9536L68.5512 22.78L73.3523 2.9496L65.8089 1.12323L61.0078 20.9536Z","M70.0063 23.3413L76.83 27.0632L86.6 9.15115L79.7764 5.42926L70.0063 23.3413Z","M71.5737 75.1902L66.2594 78.4328L72.3393 88.3974L77.6537 85.1547L71.5737 75.1902Z","M66.1782 78.4688L60.2153 80.2226L63.5091 91.4212L69.472 89.6674L66.1782 78.4688Z","M60.0874 80.2388L53.9362 80.388L54.2193 92.0576L60.3706 91.9083L60.0874 80.2388Z","M53.7231 80.3569L47.8581 78.937L45.1113 90.2822L50.9764 91.7021L53.7231 80.3569Z","M47.5229 78.7954L42.3811 75.9908L36.7916 86.2386L41.9334 89.0431L47.5229 78.7954Z","M41.9287 75.6421L37.8599 71.7661L29.8085 80.2179L33.8773 84.0939L41.9287 75.6421Z","M37.3511 71.1057L34.578 66.561L24.6135 72.641L27.3865 77.1857L37.3511 71.1057Z","M34.1333 65.498L32.7292 60.7242L21.5306 64.0181L22.9347 68.7918L34.1333 65.498Z","M32.52 59.2202L32.4088 54.6358L20.7392 54.9189L20.8505 59.5034L32.52 59.2202Z","M32.6411 52.7302L33.6218 48.6797L22.2766 45.9329L21.2959 49.9834L32.6411 52.7302Z","M34.4888 46.5073L36.2787 43.2257L26.031 37.6361L24.241 40.9178L34.4888 46.5073Z","M37.9297 41.0103L40.2158 38.6105L31.7639 30.5591L29.4779 32.9589L37.9297 41.0103Z","M42.7012 36.6394L45.1867 35.1228L39.1067 25.1583L36.6212 26.6749L42.7012 36.6394Z","M48.4478 33.7051L50.8861 32.9879L47.5923 21.7893L45.1539 22.5064L48.4478 33.7051Z","M54.7437 32.4062L56.9548 32.3526L56.6716 20.683L54.4605 20.7367L54.7437 32.4062Z","M61.1377 32.8188L63.01 33.2721L65.7568 21.9269L63.8845 21.4736L61.1377 32.8188Z","M67.1694 34.8958L68.6503 35.7035L74.2398 25.4557L72.759 24.648L67.1694 34.8958Z","M72.4282 38.4731L73.5088 39.5025L81.5602 31.0507L80.4796 30.0213L72.4282 38.4731Z","M76.5459 43.2869L77.2446 44.432L87.2092 38.352L86.5104 37.2069L76.5459 43.2869Z","M79.2554 48.9905L79.6029 50.1721L90.8015 46.8783L90.454 45.6967L79.2554 48.9905Z","M80.3833 55.1848L80.4114 56.3446L92.081 56.0615L92.0528 54.9017L80.3833 55.1848Z","M79.8657 61.4412L79.6012 62.5339L90.9464 65.2807L91.2109 64.188L79.8657 61.4412Z","M77.7466 67.3337L77.2096 68.3182L87.4573 73.9077L87.9943 72.9233L77.7466 67.3337Z","M74.1807 72.4714L73.3984 73.2926L81.8502 81.344L82.6325 80.5228L74.1807 72.4714Z"].join(" ");function Ya({"aria-label":e,className:o,...t}){return Kr("svg",{"data-slot":"brand-wordmark",xmlns:"http://www.w3.org/2000/svg",width:"496",height:"113",viewBox:"0 0 496 113",fill:"none",focusable:"false",role:e?"img":void 0,"aria-hidden":e?void 0:!0,"aria-label":e,className:m("h-auto w-36 shrink-0 text-text-primary dark:text-white",o),...t,children:Kr("path",{d:ks,fill:"currentColor"})})}var Ue={};Ut(Ue,{Root:()=>Jr,Thumb:()=>en});import*as Me from"react";import*as Pt from"react";var Kt=Pt.createContext(void 0);function Xr(){let e=Pt.useContext(Kt);if(e===void 0)throw new Error(W(63));return e}var Rt={...yo,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}};import{jsx as qr,jsxs as Vs}from"react/jsx-runtime";var Jr=Me.forwardRef(function(o,t){let{checked:r,className:n,defaultChecked:l,"aria-labelledby":a,form:d,id:s,inputRef:c,name:i,nativeButton:u=!1,onCheckedChange:p,readOnly:h=!1,required:f=!1,disabled:b=!1,render:I,uncheckedValue:v,value:E,style:x,...D}=o,{clearErrors:B}=Mo(),{state:C,setTouched:L,setDirty:N,validityData:_,setFilled:z,setFocused:Y,validationMode:G,disabled:O,name:Q,validation:k}=Eo(),{labelId:ee}=Oo(),M=O||b,H=Q??i,g=Me.useRef(null),T=bo(g,c,k.inputRef),Z=Me.useRef(null),pe=Le(),te=Cr({id:s,implicit:!1,controlRef:Z}),ae=u?void 0:te,[y,oe]=Po({controlled:r,default:!!l,name:"Switch",state:"checked"});No(Z,pe,y,void 0,!M,i),X(()=>{g.current&&z(g.current.checked)},[z]),Do(y,()=>{B(H),N(y!==_.initialValue),z(y),k.change(y)});let{getButtonProps:re,buttonRef:jt}=ge({disabled:M,native:u}),ze=Io(a,ee,g,!u,ae),Ie={id:u?te:pe,role:"switch","aria-checked":y,"aria-readonly":h||void 0,"aria-required":f||void 0,"aria-labelledby":ze,onFocus(){M||Y(!0)},onBlur(){let U=g.current;!U||M||(L(!0),Y(!1),G==="onBlur"&&k.commit(U.checked))},onClick(U){if(h||M)return;U.preventDefault();let Ee=g.current;Ee&&wo(Ee,U)}},Se={...k.getValidationProps(M),checked:y,disabled:M,form:d,id:ae,name:H,required:f,style:H?Ro:rt,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:T,onChange(U){if(U.nativeEvent.defaultPrevented)return;if(h){U.preventDefault();return}let Ee=U.currentTarget.checked,Je=Ae(F.none,U.nativeEvent);p?.(Ee,Je),!Je.isCanceled&&oe(Ee)},onClick(U){U.stopPropagation()},onFocus(){Z.current?.focus()},...E!==void 0?{value:E}:tt},qe=Me.useMemo(()=>({...C,checked:y,disabled:M,readOnly:h,required:f}),[C,y,M,h,f]),De=R("span",o,{state:qe,ref:[t,Z,jt],props:[Ie,D,re,U=>k.getValidationProps(M,U)],stateAttributesMapping:Rt});return Vs(Kt.Provider,{value:qe,children:[De,!y&&H&&v!==void 0&&qr("input",{type:"hidden",form:d,name:H,value:v,disabled:M}),qr("input",{...Se,suppressHydrationWarning:!0})]})});import*as Qr from"react";var en=Qr.forwardRef(function(o,t){let{render:r,className:n,style:l,...a}=o,d=Xr();return R("span",o,{state:d,ref:t,stateAttributesMapping:Rt,props:a})});import{Fragment as As,jsx as Ct,jsxs as tn}from"react/jsx-runtime";function Xt({className:e,size:o="default",onLabel:t,offLabel:r,...n}){let l=t!=null||r!=null;return tn(Ue.Root,{"data-slot":"switch","data-size":o,"data-labeled":l?"true":void 0,className:m("peer group/switch inline-flex shrink-0 items-center border border-transparent shadow-xs transition-all outline-none focus-visible:border-focus focus-visible:ring-[3px] focus-visible:ring-focus/50 disabled:cursor-not-allowed disabled:opacity-50",l?"relative rounded-[0.625rem] p-0.5 data-[size=default]:h-6 data-[size=default]:w-[5.5rem] data-[size=default]:[--switch-thumb-travel:4.25rem] data-[size=sm]:h-5 data-[size=sm]:w-[5.5rem] data-[size=sm]:[--switch-thumb-travel:4.5rem] data-checked:bg-action data-unchecked:bg-control-border":"rounded-full data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-checked:bg-action data-unchecked:bg-control-border",e),...n,children:[l?tn(As,{children:[Ct("span",{"aria-hidden":"true","data-slot":"switch-on-label",className:"pointer-events-none absolute inset-y-0.5 left-0 flex w-1/2 translate-x-1 items-center justify-center overflow-hidden px-0.5 text-[0.5625rem] font-semibold leading-none tracking-[0.02em] text-action-foreground transition-[opacity,transform] group-data-checked/switch:opacity-100 group-data-unchecked/switch:opacity-0",children:t??"ON"}),Ct("span",{"aria-hidden":"true","data-slot":"switch-off-label",className:"pointer-events-none absolute inset-y-0.5 right-0 flex w-1/2 -translate-x-1 items-center justify-center overflow-hidden px-0.5 text-[0.5625rem] font-semibold leading-none tracking-[0.02em] text-text-supporting transition-[opacity,transform] group-data-checked/switch:opacity-0 group-data-unchecked/switch:opacity-100",children:r??"OFF"})]}):null,Ct(Ue.Thumb,{"data-slot":"switch-thumb",className:m("pointer-events-none block rounded-full bg-canvas transition-transform",l?"absolute top-1/2 left-0.5 z-10 -translate-y-1/2 data-checked:translate-x-[var(--switch-thumb-travel)] data-unchecked:translate-x-0 group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3":"group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-checked:translate-x-[calc(100%-2px)] data-unchecked:translate-x-0")})]})}function Ii({onLabel:e="ON",offLabel:o="OFF",...t}){return Ct(Xt,{...t,onLabel:e,offLabel:o})}import{jsx as Fs}from"react/jsx-runtime";function on({className:e,...o}){return Fs("textarea",{"data-slot":"textarea",className:m("ds-type-control min-h-28 w-full rounded-[var(--ds-field-control-radius)] border border-control-border bg-surface-control px-[var(--ds-field-control-padding-x)] py-3 outline-none transition-colors placeholder:text-text-supporting focus-visible:border-focus focus-visible:ring-[3px] focus-visible:ring-focus/50 aria-invalid:border-danger aria-invalid:ring-danger/20 dark:aria-invalid:ring-danger/40 disabled:cursor-not-allowed disabled:opacity-50",e),...o})}import{jsx as qt,jsxs as Bs}from"react/jsx-runtime";var $i=ot,Yi=Ve,Ki=Br,Xi=zr,qi=Zr;function Ji({actionRight:e,className:o,children:t,...r}){return e?Bs($t,{className:m("grid grid-cols-[minmax(0,1fr)_auto] items-start gap-4",o),...r,children:[qt("div",{className:"grid gap-2",children:t}),qt("div",{className:"justify-self-end",children:e})]}):qt($t,{className:o,...r,children:t})}var Qi=_r,ec=Hr,tc=Fo,oc=Dr,rc=Xt,nc=on,sc=ut,ac=gt,ic=pt,cc=ht,lc=ft,dc=mt,uc=Bo,pc=Zo,mc=jo,fc=_o,gc=Ho,hc=zo;import{jsx as We}from"react/jsx-runtime";function Pc({className:e,...o}){return We("div",{"data-slot":"field",className:m("grid gap-[var(--ds-field-label-gap)]",e),...o})}function Rc({className:e,...o}){return We("div",{"data-slot":"field-group",className:m("grid gap-[var(--ds-field-gap)]",e),...o})}function Cc({className:e,...o}){return We("label",{"data-slot":"field-label",className:m("ds-type-label text-text-primary",e),...o})}function Lc({className:e,...o}){return We("p",{"data-slot":"field-description",className:m("ds-type-metadata mt-[var(--ds-field-message-gap)] text-text-supporting",e),...o})}function Tc({className:e,...o}){return We("p",{"data-slot":"field-error",className:m("ds-type-metadata mt-[var(--ds-field-message-gap)] font-medium text-danger-foreground",e),...o})}import{XIcon as _s}from"lucide-react";import{jsx as Lt,jsxs as Zs}from"react/jsx-runtime";function Mc({className:e,label:o,onRemove:t,removeLabel:r,value:n,...l}){let a=typeof o=="string"?`Remove ${o} filter`:"Remove filter";return Zs("div",{"data-slot":"filter-chip",className:m("inline-flex min-w-0 max-w-full items-center gap-1 rounded-full border border-border-default bg-surface-muted px-2 py-1 text-sm text-text-primary",e),...l,children:[Lt("span",{className:"shrink-0 text-text-supporting",children:o}),n!==void 0?Lt("span",{className:"min-w-0 truncate font-medium",children:n}):null,t?Lt(Ve,{type:"button",size:"sm",variant:"ghost","aria-label":r??a,onClick:t,className:"-mr-1 size-6 rounded-full text-text-supporting hover:bg-surface-control-hover hover:text-text-primary",children:Lt(_s,{"aria-hidden":"true",className:"size-3"})}):null]})}import*as nn from"react";import{jsx as _e,jsxs as js}from"react/jsx-runtime";var Jt="__conscia_empty_select_value__";function rn(e){if(e!==void 0)return e===""?Jt:e}function zs(e){return e===Jt?"":e}function Hs({name:e,id:o,value:t,defaultValue:r,required:n,disabled:l,modal:a,placeholder:d,options:s,className:c,triggerClassName:i,contentClassName:u,onValueChange:p,onClick:h,"aria-label":f}){let[b,I]=nn.useState(r??""),v=t??b;function E(x){let D=zs(x);t===void 0&&I(D),p?.(D)}return _e("div",{className:m("min-w-0",c),onClick:h,children:js(ut,{name:e,value:rn(v),required:n,disabled:l,modal:a,onValueChange:E,children:[_e(ft,{id:o,"aria-label":f,className:i,children:_e(mt,{placeholder:d})}),_e(gt,{className:u,children:_e(pt,{children:s.map(x=>_e(ht,{value:rn(x.value)??Jt,disabled:x.disabled,children:x.label},x.value))})})]})})}var Vc=Hs;import{jsx as Gs}from"react/jsx-runtime";function _c({className:e,...o}){return Gs("label",{"data-slot":"label",className:m("ds-type-label flex items-center gap-2 text-text-primary select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...o})}import{LoaderCircle as Us}from"lucide-react";import{jsx as sn}from"react/jsx-runtime";function an({"aria-label":e,className:o,label:t,size:r="default",...n}){let l=e??t;return sn("span",{"data-slot":"spinner","data-size":r,className:m("inline-flex shrink-0 animate-spin items-center justify-center text-current motion-reduce:animate-none data-[size=default]:size-4 data-[size=lg]:size-5 data-[size=sm]:size-3.5",o),role:l?"status":void 0,"aria-hidden":l?void 0:!0,"aria-label":l,...n,children:sn(Us,{"aria-hidden":"true",className:"size-full"})})}import{Fragment as Ws,jsx as cn,jsxs as $s}from"react/jsx-runtime";function Yc({children:e,pending:o=!1,pendingLabel:t="Working\u2026",disabled:r,...n}){return cn(ot,{...n,disabled:r||o,"aria-busy":o||void 0,children:o?$s(Ws,{children:[cn(an,{"aria-hidden":"true",size:"sm"}),t]}):e})}var de={};Ut(de,{Arrow:()=>Nn,Backdrop:()=>On,Close:()=>Fn,Description:()=>Vn,Handle:()=>Ke,Popup:()=>Sn,Portal:()=>Pn,Positioner:()=>Cn,Root:()=>gn,Title:()=>Dn,Trigger:()=>hn,Viewport:()=>_n,createHandle:()=>Zn});import*as Ye from"react";import*as Tt from"react";var Qt=Tt.createContext(void 0);function V(e){let o=Tt.useContext(Qt);if(o===void 0&&!e)throw new Error(W(47));return o}import*as yt from"react";import*as ln from"react-dom";var dn={...hr,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},wt=class extends st{constructor(t,r,n){let l=new Wt;super(pn(t,l,r,n),mn(l),dn);ie(this,"setOpen",(t,r)=>{let n=r.reason===F.triggerHover,l=r.reason===F.triggerPress&&r.event.detail===0,a=!t&&(r.reason===F.escapeKey||r.reason==null),d=cr(r),s=this.select("activeTriggerId");if(!t&&r.reason===F.closePress&&r.trigger==null&&s!=null&&(r.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(t,r),r.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,r);let c=()=>{let u={open:t,openChangeReason:r.reason};ir(u,t,r.trigger,d()),this.update(u)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),ln.flushSync(c)):c();let i;l?i="click":a?i="dismiss":r.reason===F.focusOut&&(i="focus"),this.set("instantType",i)})}};function un(){let e=new Wt,o=new Ir(Object.freeze(pn(void 0,e)),Object.freeze(mn(e)),dn);return Object.assign(o,{setOpen:et})}function pn(e,o,t,r=!1){let n={...fr(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return n.open&&e?.mounted===void 0&&(n.mounted=!0),n.floatingRootContext=gr(o,t,r),n}function mn(e){return{popupRef:yt.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:yt.createRef(),beforeContentFocusGuardRef:yt.createRef(),stickIfOpenTimeout:new je,triggerElements:e}}import{jsx as $e,jsxs as Ys}from"react/jsx-runtime";function fn({props:e}){let{children:o,open:t,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:l,modal:a=!1,handle:d,triggerId:s,defaultTriggerId:c=null}=e,i=Ks(d,{modal:a,open:r,openProp:t,activeTriggerId:c,triggerIdProp:s});i.useControlledProp("openProp",t),i.useControlledProp("triggerIdProp",s);let u=i.useState("open"),p=i.useState("mounted"),h=i.useState("payload");i.useContextCallback("onOpenChange",n),i.useContextCallback("onOpenChangeComplete",l),mr(i,u),dr(i);let{forceUnmount:f}=ur(u,i,()=>{i.update({stickIfOpen:!0,openChangeReason:null})});i.useSyncedValues({modal:a}),Ye.useEffect(()=>{u||i.context.stickIfOpenTimeout.clear()},[i,u]),Ye.useImperativeHandle(e.actionsRef,()=>({unmount:f,close:()=>i.setOpen(!1,Ae(F.imperativeAction))}),[f,i]);let b=u||p;return Ys(Qt.Provider,{value:i,children:[d&&$e(ar,{handle:d,store:i}),b&&$e(Xs,{store:i,modal:a}),typeof o=="function"?o({payload:h}):o]})}function gn(e){return V(!0)?$e(fn,{props:e}):$e(Jo,{children:$e(fn,{props:e})})}function Ks(e,o){let t=sr((r,n)=>new wt(o,r,n));return Ye.useEffect(()=>t.context.stickIfOpenTimeout.disposeEffect(),[t]),t}function Xs({store:e,modal:o}){let t=e.useState("floatingRootContext"),r=tr(t,{outsidePressEvent:{mouse:o==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference,l=r.floating;return pr(e,{activeTriggerProps:n,inactiveTriggerProps:n,popupProps:l}),null}import*as Oe from"react";import{jsx as eo,jsxs as qs}from"react/jsx-runtime";var hn=Oe.forwardRef(function(o,t){let{render:r,className:n,style:l,disabled:a=!1,nativeButton:d=!0,handle:s,payload:c,openOnHover:i=!1,delay:u=300,closeDelay:p=0,id:h,...f}=o,b=V(!0),v=vr(s)??b;if(!v)throw new Error(W(74));let E=Le(h),x=v.useState("isTriggerActive",E),D=v.useState("floatingRootContext"),B=v.useState("isOpenedByTrigger",E),C=v.useState("triggerPopupId",E),L=Oe.useRef(null),{registerTrigger:N,isMountedByThisTrigger:_}=lr(E,L,v,{payload:c,disabled:a,openOnHover:i,closeDelay:p}),z=v.useState("openChangeReason"),Y=v.useState("stickIfOpen"),G=v.useState("openMethod"),O=v.useState("focusManagerModal"),Q=Pr(D,{enabled:!a&&i&&(G!=="touch"||z!==F.triggerPress),mouseOnly:!0,move:!1,handleClose:Rr(),restMs:u,delay:{close:p},triggerElementRef:L,isActiveTrigger:x,isClosing:()=>v.select("transitionStatus")==="ending"}),k=er(D,{stickIfOpen:Y}),ee=Lr(()=>v.select("open"),re=>{v.set("openMethod",re)}),M=v.useState("triggerProps",_),{getButtonProps:H,buttonRef:g}=ge({disabled:a,native:d}),T={open(re){return re&&z===F.triggerPress?yr.open(re):Tr.open(re)}},{preFocusGuardRef:Z,handlePreFocusGuardFocus:pe,handleFocusTargetFocus:te}=jr(v,L),y=R("button",o,{state:{disabled:a,open:B},ref:[g,t,N,L],props:[k.reference,Q,M,ee,{[Wo]:"",id:E,"aria-haspopup":"dialog","aria-expanded":B,"aria-controls":C},f,H],stateAttributesMapping:T}),oe=eo(Oe.Fragment,{children:y},E);return _&&!O?qs(Oe.Fragment,{children:[eo(Ge,{ref:Z,onFocus:pe}),oe,eo(Ge,{ref:v.context.triggerFocusTargetRef,onFocus:te})]}):oe});import*as bn from"react";import*as St from"react";var to=St.createContext(void 0);function vn(){let e=St.useContext(to);if(e===void 0)throw new Error(W(45));return e}import{jsx as xn}from"react/jsx-runtime";var Pn=bn.forwardRef(function(o,t){let{keepMounted:r=!1,...n}=o;return V().useState("mounted")||r?xn(to.Provider,{value:r,children:xn(Ko,{ref:t,...n})}):null});import*as Nt from"react";import*as Et from"react";var oo=Et.createContext(void 0);function Ze(){let e=Et.useContext(oo);if(!e)throw new Error(W(46));return e}import{jsx as Rn,jsxs as Js}from"react/jsx-runtime";var Cn=Nt.forwardRef(function(o,t){let{render:r,className:n,style:l,anchor:a,positionMethod:d,side:s,align:c,sideOffset:i,alignOffset:u,collisionBoundary:p="clipping-ancestors",collisionPadding:h,arrowPadding:f,sticky:b,disableAnchorTracking:I=!1,collisionAvoidance:v=at,...E}=o,x=V(),D=vn(),B=Xo(),C=x.useState("floatingRootContext"),L=x.useState("mounted"),N=x.useState("open"),_=x.useState("openChangeReason"),z=x.useState("activeTriggerElement"),Y=x.useState("modal"),G=x.useState("openMethod"),O=x.useState("positionerElement"),Q=x.useState("instantType"),k=x.useState("transitionStatus"),ee=x.useState("adaptiveOrigin"),M=Nt.useRef(null),H=Vo(O),g=lt({anchor:a,floatingRootContext:C,positionMethod:d,mounted:L,side:s,sideOffset:i,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:b,disableAnchorTracking:I,keepMounted:D,nodeId:B,collisionAvoidance:v,adaptiveOrigin:ee}),T=C.useState("domReferenceElement");X(()=>{let y=T,oe=M.current;if(y&&(M.current=y),oe&&y&&y!==oe){x.set("instantType",void 0);let re=new AbortController;return H(()=>{x.set("instantType","trigger-change")},re.signal),()=>{re.abort()}}},[T,H,x]);let Z=Y===!0&&_!==F.triggerHover;Nr(N&&Z,G==="touch",O,z);let pe=x.useStateSetter("positionerElement"),te={open:N,side:g.side,align:g.align,anchorHidden:g.anchorHidden,instant:Q},ae=dt(o,te,{styles:g.positionerStyles,transitionStatus:k,props:E,refs:[t,pe],hidden:!L,inert:!N});return Js(oo.Provider,{value:g,children:[L&&Z&&Rn(Sr,{inert:ct(!N),cutout:z}),Rn(qo,{id:B,children:ae})]})});import*as wn from"react";import*as ye from"react";var ro=ye.createContext(void 0);function Ln(){let[e,o]=ye.useState(0),t=He(()=>(o(n=>n+1),()=>{o(n=>Math.max(0,n-1))}));return{context:ye.useMemo(()=>({register:t}),[t]),hasClosePart:e>0}}function Tn(){let e=ye.useContext(ro);X(()=>e?.register(),[e])}import{jsx as yn}from"react/jsx-runtime";var Sn=wn.forwardRef(function(o,t){let{render:r,className:n,style:l,initialFocus:a,finalFocus:d,...s}=o,c=V(),i=Ze(),u=Mr(!0)!=null,{context:p,hasClosePart:h}=Ln(),f=c.useState("open"),b=c.useState("openMethod"),I=c.useState("instantType"),v=c.useState("transitionStatus"),E=c.useState("popupProps"),x=c.useState("titleElementId"),D=c.useState("descriptionElementId"),B=c.useState("modal"),C=c.useState("mounted"),L=c.useState("openChangeReason"),N=c.useState("activeTriggerElement"),_=c.useState("floatingRootContext"),z=_.useState("floatingId"),Y=c.useState("disabled"),G=c.useState("openOnHover"),O=c.useState("closeDelay");nt({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),br(_,{enabled:G&&!Y,closeDelay:O});let Q=a===void 0?nr(c.context.popupRef):a,k=B!==!1&&h;c.useSyncedValue("focusManagerModal",k);let ee=c.useStateSetter("popupElement"),M={open:f,side:i.side,align:i.align,instant:I,transitionStatus:v},H=R("div",o,{state:M,ref:[t,c.context.popupRef,ee],props:[E,{id:z,role:"dialog",...rr,"aria-labelledby":x,"aria-describedby":D,onKeyDown(g){u&&Or.has(g.key)&&g.stopPropagation()}},Er(v),s],stateAttributesMapping:it});return yn(Qo,{context:_,openInteractionType:b,modal:k,disabled:!C||L===F.triggerHover,initialFocus:Q,returnFocus:d,restoreFocus:"popup",previousFocusableElement:To(N)?N:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:yn(ro.Provider,{value:p,children:H})})});import*as En from"react";var Nn=En.forwardRef(function(o,t){let{render:r,className:n,style:l,...a}=o,s=V().useState("open"),{arrowRef:c,side:i,align:u,arrowUncentered:p,arrowStyles:h}=Ze();return R("div",o,{state:{open:s,side:i,align:u,uncentered:p},ref:[t,c],props:[{style:h,"aria-hidden":!0},a],stateAttributesMapping:wr})});import*as Mn from"react";var On=Mn.forwardRef(function(o,t){let{render:r,className:n,style:l,...a}=o,d=V(),s=d.useState("open"),c=d.useState("mounted"),i=d.useState("transitionStatus"),u=d.useState("openChangeReason");return R("div",o,{state:{open:s,transitionStatus:i},ref:t,props:[{role:"presentation",hidden:!c,style:{pointerEvents:u===F.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:it})});import*as In from"react";var Dn=In.forwardRef(function(o,t){let{render:r,className:n,style:l,...a}=o,d=V(),s=Le(a.id);return d.useSyncedValueWithCleanup("titleElementId",s),R("h2",o,{ref:t,props:[{id:s},a]})});import*as kn from"react";var Vn=kn.forwardRef(function(o,t){let{render:r,className:n,style:l,...a}=o,d=V(),s=Le(a.id);return d.useSyncedValueWithCleanup("descriptionElementId",s),R("p",o,{ref:t,props:[{id:s},a]})});import*as An from"react";var Fn=An.forwardRef(function(o,t){let{render:r,className:n,style:l,disabled:a=!1,nativeButton:d=!0,...s}=o,{buttonRef:c,getButtonProps:i}=ge({disabled:a,focusableWhenDisabled:!1,native:d}),u=V();return Tn(),R("button",o,{ref:[t,c],props:[{onClick(h){u.setOpen(!1,Ae(F.closePress,h.nativeEvent))}},s,i]})});import*as Bn from"react";var _n=Bn.forwardRef(function(o,t){let{render:r,className:n,style:l,children:a,...d}=o,s=V(),{side:c}=Ze(),i=s.useState("instantType"),{children:u,state:p}=Fr({store:s,side:c,children:a}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:i};return R("div",o,{state:h,ref:t,props:[d,{children:u}],stateAttributesMapping:Ar})});var Ke=class extends or{constructor(){super(un(),"Popover")}open(o){this.openByTrigger(o)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Zn(){return new Ke}import{jsx as fe}from"react/jsx-runtime";function gu({...e}){return fe(de.Root,{"data-slot":"popover",...e})}function hu({...e}){return fe(de.Trigger,{"data-slot":"popover-trigger",...e})}function Qs({...e}){return fe(de.Portal,{"data-slot":"popover-portal",...e})}function ea({className:e,...o}){return fe(de.Positioner,{"data-slot":"popover-positioner",className:m(Be.popup,e),...o})}function vu({className:e,children:o,...t}){return fe(Qs,{children:fe(ea,{children:fe(de.Popup,{"data-slot":"popover-content",className:m("w-72 rounded-md border bg-surface-floating p-4 text-text-primary shadow-[var(--ds-shadow-floating)] outline-none data-open:animate-in data-closed:animate-out",e),...t,children:o})})})}function xu({...e}){return fe(de.Arrow,{"data-slot":"popover-arrow",...e})}function bu({className:e,...o}){return fe(de.Title,{"data-slot":"popover-title",className:m("font-semibold",e),...o})}function Pu({className:e,...o}){return fe(de.Description,{"data-slot":"popover-description",className:m("text-sm text-text-supporting",e),...o})}function Ru({...e}){return fe(de.Close,{"data-slot":"popover-close",...e})}import*as Ce from"react";import{Check as ta,ChevronsUpDown as oa,X as ra}from"lucide-react";import{jsx as q,jsxs as Xe}from"react/jsx-runtime";function Nu({id:e,name:o,value:t="",options:r,onValueChange:n,placeholder:l="Select an option",searchPlaceholder:a="Search...",emptyMessage:d="No matching options.",disabled:s=!1,clearable:c=!1,clearLabel:i="Clear selection",optionsLabel:u,className:p,modal:h=!1,"aria-label":f}){let b=r.find(C=>C.value===t)??null,I=Ce.useMemo(()=>r.map(C=>C.value),[r]),[v,E]=Ce.useState(!1),[x,D]=Ce.useState(b?.label??""),B=Ce.useRef(null);return Ce.useLayoutEffect(()=>{!v&&B.current&&(B.current.value=b?.label??"")},[v,b?.label]),q("div",{"data-slot":"searchable-select",className:m("relative min-w-0",p),children:Xe(le.Root,{items:I,autoHighlight:!0,modal:h,open:v,onOpenChange:C=>{E(C),C||D(b?.label??"")},value:t,inputValue:v?x:b?.label??"",onInputValueChange:D,onValueChange:C=>{let L=r.find(N=>N.value===C);D(L?.label??""),n(C??"")},itemToStringLabel:C=>r.find(L=>L.value===C)?.label??"",itemToStringValue:C=>C??"",name:o,disabled:s,children:[Xe(le.InputGroup,{className:"relative flex items-center",children:[q(le.Input,{ref:B,id:e,"aria-label":f,placeholder:a,onKeyDown:C=>{if(C.key==="Enter"&&v){let N=r.filter(_=>!_.disabled&&_.label.toLowerCase().includes(x.toLowerCase())).at(-1);N&&N.value!==t&&(C.preventDefault(),E(!1),n(N.value))}},className:"ds-type-control h-[var(--ds-field-control-height)] w-full rounded-[var(--ds-field-control-radius)] border border-control-border bg-surface-control px-3 pr-16 outline-none focus-visible:border-focus focus-visible:ring-[3px] focus-visible:ring-focus/50 disabled:cursor-not-allowed disabled:opacity-50"}),c&&b?q(Ve,{type:"button",size:"sm",variant:"ghost","aria-label":i,onClick:()=>n(""),className:"absolute right-7",children:q(ra,{className:"size-4"})}):null,q(le.Trigger,{"aria-label":f??l,className:"absolute right-1 inline-flex size-8 items-center justify-center rounded-sm text-text-supporting outline-none focus-visible:ring-2 focus-visible:ring-focus",children:q(oa,{className:"size-4"})})]}),q(le.Portal,{children:q(le.Positioner,{"data-slot":"searchable-select-positioner",className:m(Be.popup,"w-[var(--anchor-width)]"),children:Xe(le.Popup,{className:"mt-1 max-h-72 overflow-auto rounded-md border bg-surface-floating p-1 text-text-primary shadow-[var(--ds-shadow-floating)] outline-none",children:[q(le.Empty,{className:"px-2 py-3 text-sm text-text-supporting",children:d}),q(le.List,{"aria-label":u??"Options",children:C=>{let L=r.find(N=>N.value===C);return L?Xe(le.Item,{value:L.value,disabled:L.disabled,className:"ds-type-menu-item data-highlighted:bg-surface-muted relative flex cursor-default items-start gap-2 rounded-sm px-2 py-2 pr-8 outline-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[q("span",{className:"mt-0.5 flex size-4 shrink-0 items-center justify-center",children:q(le.ItemIndicator,{children:q(ta,{className:"size-4"})})}),Xe("span",{className:"min-w-0",children:[q("span",{className:"block truncate text-sm",children:L.label}),L.description?q("span",{className:"block truncate text-xs text-text-supporting",children:L.description}):null]})]},L.value):null}})]})})})]})})}import*as fs from"react";var se={};Ut(se,{Action:()=>ns,Arrow:()=>ds,Close:()=>os,Content:()=>Kn,Description:()=>Qn,Portal:()=>as,Positioner:()=>cs,Provider:()=>jn,Root:()=>Yn,Title:()=>ts,Viewport:()=>Gn,createToastManager:()=>ms,useToastManager:()=>ps});import*as Hn from"react";import*as Mt from"react";var no=Mt.createContext(void 0);function xe(){let e=Mt.useContext(no);if(!e)throw new Error(W(73));return e}var zn=0;function Ot(e){return zn+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${zn}`}function It(e,o){if(typeof e=="string")return{description:e};if(typeof e=="function"){let t=e(o);return typeof t=="string"?{description:t}:t}return e}function so(e){let o=new Map,t=0,r=0;return e.forEach((n,l)=>{let a=n.transitionStatus==="ending";o.set(n.id,{value:n,domIndex:l,visibleIndex:a?-1:t,offsetY:r}),r+=n.height||0,a||(t+=1)}),o}function ao(e,o){let t=0;return e.map(r=>{if(r.transitionStatus==="ending")return r;let n=t>=o;return t+=1,r.limited===n?r:{...r,limited:n}})}var be={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,o)=>e.toastMetadata.get(o)?.value,toastIndex:(e,o)=>e.toastMetadata.get(o)?.domIndex??-1,toastOffsetY:(e,o)=>e.toastMetadata.get(o)?.offsetY??0,toastVisibleIndex:(e,o)=>e.toastMetadata.get(o)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},Dt=class extends st{constructor(t){super({...t,toastMetadata:so(t.toasts)},{},be);ie(this,"timers",new Map);ie(this,"areTimersPaused",!1);ie(this,"setViewport",t=>{this.set("viewport",t)});ie(this,"disposeEffect",()=>()=>{this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear()});ie(this,"addToast",t=>{let{timeout:r,limit:n}=this.state,l=t.id||Ot("toast");if(t.id){let c=be.toast(this.state,t.id);if(c)if(c.transitionStatus==="ending")this.removeToast(t.id,!0);else{let{id:i,transitionStatus:u,...p}=t;return this.updateToastInternal(t.id,p,!0,!0),t.id}}let a={...t,id:l,updateKey:0,transitionStatus:"starting"},d=[a,...this.state.toasts];this.setToasts(ao(d,n));let s=a.timeout??r;return a.type!=="loading"&&s>0&&this.scheduleTimer(l,s,()=>this.closeToast(l)),be.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),l});ie(this,"updateToast",(t,r)=>{this.updateToastInternal(t,r,!1,!0)});ie(this,"updateToastInternal",(t,r,n=!1,l=!1)=>{let{timeout:a,toasts:d}=this.state,s=be.toast(this.state,t);if(!s||s.transitionStatus==="ending")return;let c={...s,...r,...l&&{updateKey:s.updateKey+1}};this.setToasts(d.map(v=>v.id===t?c:v));let i=c.timeout??a,u=s.timeout??a,p=Object.hasOwn(r,"timeout"),h=c.transitionStatus!=="ending"&&c.type!=="loading"&&i>0,f=this.timers.has(t),b=u!==i,I=s.type==="loading";if(!h&&f){this.clearTimer(t);return}h&&(!f||b||p||I||n)&&(this.clearTimer(t),this.scheduleTimer(t,i,()=>this.closeToast(t)),be.expandedOrOutOfFocus(this.state)&&this.pauseTimers())});ie(this,"closeToast",t=>{let r=t===void 0,{limit:n,toasts:l}=this.state,a;if(r)a=l,this.clearTimers();else{let c=be.toast(this.state,t);if(!c)return;a=[c],this.clearTimer(t)}let d=l.map(c=>r||c.id===t?{...c,transitionStatus:"ending",height:0}:c),s=ao(d,n);this.setToasts(s,!s.some(c=>c.transitionStatus!=="ending")),a.forEach(c=>{c.transitionStatus!=="ending"&&c.onClose?.()}),this.handleFocusManagement(t)});ie(this,"promiseToast",(t,r)=>{let n=It(r.loading),l=this.addToast({...n,type:"loading"}),a=t.then(d=>{let s=It(r.success,d);return this.updateToast(l,{...s,type:"success",timeout:s.timeout}),d}).catch(d=>{let s=It(r.error,d);return this.updateToast(l,{...s,type:"error",timeout:s.timeout}),Promise.reject(d)});return{}.hasOwnProperty.call(r,"setPromise")&&r.setPromise(a),a});ie(this,"handleDocumentPointerDown",t=>{if(t.pointerType!=="touch")return;let r=he(t);Re(this.state.viewport,r)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))})}syncProviderProps(t,r){let n=this.state.limit!==r;if(this.state.timeout===t&&!n)return;let l={timeout:t,limit:r};if(n){let a=ao(this.state.toasts,r);l.toasts=a,l.toastMetadata=so(a)}this.update(l)}removeToast(t,r=!1){let n=be.toastIndex(this.state,t);if(n===-1)return;let l=this.state.toasts[n];r||l?.onRemove?.();let a=[...this.state.toasts];a.splice(n,1),this.setToasts(a)}pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(t=>{t.timeout&&(t.timeout.clear(),t.remaining=Math.max(t.remaining-(Date.now()-t.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((t,r)=>{t.remaining=t.remaining>0?t.remaining:t.delay,t.timeout??(t.timeout=je.create()),t.timeout.start(t.remaining,()=>{this.handleTimerFired(r),t.callback()}),t.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}scheduleTimer(t,r,n){let l=Date.now(),d=!be.expandedOrOutOfFocus(this.state)?je.create():void 0;d?.start(r,()=>{this.handleTimerFired(t),n()}),this.timers.set(t,{timeout:d,start:l,delay:r,remaining:r,callback:n})}clearTimers(){this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(t){this.timers.get(t)?.timeout?.clear(),this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(t){this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(t,r=t.length===0){let n={toasts:t,toastMetadata:so(t)};r&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(t){let r=Te(Pe(this.state.viewport));if(!this.state.viewport||!Re(this.state.viewport,r)||!Fe(r))return;if(t===void 0){this.restoreFocusToPrevElement();return}let n=be.toasts(this.state),l=be.toastIndex(this.state,t),a=(s,c)=>{for(let i=s;i>=0&&i<n.length;i+=c)if(n[i].transitionStatus!=="ending")return n[i];return null},d=a(l+1,1)??a(l-1,-1);d?d.ref?.current?.focus():this.restoreFocusToPrevElement()}};import{jsx as na,jsxs as sa}from"react/jsx-runtime";var jn=function(o){let{children:t,timeout:r=5e3,limit:n=3,toastManager:l}=o,a=xo(()=>new Dt({timeout:r,limit:n,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return ko(a.disposeEffect),Hn.useEffect(function(){return l?l[" subscribe"](({action:c,options:i})=>{let u=i.id;c==="promise"&&i.promise?a.promiseToast(i.promise,i):c==="update"&&u?a.updateToast(u,i):c==="close"?a.closeToast(u):a.addToast(i)}):void 0},[a,l]),sa(no.Provider,{value:a,children:[na(aa,{store:a,timeout:r,limit:n}),t]})};function aa(e){let{store:o,timeout:t,limit:r}=e;return X(()=>{o.syncProviderProps(t,r)},[o,t,r]),null}import*as ue from"react";import{jsx as kt,jsxs as io}from"react/jsx-runtime";var Gn=ue.forwardRef(function(o,t){let{render:r,className:n,style:l,children:a,...d}=o,s=xe(),c=Uo(),i=ue.useRef(!1),u=ue.useRef(!1),p=ue.useRef(!1),h=s.useState("isEmpty"),f=s.useState("toasts"),b=s.useState("focused"),I=s.useState("expanded"),v=s.useState("prevFocusElement"),E=f[0]?.height,x=f.some(g=>g.transitionStatus==="ending"),D=f.filter(g=>g.priority==="high");ue.useEffect(()=>{let g=s.state.viewport;if(!g||h)return;let T=Co(g),Z=Pe(g);function pe(y){y.key==="F6"&&he(y)!==g&&(y.preventDefault(),s.set("prevFocusElement",Te(Z)),g?.focus({preventScroll:!0}),s.pauseTimers(),s.set("focused",!0))}function te(y){he(y)===T&&(s.set("isWindowFocused",!1),s.pauseTimers())}function ae(y){if(y.relatedTarget)return;let oe=he(y),re=Te(Pe(g));(oe===T||!Re(g,oe)||!Fe(re))&&s.resumeTimers(),c.start(0,()=>s.set("isWindowFocused",!0))}return Go(Ne(T,"keydown",pe),Ne(T,"blur",te,!0),Ne(T,"focus",ae,!0),Ne(Z,"pointerdown",s.handleDocumentPointerDown,!0))},[s,c,h]);function B(g){i.current=!0;let T=g.relatedTarget===s.state.viewport?f.find(Z=>Z.transitionStatus!=="ending"&&!Z.limited):void 0;T?T.ref?.current?.focus():s.restoreFocusToPrevElement()}function C(g){g.key==="Tab"&&g.shiftKey&&he(g.nativeEvent)===s.state.viewport&&(g.preventDefault(),s.restoreFocusToPrevElement())}function L(){s.state.toasts.some(T=>T.transitionStatus==="ending")||p.current||!u.current||(s.state.isWindowFocused&&s.resumeTimers(),s.set("hovering",!1),u.current=!1)}ue.useEffect(L,[x,s]);function N(){s.pauseTimers(),s.set("hovering",!0),u.current=!1}function _(){s.state.isWindowFocused&&s.resumeTimers()}function z(){u.current=!0,L()}function Y(g){g.pointerType==="touch"&&(p.current=!0)}function G(g){g.pointerType==="touch"&&(p.current=!1,L())}function O(){if(i.current){i.current=!1;return}b||Fe(Te(Pe(s.state.viewport)))&&(s.set("focused",!0),s.pauseTimers())}function Q(g){!b||Re(s.state.viewport,g.relatedTarget)||(s.set("focused",!1),_())}let k={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:N,onMouseMove:N,onMouseLeave:z,onFocus:O,onBlur:Q,onKeyDown:C,onClick:O,onPointerDown:Y,onPointerUp:G,onPointerCancel:G,style:{"--toast-frontmost-height":E?`${E}px`:void 0}},ee={expanded:I},M=!h&&v&&kt(Ge,{onFocus:B}),H=R("div",o,{ref:[t,s.setViewport],state:ee,props:[k,d,{children:io(ue.Fragment,{children:[M,a,M]})}]});return io(ue.Fragment,{children:[M,H,!b&&D.length>0&&kt("div",{style:rt,children:D.map(g=>io("div",{role:"alert","aria-atomic":!0,children:[kt("div",{children:g.title}),kt("div",{children:g.description})]},g.id))})]})});import*as S from"react";import*as $n from"react-dom";import*as Vt from"react";var co=Vt.createContext(void 0);function we(){let e=Vt.useContext(co);if(!e)throw new Error(W(66));return e}import{jsx as ia}from"react/jsx-runtime";var ca={...Ao,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Un=40,la=10,Wn=.5,da=1,ua=`${$o},${Yo}`,Yn=S.forwardRef(function(o,t){let{toast:r,render:n,className:l,swipeDirection:a=["down","right"],style:d,...s}=o,c=r.positionerProps?.anchor!==void 0,i=[];c||(i=Array.isArray(a)?a:[a]);let u=i.length>0,p=xe(),[h,f]=S.useState(void 0),[b,I]=S.useState(!1),[v,E]=S.useState(!1),[x,D]=S.useState({x:0,y:0}),[B,C]=S.useState({x:0,y:0,scale:1}),[L,N]=S.useState(),[_,z]=S.useState(),[Y,G]=S.useState(null),O=S.useRef(null),Q=S.useRef(void 0),k=S.useRef({x:0,y:0}),ee=S.useRef({x:0,y:0,scale:1}),M=S.useRef(void 0),H=S.useRef(0),g=S.useRef(!1),T=S.useRef({x:0,y:0}),Z=S.useRef(!1),pe=S.useRef({x:0,y:0}),te=S.useRef(null),ae=S.useRef(null),y=p.useState("toastIndex",r.id),oe=p.useState("toastVisibleIndex",r.id),re=p.useState("toastOffsetY",r.id),jt=p.useState("focused"),ze=p.useState("expanded");nt({open:r.transitionStatus!=="ending",ref:O,onComplete(){r.transitionStatus==="ending"&&p.removeToast(r.id)}});let Ie=He((P=!1)=>{let w=O.current;if(!w)return;let j=w.style.height;w.style.height="auto";let ce=w.offsetHeight;w.style.height=j;function ne(){p.updateToastInternal(r.id,{ref:O,height:ce,transitionStatus:void 0})}P?$n.flushSync(ne):ne()});X(()=>{let P=Q.current;r.transitionStatus!=="starting"&&P===r.id||(P!==void 0&&(f(void 0),C({x:0,y:0,scale:1}),Se({x:0,y:0})),Q.current=r.id,Ie())},[Ie,r.id,r.transitionStatus]);function Se(P){pe.current=P,D(P)}X(()=>()=>{ae.current?.abort()},[]);function qe(P,w){let j=A=>A>0?A**Wn:-(Math.abs(A)**Wn),ce=P>0&&!i.includes("right")||P<0&&!i.includes("left"),ne=w>0&&!i.includes("down")||w<0&&!i.includes("up");return{x:ce?j(P):P,y:ne?j(w):w}}let De=He(P=>{if(P.pointerId!==te.current)return;te.current=null,ae.current?.abort(),ae.current=null,I(!1),E(!1),G(null);let w=ee.current;if(P.type==="pointercancel"||g.current){Se({x:w.x,y:w.y}),f(void 0);return}let j=pe.current,ce=j.x-w.x,ne=j.y-w.y,A;for(let K of i)if(vt(K,ce,ne)>Un){A=K;break}A?(f(A),p.closeToast(r.id)):(Se({x:w.x,y:w.y}),f(void 0))});function U(P){if(P.button!==0||(P.pointerType==="touch"&&p.pauseTimers(),he(P.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${ua}`)))return;g.current=!1,M.current=void 0,H.current=0,te.current=P.pointerId,k.current={x:P.clientX,y:P.clientY},T.current=k.current;let ce=P.currentTarget,ne=kr(ce);ee.current=ne,C(ne),Se({x:ne.x,y:ne.y}),p.set("hovering",!0),I(!0),E(!1),G(null),Z.current=!0,ae.current?.abort();let A=new AbortController;ae.current=A;let K=Pe(ce);K.addEventListener("pointerup",De,{signal:A.signal}),K.addEventListener("pointercancel",De,{signal:A.signal}),ce.setPointerCapture?.(P.pointerId)}function Ee(P){if(P.pointerId!==te.current)return;P.preventDefault(),Z.current&&(k.current={x:P.clientX,y:P.clientY},Z.current=!1);let{clientY:w,clientX:j,movementX:ce,movementY:ne}=P;(ne<0&&w>T.current.y||ne>0&&w<T.current.y)&&(T.current={x:T.current.x,y:w}),(ce<0&&j>T.current.x||ce>0&&j<T.current.x)&&(T.current={x:j,y:T.current.y});let A=j-k.current.x,K=w-k.current.y,Ps=w-T.current.y,Rs=j-T.current.x,ke=Y;if(!v&&Math.sqrt(A*A+K*K)>=da){E(!0);let Qe=i.includes("left")||i.includes("right"),Ts=i.includes("up")||i.includes("down");if(Qe&&Ts){let ys=Math.abs(A),ws=Math.abs(K);ke=ys>ws?"horizontal":"vertical",G(ke)}}let me;if(!M.current)ke==="vertical"?K>0?me="down":K<0&&(me="up"):ke==="horizontal"?A>0?me="right":A<0&&(me="left"):Math.abs(A)>=Math.abs(K)?me=A>0?"right":"left":me=K>0?"down":"up",me&&i.includes(me)&&(M.current=me,H.current=vt(me,A,K),f(me));else{let Gt=M.current,Qe=vt(Gt,Rs,Ps);Qe>Un?(g.current=!1,f(Gt)):!(i.includes("left")&&i.includes("right"))&&!(i.includes("up")&&i.includes("down"))&&H.current-Qe>=la&&(g.current=!0)}let go=qe(A,K),ho=ee.current.x,vo=ee.current.y,Cs=i.includes("left")||i.includes("right"),Ls=i.includes("up")||i.includes("down");ke!=="vertical"&&Cs&&(ho+=go.x),ke!=="horizontal"&&Ls&&(vo+=go.y),Se({x:ho,y:vo})}function Je(P){if(P.key==="Escape"){if(!O.current||!Re(O.current,Te(Pe(O.current))))return;p.closeToast(r.id)}}S.useEffect(()=>{let P=O.current;if(!u||!P)return;function w(j){te.current===null||!Re(P,he(j))||j.preventDefault()}return Ne(P,"touchmove",w,{passive:!1})},[u]);function gs(){let P=x.x-B.x,w=x.y-B.y;return{transition:b?"none":void 0,transform:b?`translateX(${x.x}px) translateY(${x.y}px) scale(${B.scale})`:void 0,"--toast-swipe-movement-x":`${P}px`,"--toast-swipe-movement-y":`${w}px`}}let fo=r.priority==="high",hs={role:fo?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":L,"aria-describedby":_,"aria-hidden":fo&&!jt?!0:void 0,onPointerDown:u?U:void 0,onPointerMove:u?Ee:void 0,onPointerUp:u?De:void 0,onPointerCancel:u?De:void 0,onKeyDown:Je,inert:ct(r.limited),style:{...gs(),"--toast-index":r.transitionStatus==="ending"?y:oe,"--toast-offset-y":`${re}px`,"--toast-height":r.height?`${r.height}px`:void 0}},vs=S.useMemo(()=>({toast:r,setTitleId:N,setDescriptionId:z,recalculateHeight:Ie,visibleIndex:oe,expanded:ze}),[r,N,z,Ie,oe,ze]),xs={transitionStatus:r.transitionStatus,expanded:ze,limited:r.limited||!1,type:r.type,swiping:b,swipeDirection:h},bs=R("div",o,{ref:[t,O],state:xs,stateAttributesMapping:ca,props:[hs,s]});return ia(co.Provider,{value:vs,children:bs})});import*as At from"react";var Kn=At.forwardRef(function(o,t){let{render:r,className:n,style:l,...a}=o,{visibleIndex:d,expanded:s,recalculateHeight:c}=we(),i=At.useRef(null);X(()=>{c();let h=i.current;if(!h||typeof ResizeObserver!="function"||typeof MutationObserver!="function")return;let f=new ResizeObserver(()=>c(!0)),b=new MutationObserver(()=>c(!0));return f.observe(h),b.observe(h,{childList:!0,subtree:!0,characterData:!0}),()=>{f.disconnect(),b.disconnect()}},[c]);let u=d>0;return R("div",o,{ref:[t,i],state:{expanded:s,behind:u},props:a})});import*as Jn from"react";import*as Xn from"react";function qn(e){return e==null||typeof e=="boolean"||e===""?!1:Array.isArray(e)?e.some(qn):!0}function Ft(e){return Xn.isValidElement(e)&&qn(e.props.children)}function Bt(e,o,t){let{toast:r,setTitleId:n,setDescriptionId:l}=we(),a=t==="title"?n:l,d=o??(t==="title"?r.title:r.description);return{id:So(e),children:d,type:r.type,setId:a}}function _t(e,o,t){let r=Ft(e);return X(()=>{if(r)return t(o),()=>{t(n=>n===o?void 0:n)}},[r,o,t]),r?e:null}var Qn=Jn.forwardRef(function(o,t){let{render:r,className:n,style:l,id:a,children:d,...s}=o,{id:c,children:i,type:u,setId:p}=Bt(a,d,"description"),f=R("p",o,{ref:t,state:{type:u},props:{...s,id:c,children:i}});return _t(f,c,p)});import*as es from"react";var ts=es.forwardRef(function(o,t){let{render:r,className:n,style:l,id:a,children:d,...s}=o,{id:c,children:i,type:u,setId:p}=Bt(a,d,"title"),f=R("h2",o,{ref:t,state:{type:u},props:{...s,id:c,children:i}});return _t(f,c,p)});import*as Zt from"react";var os=Zt.forwardRef(function(o,t){let{render:r,className:n,style:l,disabled:a,nativeButton:d=!0,...s}=o,c=xe(),{toast:i,expanded:u}=we(),[p,h]=Zt.useState(!1),{getButtonProps:f,buttonRef:b}=ge({disabled:a,native:d}),I={type:i.type};return R("button",o,{ref:[t,b],state:I,props:[{"aria-hidden":!u&&!p,onClick(){c.closeToast(i.id)},onFocus(){h(!0)},onBlur(){h(!1)}},s,f]})});import*as rs from"react";var ns=rs.forwardRef(function(o,t){let{render:r,className:n,style:l,disabled:a,nativeButton:d=!0,...s}=o,{toast:c}=we(),i=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:p}=ge({disabled:a,native:d}),h={type:c.type},f=R("button",o,{ref:[t,p],state:h,props:[s,c.actionProps,u,{children:i}]});return Ft(f)?f:null});import*as ss from"react";import{jsx as pa}from"react/jsx-runtime";var as=ss.forwardRef(function(o,t){return pa(Vr,{ref:t,...o})});import*as Ht from"react";import*as zt from"react";var lo=zt.createContext(void 0);function is(){let e=zt.useContext(lo);if(e===void 0)throw new Error(W(84));return e}import{jsx as ma}from"react/jsx-runtime";var cs=Ht.forwardRef(function(o,t){let{toast:r,...n}=o,l=xe(),a=r.positionerProps??tt,{render:d,className:s,anchor:c=a.anchor,positionMethod:i=a.positionMethod??"absolute",side:u=a.side??"top",align:p=a.align??"center",sideOffset:h=a.sideOffset??0,alignOffset:f=a.alignOffset??0,collisionBoundary:b=a.collisionBoundary??"clipping-ancestors",collisionPadding:I=a.collisionPadding??5,arrowPadding:v=a.arrowPadding??5,sticky:E=a.sticky??!1,disableAnchorTracking:x=a.disableAnchorTracking??!1,collisionAvoidance:D=a.collisionAvoidance??at,style:B,...C}=n,[L,N]=Ht.useState(null),_=l.useState("toastIndex",r.id),z=l.useState("toastVisibleIndex",r.id),Y=Lo(c)?c:null,G=xr({open:!0,onOpenChange:et,elements:{floating:L,reference:Y}}),O=lt({anchor:Y,positionMethod:i,floatingRootContext:G,mounted:!0,side:u,sideOffset:h,align:p,alignOffset:f,collisionBoundary:b,collisionPadding:I,sticky:E,arrowPadding:v,disableAnchorTracking:x,keepMounted:!0,collisionAvoidance:D}),Q={side:O.side,align:O.align,anchorHidden:O.anchorHidden},k=dt(o,Q,{styles:{...O.positionerStyles,"--toast-index":r.transitionStatus==="ending"?_:z},transitionStatus:r.transitionStatus,props:C,refs:[t,N]});return ma(lo.Provider,{value:O,children:k})});import*as ls from"react";var ds=ls.forwardRef(function(o,t){let{className:r,render:n,style:l,...a}=o,{arrowRef:d,side:s,align:c,arrowUncentered:i,arrowStyles:u}=is();return R("div",o,{state:{side:s,align:c,uncentered:i},ref:[t,d],props:[{style:u,"aria-hidden":!0},a]})});import*as us from"react";function ps(){let e=xe(),o=e.useState("toasts");return us.useMemo(()=>({toasts:o,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[o,e])}function ms(){let e=new Set;function o(t){e.forEach(r=>r(t))}return{" subscribe":function(r){return e.add(r),()=>{e.delete(r)}},add(t){let r=t.id||Ot("toast"),n={...t,id:r,transitionStatus:"starting"};return o({action:"add",options:n}),r},close(t){o({action:"close",options:{id:t}})},update(t,r){o({action:"update",options:{...r,id:t}})},promise(t,r){let n=t;return o({action:"promise",options:{...r,promise:t,setPromise(l){n=l}}}),n}}}import{XIcon as fa}from"lucide-react";import{jsx as J,jsxs as po}from"react/jsx-runtime";function mo(e){let{action:o,variant:t,...r}=e;return{...r,...t!==void 0?{type:t,data:{variant:t}}:{},...o!==void 0?{actionProps:{children:o.label,onClick:o.onClick}}:{}}}function uo(e){return typeof e=="string"?e:mo(e)}function Hm({children:e,limit:o=3,timeout:t=5e3}){return J(se.Provider,{limit:o,timeout:t,children:e})}function jm(){let e=se.useToastManager();return fs.useMemo(()=>({add(o){let t=o.variant??"default";return e.add({...mo({...o,variant:t}),id:o.id})},close(o){e.close(o)},update(o,t){e.update(o,mo(t))},promise(o,t){return e.promise(o,{loading:uo(t.loading),success:r=>{let n=typeof t.success=="function"?t.success(r):t.success;return uo(n)},error:r=>{let n=typeof t.error=="function"?t.error(r):t.error;return uo(n)}})}}),[e])}function Gm({className:e,placement:o="bottom-end",...t}){let{toasts:r}=se.useToastManager();return J(se.Portal,{children:J(se.Viewport,{"data-slot":"toast-viewport",className:m("pointer-events-none fixed flex w-[min(24rem,calc(100vw-2rem))] max-w-[calc(100vw-2rem)] flex-col gap-2 p-4 outline-none",Be.transient,o==="bottom-end"&&"right-0 bottom-0 items-end",o==="bottom-start"&&"bottom-0 left-0 items-start",o==="top-end"&&"top-0 right-0 items-end",o==="top-start"&&"top-0 left-0 items-start",e),...t,children:r.map(n=>J(ga,{toast:n},n.id))})})}function ga({children:e,className:o,toast:t,...r}){let n=t.data?.variant??t.type??"default";return J(se.Root,{toast:t,"data-slot":"toast","data-variant":n,className:m("pointer-events-auto relative grid w-full grid-cols-[minmax(0,1fr)_auto] gap-3 rounded-[var(--ds-radius-surface)] border bg-surface p-4 text-sm text-text-primary shadow-[var(--ds-shadow-floating)] outline-none data-ending:animate-out data-starting:animate-in data-[variant=error]:border-danger-border data-[variant=error]:bg-danger-background data-[variant=error]:text-danger-foreground data-[variant=information]:border-information-border data-[variant=information]:bg-information-background data-[variant=information]:text-information-foreground data-[variant=success]:border-success-border data-[variant=success]:bg-success-background data-[variant=success]:text-success-foreground data-[variant=warning]:border-warning-border data-[variant=warning]:bg-warning-background data-[variant=warning]:text-warning-foreground",o),...r,children:e??po(ha,{children:[po("div",{className:"min-w-0",children:[J(va,{}),J(xa,{})]}),po("div",{className:"flex items-start gap-1",children:[J(ba,{}),J(Pa,{})]})]})})}function ha({className:e,...o}){return J(se.Content,{"data-slot":"toast-content",className:m("contents",e),...o})}function va({className:e,...o}){return J(se.Title,{"data-slot":"toast-title",className:m("font-semibold",e),...o})}function xa({className:e,...o}){return J(se.Description,{"data-slot":"toast-description",className:m("mt-1 text-text-supporting",e),...o})}function ba({className:e,...o}){return J(se.Action,{"data-slot":"toast-action",className:m("rounded px-2 py-1 text-xs font-medium text-text-link outline-none hover:bg-surface-muted focus-visible:ring-2 focus-visible:ring-focus",e),...o})}function Pa({"aria-label":e="Dismiss notification",children:o,className:t,...r}){return J(se.Close,{"data-slot":"toast-close","aria-label":e,className:m("rounded p-1 text-text-supporting outline-none hover:bg-surface-muted hover:text-text-primary focus-visible:ring-2 focus-visible:ring-focus",t),...r,children:o??J(fa,{"aria-hidden":"true",className:"size-4"})})}export{Es as a,La as b,Ta as c,ya as d,Na as e,Ma as f,Oa as g,Va as h,Os as i,Za as j,Ga as k,Ya as l,Xt as m,Ii as n,on as o,$i as p,Yi as q,Ki as r,Xi as s,qi as t,Ji as u,Qi as v,ec as w,tc as x,oc as y,rc as z,nc as A,sc as B,ac as C,ic as D,cc as E,lc as F,dc as G,uc as H,pc as I,mc as J,fc as K,gc as L,hc as M,Pc as N,Rc as O,Cc as P,Lc as Q,Tc as R,Mc as S,Hs as T,Vc as U,_c as V,an as W,Yc as X,gu as Y,hu as Z,Qs as _,ea as $,vu as aa,xu as ba,bu as ca,Pu as da,Ru as ea,Nu as fa,Hm as ga,jm as ha,Gm as ia,ga as ja,ha as ka,va as la,xa as ma,ba as na,Pa as oa};
2
- //# sourceMappingURL=chunk-7G2ZADDF.js.map