@medway-ui/core 1.10.1 → 1.10.2

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import*as R from'react';import {forwardRef,createElement}from'react';import {cva}from'class-variance-authority';import {CloseMd,User,ChevronRightMd,MoreHorizontal,TimeRemaining,Check,RemoveMinus,ChevronRight,ChevronLeftDuo,ChevronRightDuo,Circle,CheckboxFill,ArrowRightMd,HamburgerMd,EditPencil,ChevronLeftMd}from'@medway-ui/icons';import {clsx}from'clsx';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Slot,AlertDialog,Avatar,Progress,Checkbox,Collapsible,Separator,Dialog,DropdownMenu,Label,RadioGroup,ScrollArea,Tabs,Tooltip,Switch}from'radix-ui';var Go=Object.defineProperty,Eo=Object.defineProperties;var _o=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var gt=(e,a,o)=>a in e?Go(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))xt.call(a,o)&&gt(e,o,a[o]);if(_e)for(var o of _e(a))ht.call(a,o)&&gt(e,o,a[o]);return e},c=(e,a)=>Eo(e,_o(a));var u=(e,a)=>{var o={};for(var t in e)xt.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&_e)for(var t of _e(e))a.indexOf(t)<0&&ht.call(e,t)&&(o[t]=e[t]);return o};var Wo=(e,a)=>{let o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},Xo=(e,a)=>({classGroupId:e,validator:a}),St=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var Lt=[],Ko="arbitrary..",Zo=e=>{let a=Jo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return Qo(n);let i=n.split("-"),f=i[0]===""&&i.length>1?1:0;return wt(i,f,a)},getConflictingClassGroupIds:(n,i)=>{if(i){let f=t[n],p=o[n];return f?p?Wo(p,f):f:p||Lt}return o[n]||Lt}}},wt=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],l=o.nextPart.get(r);if(l){let p=wt(e,a+1,l);if(p)return p}let n=o.validators;if(n===null)return;let i=a===0?e.join("-"):e.slice(a).join("-"),f=n.length;for(let p=0;p<f;p++){let x=n[p];if(x.validator(i))return x.classGroupId}},Qo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?Ko+t:void 0})(),Jo=e=>{let{theme:a,classGroups:o}=e;return jo(o,a)},jo=(e,a)=>{let o=St();for(let t in e){let r=e[t];Aa(r,o,t,a);}return o},Aa=(e,a,o,t)=>{let r=e.length;for(let l=0;l<r;l++){let n=e[l];$o(n,a,o,t);}},$o=(e,a,o,t)=>{if(typeof e=="string"){Yo(e,a,o);return}if(typeof e=="function"){er(e,a,o,t);return}ar(e,a,o,t);},Yo=(e,a,o)=>{let t=e===""?a:Pt(a,e);t.classGroupId=o;},er=(e,a,o,t)=>{if(tr(e)){Aa(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Xo(o,e));},ar=(e,a,o,t)=>{let r=Object.entries(e),l=r.length;for(let n=0;n<l;n++){let[i,f]=r[n];Aa(f,Pt(a,i),o,t);}},Pt=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let l=0;l<r;l++){let n=t[l],i=o.nextPart.get(n);i||(i=St(),o.nextPart.set(n,i)),o=i;}return o},tr=e=>"isThemeGetter"in e&&e.isThemeGetter===true,or=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(l,n)=>{o[l]=n,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(l){let n=o[l];if(n!==void 0)return n;if((n=t[l])!==void 0)return r(l,n),n},set(l,n){l in o?o[l]=n:r(l,n);}}};var rr=[],bt=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),lr=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let l=[],n=0,i=0,f=0,p,x=r.length;for(let b=0;b<x;b++){let A=r[b];if(n===0&&i===0){if(A===":"){l.push(r.slice(f,b)),f=b+1;continue}if(A==="/"){p=b;continue}}A==="["?n++:A==="]"?n--:A==="("?i++:A===")"&&i--;}let h=l.length===0?r:r.slice(f),I=h,y=false;h.endsWith("!")?(I=h.slice(0,-1),y=true):h.startsWith("!")&&(I=h.slice(1),y=true);let S=p&&p>f?p-f:void 0;return bt(l,y,I,S)};if(a){let r=a+":",l=t;t=n=>n.startsWith(r)?l(n.slice(r.length)):bt(rr,false,n,void 0,true);}if(o){let r=t;t=l=>o({className:l,parseClassName:r});}return t},sr=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let l=0;l<o.length;l++){let n=o[l],i=n[0]==="[",f=a.has(n);i||f?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(n)):r.push(n);}return r.length>0&&(r.sort(),t.push(...r)),t}},dr=e=>s({cache:or(e.cacheSize),parseClassName:lr(e),sortModifiers:sr(e)},Zo(e)),ur=/\s+/,nr=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:l}=a,n=[],i=e.trim().split(ur),f="";for(let p=i.length-1;p>=0;p-=1){let x=i[p],{isExternal:h,modifiers:I,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:b}=o(x);if(h){f=x+(f.length>0?" "+f:f);continue}let A=!!b,O=t(A?S.substring(0,b):S);if(!O){if(!A){f=x+(f.length>0?" "+f:f);continue}if(O=t(S),!O){f=x+(f.length>0?" "+f:f);continue}A=false;}let C=I.length===0?"":I.length===1?I[0]:l(I).join(":"),P=y?C+"!":C,H=P+O;if(n.indexOf(H)>-1)continue;n.push(H);let F=r(O,A);for(let V=0;V<F.length;++V){let Pe=F[V];n.push(P+Pe);}f=x+(f.length>0?" "+f:f);}return f},ir=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=yt(o))&&(r&&(r+=" "),r+=t);return r},yt=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=yt(e[t]))&&(o&&(o+=" "),o+=a);return o},It=(e,...a)=>{let o,t,r,l,n=f=>{let p=a.reduce((x,h)=>h(x),e());return o=dr(p),t=o.cache.get,r=o.cache.set,l=i,i(f)},i=f=>{let p=t(f);if(p)return p;let x=nr(f,o);return r(f,x),x};return l=n,(...f)=>l(ir(...f))},fr=[],N=e=>{let a=o=>o[e]||fr;return a.isThemeGetter=true,a},Rt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,At=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cr=/^\d+\/\d+$/,pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mr=/\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$/,gr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,me=e=>cr.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),ya=e=>e.endsWith("%")&&w(e.slice(0,-1)),$=e=>pr.test(e),Lr=()=>true,br=e=>mr.test(e)&&!gr.test(e),Tt=()=>false,Ir=e=>xr.test(e),Cr=e=>hr.test(e),vr=e=>!m(e)&&!g(e),kr=e=>ge(e,Bt,Tt),m=e=>Rt.test(e),ue=e=>ge(e,Ft,br),Ra=e=>ge(e,Rr,w),Ct=e=>ge(e,Mt,Tt),Sr=e=>ge(e,Dt,Cr),We=e=>ge(e,qt,Ir),g=e=>At.test(e),ye=e=>xe(e,Ft),wr=e=>xe(e,Ar),vt=e=>xe(e,Mt),Pr=e=>xe(e,Bt),yr=e=>xe(e,Dt),Xe=e=>xe(e,qt,true),ge=(e,a,o)=>{let t=Rt.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},xe=(e,a,o=false)=>{let t=At.exec(e);return t?t[1]?a(t[1]):o:false},Mt=e=>e==="position"||e==="percentage",Dt=e=>e==="image"||e==="url",Bt=e=>e==="length"||e==="size"||e==="bg-size",Ft=e=>e==="length",Rr=e=>e==="number",Ar=e=>e==="family-name",qt=e=>e==="shadow";var kt=()=>{let e=N("color"),a=N("font"),o=N("text"),t=N("font-weight"),r=N("tracking"),l=N("leading"),n=N("breakpoint"),i=N("container"),f=N("spacing"),p=N("radius"),x=N("shadow"),h=N("inset-shadow"),I=N("text-shadow"),y=N("drop-shadow"),S=N("blur"),b=N("perspective"),A=N("aspect"),O=N("ease"),C=N("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...H(),g,m],V=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto","contain","none"],v=()=>[g,m,f],J=()=>[me,"full","auto",...v()],dt=()=>[le,"none","subgrid",g,m],ut=()=>["auto",{span:["full",le,g,m]},le,g,m],ze=()=>[le,"auto",g,m],nt=()=>["auto","min","max","fr",g,m],Sa=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...v()],de=()=>[me,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],L=()=>[e,g,m],it=()=>[...H(),vt,Ct,{position:[g,m]}],ft=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ct=()=>["auto","cover","contain",Pr,kr,{size:[g,m]}],wa=()=>[ya,ye,ue],G=()=>["","none","full",p,g,m],_=()=>["",w,ye,ue],He=()=>["solid","dashed","dotted","double"],pt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[w,ya,vt,Ct],mt=()=>["","none",S,g,m],Ve=()=>["none",w,g,m],Ge=()=>["none",w,g,m],Pa=()=>[w,g,m],Ee=()=>[me,"full",...v()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[Lr],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[vr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",w],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",me,m,g,A]}],container:["container"],columns:[{columns:[w,m,g,i]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:Pe()}],"overscroll-x":[{"overscroll-x":Pe()}],"overscroll-y":[{"overscroll-y":Pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",g,m]}],basis:[{basis:[me,"full","auto",i,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,me,"auto","initial","none",m]}],grow:[{grow:["",w,g,m]}],shrink:[{shrink:["",w,g,m]}],order:[{order:[le,"first","last","none",g,m]}],"grid-cols":[{"grid-cols":dt()}],"col-start-end":[{col:ut()}],"col-start":[{"col-start":ze()}],"col-end":[{"col-end":ze()}],"grid-rows":[{"grid-rows":dt()}],"row-start-end":[{row:ut()}],"row-start":[{"row-start":ze()}],"row-end":[{"row-end":ze()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":nt()}],"auto-rows":[{"auto-rows":nt()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...Sa(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...Sa()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Sa()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m: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":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],w:[{w:[i,"screen",...de()]}],"min-w":[{"min-w":[i,"screen","none",...de()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[n]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",o,ye,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,g,Ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ya,m]}],"font-family":[{font:[wr,m,a]}],"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:[r,g,m]}],"line-clamp":[{"line-clamp":[w,"none",g,Ra]}],leading:[{leading:[l,...v()]}],"list-image":[{"list-image":["none",g,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...He(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",g,ue]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[w,"auto",g,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,m]}],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",g,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:it()}],"bg-repeat":[{bg:ft()}],"bg-size":[{bg:ct()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,g,m],radial:["",g,m],conic:[le,g,m]},yr,Sr]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:wa()}],"gradient-via-pos":[{via:wa()}],"gradient-to-pos":[{to:wa()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...He(),"hidden","none"]}],"divide-style":[{divide:[...He(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...He(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,g,m]}],"outline-w":[{outline:["",w,ye,ue]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",x,Xe,We]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",h,Xe,We]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[w,ue]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",I,Xe,We]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[w,g,m]}],"mix-blend":[{"mix-blend":[...pt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pt()}],"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":[w]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[g,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":H()}],"mask-image-conic-pos":[{"mask-conic":[w]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:it()}],"mask-repeat":[{mask:ft()}],"mask-size":[{mask:ct()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,m]}],filter:[{filter:["","none",g,m]}],blur:[{blur:mt()}],brightness:[{brightness:[w,g,m]}],contrast:[{contrast:[w,g,m]}],"drop-shadow":[{"drop-shadow":["","none",y,Xe,We]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",w,g,m]}],"hue-rotate":[{"hue-rotate":[w,g,m]}],invert:[{invert:["",w,g,m]}],saturate:[{saturate:[w,g,m]}],sepia:[{sepia:["",w,g,m]}],"backdrop-filter":[{"backdrop-filter":["","none",g,m]}],"backdrop-blur":[{"backdrop-blur":mt()}],"backdrop-brightness":[{"backdrop-brightness":[w,g,m]}],"backdrop-contrast":[{"backdrop-contrast":[w,g,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,g,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,g,m]}],"backdrop-invert":[{"backdrop-invert":["",w,g,m]}],"backdrop-opacity":[{"backdrop-opacity":[w,g,m]}],"backdrop-saturate":[{"backdrop-saturate":[w,g,m]}],"backdrop-sepia":[{"backdrop-sepia":["",w,g,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",g,m]}],ease:[{ease:["linear","initial",O,g,m]}],delay:[{delay:[w,g,m]}],animate:[{animate:["none",C,g,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,g,m]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:Ge()}],"scale-x":[{"scale-x":Ge()}],"scale-y":[{"scale-y":Ge()}],"scale-z":[{"scale-z":Ge()}],"scale-3d":["scale-3d"],skew:[{skew:Pa()}],"skew-x":[{"skew-x":Pa()}],"skew-y":[{"skew-y":Pa()}],transform:[{transform:[g,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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",g,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g,m]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[w,ye,ue,Ra]}],stroke:[{stroke:["none",...L()]}],"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"]}},Tr=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:l={}})=>(Re(e,"cacheSize",a),Re(e,"prefix",o),Re(e,"experimentalParseClassName",t),Ke(e.theme,l.theme),Ke(e.classGroups,l.classGroups),Ke(e.conflictingClassGroups,l.conflictingClassGroups),Ke(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),Re(e,"orderSensitiveModifiers",l.orderSensitiveModifiers),Ze(e.theme,r.theme),Ze(e.classGroups,r.classGroups),Ze(e.conflictingClassGroups,r.conflictingClassGroups),Ze(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Nt(e,r,"orderSensitiveModifiers"),e),Re=(e,a,o)=>{o!==void 0&&(e[a]=o);},Ke=(e,a)=>{if(a)for(let o in a)Re(e,o,a[o]);},Ze=(e,a)=>{if(a)for(let o in a)Nt(e,a,o);},Nt=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},Ot=(e,...a)=>typeof e=="function"?It(kt,e,...a):It(()=>Tr(kt(),e),...a);var Dr=Ot({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-md","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]}}});function d(...e){return Dr(clsx(e))}var Ta=R.createContext(null),zt=cva("relative flex flex-col items-center justify-between gap-5 w-full rounded-md px-4 py-3 text-sm has-[>svg]:gap-x-9 gap-y-1 items-center [&>svg]:translate-y-0 [&>svg]:text-current lg:flex-row",{variants:{variant:{regular:"[background:linear-gradient(0deg,_var(--color-primary-background-soft)_0%,_var(--color-primary-background-soft)_100%),_var(--color-surface-card)] text-primary-foreground [&>svg]:text-primary-foreground",emphasis:"[background:linear-gradient(0deg,_var(--color-secondary-background-soft)_0%,_var(--color-secondary-background-soft)_100%),_var(--color-surface-card)] text-secondary-foreground [&>svg]:text-secondary-foreground",success:"[background:linear-gradient(0deg,_var(--color-green-background-soft)_0%,_var(--color-green-background-soft)_100%),_var(--color-surface-card)] text-green-foreground [&>svg]:text-green-foreground",warning:"[background:linear-gradient(0deg,_var(--color-yellow-background-soft)_0%,_var(--color-yellow-background-soft)_100%),_var(--color-surface-card)] text-yellow-foreground [&>svg]:text-yellow-foreground",error:"[background:linear-gradient(0deg,_var(--color-red-background-soft)_0%,_var(--color-red-background-soft)_100%),_var(--color-surface-card)] text-red-foreground [&>svg]:text-red-foreground"}},defaultVariants:{variant:"regular"}});function Fr(l){var n=l,{className:e,variant:a="regular",onClose:o,children:t}=n,r=u(n,["className","variant","onClose","children"]);let i=R.Children.toArray(t).some(p=>R.isValidElement(p)&&p.type===Vt),f=R.Children.toArray(t).some(p=>R.isValidElement(p)&&p.type===Ht);return jsx(Ta.Provider,{value:{variant:a,hasDescription:i,hasTitle:f,onClose:o},children:jsxs("div",c(s({"data-slot":"alert",role:"alert",className:d(zt({variant:a}),e)},r),{children:[t,o&&jsx(CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function qr(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-container",className:d("flex gap-3",e)},a))}function Nr(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-content",className:d("flex flex-col gap-1",e)},a))}function Or(t){var r=t,{className:e,icon:a}=r,o=u(r,["className","icon"]);return jsx("div",c(s({"data-slot":"alert-icon",className:d("size-6",e)},o),{children:a}))}function Ht(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-title",className:d("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Vt(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-description",className:d("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Ur(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Ta),l=(r==null?void 0:r.hasDescription)||false,n=(r==null?void 0:r.hasTitle)||false,i=r==null?void 0:r.onClose;return jsx("div",s({"data-slot":"alert-actions",className:d("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!l||!n)&&i&&"lg:right-5",e)},a))}var Gt=cva("inline-flex items-center justify-center rounded-pill px-3 py-2 min-h-10 text-sm font-semibold transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:brightness-90",{variants:{variant:{regular:"text-current",basic:"text-current"},alertVariant:{regular:"",emphasis:"",success:"",warning:"",error:""}},compoundVariants:[{variant:"regular",alertVariant:"regular",class:"bg-primary-background-soft"},{variant:"regular",alertVariant:"emphasis",class:"bg-secondary-background-soft"},{variant:"regular",alertVariant:"success",class:"bg-green-background-soft"},{variant:"regular",alertVariant:"warning",class:"bg-yellow-background-soft"},{variant:"regular",alertVariant:"error",class:"bg-red-background-soft"}],defaultVariants:{variant:"regular",alertVariant:"regular"}});function zr(t){var r=t,{className:e,variant:a}=r,o=u(r,["className","variant"]);let l=R.useContext(Ta),n=(l==null?void 0:l.variant)||"regular";return jsx("button",s({className:d(Gt({variant:a,alertVariant:n}),e)},o))}function Ma({size:e=24,className:a}){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:d("animate-spin",a),children:jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Er={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},_r={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Wt=cva("inline-flex items-center justify-center rounded-pill border font-semibold w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none overflow-hidden border-transparent px-2 ring-1 ring-background",{variants:{variant:{regular:"bg-secondary-background-fill text-secondary-foreground-onfill",freemium:"[background:radial-gradient(135.09%_111.8%_at_0%_50%,rgba(24,98,188,0.02)_0%,rgba(0,32,91,0)_100%),linear-gradient(46deg,rgba(62,218,199,0.56)_6.54%,rgba(24,98,188,0.17)_85.21%),var(--color-primary)] text-white"},size:{sm:"min-w-4 text-xxs [&>svg]:size-2.5",md:"min-w-5 text-xs [&>svg]:size-3",lg:"min-w-6 text-xs [&>svg]:size-3.5",xl:"min-w-7 text-sm [&>svg]:size-4"}},defaultVariants:{variant:"regular",size:"md"}});function ne(n){var i=n,{className:e,variant:a,size:o,icon:t,asChild:r=false}=i,l=u(i,["className","variant","size","icon","asChild"]);let f=r?Slot.Slot:"span",p=R.Children.count(l.children)>0,x=!!t&&!p,h=typeof l.children=="string"||typeof l.children=="number"?String(l.children).trim():"",I=/^[A-Za-z0-9]$/.test(h),y=/^[A-Za-z0-9]{2,3}$/.test(h),S=/^\d{1,2}\S$/.test(h),b=y||S;return jsxs(f,c(s({"data-slot":"badge",className:d(Wt({variant:a,size:o}),(x||I)&&Er[o||"md"],!x&&b&&_r[o||"md"],e)},l),{children:[t,l.children]}))}var Zr={sm:"!h-8 !min-h-8 !w-8 !px-3 !py-2",md:"!h-10 !min-h-10 !w-10 !px-[14px] !py-[10px]",lg:"!h-12 !min-h-12 !w-12 !p-3",xl:"!h-14 !min-h-14 !w-14 !p-3"},Xt={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Qr={sm:"sm",md:"md",lg:"md",xl:"lg"},Ae=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill text-sm font-semibold whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","regular-basic":"bg-transparent text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill hover:bg-secondary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","emphasis-basic":"bg-transparent text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",error:"bg-red-background-fill text-red-foreground-onfill hover:bg-red-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","error-basic":"bg-transparent text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",warning:"bg-yellow-background-fill text-yellow-foreground-onfill hover:bg-yellow-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","warning-basic":"bg-transparent text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",success:"bg-green-background-fill text-green-foreground-onfill hover:bg-green-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","success-basic":"bg-transparent text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",outlined:"border border-gray-stroke-muted bg-transparent text-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function fe(h){var I=h,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:l,iconLeft:n,badge:i,loading:f=false,alert:p}=I,x=u(I,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let y=r?Slot.Slot:"button",S=P=>P!=null&&P!==0&&P!==""&&P!=="0",b=P=>P,A=!x.children&&(n||l||p),O=()=>p?jsxs("span",{className:d("relative mr-1 flex size-2.5",Xt[t||"md"]),children:[jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsx("span",{className:d("relative inline-flex size-2.5 rounded-full",Xt[t||"md"]),style:{backgroundColor:p}})]}):null,C=()=>f?jsxs(Fragment,{children:[jsx(Ma,{className:"[grid-area:stack]"}),jsx("span",{className:d("[grid-area:stack]",f&&"invisible"),children:x.children})]}):jsxs(Fragment,{children:[p?O():n&&b(n),x.children&&jsx("span",{children:x.children}),l&&b(l)]});return jsxs("div",{className:d("relative",a),children:[S(i)&&jsx(ne,{size:Qr[t||"md"],variant:"regular",className:d("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${i}-notifications`,children:String(i)}),jsx(y,c(s({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:d(A&&Zr[t||"md"],f&&"!inline-grid",Ae({variant:o,size:t,className:e}))},x),{children:C()}))]})}function Jr(a){var e=u(a,[]);return jsx(AlertDialog.Root,s({"data-slot":"alert-dialog"},e))}function jr(a){var e=u(a,[]);return jsx(AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function Zt(a){var e=u(a,[]);return jsx(AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function Qt(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:d("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function $r(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsxs(Zt,{children:[jsx(Qt,{}),jsx(AlertDialog.Content,s({"data-slot":"alert-dialog-content",className:d("fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-surface-elevated p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},a))]})}function Yr(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",e)},a))}function el(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function al(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:d("text-lg font-semibold",e)},a))}function tl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:d("text-sm text-foreground",e)},a))}function ol(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Action,s({className:d(Ae(),e)},a))}function rl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Cancel,s({className:d(Ae({variant:"outlined"}),e)},a))}var ul={sm:"sm",md:"md",lg:"md",xl:"lg"},Jt=cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"}},defaultVariants:{size:"md"}});function Ba(l){var n=l,{className:e,size:a,badge:o,children:t}=n,r=u(n,["className","size","badge","children"]);return jsxs("div",{className:"relative",children:[o&&jsx(ne,{size:ul[a||"md"],className:d("absolute -right-2 -top-1 z-10"),children:String(o)}),jsx(Avatar.Root,c(s({"data-slot":"avatar",className:d(Jt({size:a,className:e}))},r),{children:t}))]})}function Fa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Avatar.Image,s({"data-slot":"avatar-image",className:d("size-full object-cover",e)},a))}function qa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Avatar.Fallback,c(s({"data-slot":"avatar-fallback",className:d("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsx(User,{className:"size-1/2"})}))}function Na(a){var e=u(a,[]);return jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Oa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ol",s({className:d("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function pl(r){var l=r,{className:e,icon:a,children:o}=l,t=u(l,["className","icon","children"]);return jsx("li",c(s({className:d("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function ml(t){var r=t,{asChild:e,className:a}=r,o=u(r,["asChild","className"]);let l=e?Slot.Root:"a";return jsx(l,s({className:d("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function gl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("span",s({"aria-current":"page","aria-disabled":"true",className:d("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function xl(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("li",c(s({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsx(ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function hl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsxs("span",c(s({"aria-hidden":"true",className:d("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsx(MoreHorizontal,{className:"text-gray-foreground",size:18}),jsx("span",{className:"sr-only",children:"More"})]}))}var $t=cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold w-fit whitespace-nowrap shrink-0 gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground",success:"bg-green-background-fill text-green-foreground-onfill fill-green-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground fill-green-foreground","success-basic":"bg-transparent text-green-foreground fill-green-foreground",error:"bg-red-background-fill text-red-foreground-onfill fill-red-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground fill-red-foreground","error-basic":"bg-transparent text-red-foreground fill-red-foreground",warning:"bg-yellow-background-fill text-yellow-foreground-onfill fill-yellow-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground fill-yellow-foreground","warning-basic":"bg-transparent text-yellow-foreground fill-yellow-foreground",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground"}},defaultVariants:{variant:"regular"}});function Il(t){var r=t,{className:e,icon:a}=r,o=u(r,["className","icon"]);return jsx("div",c(s({"data-slot":"tag-icon",className:d("[&>svg]:size-3.5",e)},o),{children:a}))}function he(n){var i=n,{className:e,variant:a,asChild:o=false,icon:t,children:r}=i,l=u(i,["className","variant","asChild","icon","children"]);let f=o?Slot.Slot:"span";return jsxs(f,c(s({"data-slot":"tag",className:d($t({variant:a}),e)},l),{children:[t&&jsx(Il,{icon:t}),r]}))}function Ua(x){var h=x,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:l,value:n=0,size:i=96,strokeWidth:f=2}=h,p=u(h,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let I=typeof n=="string",y=I?0:n,S=(i-f)/2,b=S*2*Math.PI,A=b-y/100*b,O=Math.max(18,Math.min(i/5)),C=Math.max(10,Math.min(i/9,16));return jsxs("div",c(s({"data-slot":"progress-circle",className:d("relative inline-flex items-center justify-center",e),style:{width:i,height:i}},p),{children:[jsxs("svg",{className:"absolute inset-0 -rotate-90",width:i,height:i,viewBox:`0 0 ${i} ${i}`,children:[jsx("circle",{"data-slot":"progress-circle-track",cx:i/2,cy:i/2,r:S,stroke:"currentColor",strokeWidth:f,fill:"none",className:d("text-gray-stroke-muted",o)}),jsx("circle",{"data-slot":"progress-circle-indicator",cx:i/2,cy:i/2,r:S,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:b,strokeDashoffset:A,strokeLinecap:"round",className:d("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxs("div",{"data-slot":"progress-circle-content",className:"relative z-10 flex flex-col items-center justify-center px-2 text-sm font-medium text-gray-foreground-muted",children:[jsxs("div",{children:[jsx("span",{className:d("mr-px font-semibold",t),style:{fontSize:`${O}px`},children:n}),!I&&"%"]}),r&&jsx("div",{"data-slot":"progress-circle-label",className:d("text-center font-medium leading-tight text-gray-foreground-muted",l),style:{fontSize:`${C}px`},children:r})]})]}))}function Va(l){var n=l,{className:e,indicatorClassName:a,label:o,value:t}=n,r=u(n,["className","indicatorClassName","label","value"]);let i=Math.round(t||0);return jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[i,"%"]})," ",jsx("span",{children:o})]}),jsx(Progress.Root,c(s({"data-slot":"progress",className:d("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsx(Progress.Indicator,{"data-slot":"progress-indicator",className:d("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}var Me=R.createContext(null);function kl(l){var n=l,{className:e,done:a,postponed:o,skipped:t}=n,r=u(n,["className","done","postponed","skipped"]);let i=R.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsx(Me.Provider,{value:i,children:jsx("div",s({"data-slot":"card-week",className:d("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function Sl(l){var n=l,{className:e,children:a,tag:o,tagIcon:t}=n,r=u(n,["className","children","tag","tagIcon"]);return jsxs("div",c(s({"data-slot":"card-week-breadcrumb",className:d("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsx(Na,{className:"flex-1 overflow-hidden",children:jsx(Oa,{className:"flex-nowrap gap-1.5 text-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",children:a})}),o&&jsx(he,{variant:"regular-soft",icon:t,children:o})]}))}function wl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-container",className:d("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function Pl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-header",className:d("flex justify-between [&.border-b]:pb-6",e)},a))}function yl(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done,n=r==null?void 0:r.postponed,i=r==null?void 0:r.skipped;return jsx("div",s({"data-slot":"card-week-title",className:d("text-lg font-semibold leading-lg text-primary-foreground",(l||n||i)&&"text-primary-foreground-muted line-through",e)},a))}function Rl(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done,n=r==null?void 0:r.postponed,i=r==null?void 0:r.skipped;return jsx("div",s({"data-slot":"card-week-description",className:d("text-xs font-semibold leading-xs text-gray-foreground",(l||n||i)&&"text-gray-foreground-muted",e)},a))}function Al(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-tags",className:d("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function Tl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",c(s({"data-slot":"card-week-progress-circle",className:d("flex flex-1 justify-end",e)},a),{children:jsx(Ua,s({size:104},a))}))}function Ml(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done;return jsx("div",c(s({"data-slot":"card-week-progress",className:d("flex flex-1",e)},a),{children:jsx(Va,s({value:l?100:a.value},a))}))}function Dl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-footer",className:d("mt-auto flex flex-col gap-2",e)},a))}function Bl(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);return jsx("div",c(s({"data-slot":"card-week-content",className:d("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Fl(r){var l=r,{className:e,children:a,isTime:o}=l,t=u(l,["className","children","isTime"]);return jsxs("div",c(s({"data-slot":"card-week-text",className:d("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsx(TimeRemaining,{size:16}),jsx("span",{children:a})]}))}function ql(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done,n=r==null?void 0:r.postponed,i=r==null?void 0:r.skipped;return !l&&!n&&!i?null:n||i?jsxs("div",c(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-yellow-darken-4",children:n?"Adiado":"Pulado"})]})):jsxs("div",c(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold",children:"Feito"})]}))}function Nl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-actions",className:d("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var oo=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-sm whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-2 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted [&:disabled_svg]:text-gray-background-fill-muted"},size:{sm:"size-4 [&_svg]:size-3",md:"size-5 [&_svg]:size-4",lg:"size-6 [&_svg]:size-5"}},defaultVariants:{variant:"regular",size:"md"}});function Hl(l){var n=l,{className:e,size:a,variant:o,uncheckIcon:t}=n,r=u(n,["className","size","variant","uncheckIcon"]);return jsx(Checkbox.Root,c(s({"data-slot":"checkbox",className:d("group peer",oo({size:a,variant:o}),e)},r),{children:jsx(Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsx(RemoveMinus,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsx(Check,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var ro=R.createContext({animation:void 0});function Vl(o){var t=o,{animation:e}=t,a=u(t,["animation"]);return jsx(ro.Provider,{value:{animation:e},children:jsx(Collapsible.Root,s({"data-slot":"collapsible"},a))})}function Gl(a){var e=u(a,[]);return jsx(Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function El(o){var t=o,{className:e}=t,a=u(t,["className"]);let{animation:r}=R.useContext(ro),l={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsx(Collapsible.Content,s({"data-slot":"collapsible-content",className:d(r&&l[r],e)},a))}function Le(r){var l=r,{className:e,orientation:a="horizontal",decorative:o=true}=l,t=u(l,["className","orientation","decorative"]);return jsx(Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:d("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function Kl(a){var e=u(a,[]);return jsx(Dialog.Root,s({"data-slot":"dialog"},e))}function Zl(a){var e=u(a,[]);return jsx(Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function lo(a){var e=u(a,[]);return jsx(Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function Ql(a){var e=u(a,[]);return jsx(Dialog.Close,s({"data-slot":"dialog-close"},e))}function so(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Overlay,s({"data-slot":"dialog-overlay",className:d("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Jl(l){var n=l,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=n,r=u(n,["className","overlayClassName","children","showCloseButton"]);return jsxs(lo,{"data-slot":"dialog-portal",children:[jsx(so,{className:a}),jsxs(Dialog.Content,c(s({"data-slot":"dialog-container",className:d("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxs(Dialog.Close,{"data-slot":"dialog-close",className:"rounded-xs focus:outline-hidden absolute right-4 top-4 disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function jl({className:e,children:a}){return jsx("div",{className:"overflow-y-auto",children:jsx("div",{"data-slot":"dialog-content",className:d("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function $l(t){var r=t,{className:e,separator:a=false}=r,o=u(r,["className","separator"]);return jsxs(Fragment,{children:[jsx("div",s({"data-slot":"dialog-header",className:d("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsx(Le,{})]})}function Yl(t){var r=t,{className:e,separator:a=false}=r,o=u(r,["className","separator"]);return jsxs(Fragment,{children:[a&&jsx(Le,{}),jsx("div",s({"data-slot":"dialog-footer",className:d("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function es(l){var n=l,{className:e,iconLeft:a,iconRight:o,children:t}=n,r=u(n,["className","iconLeft","iconRight","children"]);let i=f=>R.isValidElement(f)?R.cloneElement(f,{size:32,strokeWidth:2.2}):f;return jsxs(Dialog.Title,c(s({"data-slot":"dialog-title",className:d("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&i(a),t,o&&i(o)]}))}function as(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Description,s({"data-slot":"dialog-description",className:d("text-md leading-md text-content-paragraph",e)},a))}var Ea=768;function De(){let[e,a]=R.useState(void 0);return R.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Ea-1}px)`),t=()=>{a(window.innerWidth<Ea);};return o.addEventListener("change",t),a(window.innerWidth<Ea),()=>o.removeEventListener("change",t)},[]),!!e}function _a(a){var e=u(a,[]);return jsx(DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function os(a){var e=u(a,[]);return jsx(DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function Wa(a){var e=u(a,[]);return jsx(DropdownMenu.Trigger,s({className:d("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Xa(r){var l=r,{className:e,sideOffset:a=4,side:o}=l,t=u(l,["className","sideOffset","side"]);let n=De();return jsx(DropdownMenu.Portal,{children:jsx(DropdownMenu.Content,s({"data-slot":"dropdown-menu-content",sideOffset:a,side:n?"bottom":o,className:d("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md 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 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",e)},t))})}function rs(a){var e=u(a,[]);return jsx(DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function ra(r){var l=r,{className:e,inset:a,variant:o="default"}=l,t=u(l,["className","inset","variant"]);return jsx(DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:d("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function ls(r){var l=r,{className:e,children:a,checked:o}=l,t=u(l,["className","children","checked"]);return jsxs(DropdownMenu.CheckboxItem,c(s({"data-slot":"dropdown-menu-checkbox-item",className:d("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function la(a){var e=u(a,[]);return jsx(DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function Ka(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);return jsxs(DropdownMenu.RadioItem,c(s({"data-slot":"dropdown-menu-radio-item",className:d("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function Za(t){var r=t,{className:e,inset:a}=r,o=u(r,["className","inset"]);return jsx(DropdownMenu.Label,s({"data-slot":"dropdown-menu-label","data-inset":a,className:d("px-2 py-3 text-xs font-semibold uppercase text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function Qa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:d("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function ss(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:d("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function ds(a){var e=u(a,[]);return jsx(DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function us(r){var l=r,{className:e,inset:a,children:o}=l,t=u(l,["className","inset","children"]);return jsxs(DropdownMenu.SubTrigger,c(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:d("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsx(ChevronRight,{className:"ml-auto size-3"})]}))}function ns(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(DropdownMenu.SubContent,s({"data-slot":"dropdown-menu-sub-content",className:d("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg 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 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",e)},a))}function ja(t){var r=t,{className:e,type:a}=r,o=u(r,["className","type"]);return jsx("input",s({type:a,"data-slot":"input",className:d("placeholder:text-muted-foreground shadow-xs peer flex h-9 w-full min-w-0 rounded-md border border-gray-stroke-muted bg-transparent px-3 py-1 text-md outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-300 md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-red-8 aria-invalid:border-red",e)},o))}var io=cva("inline-flex items-center gap-3 font-medium whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"text-gray-foreground hover:text-gray-foreground-emphasis"},size:{sm:"text-xs",md:"text-sm",lg:"text-md"}},defaultVariants:{variant:"regular",size:"md"}});function ps(r){var l=r,{className:e,variant:a,size:o}=l,t=u(l,["className","variant","size"]);return jsx(Label.Root,s({"data-slot":"label",className:d("flex select-none items-center gap-3 text-sm font-medium leading-none disabled:cursor-default disabled:text-gray-foreground-muted peer-disabled:cursor-default peer-disabled:text-gray-foreground-muted group-data-[disabled]:pointer-events-none group-data-[disabled]:text-gray-foreground-muted",e,io({className:e,size:o,variant:a}))},t))}function gs({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxs("svg",{className:d("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsx("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),jsx("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"})]})}function xs({width:e=60,height:a=67,className:o,svgClassName:t}){return jsx("svg",{className:d("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"})})}var Ie={tablet:"600px",mobile:"320px"};function co(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("nav",s({role:"navigation","aria-label":"pagination",className:d("flex w-full items-center justify-between",e)},a))}function po(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ul",s({className:d("flex flex-row items-center gap-2",e)},a))}function $a(r){var l=r,{count:e,label:a="itens",className:o}=l,t=u(l,["count","label","className"]);return jsx("p",c(s({className:d("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxs(Fragment,{children:["Mostrando"," ",jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxs(Fragment,{children:[jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function da(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("li",s({className:d("",e)},a))}function mo(p){var x=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:l="regular",activeVariant:n,inactiveVariant:i}=x,f=u(x,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsx(fe,c(s({"aria-current":a?"page":void 0,variant:a&&n?n:!a&&i?i:a?l:`${l}-soft`,className:d("",e),size:r,iconLeft:o,iconRight:t},f),{children:f.children}))}function go(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=u(l,["className","size","variant"]);return jsx(fe,c(s({"aria-label":"Go to previous page",className:d("",e),iconLeft:jsx(ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function xo(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=u(l,["className","size","variant"]);return jsx(fe,c(s({"aria-label":"Go to next page",className:d("",e),variant:o,iconRight:jsx(ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function ho(t){var r=t,{className:e,size:a="md"}=r,o=u(r,["className","size"]);return jsx("span",c(s({"aria-hidden":true,className:d("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsx(MoreHorizontal,{className:"h-4 w-4"})}))}function Lo(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let l=1;l<=o+1;l++)t.push(l);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let l=a-o;l<=a;l++)t.push(l);}else {t.push(1,-1);for(let l=e-r;l<=e+r;l++)t.push(l);t.push(-1,a);}}return t}function Cs({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:l,className:n,responsive:i=true,size:f="md"}){let[p,x]=R.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Ie.tablet));R.useEffect(()=>{if(typeof window=="undefined"||!i)return;let S=parseInt(Ie.tablet),b=()=>{x(window.innerWidth<=S);};return window.addEventListener("resize",b),b(),()=>window.removeEventListener("resize",b)},[i]);let h=typeof o=="number"?o:i&&p?0:2,I=i&&p,y=()=>Lo(e,a,h);return jsxs(co,{className:d("",n),children:[r!==void 0&&!I?jsx($a,{count:r,label:"itens"}):jsx("div",{}),jsxs(po,{children:[jsx(da,{children:jsx(go,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),y().map((S,b)=>jsx(da,{children:S===-1?jsx(ho,{size:f}):jsx(mo,{onClick:()=>t(S),isActive:S===e,size:f,children:S})},b)),jsx(da,{children:jsx(xo,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),l!==void 0&&!I?jsx($a,{count:l,label:"total"}):jsx("div",{})]})}var Ss={sm:"size-2 group-data-[disabled]:group-data-[state=checked]:size-1.5",md:"size-2.5 group-data-[disabled]:group-data-[state=checked]:size-1.5",lg:"size-3.5 group-data-[disabled]:group-data-[state=checked]:size-2"},bo=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-2 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function ws(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(RadioGroup.Root,s({"data-slot":"radio-group",className:d("grid gap-3",e)},a))}function Ps(r){var l=r,{className:e,size:a,variant:o}=l,t=u(l,["className","size","variant"]);return jsx(RadioGroup.Item,c(s({"data-slot":"radio-group-item",className:d("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",bo({size:a,variant:o}),e)},t),{children:jsx(RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsx(Circle,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Ss[a||"md"])})})}))}function As(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("table",c(s({className:d("block w-full border-collapse overflow-x-auto text-left",a)},o),{children:jsx("tbody",{className:"table w-full",children:e})}))}function Ts(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("tr",c(s({className:d("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function Ms(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("td",{className:"px-5 py-4 align-middle",children:jsxs("div",c(s({className:d("flex shrink-0 items-center overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium leading-5 text-gray-foreground",a)},o),{children:["#",e]}))})}function Ds(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:d("flex items-center gap-5",a),children:jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Bs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("div",c(s({className:d("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function Fs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("span",c(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function qs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("span",c(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function Ns(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx(he,c(s({className:d("bg-gradient-to-r from-secondary to-cm",a)},o),{icon:jsx(CheckboxFill,{className:"text-primary-foreground-onfill"}),children:e}))}function Os(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:d("flex flex-col items-start gap-2",a),children:e})}))}function Us(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("p",c(s({className:d("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function zs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("div",c(s({className:d("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Hs(l){var n=l,{src:e,alt:a,fallback:o="?",className:t}=n,r=u(n,["src","alt","fallback","className"]);return jsxs(Ba,c(s({size:"sm",className:d("ring-2 ring-background",t)},r),{children:[jsx(Fa,{src:e,alt:a}),jsx(qa,{children:o})]}))}function Vs(r){var l=r,{children:e,className:a,icon:o}=l,t=u(l,["children","className","icon"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},t),{children:jsx(he,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Gs(t){var r=t,{value:e,className:a}=r,o=u(r,["value","className"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},o),{children:jsxs("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",a),children:[jsxs("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:[jsxs("p",{className:"relative shrink-0 font-semibold text-gray-foreground",children:[e,"%"]}),jsx("p",{className:"relative shrink-0 font-medium text-gray-foreground-muted",children:"dom\xEDnio do foco"})]}),jsx(_s,{percentage:e})]})}))}function Es(r){var l=r,{children:e,className:a,onClick:o}=l,t=u(l,["children","className","onClick"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},t),{children:jsx("div",{className:"flex items-center justify-center gap-2",children:jsx(fe,{size:"sm",iconRight:jsx(ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})})}))}function _s({className:e,percentage:a}){let o=t=>t>=0&&t<=49?"bg-red":t>=50&&t<=80?"bg-yellow-lighten-1":t>=81&&t<=100?"bg-green-darken-2":"bg-gray-100";return jsx("div",{className:d("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsx("div",{className:d("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function et(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);return jsxs(ScrollArea.Root,c(s({"data-slot":"scroll-area",className:d("relative",e)},o),{children:[jsx(ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsx(qe,{}),jsx(qe,{orientation:"horizontal"}),jsx(ScrollArea.Corner,{})]}))}function qe(t){var r=t,{className:e,orientation:a="vertical"}=r,o=u(r,["className","orientation"]);return jsx(ScrollArea.ScrollAreaScrollbar,c(s({"data-slot":"scroll-area-scrollbar",orientation:a,className:d("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsx(ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Io=R.createContext(null);function Ks(r){var l=r,{className:e,size:a="md",children:o}=l,t=u(l,["className","size","children"]);return jsx(Io.Provider,{value:{size:a},children:jsx(Tabs.Root,c(s({"data-slot":"tabs",className:d("flex flex-col gap-2",e)},t),{children:o}))})}function Zs(t){var r=t,{className:e,containerClassName:a}=r,o=u(r,["className","containerClassName"]);return jsxs(et,{className:d("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsx(Tabs.List,s({"data-slot":"tabs-list",className:d("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsx(qe,{orientation:"horizontal"})]})}var Co=cva("shadow-transparent data-[state=active]:shadow-level-1 group inline-flex items-center justify-center gap-2.5 whitespace-nowrap rounded-[6px] font-medium text-gray-foreground outline-none data-[state=active]:bg-surface-card data-[state=active]:text-primary-foreground [&_svg]:shrink-0 [&_svg]:text-inherit disabled:text-gray-foreground-muted disabled:pointer-events-none",{variants:{size:{sm:"max-h-7 px-3 py-1.5 text-xs [&_svg]:size-4",md:"max-h-9 px-4 py-2 text-sm [&_svg]:size-5",lg:"max-h-11 px-4 py-2.5 text-md [&_svg]:size-6"}},defaultVariants:{size:"md"}});function Qs(l){var n=l,{className:e,icon:a,badge:o,children:t}=n,r=u(n,["className","icon","badge","children"]);var x;let i=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!r.disabled,f=R.useContext(Io),p=(x=f==null?void 0:f.size)!=null?x:"md";return jsxs(Tabs.Trigger,c(s({"data-slot":"tabs-trigger",className:d(Co({size:p,className:e}))},r),{children:[a,t&&jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:t}),jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:t})]}),i(o)&&jsx(ne,{size:p,variant:"regular",children:String(o)})]}))}function Js(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Tabs.Content,s({"data-slot":"tabs-content",className:d("flex-1 outline-none",e)},a))}var vo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),js=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),tt=e=>{let a=js(e);return a.charAt(0).toUpperCase()+a.slice(1)},pa=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),ko=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var So={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"};var Po=forwardRef((p,f)=>{var x=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:l,iconNode:n}=x,i=u(x,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return createElement("svg",s(s(c(s({ref:f},So),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:pa("lucide",r)}),!l&&!ko(i)&&{"aria-hidden":"true"}),i),[...n.map(([h,I])=>createElement(h,I)),...Array.isArray(l)?l:[l]])});var yo=(e,a)=>{let o=forwardRef((n,l)=>{var i=n,{className:t}=i,r=u(i,["className"]);return createElement(Po,s({ref:l,iconNode:a,className:pa(`lucide-${vo(tt(e))}`,`lucide-${e}`,t)},r))});return o.displayName=tt(e),o};var ad=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ne=yo("x",ad);function rt(a){var e=u(a,[]);return jsx(Dialog.Root,s({"data-slot":"sheet"},e))}function td(a){var e=u(a,[]);return jsx(Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function od(a){var e=u(a,[]);return jsx(Dialog.Close,s({"data-slot":"sheet-close"},e))}function rd(a){var e=u(a,[]);return jsx(Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function ld(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Overlay,s({"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)},a))}function lt(r){var l=r,{className:e,children:a,side:o="right"}=l,t=u(l,["className","children","side"]);return jsxs(rd,{children:[jsx(ld,{}),jsxs(Dialog.Content,c(s({"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",o==="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",o==="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",o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",o==="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)},t),{children:[a,jsxs(Dialog.Close,{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:[jsx(Ne,{className:"size-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function sd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",e)},a))}function dd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sheet-footer",className:d("mt-auto flex flex-col gap-2 p-4",e)},a))}function ud(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Title,s({"data-slot":"sheet-title",className:d("text-foreground font-semibold",e)},a))}function nd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Description,s({"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",e)},a))}function ma(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"skeleton",className:d("animate-pulse rounded-md bg-gray-150",e)},a))}function ga(o){var t=o,{delayDuration:e=0}=t,a=u(t,["delayDuration"]);return jsx(Tooltip.Provider,s({"data-slot":"tooltip-provider",delayDuration:e},a))}function xa(a){var e=u(a,[]);return jsx(ga,{children:jsx(Tooltip.Root,s({"data-slot":"tooltip"},e))})}function ha(a){var e=u(a,[]);return jsx(Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function La(r){var l=r,{className:e,sideOffset:a=0,children:o}=l,t=u(l,["className","sideOffset","children"]);return jsx(Tooltip.Portal,{children:jsxs(Tooltip.Content,c(s({"data-slot":"tooltip-content",sideOffset:a,className:d("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] 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",e)},t),{children:[o,jsx(Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}var gd="sidebar_state",xd=3600*24*7,hd="b",Ao=R.createContext(null);function Se(){let e=R.useContext(Ao);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ld(n){var i=n,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=i,l=u(i,["defaultOpen","open","onOpenChange","className","children"]);let f=De(),[p,x]=R.useState(false),[h,I]=R.useState(e),y=a!=null?a:h,S=R.useCallback(C=>{let P=typeof C=="function"?C(y):C;o?o(P):I(P),document.cookie=`${gd}=${P}; path=/; max-age=${xd}`;},[o,y]),b=R.useCallback(()=>f?x(C=>!C):S(C=>!C),[f,S,x]);R.useEffect(()=>{let C=P=>{P.key===hd&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),b());};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[b]);let A=y?"expanded":"collapsed",O=R.useMemo(()=>({state:A,open:y,setOpen:S,isMobile:f,openMobile:p,setOpenMobile:x,toggleSidebar:b}),[A,y,S,f,p,x,b]);return jsx(Ao.Provider,{value:O,children:jsx(ga,{delayDuration:0,children:jsx("div",c(s({"data-slot":"sidebar-wrapper",className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},l),{children:r}))})})}function bd(i){var f=i,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:l}=f,n=u(f,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:x,openMobile:h,setOpenMobile:I}=Se();return o==="none"?jsx("div",c(s({"data-slot":"sidebar",className:d("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},n),{children:l})):p?jsx(rt,c(s({open:h,onOpenChange:I},n),{children:jsx(lt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:d("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsx("div",{className:"flex h-full w-full flex-col",children:l})})})):jsxs("div",{className:d("group peer hidden text-gray-foreground md:block",t),"data-state":x,"data-collapsible":x==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsx("div",{"data-slot":"sidebar-gap",className:d("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsx("div",c(s({"data-slot":"sidebar-container",className:d("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted 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)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},n),{children:jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-sm",children:l})}))]})}function Id(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsx(HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:l,enableHover:n=false}=p,i=u(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:x,open:h,isMobile:I}=Se(),[y,S]=R.useState(false),A=l||{open:"Esconder",closed:"Mostrar"},O=()=>n&&y?h?jsx(ChevronLeftMd,{className:o}):jsx(ChevronRightMd,{className:o}):t,C=jsxs("button",c(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:d("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:P=>{a==null||a(P),x();},onMouseEnter:!I&&n?()=>S(true):void 0,onMouseLeave:!I&&n?()=>S(false):void 0},i),{children:[O(),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||I?C:jsxs(xa,{children:[jsx(ha,{asChild:true,children:C}),jsx(La,{side:"right",align:"center",children:h?A.open:A.closed})]})}function Cd(o){var t=o,{className:e}=t,a=u(t,["className"]);let{toggleSidebar:r}=Se();return jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:d("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 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","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function vd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("main",s({"data-slot":"sidebar-inset",className:d("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function kd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(ja,s({"data-slot":"sidebar-input","data-sidebar":"input",className:d("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Sd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function wd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:d("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Pd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Le,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:d("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function yd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:d("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Rd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:d("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Ad(t){var r=t,{className:e,asChild:a=false}=r,o=u(r,["className","asChild"]);let l=a?Slot.Slot:"div";return jsx(l,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function Td(t){var r=t,{className:e,asChild:a=false}=r,o=u(r,["className","asChild"]);let l=a?Slot.Slot:"button";return jsx(l,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:d("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Md(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",e)},a))}function Dd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",e)},a))}function Bd(r){var l=r,{className:e,isActive:a,children:o}=l,t=u(l,["className","isActive","children"]);return jsxs("li",c(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Fd=cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-[.55rem] text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:text-secondary-foreground active:font-semibold 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]:text-secondary-foreground data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:data-[active=true]:stroke-[2.2] [&>svg]:size-5 [&>svg]:shrink-0 mx-auto",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});function qd(i){var f=i,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:l}=f,n=u(f,["asChild","isActive","variant","size","tooltip","className"]);let p=e?Slot.Slot:"button",{isMobile:x,state:h}=Se(),I=jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:d(Fd({variant:o,size:t}),l)},n));return r?(typeof r=="string"&&(r={children:r}),jsxs(xa,{children:[jsx(ha,{asChild:true,children:I}),jsx(La,s({side:"right",align:"center",hidden:h!=="collapsed"||x},r))]})):I}function Nd(r){var l=r,{className:e,asChild:a=false,showOnHover:o=false}=l,t=u(l,["className","asChild","showOnHover"]);let n=a?Slot.Slot:"button";return jsx(n,s({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:d("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>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",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function Od(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:d("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","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)},a))}function Ud(t){var r=t,{className:e,showIcon:a=false}=r,o=u(r,["className","showIcon"]);let l=R.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",c(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:d("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsx(ma,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(ma,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))}function zd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ul",s({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:d("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function Hd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("li",s({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:d("group/menu-sub-item relative",e)},a))}function Vd({icon:e,title:a}){let{state:o,isMobile:t}=Se();return jsxs(Fragment,{children:[R.isValidElement(e)?R.cloneElement(e,{strokeWidth:1.8}):e,jsx("span",{className:d("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Gd(){return jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsx(ChevronRightMd,{size:20,strokeWidth:1.5})})}function Ed(l){var n=l,{asChild:e=false,size:a="md",isActive:o=false,className:t}=n,r=u(n,["asChild","size","isActive","className"]);let i=e?Slot.Slot:"a";return jsx(i,s({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:d("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground 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 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var Xd={sm:"size-2",md:"size-3",lg:"size-4"},Mo={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},Kd={sm:"data-[state=checked]:translate-x-[11px] data-[state=checked]:rtl:-translate-x-[11px] data-[state=checked]:data-[disabled]:translate-x-[10px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[10px]",md:"data-[state=checked]:translate-x-[15px] data-[state=checked]:rtl:-translate-x-[15px] data-[state=checked]:data-[disabled]:translate-x-[14px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[14px]",lg:"data-[state=checked]:translate-x-[19px] data-[state=checked]:rtl:-translate-x-[19px] data-[state=checked]:data-[disabled]:translate-x-[18px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[18px]"},Bo=cva("peer inline-flex shrink-0 items-center rounded-pill border-2 border-gray-stroke-muted outline-none transition-all data-[disabled]:cursor-default data-[disabled]:!bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=unchecked]:bg-surface-card data-[state=checked]:border-transparent data-[disabled]:data-[state=checked]:bg-gray-background-soft-muted data-[disabled]:data-[state=checked]:border-gray-stroke-muted enabled:hover:ring-2 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active",{variants:{size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{size:"md"}});function Zd(i){var f=i,{className:e,size:a,checkedIcon:o,uncheckedIcon:t,checked:r,defaultChecked:l}=f,n=u(f,["className","size","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[p,x]=R.useState(l||false),h=r!==void 0,I=h?r:p,y=o||t;return jsx(Switch.Root,c(s({"data-slot":"switch",className:d("group",Bo({size:a}),e),checked:r,defaultChecked:l,onCheckedChange:S=>{var b;h||x(S),(b=n.onCheckedChange)==null||b.call(n,S);}},n),{children:jsx(Switch.Thumb,{"data-slot":"switch-thumb",className:d("shadow-xs pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted",y&&"!bg-transparent data-[disabled]:!bg-transparent",Xd[a||"md"],Kd[a||"md"]),children:y&&jsxs(Fragment,{children:[I&&o&&jsx("span",{className:d("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",Mo[a||"md"]),children:o}),!I&&t&&jsx("span",{className:d("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",Mo[a||"md"]),children:t})]})})}))}var Fo=R.createContext({});function jd({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:l}){let[n,i]=R.useState(a||""),f={value:a||n,onValueChange:o||i};return jsx(Fo.Provider,{value:f,children:jsx(_a,{open:t,defaultOpen:r,onOpenChange:l,children:e})})}function $d({children:e,asChild:a=true,className:o}){return jsx(Wa,{className:o,asChild:a,children:e})}function Yd({children:e,align:a="center",side:o="right",className:t}){return jsx(Xa,{className:t,align:a,side:o,children:e})}function eu({children:e,label:a}){let{value:o,onValueChange:t}=R.useContext(Fo);return a?jsxs(Fragment,{children:[jsx(Za,{children:a}),jsx(la,{value:o,onValueChange:t,children:e})]}):jsx(la,{value:o,onValueChange:t,children:e})}function au({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxs(Ka,{value:a,onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxs(ra,{onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function tu({children:e,onClick:a,icon:o}){return jsxs(ra,{onClick:a,children:[o,e]})}function ou(){return jsx(Qa,{})}var Oo=R.createContext(null),lu=150,qo=16,su="w-8";function va(){let e=R.useContext(Oo);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function du(e,a){let o=R.useRef(null);return R.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),R.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Uo=cva("relative inline-flex min-w-full items-center justify-between gap-0 bg-surface-section",{variants:{variant:{standalone:"rounded-lg border border-gray-stroke-muted px-6",header:"border-b border-gray-stroke-muted px-3.5 sm:px-6 lg:px-8 bg-transparent"}},defaultVariants:{variant:"standalone"}}),zo=cva(["inline-flex min-w-fit flex-1 items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:text-gray-foreground-muted","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-all","relative font-medium text-gray-foreground hover:text-gray-foreground data-[state=active]:text-primary-foreground data-[state=active]:font-semibold"],{variants:{variant:{standalone:"px-3.5 md:px-10 lg:px-16",header:"px-4"},size:{md:"h-[46px] text-sm",lg:"h-[54px] text-base"}},defaultVariants:{variant:"standalone",size:"md"}}),uu=cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),No=cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",su],{variants:{side:{left:"left-0 bg-gradient-to-r from-background to-transparent",right:"right-0 bg-gradient-to-l from-background to-transparent"},variant:{standalone:"",header:""}},compoundVariants:[{side:"left",variant:"header",class:"left-3.5 sm:left-6 lg:left-8"},{side:"right",variant:"header",class:"right-3.5 sm:right-6 lg:right-8"}],defaultVariants:{side:"left",variant:"standalone"}}),Ho=cva("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{standalone:"",header:""},size:{md:"",lg:""}},compoundVariants:[{variant:"standalone",size:"md",class:"m-4"},{variant:"standalone",size:"lg",class:"m-6"},{variant:"header",size:"md",class:"my-4"},{variant:"header",size:"lg",class:"my-6"}],defaultVariants:{variant:"standalone",size:"md"}});function nu(n){var i=n,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=i,l=u(i,["className","variant","size","responsive","children"]);let[f,p]=R.useState(o),x=R.useCallback(()=>{if(typeof window=="undefined")return;let I=parseInt(Ie.tablet),y=parseInt(Ie.mobile),S=window.innerWidth;S<=y||S<=I?p("md"):p(o);},[o]),h=du(x,lu);return R.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return x(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[t,o,x,h]),jsx(Oo.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsx(Tabs.Root,c(s({"data-slot":"tabs","data-variant":a,"data-size":f,className:d("flex w-full max-w-full flex-col overflow-hidden",e)},l),{children:r}))})}function iu(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);let{variant:l,responsiveSize:n}=va(),i=R.useRef(null),f=R.useRef(null),[p,x]=R.useState(false),[h,I]=R.useState(false),[y,S]=R.useState(null),b=R.useCallback(()=>{let C=i.current;if(!C)return;let{scrollLeft:P,scrollWidth:H,clientWidth:F}=C,V=H>F;x(V&&P>0),I(V&&P<H-F-1);},[]),A=R.useCallback(()=>{let C=f.current;if(!C)return;let P=C.querySelector('[data-state="active"]');if(P){let H=C.getBoundingClientRect(),F=P.getBoundingClientRect();S({left:F.left-H.left,width:F.width});}},[]),O=R.useCallback(()=>{let C=i.current,P=f.current;if(!C||!P)return;let H=P.querySelector('[data-state="active"]');if(H){let F=C.getBoundingClientRect(),V=H.getBoundingClientRect();V.left<F.left?C.scrollBy({left:V.left-F.left-qo,behavior:"smooth"}):V.right>F.right&&C.scrollBy({left:V.right-F.right+qo,behavior:"smooth"});}},[]);return R.useEffect(()=>{let C=i.current;if(!C)return;b();let P=new ResizeObserver(()=>{b(),A();});return P.observe(C),C.addEventListener("scroll",b,{passive:true}),()=>{P.disconnect(),C.removeEventListener("scroll",b);}},[b,A]),R.useEffect(()=>{A();},[A,a]),R.useEffect(()=>{let C=f.current;if(!C)return;let P=new MutationObserver(H=>{for(let F of H)if(F.type==="attributes"&&F.attributeName==="data-state"){A(),O();break}});return P.observe(C,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>P.disconnect()},[A,O]),jsxs("div",{"data-slot":"tabs-list-wrapper",className:uu({variant:l}),children:[jsx("div",{className:d(No({side:"left",variant:l}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{className:d(No({side:"right",variant:l}),h?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{ref:i,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxs("div",{ref:f,className:"relative",children:[jsx(Tabs.List,c(s({"data-slot":"tabs-list","data-variant":l,"data-size":n,className:d(Uo({variant:l}),e)},o),{children:a})),y&&jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:y.left,width:y.width},"aria-hidden":"true"})]})})]})}function fu(l){var n=l,{className:e,children:a,icon:o,badge:t}=n,r=u(n,["className","children","icon","badge"]);let{variant:i,responsiveSize:f}=va(),p=R.useRef(null),[x,h]=R.useState(false);R.useEffect(()=>{let y=p.current;if(!y)return;let S=()=>{h(y.getAttribute("data-state")==="active");};S();let b=new MutationObserver(S);return b.observe(y,{attributes:true,attributeFilter:["data-state"]}),()=>b.disconnect()},[]);let I=()=>o?R.isValidElement(o)?R.cloneElement(o,{strokeWidth:x?2:1.6}):o:null;return jsxs(Tabs.Trigger,c(s({ref:p,"data-slot":"tabs-trigger","data-variant":i,"data-size":f,className:d(zo({variant:i,size:f}),e)},r),{children:[o&&jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:I()}),jsx("span",{children:a}),t&&jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function cu(o){var t=o,{className:e}=t,a=u(t,["className"]);let{variant:r,responsiveSize:l}=va();return jsx(Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":l,className:d(Ho({variant:r,size:l}),e)},a))}var Vo=cva("group/tile relative flex flex-col justify-center rounded-lg gap-0.5 px-5 py-4 cursor-default data-[disabled=true]:pointer-events-none",{variants:{variant:{regular:"bg-surface-settings-on text-primary-foreground fill-primary-foreground data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-on)_100%)] data-[disabled=true]:bg-surface-disable data-[inactive=true]:bg-surface-settings-off data-[inactive=true]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-off)_100%)]",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cm-background-fill-emphasis)_0%,_var(--color-cm-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-go-background-fill-emphasis)_0%,_var(--color-go-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cir-background-fill-emphasis)_0%,_var(--color-cir-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-ped-background-fill-emphasis)_0%,_var(--color-ped-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-prev-background-fill-emphasis)_0%,_var(--color-prev-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]"}},defaultVariants:{variant:"regular"}});function xu(n){var i=n,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=i,l=u(i,["className","variant","asChild","disabled","inactive"]);let f=o?Slot.Slot:"div";return jsxs(f,c(s({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:d(Vo({variant:a,className:e}),l.onClick&&!t&&"cursor-pointer")},l),{children:[l.children,l.onClick&&!t&&jsx(EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function hu(t){var r=t,{className:e,icon:a}=r,o=u(r,["className","icon"]);return jsx("div",c(s({"data-slot":"tile-icon",className:d("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Lu(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"tile-title",className:d("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function bu(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("span",s({"data-slot":"tile-description",className:d("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}/*! Bundled license information:
1
+ import*as R from'react';import {forwardRef,createElement}from'react';import {cva}from'class-variance-authority';import {CloseMd,User,ChevronRightMd,MoreHorizontal,TimeRemaining,Check,RemoveMinus,ChevronRight,ChevronLeftDuo,ChevronRightDuo,Circle,CheckboxFill,ArrowRightMd,HamburgerMd,EditPencil,ChevronLeftMd}from'@medway-ui/icons';import {clsx}from'clsx';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Slot,AlertDialog,Avatar,Progress,Checkbox,Collapsible,Separator,Dialog,DropdownMenu,Label,RadioGroup,ScrollArea,Tabs,Tooltip,Switch}from'radix-ui';var Go=Object.defineProperty,Eo=Object.defineProperties;var _o=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var gt=(e,a,o)=>a in e?Go(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,s=(e,a)=>{for(var o in a||(a={}))xt.call(a,o)&&gt(e,o,a[o]);if(_e)for(var o of _e(a))ht.call(a,o)&&gt(e,o,a[o]);return e},c=(e,a)=>Eo(e,_o(a));var u=(e,a)=>{var o={};for(var t in e)xt.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&_e)for(var t of _e(e))a.indexOf(t)<0&&ht.call(e,t)&&(o[t]=e[t]);return o};var Wo=(e,a)=>{let o=new Array(e.length+a.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<a.length;t++)o[e.length+t]=a[t];return o},Xo=(e,a)=>({classGroupId:e,validator:a}),St=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var Lt=[],Ko="arbitrary..",Zo=e=>{let a=Jo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return Qo(n);let i=n.split("-"),f=i[0]===""&&i.length>1?1:0;return wt(i,f,a)},getConflictingClassGroupIds:(n,i)=>{if(i){let f=t[n],p=o[n];return f?p?Wo(p,f):f:p||Lt}return o[n]||Lt}}},wt=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],l=o.nextPart.get(r);if(l){let p=wt(e,a+1,l);if(p)return p}let n=o.validators;if(n===null)return;let i=a===0?e.join("-"):e.slice(a).join("-"),f=n.length;for(let p=0;p<f;p++){let x=n[p];if(x.validator(i))return x.classGroupId}},Qo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),o=a.indexOf(":"),t=a.slice(0,o);return t?Ko+t:void 0})(),Jo=e=>{let{theme:a,classGroups:o}=e;return jo(o,a)},jo=(e,a)=>{let o=St();for(let t in e){let r=e[t];Aa(r,o,t,a);}return o},Aa=(e,a,o,t)=>{let r=e.length;for(let l=0;l<r;l++){let n=e[l];$o(n,a,o,t);}},$o=(e,a,o,t)=>{if(typeof e=="string"){Yo(e,a,o);return}if(typeof e=="function"){er(e,a,o,t);return}ar(e,a,o,t);},Yo=(e,a,o)=>{let t=e===""?a:Pt(a,e);t.classGroupId=o;},er=(e,a,o,t)=>{if(tr(e)){Aa(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Xo(o,e));},ar=(e,a,o,t)=>{let r=Object.entries(e),l=r.length;for(let n=0;n<l;n++){let[i,f]=r[n];Aa(f,Pt(a,i),o,t);}},Pt=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let l=0;l<r;l++){let n=t[l],i=o.nextPart.get(n);i||(i=St(),o.nextPart.set(n,i)),o=i;}return o},tr=e=>"isThemeGetter"in e&&e.isThemeGetter===true,or=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(l,n)=>{o[l]=n,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(l){let n=o[l];if(n!==void 0)return n;if((n=t[l])!==void 0)return r(l,n),n},set(l,n){l in o?o[l]=n:r(l,n);}}};var rr=[],bt=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),lr=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let l=[],n=0,i=0,f=0,p,x=r.length;for(let I=0;I<x;I++){let A=r[I];if(n===0&&i===0){if(A===":"){l.push(r.slice(f,I)),f=I+1;continue}if(A==="/"){p=I;continue}}A==="["?n++:A==="]"?n--:A==="("?i++:A===")"&&i--;}let L=l.length===0?r:r.slice(f),h=L,y=false;L.endsWith("!")?(h=L.slice(0,-1),y=true):L.startsWith("!")&&(h=L.slice(1),y=true);let S=p&&p>f?p-f:void 0;return bt(l,y,h,S)};if(a){let r=a+":",l=t;t=n=>n.startsWith(r)?l(n.slice(r.length)):bt(rr,false,n,void 0,true);}if(o){let r=t;t=l=>o({className:l,parseClassName:r});}return t},sr=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let l=0;l<o.length;l++){let n=o[l],i=n[0]==="[",f=a.has(n);i||f?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(n)):r.push(n);}return r.length>0&&(r.sort(),t.push(...r)),t}},dr=e=>s({cache:or(e.cacheSize),parseClassName:lr(e),sortModifiers:sr(e)},Zo(e)),ur=/\s+/,nr=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:l}=a,n=[],i=e.trim().split(ur),f="";for(let p=i.length-1;p>=0;p-=1){let x=i[p],{isExternal:L,modifiers:h,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:I}=o(x);if(L){f=x+(f.length>0?" "+f:f);continue}let A=!!I,O=t(A?S.substring(0,I):S);if(!O){if(!A){f=x+(f.length>0?" "+f:f);continue}if(O=t(S),!O){f=x+(f.length>0?" "+f:f);continue}A=false;}let C=h.length===0?"":h.length===1?h[0]:l(h).join(":"),P=y?C+"!":C,H=P+O;if(n.indexOf(H)>-1)continue;n.push(H);let F=r(O,A);for(let V=0;V<F.length;++V){let Pe=F[V];n.push(P+Pe);}f=x+(f.length>0?" "+f:f);}return f},ir=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=yt(o))&&(r&&(r+=" "),r+=t);return r},yt=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=yt(e[t]))&&(o&&(o+=" "),o+=a);return o},It=(e,...a)=>{let o,t,r,l,n=f=>{let p=a.reduce((x,L)=>L(x),e());return o=dr(p),t=o.cache.get,r=o.cache.set,l=i,i(f)},i=f=>{let p=t(f);if(p)return p;let x=nr(f,o);return r(f,x),x};return l=n,(...f)=>l(ir(...f))},fr=[],N=e=>{let a=o=>o[e]||fr;return a.isThemeGetter=true,a},Rt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,At=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cr=/^\d+\/\d+$/,pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mr=/\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$/,gr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,me=e=>cr.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),ya=e=>e.endsWith("%")&&w(e.slice(0,-1)),$=e=>pr.test(e),Lr=()=>true,br=e=>mr.test(e)&&!gr.test(e),Tt=()=>false,Ir=e=>xr.test(e),Cr=e=>hr.test(e),vr=e=>!m(e)&&!g(e),kr=e=>ge(e,Bt,Tt),m=e=>Rt.test(e),ue=e=>ge(e,Ft,br),Ra=e=>ge(e,Rr,w),Ct=e=>ge(e,Mt,Tt),Sr=e=>ge(e,Dt,Cr),We=e=>ge(e,qt,Ir),g=e=>At.test(e),ye=e=>xe(e,Ft),wr=e=>xe(e,Ar),vt=e=>xe(e,Mt),Pr=e=>xe(e,Bt),yr=e=>xe(e,Dt),Xe=e=>xe(e,qt,true),ge=(e,a,o)=>{let t=Rt.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},xe=(e,a,o=false)=>{let t=At.exec(e);return t?t[1]?a(t[1]):o:false},Mt=e=>e==="position"||e==="percentage",Dt=e=>e==="image"||e==="url",Bt=e=>e==="length"||e==="size"||e==="bg-size",Ft=e=>e==="length",Rr=e=>e==="number",Ar=e=>e==="family-name",qt=e=>e==="shadow";var kt=()=>{let e=N("color"),a=N("font"),o=N("text"),t=N("font-weight"),r=N("tracking"),l=N("leading"),n=N("breakpoint"),i=N("container"),f=N("spacing"),p=N("radius"),x=N("shadow"),L=N("inset-shadow"),h=N("text-shadow"),y=N("drop-shadow"),S=N("blur"),I=N("perspective"),A=N("aspect"),O=N("ease"),C=N("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...H(),g,m],V=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto","contain","none"],v=()=>[g,m,f],J=()=>[me,"full","auto",...v()],dt=()=>[le,"none","subgrid",g,m],ut=()=>["auto",{span:["full",le,g,m]},le,g,m],ze=()=>[le,"auto",g,m],nt=()=>["auto","min","max","fr",g,m],Sa=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...v()],de=()=>[me,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],b=()=>[e,g,m],it=()=>[...H(),vt,Ct,{position:[g,m]}],ft=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ct=()=>["auto","cover","contain",Pr,kr,{size:[g,m]}],wa=()=>[ya,ye,ue],G=()=>["","none","full",p,g,m],_=()=>["",w,ye,ue],He=()=>["solid","dashed","dotted","double"],pt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[w,ya,vt,Ct],mt=()=>["","none",S,g,m],Ve=()=>["none",w,g,m],Ge=()=>["none",w,g,m],Pa=()=>[w,g,m],Ee=()=>[me,"full",...v()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[Lr],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[vr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",w],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",me,m,g,A]}],container:["container"],columns:[{columns:[w,m,g,i]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:Pe()}],"overscroll-x":[{"overscroll-x":Pe()}],"overscroll-y":[{"overscroll-y":Pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",g,m]}],basis:[{basis:[me,"full","auto",i,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,me,"auto","initial","none",m]}],grow:[{grow:["",w,g,m]}],shrink:[{shrink:["",w,g,m]}],order:[{order:[le,"first","last","none",g,m]}],"grid-cols":[{"grid-cols":dt()}],"col-start-end":[{col:ut()}],"col-start":[{"col-start":ze()}],"col-end":[{"col-end":ze()}],"grid-rows":[{"grid-rows":dt()}],"row-start-end":[{row:ut()}],"row-start":[{"row-start":ze()}],"row-end":[{"row-end":ze()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":nt()}],"auto-rows":[{"auto-rows":nt()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...Sa(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...Sa()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Sa()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m: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":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],w:[{w:[i,"screen",...de()]}],"min-w":[{"min-w":[i,"screen","none",...de()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[n]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",o,ye,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,g,Ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ya,m]}],"font-family":[{font:[wr,m,a]}],"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:[r,g,m]}],"line-clamp":[{"line-clamp":[w,"none",g,Ra]}],leading:[{leading:[l,...v()]}],"list-image":[{"list-image":["none",g,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...He(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",g,ue]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[w,"auto",g,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,m]}],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",g,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:it()}],"bg-repeat":[{bg:ft()}],"bg-size":[{bg:ct()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,g,m],radial:["",g,m],conic:[le,g,m]},yr,Sr]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:wa()}],"gradient-via-pos":[{via:wa()}],"gradient-to-pos":[{to:wa()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...He(),"hidden","none"]}],"divide-style":[{divide:[...He(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...He(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,g,m]}],"outline-w":[{outline:["",w,ye,ue]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",x,Xe,We]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",L,Xe,We]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[w,ue]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",h,Xe,We]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[w,g,m]}],"mix-blend":[{"mix-blend":[...pt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pt()}],"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":[w]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[g,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"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":H()}],"mask-image-conic-pos":[{"mask-conic":[w]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:it()}],"mask-repeat":[{mask:ft()}],"mask-size":[{mask:ct()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,m]}],filter:[{filter:["","none",g,m]}],blur:[{blur:mt()}],brightness:[{brightness:[w,g,m]}],contrast:[{contrast:[w,g,m]}],"drop-shadow":[{"drop-shadow":["","none",y,Xe,We]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",w,g,m]}],"hue-rotate":[{"hue-rotate":[w,g,m]}],invert:[{invert:["",w,g,m]}],saturate:[{saturate:[w,g,m]}],sepia:[{sepia:["",w,g,m]}],"backdrop-filter":[{"backdrop-filter":["","none",g,m]}],"backdrop-blur":[{"backdrop-blur":mt()}],"backdrop-brightness":[{"backdrop-brightness":[w,g,m]}],"backdrop-contrast":[{"backdrop-contrast":[w,g,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,g,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,g,m]}],"backdrop-invert":[{"backdrop-invert":["",w,g,m]}],"backdrop-opacity":[{"backdrop-opacity":[w,g,m]}],"backdrop-saturate":[{"backdrop-saturate":[w,g,m]}],"backdrop-sepia":[{"backdrop-sepia":["",w,g,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",g,m]}],ease:[{ease:["linear","initial",O,g,m]}],delay:[{delay:[w,g,m]}],animate:[{animate:["none",C,g,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[I,g,m]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:Ge()}],"scale-x":[{"scale-x":Ge()}],"scale-y":[{"scale-y":Ge()}],"scale-z":[{"scale-z":Ge()}],"scale-3d":["scale-3d"],skew:[{skew:Pa()}],"skew-x":[{"skew-x":Pa()}],"skew-y":[{"skew-y":Pa()}],transform:[{transform:[g,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"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",g,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g,m]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[w,ye,ue,Ra]}],stroke:[{stroke:["none",...b()]}],"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"]}},Tr=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:l={}})=>(Re(e,"cacheSize",a),Re(e,"prefix",o),Re(e,"experimentalParseClassName",t),Ke(e.theme,l.theme),Ke(e.classGroups,l.classGroups),Ke(e.conflictingClassGroups,l.conflictingClassGroups),Ke(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),Re(e,"orderSensitiveModifiers",l.orderSensitiveModifiers),Ze(e.theme,r.theme),Ze(e.classGroups,r.classGroups),Ze(e.conflictingClassGroups,r.conflictingClassGroups),Ze(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Nt(e,r,"orderSensitiveModifiers"),e),Re=(e,a,o)=>{o!==void 0&&(e[a]=o);},Ke=(e,a)=>{if(a)for(let o in a)Re(e,o,a[o]);},Ze=(e,a)=>{if(a)for(let o in a)Nt(e,a,o);},Nt=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},Ot=(e,...a)=>typeof e=="function"?It(kt,e,...a):It(()=>Tr(kt(),e),...a);var Dr=Ot({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-sm","text-md","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"]}}});function d(...e){return Dr(clsx(e))}var Ta=R.createContext(null),zt=cva("relative flex flex-col items-center justify-between gap-5 w-full rounded-md px-4 py-3 text-sm has-[>svg]:gap-x-9 gap-y-1 items-center [&>svg]:translate-y-0 [&>svg]:text-current lg:flex-row",{variants:{variant:{regular:"[background:linear-gradient(0deg,_var(--color-primary-background-soft)_0%,_var(--color-primary-background-soft)_100%),_var(--color-surface-card)] text-primary-foreground [&>svg]:text-primary-foreground",emphasis:"[background:linear-gradient(0deg,_var(--color-secondary-background-soft)_0%,_var(--color-secondary-background-soft)_100%),_var(--color-surface-card)] text-secondary-foreground [&>svg]:text-secondary-foreground",success:"[background:linear-gradient(0deg,_var(--color-green-background-soft)_0%,_var(--color-green-background-soft)_100%),_var(--color-surface-card)] text-green-foreground [&>svg]:text-green-foreground",warning:"[background:linear-gradient(0deg,_var(--color-yellow-background-soft)_0%,_var(--color-yellow-background-soft)_100%),_var(--color-surface-card)] text-yellow-foreground [&>svg]:text-yellow-foreground",error:"[background:linear-gradient(0deg,_var(--color-red-background-soft)_0%,_var(--color-red-background-soft)_100%),_var(--color-surface-card)] text-red-foreground [&>svg]:text-red-foreground"}},defaultVariants:{variant:"regular"}});function Fr(l){var n=l,{className:e,variant:a="regular",onClose:o,children:t}=n,r=u(n,["className","variant","onClose","children"]);let i=R.Children.toArray(t).some(p=>R.isValidElement(p)&&p.type===Vt),f=R.Children.toArray(t).some(p=>R.isValidElement(p)&&p.type===Ht);return jsx(Ta.Provider,{value:{variant:a,hasDescription:i,hasTitle:f,onClose:o},children:jsxs("div",c(s({"data-slot":"alert",role:"alert",className:d(zt({variant:a}),e)},r),{children:[t,o&&jsx(CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function qr(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-container",className:d("flex gap-3",e)},a))}function Nr(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-content",className:d("flex flex-col gap-1",e)},a))}function Or(t){var r=t,{className:e,icon:a}=r,o=u(r,["className","icon"]);return jsx("div",c(s({"data-slot":"alert-icon",className:d("size-6",e)},o),{children:a}))}function Ht(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-title",className:d("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Vt(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-description",className:d("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function Ur(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Ta),l=(r==null?void 0:r.hasDescription)||false,n=(r==null?void 0:r.hasTitle)||false,i=r==null?void 0:r.onClose;return jsx("div",s({"data-slot":"alert-actions",className:d("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!l||!n)&&i&&"lg:right-5",e)},a))}var Gt=cva("inline-flex items-center justify-center rounded-pill px-3 py-2 min-h-10 text-sm font-semibold transition-colors whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:brightness-90",{variants:{variant:{regular:"text-current",basic:"text-current"},alertVariant:{regular:"",emphasis:"",success:"",warning:"",error:""}},compoundVariants:[{variant:"regular",alertVariant:"regular",class:"bg-primary-background-soft"},{variant:"regular",alertVariant:"emphasis",class:"bg-secondary-background-soft"},{variant:"regular",alertVariant:"success",class:"bg-green-background-soft"},{variant:"regular",alertVariant:"warning",class:"bg-yellow-background-soft"},{variant:"regular",alertVariant:"error",class:"bg-red-background-soft"}],defaultVariants:{variant:"regular",alertVariant:"regular"}});function zr(t){var r=t,{className:e,variant:a}=r,o=u(r,["className","variant"]);let l=R.useContext(Ta),n=(l==null?void 0:l.variant)||"regular";return jsx("button",s({className:d(Gt({variant:a,alertVariant:n}),e)},o))}function Ma({size:e=24,className:a}){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:d("animate-spin",a),children:jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Er={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},_r={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Wt=cva("inline-flex items-center justify-center rounded-pill border font-semibold w-fit whitespace-nowrap shrink-0 gap-1 [&>svg]:pointer-events-none overflow-hidden border-transparent px-2",{variants:{variant:{regular:"bg-secondary-background-fill text-secondary-foreground-onfill",error:"bg-red-background-soft text-red-stroke-emphasis",warning:"bg-yellow-background-soft text-yellow-foreground",freemium:"[background:radial-gradient(135.09%_111.8%_at_0%_50%,rgba(24,98,188,0.02)_0%,rgba(0,32,91,0)_100%),linear-gradient(46deg,rgba(62,218,199,0.56)_6.54%,rgba(24,98,188,0.17)_85.21%),var(--color-primary)] text-white"},size:{sm:"min-w-4 text-xxs [&>svg]:size-2.5",md:"min-w-5 text-xs [&>svg]:size-3",lg:"min-w-6 text-xs [&>svg]:size-3.5",xl:"min-w-7 text-sm [&>svg]:size-4"}},defaultVariants:{variant:"regular",size:"md"}});function ne(n){var i=n,{className:e,variant:a,size:o,icon:t,asChild:r=false}=i,l=u(i,["className","variant","size","icon","asChild"]);let f=r?Slot.Slot:"span",p=R.Children.count(l.children)>0,x=!!t&&!p,L=typeof l.children=="string"||typeof l.children=="number"?String(l.children).trim():"",h=/^[A-Za-z0-9]$/.test(L),y=/^[A-Za-z0-9]{2,3}$/.test(L),S=/^\d{1,2}\S$/.test(L),I=y||S;return jsxs(f,c(s({"data-slot":"badge",className:d(Wt({variant:a,size:o}),(x||h)&&Er[o||"md"],!x&&I&&_r[o||"md"],e)},l),{children:[t,l.children]}))}var Zr={sm:"!h-8 !min-h-8 !w-8 !px-3 !py-2",md:"!h-10 !min-h-10 !w-10 !px-[14px] !py-[10px]",lg:"!h-12 !min-h-12 !w-12 !p-3",xl:"!h-14 !min-h-14 !w-14 !p-3"},Xt={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Qr={sm:"sm",md:"md",lg:"md",xl:"lg"},Ae=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill text-sm font-semibold whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill hover:bg-primary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","regular-basic":"bg-transparent text-primary-foreground hover:bg-primary-background-soft-emphasis hover:text-primary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill hover:bg-secondary-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","emphasis-basic":"bg-transparent text-secondary-foreground hover:bg-secondary-background-soft-emphasis hover:text-secondary-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",error:"bg-red-background-fill text-red-foreground-onfill hover:bg-red-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","error-basic":"bg-transparent text-red-foreground hover:bg-red-background-soft-emphasis hover:text-red-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",warning:"bg-yellow-background-fill text-yellow-foreground-onfill hover:bg-yellow-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","warning-basic":"bg-transparent text-yellow-foreground hover:bg-yellow-background-soft-emphasis hover:text-yellow-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",success:"bg-green-background-fill text-green-foreground-onfill hover:bg-green-background-fill-emphasis disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted","success-basic":"bg-transparent text-green-foreground hover:bg-green-background-soft-emphasis hover:text-green-foreground-emphasis disabled:bg-transparent disabled:text-gray-foreground-muted",outlined:"border border-gray-stroke-muted bg-transparent text-foreground hover:border-transparent hover:bg-gray-50 disabled:border-transparent dark:bg-transparent hover:dark:border-gray-400 disabled:border-gray-stroke-muted disabled:text-gray-foreground-muted",gradient:"text-white [background:linear-gradient(284deg,var(--color-primary)_2.11%,var(--color-secondary)_128.06%)] hover:[background:linear-gradient(284deg,var(--color-primary)2.11%,var(--color-secondary)102.63%)] disabled:[background:var(--color-gray-50)] disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill",medbrain:"border-2 border-transparent bg-clip-text [background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-secondary),var(--color-cm-lighten-3))_border-box] [box-shadow:-8px_0_8px_0_var(--color-prev-16)_inset,8px_0_8px_0_var(--color-secondary-24)_inset,0_0_8px_0_var(--color-cm-16)_inset] hover:[background:linear-gradient(var(--color-white),var(--color-white))_padding-box,linear-gradient(75deg,var(--color-cm-lighten-3),var(--color-secondary))_border-box] [&_span]:bg-clip-text [&_span]:text-transparent [&_span]:bg-gradient-to-r [&_span]:from-cm [&_span]:to-primary [&_span]:hover:to-secondary disabled:bg-gray-background-fill-muted disabled:text-gray-foreground-onfill [&_svg]:text-cm-darken-1"},size:{sm:"min-h-8 min-w-8 px-3 py-1 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-[13px] text-xs",md:"min-h-10 min-w-10 px-3.5 py-2 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-4 text-sm",lg:"min-h-12 min-w-12 px-4 py-3 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-6 text-md",xl:"min-h-14 min-w-14 px-[18px] py-3.5 has-[>svg]:px-[18px] [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"regular",size:"md"}});function fe(L){var h=L,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:l,iconLeft:n,badge:i,loading:f=false,alert:p}=h,x=u(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let y=r?Slot.Slot:"button",S=P=>P!=null&&P!==0&&P!==""&&P!=="0",I=P=>P,A=!x.children&&(n||l||p),O=()=>p?jsxs("span",{className:d("relative mr-1 flex size-2.5",Xt[t||"md"]),children:[jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsx("span",{className:d("relative inline-flex size-2.5 rounded-full",Xt[t||"md"]),style:{backgroundColor:p}})]}):null,C=()=>f?jsxs(Fragment,{children:[jsx(Ma,{className:"[grid-area:stack]"}),jsx("span",{className:d("[grid-area:stack]",f&&"invisible"),children:x.children})]}):jsxs(Fragment,{children:[p?O():n&&I(n),x.children&&jsx("span",{children:x.children}),l&&I(l)]});return jsxs("div",{className:d("relative",a),children:[S(i)&&jsx(ne,{size:Qr[t||"md"],variant:"regular",className:d("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${i}-notifications`,children:String(i)}),jsx(y,c(s({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:d(A&&Zr[t||"md"],f&&"!inline-grid",Ae({variant:o,size:t,className:e}))},x),{children:C()}))]})}function Jr(a){var e=u(a,[]);return jsx(AlertDialog.Root,s({"data-slot":"alert-dialog"},e))}function jr(a){var e=u(a,[]);return jsx(AlertDialog.Trigger,s({"data-slot":"alert-dialog-trigger"},e))}function Zt(a){var e=u(a,[]);return jsx(AlertDialog.Portal,s({"data-slot":"alert-dialog-portal"},e))}function Qt(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Overlay,s({"data-slot":"alert-dialog-overlay",className:d("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function $r(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsxs(Zt,{children:[jsx(Qt,{}),jsx(AlertDialog.Content,s({"data-slot":"alert-dialog-content",className:d("fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-surface-elevated p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-w-lg",e)},a))]})}function Yr(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",e)},a))}function el(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"alert-dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function al(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Title,s({"data-slot":"alert-dialog-title",className:d("text-lg font-semibold",e)},a))}function tl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Description,s({"data-slot":"alert-dialog-description",className:d("text-sm text-foreground",e)},a))}function ol(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Action,s({className:d(Ae(),e)},a))}function rl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(AlertDialog.Cancel,s({className:d(Ae({variant:"outlined"}),e)},a))}var ul={sm:"sm",md:"md",lg:"md",xl:"lg"},Jt=cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-8",md:"size-10",lg:"size-12",xl:"size-14"}},defaultVariants:{size:"md"}});function Ba(l){var n=l,{className:e,size:a,badge:o,children:t}=n,r=u(n,["className","size","badge","children"]);return jsxs("div",{className:"relative",children:[o&&jsx(ne,{size:ul[a||"md"],className:d("absolute -right-2 -top-1 z-10"),children:String(o)}),jsx(Avatar.Root,c(s({"data-slot":"avatar",className:d(Jt({size:a,className:e}))},r),{children:t}))]})}function Fa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Avatar.Image,s({"data-slot":"avatar-image",className:d("size-full object-cover",e)},a))}function qa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Avatar.Fallback,c(s({"data-slot":"avatar-fallback",className:d("flex size-full items-center justify-center rounded-full bg-gray-background-soft text-sm font-semibold text-primary-foreground",e)},a),{children:a.children?a.children:jsx(User,{className:"size-1/2"})}))}function Na(a){var e=u(a,[]);return jsx("nav",s({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function Oa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ol",s({className:d("line-clamp-1 flex flex-wrap items-center gap-1.5 text-sm font-medium text-gray-foreground [&_svg]:shrink-0",e),"data-slot":"breadcrumb-list"},a))}function pl(r){var l=r,{className:e,icon:a,children:o}=l,t=u(l,["className","icon","children"]);return jsx("li",c(s({className:d("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function ml(t){var r=t,{asChild:e,className:a}=r,o=u(r,["asChild","className"]);let l=e?Slot.Root:"a";return jsx(l,s({className:d("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function gl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("span",s({"aria-current":"page","aria-disabled":"true",className:d("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function xl(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("li",c(s({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsx(ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function hl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsxs("span",c(s({"aria-hidden":"true",className:d("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsx(MoreHorizontal,{className:"text-gray-foreground",size:18}),jsx("span",{className:"sr-only",children:"More"})]}))}var $t=cva("inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-semibold w-fit whitespace-nowrap shrink-0 gap-1.5 transition-colors overflow-hidden max-h-6",{variants:{variant:{regular:"bg-primary-background-fill text-primary-foreground-onfill fill-primary-foreground-onfill","regular-soft":"bg-primary-background-soft text-primary-foreground fill-primary-foreground","regular-basic":"bg-transparent text-primary-foreground fill-primary-foreground",emphasis:"bg-secondary-background-fill text-secondary-foreground-onfill fill-secondary-foreground-onfill","emphasis-soft":"bg-secondary-background-soft text-secondary-foreground fill-secondary-foreground","emphasis-basic":"bg-transparent text-secondary-foreground fill-secondary-foreground",gray:"bg-gray-background-fill text-gray-foreground-onfill fill-gray-foreground-onfill","gray-soft":"bg-gray-background-soft text-gray-foreground fill-gray-foreground","gray-basic":"bg-transparent text-gray-foreground fill-gray-foreground",success:"bg-green-background-fill text-green-foreground-onfill fill-green-foreground-onfill","success-soft":"bg-green-background-soft text-green-foreground fill-green-foreground","success-basic":"bg-transparent text-green-foreground fill-green-foreground",error:"bg-red-background-fill text-red-foreground-onfill fill-red-foreground-onfill","error-soft":"bg-red-background-soft text-red-foreground fill-red-foreground","error-basic":"bg-transparent text-red-foreground fill-red-foreground",warning:"bg-yellow-background-fill text-yellow-foreground-onfill fill-yellow-foreground-onfill","warning-soft":"bg-yellow-background-soft text-yellow-foreground fill-yellow-foreground","warning-basic":"bg-transparent text-yellow-foreground fill-yellow-foreground",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill","cm-soft":"bg-cm-background-soft text-cm-foreground fill-cm-foreground","cm-basic":"bg-transparent text-cm-foreground fill-cm-foreground",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill","go-soft":"bg-go-background-soft text-go-foreground fill-go-foreground","go-basic":"bg-transparent text-go-foreground fill-go-foreground",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill","cir-soft":"bg-cir-background-soft text-cir-foreground fill-cir-foreground","cir-basic":"bg-transparent text-cir-foreground fill-cir-foreground",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill","ped-soft":"bg-ped-background-soft text-ped-foreground fill-ped-foreground","ped-basic":"bg-transparent text-ped-foreground fill-ped-foreground",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill","prev-soft":"bg-prev-background-soft text-prev-foreground fill-prev-foreground","prev-basic":"bg-transparent text-prev-foreground fill-prev-foreground"}},defaultVariants:{variant:"regular"}});function Il(t){var r=t,{className:e,icon:a}=r,o=u(r,["className","icon"]);return jsx("div",c(s({"data-slot":"tag-icon",className:d("[&>svg]:size-3.5",e)},o),{children:a}))}function he(n){var i=n,{className:e,variant:a,asChild:o=false,icon:t,children:r}=i,l=u(i,["className","variant","asChild","icon","children"]);let f=o?Slot.Slot:"span";return jsxs(f,c(s({"data-slot":"tag",className:d($t({variant:a}),e)},l),{children:[t&&jsx(Il,{icon:t}),r]}))}function Ua(x){var L=x,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:l,value:n=0,size:i=96,strokeWidth:f=2}=L,p=u(L,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof n=="string",y=h?0:n,S=(i-f)/2,I=S*2*Math.PI,A=I-y/100*I,O=Math.max(18,Math.min(i/5)),C=Math.max(10,Math.min(i/9,16));return jsxs("div",c(s({"data-slot":"progress-circle",className:d("relative inline-flex items-center justify-center",e),style:{width:i,height:i}},p),{children:[jsxs("svg",{className:"absolute inset-0 -rotate-90",width:i,height:i,viewBox:`0 0 ${i} ${i}`,children:[jsx("circle",{"data-slot":"progress-circle-track",cx:i/2,cy:i/2,r:S,stroke:"currentColor",strokeWidth:f,fill:"none",className:d("text-gray-stroke-muted",o)}),jsx("circle",{"data-slot":"progress-circle-indicator",cx:i/2,cy:i/2,r:S,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:I,strokeDashoffset:A,strokeLinecap:"round",className:d("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxs("div",{"data-slot":"progress-circle-content",className:"relative z-10 flex flex-col items-center justify-center px-2 text-sm font-medium text-gray-foreground-muted",children:[jsxs("div",{children:[jsx("span",{className:d("mr-px font-semibold",t),style:{fontSize:`${O}px`},children:n}),!h&&"%"]}),r&&jsx("div",{"data-slot":"progress-circle-label",className:d("text-center font-medium leading-tight text-gray-foreground-muted",l),style:{fontSize:`${C}px`},children:r})]})]}))}function Va(l){var n=l,{className:e,indicatorClassName:a,label:o,value:t}=n,r=u(n,["className","indicatorClassName","label","value"]);let i=Math.round(t||0);return jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxs("span",{className:"font-semibold text-gray-foreground",children:[i,"%"]})," ",jsx("span",{children:o})]}),jsx(Progress.Root,c(s({"data-slot":"progress",className:d("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsx(Progress.Indicator,{"data-slot":"progress-indicator",className:d("relative -top-[0.5px] flex h-0.5 w-full flex-1 bg-primary-stroke transition-all",a),style:{transform:`translateX(-${100-(t||0)}%)`}})}))]})}var Me=R.createContext(null);function kl(l){var n=l,{className:e,done:a,postponed:o,skipped:t}=n,r=u(n,["className","done","postponed","skipped"]);let i=R.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsx(Me.Provider,{value:i,children:jsx("div",s({"data-slot":"card-week",className:d("flex flex-col overflow-hidden rounded-xl border border-gray-stroke-muted text-gray-foreground-muted",e)},r))})}function Sl(l){var n=l,{className:e,children:a,tag:o,tagIcon:t}=n,r=u(n,["className","children","tag","tagIcon"]);return jsxs("div",c(s({"data-slot":"card-week-breadcrumb",className:d("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsx(Na,{className:"flex-1 overflow-hidden",children:jsx(Oa,{className:"flex-nowrap gap-1.5 text-xs [&>[data-slot=breadcrumb-item]:last-of-type>span]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type>span]:overflow-hidden [&>[data-slot=breadcrumb-item]:last-of-type]:min-w-0 [&>[data-slot=breadcrumb-item]:last-of-type]:flex-1 [&>[data-slot=breadcrumb-item]:last-of-type_[data-slot=breadcrumb-page]]:truncate [&_[data-slot=breadcrumb-page]]:block",children:a})}),o&&jsx(he,{variant:"regular-soft",icon:t,children:o})]}))}function wl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-container",className:d("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function Pl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-header",className:d("flex justify-between [&.border-b]:pb-6",e)},a))}function yl(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done,n=r==null?void 0:r.postponed,i=r==null?void 0:r.skipped;return jsx("div",s({"data-slot":"card-week-title",className:d("text-lg font-semibold leading-lg text-primary-foreground",(l||n||i)&&"text-primary-foreground-muted line-through",e)},a))}function Rl(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done,n=r==null?void 0:r.postponed,i=r==null?void 0:r.skipped;return jsx("div",s({"data-slot":"card-week-description",className:d("text-xs font-semibold leading-xs text-gray-foreground",(l||n||i)&&"text-gray-foreground-muted",e)},a))}function Al(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-tags",className:d("flex flex-wrap items-center gap-2 [[data-slot=card-week-header]:not(:has([data-slot=card-week-progress]))+&]:mt-6",e)},a))}function Tl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",c(s({"data-slot":"card-week-progress-circle",className:d("flex flex-1 justify-end",e)},a),{children:jsx(Ua,s({size:104},a))}))}function Ml(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done;return jsx("div",c(s({"data-slot":"card-week-progress",className:d("flex flex-1",e)},a),{children:jsx(Va,s({value:l?100:a.value},a))}))}function Dl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-footer",className:d("mt-auto flex flex-col gap-2",e)},a))}function Bl(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);return jsx("div",c(s({"data-slot":"card-week-content",className:d("flex flex-col text-xs font-medium",e)},o),{children:a}))}function Fl(r){var l=r,{className:e,children:a,isTime:o}=l,t=u(l,["className","children","isTime"]);return jsxs("div",c(s({"data-slot":"card-week-text",className:d("flex items-center gap-1.5",o?"text-secondary-foreground":"text-gray-foreground-muted",e)},t),{children:[o&&jsx(TimeRemaining,{size:16}),jsx("span",{children:a})]}))}function ql(o){var t=o,{className:e}=t,a=u(t,["className"]);let r=R.useContext(Me),l=r==null?void 0:r.done,n=r==null?void 0:r.postponed,i=r==null?void 0:r.skipped;return !l&&!n&&!i?null:n||i?jsxs("div",c(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold text-yellow-darken-4",children:n?"Adiado":"Pulado"})]})):jsxs("div",c(s({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsx(Check,{size:12,strokeWidth:1.67})}),jsx("div",{className:"font-semibold",children:"Feito"})]}))}function Nl(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"card-week-actions",className:d("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var oo=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-sm whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-2 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted [&:disabled_svg]:text-gray-background-fill-muted"},size:{sm:"size-4 [&_svg]:size-3",md:"size-5 [&_svg]:size-4",lg:"size-6 [&_svg]:size-5"}},defaultVariants:{variant:"regular",size:"md"}});function Hl(l){var n=l,{className:e,size:a,variant:o,uncheckIcon:t}=n,r=u(n,["className","size","variant","uncheckIcon"]);return jsx(Checkbox.Root,c(s({"data-slot":"checkbox",className:d("group peer",oo({size:a,variant:o}),e)},r),{children:jsx(Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsx(RemoveMinus,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6}):jsx(Check,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-primary-foreground-onfill"),strokeWidth:2.6})})}))}var ro=R.createContext({animation:void 0});function Vl(o){var t=o,{animation:e}=t,a=u(t,["animation"]);return jsx(ro.Provider,{value:{animation:e},children:jsx(Collapsible.Root,s({"data-slot":"collapsible"},a))})}function Gl(a){var e=u(a,[]);return jsx(Collapsible.Trigger,s({"data-slot":"collapsible-trigger"},e))}function El(o){var t=o,{className:e}=t,a=u(t,["className"]);let{animation:r}=R.useContext(ro),l={accordion:"overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",fade:"data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"};return jsx(Collapsible.Content,s({"data-slot":"collapsible-content",className:d(r&&l[r],e)},a))}function Le(r){var l=r,{className:e,orientation:a="horizontal",decorative:o=true}=l,t=u(l,["className","orientation","decorative"]);return jsx(Separator.Root,s({"data-slot":"separator-root",decorative:o,orientation:a,className:d("shrink-0 bg-gray-stroke-muted data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e)},t))}function Kl(a){var e=u(a,[]);return jsx(Dialog.Root,s({"data-slot":"dialog"},e))}function Zl(a){var e=u(a,[]);return jsx(Dialog.Trigger,s({"data-slot":"dialog-trigger"},e))}function lo(a){var e=u(a,[]);return jsx(Dialog.Portal,s({"data-slot":"dialog-portal"},e))}function Ql(a){var e=u(a,[]);return jsx(Dialog.Close,s({"data-slot":"dialog-close"},e))}function so(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Overlay,s({"data-slot":"dialog-overlay",className:d("fixed inset-0 z-50 bg-black-48 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},a))}function Jl(l){var n=l,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=n,r=u(n,["className","overlayClassName","children","showCloseButton"]);return jsxs(lo,{"data-slot":"dialog-portal",children:[jsx(so,{className:a}),jsxs(Dialog.Content,c(s({"data-slot":"dialog-container",className:d("fixed left-1/2 top-1/2 z-50 flex max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-0 overflow-y-auto rounded-xl border bg-background p-0 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:max-h-[85vh] sm:max-w-lg",e)},r),{children:[o,t&&jsxs(Dialog.Close,{"data-slot":"dialog-close",className:"rounded-xs focus:outline-hidden absolute right-4 top-4 disabled:pointer-events-none data-[state=open]:text-gray-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[jsx(CloseMd,{}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function jl({className:e,children:a}){return jsx("div",{className:"overflow-y-auto",children:jsx("div",{"data-slot":"dialog-content",className:d("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function $l(t){var r=t,{className:e,separator:a=false}=r,o=u(r,["className","separator"]);return jsxs(Fragment,{children:[jsx("div",s({"data-slot":"dialog-header",className:d("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsx(Le,{})]})}function Yl(t){var r=t,{className:e,separator:a=false}=r,o=u(r,["className","separator"]);return jsxs(Fragment,{children:[a&&jsx(Le,{}),jsx("div",s({"data-slot":"dialog-footer",className:d("flex flex-col-reverse gap-2 px-8 py-6 sm:flex-row sm:justify-end",e)},o))]})}function es(l){var n=l,{className:e,iconLeft:a,iconRight:o,children:t}=n,r=u(n,["className","iconLeft","iconRight","children"]);let i=f=>R.isValidElement(f)?R.cloneElement(f,{size:32,strokeWidth:2.2}):f;return jsxs(Dialog.Title,c(s({"data-slot":"dialog-title",className:d("flex items-center gap-3 text-title-md font-semibold leading-title-md !text-content-title",e)},r),{children:[a&&i(a),t,o&&i(o)]}))}function as(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Description,s({"data-slot":"dialog-description",className:d("text-md leading-md text-content-paragraph",e)},a))}var Ea=768;function De(){let[e,a]=R.useState(void 0);return R.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Ea-1}px)`),t=()=>{a(window.innerWidth<Ea);};return o.addEventListener("change",t),a(window.innerWidth<Ea),()=>o.removeEventListener("change",t)},[]),!!e}function _a(a){var e=u(a,[]);return jsx(DropdownMenu.Root,s({"data-slot":"dropdown-menu"},e))}function os(a){var e=u(a,[]);return jsx(DropdownMenu.Portal,s({"data-slot":"dropdown-menu-portal"},e))}function Wa(a){var e=u(a,[]);return jsx(DropdownMenu.Trigger,s({className:d("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Xa(r){var l=r,{className:e,sideOffset:a=4,side:o}=l,t=u(l,["className","sideOffset","side"]);let n=De();return jsx(DropdownMenu.Portal,{children:jsx(DropdownMenu.Content,s({"data-slot":"dropdown-menu-content",sideOffset:a,side:n?"bottom":o,className:d("max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 max-h-screen min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-surface-elevated p-3 pb-2 text-foreground shadow-md 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 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",e)},t))})}function rs(a){var e=u(a,[]);return jsx(DropdownMenu.Group,s({"data-slot":"dropdown-menu-group"},e))}function ra(r){var l=r,{className:e,inset:a,variant:o="default"}=l,t=u(l,["className","inset","variant"]);return jsx(DropdownMenu.Item,s({"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":o,className:d("data-[variant=destructive]:*:[svg]:!text-destructive outline-hidden relative flex cursor-pointer select-none items-center gap-2.5 rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-red-foreground data-[disabled]:opacity-50 data-[variant=destructive]:hover:bg-red-background-soft-emphasis dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e)},t))}function ls(r){var l=r,{className:e,children:a,checked:o}=l,t=u(l,["className","children","checked"]);return jsxs(DropdownMenu.CheckboxItem,c(s({"data-slot":"dropdown-menu-checkbox-item",className:d("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:text-secondary-foreground",e),checked:o},t),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function la(a){var e=u(a,[]);return jsx(DropdownMenu.RadioGroup,s({"data-slot":"dropdown-menu-radio-group"},e))}function Ka(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);return jsxs(DropdownMenu.RadioItem,c(s({"data-slot":"dropdown-menu-radio-item",className:d("outline-hidden relative flex cursor-pointer select-none items-center gap-2 rounded-md py-3 pl-2 pr-7 text-sm font-medium text-gray-foreground hover:bg-secondary-background-soft-emphasis focus:outline-0 aria-checked:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:[&_img]:brightness-0 dark:[&_img]:invert [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:text-secondary-foreground",e)},o),{children:[jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsx(DropdownMenu.ItemIndicator,{children:jsx(Check,{className:"size-4"})})})]}))}function Za(t){var r=t,{className:e,inset:a}=r,o=u(r,["className","inset"]);return jsx(DropdownMenu.Label,s({"data-slot":"dropdown-menu-label","data-inset":a,className:d("px-2 py-3 text-xs font-semibold uppercase text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function Qa(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(DropdownMenu.Separator,s({"data-slot":"dropdown-menu-separator",className:d("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function ss(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("span",s({"data-slot":"dropdown-menu-shortcut",className:d("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function ds(a){var e=u(a,[]);return jsx(DropdownMenu.Sub,s({"data-slot":"dropdown-menu-sub"},e))}function us(r){var l=r,{className:e,inset:a,children:o}=l,t=u(l,["className","inset","children"]);return jsxs(DropdownMenu.SubTrigger,c(s({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:d("flex cursor-pointer select-none items-center rounded-sm px-2 py-2 text-sm font-medium text-gray-foreground outline-0 focus:outline-0 data-[inset]:pl-8",e)},t),{children:[o,jsx(ChevronRight,{className:"ml-auto size-3"})]}))}function ns(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(DropdownMenu.SubContent,s({"data-slot":"dropdown-menu-sub-content",className:d("origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border bg-surface-elevated p-1 text-gray-foreground shadow-lg 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 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",e)},a))}function ja(t){var r=t,{className:e,type:a}=r,o=u(r,["className","type"]);return jsx("input",s({type:a,"data-slot":"input",className:d("placeholder:text-muted-foreground shadow-xs peer flex h-9 w-full min-w-0 rounded-md border border-gray-stroke-muted bg-transparent px-3 py-1 text-md outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-300 md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-red-8 aria-invalid:border-red",e)},o))}var io=cva("inline-flex items-center gap-3 font-medium whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"text-gray-foreground hover:text-gray-foreground-emphasis"},size:{sm:"text-xs",md:"text-sm",lg:"text-md"}},defaultVariants:{variant:"regular",size:"md"}});function ps(r){var l=r,{className:e,variant:a,size:o}=l,t=u(l,["className","variant","size"]);return jsx(Label.Root,s({"data-slot":"label",className:d("flex select-none items-center gap-3 text-sm font-medium leading-none disabled:cursor-default disabled:text-gray-foreground-muted peer-disabled:cursor-default peer-disabled:text-gray-foreground-muted group-data-[disabled]:pointer-events-none group-data-[disabled]:text-gray-foreground-muted",e,io({className:e,size:o,variant:a}))},t))}function gs({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxs("svg",{className:d("dark:brightness-0 dark:invert",o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:a,children:[jsx("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),jsx("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"})]})}function xs({width:e=60,height:a=67,className:o,svgClassName:t}){return jsx("svg",{className:d("dark:brightness-0 dark:invert",o),width:e,height:a,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"})})}var Ie={tablet:"600px",mobile:"320px"};function co(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("nav",s({role:"navigation","aria-label":"pagination",className:d("flex w-full items-center justify-between",e)},a))}function po(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ul",s({className:d("flex flex-row items-center gap-2",e)},a))}function $a(r){var l=r,{count:e,label:a="itens",className:o}=l,t=u(l,["count","label","className"]);return jsx("p",c(s({className:d("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxs(Fragment,{children:["Mostrando"," ",jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxs(Fragment,{children:[jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function da(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("li",s({className:d("",e)},a))}function mo(p){var x=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:l="regular",activeVariant:n,inactiveVariant:i}=x,f=u(x,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsx(fe,c(s({"aria-current":a?"page":void 0,variant:a&&n?n:!a&&i?i:a?l:`${l}-soft`,className:d("",e),size:r,iconLeft:o,iconRight:t},f),{children:f.children}))}function go(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=u(l,["className","size","variant"]);return jsx(fe,c(s({"aria-label":"Go to previous page",className:d("",e),iconLeft:jsx(ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function xo(r){var l=r,{className:e,size:a="md",variant:o="regular-basic"}=l,t=u(l,["className","size","variant"]);return jsx(fe,c(s({"aria-label":"Go to next page",className:d("",e),variant:o,iconRight:jsx(ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function ho(t){var r=t,{className:e,size:a="md"}=r,o=u(r,["className","size"]);return jsx("span",c(s({"aria-hidden":true,className:d("flex items-center justify-center",{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a],e)},o),{children:jsx(MoreHorizontal,{className:"h-4 w-4"})}))}function Lo(e,a,o=2){let t=[];if(a<=o+2)for(let r=1;r<=a;r++)t.push(r);else {let r=Math.floor(o/2);if(e<=r+1){for(let l=1;l<=o+1;l++)t.push(l);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let l=a-o;l<=a;l++)t.push(l);}else {t.push(1,-1);for(let l=e-r;l<=e+r;l++)t.push(l);t.push(-1,a);}}return t}function Cs({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:l,className:n,responsive:i=true,size:f="md"}){let[p,x]=R.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Ie.tablet));R.useEffect(()=>{if(typeof window=="undefined"||!i)return;let S=parseInt(Ie.tablet),I=()=>{x(window.innerWidth<=S);};return window.addEventListener("resize",I),I(),()=>window.removeEventListener("resize",I)},[i]);let L=typeof o=="number"?o:i&&p?0:2,h=i&&p,y=()=>Lo(e,a,L);return jsxs(co,{className:d("",n),children:[r!==void 0&&!h?jsx($a,{count:r,label:"itens"}):jsx("div",{}),jsxs(po,{children:[jsx(da,{children:jsx(go,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),y().map((S,I)=>jsx(da,{children:S===-1?jsx(ho,{size:f}):jsx(mo,{onClick:()=>t(S),isActive:S===e,size:f,children:S})},I)),jsx(da,{children:jsx(xo,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),l!==void 0&&!h?jsx($a,{count:l,label:"total"}):jsx("div",{})]})}var Ss={sm:"size-2 group-data-[disabled]:group-data-[state=checked]:size-1.5",md:"size-2.5 group-data-[disabled]:group-data-[state=checked]:size-1.5",lg:"size-3.5 group-data-[disabled]:group-data-[state=checked]:size-2"},bo=cva("inline-flex items-center justify-center place-items-center gap-2 rounded-pill whitespace-nowrap transition-all disabled:pointer-events-none shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0 [grid-template-areas:'stack']",{variants:{variant:{regular:"bg-surface-card border-2 border-gray-stroke-muted enabled:hover:ring-2 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=unchecked]:enabled:hover:border-gray-stroke disabled:bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=checked]:border-primary-background-fill data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis data-[state=checked]:enabled:hover:border-primary-background-fill-emphasis data-[state=checked]:enabled:hover:ring-state-active disabled:data-[state=checked]:bg-gray-background-soft-muted disabled:data-[state=checked]:border-gray-stroke-muted [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function ws(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(RadioGroup.Root,s({"data-slot":"radio-group",className:d("grid gap-3",e)},a))}function Ps(r){var l=r,{className:e,size:a,variant:o}=l,t=u(l,["className","size","variant"]);return jsx(RadioGroup.Item,c(s({"data-slot":"radio-group-item",className:d("shadow-xs group peer aspect-square size-4 shrink-0 rounded-full outline-none transition-[color,box-shadow] disabled:cursor-not-allowed",bo({size:a,variant:o}),e)},t),{children:jsx(RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsx(Circle,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Ss[a||"md"])})})}))}function As(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("table",c(s({className:d("block w-full border-collapse overflow-x-auto text-left",a)},o),{children:jsx("tbody",{className:"table w-full",children:e})}))}function Ts(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("tr",c(s({className:d("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function Ms(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("td",{className:"px-5 py-4 align-middle",children:jsxs("div",c(s({className:d("flex shrink-0 items-center overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium leading-5 text-gray-foreground",a)},o),{children:["#",e]}))})}function Ds(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:d("flex items-center gap-5",a),children:jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function Bs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("div",c(s({className:d("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function Fs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("span",c(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function qs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("span",c(s({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function Ns(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx(he,c(s({className:d("bg-gradient-to-r from-secondary to-cm",a)},o),{icon:jsx(CheckboxFill,{className:"text-primary-foreground-onfill"}),children:e}))}function Os(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},o),{children:jsx("div",{className:d("flex flex-col items-start gap-2",a),children:e})}))}function Us(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("p",c(s({className:d("relative shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[12px] text-gray-foreground",a)},o),{children:e}))}function zs(t){var r=t,{children:e,className:a}=r,o=u(r,["children","className"]);return jsx("div",c(s({className:d("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function Hs(l){var n=l,{src:e,alt:a,fallback:o="?",className:t}=n,r=u(n,["src","alt","fallback","className"]);return jsxs(Ba,c(s({size:"sm",className:d("ring-2 ring-background",t)},r),{children:[jsx(Fa,{src:e,alt:a}),jsx(qa,{children:o})]}))}function Vs(r){var l=r,{children:e,className:a,icon:o}=l,t=u(l,["children","className","icon"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},t),{children:jsx(he,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Gs(t){var r=t,{value:e,className:a}=r,o=u(r,["value","className"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},o),{children:jsxs("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",a),children:[jsxs("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:[jsxs("p",{className:"relative shrink-0 font-semibold text-gray-foreground",children:[e,"%"]}),jsx("p",{className:"relative shrink-0 font-medium text-gray-foreground-muted",children:"dom\xEDnio do foco"})]}),jsx(_s,{percentage:e})]})}))}function Es(r){var l=r,{children:e,className:a,onClick:o}=l,t=u(l,["children","className","onClick"]);return jsx("td",c(s({className:"px-5 py-4 align-middle"},t),{children:jsx("div",{className:"flex items-center justify-center gap-2",children:jsx(fe,{size:"sm",iconRight:jsx(ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})})}))}function _s({className:e,percentage:a}){let o=t=>t>=0&&t<=49?"bg-red":t>=50&&t<=80?"bg-yellow-lighten-1":t>=81&&t<=100?"bg-green-darken-2":"bg-gray-100";return jsx("div",{className:d("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsx("div",{className:d("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function et(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);return jsxs(ScrollArea.Root,c(s({"data-slot":"scroll-area",className:d("relative",e)},o),{children:[jsx(ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsx(qe,{}),jsx(qe,{orientation:"horizontal"}),jsx(ScrollArea.Corner,{})]}))}function qe(t){var r=t,{className:e,orientation:a="vertical"}=r,o=u(r,["className","orientation"]);return jsx(ScrollArea.ScrollAreaScrollbar,c(s({"data-slot":"scroll-area-scrollbar",orientation:a,className:d("flex touch-none select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e)},o),{children:jsx(ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Io=R.createContext(null);function Ks(r){var l=r,{className:e,size:a="md",children:o}=l,t=u(l,["className","size","children"]);return jsx(Io.Provider,{value:{size:a},children:jsx(Tabs.Root,c(s({"data-slot":"tabs",className:d("flex flex-col gap-2",e)},t),{children:o}))})}function Zs(t){var r=t,{className:e,containerClassName:a}=r,o=u(r,["className","containerClassName"]);return jsxs(et,{className:d("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsx(Tabs.List,s({"data-slot":"tabs-list",className:d("inline-flex w-fit items-center justify-center rounded-md bg-gray-background-soft p-0.5",e)},o)),jsx(qe,{orientation:"horizontal"})]})}var Co=cva("shadow-transparent data-[state=active]:shadow-level-1 group inline-flex items-center justify-center gap-2.5 whitespace-nowrap rounded-[6px] font-medium text-gray-foreground outline-none data-[state=active]:bg-surface-card data-[state=active]:text-primary-foreground [&_svg]:shrink-0 [&_svg]:text-inherit disabled:text-gray-foreground-muted disabled:pointer-events-none",{variants:{size:{sm:"max-h-7 px-3 py-1.5 text-xs [&_svg]:size-4",md:"max-h-9 px-4 py-2 text-sm [&_svg]:size-5",lg:"max-h-11 px-4 py-2.5 text-md [&_svg]:size-6"}},defaultVariants:{size:"md"}});function Qs(n){var i=n,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=i,l=u(i,["className","icon","badge","badgeVariant","children"]);var L;let f=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!l.disabled,p=R.useContext(Io),x=(L=p==null?void 0:p.size)!=null?L:"md";return jsxs(Tabs.Trigger,c(s({"data-slot":"tabs-trigger",className:d(Co({size:x,className:e}))},l),{children:[a,r&&jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),f(o)&&jsx(ne,{size:x,variant:t,children:String(o)})]}))}function Js(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Tabs.Content,s({"data-slot":"tabs-content",className:d("flex-1 outline-none",e)},a))}var vo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),js=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),tt=e=>{let a=js(e);return a.charAt(0).toUpperCase()+a.slice(1)},pa=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),ko=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var So={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"};var Po=forwardRef((p,f)=>{var x=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:l,iconNode:n}=x,i=u(x,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return createElement("svg",s(s(c(s({ref:f},So),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:pa("lucide",r)}),!l&&!ko(i)&&{"aria-hidden":"true"}),i),[...n.map(([L,h])=>createElement(L,h)),...Array.isArray(l)?l:[l]])});var yo=(e,a)=>{let o=forwardRef((n,l)=>{var i=n,{className:t}=i,r=u(i,["className"]);return createElement(Po,s({ref:l,iconNode:a,className:pa(`lucide-${vo(tt(e))}`,`lucide-${e}`,t)},r))});return o.displayName=tt(e),o};var ad=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ne=yo("x",ad);function rt(a){var e=u(a,[]);return jsx(Dialog.Root,s({"data-slot":"sheet"},e))}function td(a){var e=u(a,[]);return jsx(Dialog.Trigger,s({"data-slot":"sheet-trigger"},e))}function od(a){var e=u(a,[]);return jsx(Dialog.Close,s({"data-slot":"sheet-close"},e))}function rd(a){var e=u(a,[]);return jsx(Dialog.Portal,s({"data-slot":"sheet-portal"},e))}function ld(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Overlay,s({"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)},a))}function lt(r){var l=r,{className:e,children:a,side:o="right"}=l,t=u(l,["className","children","side"]);return jsxs(rd,{children:[jsx(ld,{}),jsxs(Dialog.Content,c(s({"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",o==="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",o==="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",o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",o==="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)},t),{children:[a,jsxs(Dialog.Close,{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:[jsx(Ne,{className:"size-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function sd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",e)},a))}function dd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sheet-footer",className:d("mt-auto flex flex-col gap-2 p-4",e)},a))}function ud(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Title,s({"data-slot":"sheet-title",className:d("text-foreground font-semibold",e)},a))}function nd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Dialog.Description,s({"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",e)},a))}function ma(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"skeleton",className:d("animate-pulse rounded-md bg-gray-150",e)},a))}function ga(o){var t=o,{delayDuration:e=0}=t,a=u(t,["delayDuration"]);return jsx(Tooltip.Provider,s({"data-slot":"tooltip-provider",delayDuration:e},a))}function xa(a){var e=u(a,[]);return jsx(ga,{children:jsx(Tooltip.Root,s({"data-slot":"tooltip"},e))})}function ha(a){var e=u(a,[]);return jsx(Tooltip.Trigger,s({"data-slot":"tooltip-trigger"},e))}function La(r){var l=r,{className:e,sideOffset:a=0,children:o}=l,t=u(l,["className","sideOffset","children"]);return jsx(Tooltip.Portal,{children:jsxs(Tooltip.Content,c(s({"data-slot":"tooltip-content",sideOffset:a,className:d("origin-(--radix-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md bg-surface-elevated px-3 py-2 text-sm font-medium text-gray-foreground-emphasis animate-in fade-in-0 zoom-in-95 [filter:drop-shadow(0_0_1px_var(--color-drop-shadow-layer-a))_drop-shadow(0_2px_2px_var(--color-drop-shadow-layer-b))] 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",e)},t),{children:[o,jsx(Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}var gd="sidebar_state",xd=3600*24*7,hd="b",Ao=R.createContext(null);function Se(){let e=R.useContext(Ao);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ld(n){var i=n,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=i,l=u(i,["defaultOpen","open","onOpenChange","className","children"]);let f=De(),[p,x]=R.useState(false),[L,h]=R.useState(e),y=a!=null?a:L,S=R.useCallback(C=>{let P=typeof C=="function"?C(y):C;o?o(P):h(P),document.cookie=`${gd}=${P}; path=/; max-age=${xd}`;},[o,y]),I=R.useCallback(()=>f?x(C=>!C):S(C=>!C),[f,S,x]);R.useEffect(()=>{let C=P=>{P.key===hd&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),I());};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[I]);let A=y?"expanded":"collapsed",O=R.useMemo(()=>({state:A,open:y,setOpen:S,isMobile:f,openMobile:p,setOpenMobile:x,toggleSidebar:I}),[A,y,S,f,p,x,I]);return jsx(Ao.Provider,{value:O,children:jsx(ga,{delayDuration:0,children:jsx("div",c(s({"data-slot":"sidebar-wrapper",className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},l),{children:r}))})})}function bd(i){var f=i,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:l}=f,n=u(f,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:x,openMobile:L,setOpenMobile:h}=Se();return o==="none"?jsx("div",c(s({"data-slot":"sidebar",className:d("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},n),{children:l})):p?jsx(rt,c(s({open:L,onOpenChange:h},n),{children:jsx(lt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:d("w-[var(--sidebar-width-mobile)] bg-surface-navigation p-0 text-gray-foreground [&>button]:hidden",t),side:e,children:jsx("div",{className:"flex h-full w-full flex-col",children:l})})})):jsxs("div",{className:d("group peer hidden text-gray-foreground md:block",t),"data-state":x,"data-collapsible":x==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsx("div",{"data-slot":"sidebar-gap",className:d("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),jsx("div",c(s({"data-slot":"sidebar-container",className:d("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] border-gray-stroke-muted 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)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},n),{children:jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-surface-navigation group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-gray-stroke-muted group-data-[variant=floating]:shadow-sm",children:l})}))]})}function Id(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsx(HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:l,enableHover:n=false}=p,i=u(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:x,open:L,isMobile:h}=Se(),[y,S]=R.useState(false),A=l||{open:"Esconder",closed:"Mostrar"},O=()=>n&&y?L?jsx(ChevronLeftMd,{className:o}):jsx(ChevronRightMd,{className:o}):t,C=jsxs("button",c(s({"data-sidebar":"trigger","data-slot":"sidebar-trigger",className:d("flex min-h-8 min-w-8 items-center justify-center rounded-full bg-surface-elevated text-gray-foreground transition-all duration-200 hover:shadow-[0px_0px_2px_0px_rgba(24,26,30,0.16),0px_2px_4px_0px_rgba(24,26,30,0.08)] [&>svg]:text-gray-foreground",e),onClick:P=>{a==null||a(P),x();},onMouseEnter:!h&&n?()=>S(true):void 0,onMouseLeave:!h&&n?()=>S(false):void 0},i),{children:[O(),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?C:jsxs(xa,{children:[jsx(ha,{asChild:true,children:C}),jsx(La,{side:"right",align:"center",children:L?A.open:A.closed})]})}function Cd(o){var t=o,{className:e}=t,a=u(t,["className"]);let{toggleSidebar:r}=Se();return jsx("button",s({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:d("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-gray-stroke-muted group-data-[side=left]:-right-4 group-data-[side=right]:left-0 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","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-surface-navigation","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e)},a))}function vd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("main",s({"data-slot":"sidebar-inset",className:d("relative flex w-full flex-1 flex-col bg-surface-navigation","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e)},a))}function kd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(ja,s({"data-slot":"sidebar-input","data-sidebar":"input",className:d("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Sd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function wd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-footer","data-sidebar":"footer",className:d("flex flex-col gap-0.5 px-4 pb-3 [[data-state=collapsed]_&]:px-2",e)},a))}function Pd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx(Le,s({"data-slot":"sidebar-separator","data-sidebar":"separator",className:d("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function yd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-content","data-sidebar":"content",className:d("flex min-h-0 flex-1 flex-col gap-0.5 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e)},a))}function Rd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-group","data-sidebar":"group",className:d("relative flex w-full min-w-0 flex-col p-2 px-4",e)},a))}function Ad(t){var r=t,{className:e,asChild:a=false}=r,o=u(r,["className","asChild"]);let l=a?Slot.Slot:"div";return jsx(l,s({"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:d("outline-hidden flex h-12 shrink-0 items-center whitespace-nowrap rounded-md px-2 text-xs font-semibold uppercase text-gray-foreground-muted ring-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:mt-0 group-data-[collapsible=icon]:hidden",e)},o))}function Td(t){var r=t,{className:e,asChild:a=false}=r,o=u(r,["className","asChild"]);let l=a?Slot.Slot:"button";return jsx(l,s({"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:d("outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e)},o))}function Md(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",e)},a))}function Dd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ul",s({"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",e)},a))}function Bd(r){var l=r,{className:e,isActive:a,children:o}=l,t=u(l,["className","isActive","children"]);return jsxs("li",c(s({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Fd=cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-[.55rem] text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:text-secondary-foreground active:font-semibold 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]:text-secondary-foreground data-[active=true]:font-semibold data-[active=true]:hover:bg-secondary-background-soft-emphasis data-[active=true]:hover:text-secondary-foreground group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:data-[active=true]:stroke-[2.2] [&>svg]:size-5 [&>svg]:shrink-0 mx-auto",{variants:{variant:{default:"hover:bg-secondary-background-soft-emphasis",section:"[[data-state=collapsed]_&]:p-[5px]",outline:"bg-surface-navigation shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary-background-soft-emphasis hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-md group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});function qd(i){var f=i,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:l}=f,n=u(f,["asChild","isActive","variant","size","tooltip","className"]);let p=e?Slot.Slot:"button",{isMobile:x,state:L}=Se(),h=jsx(p,s({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:d(Fd({variant:o,size:t}),l)},n));return r?(typeof r=="string"&&(r={children:r}),jsxs(xa,{children:[jsx(ha,{asChild:true,children:h}),jsx(La,s({side:"right",align:"center",hidden:L!=="collapsed"||x},r))]})):h}function Nd(r){var l=r,{className:e,asChild:a=false,showOnHover:o=false}=l,t=u(l,["className","asChild","showOnHover"]);let n=a?Slot.Slot:"button";return jsx(n,s({"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:d("outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-gray-foreground ring-ring transition-transform hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 peer-hover/menu-button:text-secondary-stroke-emphasis [&>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",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-secondary md:opacity-0",e)},t))}function Od(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:d("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-gray-foreground","peer-hover/menu-button:text-secondary peer-data-[active=true]/menu-button:text-secondary","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)},a))}function Ud(t){var r=t,{className:e,showIcon:a=false}=r,o=u(r,["className","showIcon"]);let l=R.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",c(s({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:d("flex h-8 items-center gap-0.5 rounded-md px-2",e)},o),{children:[a&&jsx(ma,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(ma,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))}function zd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("ul",s({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:d("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-gray-stroke-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e)},a))}function Hd(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("li",s({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:d("group/menu-sub-item relative",e)},a))}function Vd({icon:e,title:a}){let{state:o,isMobile:t}=Se();return jsxs(Fragment,{children:[R.isValidElement(e)?R.cloneElement(e,{strokeWidth:1.8}):e,jsx("span",{className:d("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Gd(){return jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsx(ChevronRightMd,{size:20,strokeWidth:1.5})})}function Ed(l){var n=l,{asChild:e=false,size:a="md",isActive:o=false,className:t}=n,r=u(n,["asChild","size","isActive","className"]);let i=e?Slot.Slot:"a";return jsx(i,s({"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":o,className:d("outline-hidden flex h-9 min-w-0 -translate-x-px items-center gap-0.5 overflow-hidden rounded-md px-2 font-medium text-gray-foreground ring-ring hover:bg-secondary-background-soft-emphasis focus-visible:ring-2 active:font-semibold active:text-secondary-foreground 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 [&>svg]:text-gray-foreground","data-[active=true]:font-semibold data-[active=true]:text-secondary-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",t)},r))}var Xd={sm:"size-2",md:"size-3",lg:"size-4"},Mo={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},Kd={sm:"data-[state=checked]:translate-x-[11px] data-[state=checked]:rtl:-translate-x-[11px] data-[state=checked]:data-[disabled]:translate-x-[10px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[10px]",md:"data-[state=checked]:translate-x-[15px] data-[state=checked]:rtl:-translate-x-[15px] data-[state=checked]:data-[disabled]:translate-x-[14px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[14px]",lg:"data-[state=checked]:translate-x-[19px] data-[state=checked]:rtl:-translate-x-[19px] data-[state=checked]:data-[disabled]:translate-x-[18px] data-[state=checked]:data-[disabled]:rtl:-translate-x-[18px]"},Bo=cva("peer inline-flex shrink-0 items-center rounded-pill border-2 border-gray-stroke-muted outline-none transition-all data-[disabled]:cursor-default data-[disabled]:!bg-gray-background-soft-muted data-[state=checked]:bg-primary-background-fill data-[state=unchecked]:bg-surface-card data-[state=checked]:border-transparent data-[disabled]:data-[state=checked]:bg-gray-background-soft-muted data-[disabled]:data-[state=checked]:border-gray-stroke-muted enabled:hover:ring-2 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active",{variants:{size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{size:"md"}});function Zd(i){var f=i,{className:e,size:a,checkedIcon:o,uncheckedIcon:t,checked:r,defaultChecked:l}=f,n=u(f,["className","size","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[p,x]=R.useState(l||false),L=r!==void 0,h=L?r:p,y=o||t;return jsx(Switch.Root,c(s({"data-slot":"switch",className:d("group",Bo({size:a}),e),checked:r,defaultChecked:l,onCheckedChange:S=>{var I;L||x(S),(I=n.onCheckedChange)==null||I.call(n,S);}},n),{children:jsx(Switch.Thumb,{"data-slot":"switch-thumb",className:d("shadow-xs pointer-events-none flex items-center justify-center rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-0.5 data-[disabled]:!bg-gray-background-fill-muted data-[state=checked]:bg-primary-foreground-onfill data-[state=unchecked]:bg-gray-foreground-muted",y&&"!bg-transparent data-[disabled]:!bg-transparent",Xd[a||"md"],Kd[a||"md"]),children:y&&jsxs(Fragment,{children:[h&&o&&jsx("span",{className:d("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",Mo[a||"md"]),children:o}),!h&&t&&jsx("span",{className:d("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",Mo[a||"md"]),children:t})]})})}))}var Fo=R.createContext({});function jd({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:l}){let[n,i]=R.useState(a||""),f={value:a||n,onValueChange:o||i};return jsx(Fo.Provider,{value:f,children:jsx(_a,{open:t,defaultOpen:r,onOpenChange:l,children:e})})}function $d({children:e,asChild:a=true,className:o}){return jsx(Wa,{className:o,asChild:a,children:e})}function Yd({children:e,align:a="center",side:o="right",className:t}){return jsx(Xa,{className:t,align:a,side:o,children:e})}function eu({children:e,label:a}){let{value:o,onValueChange:t}=R.useContext(Fo);return a?jsxs(Fragment,{children:[jsx(Za,{children:a}),jsx(la,{value:o,onValueChange:t,children:e})]}):jsx(la,{value:o,onValueChange:t,children:e})}function au({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxs(Ka,{value:a,onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxs(ra,{onClick:r,children:[typeof t=="string"?jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function tu({children:e,onClick:a,icon:o}){return jsxs(ra,{onClick:a,children:[o,e]})}function ou(){return jsx(Qa,{})}var Oo=R.createContext(null),lu=150,qo=16,su="w-8";function va(){let e=R.useContext(Oo);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function du(e,a){let o=R.useRef(null);return R.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),R.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var Uo=cva("relative inline-flex min-w-full items-center justify-between gap-0 bg-surface-section",{variants:{variant:{standalone:"rounded-lg border border-gray-stroke-muted px-6",header:"border-b border-gray-stroke-muted px-3.5 sm:px-6 lg:px-8 bg-transparent"}},defaultVariants:{variant:"standalone"}}),zo=cva(["inline-flex min-w-fit flex-1 items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:text-gray-foreground-muted","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-all","relative font-medium text-gray-foreground hover:text-gray-foreground data-[state=active]:text-primary-foreground data-[state=active]:font-semibold"],{variants:{variant:{standalone:"px-3.5 md:px-10 lg:px-16",header:"px-4"},size:{md:"h-[46px] text-sm",lg:"h-[54px] text-base"}},defaultVariants:{variant:"standalone",size:"md"}}),uu=cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),No=cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",su],{variants:{side:{left:"left-0 bg-gradient-to-r from-background to-transparent",right:"right-0 bg-gradient-to-l from-background to-transparent"},variant:{standalone:"",header:""}},compoundVariants:[{side:"left",variant:"header",class:"left-3.5 sm:left-6 lg:left-8"},{side:"right",variant:"header",class:"right-3.5 sm:right-6 lg:right-8"}],defaultVariants:{side:"left",variant:"standalone"}}),Ho=cva("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{standalone:"",header:""},size:{md:"",lg:""}},compoundVariants:[{variant:"standalone",size:"md",class:"m-4"},{variant:"standalone",size:"lg",class:"m-6"},{variant:"header",size:"md",class:"my-4"},{variant:"header",size:"lg",class:"my-6"}],defaultVariants:{variant:"standalone",size:"md"}});function nu(n){var i=n,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=i,l=u(i,["className","variant","size","responsive","children"]);let[f,p]=R.useState(o),x=R.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(Ie.tablet),y=parseInt(Ie.mobile),S=window.innerWidth;S<=y||S<=h?p("md"):p(o);},[o]),L=du(x,lu);return R.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return x(),window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[t,o,x,L]),jsx(Oo.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsx(Tabs.Root,c(s({"data-slot":"tabs","data-variant":a,"data-size":f,className:d("flex w-full max-w-full flex-col overflow-hidden",e)},l),{children:r}))})}function iu(t){var r=t,{className:e,children:a}=r,o=u(r,["className","children"]);let{variant:l,responsiveSize:n}=va(),i=R.useRef(null),f=R.useRef(null),[p,x]=R.useState(false),[L,h]=R.useState(false),[y,S]=R.useState(null),I=R.useCallback(()=>{let C=i.current;if(!C)return;let{scrollLeft:P,scrollWidth:H,clientWidth:F}=C,V=H>F;x(V&&P>0),h(V&&P<H-F-1);},[]),A=R.useCallback(()=>{let C=f.current;if(!C)return;let P=C.querySelector('[data-state="active"]');if(P){let H=C.getBoundingClientRect(),F=P.getBoundingClientRect();S({left:F.left-H.left,width:F.width});}},[]),O=R.useCallback(()=>{let C=i.current,P=f.current;if(!C||!P)return;let H=P.querySelector('[data-state="active"]');if(H){let F=C.getBoundingClientRect(),V=H.getBoundingClientRect();V.left<F.left?C.scrollBy({left:V.left-F.left-qo,behavior:"smooth"}):V.right>F.right&&C.scrollBy({left:V.right-F.right+qo,behavior:"smooth"});}},[]);return R.useEffect(()=>{let C=i.current;if(!C)return;I();let P=new ResizeObserver(()=>{I(),A();});return P.observe(C),C.addEventListener("scroll",I,{passive:true}),()=>{P.disconnect(),C.removeEventListener("scroll",I);}},[I,A]),R.useEffect(()=>{A();},[A,a]),R.useEffect(()=>{let C=f.current;if(!C)return;let P=new MutationObserver(H=>{for(let F of H)if(F.type==="attributes"&&F.attributeName==="data-state"){A(),O();break}});return P.observe(C,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>P.disconnect()},[A,O]),jsxs("div",{"data-slot":"tabs-list-wrapper",className:uu({variant:l}),children:[jsx("div",{className:d(No({side:"left",variant:l}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{className:d(No({side:"right",variant:l}),L?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsx("div",{ref:i,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxs("div",{ref:f,className:"relative",children:[jsx(Tabs.List,c(s({"data-slot":"tabs-list","data-variant":l,"data-size":n,className:d(Uo({variant:l}),e)},o),{children:a})),y&&jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:y.left,width:y.width},"aria-hidden":"true"})]})})]})}function fu(l){var n=l,{className:e,children:a,icon:o,badge:t}=n,r=u(n,["className","children","icon","badge"]);let{variant:i,responsiveSize:f}=va(),p=R.useRef(null),[x,L]=R.useState(false);R.useEffect(()=>{let y=p.current;if(!y)return;let S=()=>{L(y.getAttribute("data-state")==="active");};S();let I=new MutationObserver(S);return I.observe(y,{attributes:true,attributeFilter:["data-state"]}),()=>I.disconnect()},[]);let h=()=>o?R.isValidElement(o)?R.cloneElement(o,{strokeWidth:x?2:1.6}):o:null;return jsxs(Tabs.Trigger,c(s({ref:p,"data-slot":"tabs-trigger","data-variant":i,"data-size":f,className:d(zo({variant:i,size:f}),e)},r),{children:[o&&jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:h()}),jsx("span",{children:a}),t&&jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function cu(o){var t=o,{className:e}=t,a=u(t,["className"]);let{variant:r,responsiveSize:l}=va();return jsx(Tabs.Content,s({"data-slot":"tabs-content","data-variant":r,"data-size":l,className:d(Ho({variant:r,size:l}),e)},a))}var Vo=cva("group/tile relative flex flex-col justify-center rounded-lg gap-0.5 px-5 py-4 cursor-default data-[disabled=true]:pointer-events-none",{variants:{variant:{regular:"bg-surface-settings-on text-primary-foreground fill-primary-foreground data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-on)_100%)] data-[disabled=true]:bg-surface-disable data-[inactive=true]:bg-surface-settings-off data-[inactive=true]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-surface-card)_0%,_var(--color-surface-settings-off)_100%)]",cm:"bg-cm-background-fill text-cm-foreground-onfill fill-cm-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cm-background-fill-emphasis)_0%,_var(--color-cm-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",go:"bg-go-background-fill text-go-foreground-onfill fill-go-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-go-background-fill-emphasis)_0%,_var(--color-go-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",cir:"bg-cir-background-fill text-cir-foreground-onfill fill-cir-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-cir-background-fill-emphasis)_0%,_var(--color-cir-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",ped:"bg-ped-background-fill text-ped-foreground-onfill fill-ped-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(51.96%_112.02%_at_50%_112.02%,_var(--color-ped-background-fill-emphasis)_0%,_var(--color-ped-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]",prev:"bg-prev-background-fill text-prev-foreground-onfill fill-prev-foreground-onfill data-[disabled=false]:hover:[background:radial-gradient(63.78%_137.5%_at_50%_137.5%,_var(--color-prev-background-fill-emphasis)_0%,_var(--color-prev-background-fill)_100%)] data-[disabled=true]:opacity-70 data-[inactive=true]:[filter:brightness(.8)]"}},defaultVariants:{variant:"regular"}});function xu(n){var i=n,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=i,l=u(i,["className","variant","asChild","disabled","inactive"]);let f=o?Slot.Slot:"div";return jsxs(f,c(s({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:d(Vo({variant:a,className:e}),l.onClick&&!t&&"cursor-pointer")},l),{children:[l.children,l.onClick&&!t&&jsx(EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function hu(t){var r=t,{className:e,icon:a}=r,o=u(r,["className","icon"]);return jsx("div",c(s({"data-slot":"tile-icon",className:d("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Lu(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("div",s({"data-slot":"tile-title",className:d("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function bu(o){var t=o,{className:e}=t,a=u(t,["className"]);return jsx("span",s({"data-slot":"tile-description",className:d("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}/*! Bundled license information:
2
2
 
3
3
  lucide-react/dist/esm/shared/src/utils.js:
4
4
  lucide-react/dist/esm/defaultAttributes.js: